@nordhealth/components 3.3.0 → 3.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +907 -888
- package/lib/{AutocompleteMixin-60503685.js → AutocompleteMixin-a98ada34.js} +2 -2
- package/lib/{AutocompleteMixin-60503685.js.map → AutocompleteMixin-a98ada34.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/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/{Calendar-f7e95d9a.js → Calendar-3fd55b5d.js} +2 -2
- package/lib/{Calendar-f7e95d9a.js.map → Calendar-3fd55b5d.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +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/CommandMenuAction.js.map +1 -1
- package/lib/{Component-253ecb24.js → Component-1f694235.js} +2 -2
- package/lib/Component-1f694235.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/{DropdownItem-75a2468a.js → DropdownItem-4a02675f.js} +2 -2
- package/lib/DropdownItem-4a02675f.js.map +1 -0
- package/lib/DropdownItem.js +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/FocusableMixin-186c69a2.js +2 -0
- package/lib/{FocusableMixin-003e1094.js.map → FocusableMixin-186c69a2.js.map} +1 -1
- package/lib/{FormAssociatedMixin-0638b151.js → FormAssociatedMixin-5fedde68.js} +2 -2
- package/lib/{FormAssociatedMixin-0638b151.js.map → FormAssociatedMixin-5fedde68.js.map} +1 -1
- package/lib/{FormField-0783cb5a.js → FormField-3226fb17.js} +2 -2
- package/lib/FormField-3226fb17.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Icon.js +2 -2
- package/lib/Input.js +1 -1
- package/lib/{InputMixin-87012c5a.js → InputMixin-d50cb41a.js} +2 -2
- package/lib/{InputMixin-87012c5a.js.map → InputMixin-d50cb41a.js.map} +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/{LightDomController-5c53b3f4.js → LightDomController-8a770234.js} +2 -2
- package/lib/{LightDomController-5c53b3f4.js.map → LightDomController-8a770234.js.map} +1 -1
- package/lib/Message.js +1 -1
- package/lib/Modal.js +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/{NavToggle-7e1ba314.js → NavToggle-fbd227e5.js} +2 -2
- package/lib/{NavToggle-7e1ba314.js.map → NavToggle-fbd227e5.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/NotificationGroup.js +1 -1
- package/lib/{NotificationMixin-cea138a7.js → NotificationMixin-5e028561.js} +2 -2
- package/lib/{NotificationMixin-cea138a7.js.map → NotificationMixin-5e028561.js.map} +1 -1
- package/lib/{Popout-1183c22b.js → Popout-6a85e4b6.js} +2 -2
- package/lib/{Popout-1183c22b.js.map → Popout-6a85e4b6.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/Qrcode.js +1 -1
- package/lib/Qrcode.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Range.js +1 -1
- package/lib/Select.js +1 -1
- package/lib/{SizeMixin-bc2098f4.js → SizeMixin-f04ac402.js} +2 -2
- package/lib/{SizeMixin-bc2098f4.js.map → SizeMixin-f04ac402.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Stack.js +1 -1
- package/lib/{Sticky-220280e0.js → Sticky-b4e6c315.js} +2 -2
- package/lib/Sticky-b4e6c315.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/{TextField-b455a6dd.js → TextField-3f901ec8.js} +2 -2
- package/lib/{TextField-b455a6dd.js.map → TextField-3f901ec8.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Toast.js +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/TopBar.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/bundle.js +6 -6
- package/lib/bundle.js.map +1 -1
- package/lib/{class-map-4a0dec4a.js → class-map-c0d8e1e5.js} +2 -2
- package/lib/{class-map-4a0dec4a.js.map → class-map-c0d8e1e5.js.map} +1 -1
- package/lib/{collection-bba319d3.js → collection-498f2b1f.js} +3 -3
- package/lib/{collection-bba319d3.js.map → collection-498f2b1f.js.map} +1 -1
- package/lib/cond-09498763.js +2 -0
- package/lib/{cond-77258def.js.map → cond-09498763.js.map} +1 -1
- package/lib/{if-defined-10508457.js → if-defined-8a007930.js} +2 -2
- package/lib/{if-defined-10508457.js.map → if-defined-8a007930.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/positioning-a572d126.js +1 -1
- package/lib/positioning-a572d126.js.map +1 -1
- package/lib/{query-assigned-elements-2f8275b7.js → query-assigned-elements-822fe360.js} +2 -2
- package/lib/query-assigned-elements-822fe360.js.map +1 -0
- package/lib/{ref-f75a30b7.js → ref-6b46e5ea.js} +3 -3
- package/lib/{ref-f75a30b7.js.map → ref-6b46e5ea.js.map} +1 -1
- package/lib/src/layout/Layout.d.ts +6 -0
- package/lib/style-map-5b757428.js +7 -0
- package/lib/style-map-5b757428.js.map +1 -0
- package/package.json +2 -2
- package/lib/Component-253ecb24.js.map +0 -1
- package/lib/DropdownItem-75a2468a.js.map +0 -1
- package/lib/FocusableMixin-003e1094.js +0 -2
- package/lib/FormField-0783cb5a.js.map +0 -1
- package/lib/Sticky-220280e0.js.map +0 -1
- package/lib/cond-77258def.js +0 -2
- package/lib/query-assigned-elements-2f8275b7.js.map +0 -1
- package/lib/style-map-75ce20b3.js +0 -7
- package/lib/style-map-75ce20b3.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -1415,6 +1415,109 @@
|
|
|
1415
1415
|
}
|
|
1416
1416
|
]
|
|
1417
1417
|
},
|
|
1418
|
+
{
|
|
1419
|
+
"kind": "javascript-module",
|
|
1420
|
+
"path": "src/button-group/ButtonGroup.ts",
|
|
1421
|
+
"declarations": [
|
|
1422
|
+
{
|
|
1423
|
+
"kind": "class",
|
|
1424
|
+
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1425
|
+
"name": "ButtonGroup",
|
|
1426
|
+
"cssProperties": [
|
|
1427
|
+
{
|
|
1428
|
+
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
1429
|
+
"name": "--n-button-group-border-radius",
|
|
1430
|
+
"default": "var(--n-border-radius-s)"
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1434
|
+
"name": "--n-button-group-box-shadow",
|
|
1435
|
+
"default": "var(--n-box-shadow)"
|
|
1436
|
+
}
|
|
1437
|
+
],
|
|
1438
|
+
"slots": [
|
|
1439
|
+
{
|
|
1440
|
+
"description": "The button group content",
|
|
1441
|
+
"name": ""
|
|
1442
|
+
}
|
|
1443
|
+
],
|
|
1444
|
+
"members": [
|
|
1445
|
+
{
|
|
1446
|
+
"kind": "field",
|
|
1447
|
+
"name": "direction",
|
|
1448
|
+
"type": {
|
|
1449
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
1450
|
+
},
|
|
1451
|
+
"default": "\"horizontal\"",
|
|
1452
|
+
"description": "The direction of the button group.",
|
|
1453
|
+
"attribute": "direction",
|
|
1454
|
+
"reflects": true
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"kind": "field",
|
|
1458
|
+
"name": "role",
|
|
1459
|
+
"type": {
|
|
1460
|
+
"text": "string"
|
|
1461
|
+
},
|
|
1462
|
+
"default": "\"group\"",
|
|
1463
|
+
"description": "The appropriate role for the containing element.",
|
|
1464
|
+
"attribute": "role",
|
|
1465
|
+
"reflects": true
|
|
1466
|
+
}
|
|
1467
|
+
],
|
|
1468
|
+
"attributes": [
|
|
1469
|
+
{
|
|
1470
|
+
"name": "direction",
|
|
1471
|
+
"type": {
|
|
1472
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
1473
|
+
},
|
|
1474
|
+
"default": "\"horizontal\"",
|
|
1475
|
+
"description": "The direction of the button group.",
|
|
1476
|
+
"fieldName": "direction"
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "role",
|
|
1480
|
+
"type": {
|
|
1481
|
+
"text": "string"
|
|
1482
|
+
},
|
|
1483
|
+
"default": "\"group\"",
|
|
1484
|
+
"description": "The appropriate role for the containing element.",
|
|
1485
|
+
"fieldName": "role"
|
|
1486
|
+
}
|
|
1487
|
+
],
|
|
1488
|
+
"superclass": {
|
|
1489
|
+
"name": "LitElement",
|
|
1490
|
+
"package": "lit"
|
|
1491
|
+
},
|
|
1492
|
+
"localization": [],
|
|
1493
|
+
"status": "new",
|
|
1494
|
+
"category": "structure",
|
|
1495
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to group together buttons, or dropdowns, of a similar nature or purpose.\n- Use the appropriate `role` attribute on the button group to provide additional semantics.\n- Use an `aria-labelledby` attribute referencing another element to best explain the contents of the button group.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t add components other than buttons, dropdowns and in some instances visually hidden components to the button group.\n- Don’t skip the addition of an appropriate label if the added `role` attribute value calls for it.\n- Don’t use for building grid based layouts.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
|
|
1496
|
+
"examples": [],
|
|
1497
|
+
"dependencies": [],
|
|
1498
|
+
"tagName": "nord-button-group",
|
|
1499
|
+
"customElement": true
|
|
1500
|
+
}
|
|
1501
|
+
],
|
|
1502
|
+
"exports": [
|
|
1503
|
+
{
|
|
1504
|
+
"kind": "js",
|
|
1505
|
+
"name": "default",
|
|
1506
|
+
"declaration": {
|
|
1507
|
+
"name": "ButtonGroup",
|
|
1508
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"kind": "custom-element-definition",
|
|
1513
|
+
"name": "nord-button-group",
|
|
1514
|
+
"declaration": {
|
|
1515
|
+
"name": "ButtonGroup",
|
|
1516
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
]
|
|
1520
|
+
},
|
|
1418
1521
|
{
|
|
1419
1522
|
"kind": "javascript-module",
|
|
1420
1523
|
"path": "src/calendar/Calendar.ts",
|
|
@@ -1920,72 +2023,92 @@
|
|
|
1920
2023
|
},
|
|
1921
2024
|
{
|
|
1922
2025
|
"kind": "javascript-module",
|
|
1923
|
-
"path": "src/
|
|
2026
|
+
"path": "src/card/Card.ts",
|
|
1924
2027
|
"declarations": [
|
|
1925
2028
|
{
|
|
1926
2029
|
"kind": "class",
|
|
1927
|
-
"description": "
|
|
1928
|
-
"name": "
|
|
2030
|
+
"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.",
|
|
2031
|
+
"name": "Card",
|
|
1929
2032
|
"cssProperties": [
|
|
1930
2033
|
{
|
|
1931
|
-
"description": "Controls
|
|
1932
|
-
"name": "--n-
|
|
1933
|
-
"default": "var(--n-border-radius
|
|
2034
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2035
|
+
"name": "--n-card-border-radius",
|
|
2036
|
+
"default": "var(--n-border-radius)"
|
|
1934
2037
|
},
|
|
1935
2038
|
{
|
|
1936
2039
|
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1937
|
-
"name": "--n-
|
|
1938
|
-
"default": "var(--n-box-shadow)"
|
|
2040
|
+
"name": "--n-card-box-shadow",
|
|
2041
|
+
"default": "var(--n-box-shadow-popout)"
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
"description": "Controls the padding on all sides of the card.",
|
|
2045
|
+
"name": "--n-card-padding",
|
|
2046
|
+
"default": "var(--n-space-m)"
|
|
2047
|
+
},
|
|
2048
|
+
{
|
|
2049
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2050
|
+
"name": "--n-card-slot-padding",
|
|
2051
|
+
"default": "var(--n-space-m)"
|
|
1939
2052
|
}
|
|
1940
2053
|
],
|
|
1941
2054
|
"slots": [
|
|
1942
2055
|
{
|
|
1943
|
-
"description": "The
|
|
2056
|
+
"description": "The card content.",
|
|
1944
2057
|
"name": ""
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
"description": "Optional slot that holds a header for the card.",
|
|
2061
|
+
"name": "header"
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2065
|
+
"name": "header-end"
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
2069
|
+
"name": "footer"
|
|
1945
2070
|
}
|
|
1946
2071
|
],
|
|
1947
2072
|
"members": [
|
|
1948
2073
|
{
|
|
1949
2074
|
"kind": "field",
|
|
1950
|
-
"name": "
|
|
1951
|
-
"
|
|
1952
|
-
|
|
1953
|
-
},
|
|
1954
|
-
"default": "\"horizontal\"",
|
|
1955
|
-
"description": "The direction of the button group.",
|
|
1956
|
-
"attribute": "direction",
|
|
1957
|
-
"reflects": true
|
|
2075
|
+
"name": "headerSlot",
|
|
2076
|
+
"privacy": "private",
|
|
2077
|
+
"default": "new SlotController(this, \"header\")"
|
|
1958
2078
|
},
|
|
1959
2079
|
{
|
|
1960
2080
|
"kind": "field",
|
|
1961
|
-
"name": "
|
|
2081
|
+
"name": "headerEndSlot",
|
|
2082
|
+
"privacy": "private",
|
|
2083
|
+
"default": "new SlotController(this, \"header-end\")"
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"kind": "field",
|
|
2087
|
+
"name": "footerSlot",
|
|
2088
|
+
"privacy": "private",
|
|
2089
|
+
"default": "new SlotController(this, \"footer\")"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"kind": "field",
|
|
2093
|
+
"name": "padding",
|
|
1962
2094
|
"type": {
|
|
1963
|
-
"text": "
|
|
2095
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1964
2096
|
},
|
|
1965
|
-
"default": "\"
|
|
1966
|
-
"description": "
|
|
1967
|
-
"attribute": "
|
|
2097
|
+
"default": "\"m\"",
|
|
2098
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2099
|
+
"attribute": "padding",
|
|
1968
2100
|
"reflects": true
|
|
1969
2101
|
}
|
|
1970
2102
|
],
|
|
1971
2103
|
"attributes": [
|
|
1972
2104
|
{
|
|
1973
|
-
"name": "
|
|
1974
|
-
"type": {
|
|
1975
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1976
|
-
},
|
|
1977
|
-
"default": "\"horizontal\"",
|
|
1978
|
-
"description": "The direction of the button group.",
|
|
1979
|
-
"fieldName": "direction"
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
"name": "role",
|
|
2105
|
+
"name": "padding",
|
|
1983
2106
|
"type": {
|
|
1984
|
-
"text": "
|
|
2107
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1985
2108
|
},
|
|
1986
|
-
"default": "\"
|
|
1987
|
-
"description": "
|
|
1988
|
-
"fieldName": "
|
|
2109
|
+
"default": "\"m\"",
|
|
2110
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2111
|
+
"fieldName": "padding"
|
|
1989
2112
|
}
|
|
1990
2113
|
],
|
|
1991
2114
|
"superclass": {
|
|
@@ -1993,12 +2116,12 @@
|
|
|
1993
2116
|
"package": "lit"
|
|
1994
2117
|
},
|
|
1995
2118
|
"localization": [],
|
|
1996
|
-
"status": "
|
|
2119
|
+
"status": "ready",
|
|
1997
2120
|
"category": "structure",
|
|
1998
|
-
"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
|
|
2121
|
+
"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",
|
|
1999
2122
|
"examples": [],
|
|
2000
2123
|
"dependencies": [],
|
|
2001
|
-
"tagName": "nord-
|
|
2124
|
+
"tagName": "nord-card",
|
|
2002
2125
|
"customElement": true
|
|
2003
2126
|
}
|
|
2004
2127
|
],
|
|
@@ -2007,16 +2130,16 @@
|
|
|
2007
2130
|
"kind": "js",
|
|
2008
2131
|
"name": "default",
|
|
2009
2132
|
"declaration": {
|
|
2010
|
-
"name": "
|
|
2011
|
-
"module": "src/
|
|
2133
|
+
"name": "Card",
|
|
2134
|
+
"module": "src/card/Card.ts"
|
|
2012
2135
|
}
|
|
2013
2136
|
},
|
|
2014
2137
|
{
|
|
2015
2138
|
"kind": "custom-element-definition",
|
|
2016
|
-
"name": "nord-
|
|
2139
|
+
"name": "nord-card",
|
|
2017
2140
|
"declaration": {
|
|
2018
|
-
"name": "
|
|
2019
|
-
"module": "src/
|
|
2141
|
+
"name": "Card",
|
|
2142
|
+
"module": "src/card/Card.ts"
|
|
2020
2143
|
}
|
|
2021
2144
|
}
|
|
2022
2145
|
]
|
|
@@ -2744,155 +2867,32 @@
|
|
|
2744
2867
|
},
|
|
2745
2868
|
{
|
|
2746
2869
|
"kind": "javascript-module",
|
|
2747
|
-
"path": "src/
|
|
2870
|
+
"path": "src/command-menu/CommandMenu.ts",
|
|
2748
2871
|
"declarations": [
|
|
2749
2872
|
{
|
|
2750
2873
|
"kind": "class",
|
|
2751
|
-
"description": "
|
|
2752
|
-
"name": "
|
|
2874
|
+
"description": "Command Menu allows users to navigate and use an app without\ntouching the mouse and helps them transform into “power users”\nwho can harness more advanced features far faster.",
|
|
2875
|
+
"name": "CommandMenu",
|
|
2753
2876
|
"cssProperties": [
|
|
2754
2877
|
{
|
|
2755
|
-
"description": "Controls
|
|
2756
|
-
"name": "--n-
|
|
2757
|
-
"default": "
|
|
2758
|
-
},
|
|
2759
|
-
{
|
|
2760
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2761
|
-
"name": "--n-card-box-shadow",
|
|
2762
|
-
"default": "var(--n-box-shadow-popout)"
|
|
2878
|
+
"description": "Controls the max inline size, or width, of the command menu.",
|
|
2879
|
+
"name": "--n-command-menu-inline-size",
|
|
2880
|
+
"default": "640px"
|
|
2763
2881
|
},
|
|
2764
2882
|
{
|
|
2765
|
-
"description": "Controls the
|
|
2766
|
-
"name": "--n-
|
|
2767
|
-
"default": "
|
|
2883
|
+
"description": "Controls the max block size, or height, of the command menu.",
|
|
2884
|
+
"name": "--n-command-menu-block-size",
|
|
2885
|
+
"default": "290px"
|
|
2768
2886
|
},
|
|
2769
2887
|
{
|
|
2770
|
-
"description": "Controls the
|
|
2771
|
-
"name": "--n-
|
|
2772
|
-
"default": "
|
|
2888
|
+
"description": "Controls the command menu offset from the block start, or top, of the screen.",
|
|
2889
|
+
"name": "--n-command-menu-block-start",
|
|
2890
|
+
"default": "16%"
|
|
2773
2891
|
}
|
|
2774
2892
|
],
|
|
2775
2893
|
"slots": [
|
|
2776
2894
|
{
|
|
2777
|
-
"description": "
|
|
2778
|
-
"name": ""
|
|
2779
|
-
},
|
|
2780
|
-
{
|
|
2781
|
-
"description": "Optional slot that holds a header for the card.",
|
|
2782
|
-
"name": "header"
|
|
2783
|
-
},
|
|
2784
|
-
{
|
|
2785
|
-
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2786
|
-
"name": "header-end"
|
|
2787
|
-
},
|
|
2788
|
-
{
|
|
2789
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
2790
|
-
"name": "footer"
|
|
2791
|
-
}
|
|
2792
|
-
],
|
|
2793
|
-
"members": [
|
|
2794
|
-
{
|
|
2795
|
-
"kind": "field",
|
|
2796
|
-
"name": "headerSlot",
|
|
2797
|
-
"privacy": "private",
|
|
2798
|
-
"default": "new SlotController(this, \"header\")"
|
|
2799
|
-
},
|
|
2800
|
-
{
|
|
2801
|
-
"kind": "field",
|
|
2802
|
-
"name": "headerEndSlot",
|
|
2803
|
-
"privacy": "private",
|
|
2804
|
-
"default": "new SlotController(this, \"header-end\")"
|
|
2805
|
-
},
|
|
2806
|
-
{
|
|
2807
|
-
"kind": "field",
|
|
2808
|
-
"name": "footerSlot",
|
|
2809
|
-
"privacy": "private",
|
|
2810
|
-
"default": "new SlotController(this, \"footer\")"
|
|
2811
|
-
},
|
|
2812
|
-
{
|
|
2813
|
-
"kind": "field",
|
|
2814
|
-
"name": "padding",
|
|
2815
|
-
"type": {
|
|
2816
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2817
|
-
},
|
|
2818
|
-
"default": "\"m\"",
|
|
2819
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2820
|
-
"attribute": "padding",
|
|
2821
|
-
"reflects": true
|
|
2822
|
-
}
|
|
2823
|
-
],
|
|
2824
|
-
"attributes": [
|
|
2825
|
-
{
|
|
2826
|
-
"name": "padding",
|
|
2827
|
-
"type": {
|
|
2828
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2829
|
-
},
|
|
2830
|
-
"default": "\"m\"",
|
|
2831
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2832
|
-
"fieldName": "padding"
|
|
2833
|
-
}
|
|
2834
|
-
],
|
|
2835
|
-
"superclass": {
|
|
2836
|
-
"name": "LitElement",
|
|
2837
|
-
"package": "lit"
|
|
2838
|
-
},
|
|
2839
|
-
"localization": [],
|
|
2840
|
-
"status": "ready",
|
|
2841
|
-
"category": "structure",
|
|
2842
|
-
"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",
|
|
2843
|
-
"examples": [],
|
|
2844
|
-
"dependencies": [],
|
|
2845
|
-
"tagName": "nord-card",
|
|
2846
|
-
"customElement": true
|
|
2847
|
-
}
|
|
2848
|
-
],
|
|
2849
|
-
"exports": [
|
|
2850
|
-
{
|
|
2851
|
-
"kind": "js",
|
|
2852
|
-
"name": "default",
|
|
2853
|
-
"declaration": {
|
|
2854
|
-
"name": "Card",
|
|
2855
|
-
"module": "src/card/Card.ts"
|
|
2856
|
-
}
|
|
2857
|
-
},
|
|
2858
|
-
{
|
|
2859
|
-
"kind": "custom-element-definition",
|
|
2860
|
-
"name": "nord-card",
|
|
2861
|
-
"declaration": {
|
|
2862
|
-
"name": "Card",
|
|
2863
|
-
"module": "src/card/Card.ts"
|
|
2864
|
-
}
|
|
2865
|
-
}
|
|
2866
|
-
]
|
|
2867
|
-
},
|
|
2868
|
-
{
|
|
2869
|
-
"kind": "javascript-module",
|
|
2870
|
-
"path": "src/command-menu/CommandMenu.ts",
|
|
2871
|
-
"declarations": [
|
|
2872
|
-
{
|
|
2873
|
-
"kind": "class",
|
|
2874
|
-
"description": "Command Menu allows users to navigate and use an app without\ntouching the mouse and helps them transform into “power users”\nwho can harness more advanced features far faster.",
|
|
2875
|
-
"name": "CommandMenu",
|
|
2876
|
-
"cssProperties": [
|
|
2877
|
-
{
|
|
2878
|
-
"description": "Controls the max inline size, or width, of the command menu.",
|
|
2879
|
-
"name": "--n-command-menu-inline-size",
|
|
2880
|
-
"default": "640px"
|
|
2881
|
-
},
|
|
2882
|
-
{
|
|
2883
|
-
"description": "Controls the max block size, or height, of the command menu.",
|
|
2884
|
-
"name": "--n-command-menu-block-size",
|
|
2885
|
-
"default": "290px"
|
|
2886
|
-
},
|
|
2887
|
-
{
|
|
2888
|
-
"description": "Controls the command menu offset from the block start, or top, of the screen.",
|
|
2889
|
-
"name": "--n-command-menu-block-start",
|
|
2890
|
-
"default": "16%"
|
|
2891
|
-
}
|
|
2892
|
-
],
|
|
2893
|
-
"slots": [
|
|
2894
|
-
{
|
|
2895
|
-
"description": "Used to replace the default footer contents.",
|
|
2895
|
+
"description": "Used to replace the default footer contents.",
|
|
2896
2896
|
"name": "footer"
|
|
2897
2897
|
}
|
|
2898
2898
|
],
|
|
@@ -6330,74 +6330,6 @@
|
|
|
6330
6330
|
}
|
|
6331
6331
|
]
|
|
6332
6332
|
},
|
|
6333
|
-
{
|
|
6334
|
-
"kind": "javascript-module",
|
|
6335
|
-
"path": "src/dropdown-group/DropdownGroup.ts",
|
|
6336
|
-
"declarations": [
|
|
6337
|
-
{
|
|
6338
|
-
"kind": "class",
|
|
6339
|
-
"description": "Dropdown group includes all the actions or items in a single dropdown\ngroup and is used for grouping items into related categories.",
|
|
6340
|
-
"name": "DropdownGroup",
|
|
6341
|
-
"slots": [
|
|
6342
|
-
{
|
|
6343
|
-
"description": "The dropdown group content.",
|
|
6344
|
-
"name": ""
|
|
6345
|
-
}
|
|
6346
|
-
],
|
|
6347
|
-
"members": [
|
|
6348
|
-
{
|
|
6349
|
-
"kind": "field",
|
|
6350
|
-
"name": "heading",
|
|
6351
|
-
"type": {
|
|
6352
|
-
"text": "string | undefined"
|
|
6353
|
-
},
|
|
6354
|
-
"description": "Heading and accessible label for the dropdown group.",
|
|
6355
|
-
"attribute": "heading"
|
|
6356
|
-
}
|
|
6357
|
-
],
|
|
6358
|
-
"attributes": [
|
|
6359
|
-
{
|
|
6360
|
-
"name": "heading",
|
|
6361
|
-
"type": {
|
|
6362
|
-
"text": "string | undefined"
|
|
6363
|
-
},
|
|
6364
|
-
"description": "Heading and accessible label for the dropdown group.",
|
|
6365
|
-
"fieldName": "heading"
|
|
6366
|
-
}
|
|
6367
|
-
],
|
|
6368
|
-
"superclass": {
|
|
6369
|
-
"name": "LitElement",
|
|
6370
|
-
"package": "lit"
|
|
6371
|
-
},
|
|
6372
|
-
"localization": [],
|
|
6373
|
-
"status": "ready",
|
|
6374
|
-
"category": "action",
|
|
6375
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group dropdown items into dropdown groups based on related categories.\n- Use group headings to clarify the category of a section.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for dropdown items:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\nKeep dropdown items to a single line of text:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme<br/>of the veterinary application.</div>\n",
|
|
6376
|
-
"examples": [],
|
|
6377
|
-
"dependencies": [],
|
|
6378
|
-
"tagName": "nord-dropdown-group",
|
|
6379
|
-
"customElement": true
|
|
6380
|
-
}
|
|
6381
|
-
],
|
|
6382
|
-
"exports": [
|
|
6383
|
-
{
|
|
6384
|
-
"kind": "js",
|
|
6385
|
-
"name": "default",
|
|
6386
|
-
"declaration": {
|
|
6387
|
-
"name": "DropdownGroup",
|
|
6388
|
-
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6389
|
-
}
|
|
6390
|
-
},
|
|
6391
|
-
{
|
|
6392
|
-
"kind": "custom-element-definition",
|
|
6393
|
-
"name": "nord-dropdown-group",
|
|
6394
|
-
"declaration": {
|
|
6395
|
-
"name": "DropdownGroup",
|
|
6396
|
-
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6397
|
-
}
|
|
6398
|
-
}
|
|
6399
|
-
]
|
|
6400
|
-
},
|
|
6401
6333
|
{
|
|
6402
6334
|
"kind": "javascript-module",
|
|
6403
6335
|
"path": "src/dropdown-item/DropdownItem.ts",
|
|
@@ -6546,6 +6478,74 @@
|
|
|
6546
6478
|
}
|
|
6547
6479
|
]
|
|
6548
6480
|
},
|
|
6481
|
+
{
|
|
6482
|
+
"kind": "javascript-module",
|
|
6483
|
+
"path": "src/dropdown-group/DropdownGroup.ts",
|
|
6484
|
+
"declarations": [
|
|
6485
|
+
{
|
|
6486
|
+
"kind": "class",
|
|
6487
|
+
"description": "Dropdown group includes all the actions or items in a single dropdown\ngroup and is used for grouping items into related categories.",
|
|
6488
|
+
"name": "DropdownGroup",
|
|
6489
|
+
"slots": [
|
|
6490
|
+
{
|
|
6491
|
+
"description": "The dropdown group content.",
|
|
6492
|
+
"name": ""
|
|
6493
|
+
}
|
|
6494
|
+
],
|
|
6495
|
+
"members": [
|
|
6496
|
+
{
|
|
6497
|
+
"kind": "field",
|
|
6498
|
+
"name": "heading",
|
|
6499
|
+
"type": {
|
|
6500
|
+
"text": "string | undefined"
|
|
6501
|
+
},
|
|
6502
|
+
"description": "Heading and accessible label for the dropdown group.",
|
|
6503
|
+
"attribute": "heading"
|
|
6504
|
+
}
|
|
6505
|
+
],
|
|
6506
|
+
"attributes": [
|
|
6507
|
+
{
|
|
6508
|
+
"name": "heading",
|
|
6509
|
+
"type": {
|
|
6510
|
+
"text": "string | undefined"
|
|
6511
|
+
},
|
|
6512
|
+
"description": "Heading and accessible label for the dropdown group.",
|
|
6513
|
+
"fieldName": "heading"
|
|
6514
|
+
}
|
|
6515
|
+
],
|
|
6516
|
+
"superclass": {
|
|
6517
|
+
"name": "LitElement",
|
|
6518
|
+
"package": "lit"
|
|
6519
|
+
},
|
|
6520
|
+
"localization": [],
|
|
6521
|
+
"status": "ready",
|
|
6522
|
+
"category": "action",
|
|
6523
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group dropdown items into dropdown groups based on related categories.\n- Use group headings to clarify the category of a section.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nDropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Create user</div>\n<div class=\"n-usage n-usage-dont\">Create User</div>\n\nDropdown items should always lead with a strong verb that encourages action. Use the `{verb}+{noun}` format except in the case of common actions like Save, Close or Cancel:\n\n<div class=\"n-usage n-usage-do\">Edit row</div>\n<div class=\"n-usage n-usage-dont\">Editing options</div>\n\nAvoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending dropdown items in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nAvoid all caps for dropdown items:\n\n<div class=\"n-usage n-usage-do\">Rename</div>\n<div class=\"n-usage n-usage-dont\">RENAME</div>\n\nKeep dropdown items to a single line of text:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme<br/>of the veterinary application.</div>\n",
|
|
6524
|
+
"examples": [],
|
|
6525
|
+
"dependencies": [],
|
|
6526
|
+
"tagName": "nord-dropdown-group",
|
|
6527
|
+
"customElement": true
|
|
6528
|
+
}
|
|
6529
|
+
],
|
|
6530
|
+
"exports": [
|
|
6531
|
+
{
|
|
6532
|
+
"kind": "js",
|
|
6533
|
+
"name": "default",
|
|
6534
|
+
"declaration": {
|
|
6535
|
+
"name": "DropdownGroup",
|
|
6536
|
+
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6537
|
+
}
|
|
6538
|
+
},
|
|
6539
|
+
{
|
|
6540
|
+
"kind": "custom-element-definition",
|
|
6541
|
+
"name": "nord-dropdown-group",
|
|
6542
|
+
"declaration": {
|
|
6543
|
+
"name": "DropdownGroup",
|
|
6544
|
+
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6545
|
+
}
|
|
6546
|
+
}
|
|
6547
|
+
]
|
|
6548
|
+
},
|
|
6549
6549
|
{
|
|
6550
6550
|
"kind": "javascript-module",
|
|
6551
6551
|
"path": "src/empty-state/EmptyState.ts",
|
|
@@ -8219,6 +8219,16 @@
|
|
|
8219
8219
|
"attribute": "nav-open",
|
|
8220
8220
|
"reflects": true
|
|
8221
8221
|
},
|
|
8222
|
+
{
|
|
8223
|
+
"kind": "field",
|
|
8224
|
+
"name": "persistNavState",
|
|
8225
|
+
"type": {
|
|
8226
|
+
"text": "boolean"
|
|
8227
|
+
},
|
|
8228
|
+
"default": "false",
|
|
8229
|
+
"description": "Controls whether the navigation's open/closed state is persisted across page loads.\nThis is useful for multi-page apps, where clicks on links trigger a full page load.",
|
|
8230
|
+
"attribute": "persist-nav-state"
|
|
8231
|
+
},
|
|
8222
8232
|
{
|
|
8223
8233
|
"kind": "field",
|
|
8224
8234
|
"name": "padding",
|
|
@@ -8442,6 +8452,15 @@
|
|
|
8442
8452
|
"description": "Controls whether the navigation is hidden off-screen or not.\nDefaults to `true` for wide viewports, and `false` otherwise.",
|
|
8443
8453
|
"fieldName": "navOpen"
|
|
8444
8454
|
},
|
|
8455
|
+
{
|
|
8456
|
+
"name": "persist-nav-state",
|
|
8457
|
+
"type": {
|
|
8458
|
+
"text": "boolean"
|
|
8459
|
+
},
|
|
8460
|
+
"default": "false",
|
|
8461
|
+
"description": "Controls whether the navigation's open/closed state is persisted across page loads.\nThis is useful for multi-page apps, where clicks on links trigger a full page load.",
|
|
8462
|
+
"fieldName": "persistNavState"
|
|
8463
|
+
},
|
|
8445
8464
|
{
|
|
8446
8465
|
"name": "padding",
|
|
8447
8466
|
"type": {
|
|
@@ -8499,11 +8518,216 @@
|
|
|
8499
8518
|
},
|
|
8500
8519
|
{
|
|
8501
8520
|
"kind": "javascript-module",
|
|
8502
|
-
"path": "src/
|
|
8521
|
+
"path": "src/message/Message.ts",
|
|
8503
8522
|
"declarations": [
|
|
8504
8523
|
{
|
|
8505
8524
|
"kind": "class",
|
|
8506
|
-
"description": "",
|
|
8525
|
+
"description": "Message represents a specific item within a collection,\nsuch as notifications, tasks or conversations. Message\ncan be placed directly inside a dropdown component.",
|
|
8526
|
+
"name": "Message",
|
|
8527
|
+
"cssProperties": [
|
|
8528
|
+
{
|
|
8529
|
+
"description": "Controls the border color of the message, using our [color tokens](/tokens/#color).",
|
|
8530
|
+
"name": "--n-message-border-color",
|
|
8531
|
+
"default": "var(--n-color-border)"
|
|
8532
|
+
}
|
|
8533
|
+
],
|
|
8534
|
+
"slots": [
|
|
8535
|
+
{
|
|
8536
|
+
"description": "The message content.",
|
|
8537
|
+
"name": ""
|
|
8538
|
+
},
|
|
8539
|
+
{
|
|
8540
|
+
"description": "Used to place content after the message. Typically used for a timestamp.",
|
|
8541
|
+
"name": "footer"
|
|
8542
|
+
}
|
|
8543
|
+
],
|
|
8544
|
+
"members": [
|
|
8545
|
+
{
|
|
8546
|
+
"kind": "field",
|
|
8547
|
+
"name": "localize",
|
|
8548
|
+
"privacy": "private",
|
|
8549
|
+
"default": "new LocalizeController<\"nord-message\">(this)"
|
|
8550
|
+
},
|
|
8551
|
+
{
|
|
8552
|
+
"kind": "field",
|
|
8553
|
+
"name": "href",
|
|
8554
|
+
"type": {
|
|
8555
|
+
"text": "string | undefined"
|
|
8556
|
+
},
|
|
8557
|
+
"description": "The url the message should link to.",
|
|
8558
|
+
"attribute": "href",
|
|
8559
|
+
"reflects": true
|
|
8560
|
+
},
|
|
8561
|
+
{
|
|
8562
|
+
"kind": "field",
|
|
8563
|
+
"name": "highlight",
|
|
8564
|
+
"type": {
|
|
8565
|
+
"text": "boolean | undefined"
|
|
8566
|
+
},
|
|
8567
|
+
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
8568
|
+
"attribute": "highlight",
|
|
8569
|
+
"reflects": true
|
|
8570
|
+
},
|
|
8571
|
+
{
|
|
8572
|
+
"kind": "field",
|
|
8573
|
+
"name": "unread",
|
|
8574
|
+
"type": {
|
|
8575
|
+
"text": "boolean | undefined"
|
|
8576
|
+
},
|
|
8577
|
+
"description": "Mark the message as unread. By default messages are read.",
|
|
8578
|
+
"attribute": "unread",
|
|
8579
|
+
"reflects": true
|
|
8580
|
+
},
|
|
8581
|
+
{
|
|
8582
|
+
"kind": "field",
|
|
8583
|
+
"name": "focusableRef",
|
|
8584
|
+
"privacy": "protected",
|
|
8585
|
+
"inheritedFrom": {
|
|
8586
|
+
"name": "FocusableMixin",
|
|
8587
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8588
|
+
}
|
|
8589
|
+
},
|
|
8590
|
+
{
|
|
8591
|
+
"kind": "method",
|
|
8592
|
+
"name": "focus",
|
|
8593
|
+
"parameters": [
|
|
8594
|
+
{
|
|
8595
|
+
"name": "options",
|
|
8596
|
+
"optional": true,
|
|
8597
|
+
"type": {
|
|
8598
|
+
"text": "FocusOptions"
|
|
8599
|
+
},
|
|
8600
|
+
"description": "An object which controls aspects of the focusing process."
|
|
8601
|
+
}
|
|
8602
|
+
],
|
|
8603
|
+
"description": "Programmatically move focus to the component.",
|
|
8604
|
+
"inheritedFrom": {
|
|
8605
|
+
"name": "FocusableMixin",
|
|
8606
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8607
|
+
}
|
|
8608
|
+
},
|
|
8609
|
+
{
|
|
8610
|
+
"kind": "method",
|
|
8611
|
+
"name": "blur",
|
|
8612
|
+
"description": "Programmatically remove focus from the component.",
|
|
8613
|
+
"inheritedFrom": {
|
|
8614
|
+
"name": "FocusableMixin",
|
|
8615
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8616
|
+
}
|
|
8617
|
+
},
|
|
8618
|
+
{
|
|
8619
|
+
"kind": "method",
|
|
8620
|
+
"name": "click",
|
|
8621
|
+
"description": "Programmatically simulates a click on the component.",
|
|
8622
|
+
"inheritedFrom": {
|
|
8623
|
+
"name": "FocusableMixin",
|
|
8624
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8625
|
+
}
|
|
8626
|
+
}
|
|
8627
|
+
],
|
|
8628
|
+
"attributes": [
|
|
8629
|
+
{
|
|
8630
|
+
"name": "href",
|
|
8631
|
+
"type": {
|
|
8632
|
+
"text": "string | undefined"
|
|
8633
|
+
},
|
|
8634
|
+
"description": "The url the message should link to.",
|
|
8635
|
+
"fieldName": "href"
|
|
8636
|
+
},
|
|
8637
|
+
{
|
|
8638
|
+
"name": "highlight",
|
|
8639
|
+
"type": {
|
|
8640
|
+
"text": "boolean | undefined"
|
|
8641
|
+
},
|
|
8642
|
+
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
8643
|
+
"fieldName": "highlight"
|
|
8644
|
+
},
|
|
8645
|
+
{
|
|
8646
|
+
"name": "unread",
|
|
8647
|
+
"type": {
|
|
8648
|
+
"text": "boolean | undefined"
|
|
8649
|
+
},
|
|
8650
|
+
"description": "Mark the message as unread. By default messages are read.",
|
|
8651
|
+
"fieldName": "unread"
|
|
8652
|
+
}
|
|
8653
|
+
],
|
|
8654
|
+
"mixins": [
|
|
8655
|
+
{
|
|
8656
|
+
"name": "FocusableMixin",
|
|
8657
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
8658
|
+
}
|
|
8659
|
+
],
|
|
8660
|
+
"superclass": {
|
|
8661
|
+
"name": "LitElement",
|
|
8662
|
+
"package": "lit"
|
|
8663
|
+
},
|
|
8664
|
+
"localization": [
|
|
8665
|
+
{
|
|
8666
|
+
"name": "unreadLabel",
|
|
8667
|
+
"description": "Label for the unread messages."
|
|
8668
|
+
}
|
|
8669
|
+
],
|
|
8670
|
+
"status": "draft",
|
|
8671
|
+
"category": "action",
|
|
8672
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Messages should always perform an action when clicked.\n- The click action should navigate to a new page or provide more detail about the message.\n- Mark unread messages as read on user interaction.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t slot other components inside a message.\n\n</div>\n\n---\n\n## Content guidelines\n\nMessage content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the message content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAvoid all caps for messages:\n\n<div class=\"n-usage n-usage-do\">Nina Williams arrived to clinic with Norfryd</div>\n<div class=\"n-usage n-usage-dont\">NINA WILLIAMS ARRIVED TO CLINIC WITH NORFRYD</div>\n",
|
|
8673
|
+
"examples": [],
|
|
8674
|
+
"dependencies": [
|
|
8675
|
+
"dropdown-item"
|
|
8676
|
+
],
|
|
8677
|
+
"tagName": "nord-message",
|
|
8678
|
+
"customElement": true
|
|
8679
|
+
}
|
|
8680
|
+
],
|
|
8681
|
+
"exports": [
|
|
8682
|
+
{
|
|
8683
|
+
"kind": "js",
|
|
8684
|
+
"name": "default",
|
|
8685
|
+
"declaration": {
|
|
8686
|
+
"name": "Message",
|
|
8687
|
+
"module": "src/message/Message.ts"
|
|
8688
|
+
}
|
|
8689
|
+
},
|
|
8690
|
+
{
|
|
8691
|
+
"kind": "custom-element-definition",
|
|
8692
|
+
"name": "nord-message",
|
|
8693
|
+
"declaration": {
|
|
8694
|
+
"name": "Message",
|
|
8695
|
+
"module": "src/message/Message.ts"
|
|
8696
|
+
}
|
|
8697
|
+
}
|
|
8698
|
+
]
|
|
8699
|
+
},
|
|
8700
|
+
{
|
|
8701
|
+
"kind": "javascript-module",
|
|
8702
|
+
"path": "src/message/localization.ts",
|
|
8703
|
+
"declarations": [
|
|
8704
|
+
{
|
|
8705
|
+
"kind": "variable",
|
|
8706
|
+
"name": "localization",
|
|
8707
|
+
"type": {
|
|
8708
|
+
"text": "object"
|
|
8709
|
+
},
|
|
8710
|
+
"default": "{\n unreadLabel: \"Unread\",\n}"
|
|
8711
|
+
}
|
|
8712
|
+
],
|
|
8713
|
+
"exports": [
|
|
8714
|
+
{
|
|
8715
|
+
"kind": "js",
|
|
8716
|
+
"name": "default",
|
|
8717
|
+
"declaration": {
|
|
8718
|
+
"name": "localization",
|
|
8719
|
+
"module": "src/message/localization.ts"
|
|
8720
|
+
}
|
|
8721
|
+
}
|
|
8722
|
+
]
|
|
8723
|
+
},
|
|
8724
|
+
{
|
|
8725
|
+
"kind": "javascript-module",
|
|
8726
|
+
"path": "src/localization/LocalizeController.ts",
|
|
8727
|
+
"declarations": [
|
|
8728
|
+
{
|
|
8729
|
+
"kind": "class",
|
|
8730
|
+
"description": "",
|
|
8507
8731
|
"name": "LocalizeController",
|
|
8508
8732
|
"members": [
|
|
8509
8733
|
{
|
|
@@ -8754,264 +8978,59 @@
|
|
|
8754
8978
|
},
|
|
8755
8979
|
{
|
|
8756
8980
|
"kind": "javascript-module",
|
|
8757
|
-
"path": "src/
|
|
8981
|
+
"path": "src/modal/Modal.ts",
|
|
8758
8982
|
"declarations": [
|
|
8759
8983
|
{
|
|
8760
8984
|
"kind": "class",
|
|
8761
|
-
"description": "
|
|
8762
|
-
"name": "
|
|
8985
|
+
"description": "Modal component is used to display content that temporarily blocks interactions\nwith the main view of an application. Modal should be used sparingly and\nonly when necessary.",
|
|
8986
|
+
"name": "Modal",
|
|
8763
8987
|
"cssProperties": [
|
|
8764
8988
|
{
|
|
8765
|
-
"description": "Controls the
|
|
8766
|
-
"name": "--n-
|
|
8767
|
-
"default": "var(--n-
|
|
8989
|
+
"description": "Controls the padding on the sides of the modal, using our [spacing tokens](/tokens/#space).",
|
|
8990
|
+
"name": "--n-modal-padding-inline",
|
|
8991
|
+
"default": "var(--n-space-m)"
|
|
8992
|
+
},
|
|
8993
|
+
{
|
|
8994
|
+
"description": "Controls the padding above and below the modal, using our [spacing tokens](/tokens/#space).",
|
|
8995
|
+
"name": "--n-modal-padding-block",
|
|
8996
|
+
"default": "var(--n-space-m)"
|
|
8997
|
+
},
|
|
8998
|
+
{
|
|
8999
|
+
"description": "Controls the width of the modal.",
|
|
9000
|
+
"name": "--n-modal-max-inline-size",
|
|
9001
|
+
"default": "620px"
|
|
8768
9002
|
}
|
|
8769
9003
|
],
|
|
8770
9004
|
"slots": [
|
|
8771
9005
|
{
|
|
8772
|
-
"description": "
|
|
9006
|
+
"description": "Default slot",
|
|
8773
9007
|
"name": ""
|
|
8774
9008
|
},
|
|
8775
9009
|
{
|
|
8776
|
-
"description": "
|
|
9010
|
+
"description": "Slot which holds the header of the modal, positioned next to the close button.",
|
|
9011
|
+
"name": "header"
|
|
9012
|
+
},
|
|
9013
|
+
{
|
|
9014
|
+
"description": "Slot which is typically used to hold call to action buttons, but can also be used to build custom footers.",
|
|
8777
9015
|
"name": "footer"
|
|
8778
9016
|
}
|
|
8779
9017
|
],
|
|
8780
9018
|
"members": [
|
|
8781
9019
|
{
|
|
8782
9020
|
"kind": "field",
|
|
8783
|
-
"name": "
|
|
8784
|
-
"
|
|
8785
|
-
|
|
9021
|
+
"name": "modal",
|
|
9022
|
+
"type": {
|
|
9023
|
+
"text": "HTMLDivElement"
|
|
9024
|
+
},
|
|
9025
|
+
"privacy": "private"
|
|
8786
9026
|
},
|
|
8787
9027
|
{
|
|
8788
9028
|
"kind": "field",
|
|
8789
|
-
"name": "
|
|
9029
|
+
"name": "backdrop",
|
|
8790
9030
|
"type": {
|
|
8791
|
-
"text": "
|
|
9031
|
+
"text": "HTMLDivElement"
|
|
8792
9032
|
},
|
|
8793
|
-
"
|
|
8794
|
-
"attribute": "href",
|
|
8795
|
-
"reflects": true
|
|
8796
|
-
},
|
|
8797
|
-
{
|
|
8798
|
-
"kind": "field",
|
|
8799
|
-
"name": "highlight",
|
|
8800
|
-
"type": {
|
|
8801
|
-
"text": "boolean | undefined"
|
|
8802
|
-
},
|
|
8803
|
-
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
8804
|
-
"attribute": "highlight",
|
|
8805
|
-
"reflects": true
|
|
8806
|
-
},
|
|
8807
|
-
{
|
|
8808
|
-
"kind": "field",
|
|
8809
|
-
"name": "unread",
|
|
8810
|
-
"type": {
|
|
8811
|
-
"text": "boolean | undefined"
|
|
8812
|
-
},
|
|
8813
|
-
"description": "Mark the message as unread. By default messages are read.",
|
|
8814
|
-
"attribute": "unread",
|
|
8815
|
-
"reflects": true
|
|
8816
|
-
},
|
|
8817
|
-
{
|
|
8818
|
-
"kind": "field",
|
|
8819
|
-
"name": "focusableRef",
|
|
8820
|
-
"privacy": "protected",
|
|
8821
|
-
"inheritedFrom": {
|
|
8822
|
-
"name": "FocusableMixin",
|
|
8823
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8824
|
-
}
|
|
8825
|
-
},
|
|
8826
|
-
{
|
|
8827
|
-
"kind": "method",
|
|
8828
|
-
"name": "focus",
|
|
8829
|
-
"parameters": [
|
|
8830
|
-
{
|
|
8831
|
-
"name": "options",
|
|
8832
|
-
"optional": true,
|
|
8833
|
-
"type": {
|
|
8834
|
-
"text": "FocusOptions"
|
|
8835
|
-
},
|
|
8836
|
-
"description": "An object which controls aspects of the focusing process."
|
|
8837
|
-
}
|
|
8838
|
-
],
|
|
8839
|
-
"description": "Programmatically move focus to the component.",
|
|
8840
|
-
"inheritedFrom": {
|
|
8841
|
-
"name": "FocusableMixin",
|
|
8842
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8843
|
-
}
|
|
8844
|
-
},
|
|
8845
|
-
{
|
|
8846
|
-
"kind": "method",
|
|
8847
|
-
"name": "blur",
|
|
8848
|
-
"description": "Programmatically remove focus from the component.",
|
|
8849
|
-
"inheritedFrom": {
|
|
8850
|
-
"name": "FocusableMixin",
|
|
8851
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8852
|
-
}
|
|
8853
|
-
},
|
|
8854
|
-
{
|
|
8855
|
-
"kind": "method",
|
|
8856
|
-
"name": "click",
|
|
8857
|
-
"description": "Programmatically simulates a click on the component.",
|
|
8858
|
-
"inheritedFrom": {
|
|
8859
|
-
"name": "FocusableMixin",
|
|
8860
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8861
|
-
}
|
|
8862
|
-
}
|
|
8863
|
-
],
|
|
8864
|
-
"attributes": [
|
|
8865
|
-
{
|
|
8866
|
-
"name": "href",
|
|
8867
|
-
"type": {
|
|
8868
|
-
"text": "string | undefined"
|
|
8869
|
-
},
|
|
8870
|
-
"description": "The url the message should link to.",
|
|
8871
|
-
"fieldName": "href"
|
|
8872
|
-
},
|
|
8873
|
-
{
|
|
8874
|
-
"name": "highlight",
|
|
8875
|
-
"type": {
|
|
8876
|
-
"text": "boolean | undefined"
|
|
8877
|
-
},
|
|
8878
|
-
"description": "Highlight the message visually. This is meant for highlighting\na new message that just appeared. Highlight style should be removed\nafter the user has seen the message and there’s been a timeout of\ne.g. 30 seconds.",
|
|
8879
|
-
"fieldName": "highlight"
|
|
8880
|
-
},
|
|
8881
|
-
{
|
|
8882
|
-
"name": "unread",
|
|
8883
|
-
"type": {
|
|
8884
|
-
"text": "boolean | undefined"
|
|
8885
|
-
},
|
|
8886
|
-
"description": "Mark the message as unread. By default messages are read.",
|
|
8887
|
-
"fieldName": "unread"
|
|
8888
|
-
}
|
|
8889
|
-
],
|
|
8890
|
-
"mixins": [
|
|
8891
|
-
{
|
|
8892
|
-
"name": "FocusableMixin",
|
|
8893
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
8894
|
-
}
|
|
8895
|
-
],
|
|
8896
|
-
"superclass": {
|
|
8897
|
-
"name": "LitElement",
|
|
8898
|
-
"package": "lit"
|
|
8899
|
-
},
|
|
8900
|
-
"localization": [
|
|
8901
|
-
{
|
|
8902
|
-
"name": "unreadLabel",
|
|
8903
|
-
"description": "Label for the unread messages."
|
|
8904
|
-
}
|
|
8905
|
-
],
|
|
8906
|
-
"status": "draft",
|
|
8907
|
-
"category": "action",
|
|
8908
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Messages should always perform an action when clicked.\n- The click action should navigate to a new page or provide more detail about the message.\n- Mark unread messages as read on user interaction.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t slot other components inside a message.\n\n</div>\n\n---\n\n## Content guidelines\n\nMessage content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the message content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAvoid all caps for messages:\n\n<div class=\"n-usage n-usage-do\">Nina Williams arrived to clinic with Norfryd</div>\n<div class=\"n-usage n-usage-dont\">NINA WILLIAMS ARRIVED TO CLINIC WITH NORFRYD</div>\n",
|
|
8909
|
-
"examples": [],
|
|
8910
|
-
"dependencies": [
|
|
8911
|
-
"dropdown-item"
|
|
8912
|
-
],
|
|
8913
|
-
"tagName": "nord-message",
|
|
8914
|
-
"customElement": true
|
|
8915
|
-
}
|
|
8916
|
-
],
|
|
8917
|
-
"exports": [
|
|
8918
|
-
{
|
|
8919
|
-
"kind": "js",
|
|
8920
|
-
"name": "default",
|
|
8921
|
-
"declaration": {
|
|
8922
|
-
"name": "Message",
|
|
8923
|
-
"module": "src/message/Message.ts"
|
|
8924
|
-
}
|
|
8925
|
-
},
|
|
8926
|
-
{
|
|
8927
|
-
"kind": "custom-element-definition",
|
|
8928
|
-
"name": "nord-message",
|
|
8929
|
-
"declaration": {
|
|
8930
|
-
"name": "Message",
|
|
8931
|
-
"module": "src/message/Message.ts"
|
|
8932
|
-
}
|
|
8933
|
-
}
|
|
8934
|
-
]
|
|
8935
|
-
},
|
|
8936
|
-
{
|
|
8937
|
-
"kind": "javascript-module",
|
|
8938
|
-
"path": "src/message/localization.ts",
|
|
8939
|
-
"declarations": [
|
|
8940
|
-
{
|
|
8941
|
-
"kind": "variable",
|
|
8942
|
-
"name": "localization",
|
|
8943
|
-
"type": {
|
|
8944
|
-
"text": "object"
|
|
8945
|
-
},
|
|
8946
|
-
"default": "{\n unreadLabel: \"Unread\",\n}"
|
|
8947
|
-
}
|
|
8948
|
-
],
|
|
8949
|
-
"exports": [
|
|
8950
|
-
{
|
|
8951
|
-
"kind": "js",
|
|
8952
|
-
"name": "default",
|
|
8953
|
-
"declaration": {
|
|
8954
|
-
"name": "localization",
|
|
8955
|
-
"module": "src/message/localization.ts"
|
|
8956
|
-
}
|
|
8957
|
-
}
|
|
8958
|
-
]
|
|
8959
|
-
},
|
|
8960
|
-
{
|
|
8961
|
-
"kind": "javascript-module",
|
|
8962
|
-
"path": "src/modal/Modal.ts",
|
|
8963
|
-
"declarations": [
|
|
8964
|
-
{
|
|
8965
|
-
"kind": "class",
|
|
8966
|
-
"description": "Modal component is used to display content that temporarily blocks interactions\nwith the main view of an application. Modal should be used sparingly and\nonly when necessary.",
|
|
8967
|
-
"name": "Modal",
|
|
8968
|
-
"cssProperties": [
|
|
8969
|
-
{
|
|
8970
|
-
"description": "Controls the padding on the sides of the modal, using our [spacing tokens](/tokens/#space).",
|
|
8971
|
-
"name": "--n-modal-padding-inline",
|
|
8972
|
-
"default": "var(--n-space-m)"
|
|
8973
|
-
},
|
|
8974
|
-
{
|
|
8975
|
-
"description": "Controls the padding above and below the modal, using our [spacing tokens](/tokens/#space).",
|
|
8976
|
-
"name": "--n-modal-padding-block",
|
|
8977
|
-
"default": "var(--n-space-m)"
|
|
8978
|
-
},
|
|
8979
|
-
{
|
|
8980
|
-
"description": "Controls the width of the modal.",
|
|
8981
|
-
"name": "--n-modal-max-inline-size",
|
|
8982
|
-
"default": "620px"
|
|
8983
|
-
}
|
|
8984
|
-
],
|
|
8985
|
-
"slots": [
|
|
8986
|
-
{
|
|
8987
|
-
"description": "Default slot",
|
|
8988
|
-
"name": ""
|
|
8989
|
-
},
|
|
8990
|
-
{
|
|
8991
|
-
"description": "Slot which holds the header of the modal, positioned next to the close button.",
|
|
8992
|
-
"name": "header"
|
|
8993
|
-
},
|
|
8994
|
-
{
|
|
8995
|
-
"description": "Slot which is typically used to hold call to action buttons, but can also be used to build custom footers.",
|
|
8996
|
-
"name": "footer"
|
|
8997
|
-
}
|
|
8998
|
-
],
|
|
8999
|
-
"members": [
|
|
9000
|
-
{
|
|
9001
|
-
"kind": "field",
|
|
9002
|
-
"name": "modal",
|
|
9003
|
-
"type": {
|
|
9004
|
-
"text": "HTMLDivElement"
|
|
9005
|
-
},
|
|
9006
|
-
"privacy": "private"
|
|
9007
|
-
},
|
|
9008
|
-
{
|
|
9009
|
-
"kind": "field",
|
|
9010
|
-
"name": "backdrop",
|
|
9011
|
-
"type": {
|
|
9012
|
-
"text": "HTMLDivElement"
|
|
9013
|
-
},
|
|
9014
|
-
"privacy": "private"
|
|
9033
|
+
"privacy": "private"
|
|
9015
9034
|
},
|
|
9016
9035
|
{
|
|
9017
9036
|
"kind": "field",
|
|
@@ -9952,6 +9971,165 @@
|
|
|
9952
9971
|
}
|
|
9953
9972
|
]
|
|
9954
9973
|
},
|
|
9974
|
+
{
|
|
9975
|
+
"kind": "javascript-module",
|
|
9976
|
+
"path": "src/notification/Notification.ts",
|
|
9977
|
+
"declarations": [
|
|
9978
|
+
{
|
|
9979
|
+
"kind": "class",
|
|
9980
|
+
"description": "Notifications provide important information that requires action or acknowledgement.\nA notification is displayed until the user dismisses it.",
|
|
9981
|
+
"name": "Notification",
|
|
9982
|
+
"slots": [
|
|
9983
|
+
{
|
|
9984
|
+
"description": "Default slot used for the notification text/message.",
|
|
9985
|
+
"name": ""
|
|
9986
|
+
},
|
|
9987
|
+
{
|
|
9988
|
+
"description": "Slot used for the notification icon.",
|
|
9989
|
+
"name": "icon"
|
|
9990
|
+
}
|
|
9991
|
+
],
|
|
9992
|
+
"members": [
|
|
9993
|
+
{
|
|
9994
|
+
"kind": "field",
|
|
9995
|
+
"name": "localize",
|
|
9996
|
+
"privacy": "private",
|
|
9997
|
+
"default": "new LocalizeController<\"nord-notification\">(this)"
|
|
9998
|
+
},
|
|
9999
|
+
{
|
|
10000
|
+
"kind": "field",
|
|
10001
|
+
"name": "notificationRef",
|
|
10002
|
+
"privacy": "protected",
|
|
10003
|
+
"inheritedFrom": {
|
|
10004
|
+
"name": "NotificationMixin",
|
|
10005
|
+
"module": "src/common/mixins/NotificationMixin.ts"
|
|
10006
|
+
}
|
|
10007
|
+
},
|
|
10008
|
+
{
|
|
10009
|
+
"kind": "field",
|
|
10010
|
+
"name": "dismissed",
|
|
10011
|
+
"type": {
|
|
10012
|
+
"text": "boolean"
|
|
10013
|
+
},
|
|
10014
|
+
"privacy": "protected",
|
|
10015
|
+
"default": "false",
|
|
10016
|
+
"inheritedFrom": {
|
|
10017
|
+
"name": "NotificationMixin",
|
|
10018
|
+
"module": "src/common/mixins/NotificationMixin.ts"
|
|
10019
|
+
}
|
|
10020
|
+
},
|
|
10021
|
+
{
|
|
10022
|
+
"kind": "method",
|
|
10023
|
+
"name": "dismiss",
|
|
10024
|
+
"description": "Programmatically dismiss the notification.\nThe returned promise resolves when notification's exit animation is complete.",
|
|
10025
|
+
"inheritedFrom": {
|
|
10026
|
+
"name": "NotificationMixin",
|
|
10027
|
+
"module": "src/common/mixins/NotificationMixin.ts"
|
|
10028
|
+
}
|
|
10029
|
+
},
|
|
10030
|
+
{
|
|
10031
|
+
"kind": "field",
|
|
10032
|
+
"name": "_warningLogged",
|
|
10033
|
+
"type": {
|
|
10034
|
+
"text": "boolean"
|
|
10035
|
+
},
|
|
10036
|
+
"privacy": "private",
|
|
10037
|
+
"static": true,
|
|
10038
|
+
"default": "false",
|
|
10039
|
+
"inheritedFrom": {
|
|
10040
|
+
"name": "DraftComponentMixin",
|
|
10041
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10042
|
+
}
|
|
10043
|
+
}
|
|
10044
|
+
],
|
|
10045
|
+
"events": [
|
|
10046
|
+
{
|
|
10047
|
+
"name": "dismiss",
|
|
10048
|
+
"type": {
|
|
10049
|
+
"text": "NordEvent"
|
|
10050
|
+
},
|
|
10051
|
+
"description": "Fired when the notification is dismissed, and its exit animation has completed. This event should be used to remove the dismissed notification from the DOM.",
|
|
10052
|
+
"inheritedFrom": {
|
|
10053
|
+
"name": "NotificationMixin",
|
|
10054
|
+
"module": "src/common/mixins/NotificationMixin.ts"
|
|
10055
|
+
}
|
|
10056
|
+
}
|
|
10057
|
+
],
|
|
10058
|
+
"mixins": [
|
|
10059
|
+
{
|
|
10060
|
+
"name": "NotificationMixin",
|
|
10061
|
+
"module": "/src/common/mixins/NotificationMixin.js"
|
|
10062
|
+
},
|
|
10063
|
+
{
|
|
10064
|
+
"name": "DraftComponentMixin",
|
|
10065
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
10066
|
+
}
|
|
10067
|
+
],
|
|
10068
|
+
"superclass": {
|
|
10069
|
+
"name": "LitElement",
|
|
10070
|
+
"package": "lit"
|
|
10071
|
+
},
|
|
10072
|
+
"localization": [
|
|
10073
|
+
{
|
|
10074
|
+
"name": "dismissLabel",
|
|
10075
|
+
"description": "Accessible label for the dismiss button."
|
|
10076
|
+
}
|
|
10077
|
+
],
|
|
10078
|
+
"status": "draft",
|
|
10079
|
+
"category": "feedback",
|
|
10080
|
+
"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 short messages that describe the purpose of the notification.\n- Use for important updates that require user action/attention.\n- Provide a single call to action within the notification.\n- Use in combination with [Notification group](../notification-group/) so that notifications get styled and positioned correctly.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for transient or unimportant messages. Consider using a [Toast](/components/toast) instead.\n- Don't remove a notification until a user has explicitly dismissed, or acted on the notification.\n- Don’t use for error messages unless absolutely necessary. Try to favor a [Banner](/components/banner/) for error messaging instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nNotification content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the notification content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAction link labels in notifications should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing action link labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Start Consultation</div>\n\nAvoid unnecessary words and articles in action link labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
|
|
10081
|
+
"examples": [],
|
|
10082
|
+
"dependencies": [
|
|
10083
|
+
"stack",
|
|
10084
|
+
"icon"
|
|
10085
|
+
],
|
|
10086
|
+
"tagName": "nord-notification",
|
|
10087
|
+
"customElement": true
|
|
10088
|
+
}
|
|
10089
|
+
],
|
|
10090
|
+
"exports": [
|
|
10091
|
+
{
|
|
10092
|
+
"kind": "js",
|
|
10093
|
+
"name": "default",
|
|
10094
|
+
"declaration": {
|
|
10095
|
+
"name": "Notification",
|
|
10096
|
+
"module": "src/notification/Notification.ts"
|
|
10097
|
+
}
|
|
10098
|
+
},
|
|
10099
|
+
{
|
|
10100
|
+
"kind": "custom-element-definition",
|
|
10101
|
+
"name": "nord-notification",
|
|
10102
|
+
"declaration": {
|
|
10103
|
+
"name": "Notification",
|
|
10104
|
+
"module": "src/notification/Notification.ts"
|
|
10105
|
+
}
|
|
10106
|
+
}
|
|
10107
|
+
]
|
|
10108
|
+
},
|
|
10109
|
+
{
|
|
10110
|
+
"kind": "javascript-module",
|
|
10111
|
+
"path": "src/notification/localization.ts",
|
|
10112
|
+
"declarations": [
|
|
10113
|
+
{
|
|
10114
|
+
"kind": "variable",
|
|
10115
|
+
"name": "localization",
|
|
10116
|
+
"type": {
|
|
10117
|
+
"text": "object"
|
|
10118
|
+
},
|
|
10119
|
+
"default": "{\n dismissLabel: \"Dismiss notification\",\n}"
|
|
10120
|
+
}
|
|
10121
|
+
],
|
|
10122
|
+
"exports": [
|
|
10123
|
+
{
|
|
10124
|
+
"kind": "js",
|
|
10125
|
+
"name": "default",
|
|
10126
|
+
"declaration": {
|
|
10127
|
+
"name": "localization",
|
|
10128
|
+
"module": "src/notification/localization.ts"
|
|
10129
|
+
}
|
|
10130
|
+
}
|
|
10131
|
+
]
|
|
10132
|
+
},
|
|
9955
10133
|
{
|
|
9956
10134
|
"kind": "javascript-module",
|
|
9957
10135
|
"path": "src/notification-group/NotificationGroup.ts",
|
|
@@ -9962,30 +10140,202 @@
|
|
|
9962
10140
|
"name": "NotificationGroup",
|
|
9963
10141
|
"slots": [
|
|
9964
10142
|
{
|
|
9965
|
-
"description": "Default slot in which to place notifications.",
|
|
9966
|
-
"name": ""
|
|
10143
|
+
"description": "Default slot in which to place notifications.",
|
|
10144
|
+
"name": ""
|
|
10145
|
+
}
|
|
10146
|
+
],
|
|
10147
|
+
"members": [
|
|
10148
|
+
{
|
|
10149
|
+
"kind": "field",
|
|
10150
|
+
"name": "_warningLogged",
|
|
10151
|
+
"type": {
|
|
10152
|
+
"text": "boolean"
|
|
10153
|
+
},
|
|
10154
|
+
"privacy": "private",
|
|
10155
|
+
"static": true,
|
|
10156
|
+
"default": "false",
|
|
10157
|
+
"inheritedFrom": {
|
|
10158
|
+
"name": "DraftComponentMixin",
|
|
10159
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10160
|
+
}
|
|
10161
|
+
}
|
|
10162
|
+
],
|
|
10163
|
+
"mixins": [
|
|
10164
|
+
{
|
|
10165
|
+
"name": "DraftComponentMixin",
|
|
10166
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
10167
|
+
}
|
|
10168
|
+
],
|
|
10169
|
+
"superclass": {
|
|
10170
|
+
"name": "LitElement",
|
|
10171
|
+
"package": "lit"
|
|
10172
|
+
},
|
|
10173
|
+
"localization": [],
|
|
10174
|
+
"status": "draft",
|
|
10175
|
+
"category": "feedback",
|
|
10176
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use in combination with [Notification](/components/notification/) so that notifications get styled and positioned correctly.\n- Add as close to the start of your main content area as possible.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than notification components\n\n</div>\n\n---\n\n## Content guidelines\n\nNotification content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the notification content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAction link labels in notifications should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing action link labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Start Consultation</div>\n\nAvoid unnecessary words and articles in action link labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
|
|
10177
|
+
"examples": [],
|
|
10178
|
+
"dependencies": [],
|
|
10179
|
+
"tagName": "nord-notification-group",
|
|
10180
|
+
"customElement": true
|
|
10181
|
+
}
|
|
10182
|
+
],
|
|
10183
|
+
"exports": [
|
|
10184
|
+
{
|
|
10185
|
+
"kind": "js",
|
|
10186
|
+
"name": "default",
|
|
10187
|
+
"declaration": {
|
|
10188
|
+
"name": "NotificationGroup",
|
|
10189
|
+
"module": "src/notification-group/NotificationGroup.ts"
|
|
10190
|
+
}
|
|
10191
|
+
},
|
|
10192
|
+
{
|
|
10193
|
+
"kind": "custom-element-definition",
|
|
10194
|
+
"name": "nord-notification-group",
|
|
10195
|
+
"declaration": {
|
|
10196
|
+
"name": "NotificationGroup",
|
|
10197
|
+
"module": "src/notification-group/NotificationGroup.ts"
|
|
10198
|
+
}
|
|
10199
|
+
}
|
|
10200
|
+
]
|
|
10201
|
+
},
|
|
10202
|
+
{
|
|
10203
|
+
"kind": "javascript-module",
|
|
10204
|
+
"path": "src/progress-bar/ProgressBar.ts",
|
|
10205
|
+
"declarations": [
|
|
10206
|
+
{
|
|
10207
|
+
"kind": "class",
|
|
10208
|
+
"description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
|
|
10209
|
+
"name": "ProgressBar",
|
|
10210
|
+
"cssProperties": [
|
|
10211
|
+
{
|
|
10212
|
+
"description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
|
|
10213
|
+
"name": "--n-progress-size",
|
|
10214
|
+
"default": "var(--n-space-s)"
|
|
10215
|
+
},
|
|
10216
|
+
{
|
|
10217
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
10218
|
+
"name": "--n-progress-border-radius",
|
|
10219
|
+
"default": "var(--n-border-radius-s)"
|
|
10220
|
+
},
|
|
10221
|
+
{
|
|
10222
|
+
"description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
|
|
10223
|
+
"name": "--n-progress-color",
|
|
10224
|
+
"default": "var(--n-color-accent)"
|
|
10225
|
+
}
|
|
10226
|
+
],
|
|
10227
|
+
"members": [
|
|
10228
|
+
{
|
|
10229
|
+
"kind": "field",
|
|
10230
|
+
"name": "value",
|
|
10231
|
+
"type": {
|
|
10232
|
+
"text": "number | undefined"
|
|
10233
|
+
},
|
|
10234
|
+
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
10235
|
+
"attribute": "value",
|
|
10236
|
+
"reflects": true
|
|
10237
|
+
},
|
|
10238
|
+
{
|
|
10239
|
+
"kind": "field",
|
|
10240
|
+
"name": "max",
|
|
10241
|
+
"type": {
|
|
10242
|
+
"text": "number"
|
|
10243
|
+
},
|
|
10244
|
+
"default": "100",
|
|
10245
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
10246
|
+
"attribute": "max",
|
|
10247
|
+
"reflects": true
|
|
10248
|
+
},
|
|
10249
|
+
{
|
|
10250
|
+
"kind": "field",
|
|
10251
|
+
"name": "label",
|
|
10252
|
+
"type": {
|
|
10253
|
+
"text": "string"
|
|
10254
|
+
},
|
|
10255
|
+
"default": "\"Current progress\"",
|
|
10256
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
10257
|
+
"attribute": "label",
|
|
10258
|
+
"reflects": true
|
|
10259
|
+
},
|
|
10260
|
+
{
|
|
10261
|
+
"kind": "field",
|
|
10262
|
+
"name": "focusableRef",
|
|
10263
|
+
"privacy": "protected",
|
|
10264
|
+
"inheritedFrom": {
|
|
10265
|
+
"name": "FocusableMixin",
|
|
10266
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10267
|
+
}
|
|
10268
|
+
},
|
|
10269
|
+
{
|
|
10270
|
+
"kind": "method",
|
|
10271
|
+
"name": "focus",
|
|
10272
|
+
"parameters": [
|
|
10273
|
+
{
|
|
10274
|
+
"name": "options",
|
|
10275
|
+
"optional": true,
|
|
10276
|
+
"type": {
|
|
10277
|
+
"text": "FocusOptions"
|
|
10278
|
+
},
|
|
10279
|
+
"description": "An object which controls aspects of the focusing process."
|
|
10280
|
+
}
|
|
10281
|
+
],
|
|
10282
|
+
"description": "Programmatically move focus to the component.",
|
|
10283
|
+
"inheritedFrom": {
|
|
10284
|
+
"name": "FocusableMixin",
|
|
10285
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10286
|
+
}
|
|
10287
|
+
},
|
|
10288
|
+
{
|
|
10289
|
+
"kind": "method",
|
|
10290
|
+
"name": "blur",
|
|
10291
|
+
"description": "Programmatically remove focus from the component.",
|
|
10292
|
+
"inheritedFrom": {
|
|
10293
|
+
"name": "FocusableMixin",
|
|
10294
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10295
|
+
}
|
|
10296
|
+
},
|
|
10297
|
+
{
|
|
10298
|
+
"kind": "method",
|
|
10299
|
+
"name": "click",
|
|
10300
|
+
"description": "Programmatically simulates a click on the component.",
|
|
10301
|
+
"inheritedFrom": {
|
|
10302
|
+
"name": "FocusableMixin",
|
|
10303
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10304
|
+
}
|
|
9967
10305
|
}
|
|
9968
10306
|
],
|
|
9969
|
-
"
|
|
10307
|
+
"attributes": [
|
|
9970
10308
|
{
|
|
9971
|
-
"
|
|
9972
|
-
"name": "_warningLogged",
|
|
10309
|
+
"name": "value",
|
|
9973
10310
|
"type": {
|
|
9974
|
-
"text": "
|
|
10311
|
+
"text": "number | undefined"
|
|
9975
10312
|
},
|
|
9976
|
-
"
|
|
9977
|
-
"
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
10313
|
+
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
10314
|
+
"fieldName": "value"
|
|
10315
|
+
},
|
|
10316
|
+
{
|
|
10317
|
+
"name": "max",
|
|
10318
|
+
"type": {
|
|
10319
|
+
"text": "number"
|
|
10320
|
+
},
|
|
10321
|
+
"default": "100",
|
|
10322
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
10323
|
+
"fieldName": "max"
|
|
10324
|
+
},
|
|
10325
|
+
{
|
|
10326
|
+
"name": "label",
|
|
10327
|
+
"type": {
|
|
10328
|
+
"text": "string"
|
|
10329
|
+
},
|
|
10330
|
+
"default": "\"Current progress\"",
|
|
10331
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
10332
|
+
"fieldName": "label"
|
|
9983
10333
|
}
|
|
9984
10334
|
],
|
|
9985
10335
|
"mixins": [
|
|
9986
10336
|
{
|
|
9987
|
-
"name": "
|
|
9988
|
-
"module": "/src/common/mixins/
|
|
10337
|
+
"name": "FocusableMixin",
|
|
10338
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
9989
10339
|
}
|
|
9990
10340
|
],
|
|
9991
10341
|
"superclass": {
|
|
@@ -9993,12 +10343,12 @@
|
|
|
9993
10343
|
"package": "lit"
|
|
9994
10344
|
},
|
|
9995
10345
|
"localization": [],
|
|
9996
|
-
"status": "
|
|
10346
|
+
"status": "ready",
|
|
9997
10347
|
"category": "feedback",
|
|
9998
|
-
"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
|
|
10348
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
|
|
9999
10349
|
"examples": [],
|
|
10000
10350
|
"dependencies": [],
|
|
10001
|
-
"tagName": "nord-
|
|
10351
|
+
"tagName": "nord-progress-bar",
|
|
10002
10352
|
"customElement": true
|
|
10003
10353
|
}
|
|
10004
10354
|
],
|
|
@@ -10007,16 +10357,16 @@
|
|
|
10007
10357
|
"kind": "js",
|
|
10008
10358
|
"name": "default",
|
|
10009
10359
|
"declaration": {
|
|
10010
|
-
"name": "
|
|
10011
|
-
"module": "src/
|
|
10360
|
+
"name": "ProgressBar",
|
|
10361
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
10012
10362
|
}
|
|
10013
10363
|
},
|
|
10014
10364
|
{
|
|
10015
10365
|
"kind": "custom-element-definition",
|
|
10016
|
-
"name": "nord-
|
|
10366
|
+
"name": "nord-progress-bar",
|
|
10017
10367
|
"declaration": {
|
|
10018
|
-
"name": "
|
|
10019
|
-
"module": "src/
|
|
10368
|
+
"name": "ProgressBar",
|
|
10369
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
10020
10370
|
}
|
|
10021
10371
|
}
|
|
10022
10372
|
]
|
|
@@ -10359,179 +10709,7 @@
|
|
|
10359
10709
|
"name": "nord-popout",
|
|
10360
10710
|
"declaration": {
|
|
10361
10711
|
"name": "Popout",
|
|
10362
|
-
"module": "src/popout/Popout.ts"
|
|
10363
|
-
}
|
|
10364
|
-
}
|
|
10365
|
-
]
|
|
10366
|
-
},
|
|
10367
|
-
{
|
|
10368
|
-
"kind": "javascript-module",
|
|
10369
|
-
"path": "src/progress-bar/ProgressBar.ts",
|
|
10370
|
-
"declarations": [
|
|
10371
|
-
{
|
|
10372
|
-
"kind": "class",
|
|
10373
|
-
"description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
|
|
10374
|
-
"name": "ProgressBar",
|
|
10375
|
-
"cssProperties": [
|
|
10376
|
-
{
|
|
10377
|
-
"description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
|
|
10378
|
-
"name": "--n-progress-size",
|
|
10379
|
-
"default": "var(--n-space-s)"
|
|
10380
|
-
},
|
|
10381
|
-
{
|
|
10382
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
10383
|
-
"name": "--n-progress-border-radius",
|
|
10384
|
-
"default": "var(--n-border-radius-s)"
|
|
10385
|
-
},
|
|
10386
|
-
{
|
|
10387
|
-
"description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
|
|
10388
|
-
"name": "--n-progress-color",
|
|
10389
|
-
"default": "var(--n-color-accent)"
|
|
10390
|
-
}
|
|
10391
|
-
],
|
|
10392
|
-
"members": [
|
|
10393
|
-
{
|
|
10394
|
-
"kind": "field",
|
|
10395
|
-
"name": "value",
|
|
10396
|
-
"type": {
|
|
10397
|
-
"text": "number | undefined"
|
|
10398
|
-
},
|
|
10399
|
-
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
10400
|
-
"attribute": "value",
|
|
10401
|
-
"reflects": true
|
|
10402
|
-
},
|
|
10403
|
-
{
|
|
10404
|
-
"kind": "field",
|
|
10405
|
-
"name": "max",
|
|
10406
|
-
"type": {
|
|
10407
|
-
"text": "number"
|
|
10408
|
-
},
|
|
10409
|
-
"default": "100",
|
|
10410
|
-
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
10411
|
-
"attribute": "max",
|
|
10412
|
-
"reflects": true
|
|
10413
|
-
},
|
|
10414
|
-
{
|
|
10415
|
-
"kind": "field",
|
|
10416
|
-
"name": "label",
|
|
10417
|
-
"type": {
|
|
10418
|
-
"text": "string"
|
|
10419
|
-
},
|
|
10420
|
-
"default": "\"Current progress\"",
|
|
10421
|
-
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
10422
|
-
"attribute": "label",
|
|
10423
|
-
"reflects": true
|
|
10424
|
-
},
|
|
10425
|
-
{
|
|
10426
|
-
"kind": "field",
|
|
10427
|
-
"name": "focusableRef",
|
|
10428
|
-
"privacy": "protected",
|
|
10429
|
-
"inheritedFrom": {
|
|
10430
|
-
"name": "FocusableMixin",
|
|
10431
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10432
|
-
}
|
|
10433
|
-
},
|
|
10434
|
-
{
|
|
10435
|
-
"kind": "method",
|
|
10436
|
-
"name": "focus",
|
|
10437
|
-
"parameters": [
|
|
10438
|
-
{
|
|
10439
|
-
"name": "options",
|
|
10440
|
-
"optional": true,
|
|
10441
|
-
"type": {
|
|
10442
|
-
"text": "FocusOptions"
|
|
10443
|
-
},
|
|
10444
|
-
"description": "An object which controls aspects of the focusing process."
|
|
10445
|
-
}
|
|
10446
|
-
],
|
|
10447
|
-
"description": "Programmatically move focus to the component.",
|
|
10448
|
-
"inheritedFrom": {
|
|
10449
|
-
"name": "FocusableMixin",
|
|
10450
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10451
|
-
}
|
|
10452
|
-
},
|
|
10453
|
-
{
|
|
10454
|
-
"kind": "method",
|
|
10455
|
-
"name": "blur",
|
|
10456
|
-
"description": "Programmatically remove focus from the component.",
|
|
10457
|
-
"inheritedFrom": {
|
|
10458
|
-
"name": "FocusableMixin",
|
|
10459
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10460
|
-
}
|
|
10461
|
-
},
|
|
10462
|
-
{
|
|
10463
|
-
"kind": "method",
|
|
10464
|
-
"name": "click",
|
|
10465
|
-
"description": "Programmatically simulates a click on the component.",
|
|
10466
|
-
"inheritedFrom": {
|
|
10467
|
-
"name": "FocusableMixin",
|
|
10468
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10469
|
-
}
|
|
10470
|
-
}
|
|
10471
|
-
],
|
|
10472
|
-
"attributes": [
|
|
10473
|
-
{
|
|
10474
|
-
"name": "value",
|
|
10475
|
-
"type": {
|
|
10476
|
-
"text": "number | undefined"
|
|
10477
|
-
},
|
|
10478
|
-
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
10479
|
-
"fieldName": "value"
|
|
10480
|
-
},
|
|
10481
|
-
{
|
|
10482
|
-
"name": "max",
|
|
10483
|
-
"type": {
|
|
10484
|
-
"text": "number"
|
|
10485
|
-
},
|
|
10486
|
-
"default": "100",
|
|
10487
|
-
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
10488
|
-
"fieldName": "max"
|
|
10489
|
-
},
|
|
10490
|
-
{
|
|
10491
|
-
"name": "label",
|
|
10492
|
-
"type": {
|
|
10493
|
-
"text": "string"
|
|
10494
|
-
},
|
|
10495
|
-
"default": "\"Current progress\"",
|
|
10496
|
-
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
10497
|
-
"fieldName": "label"
|
|
10498
|
-
}
|
|
10499
|
-
],
|
|
10500
|
-
"mixins": [
|
|
10501
|
-
{
|
|
10502
|
-
"name": "FocusableMixin",
|
|
10503
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
10504
|
-
}
|
|
10505
|
-
],
|
|
10506
|
-
"superclass": {
|
|
10507
|
-
"name": "LitElement",
|
|
10508
|
-
"package": "lit"
|
|
10509
|
-
},
|
|
10510
|
-
"localization": [],
|
|
10511
|
-
"status": "ready",
|
|
10512
|
-
"category": "feedback",
|
|
10513
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
|
|
10514
|
-
"examples": [],
|
|
10515
|
-
"dependencies": [],
|
|
10516
|
-
"tagName": "nord-progress-bar",
|
|
10517
|
-
"customElement": true
|
|
10518
|
-
}
|
|
10519
|
-
],
|
|
10520
|
-
"exports": [
|
|
10521
|
-
{
|
|
10522
|
-
"kind": "js",
|
|
10523
|
-
"name": "default",
|
|
10524
|
-
"declaration": {
|
|
10525
|
-
"name": "ProgressBar",
|
|
10526
|
-
"module": "src/progress-bar/ProgressBar.ts"
|
|
10527
|
-
}
|
|
10528
|
-
},
|
|
10529
|
-
{
|
|
10530
|
-
"kind": "custom-element-definition",
|
|
10531
|
-
"name": "nord-progress-bar",
|
|
10532
|
-
"declaration": {
|
|
10533
|
-
"name": "ProgressBar",
|
|
10534
|
-
"module": "src/progress-bar/ProgressBar.ts"
|
|
10712
|
+
"module": "src/popout/Popout.ts"
|
|
10535
10713
|
}
|
|
10536
10714
|
}
|
|
10537
10715
|
]
|
|
@@ -13459,6 +13637,54 @@
|
|
|
13459
13637
|
}
|
|
13460
13638
|
]
|
|
13461
13639
|
},
|
|
13640
|
+
{
|
|
13641
|
+
"kind": "javascript-module",
|
|
13642
|
+
"path": "src/tab-panel/TabPanel.ts",
|
|
13643
|
+
"declarations": [
|
|
13644
|
+
{
|
|
13645
|
+
"kind": "class",
|
|
13646
|
+
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
13647
|
+
"name": "TabPanel",
|
|
13648
|
+
"slots": [
|
|
13649
|
+
{
|
|
13650
|
+
"description": "The tab panel content.",
|
|
13651
|
+
"name": ""
|
|
13652
|
+
}
|
|
13653
|
+
],
|
|
13654
|
+
"members": [],
|
|
13655
|
+
"superclass": {
|
|
13656
|
+
"name": "LitElement",
|
|
13657
|
+
"package": "lit"
|
|
13658
|
+
},
|
|
13659
|
+
"localization": [],
|
|
13660
|
+
"status": "ready",
|
|
13661
|
+
"category": "navigation",
|
|
13662
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
|
|
13663
|
+
"examples": [],
|
|
13664
|
+
"dependencies": [],
|
|
13665
|
+
"tagName": "nord-tab-panel",
|
|
13666
|
+
"customElement": true
|
|
13667
|
+
}
|
|
13668
|
+
],
|
|
13669
|
+
"exports": [
|
|
13670
|
+
{
|
|
13671
|
+
"kind": "js",
|
|
13672
|
+
"name": "default",
|
|
13673
|
+
"declaration": {
|
|
13674
|
+
"name": "TabPanel",
|
|
13675
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
13676
|
+
}
|
|
13677
|
+
},
|
|
13678
|
+
{
|
|
13679
|
+
"kind": "custom-element-definition",
|
|
13680
|
+
"name": "nord-tab-panel",
|
|
13681
|
+
"declaration": {
|
|
13682
|
+
"name": "TabPanel",
|
|
13683
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
13684
|
+
}
|
|
13685
|
+
}
|
|
13686
|
+
]
|
|
13687
|
+
},
|
|
13462
13688
|
{
|
|
13463
13689
|
"kind": "javascript-module",
|
|
13464
13690
|
"path": "src/tab-group/TabGroup.ts",
|
|
@@ -13705,54 +13931,6 @@
|
|
|
13705
13931
|
}
|
|
13706
13932
|
]
|
|
13707
13933
|
},
|
|
13708
|
-
{
|
|
13709
|
-
"kind": "javascript-module",
|
|
13710
|
-
"path": "src/tab-panel/TabPanel.ts",
|
|
13711
|
-
"declarations": [
|
|
13712
|
-
{
|
|
13713
|
-
"kind": "class",
|
|
13714
|
-
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
13715
|
-
"name": "TabPanel",
|
|
13716
|
-
"slots": [
|
|
13717
|
-
{
|
|
13718
|
-
"description": "The tab panel content.",
|
|
13719
|
-
"name": ""
|
|
13720
|
-
}
|
|
13721
|
-
],
|
|
13722
|
-
"members": [],
|
|
13723
|
-
"superclass": {
|
|
13724
|
-
"name": "LitElement",
|
|
13725
|
-
"package": "lit"
|
|
13726
|
-
},
|
|
13727
|
-
"localization": [],
|
|
13728
|
-
"status": "ready",
|
|
13729
|
-
"category": "navigation",
|
|
13730
|
-
"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",
|
|
13731
|
-
"examples": [],
|
|
13732
|
-
"dependencies": [],
|
|
13733
|
-
"tagName": "nord-tab-panel",
|
|
13734
|
-
"customElement": true
|
|
13735
|
-
}
|
|
13736
|
-
],
|
|
13737
|
-
"exports": [
|
|
13738
|
-
{
|
|
13739
|
-
"kind": "js",
|
|
13740
|
-
"name": "default",
|
|
13741
|
-
"declaration": {
|
|
13742
|
-
"name": "TabPanel",
|
|
13743
|
-
"module": "src/tab-panel/TabPanel.ts"
|
|
13744
|
-
}
|
|
13745
|
-
},
|
|
13746
|
-
{
|
|
13747
|
-
"kind": "custom-element-definition",
|
|
13748
|
-
"name": "nord-tab-panel",
|
|
13749
|
-
"declaration": {
|
|
13750
|
-
"name": "TabPanel",
|
|
13751
|
-
"module": "src/tab-panel/TabPanel.ts"
|
|
13752
|
-
}
|
|
13753
|
-
}
|
|
13754
|
-
]
|
|
13755
|
-
},
|
|
13756
13934
|
{
|
|
13757
13935
|
"kind": "javascript-module",
|
|
13758
13936
|
"path": "src/table/Table.ts",
|
|
@@ -14965,165 +15143,6 @@
|
|
|
14965
15143
|
}
|
|
14966
15144
|
]
|
|
14967
15145
|
},
|
|
14968
|
-
{
|
|
14969
|
-
"kind": "javascript-module",
|
|
14970
|
-
"path": "src/notification/Notification.ts",
|
|
14971
|
-
"declarations": [
|
|
14972
|
-
{
|
|
14973
|
-
"kind": "class",
|
|
14974
|
-
"description": "Notifications provide important information that requires action or acknowledgement.\nA notification is displayed until the user dismisses it.",
|
|
14975
|
-
"name": "Notification",
|
|
14976
|
-
"slots": [
|
|
14977
|
-
{
|
|
14978
|
-
"description": "Default slot used for the notification text/message.",
|
|
14979
|
-
"name": ""
|
|
14980
|
-
},
|
|
14981
|
-
{
|
|
14982
|
-
"description": "Slot used for the notification icon.",
|
|
14983
|
-
"name": "icon"
|
|
14984
|
-
}
|
|
14985
|
-
],
|
|
14986
|
-
"members": [
|
|
14987
|
-
{
|
|
14988
|
-
"kind": "field",
|
|
14989
|
-
"name": "localize",
|
|
14990
|
-
"privacy": "private",
|
|
14991
|
-
"default": "new LocalizeController<\"nord-notification\">(this)"
|
|
14992
|
-
},
|
|
14993
|
-
{
|
|
14994
|
-
"kind": "field",
|
|
14995
|
-
"name": "notificationRef",
|
|
14996
|
-
"privacy": "protected",
|
|
14997
|
-
"inheritedFrom": {
|
|
14998
|
-
"name": "NotificationMixin",
|
|
14999
|
-
"module": "src/common/mixins/NotificationMixin.ts"
|
|
15000
|
-
}
|
|
15001
|
-
},
|
|
15002
|
-
{
|
|
15003
|
-
"kind": "field",
|
|
15004
|
-
"name": "dismissed",
|
|
15005
|
-
"type": {
|
|
15006
|
-
"text": "boolean"
|
|
15007
|
-
},
|
|
15008
|
-
"privacy": "protected",
|
|
15009
|
-
"default": "false",
|
|
15010
|
-
"inheritedFrom": {
|
|
15011
|
-
"name": "NotificationMixin",
|
|
15012
|
-
"module": "src/common/mixins/NotificationMixin.ts"
|
|
15013
|
-
}
|
|
15014
|
-
},
|
|
15015
|
-
{
|
|
15016
|
-
"kind": "method",
|
|
15017
|
-
"name": "dismiss",
|
|
15018
|
-
"description": "Programmatically dismiss the notification.\nThe returned promise resolves when notification's exit animation is complete.",
|
|
15019
|
-
"inheritedFrom": {
|
|
15020
|
-
"name": "NotificationMixin",
|
|
15021
|
-
"module": "src/common/mixins/NotificationMixin.ts"
|
|
15022
|
-
}
|
|
15023
|
-
},
|
|
15024
|
-
{
|
|
15025
|
-
"kind": "field",
|
|
15026
|
-
"name": "_warningLogged",
|
|
15027
|
-
"type": {
|
|
15028
|
-
"text": "boolean"
|
|
15029
|
-
},
|
|
15030
|
-
"privacy": "private",
|
|
15031
|
-
"static": true,
|
|
15032
|
-
"default": "false",
|
|
15033
|
-
"inheritedFrom": {
|
|
15034
|
-
"name": "DraftComponentMixin",
|
|
15035
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
15036
|
-
}
|
|
15037
|
-
}
|
|
15038
|
-
],
|
|
15039
|
-
"events": [
|
|
15040
|
-
{
|
|
15041
|
-
"name": "dismiss",
|
|
15042
|
-
"type": {
|
|
15043
|
-
"text": "NordEvent"
|
|
15044
|
-
},
|
|
15045
|
-
"description": "Fired when the notification is dismissed, and its exit animation has completed. This event should be used to remove the dismissed notification from the DOM.",
|
|
15046
|
-
"inheritedFrom": {
|
|
15047
|
-
"name": "NotificationMixin",
|
|
15048
|
-
"module": "src/common/mixins/NotificationMixin.ts"
|
|
15049
|
-
}
|
|
15050
|
-
}
|
|
15051
|
-
],
|
|
15052
|
-
"mixins": [
|
|
15053
|
-
{
|
|
15054
|
-
"name": "NotificationMixin",
|
|
15055
|
-
"module": "/src/common/mixins/NotificationMixin.js"
|
|
15056
|
-
},
|
|
15057
|
-
{
|
|
15058
|
-
"name": "DraftComponentMixin",
|
|
15059
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
15060
|
-
}
|
|
15061
|
-
],
|
|
15062
|
-
"superclass": {
|
|
15063
|
-
"name": "LitElement",
|
|
15064
|
-
"package": "lit"
|
|
15065
|
-
},
|
|
15066
|
-
"localization": [
|
|
15067
|
-
{
|
|
15068
|
-
"name": "dismissLabel",
|
|
15069
|
-
"description": "Accessible label for the dismiss button."
|
|
15070
|
-
}
|
|
15071
|
-
],
|
|
15072
|
-
"status": "draft",
|
|
15073
|
-
"category": "feedback",
|
|
15074
|
-
"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 short messages that describe the purpose of the notification.\n- Use for important updates that require user action/attention.\n- Provide a single call to action within the notification.\n- Use in combination with [Notification group](../notification-group/) so that notifications get styled and positioned correctly.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for transient or unimportant messages. Consider using a [Toast](/components/toast) instead.\n- Don't remove a notification until a user has explicitly dismissed, or acted on the notification.\n- Don’t use for error messages unless absolutely necessary. Try to favor a [Banner](/components/banner/) for error messaging instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nNotification content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Patient arrived</div>\n\nWhen writing the notification content, be concise. Keep content to 1 to 2 sentence:\n\n<div class=\"n-usage n-usage-do\">You’ve reached the limit of 30 users included in your plan. Upgrade to add more.</div>\n<div class=\"n-usage n-usage-dont\">You have reached the user limit. Your clinic can only have a maximum of 30 users. To add more users, remove users you no longer need or upgrade your plan to add more.</div>\n\nWhen writing the notification content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen Arrived To Clinic With Pixie Cat.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Ariel Salminen arrived to clinic with Pixie cat.</div>\n<div class=\"n-usage n-usage-dont\">Ariel Salminen arrived to clinic with Pixie cat</div>\n\nAction link labels in notifications should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing action link labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Start consultation</div>\n<div class=\"n-usage n-usage-dont\">Start Consultation</div>\n\nAvoid unnecessary words and articles in action link labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n",
|
|
15075
|
-
"examples": [],
|
|
15076
|
-
"dependencies": [
|
|
15077
|
-
"stack",
|
|
15078
|
-
"icon"
|
|
15079
|
-
],
|
|
15080
|
-
"tagName": "nord-notification",
|
|
15081
|
-
"customElement": true
|
|
15082
|
-
}
|
|
15083
|
-
],
|
|
15084
|
-
"exports": [
|
|
15085
|
-
{
|
|
15086
|
-
"kind": "js",
|
|
15087
|
-
"name": "default",
|
|
15088
|
-
"declaration": {
|
|
15089
|
-
"name": "Notification",
|
|
15090
|
-
"module": "src/notification/Notification.ts"
|
|
15091
|
-
}
|
|
15092
|
-
},
|
|
15093
|
-
{
|
|
15094
|
-
"kind": "custom-element-definition",
|
|
15095
|
-
"name": "nord-notification",
|
|
15096
|
-
"declaration": {
|
|
15097
|
-
"name": "Notification",
|
|
15098
|
-
"module": "src/notification/Notification.ts"
|
|
15099
|
-
}
|
|
15100
|
-
}
|
|
15101
|
-
]
|
|
15102
|
-
},
|
|
15103
|
-
{
|
|
15104
|
-
"kind": "javascript-module",
|
|
15105
|
-
"path": "src/notification/localization.ts",
|
|
15106
|
-
"declarations": [
|
|
15107
|
-
{
|
|
15108
|
-
"kind": "variable",
|
|
15109
|
-
"name": "localization",
|
|
15110
|
-
"type": {
|
|
15111
|
-
"text": "object"
|
|
15112
|
-
},
|
|
15113
|
-
"default": "{\n dismissLabel: \"Dismiss notification\",\n}"
|
|
15114
|
-
}
|
|
15115
|
-
],
|
|
15116
|
-
"exports": [
|
|
15117
|
-
{
|
|
15118
|
-
"kind": "js",
|
|
15119
|
-
"name": "default",
|
|
15120
|
-
"declaration": {
|
|
15121
|
-
"name": "localization",
|
|
15122
|
-
"module": "src/notification/localization.ts"
|
|
15123
|
-
}
|
|
15124
|
-
}
|
|
15125
|
-
]
|
|
15126
|
-
},
|
|
15127
15146
|
{
|
|
15128
15147
|
"kind": "javascript-module",
|
|
15129
15148
|
"path": "src/toast-group/ToastGroup.ts",
|