@nordhealth/components 3.8.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1648 -1558
- package/lib/{Calendar-38b5ce2b.js → Calendar-3170b9d4.js} +2 -2
- package/lib/{Calendar-38b5ce2b.js.map → Calendar-3170b9d4.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Drawer.js.map +1 -1
- package/lib/Footer.js +2 -0
- package/lib/Footer.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/Message.js.map +1 -1
- package/lib/Modal.js +1 -1
- package/lib/Modal.js.map +1 -1
- package/lib/Notification.js +1 -1
- package/lib/Notification.js.map +1 -1
- package/lib/NotificationGroup.js +1 -1
- package/lib/NotificationGroup.js.map +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/TopBar.js.map +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/src/drawer/Drawer.d.ts +1 -0
- package/lib/src/footer/Footer.d.ts +25 -0
- package/lib/src/footer/Footer.test.d.ts +3 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/layout/Layout.d.ts +7 -1
- package/lib/src/layout/Layout.test.d.ts +2 -0
- package/lib/src/message/Message.d.ts +1 -1
- package/lib/src/modal/Modal.d.ts +1 -0
- package/lib/src/notification/Notification.d.ts +1 -1
- package/lib/src/notification-group/NotificationGroup.d.ts +2 -4
- package/package.json +5 -5
- package/lib/DraftComponentMixin-9e4b7b34.js +0 -2
- package/lib/DraftComponentMixin-9e4b7b34.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -430,6 +430,14 @@
|
|
|
430
430
|
"name": "default",
|
|
431
431
|
"module": "\"./top-bar/TopBar.js\""
|
|
432
432
|
}
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"kind": "js",
|
|
436
|
+
"name": "Footer",
|
|
437
|
+
"declaration": {
|
|
438
|
+
"name": "default",
|
|
439
|
+
"module": "\"./footer/Footer.js\""
|
|
440
|
+
}
|
|
433
441
|
}
|
|
434
442
|
]
|
|
435
443
|
},
|
|
@@ -718,6 +726,119 @@
|
|
|
718
726
|
}
|
|
719
727
|
]
|
|
720
728
|
},
|
|
729
|
+
{
|
|
730
|
+
"kind": "javascript-module",
|
|
731
|
+
"path": "src/badge/Badge.ts",
|
|
732
|
+
"declarations": [
|
|
733
|
+
{
|
|
734
|
+
"kind": "class",
|
|
735
|
+
"description": "Badges are used to inform users of the status of an object\nor of an action that’s been taken. Commonly used in tabular\ndata to indicate status.",
|
|
736
|
+
"name": "Badge",
|
|
737
|
+
"slots": [
|
|
738
|
+
{
|
|
739
|
+
"description": "The badge content.",
|
|
740
|
+
"name": ""
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"description": "Used to place an icon at the start of badge.",
|
|
744
|
+
"name": "icon"
|
|
745
|
+
}
|
|
746
|
+
],
|
|
747
|
+
"members": [
|
|
748
|
+
{
|
|
749
|
+
"kind": "field",
|
|
750
|
+
"name": "type",
|
|
751
|
+
"type": {
|
|
752
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
753
|
+
},
|
|
754
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
755
|
+
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
756
|
+
"attribute": "type",
|
|
757
|
+
"reflects": true
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"kind": "field",
|
|
761
|
+
"name": "variant",
|
|
762
|
+
"type": {
|
|
763
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
764
|
+
},
|
|
765
|
+
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
766
|
+
"attribute": "variant",
|
|
767
|
+
"reflects": true
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"kind": "field",
|
|
771
|
+
"name": "strong",
|
|
772
|
+
"type": {
|
|
773
|
+
"text": "boolean"
|
|
774
|
+
},
|
|
775
|
+
"default": "false",
|
|
776
|
+
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
777
|
+
"attribute": "strong",
|
|
778
|
+
"reflects": true
|
|
779
|
+
}
|
|
780
|
+
],
|
|
781
|
+
"attributes": [
|
|
782
|
+
{
|
|
783
|
+
"name": "type",
|
|
784
|
+
"type": {
|
|
785
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
786
|
+
},
|
|
787
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
788
|
+
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
789
|
+
"fieldName": "type"
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"name": "variant",
|
|
793
|
+
"type": {
|
|
794
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
795
|
+
},
|
|
796
|
+
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
797
|
+
"fieldName": "variant"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"name": "strong",
|
|
801
|
+
"type": {
|
|
802
|
+
"text": "boolean"
|
|
803
|
+
},
|
|
804
|
+
"default": "false",
|
|
805
|
+
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
806
|
+
"fieldName": "strong"
|
|
807
|
+
}
|
|
808
|
+
],
|
|
809
|
+
"superclass": {
|
|
810
|
+
"name": "LitElement",
|
|
811
|
+
"package": "lit"
|
|
812
|
+
},
|
|
813
|
+
"localization": [],
|
|
814
|
+
"status": "ready",
|
|
815
|
+
"category": "text",
|
|
816
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use established variants and color patterns so that users can clearly identify the importance level.\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `neutral` | The default style variant. |\n| `info` | Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n| `progress` | Used to convey something that’s in progress. |\n",
|
|
817
|
+
"examples": [],
|
|
818
|
+
"dependencies": [],
|
|
819
|
+
"tagName": "nord-badge",
|
|
820
|
+
"customElement": true
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
"exports": [
|
|
824
|
+
{
|
|
825
|
+
"kind": "js",
|
|
826
|
+
"name": "default",
|
|
827
|
+
"declaration": {
|
|
828
|
+
"name": "Badge",
|
|
829
|
+
"module": "src/badge/Badge.ts"
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"kind": "custom-element-definition",
|
|
834
|
+
"name": "nord-badge",
|
|
835
|
+
"declaration": {
|
|
836
|
+
"name": "Badge",
|
|
837
|
+
"module": "src/badge/Badge.ts"
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
]
|
|
841
|
+
},
|
|
721
842
|
{
|
|
722
843
|
"kind": "javascript-module",
|
|
723
844
|
"path": "src/button/Button.ts",
|
|
@@ -1307,115 +1428,6 @@
|
|
|
1307
1428
|
}
|
|
1308
1429
|
]
|
|
1309
1430
|
},
|
|
1310
|
-
{
|
|
1311
|
-
"kind": "javascript-module",
|
|
1312
|
-
"path": "src/button-group/ButtonGroup.ts",
|
|
1313
|
-
"declarations": [
|
|
1314
|
-
{
|
|
1315
|
-
"kind": "class",
|
|
1316
|
-
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1317
|
-
"name": "ButtonGroup",
|
|
1318
|
-
"cssProperties": [
|
|
1319
|
-
{
|
|
1320
|
-
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
1321
|
-
"name": "--n-button-group-border-radius",
|
|
1322
|
-
"default": "var(--n-border-radius-s)"
|
|
1323
|
-
},
|
|
1324
|
-
{
|
|
1325
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1326
|
-
"name": "--n-button-group-box-shadow",
|
|
1327
|
-
"default": "var(--n-box-shadow)"
|
|
1328
|
-
}
|
|
1329
|
-
],
|
|
1330
|
-
"slots": [
|
|
1331
|
-
{
|
|
1332
|
-
"description": "The button group content",
|
|
1333
|
-
"name": ""
|
|
1334
|
-
}
|
|
1335
|
-
],
|
|
1336
|
-
"members": [
|
|
1337
|
-
{
|
|
1338
|
-
"kind": "field",
|
|
1339
|
-
"name": "dirController",
|
|
1340
|
-
"privacy": "private",
|
|
1341
|
-
"default": "new DirectionController(this)"
|
|
1342
|
-
},
|
|
1343
|
-
{
|
|
1344
|
-
"kind": "field",
|
|
1345
|
-
"name": "direction",
|
|
1346
|
-
"type": {
|
|
1347
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1348
|
-
},
|
|
1349
|
-
"default": "\"horizontal\"",
|
|
1350
|
-
"description": "The direction of the button group.",
|
|
1351
|
-
"attribute": "direction",
|
|
1352
|
-
"reflects": true
|
|
1353
|
-
},
|
|
1354
|
-
{
|
|
1355
|
-
"kind": "field",
|
|
1356
|
-
"name": "role",
|
|
1357
|
-
"type": {
|
|
1358
|
-
"text": "string"
|
|
1359
|
-
},
|
|
1360
|
-
"default": "\"group\"",
|
|
1361
|
-
"description": "The appropriate role for the containing element.",
|
|
1362
|
-
"attribute": "role",
|
|
1363
|
-
"reflects": true
|
|
1364
|
-
}
|
|
1365
|
-
],
|
|
1366
|
-
"attributes": [
|
|
1367
|
-
{
|
|
1368
|
-
"name": "direction",
|
|
1369
|
-
"type": {
|
|
1370
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
1371
|
-
},
|
|
1372
|
-
"default": "\"horizontal\"",
|
|
1373
|
-
"description": "The direction of the button group.",
|
|
1374
|
-
"fieldName": "direction"
|
|
1375
|
-
},
|
|
1376
|
-
{
|
|
1377
|
-
"name": "role",
|
|
1378
|
-
"type": {
|
|
1379
|
-
"text": "string"
|
|
1380
|
-
},
|
|
1381
|
-
"default": "\"group\"",
|
|
1382
|
-
"description": "The appropriate role for the containing element.",
|
|
1383
|
-
"fieldName": "role"
|
|
1384
|
-
}
|
|
1385
|
-
],
|
|
1386
|
-
"superclass": {
|
|
1387
|
-
"name": "LitElement",
|
|
1388
|
-
"package": "lit"
|
|
1389
|
-
},
|
|
1390
|
-
"localization": [],
|
|
1391
|
-
"status": "new",
|
|
1392
|
-
"category": "structure",
|
|
1393
|
-
"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",
|
|
1394
|
-
"examples": [],
|
|
1395
|
-
"dependencies": [],
|
|
1396
|
-
"tagName": "nord-button-group",
|
|
1397
|
-
"customElement": true
|
|
1398
|
-
}
|
|
1399
|
-
],
|
|
1400
|
-
"exports": [
|
|
1401
|
-
{
|
|
1402
|
-
"kind": "js",
|
|
1403
|
-
"name": "default",
|
|
1404
|
-
"declaration": {
|
|
1405
|
-
"name": "ButtonGroup",
|
|
1406
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
1407
|
-
}
|
|
1408
|
-
},
|
|
1409
|
-
{
|
|
1410
|
-
"kind": "custom-element-definition",
|
|
1411
|
-
"name": "nord-button-group",
|
|
1412
|
-
"declaration": {
|
|
1413
|
-
"name": "ButtonGroup",
|
|
1414
|
-
"module": "src/button-group/ButtonGroup.ts"
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1417
|
-
]
|
|
1418
|
-
},
|
|
1419
1431
|
{
|
|
1420
1432
|
"kind": "javascript-module",
|
|
1421
1433
|
"path": "src/calendar/Calendar.ts",
|
|
@@ -1921,92 +1933,78 @@
|
|
|
1921
1933
|
},
|
|
1922
1934
|
{
|
|
1923
1935
|
"kind": "javascript-module",
|
|
1924
|
-
"path": "src/
|
|
1936
|
+
"path": "src/button-group/ButtonGroup.ts",
|
|
1925
1937
|
"declarations": [
|
|
1926
1938
|
{
|
|
1927
1939
|
"kind": "class",
|
|
1928
|
-
"description": "
|
|
1929
|
-
"name": "
|
|
1940
|
+
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
1941
|
+
"name": "ButtonGroup",
|
|
1930
1942
|
"cssProperties": [
|
|
1931
1943
|
{
|
|
1932
|
-
"description": "Controls
|
|
1933
|
-
"name": "--n-
|
|
1934
|
-
"default": "var(--n-border-radius)"
|
|
1944
|
+
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
1945
|
+
"name": "--n-button-group-border-radius",
|
|
1946
|
+
"default": "var(--n-border-radius-s)"
|
|
1935
1947
|
},
|
|
1936
1948
|
{
|
|
1937
1949
|
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1938
|
-
"name": "--n-
|
|
1939
|
-
"default": "var(--n-box-shadow
|
|
1940
|
-
},
|
|
1941
|
-
{
|
|
1942
|
-
"description": "Controls the padding on all sides of the card.",
|
|
1943
|
-
"name": "--n-card-padding",
|
|
1944
|
-
"default": "var(--n-space-m)"
|
|
1945
|
-
},
|
|
1946
|
-
{
|
|
1947
|
-
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
1948
|
-
"name": "--n-card-slot-padding",
|
|
1949
|
-
"default": "var(--n-space-m)"
|
|
1950
|
+
"name": "--n-button-group-box-shadow",
|
|
1951
|
+
"default": "var(--n-box-shadow)"
|
|
1950
1952
|
}
|
|
1951
1953
|
],
|
|
1952
1954
|
"slots": [
|
|
1953
1955
|
{
|
|
1954
|
-
"description": "The
|
|
1956
|
+
"description": "The button group content",
|
|
1955
1957
|
"name": ""
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
"description": "Optional slot that holds a header for the card.",
|
|
1959
|
-
"name": "header"
|
|
1960
|
-
},
|
|
1961
|
-
{
|
|
1962
|
-
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
1963
|
-
"name": "header-end"
|
|
1964
|
-
},
|
|
1965
|
-
{
|
|
1966
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
1967
|
-
"name": "footer"
|
|
1968
1958
|
}
|
|
1969
1959
|
],
|
|
1970
1960
|
"members": [
|
|
1971
1961
|
{
|
|
1972
1962
|
"kind": "field",
|
|
1973
|
-
"name": "
|
|
1974
|
-
"privacy": "private",
|
|
1975
|
-
"default": "new SlotController(this, \"header\")"
|
|
1976
|
-
},
|
|
1977
|
-
{
|
|
1978
|
-
"kind": "field",
|
|
1979
|
-
"name": "headerEndSlot",
|
|
1963
|
+
"name": "dirController",
|
|
1980
1964
|
"privacy": "private",
|
|
1981
|
-
"default": "new
|
|
1965
|
+
"default": "new DirectionController(this)"
|
|
1982
1966
|
},
|
|
1983
1967
|
{
|
|
1984
1968
|
"kind": "field",
|
|
1985
|
-
"name": "
|
|
1986
|
-
"
|
|
1987
|
-
|
|
1969
|
+
"name": "direction",
|
|
1970
|
+
"type": {
|
|
1971
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
1972
|
+
},
|
|
1973
|
+
"default": "\"horizontal\"",
|
|
1974
|
+
"description": "The direction of the button group.",
|
|
1975
|
+
"attribute": "direction",
|
|
1976
|
+
"reflects": true
|
|
1988
1977
|
},
|
|
1989
1978
|
{
|
|
1990
1979
|
"kind": "field",
|
|
1991
|
-
"name": "
|
|
1980
|
+
"name": "role",
|
|
1992
1981
|
"type": {
|
|
1993
|
-
"text": "
|
|
1982
|
+
"text": "string"
|
|
1994
1983
|
},
|
|
1995
|
-
"default": "\"
|
|
1996
|
-
"description": "
|
|
1997
|
-
"attribute": "
|
|
1984
|
+
"default": "\"group\"",
|
|
1985
|
+
"description": "The appropriate role for the containing element.",
|
|
1986
|
+
"attribute": "role",
|
|
1998
1987
|
"reflects": true
|
|
1999
1988
|
}
|
|
2000
1989
|
],
|
|
2001
1990
|
"attributes": [
|
|
2002
1991
|
{
|
|
2003
|
-
"name": "
|
|
1992
|
+
"name": "direction",
|
|
2004
1993
|
"type": {
|
|
2005
|
-
"text": "\"
|
|
1994
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
2006
1995
|
},
|
|
2007
|
-
"default": "\"
|
|
2008
|
-
"description": "
|
|
2009
|
-
"fieldName": "
|
|
1996
|
+
"default": "\"horizontal\"",
|
|
1997
|
+
"description": "The direction of the button group.",
|
|
1998
|
+
"fieldName": "direction"
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"name": "role",
|
|
2002
|
+
"type": {
|
|
2003
|
+
"text": "string"
|
|
2004
|
+
},
|
|
2005
|
+
"default": "\"group\"",
|
|
2006
|
+
"description": "The appropriate role for the containing element.",
|
|
2007
|
+
"fieldName": "role"
|
|
2010
2008
|
}
|
|
2011
2009
|
],
|
|
2012
2010
|
"superclass": {
|
|
@@ -2014,12 +2012,12 @@
|
|
|
2014
2012
|
"package": "lit"
|
|
2015
2013
|
},
|
|
2016
2014
|
"localization": [],
|
|
2017
|
-
"status": "
|
|
2015
|
+
"status": "new",
|
|
2018
2016
|
"category": "structure",
|
|
2019
|
-
"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
|
|
2017
|
+
"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",
|
|
2020
2018
|
"examples": [],
|
|
2021
2019
|
"dependencies": [],
|
|
2022
|
-
"tagName": "nord-
|
|
2020
|
+
"tagName": "nord-button-group",
|
|
2023
2021
|
"customElement": true
|
|
2024
2022
|
}
|
|
2025
2023
|
],
|
|
@@ -2028,98 +2026,108 @@
|
|
|
2028
2026
|
"kind": "js",
|
|
2029
2027
|
"name": "default",
|
|
2030
2028
|
"declaration": {
|
|
2031
|
-
"name": "
|
|
2032
|
-
"module": "src/
|
|
2029
|
+
"name": "ButtonGroup",
|
|
2030
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
2033
2031
|
}
|
|
2034
2032
|
},
|
|
2035
2033
|
{
|
|
2036
2034
|
"kind": "custom-element-definition",
|
|
2037
|
-
"name": "nord-
|
|
2035
|
+
"name": "nord-button-group",
|
|
2038
2036
|
"declaration": {
|
|
2039
|
-
"name": "
|
|
2040
|
-
"module": "src/
|
|
2037
|
+
"name": "ButtonGroup",
|
|
2038
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
2041
2039
|
}
|
|
2042
2040
|
}
|
|
2043
2041
|
]
|
|
2044
2042
|
},
|
|
2045
2043
|
{
|
|
2046
2044
|
"kind": "javascript-module",
|
|
2047
|
-
"path": "src/
|
|
2045
|
+
"path": "src/card/Card.ts",
|
|
2048
2046
|
"declarations": [
|
|
2049
2047
|
{
|
|
2050
2048
|
"kind": "class",
|
|
2051
|
-
"description": "
|
|
2052
|
-
"name": "
|
|
2049
|
+
"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.",
|
|
2050
|
+
"name": "Card",
|
|
2051
|
+
"cssProperties": [
|
|
2052
|
+
{
|
|
2053
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2054
|
+
"name": "--n-card-border-radius",
|
|
2055
|
+
"default": "var(--n-border-radius)"
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2059
|
+
"name": "--n-card-box-shadow",
|
|
2060
|
+
"default": "var(--n-box-shadow-popout)"
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"description": "Controls the padding on all sides of the card.",
|
|
2064
|
+
"name": "--n-card-padding",
|
|
2065
|
+
"default": "var(--n-space-m)"
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2069
|
+
"name": "--n-card-slot-padding",
|
|
2070
|
+
"default": "var(--n-space-m)"
|
|
2071
|
+
}
|
|
2072
|
+
],
|
|
2053
2073
|
"slots": [
|
|
2054
2074
|
{
|
|
2055
|
-
"description": "The
|
|
2075
|
+
"description": "The card content.",
|
|
2056
2076
|
"name": ""
|
|
2057
2077
|
},
|
|
2058
2078
|
{
|
|
2059
|
-
"description": "
|
|
2060
|
-
"name": "
|
|
2079
|
+
"description": "Optional slot that holds a header for the card.",
|
|
2080
|
+
"name": "header"
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2084
|
+
"name": "header-end"
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
2088
|
+
"name": "footer"
|
|
2061
2089
|
}
|
|
2062
2090
|
],
|
|
2063
2091
|
"members": [
|
|
2064
2092
|
{
|
|
2065
2093
|
"kind": "field",
|
|
2066
|
-
"name": "
|
|
2067
|
-
"
|
|
2068
|
-
|
|
2069
|
-
},
|
|
2070
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
2071
|
-
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
2072
|
-
"attribute": "type",
|
|
2073
|
-
"reflects": true
|
|
2094
|
+
"name": "headerSlot",
|
|
2095
|
+
"privacy": "private",
|
|
2096
|
+
"default": "new SlotController(this, \"header\")"
|
|
2074
2097
|
},
|
|
2075
2098
|
{
|
|
2076
2099
|
"kind": "field",
|
|
2077
|
-
"name": "
|
|
2078
|
-
"
|
|
2079
|
-
|
|
2080
|
-
},
|
|
2081
|
-
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
2082
|
-
"attribute": "variant",
|
|
2083
|
-
"reflects": true
|
|
2100
|
+
"name": "headerEndSlot",
|
|
2101
|
+
"privacy": "private",
|
|
2102
|
+
"default": "new SlotController(this, \"header-end\")"
|
|
2084
2103
|
},
|
|
2085
2104
|
{
|
|
2086
2105
|
"kind": "field",
|
|
2087
|
-
"name": "
|
|
2106
|
+
"name": "footerSlot",
|
|
2107
|
+
"privacy": "private",
|
|
2108
|
+
"default": "new SlotController(this, \"footer\")"
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
"kind": "field",
|
|
2112
|
+
"name": "padding",
|
|
2088
2113
|
"type": {
|
|
2089
|
-
"text": "
|
|
2114
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2090
2115
|
},
|
|
2091
|
-
"default": "
|
|
2092
|
-
"description": "
|
|
2093
|
-
"attribute": "
|
|
2116
|
+
"default": "\"m\"",
|
|
2117
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2118
|
+
"attribute": "padding",
|
|
2094
2119
|
"reflects": true
|
|
2095
2120
|
}
|
|
2096
2121
|
],
|
|
2097
2122
|
"attributes": [
|
|
2098
2123
|
{
|
|
2099
|
-
"name": "
|
|
2100
|
-
"type": {
|
|
2101
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
2102
|
-
},
|
|
2103
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
2104
|
-
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
2105
|
-
"fieldName": "type"
|
|
2106
|
-
},
|
|
2107
|
-
{
|
|
2108
|
-
"name": "variant",
|
|
2109
|
-
"type": {
|
|
2110
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
2111
|
-
},
|
|
2112
|
-
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
2113
|
-
"fieldName": "variant"
|
|
2114
|
-
},
|
|
2115
|
-
{
|
|
2116
|
-
"name": "strong",
|
|
2124
|
+
"name": "padding",
|
|
2117
2125
|
"type": {
|
|
2118
|
-
"text": "
|
|
2126
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2119
2127
|
},
|
|
2120
|
-
"default": "
|
|
2121
|
-
"description": "
|
|
2122
|
-
"fieldName": "
|
|
2128
|
+
"default": "\"m\"",
|
|
2129
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2130
|
+
"fieldName": "padding"
|
|
2123
2131
|
}
|
|
2124
2132
|
],
|
|
2125
2133
|
"superclass": {
|
|
@@ -2128,11 +2136,11 @@
|
|
|
2128
2136
|
},
|
|
2129
2137
|
"localization": [],
|
|
2130
2138
|
"status": "ready",
|
|
2131
|
-
"category": "
|
|
2132
|
-
"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
|
|
2139
|
+
"category": "structure",
|
|
2140
|
+
"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",
|
|
2133
2141
|
"examples": [],
|
|
2134
2142
|
"dependencies": [],
|
|
2135
|
-
"tagName": "nord-
|
|
2143
|
+
"tagName": "nord-card",
|
|
2136
2144
|
"customElement": true
|
|
2137
2145
|
}
|
|
2138
2146
|
],
|
|
@@ -2141,16 +2149,16 @@
|
|
|
2141
2149
|
"kind": "js",
|
|
2142
2150
|
"name": "default",
|
|
2143
2151
|
"declaration": {
|
|
2144
|
-
"name": "
|
|
2145
|
-
"module": "src/
|
|
2152
|
+
"name": "Card",
|
|
2153
|
+
"module": "src/card/Card.ts"
|
|
2146
2154
|
}
|
|
2147
2155
|
},
|
|
2148
2156
|
{
|
|
2149
2157
|
"kind": "custom-element-definition",
|
|
2150
|
-
"name": "nord-
|
|
2158
|
+
"name": "nord-card",
|
|
2151
2159
|
"declaration": {
|
|
2152
|
-
"name": "
|
|
2153
|
-
"module": "src/
|
|
2160
|
+
"name": "Card",
|
|
2161
|
+
"module": "src/card/Card.ts"
|
|
2154
2162
|
}
|
|
2155
2163
|
}
|
|
2156
2164
|
]
|
|
@@ -5963,37 +5971,61 @@
|
|
|
5963
5971
|
},
|
|
5964
5972
|
{
|
|
5965
5973
|
"kind": "javascript-module",
|
|
5966
|
-
"path": "src/
|
|
5974
|
+
"path": "src/drawer/Drawer.ts",
|
|
5967
5975
|
"declarations": [
|
|
5968
5976
|
{
|
|
5969
5977
|
"kind": "class",
|
|
5970
|
-
"description": "
|
|
5971
|
-
"name": "
|
|
5978
|
+
"description": "Drawer is used to display context-sensitive actions and information.\nDrawer doesn’t block users from completing their task, like a modal would.",
|
|
5979
|
+
"name": "Drawer",
|
|
5980
|
+
"cssProperties": [
|
|
5981
|
+
{
|
|
5982
|
+
"description": "Controls the padding around the main area (the default slot), using our [spacing tokens](/tokens/#space).",
|
|
5983
|
+
"name": "--n-drawer-padding",
|
|
5984
|
+
"default": "var(--n-space-l)"
|
|
5985
|
+
}
|
|
5986
|
+
],
|
|
5972
5987
|
"slots": [
|
|
5973
5988
|
{
|
|
5974
|
-
"description": "
|
|
5989
|
+
"description": "Optional slot that holds a header for the drawer.",
|
|
5990
|
+
"name": "header"
|
|
5991
|
+
},
|
|
5992
|
+
{
|
|
5993
|
+
"description": "Default slot.",
|
|
5975
5994
|
"name": ""
|
|
5995
|
+
},
|
|
5996
|
+
{
|
|
5997
|
+
"description": "Optional slot that holds footer content for the drawer.",
|
|
5998
|
+
"name": "footer"
|
|
5976
5999
|
}
|
|
5977
6000
|
],
|
|
5978
6001
|
"members": [
|
|
5979
6002
|
{
|
|
5980
6003
|
"kind": "field",
|
|
5981
|
-
"name": "
|
|
6004
|
+
"name": "footerSlot",
|
|
6005
|
+
"privacy": "private",
|
|
6006
|
+
"default": "new SlotController(this, \"footer\")"
|
|
6007
|
+
},
|
|
6008
|
+
{
|
|
6009
|
+
"kind": "field",
|
|
6010
|
+
"name": "padding",
|
|
5982
6011
|
"type": {
|
|
5983
|
-
"text": "
|
|
6012
|
+
"text": "\"m\" | \"none\""
|
|
5984
6013
|
},
|
|
5985
|
-
"
|
|
5986
|
-
"
|
|
6014
|
+
"default": "\"m\"",
|
|
6015
|
+
"description": "Controls the padding of the drawer component.",
|
|
6016
|
+
"attribute": "padding",
|
|
6017
|
+
"reflects": true
|
|
5987
6018
|
}
|
|
5988
6019
|
],
|
|
5989
6020
|
"attributes": [
|
|
5990
6021
|
{
|
|
5991
|
-
"name": "
|
|
6022
|
+
"name": "padding",
|
|
5992
6023
|
"type": {
|
|
5993
|
-
"text": "
|
|
6024
|
+
"text": "\"m\" | \"none\""
|
|
5994
6025
|
},
|
|
5995
|
-
"
|
|
5996
|
-
"
|
|
6026
|
+
"default": "\"m\"",
|
|
6027
|
+
"description": "Controls the padding of the drawer component.",
|
|
6028
|
+
"fieldName": "padding"
|
|
5997
6029
|
}
|
|
5998
6030
|
],
|
|
5999
6031
|
"superclass": {
|
|
@@ -6001,103 +6033,13 @@
|
|
|
6001
6033
|
"package": "lit"
|
|
6002
6034
|
},
|
|
6003
6035
|
"localization": [],
|
|
6004
|
-
"status": "
|
|
6005
|
-
"category": "
|
|
6006
|
-
"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-
|
|
6036
|
+
"status": "new",
|
|
6037
|
+
"category": "structure",
|
|
6038
|
+
"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 displaying contextual actions or information. For example, when clicking on a table row.\n- Use when you don’t want to block users from completing their task in the main view of an application.\n- Always include a header that summarizes the actions and information in the drawer.\n- Should be closeable through actions like “Done” and “Close”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t put cards inside the drawer. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t reset the drawer’s state when closed if used for settings or filters. Settings should persist.\n- Don’t open from within another drawer. Only one drawer can be open at a time.\n- Don’t use for presenting a small amount of content or an actions menu, use the [popout](/components/popout/) or [dropdown](/components/dropdown/) component instead.\n\n</div>\n\n---\n\n## Additional considerations\n\n- You can customize the width of the component using `--n-layout-drawer-inline-size` CSS Custom Property that is offered on [Layout component](/components/layout/).\n",
|
|
6007
6039
|
"examples": [],
|
|
6008
|
-
"dependencies": [
|
|
6009
|
-
|
|
6010
|
-
"customElement": true
|
|
6011
|
-
}
|
|
6012
|
-
],
|
|
6013
|
-
"exports": [
|
|
6014
|
-
{
|
|
6015
|
-
"kind": "js",
|
|
6016
|
-
"name": "default",
|
|
6017
|
-
"declaration": {
|
|
6018
|
-
"name": "DropdownGroup",
|
|
6019
|
-
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6020
|
-
}
|
|
6021
|
-
},
|
|
6022
|
-
{
|
|
6023
|
-
"kind": "custom-element-definition",
|
|
6024
|
-
"name": "nord-dropdown-group",
|
|
6025
|
-
"declaration": {
|
|
6026
|
-
"name": "DropdownGroup",
|
|
6027
|
-
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6028
|
-
}
|
|
6029
|
-
}
|
|
6030
|
-
]
|
|
6031
|
-
},
|
|
6032
|
-
{
|
|
6033
|
-
"kind": "javascript-module",
|
|
6034
|
-
"path": "src/drawer/Drawer.ts",
|
|
6035
|
-
"declarations": [
|
|
6036
|
-
{
|
|
6037
|
-
"kind": "class",
|
|
6038
|
-
"description": "Drawer is used to display context-sensitive actions and information.\nDrawer doesn’t block users from completing their task, like a modal would.",
|
|
6039
|
-
"name": "Drawer",
|
|
6040
|
-
"cssProperties": [
|
|
6041
|
-
{
|
|
6042
|
-
"description": "Controls the padding around the main area (the default slot), using our [spacing tokens](/tokens/#space).",
|
|
6043
|
-
"name": "--n-drawer-padding",
|
|
6044
|
-
"default": "var(--n-space-l)"
|
|
6045
|
-
}
|
|
6046
|
-
],
|
|
6047
|
-
"slots": [
|
|
6048
|
-
{
|
|
6049
|
-
"description": "Optional slot that holds a header for the drawer.",
|
|
6050
|
-
"name": "header"
|
|
6051
|
-
},
|
|
6052
|
-
{
|
|
6053
|
-
"description": "Default slot.",
|
|
6054
|
-
"name": ""
|
|
6055
|
-
},
|
|
6056
|
-
{
|
|
6057
|
-
"description": "Optional slot that holds footer content for the drawer.",
|
|
6058
|
-
"name": "footer"
|
|
6059
|
-
}
|
|
6060
|
-
],
|
|
6061
|
-
"members": [
|
|
6062
|
-
{
|
|
6063
|
-
"kind": "field",
|
|
6064
|
-
"name": "footerSlot",
|
|
6065
|
-
"privacy": "private",
|
|
6066
|
-
"default": "new SlotController(this, \"footer\")"
|
|
6067
|
-
},
|
|
6068
|
-
{
|
|
6069
|
-
"kind": "field",
|
|
6070
|
-
"name": "padding",
|
|
6071
|
-
"type": {
|
|
6072
|
-
"text": "\"m\" | \"none\""
|
|
6073
|
-
},
|
|
6074
|
-
"default": "\"m\"",
|
|
6075
|
-
"description": "Controls the padding of the drawer component.",
|
|
6076
|
-
"attribute": "padding",
|
|
6077
|
-
"reflects": true
|
|
6078
|
-
}
|
|
6079
|
-
],
|
|
6080
|
-
"attributes": [
|
|
6081
|
-
{
|
|
6082
|
-
"name": "padding",
|
|
6083
|
-
"type": {
|
|
6084
|
-
"text": "\"m\" | \"none\""
|
|
6085
|
-
},
|
|
6086
|
-
"default": "\"m\"",
|
|
6087
|
-
"description": "Controls the padding of the drawer component.",
|
|
6088
|
-
"fieldName": "padding"
|
|
6089
|
-
}
|
|
6040
|
+
"dependencies": [
|
|
6041
|
+
"footer"
|
|
6090
6042
|
],
|
|
6091
|
-
"superclass": {
|
|
6092
|
-
"name": "LitElement",
|
|
6093
|
-
"package": "lit"
|
|
6094
|
-
},
|
|
6095
|
-
"localization": [],
|
|
6096
|
-
"status": "new",
|
|
6097
|
-
"category": "structure",
|
|
6098
|
-
"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 displaying contextual actions or information. For example, when clicking on a table row.\n- Use when you don’t want to block users from completing their task in the main view of an application.\n- Always include a header that summarizes the actions and information in the drawer.\n- Should be closeable through actions like “Done” and “Close”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t put cards inside the drawer. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t reset the drawer’s state when closed if used for settings or filters. Settings should persist.\n- Don’t open from within another drawer. Only one drawer can be open at a time.\n- Don’t use for presenting a small amount of content or an actions menu, use the [popout](/components/popout/) or [dropdown](/components/dropdown/) component instead.\n\n</div>\n\n---\n\n## Additional considerations\n\n- You can customize the width of the component using `--n-layout-drawer-inline-size` CSS Custom Property that is offered on [Layout component](/components/layout/).\n",
|
|
6099
|
-
"examples": [],
|
|
6100
|
-
"dependencies": [],
|
|
6101
6043
|
"tagName": "nord-drawer",
|
|
6102
6044
|
"customElement": true
|
|
6103
6045
|
}
|
|
@@ -6409,6 +6351,74 @@
|
|
|
6409
6351
|
}
|
|
6410
6352
|
]
|
|
6411
6353
|
},
|
|
6354
|
+
{
|
|
6355
|
+
"kind": "javascript-module",
|
|
6356
|
+
"path": "src/dropdown-group/DropdownGroup.ts",
|
|
6357
|
+
"declarations": [
|
|
6358
|
+
{
|
|
6359
|
+
"kind": "class",
|
|
6360
|
+
"description": "Dropdown group includes all the actions or items in a single dropdown\ngroup and is used for grouping items into related categories.",
|
|
6361
|
+
"name": "DropdownGroup",
|
|
6362
|
+
"slots": [
|
|
6363
|
+
{
|
|
6364
|
+
"description": "The dropdown group content.",
|
|
6365
|
+
"name": ""
|
|
6366
|
+
}
|
|
6367
|
+
],
|
|
6368
|
+
"members": [
|
|
6369
|
+
{
|
|
6370
|
+
"kind": "field",
|
|
6371
|
+
"name": "heading",
|
|
6372
|
+
"type": {
|
|
6373
|
+
"text": "string | undefined"
|
|
6374
|
+
},
|
|
6375
|
+
"description": "Heading and accessible label for the dropdown group.",
|
|
6376
|
+
"attribute": "heading"
|
|
6377
|
+
}
|
|
6378
|
+
],
|
|
6379
|
+
"attributes": [
|
|
6380
|
+
{
|
|
6381
|
+
"name": "heading",
|
|
6382
|
+
"type": {
|
|
6383
|
+
"text": "string | undefined"
|
|
6384
|
+
},
|
|
6385
|
+
"description": "Heading and accessible label for the dropdown group.",
|
|
6386
|
+
"fieldName": "heading"
|
|
6387
|
+
}
|
|
6388
|
+
],
|
|
6389
|
+
"superclass": {
|
|
6390
|
+
"name": "LitElement",
|
|
6391
|
+
"package": "lit"
|
|
6392
|
+
},
|
|
6393
|
+
"localization": [],
|
|
6394
|
+
"status": "ready",
|
|
6395
|
+
"category": "action",
|
|
6396
|
+
"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",
|
|
6397
|
+
"examples": [],
|
|
6398
|
+
"dependencies": [],
|
|
6399
|
+
"tagName": "nord-dropdown-group",
|
|
6400
|
+
"customElement": true
|
|
6401
|
+
}
|
|
6402
|
+
],
|
|
6403
|
+
"exports": [
|
|
6404
|
+
{
|
|
6405
|
+
"kind": "js",
|
|
6406
|
+
"name": "default",
|
|
6407
|
+
"declaration": {
|
|
6408
|
+
"name": "DropdownGroup",
|
|
6409
|
+
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6410
|
+
}
|
|
6411
|
+
},
|
|
6412
|
+
{
|
|
6413
|
+
"kind": "custom-element-definition",
|
|
6414
|
+
"name": "nord-dropdown-group",
|
|
6415
|
+
"declaration": {
|
|
6416
|
+
"name": "DropdownGroup",
|
|
6417
|
+
"module": "src/dropdown-group/DropdownGroup.ts"
|
|
6418
|
+
}
|
|
6419
|
+
}
|
|
6420
|
+
]
|
|
6421
|
+
},
|
|
6412
6422
|
{
|
|
6413
6423
|
"kind": "javascript-module",
|
|
6414
6424
|
"path": "src/dropdown-item/DropdownItem.ts",
|
|
@@ -6605,87 +6615,6 @@
|
|
|
6605
6615
|
}
|
|
6606
6616
|
]
|
|
6607
6617
|
},
|
|
6608
|
-
{
|
|
6609
|
-
"kind": "javascript-module",
|
|
6610
|
-
"path": "src/header/Header.ts",
|
|
6611
|
-
"declarations": [
|
|
6612
|
-
{
|
|
6613
|
-
"kind": "class",
|
|
6614
|
-
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
6615
|
-
"name": "Header",
|
|
6616
|
-
"slots": [
|
|
6617
|
-
{
|
|
6618
|
-
"description": "The header content.",
|
|
6619
|
-
"name": ""
|
|
6620
|
-
},
|
|
6621
|
-
{
|
|
6622
|
-
"description": "Optional slot for buttons, toggles, etc.",
|
|
6623
|
-
"name": "end"
|
|
6624
|
-
}
|
|
6625
|
-
],
|
|
6626
|
-
"members": [
|
|
6627
|
-
{
|
|
6628
|
-
"kind": "field",
|
|
6629
|
-
"name": "endSlot",
|
|
6630
|
-
"privacy": "private",
|
|
6631
|
-
"default": "new SlotController(this, \"end\")"
|
|
6632
|
-
},
|
|
6633
|
-
{
|
|
6634
|
-
"kind": "field",
|
|
6635
|
-
"name": "size",
|
|
6636
|
-
"type": {
|
|
6637
|
-
"text": "\"m\" | \"s\""
|
|
6638
|
-
},
|
|
6639
|
-
"default": "\"m\"",
|
|
6640
|
-
"description": "Controls the size of the header component.",
|
|
6641
|
-
"attribute": "size",
|
|
6642
|
-
"reflects": true
|
|
6643
|
-
}
|
|
6644
|
-
],
|
|
6645
|
-
"attributes": [
|
|
6646
|
-
{
|
|
6647
|
-
"name": "size",
|
|
6648
|
-
"type": {
|
|
6649
|
-
"text": "\"m\" | \"s\""
|
|
6650
|
-
},
|
|
6651
|
-
"default": "\"m\"",
|
|
6652
|
-
"description": "Controls the size of the header component.",
|
|
6653
|
-
"fieldName": "size"
|
|
6654
|
-
}
|
|
6655
|
-
],
|
|
6656
|
-
"superclass": {
|
|
6657
|
-
"name": "LitElement",
|
|
6658
|
-
"package": "lit"
|
|
6659
|
-
},
|
|
6660
|
-
"localization": [],
|
|
6661
|
-
"status": "ready",
|
|
6662
|
-
"category": "structure",
|
|
6663
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n- Utilise the [`n-truncate`](/css/#miscellaneous-utilities) CSS helper to prevent long headings from wrapping.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n- Don’t add large amounts of content or long headings. Aim for headings that are short and concise.\n\n</div>\n\n---\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n",
|
|
6664
|
-
"examples": [],
|
|
6665
|
-
"dependencies": [],
|
|
6666
|
-
"tagName": "nord-header",
|
|
6667
|
-
"customElement": true
|
|
6668
|
-
}
|
|
6669
|
-
],
|
|
6670
|
-
"exports": [
|
|
6671
|
-
{
|
|
6672
|
-
"kind": "js",
|
|
6673
|
-
"name": "default",
|
|
6674
|
-
"declaration": {
|
|
6675
|
-
"name": "Header",
|
|
6676
|
-
"module": "src/header/Header.ts"
|
|
6677
|
-
}
|
|
6678
|
-
},
|
|
6679
|
-
{
|
|
6680
|
-
"kind": "custom-element-definition",
|
|
6681
|
-
"name": "nord-header",
|
|
6682
|
-
"declaration": {
|
|
6683
|
-
"name": "Header",
|
|
6684
|
-
"module": "src/header/Header.ts"
|
|
6685
|
-
}
|
|
6686
|
-
}
|
|
6687
|
-
]
|
|
6688
|
-
},
|
|
6689
6618
|
{
|
|
6690
6619
|
"kind": "javascript-module",
|
|
6691
6620
|
"path": "src/fieldset/Fieldset.ts",
|
|
@@ -6881,200 +6810,138 @@
|
|
|
6881
6810
|
},
|
|
6882
6811
|
{
|
|
6883
6812
|
"kind": "javascript-module",
|
|
6884
|
-
"path": "src/
|
|
6813
|
+
"path": "src/footer/Footer.ts",
|
|
6885
6814
|
"declarations": [
|
|
6886
6815
|
{
|
|
6887
6816
|
"kind": "class",
|
|
6888
|
-
"description": "
|
|
6889
|
-
"name": "
|
|
6817
|
+
"description": "The footer is a block of designated space for providing additional information or actions that are positioned below the main content.",
|
|
6818
|
+
"name": "Footer",
|
|
6819
|
+
"cssProperties": [
|
|
6820
|
+
{
|
|
6821
|
+
"description": "Controls the inline padding around the footer’s main slot, using [spacing tokens](/tokens/#space).",
|
|
6822
|
+
"name": "--n-footer-padding-inline",
|
|
6823
|
+
"default": "var(--n-space-l)"
|
|
6824
|
+
},
|
|
6825
|
+
{
|
|
6826
|
+
"description": "Controls the box shadow of the footer, using [box shadow tokens](/tokens/#box-shadow).",
|
|
6827
|
+
"name": "--n-footer-box-shadow",
|
|
6828
|
+
"default": "var(--n-box-shadow-header)"
|
|
6829
|
+
},
|
|
6830
|
+
{
|
|
6831
|
+
"description": "Controls the background color of the footer, using [color tokens](/tokens/#color).",
|
|
6832
|
+
"name": "--n-footer-background-color",
|
|
6833
|
+
"default": "var(--n-color-surface)"
|
|
6834
|
+
}
|
|
6835
|
+
],
|
|
6890
6836
|
"slots": [
|
|
6891
6837
|
{
|
|
6892
|
-
"description": "The
|
|
6838
|
+
"description": "The footer content.",
|
|
6893
6839
|
"name": ""
|
|
6894
6840
|
}
|
|
6895
6841
|
],
|
|
6896
6842
|
"members": [
|
|
6897
|
-
{
|
|
6898
|
-
"kind": "field",
|
|
6899
|
-
"name": "manager",
|
|
6900
|
-
"privacy": "private",
|
|
6901
|
-
"static": true,
|
|
6902
|
-
"default": "new IconManager()"
|
|
6903
|
-
},
|
|
6904
|
-
{
|
|
6905
|
-
"kind": "method",
|
|
6906
|
-
"name": "registerResolver",
|
|
6907
|
-
"static": true,
|
|
6908
|
-
"parameters": [
|
|
6909
|
-
{
|
|
6910
|
-
"name": "resolver",
|
|
6911
|
-
"type": {
|
|
6912
|
-
"text": "IconResolver"
|
|
6913
|
-
},
|
|
6914
|
-
"description": "The resolver function to register."
|
|
6915
|
-
}
|
|
6916
|
-
],
|
|
6917
|
-
"description": "Register a custom icon resolver, which accepts the icon name as an parameter, and returns an SVG string.\nCan return a string synchronously, or a promise of a string.\nBy default, will load icons from the Nord CDN."
|
|
6918
|
-
},
|
|
6919
|
-
{
|
|
6920
|
-
"kind": "method",
|
|
6921
|
-
"name": "registerIcon",
|
|
6922
|
-
"static": true,
|
|
6923
|
-
"return": {
|
|
6924
|
-
"type": {
|
|
6925
|
-
"text": "void"
|
|
6926
|
-
}
|
|
6927
|
-
},
|
|
6928
|
-
"parameters": [
|
|
6929
|
-
{
|
|
6930
|
-
"name": "icon",
|
|
6931
|
-
"type": {
|
|
6932
|
-
"text": "{ title: string; default: string }"
|
|
6933
|
-
},
|
|
6934
|
-
"description": "An object representing the icon to be registered, where \"title\" is the icon's name, and \"default\" is the SVG string.\nThis is intended to be used in cases where you import an icon's entire ES module and register it directly."
|
|
6935
|
-
}
|
|
6936
|
-
],
|
|
6937
|
-
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
6938
|
-
},
|
|
6939
|
-
{
|
|
6940
|
-
"kind": "method",
|
|
6941
|
-
"name": "registerIcon",
|
|
6942
|
-
"static": true,
|
|
6943
|
-
"return": {
|
|
6944
|
-
"type": {
|
|
6945
|
-
"text": "void"
|
|
6946
|
-
}
|
|
6947
|
-
},
|
|
6948
|
-
"parameters": [
|
|
6949
|
-
{
|
|
6950
|
-
"name": "name",
|
|
6951
|
-
"type": {
|
|
6952
|
-
"text": "string"
|
|
6953
|
-
},
|
|
6954
|
-
"description": "The name of the icon to be registered."
|
|
6955
|
-
},
|
|
6956
|
-
{
|
|
6957
|
-
"name": "icon",
|
|
6958
|
-
"type": {
|
|
6959
|
-
"text": "string"
|
|
6960
|
-
},
|
|
6961
|
-
"description": "The SVG string for the icon."
|
|
6962
|
-
}
|
|
6963
|
-
],
|
|
6964
|
-
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
6965
|
-
},
|
|
6966
|
-
{
|
|
6967
|
-
"kind": "method",
|
|
6968
|
-
"name": "registerIcon",
|
|
6969
|
-
"static": true,
|
|
6970
|
-
"parameters": [
|
|
6971
|
-
{
|
|
6972
|
-
"name": "iconOrName",
|
|
6973
|
-
"type": {
|
|
6974
|
-
"text": "string | { title: string; default: string }"
|
|
6975
|
-
},
|
|
6976
|
-
"description": "The name of the icon to be registered or an object representing the icon to be registered, where \"title\" is the icon's name, and \"default\" is the SVG string."
|
|
6977
|
-
},
|
|
6978
|
-
{
|
|
6979
|
-
"name": "icon",
|
|
6980
|
-
"optional": true,
|
|
6981
|
-
"type": {
|
|
6982
|
-
"text": "string"
|
|
6983
|
-
},
|
|
6984
|
-
"description": "The SVG string for the icon."
|
|
6985
|
-
}
|
|
6986
|
-
],
|
|
6987
|
-
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
6988
|
-
},
|
|
6989
|
-
{
|
|
6990
|
-
"kind": "field",
|
|
6991
|
-
"name": "name",
|
|
6992
|
-
"type": {
|
|
6993
|
-
"text": "string"
|
|
6994
|
-
},
|
|
6995
|
-
"default": "\"\"",
|
|
6996
|
-
"description": "The name of the icon to display, as defined by [nordicons](/nordicons/).",
|
|
6997
|
-
"attribute": "name",
|
|
6998
|
-
"reflects": true
|
|
6999
|
-
},
|
|
7000
6843
|
{
|
|
7001
6844
|
"kind": "field",
|
|
7002
6845
|
"name": "size",
|
|
7003
6846
|
"type": {
|
|
7004
|
-
"text": "\"
|
|
6847
|
+
"text": "\"m\" | \"s\""
|
|
7005
6848
|
},
|
|
7006
|
-
"
|
|
6849
|
+
"default": "\"m\"",
|
|
6850
|
+
"description": "Controls the size of the footer component.",
|
|
7007
6851
|
"attribute": "size",
|
|
7008
6852
|
"reflects": true
|
|
7009
|
-
}
|
|
6853
|
+
}
|
|
6854
|
+
],
|
|
6855
|
+
"attributes": [
|
|
7010
6856
|
{
|
|
7011
|
-
"
|
|
7012
|
-
"name": "color",
|
|
6857
|
+
"name": "size",
|
|
7013
6858
|
"type": {
|
|
7014
|
-
"text": "
|
|
6859
|
+
"text": "\"m\" | \"s\""
|
|
7015
6860
|
},
|
|
7016
|
-
"
|
|
7017
|
-
"
|
|
7018
|
-
"
|
|
6861
|
+
"default": "\"m\"",
|
|
6862
|
+
"description": "Controls the size of the footer component.",
|
|
6863
|
+
"fieldName": "size"
|
|
6864
|
+
}
|
|
6865
|
+
],
|
|
6866
|
+
"superclass": {
|
|
6867
|
+
"name": "LitElement",
|
|
6868
|
+
"package": "lit"
|
|
6869
|
+
},
|
|
6870
|
+
"localization": [],
|
|
6871
|
+
"status": "draft",
|
|
6872
|
+
"category": "structure",
|
|
6873
|
+
"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 footer component to show actions for a stepped workflow.\n- Use the footer component to provide additional information or actions that are positioned below the main content.\n- The footer component can also be used within Nord to provide a layer of actions or information at the bottom of a component. It’s currently used internally in the [modal](/components/modal/) and [drawer components](/components/drawer/).\n- When using the footer component within the [layout component](/components/layout/?example=footer), you can make the footer sticky by using the provided `stickyFooter` property of the layout component. [View an example](/components/layout/?example=footer).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the footer with too many actions or information.\n- Don’t nest the footer deeply and restrict its available space.\n- Don’t add large amounts of content or long paragraphs. Aim for actions that are short and concise.\n\n</div>\n\n---\n\n## Content guidelines\n\nFooter action 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\">Create client</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",
|
|
6874
|
+
"examples": [],
|
|
6875
|
+
"dependencies": [],
|
|
6876
|
+
"tagName": "nord-footer",
|
|
6877
|
+
"customElement": true
|
|
6878
|
+
}
|
|
6879
|
+
],
|
|
6880
|
+
"exports": [
|
|
6881
|
+
{
|
|
6882
|
+
"kind": "js",
|
|
6883
|
+
"name": "default",
|
|
6884
|
+
"declaration": {
|
|
6885
|
+
"name": "Footer",
|
|
6886
|
+
"module": "src/footer/Footer.ts"
|
|
6887
|
+
}
|
|
6888
|
+
},
|
|
6889
|
+
{
|
|
6890
|
+
"kind": "custom-element-definition",
|
|
6891
|
+
"name": "nord-footer",
|
|
6892
|
+
"declaration": {
|
|
6893
|
+
"name": "Footer",
|
|
6894
|
+
"module": "src/footer/Footer.ts"
|
|
6895
|
+
}
|
|
6896
|
+
}
|
|
6897
|
+
]
|
|
6898
|
+
},
|
|
6899
|
+
{
|
|
6900
|
+
"kind": "javascript-module",
|
|
6901
|
+
"path": "src/header/Header.ts",
|
|
6902
|
+
"declarations": [
|
|
6903
|
+
{
|
|
6904
|
+
"kind": "class",
|
|
6905
|
+
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
6906
|
+
"name": "Header",
|
|
6907
|
+
"slots": [
|
|
6908
|
+
{
|
|
6909
|
+
"description": "The header content.",
|
|
6910
|
+
"name": ""
|
|
7019
6911
|
},
|
|
6912
|
+
{
|
|
6913
|
+
"description": "Optional slot for buttons, toggles, etc.",
|
|
6914
|
+
"name": "end"
|
|
6915
|
+
}
|
|
6916
|
+
],
|
|
6917
|
+
"members": [
|
|
7020
6918
|
{
|
|
7021
6919
|
"kind": "field",
|
|
7022
|
-
"name": "
|
|
7023
|
-
"
|
|
7024
|
-
|
|
7025
|
-
},
|
|
7026
|
-
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
7027
|
-
"attribute": "label",
|
|
7028
|
-
"reflects": true
|
|
6920
|
+
"name": "endSlot",
|
|
6921
|
+
"privacy": "private",
|
|
6922
|
+
"default": "new SlotController(this, \"end\")"
|
|
7029
6923
|
},
|
|
7030
6924
|
{
|
|
7031
6925
|
"kind": "field",
|
|
7032
|
-
"name": "
|
|
6926
|
+
"name": "size",
|
|
7033
6927
|
"type": {
|
|
7034
|
-
"text": "
|
|
6928
|
+
"text": "\"m\" | \"s\""
|
|
7035
6929
|
},
|
|
7036
|
-
"
|
|
7037
|
-
"
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
"kind": "method",
|
|
7041
|
-
"name": "handleNameChange",
|
|
7042
|
-
"privacy": "protected"
|
|
6930
|
+
"default": "\"m\"",
|
|
6931
|
+
"description": "Controls the size of the header component.",
|
|
6932
|
+
"attribute": "size",
|
|
6933
|
+
"reflects": true
|
|
7043
6934
|
}
|
|
7044
6935
|
],
|
|
7045
6936
|
"attributes": [
|
|
7046
|
-
{
|
|
7047
|
-
"name": "name",
|
|
7048
|
-
"type": {
|
|
7049
|
-
"text": "string"
|
|
7050
|
-
},
|
|
7051
|
-
"default": "\"\"",
|
|
7052
|
-
"description": "The name of the icon to display, as defined by [nordicons](/nordicons/).",
|
|
7053
|
-
"fieldName": "name"
|
|
7054
|
-
},
|
|
7055
6937
|
{
|
|
7056
6938
|
"name": "size",
|
|
7057
6939
|
"type": {
|
|
7058
|
-
"text": "\"
|
|
6940
|
+
"text": "\"m\" | \"s\""
|
|
7059
6941
|
},
|
|
7060
|
-
"
|
|
6942
|
+
"default": "\"m\"",
|
|
6943
|
+
"description": "Controls the size of the header component.",
|
|
7061
6944
|
"fieldName": "size"
|
|
7062
|
-
},
|
|
7063
|
-
{
|
|
7064
|
-
"name": "color",
|
|
7065
|
-
"type": {
|
|
7066
|
-
"text": "string | undefined"
|
|
7067
|
-
},
|
|
7068
|
-
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
7069
|
-
"fieldName": "color"
|
|
7070
|
-
},
|
|
7071
|
-
{
|
|
7072
|
-
"name": "label",
|
|
7073
|
-
"type": {
|
|
7074
|
-
"text": "string | undefined"
|
|
7075
|
-
},
|
|
7076
|
-
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
7077
|
-
"fieldName": "label"
|
|
7078
6945
|
}
|
|
7079
6946
|
],
|
|
7080
6947
|
"superclass": {
|
|
@@ -7083,11 +6950,11 @@
|
|
|
7083
6950
|
},
|
|
7084
6951
|
"localization": [],
|
|
7085
6952
|
"status": "ready",
|
|
7086
|
-
"category": "
|
|
7087
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<
|
|
6953
|
+
"category": "structure",
|
|
6954
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n- Utilise the [`n-truncate`](/css/#miscellaneous-utilities) CSS helper to prevent long headings from wrapping.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n- Don’t add large amounts of content or long headings. Aim for headings that are short and concise.\n\n</div>\n\n---\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n",
|
|
7088
6955
|
"examples": [],
|
|
7089
6956
|
"dependencies": [],
|
|
7090
|
-
"tagName": "nord-
|
|
6957
|
+
"tagName": "nord-header",
|
|
7091
6958
|
"customElement": true
|
|
7092
6959
|
}
|
|
7093
6960
|
],
|
|
@@ -7096,110 +6963,33 @@
|
|
|
7096
6963
|
"kind": "js",
|
|
7097
6964
|
"name": "default",
|
|
7098
6965
|
"declaration": {
|
|
7099
|
-
"name": "
|
|
7100
|
-
"module": "src/
|
|
6966
|
+
"name": "Header",
|
|
6967
|
+
"module": "src/header/Header.ts"
|
|
7101
6968
|
}
|
|
7102
6969
|
},
|
|
7103
6970
|
{
|
|
7104
6971
|
"kind": "custom-element-definition",
|
|
7105
|
-
"name": "nord-
|
|
6972
|
+
"name": "nord-header",
|
|
7106
6973
|
"declaration": {
|
|
7107
|
-
"name": "
|
|
7108
|
-
"module": "src/
|
|
6974
|
+
"name": "Header",
|
|
6975
|
+
"module": "src/header/Header.ts"
|
|
7109
6976
|
}
|
|
7110
6977
|
}
|
|
7111
6978
|
]
|
|
7112
6979
|
},
|
|
7113
6980
|
{
|
|
7114
6981
|
"kind": "javascript-module",
|
|
7115
|
-
"path": "src/
|
|
6982
|
+
"path": "src/input/Input.ts",
|
|
7116
6983
|
"declarations": [
|
|
7117
6984
|
{
|
|
7118
6985
|
"kind": "class",
|
|
7119
|
-
"description": "",
|
|
7120
|
-
"name": "
|
|
7121
|
-
"
|
|
6986
|
+
"description": "Inputs are used to allow users to provide text input when the expected input is short.\nAs well as plain text, Input supports various types of text, including passwords and numbers.",
|
|
6987
|
+
"name": "Input",
|
|
6988
|
+
"cssProperties": [
|
|
7122
6989
|
{
|
|
7123
|
-
"
|
|
7124
|
-
"name": "
|
|
7125
|
-
"
|
|
7126
|
-
"default": "new Map<string, string | Promise<string>>()"
|
|
7127
|
-
},
|
|
7128
|
-
{
|
|
7129
|
-
"kind": "field",
|
|
7130
|
-
"name": "resolver",
|
|
7131
|
-
"type": {
|
|
7132
|
-
"text": "IconResolver"
|
|
7133
|
-
}
|
|
7134
|
-
},
|
|
7135
|
-
{
|
|
7136
|
-
"kind": "method",
|
|
7137
|
-
"name": "resolve",
|
|
7138
|
-
"parameters": [
|
|
7139
|
-
{
|
|
7140
|
-
"name": "name",
|
|
7141
|
-
"type": {
|
|
7142
|
-
"text": "string"
|
|
7143
|
-
}
|
|
7144
|
-
},
|
|
7145
|
-
{
|
|
7146
|
-
"name": "onResolved",
|
|
7147
|
-
"type": {
|
|
7148
|
-
"text": "(svg: string) => void"
|
|
7149
|
-
}
|
|
7150
|
-
}
|
|
7151
|
-
]
|
|
7152
|
-
},
|
|
7153
|
-
{
|
|
7154
|
-
"kind": "method",
|
|
7155
|
-
"name": "registerIcon",
|
|
7156
|
-
"parameters": [
|
|
7157
|
-
{
|
|
7158
|
-
"name": "iconOrName",
|
|
7159
|
-
"type": {
|
|
7160
|
-
"text": "string | { title: string; default: string }"
|
|
7161
|
-
}
|
|
7162
|
-
},
|
|
7163
|
-
{
|
|
7164
|
-
"name": "icon",
|
|
7165
|
-
"optional": true,
|
|
7166
|
-
"type": {
|
|
7167
|
-
"text": "string"
|
|
7168
|
-
}
|
|
7169
|
-
}
|
|
7170
|
-
]
|
|
7171
|
-
},
|
|
7172
|
-
{
|
|
7173
|
-
"kind": "method",
|
|
7174
|
-
"name": "clear"
|
|
7175
|
-
}
|
|
7176
|
-
]
|
|
7177
|
-
}
|
|
7178
|
-
],
|
|
7179
|
-
"exports": [
|
|
7180
|
-
{
|
|
7181
|
-
"kind": "js",
|
|
7182
|
-
"name": "IconManager",
|
|
7183
|
-
"declaration": {
|
|
7184
|
-
"name": "IconManager",
|
|
7185
|
-
"module": "src/icon/IconManager.ts"
|
|
7186
|
-
}
|
|
7187
|
-
}
|
|
7188
|
-
]
|
|
7189
|
-
},
|
|
7190
|
-
{
|
|
7191
|
-
"kind": "javascript-module",
|
|
7192
|
-
"path": "src/input/Input.ts",
|
|
7193
|
-
"declarations": [
|
|
7194
|
-
{
|
|
7195
|
-
"kind": "class",
|
|
7196
|
-
"description": "Inputs are used to allow users to provide text input when the expected input is short.\nAs well as plain text, Input supports various types of text, including passwords and numbers.",
|
|
7197
|
-
"name": "Input",
|
|
7198
|
-
"cssProperties": [
|
|
7199
|
-
{
|
|
7200
|
-
"description": "Controls the inline size, or width, of the input.",
|
|
7201
|
-
"name": "--n-input-inline-size",
|
|
7202
|
-
"default": "240px"
|
|
6990
|
+
"description": "Controls the inline size, or width, of the input.",
|
|
6991
|
+
"name": "--n-input-inline-size",
|
|
6992
|
+
"default": "240px"
|
|
7203
6993
|
},
|
|
7204
6994
|
{
|
|
7205
6995
|
"description": "Controls the background of the input, using our [color tokens](/tokens/#color).",
|
|
@@ -8051,15 +7841,331 @@
|
|
|
8051
7841
|
}
|
|
8052
7842
|
},
|
|
8053
7843
|
{
|
|
8054
|
-
"name": "change",
|
|
7844
|
+
"name": "change",
|
|
7845
|
+
"type": {
|
|
7846
|
+
"text": "NordEvent"
|
|
7847
|
+
},
|
|
7848
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
7849
|
+
"inheritedFrom": {
|
|
7850
|
+
"name": "FormAssociatedMixin",
|
|
7851
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
7852
|
+
}
|
|
7853
|
+
}
|
|
7854
|
+
]
|
|
7855
|
+
}
|
|
7856
|
+
],
|
|
7857
|
+
"exports": [
|
|
7858
|
+
{
|
|
7859
|
+
"kind": "js",
|
|
7860
|
+
"name": "default",
|
|
7861
|
+
"declaration": {
|
|
7862
|
+
"name": "Input",
|
|
7863
|
+
"module": "src/input/Input.ts"
|
|
7864
|
+
}
|
|
7865
|
+
},
|
|
7866
|
+
{
|
|
7867
|
+
"kind": "custom-element-definition",
|
|
7868
|
+
"name": "nord-input",
|
|
7869
|
+
"declaration": {
|
|
7870
|
+
"name": "Input",
|
|
7871
|
+
"module": "src/input/Input.ts"
|
|
7872
|
+
}
|
|
7873
|
+
}
|
|
7874
|
+
]
|
|
7875
|
+
},
|
|
7876
|
+
{
|
|
7877
|
+
"kind": "javascript-module",
|
|
7878
|
+
"path": "src/icon/Icon.ts",
|
|
7879
|
+
"declarations": [
|
|
7880
|
+
{
|
|
7881
|
+
"kind": "class",
|
|
7882
|
+
"description": "Icons are used to provide additional meaning or in places where text label doesn’t fit.\nIcon component allows you to display an icon from the Nordicons library.",
|
|
7883
|
+
"name": "Icon",
|
|
7884
|
+
"slots": [
|
|
7885
|
+
{
|
|
7886
|
+
"description": "The default slot used for placing a custom SVG icon.",
|
|
7887
|
+
"name": ""
|
|
7888
|
+
}
|
|
7889
|
+
],
|
|
7890
|
+
"members": [
|
|
7891
|
+
{
|
|
7892
|
+
"kind": "field",
|
|
7893
|
+
"name": "manager",
|
|
7894
|
+
"privacy": "private",
|
|
7895
|
+
"static": true,
|
|
7896
|
+
"default": "new IconManager()"
|
|
7897
|
+
},
|
|
7898
|
+
{
|
|
7899
|
+
"kind": "method",
|
|
7900
|
+
"name": "registerResolver",
|
|
7901
|
+
"static": true,
|
|
7902
|
+
"parameters": [
|
|
7903
|
+
{
|
|
7904
|
+
"name": "resolver",
|
|
7905
|
+
"type": {
|
|
7906
|
+
"text": "IconResolver"
|
|
7907
|
+
},
|
|
7908
|
+
"description": "The resolver function to register."
|
|
7909
|
+
}
|
|
7910
|
+
],
|
|
7911
|
+
"description": "Register a custom icon resolver, which accepts the icon name as an parameter, and returns an SVG string.\nCan return a string synchronously, or a promise of a string.\nBy default, will load icons from the Nord CDN."
|
|
7912
|
+
},
|
|
7913
|
+
{
|
|
7914
|
+
"kind": "method",
|
|
7915
|
+
"name": "registerIcon",
|
|
7916
|
+
"static": true,
|
|
7917
|
+
"return": {
|
|
7918
|
+
"type": {
|
|
7919
|
+
"text": "void"
|
|
7920
|
+
}
|
|
7921
|
+
},
|
|
7922
|
+
"parameters": [
|
|
7923
|
+
{
|
|
7924
|
+
"name": "icon",
|
|
7925
|
+
"type": {
|
|
7926
|
+
"text": "{ title: string; default: string }"
|
|
7927
|
+
},
|
|
7928
|
+
"description": "An object representing the icon to be registered, where \"title\" is the icon's name, and \"default\" is the SVG string.\nThis is intended to be used in cases where you import an icon's entire ES module and register it directly."
|
|
7929
|
+
}
|
|
7930
|
+
],
|
|
7931
|
+
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
7932
|
+
},
|
|
7933
|
+
{
|
|
7934
|
+
"kind": "method",
|
|
7935
|
+
"name": "registerIcon",
|
|
7936
|
+
"static": true,
|
|
7937
|
+
"return": {
|
|
7938
|
+
"type": {
|
|
7939
|
+
"text": "void"
|
|
7940
|
+
}
|
|
7941
|
+
},
|
|
7942
|
+
"parameters": [
|
|
7943
|
+
{
|
|
7944
|
+
"name": "name",
|
|
7945
|
+
"type": {
|
|
7946
|
+
"text": "string"
|
|
7947
|
+
},
|
|
7948
|
+
"description": "The name of the icon to be registered."
|
|
7949
|
+
},
|
|
7950
|
+
{
|
|
7951
|
+
"name": "icon",
|
|
7952
|
+
"type": {
|
|
7953
|
+
"text": "string"
|
|
7954
|
+
},
|
|
7955
|
+
"description": "The SVG string for the icon."
|
|
7956
|
+
}
|
|
7957
|
+
],
|
|
7958
|
+
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
7959
|
+
},
|
|
7960
|
+
{
|
|
7961
|
+
"kind": "method",
|
|
7962
|
+
"name": "registerIcon",
|
|
7963
|
+
"static": true,
|
|
7964
|
+
"parameters": [
|
|
7965
|
+
{
|
|
7966
|
+
"name": "iconOrName",
|
|
7967
|
+
"type": {
|
|
7968
|
+
"text": "string | { title: string; default: string }"
|
|
7969
|
+
},
|
|
7970
|
+
"description": "The name of the icon to be registered or an object representing the icon to be registered, where \"title\" is the icon's name, and \"default\" is the SVG string."
|
|
7971
|
+
},
|
|
7972
|
+
{
|
|
7973
|
+
"name": "icon",
|
|
7974
|
+
"optional": true,
|
|
7975
|
+
"type": {
|
|
7976
|
+
"text": "string"
|
|
7977
|
+
},
|
|
7978
|
+
"description": "The SVG string for the icon."
|
|
7979
|
+
}
|
|
7980
|
+
],
|
|
7981
|
+
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
7982
|
+
},
|
|
7983
|
+
{
|
|
7984
|
+
"kind": "field",
|
|
7985
|
+
"name": "name",
|
|
7986
|
+
"type": {
|
|
7987
|
+
"text": "string"
|
|
7988
|
+
},
|
|
7989
|
+
"default": "\"\"",
|
|
7990
|
+
"description": "The name of the icon to display, as defined by [nordicons](/nordicons/).",
|
|
7991
|
+
"attribute": "name",
|
|
7992
|
+
"reflects": true
|
|
7993
|
+
},
|
|
7994
|
+
{
|
|
7995
|
+
"kind": "field",
|
|
7996
|
+
"name": "size",
|
|
7997
|
+
"type": {
|
|
7998
|
+
"text": "\"xxs\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\" | undefined"
|
|
7999
|
+
},
|
|
8000
|
+
"description": "The size of the icon.",
|
|
8001
|
+
"attribute": "size",
|
|
8002
|
+
"reflects": true
|
|
8003
|
+
},
|
|
8004
|
+
{
|
|
8005
|
+
"kind": "field",
|
|
8006
|
+
"name": "color",
|
|
8007
|
+
"type": {
|
|
8008
|
+
"text": "string | undefined"
|
|
8009
|
+
},
|
|
8010
|
+
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
8011
|
+
"attribute": "color",
|
|
8012
|
+
"reflects": true
|
|
8013
|
+
},
|
|
8014
|
+
{
|
|
8015
|
+
"kind": "field",
|
|
8016
|
+
"name": "label",
|
|
8017
|
+
"type": {
|
|
8018
|
+
"text": "string | undefined"
|
|
8019
|
+
},
|
|
8020
|
+
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
8021
|
+
"attribute": "label",
|
|
8022
|
+
"reflects": true
|
|
8023
|
+
},
|
|
8024
|
+
{
|
|
8025
|
+
"kind": "field",
|
|
8026
|
+
"name": "svg",
|
|
8027
|
+
"type": {
|
|
8028
|
+
"text": "string"
|
|
8029
|
+
},
|
|
8030
|
+
"privacy": "private",
|
|
8031
|
+
"default": "\"\""
|
|
8032
|
+
},
|
|
8033
|
+
{
|
|
8034
|
+
"kind": "method",
|
|
8035
|
+
"name": "handleNameChange",
|
|
8036
|
+
"privacy": "protected"
|
|
8037
|
+
}
|
|
8038
|
+
],
|
|
8039
|
+
"attributes": [
|
|
8040
|
+
{
|
|
8041
|
+
"name": "name",
|
|
8042
|
+
"type": {
|
|
8043
|
+
"text": "string"
|
|
8044
|
+
},
|
|
8045
|
+
"default": "\"\"",
|
|
8046
|
+
"description": "The name of the icon to display, as defined by [nordicons](/nordicons/).",
|
|
8047
|
+
"fieldName": "name"
|
|
8048
|
+
},
|
|
8049
|
+
{
|
|
8050
|
+
"name": "size",
|
|
8051
|
+
"type": {
|
|
8052
|
+
"text": "\"xxs\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\" | undefined"
|
|
8053
|
+
},
|
|
8054
|
+
"description": "The size of the icon.",
|
|
8055
|
+
"fieldName": "size"
|
|
8056
|
+
},
|
|
8057
|
+
{
|
|
8058
|
+
"name": "color",
|
|
8059
|
+
"type": {
|
|
8060
|
+
"text": "string | undefined"
|
|
8061
|
+
},
|
|
8062
|
+
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
8063
|
+
"fieldName": "color"
|
|
8064
|
+
},
|
|
8065
|
+
{
|
|
8066
|
+
"name": "label",
|
|
8067
|
+
"type": {
|
|
8068
|
+
"text": "string | undefined"
|
|
8069
|
+
},
|
|
8070
|
+
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
8071
|
+
"fieldName": "label"
|
|
8072
|
+
}
|
|
8073
|
+
],
|
|
8074
|
+
"superclass": {
|
|
8075
|
+
"name": "LitElement",
|
|
8076
|
+
"package": "lit"
|
|
8077
|
+
},
|
|
8078
|
+
"localization": [],
|
|
8079
|
+
"status": "ready",
|
|
8080
|
+
"category": "image",
|
|
8081
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<nord-button href=\"/nordicons/\" variant=\"primary\">View Nordicons</nord-button>\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to provide additional meaning in addition to a text label.\n- Use to help users who have difficulties with reading and attention.\n- Use in places where text label doesn’t fit (remember to add an accessible label for the icon).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for decorative purposes alone.\n- Don’t use when a button’s action is already clear based on the text label.\n- Don’t use the same icon for differing purposes, as users will come to associate icons with specific types of actions.\n\n</div>\n\n---\n\n## Additional considerations\n\n- Icon components are hidden from assistive technologies by default.\n- Use `label` property to give an accessible label for the icon and to make it visible to assistive technologies.\n",
|
|
8082
|
+
"examples": [],
|
|
8083
|
+
"dependencies": [],
|
|
8084
|
+
"tagName": "nord-icon",
|
|
8085
|
+
"customElement": true
|
|
8086
|
+
}
|
|
8087
|
+
],
|
|
8088
|
+
"exports": [
|
|
8089
|
+
{
|
|
8090
|
+
"kind": "js",
|
|
8091
|
+
"name": "default",
|
|
8092
|
+
"declaration": {
|
|
8093
|
+
"name": "Icon",
|
|
8094
|
+
"module": "src/icon/Icon.ts"
|
|
8095
|
+
}
|
|
8096
|
+
},
|
|
8097
|
+
{
|
|
8098
|
+
"kind": "custom-element-definition",
|
|
8099
|
+
"name": "nord-icon",
|
|
8100
|
+
"declaration": {
|
|
8101
|
+
"name": "Icon",
|
|
8102
|
+
"module": "src/icon/Icon.ts"
|
|
8103
|
+
}
|
|
8104
|
+
}
|
|
8105
|
+
]
|
|
8106
|
+
},
|
|
8107
|
+
{
|
|
8108
|
+
"kind": "javascript-module",
|
|
8109
|
+
"path": "src/icon/IconManager.ts",
|
|
8110
|
+
"declarations": [
|
|
8111
|
+
{
|
|
8112
|
+
"kind": "class",
|
|
8113
|
+
"description": "",
|
|
8114
|
+
"name": "IconManager",
|
|
8115
|
+
"members": [
|
|
8116
|
+
{
|
|
8117
|
+
"kind": "field",
|
|
8118
|
+
"name": "cache",
|
|
8119
|
+
"privacy": "private",
|
|
8120
|
+
"default": "new Map<string, string | Promise<string>>()"
|
|
8121
|
+
},
|
|
8122
|
+
{
|
|
8123
|
+
"kind": "field",
|
|
8124
|
+
"name": "resolver",
|
|
8055
8125
|
"type": {
|
|
8056
|
-
"text": "
|
|
8057
|
-
},
|
|
8058
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
8059
|
-
"inheritedFrom": {
|
|
8060
|
-
"name": "FormAssociatedMixin",
|
|
8061
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
8126
|
+
"text": "IconResolver"
|
|
8062
8127
|
}
|
|
8128
|
+
},
|
|
8129
|
+
{
|
|
8130
|
+
"kind": "method",
|
|
8131
|
+
"name": "resolve",
|
|
8132
|
+
"parameters": [
|
|
8133
|
+
{
|
|
8134
|
+
"name": "name",
|
|
8135
|
+
"type": {
|
|
8136
|
+
"text": "string"
|
|
8137
|
+
}
|
|
8138
|
+
},
|
|
8139
|
+
{
|
|
8140
|
+
"name": "onResolved",
|
|
8141
|
+
"type": {
|
|
8142
|
+
"text": "(svg: string) => void"
|
|
8143
|
+
}
|
|
8144
|
+
}
|
|
8145
|
+
]
|
|
8146
|
+
},
|
|
8147
|
+
{
|
|
8148
|
+
"kind": "method",
|
|
8149
|
+
"name": "registerIcon",
|
|
8150
|
+
"parameters": [
|
|
8151
|
+
{
|
|
8152
|
+
"name": "iconOrName",
|
|
8153
|
+
"type": {
|
|
8154
|
+
"text": "string | { title: string; default: string }"
|
|
8155
|
+
}
|
|
8156
|
+
},
|
|
8157
|
+
{
|
|
8158
|
+
"name": "icon",
|
|
8159
|
+
"optional": true,
|
|
8160
|
+
"type": {
|
|
8161
|
+
"text": "string"
|
|
8162
|
+
}
|
|
8163
|
+
}
|
|
8164
|
+
]
|
|
8165
|
+
},
|
|
8166
|
+
{
|
|
8167
|
+
"kind": "method",
|
|
8168
|
+
"name": "clear"
|
|
8063
8169
|
}
|
|
8064
8170
|
]
|
|
8065
8171
|
}
|
|
@@ -8067,18 +8173,10 @@
|
|
|
8067
8173
|
"exports": [
|
|
8068
8174
|
{
|
|
8069
8175
|
"kind": "js",
|
|
8070
|
-
"name": "
|
|
8071
|
-
"declaration": {
|
|
8072
|
-
"name": "Input",
|
|
8073
|
-
"module": "src/input/Input.ts"
|
|
8074
|
-
}
|
|
8075
|
-
},
|
|
8076
|
-
{
|
|
8077
|
-
"kind": "custom-element-definition",
|
|
8078
|
-
"name": "nord-input",
|
|
8176
|
+
"name": "IconManager",
|
|
8079
8177
|
"declaration": {
|
|
8080
|
-
"name": "
|
|
8081
|
-
"module": "src/
|
|
8178
|
+
"name": "IconManager",
|
|
8179
|
+
"module": "src/icon/IconManager.ts"
|
|
8082
8180
|
}
|
|
8083
8181
|
}
|
|
8084
8182
|
]
|
|
@@ -8122,9 +8220,13 @@
|
|
|
8122
8220
|
"name": "top-bar"
|
|
8123
8221
|
},
|
|
8124
8222
|
{
|
|
8125
|
-
"description": "Used to place content inside the header section.",
|
|
8223
|
+
"description": "Used to place content inside the header section. This slot can be made sticky by utilizing the `sticky` property on the layout component.",
|
|
8126
8224
|
"name": "header"
|
|
8127
8225
|
},
|
|
8226
|
+
{
|
|
8227
|
+
"description": "Used to place content inside the footer section. This slot can be made sticky by utilizing the `stickyFooter` property on the layout component.",
|
|
8228
|
+
"name": "footer"
|
|
8229
|
+
},
|
|
8128
8230
|
{
|
|
8129
8231
|
"description": "Used to place additional content/details relating to a selected item.",
|
|
8130
8232
|
"name": "drawer"
|
|
@@ -8167,6 +8269,12 @@
|
|
|
8167
8269
|
"privacy": "private",
|
|
8168
8270
|
"default": "new SlotController(this, \"header\")"
|
|
8169
8271
|
},
|
|
8272
|
+
{
|
|
8273
|
+
"kind": "field",
|
|
8274
|
+
"name": "footerSlot",
|
|
8275
|
+
"privacy": "private",
|
|
8276
|
+
"default": "new SlotController(this, \"footer\")"
|
|
8277
|
+
},
|
|
8170
8278
|
{
|
|
8171
8279
|
"kind": "field",
|
|
8172
8280
|
"name": "direction",
|
|
@@ -8279,6 +8387,17 @@
|
|
|
8279
8387
|
"attribute": "sticky",
|
|
8280
8388
|
"reflects": true
|
|
8281
8389
|
},
|
|
8390
|
+
{
|
|
8391
|
+
"kind": "field",
|
|
8392
|
+
"name": "stickyFooter",
|
|
8393
|
+
"type": {
|
|
8394
|
+
"text": "boolean"
|
|
8395
|
+
},
|
|
8396
|
+
"default": "false",
|
|
8397
|
+
"description": "Controls whether the layout's footer has sticky positioning.",
|
|
8398
|
+
"attribute": "sticky-footer",
|
|
8399
|
+
"reflects": true
|
|
8400
|
+
},
|
|
8282
8401
|
{
|
|
8283
8402
|
"kind": "field",
|
|
8284
8403
|
"name": "isNarrow",
|
|
@@ -8523,6 +8642,15 @@
|
|
|
8523
8642
|
"default": "false",
|
|
8524
8643
|
"description": "Controls whether the layout's header has sticky positioning.",
|
|
8525
8644
|
"fieldName": "sticky"
|
|
8645
|
+
},
|
|
8646
|
+
{
|
|
8647
|
+
"name": "sticky-footer",
|
|
8648
|
+
"type": {
|
|
8649
|
+
"text": "boolean"
|
|
8650
|
+
},
|
|
8651
|
+
"default": "false",
|
|
8652
|
+
"description": "Controls whether the layout's footer has sticky positioning.",
|
|
8653
|
+
"fieldName": "stickyFooter"
|
|
8526
8654
|
}
|
|
8527
8655
|
],
|
|
8528
8656
|
"superclass": {
|
|
@@ -8967,7 +9095,7 @@
|
|
|
8967
9095
|
"description": "Label for the unread messages."
|
|
8968
9096
|
}
|
|
8969
9097
|
],
|
|
8970
|
-
"status": "
|
|
9098
|
+
"status": "new",
|
|
8971
9099
|
"category": "action",
|
|
8972
9100
|
"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",
|
|
8973
9101
|
"examples": [],
|
|
@@ -9263,7 +9391,8 @@
|
|
|
9263
9391
|
"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 confirmations and conditional changes.\n- Use when the user is required to take an action.\n- Use when you need to display content that temporarily blocks interactions with the main view of an application.\n- Use when you need to ask a confirmation from a user before proceeding.\n- Use for important warnings, as a way to prevent or correct critical errors.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for nonessential information that is not related to the current userflow.\n- Don’t use when the modal requires additional information for decision making that is unavailable in the modal itself.\n- Don’t open a modal window on top of another modal.\n\n</div>\n\n---\n\n## Content guidelines\n\nModal title should be clear, accurate and predictable. Always lead with a strong verb that encourages action. To provide enough context to user, use the {verb} + {noun} content formula:\n\n<div class=\"n-usage n-usage-do\">Edit patient</div>\n<div class=\"n-usage n-usage-dont\">Edit the patient called John Doe</div>\n<div class=\"n-usage n-usage-do\">Discard changes?</div>\n<div class=\"n-usage n-usage-dont\">Discard?</div>\n<div class=\"n-usage n-usage-do\">Delete patient?</div>\n<div class=\"n-usage n-usage-dont\">Are you sure you want to delete this patent?</div>\n\nWhen writing modal titles, 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\">New appointment</div>\n<div class=\"n-usage n-usage-dont\">New Appointment</div>\n\nAvoid unnecessary words and articles in modal titles, 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 in punctuation:\n\n<div class=\"n-usage n-usage-do\">Edit patient</div>\n<div class=\"n-usage n-usage-dont\">Edit patient.</div>\n\n---\n\n## Focus behaviour\n\n- Use the `autofocus` attribute to set the initial focus to the first location that accepts user input.\n- If it is a transactional modal without form inputs, then `autofocus` should be set on the primary button in the modal footer. This is for efficiency since most users will simply dismiss the dialog as soon as they have read the message.\n- If the modal contains a form, use `autofocus` in the first form field.\n- Focus remains trapped inside the modal dialog until it is closed.\n- For more examples and best practices, please see [WAI-ARIA Authoring Practices Modal Dialog Example](https://www.w3.org/TR/2017/NOTE-wai-aria-practices-1.1-20171214/examples/dialog-modal/dialog.html).\n",
|
|
9264
9392
|
"examples": [],
|
|
9265
9393
|
"dependencies": [
|
|
9266
|
-
"icon"
|
|
9394
|
+
"icon",
|
|
9395
|
+
"footer"
|
|
9267
9396
|
],
|
|
9268
9397
|
"tagName": "nord-modal",
|
|
9269
9398
|
"customElement": true
|
|
@@ -9933,98 +10062,6 @@
|
|
|
9933
10062
|
}
|
|
9934
10063
|
]
|
|
9935
10064
|
},
|
|
9936
|
-
{
|
|
9937
|
-
"kind": "javascript-module",
|
|
9938
|
-
"path": "src/navigation/Navigation.ts",
|
|
9939
|
-
"declarations": [
|
|
9940
|
-
{
|
|
9941
|
-
"kind": "class",
|
|
9942
|
-
"description": "Navigation is used to display the primary navigation in the sidebar\nof an application. Navigation includes a list of links that users\nuse to move between sections of the application.",
|
|
9943
|
-
"name": "Navigation",
|
|
9944
|
-
"cssProperties": [
|
|
9945
|
-
{
|
|
9946
|
-
"description": "Controls the background color of the navigation element.",
|
|
9947
|
-
"name": "--n-navigation-background-color",
|
|
9948
|
-
"default": "var(--n-color-nav-surface)"
|
|
9949
|
-
}
|
|
9950
|
-
],
|
|
9951
|
-
"slots": [
|
|
9952
|
-
{
|
|
9953
|
-
"description": "The main section of the sidebar, for holding nav components.",
|
|
9954
|
-
"name": ""
|
|
9955
|
-
},
|
|
9956
|
-
{
|
|
9957
|
-
"description": "The top section of the sidebar.",
|
|
9958
|
-
"name": "header"
|
|
9959
|
-
},
|
|
9960
|
-
{
|
|
9961
|
-
"description": "The bottom section of the sidebar.",
|
|
9962
|
-
"name": "footer"
|
|
9963
|
-
}
|
|
9964
|
-
],
|
|
9965
|
-
"members": [
|
|
9966
|
-
{
|
|
9967
|
-
"kind": "field",
|
|
9968
|
-
"name": "headerSlot",
|
|
9969
|
-
"privacy": "private",
|
|
9970
|
-
"default": "new SlotController(this, \"header\")"
|
|
9971
|
-
},
|
|
9972
|
-
{
|
|
9973
|
-
"kind": "field",
|
|
9974
|
-
"name": "events",
|
|
9975
|
-
"privacy": "private",
|
|
9976
|
-
"default": "new EventController(this)"
|
|
9977
|
-
},
|
|
9978
|
-
{
|
|
9979
|
-
"kind": "field",
|
|
9980
|
-
"name": "allowItemsToRemainOpen",
|
|
9981
|
-
"type": {
|
|
9982
|
-
"text": "boolean"
|
|
9983
|
-
},
|
|
9984
|
-
"privacy": "private",
|
|
9985
|
-
"default": "false"
|
|
9986
|
-
},
|
|
9987
|
-
{
|
|
9988
|
-
"kind": "field",
|
|
9989
|
-
"name": "handleActivate",
|
|
9990
|
-
"privacy": "private"
|
|
9991
|
-
}
|
|
9992
|
-
],
|
|
9993
|
-
"superclass": {
|
|
9994
|
-
"name": "LitElement",
|
|
9995
|
-
"package": "lit"
|
|
9996
|
-
},
|
|
9997
|
-
"localization": [],
|
|
9998
|
-
"status": "ready",
|
|
9999
|
-
"category": "navigation",
|
|
10000
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for primary navigation items that perform an action when clicked. Each action should navigate to a URL or trigger another action like a modal overlay.\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place a `<nav>` element inside the navigation component, as it already contains one internally.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
10001
|
-
"examples": [],
|
|
10002
|
-
"dependencies": [
|
|
10003
|
-
"nav-item"
|
|
10004
|
-
],
|
|
10005
|
-
"tagName": "nord-navigation",
|
|
10006
|
-
"customElement": true
|
|
10007
|
-
}
|
|
10008
|
-
],
|
|
10009
|
-
"exports": [
|
|
10010
|
-
{
|
|
10011
|
-
"kind": "js",
|
|
10012
|
-
"name": "default",
|
|
10013
|
-
"declaration": {
|
|
10014
|
-
"name": "Navigation",
|
|
10015
|
-
"module": "src/navigation/Navigation.ts"
|
|
10016
|
-
}
|
|
10017
|
-
},
|
|
10018
|
-
{
|
|
10019
|
-
"kind": "custom-element-definition",
|
|
10020
|
-
"name": "nord-navigation",
|
|
10021
|
-
"declaration": {
|
|
10022
|
-
"name": "Navigation",
|
|
10023
|
-
"module": "src/navigation/Navigation.ts"
|
|
10024
|
-
}
|
|
10025
|
-
}
|
|
10026
|
-
]
|
|
10027
|
-
},
|
|
10028
10065
|
{
|
|
10029
10066
|
"kind": "javascript-module",
|
|
10030
10067
|
"path": "src/notification/Notification.ts",
|
|
@@ -10080,20 +10117,6 @@
|
|
|
10080
10117
|
"name": "NotificationMixin",
|
|
10081
10118
|
"module": "src/common/mixins/NotificationMixin.ts"
|
|
10082
10119
|
}
|
|
10083
|
-
},
|
|
10084
|
-
{
|
|
10085
|
-
"kind": "field",
|
|
10086
|
-
"name": "_warningLogged",
|
|
10087
|
-
"type": {
|
|
10088
|
-
"text": "boolean"
|
|
10089
|
-
},
|
|
10090
|
-
"privacy": "private",
|
|
10091
|
-
"static": true,
|
|
10092
|
-
"default": "false",
|
|
10093
|
-
"inheritedFrom": {
|
|
10094
|
-
"name": "DraftComponentMixin",
|
|
10095
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10096
|
-
}
|
|
10097
10120
|
}
|
|
10098
10121
|
],
|
|
10099
10122
|
"events": [
|
|
@@ -10113,10 +10136,6 @@
|
|
|
10113
10136
|
{
|
|
10114
10137
|
"name": "NotificationMixin",
|
|
10115
10138
|
"module": "/src/common/mixins/NotificationMixin.js"
|
|
10116
|
-
},
|
|
10117
|
-
{
|
|
10118
|
-
"name": "DraftComponentMixin",
|
|
10119
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
10120
10139
|
}
|
|
10121
10140
|
],
|
|
10122
10141
|
"superclass": {
|
|
@@ -10129,7 +10148,7 @@
|
|
|
10129
10148
|
"description": "Accessible label for the dismiss button."
|
|
10130
10149
|
}
|
|
10131
10150
|
],
|
|
10132
|
-
"status": "
|
|
10151
|
+
"status": "new",
|
|
10133
10152
|
"category": "feedback",
|
|
10134
10153
|
"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",
|
|
10135
10154
|
"examples": [],
|
|
@@ -10186,38 +10205,59 @@
|
|
|
10186
10205
|
},
|
|
10187
10206
|
{
|
|
10188
10207
|
"kind": "javascript-module",
|
|
10189
|
-
"path": "src/
|
|
10208
|
+
"path": "src/navigation/Navigation.ts",
|
|
10190
10209
|
"declarations": [
|
|
10191
10210
|
{
|
|
10192
10211
|
"kind": "class",
|
|
10193
|
-
"description": "
|
|
10194
|
-
"name": "
|
|
10212
|
+
"description": "Navigation is used to display the primary navigation in the sidebar\nof an application. Navigation includes a list of links that users\nuse to move between sections of the application.",
|
|
10213
|
+
"name": "Navigation",
|
|
10214
|
+
"cssProperties": [
|
|
10215
|
+
{
|
|
10216
|
+
"description": "Controls the background color of the navigation element.",
|
|
10217
|
+
"name": "--n-navigation-background-color",
|
|
10218
|
+
"default": "var(--n-color-nav-surface)"
|
|
10219
|
+
}
|
|
10220
|
+
],
|
|
10195
10221
|
"slots": [
|
|
10196
10222
|
{
|
|
10197
|
-
"description": "
|
|
10223
|
+
"description": "The main section of the sidebar, for holding nav components.",
|
|
10198
10224
|
"name": ""
|
|
10225
|
+
},
|
|
10226
|
+
{
|
|
10227
|
+
"description": "The top section of the sidebar.",
|
|
10228
|
+
"name": "header"
|
|
10229
|
+
},
|
|
10230
|
+
{
|
|
10231
|
+
"description": "The bottom section of the sidebar.",
|
|
10232
|
+
"name": "footer"
|
|
10199
10233
|
}
|
|
10200
10234
|
],
|
|
10201
10235
|
"members": [
|
|
10202
10236
|
{
|
|
10203
10237
|
"kind": "field",
|
|
10204
|
-
"name": "
|
|
10238
|
+
"name": "headerSlot",
|
|
10239
|
+
"privacy": "private",
|
|
10240
|
+
"default": "new SlotController(this, \"header\")"
|
|
10241
|
+
},
|
|
10242
|
+
{
|
|
10243
|
+
"kind": "field",
|
|
10244
|
+
"name": "events",
|
|
10245
|
+
"privacy": "private",
|
|
10246
|
+
"default": "new EventController(this)"
|
|
10247
|
+
},
|
|
10248
|
+
{
|
|
10249
|
+
"kind": "field",
|
|
10250
|
+
"name": "allowItemsToRemainOpen",
|
|
10205
10251
|
"type": {
|
|
10206
10252
|
"text": "boolean"
|
|
10207
10253
|
},
|
|
10208
10254
|
"privacy": "private",
|
|
10209
|
-
"
|
|
10210
|
-
|
|
10211
|
-
"inheritedFrom": {
|
|
10212
|
-
"name": "DraftComponentMixin",
|
|
10213
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10214
|
-
}
|
|
10215
|
-
}
|
|
10216
|
-
],
|
|
10217
|
-
"mixins": [
|
|
10255
|
+
"default": "false"
|
|
10256
|
+
},
|
|
10218
10257
|
{
|
|
10219
|
-
"
|
|
10220
|
-
"
|
|
10258
|
+
"kind": "field",
|
|
10259
|
+
"name": "handleActivate",
|
|
10260
|
+
"privacy": "private"
|
|
10221
10261
|
}
|
|
10222
10262
|
],
|
|
10223
10263
|
"superclass": {
|
|
@@ -10225,12 +10265,14 @@
|
|
|
10225
10265
|
"package": "lit"
|
|
10226
10266
|
},
|
|
10227
10267
|
"localization": [],
|
|
10228
|
-
"status": "
|
|
10229
|
-
"category": "
|
|
10230
|
-
"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
|
|
10268
|
+
"status": "ready",
|
|
10269
|
+
"category": "navigation",
|
|
10270
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for primary navigation items that perform an action when clicked. Each action should navigate to a URL or trigger another action like a modal overlay.\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place a `<nav>` element inside the navigation component, as it already contains one internally.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
10231
10271
|
"examples": [],
|
|
10232
|
-
"dependencies": [
|
|
10233
|
-
|
|
10272
|
+
"dependencies": [
|
|
10273
|
+
"nav-item"
|
|
10274
|
+
],
|
|
10275
|
+
"tagName": "nord-navigation",
|
|
10234
10276
|
"customElement": true
|
|
10235
10277
|
}
|
|
10236
10278
|
],
|
|
@@ -10239,16 +10281,16 @@
|
|
|
10239
10281
|
"kind": "js",
|
|
10240
10282
|
"name": "default",
|
|
10241
10283
|
"declaration": {
|
|
10242
|
-
"name": "
|
|
10243
|
-
"module": "src/
|
|
10284
|
+
"name": "Navigation",
|
|
10285
|
+
"module": "src/navigation/Navigation.ts"
|
|
10244
10286
|
}
|
|
10245
10287
|
},
|
|
10246
10288
|
{
|
|
10247
10289
|
"kind": "custom-element-definition",
|
|
10248
|
-
"name": "nord-
|
|
10290
|
+
"name": "nord-navigation",
|
|
10249
10291
|
"declaration": {
|
|
10250
|
-
"name": "
|
|
10251
|
-
"module": "src/
|
|
10292
|
+
"name": "Navigation",
|
|
10293
|
+
"module": "src/navigation/Navigation.ts"
|
|
10252
10294
|
}
|
|
10253
10295
|
}
|
|
10254
10296
|
]
|
|
@@ -10596,6 +10638,54 @@
|
|
|
10596
10638
|
}
|
|
10597
10639
|
]
|
|
10598
10640
|
},
|
|
10641
|
+
{
|
|
10642
|
+
"kind": "javascript-module",
|
|
10643
|
+
"path": "src/notification-group/NotificationGroup.ts",
|
|
10644
|
+
"declarations": [
|
|
10645
|
+
{
|
|
10646
|
+
"kind": "class",
|
|
10647
|
+
"description": "Notification group is used to position and style a group of notifications.",
|
|
10648
|
+
"name": "NotificationGroup",
|
|
10649
|
+
"slots": [
|
|
10650
|
+
{
|
|
10651
|
+
"description": "Default slot in which to place notifications.",
|
|
10652
|
+
"name": ""
|
|
10653
|
+
}
|
|
10654
|
+
],
|
|
10655
|
+
"members": [],
|
|
10656
|
+
"superclass": {
|
|
10657
|
+
"name": "LitElement",
|
|
10658
|
+
"package": "lit"
|
|
10659
|
+
},
|
|
10660
|
+
"localization": [],
|
|
10661
|
+
"status": "new",
|
|
10662
|
+
"category": "feedback",
|
|
10663
|
+
"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",
|
|
10664
|
+
"examples": [],
|
|
10665
|
+
"dependencies": [],
|
|
10666
|
+
"tagName": "nord-notification-group",
|
|
10667
|
+
"customElement": true
|
|
10668
|
+
}
|
|
10669
|
+
],
|
|
10670
|
+
"exports": [
|
|
10671
|
+
{
|
|
10672
|
+
"kind": "js",
|
|
10673
|
+
"name": "default",
|
|
10674
|
+
"declaration": {
|
|
10675
|
+
"name": "NotificationGroup",
|
|
10676
|
+
"module": "src/notification-group/NotificationGroup.ts"
|
|
10677
|
+
}
|
|
10678
|
+
},
|
|
10679
|
+
{
|
|
10680
|
+
"kind": "custom-element-definition",
|
|
10681
|
+
"name": "nord-notification-group",
|
|
10682
|
+
"declaration": {
|
|
10683
|
+
"name": "NotificationGroup",
|
|
10684
|
+
"module": "src/notification-group/NotificationGroup.ts"
|
|
10685
|
+
}
|
|
10686
|
+
}
|
|
10687
|
+
]
|
|
10688
|
+
},
|
|
10599
10689
|
{
|
|
10600
10690
|
"kind": "javascript-module",
|
|
10601
10691
|
"path": "src/progress-bar/ProgressBar.ts",
|
|
@@ -10722,203 +10812,17 @@
|
|
|
10722
10812
|
{
|
|
10723
10813
|
"name": "label",
|
|
10724
10814
|
"type": {
|
|
10725
|
-
"text": "string"
|
|
10726
|
-
},
|
|
10727
|
-
"default": "\"Current progress\"",
|
|
10728
|
-
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
10729
|
-
"fieldName": "label"
|
|
10730
|
-
}
|
|
10731
|
-
],
|
|
10732
|
-
"mixins": [
|
|
10733
|
-
{
|
|
10734
|
-
"name": "FocusableMixin",
|
|
10735
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
10736
|
-
}
|
|
10737
|
-
],
|
|
10738
|
-
"superclass": {
|
|
10739
|
-
"name": "LitElement",
|
|
10740
|
-
"package": "lit"
|
|
10741
|
-
},
|
|
10742
|
-
"localization": [],
|
|
10743
|
-
"status": "ready",
|
|
10744
|
-
"category": "feedback",
|
|
10745
|
-
"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",
|
|
10746
|
-
"examples": [],
|
|
10747
|
-
"dependencies": [],
|
|
10748
|
-
"tagName": "nord-progress-bar",
|
|
10749
|
-
"customElement": true
|
|
10750
|
-
}
|
|
10751
|
-
],
|
|
10752
|
-
"exports": [
|
|
10753
|
-
{
|
|
10754
|
-
"kind": "js",
|
|
10755
|
-
"name": "default",
|
|
10756
|
-
"declaration": {
|
|
10757
|
-
"name": "ProgressBar",
|
|
10758
|
-
"module": "src/progress-bar/ProgressBar.ts"
|
|
10759
|
-
}
|
|
10760
|
-
},
|
|
10761
|
-
{
|
|
10762
|
-
"kind": "custom-element-definition",
|
|
10763
|
-
"name": "nord-progress-bar",
|
|
10764
|
-
"declaration": {
|
|
10765
|
-
"name": "ProgressBar",
|
|
10766
|
-
"module": "src/progress-bar/ProgressBar.ts"
|
|
10767
|
-
}
|
|
10768
|
-
}
|
|
10769
|
-
]
|
|
10770
|
-
},
|
|
10771
|
-
{
|
|
10772
|
-
"kind": "javascript-module",
|
|
10773
|
-
"path": "src/qrcode/Qrcode.ts",
|
|
10774
|
-
"declarations": [
|
|
10775
|
-
{
|
|
10776
|
-
"kind": "class",
|
|
10777
|
-
"description": "QR Code component is used for providing information or links\nto users which they can quickly scan with their smartphone.",
|
|
10778
|
-
"name": "Qrcode",
|
|
10779
|
-
"members": [
|
|
10780
|
-
{
|
|
10781
|
-
"kind": "field",
|
|
10782
|
-
"name": "canvas",
|
|
10783
|
-
"type": {
|
|
10784
|
-
"text": "HTMLElement"
|
|
10785
|
-
},
|
|
10786
|
-
"privacy": "private"
|
|
10787
|
-
},
|
|
10788
|
-
{
|
|
10789
|
-
"kind": "field",
|
|
10790
|
-
"name": "computed",
|
|
10791
|
-
"type": {
|
|
10792
|
-
"text": "HTMLElement"
|
|
10793
|
-
},
|
|
10794
|
-
"privacy": "private"
|
|
10795
|
-
},
|
|
10796
|
-
{
|
|
10797
|
-
"kind": "field",
|
|
10798
|
-
"name": "value",
|
|
10799
|
-
"type": {
|
|
10800
|
-
"text": "string"
|
|
10801
|
-
},
|
|
10802
|
-
"default": "\"\"",
|
|
10803
|
-
"description": "The value of the QR Code, most commonly an URL.",
|
|
10804
|
-
"attribute": "value",
|
|
10805
|
-
"reflects": true
|
|
10806
|
-
},
|
|
10807
|
-
{
|
|
10808
|
-
"kind": "field",
|
|
10809
|
-
"name": "label",
|
|
10810
|
-
"type": {
|
|
10811
|
-
"text": "string"
|
|
10812
|
-
},
|
|
10813
|
-
"default": "\"\"",
|
|
10814
|
-
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
10815
|
-
"attribute": "label",
|
|
10816
|
-
"reflects": true
|
|
10817
|
-
},
|
|
10818
|
-
{
|
|
10819
|
-
"kind": "field",
|
|
10820
|
-
"name": "size",
|
|
10821
|
-
"type": {
|
|
10822
|
-
"text": "number"
|
|
10823
|
-
},
|
|
10824
|
-
"default": "128",
|
|
10825
|
-
"description": "The size of the rendered QR Code in pixels.",
|
|
10826
|
-
"attribute": "size",
|
|
10827
|
-
"reflects": true
|
|
10828
|
-
},
|
|
10829
|
-
{
|
|
10830
|
-
"kind": "field",
|
|
10831
|
-
"name": "color",
|
|
10832
|
-
"type": {
|
|
10833
|
-
"text": "string"
|
|
10834
|
-
},
|
|
10835
|
-
"default": "\"var(--n-color-text)\"",
|
|
10836
|
-
"description": "The fill color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
10837
|
-
"attribute": "color",
|
|
10838
|
-
"reflects": true
|
|
10839
|
-
},
|
|
10840
|
-
{
|
|
10841
|
-
"kind": "field",
|
|
10842
|
-
"name": "background",
|
|
10843
|
-
"type": {
|
|
10844
|
-
"text": "string"
|
|
10845
|
-
},
|
|
10846
|
-
"default": "\"var(--n-color-surface)\"",
|
|
10847
|
-
"description": "The background color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
10848
|
-
"attribute": "background",
|
|
10849
|
-
"reflects": true
|
|
10850
|
-
},
|
|
10851
|
-
{
|
|
10852
|
-
"kind": "field",
|
|
10853
|
-
"name": "correction",
|
|
10854
|
-
"type": {
|
|
10855
|
-
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
10856
|
-
},
|
|
10857
|
-
"default": "\"H\"",
|
|
10858
|
-
"description": "Error correction level makes the QR Code bigger and helps users to\nscan it without issues. L, M, Q and H values will use 7%, 15%, 25%\nand 30% of the QR code for error correction respectively.",
|
|
10859
|
-
"attribute": "correction",
|
|
10860
|
-
"reflects": true
|
|
10861
|
-
},
|
|
10862
|
-
{
|
|
10863
|
-
"kind": "method",
|
|
10864
|
-
"name": "generate",
|
|
10865
|
-
"privacy": "private"
|
|
10866
|
-
}
|
|
10867
|
-
],
|
|
10868
|
-
"attributes": [
|
|
10869
|
-
{
|
|
10870
|
-
"name": "value",
|
|
10871
|
-
"type": {
|
|
10872
|
-
"text": "string"
|
|
10873
|
-
},
|
|
10874
|
-
"default": "\"\"",
|
|
10875
|
-
"description": "The value of the QR Code, most commonly an URL.",
|
|
10876
|
-
"fieldName": "value"
|
|
10877
|
-
},
|
|
10878
|
-
{
|
|
10879
|
-
"name": "label",
|
|
10880
|
-
"type": {
|
|
10881
|
-
"text": "string"
|
|
10882
|
-
},
|
|
10883
|
-
"default": "\"\"",
|
|
10884
|
-
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
10885
|
-
"fieldName": "label"
|
|
10886
|
-
},
|
|
10887
|
-
{
|
|
10888
|
-
"name": "size",
|
|
10889
|
-
"type": {
|
|
10890
|
-
"text": "number"
|
|
10891
|
-
},
|
|
10892
|
-
"default": "128",
|
|
10893
|
-
"description": "The size of the rendered QR Code in pixels.",
|
|
10894
|
-
"fieldName": "size"
|
|
10895
|
-
},
|
|
10896
|
-
{
|
|
10897
|
-
"name": "color",
|
|
10898
|
-
"type": {
|
|
10899
|
-
"text": "string"
|
|
10900
|
-
},
|
|
10901
|
-
"default": "\"var(--n-color-text)\"",
|
|
10902
|
-
"description": "The fill color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
10903
|
-
"fieldName": "color"
|
|
10904
|
-
},
|
|
10905
|
-
{
|
|
10906
|
-
"name": "background",
|
|
10907
|
-
"type": {
|
|
10908
|
-
"text": "string"
|
|
10909
|
-
},
|
|
10910
|
-
"default": "\"var(--n-color-surface)\"",
|
|
10911
|
-
"description": "The background color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
10912
|
-
"fieldName": "background"
|
|
10913
|
-
},
|
|
10914
|
-
{
|
|
10915
|
-
"name": "correction",
|
|
10916
|
-
"type": {
|
|
10917
|
-
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
10815
|
+
"text": "string"
|
|
10918
10816
|
},
|
|
10919
|
-
"default": "\"
|
|
10920
|
-
"description": "
|
|
10921
|
-
"fieldName": "
|
|
10817
|
+
"default": "\"Current progress\"",
|
|
10818
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
10819
|
+
"fieldName": "label"
|
|
10820
|
+
}
|
|
10821
|
+
],
|
|
10822
|
+
"mixins": [
|
|
10823
|
+
{
|
|
10824
|
+
"name": "FocusableMixin",
|
|
10825
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
10922
10826
|
}
|
|
10923
10827
|
],
|
|
10924
10828
|
"superclass": {
|
|
@@ -10927,12 +10831,11 @@
|
|
|
10927
10831
|
},
|
|
10928
10832
|
"localization": [],
|
|
10929
10833
|
"status": "ready",
|
|
10930
|
-
"category": "
|
|
10931
|
-
"
|
|
10932
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to allow people to access information on their smartphone without the need to type.\n- Always provide an alternative way to access the same information.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide important information behind a QR Code only.\n\n</div>\n",
|
|
10834
|
+
"category": "feedback",
|
|
10835
|
+
"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",
|
|
10933
10836
|
"examples": [],
|
|
10934
10837
|
"dependencies": [],
|
|
10935
|
-
"tagName": "nord-
|
|
10838
|
+
"tagName": "nord-progress-bar",
|
|
10936
10839
|
"customElement": true
|
|
10937
10840
|
}
|
|
10938
10841
|
],
|
|
@@ -10941,51 +10844,63 @@
|
|
|
10941
10844
|
"kind": "js",
|
|
10942
10845
|
"name": "default",
|
|
10943
10846
|
"declaration": {
|
|
10944
|
-
"name": "
|
|
10945
|
-
"module": "src/
|
|
10847
|
+
"name": "ProgressBar",
|
|
10848
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
10946
10849
|
}
|
|
10947
10850
|
},
|
|
10948
10851
|
{
|
|
10949
10852
|
"kind": "custom-element-definition",
|
|
10950
|
-
"name": "nord-
|
|
10853
|
+
"name": "nord-progress-bar",
|
|
10951
10854
|
"declaration": {
|
|
10952
|
-
"name": "
|
|
10953
|
-
"module": "src/
|
|
10855
|
+
"name": "ProgressBar",
|
|
10856
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
10954
10857
|
}
|
|
10955
10858
|
}
|
|
10956
10859
|
]
|
|
10957
10860
|
},
|
|
10958
10861
|
{
|
|
10959
10862
|
"kind": "javascript-module",
|
|
10960
|
-
"path": "src/
|
|
10863
|
+
"path": "src/select/Select.ts",
|
|
10961
10864
|
"declarations": [
|
|
10962
10865
|
{
|
|
10963
10866
|
"kind": "class",
|
|
10964
|
-
"description": "
|
|
10965
|
-
"name": "
|
|
10867
|
+
"description": "Select lets users choose one option from an options menu.\nConsider using select when you have 5 or more options to choose from.",
|
|
10868
|
+
"name": "Select",
|
|
10869
|
+
"cssProperties": [
|
|
10870
|
+
{
|
|
10871
|
+
"description": "Controls the block size, or height, of the select using our [spacing tokens](/tokens/#space).",
|
|
10872
|
+
"name": "--n-select-block-size",
|
|
10873
|
+
"default": "var(--n-space-xl)"
|
|
10874
|
+
}
|
|
10875
|
+
],
|
|
10966
10876
|
"slots": [
|
|
10877
|
+
{
|
|
10878
|
+
"description": "Default slot for holding <option> elements.",
|
|
10879
|
+
"name": ""
|
|
10880
|
+
},
|
|
10967
10881
|
{
|
|
10968
10882
|
"description": "Use when a label requires more than plain text.",
|
|
10969
10883
|
"name": "label"
|
|
10970
10884
|
},
|
|
10971
10885
|
{
|
|
10972
|
-
"description": "
|
|
10886
|
+
"description": "Use when a hint requires more than plain text.",
|
|
10973
10887
|
"name": "hint"
|
|
10974
10888
|
},
|
|
10975
10889
|
{
|
|
10976
10890
|
"description": "Optional slot that holds error text for the input.",
|
|
10977
10891
|
"name": "error"
|
|
10892
|
+
},
|
|
10893
|
+
{
|
|
10894
|
+
"description": "Used to place an icon at the start of select.",
|
|
10895
|
+
"name": "icon"
|
|
10978
10896
|
}
|
|
10979
10897
|
],
|
|
10980
10898
|
"members": [
|
|
10981
10899
|
{
|
|
10982
10900
|
"kind": "field",
|
|
10983
|
-
"name": "
|
|
10984
|
-
"type": {
|
|
10985
|
-
"text": "string"
|
|
10986
|
-
},
|
|
10901
|
+
"name": "formValue",
|
|
10987
10902
|
"privacy": "protected",
|
|
10988
|
-
"
|
|
10903
|
+
"readonly": true,
|
|
10989
10904
|
"inheritedFrom": {
|
|
10990
10905
|
"name": "FormAssociatedMixin",
|
|
10991
10906
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -10993,12 +10908,18 @@
|
|
|
10993
10908
|
},
|
|
10994
10909
|
{
|
|
10995
10910
|
"kind": "field",
|
|
10996
|
-
"name": "
|
|
10911
|
+
"name": "defaultSlot",
|
|
10912
|
+
"privacy": "private",
|
|
10913
|
+
"default": "new SlotController(this)"
|
|
10914
|
+
},
|
|
10915
|
+
{
|
|
10916
|
+
"kind": "field",
|
|
10917
|
+
"name": "inputId",
|
|
10997
10918
|
"type": {
|
|
10998
10919
|
"text": "string"
|
|
10999
10920
|
},
|
|
11000
10921
|
"privacy": "protected",
|
|
11001
|
-
"default": "\"
|
|
10922
|
+
"default": "\"select\"",
|
|
11002
10923
|
"inheritedFrom": {
|
|
11003
10924
|
"name": "FormAssociatedMixin",
|
|
11004
10925
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11006,33 +10927,72 @@
|
|
|
11006
10927
|
},
|
|
11007
10928
|
{
|
|
11008
10929
|
"kind": "field",
|
|
11009
|
-
"name": "
|
|
10930
|
+
"name": "expand",
|
|
11010
10931
|
"type": {
|
|
11011
|
-
"text": "
|
|
10932
|
+
"text": "boolean"
|
|
11012
10933
|
},
|
|
11013
|
-
"
|
|
11014
|
-
"
|
|
11015
|
-
"
|
|
11016
|
-
|
|
11017
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11018
|
-
}
|
|
10934
|
+
"default": "false",
|
|
10935
|
+
"description": "Controls whether the select expands to fill the width of its container.",
|
|
10936
|
+
"attribute": "expand",
|
|
10937
|
+
"reflects": true
|
|
11019
10938
|
},
|
|
11020
10939
|
{
|
|
11021
10940
|
"kind": "field",
|
|
11022
|
-
"name": "
|
|
11023
|
-
"privacy": "
|
|
11024
|
-
"
|
|
11025
|
-
|
|
10941
|
+
"name": "options",
|
|
10942
|
+
"privacy": "private",
|
|
10943
|
+
"readonly": true
|
|
10944
|
+
},
|
|
10945
|
+
{
|
|
10946
|
+
"kind": "method",
|
|
10947
|
+
"name": "getButtonText",
|
|
10948
|
+
"privacy": "private",
|
|
10949
|
+
"return": {
|
|
10950
|
+
"type": {
|
|
10951
|
+
"text": "string"
|
|
10952
|
+
}
|
|
10953
|
+
},
|
|
10954
|
+
"parameters": [
|
|
10955
|
+
{
|
|
10956
|
+
"name": "options",
|
|
10957
|
+
"type": {
|
|
10958
|
+
"text": "HTMLOptionElement[]"
|
|
10959
|
+
}
|
|
10960
|
+
}
|
|
10961
|
+
]
|
|
10962
|
+
},
|
|
10963
|
+
{
|
|
10964
|
+
"kind": "method",
|
|
10965
|
+
"name": "renderOption",
|
|
10966
|
+
"privacy": "private",
|
|
10967
|
+
"parameters": [
|
|
10968
|
+
{
|
|
10969
|
+
"name": "option",
|
|
10970
|
+
"type": {
|
|
10971
|
+
"text": "HTMLOptionElement"
|
|
10972
|
+
}
|
|
10973
|
+
}
|
|
10974
|
+
]
|
|
10975
|
+
},
|
|
10976
|
+
{
|
|
10977
|
+
"kind": "field",
|
|
10978
|
+
"name": "size",
|
|
10979
|
+
"type": {
|
|
10980
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
10981
|
+
},
|
|
10982
|
+
"default": "\"m\"",
|
|
10983
|
+
"description": "The size of the component.",
|
|
10984
|
+
"attribute": "size",
|
|
10985
|
+
"reflects": true,
|
|
11026
10986
|
"inheritedFrom": {
|
|
11027
|
-
"name": "
|
|
11028
|
-
"module": "src/common/mixins/
|
|
10987
|
+
"name": "SizeMixin",
|
|
10988
|
+
"module": "src/common/mixins/SizeMixin.ts"
|
|
11029
10989
|
}
|
|
11030
10990
|
},
|
|
11031
10991
|
{
|
|
11032
10992
|
"kind": "field",
|
|
11033
10993
|
"name": "labelSlot",
|
|
11034
10994
|
"privacy": "protected",
|
|
11035
|
-
"default": "new
|
|
10995
|
+
"default": "new SlotController(this, \"label\")",
|
|
11036
10996
|
"inheritedFrom": {
|
|
11037
10997
|
"name": "FormAssociatedMixin",
|
|
11038
10998
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11042,7 +11002,7 @@
|
|
|
11042
11002
|
"kind": "field",
|
|
11043
11003
|
"name": "errorSlot",
|
|
11044
11004
|
"privacy": "protected",
|
|
11045
|
-
"default": "new
|
|
11005
|
+
"default": "new SlotController(this, \"error\")",
|
|
11046
11006
|
"inheritedFrom": {
|
|
11047
11007
|
"name": "FormAssociatedMixin",
|
|
11048
11008
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11050,15 +11010,19 @@
|
|
|
11050
11010
|
},
|
|
11051
11011
|
{
|
|
11052
11012
|
"kind": "field",
|
|
11053
|
-
"name": "
|
|
11013
|
+
"name": "hintSlot",
|
|
11054
11014
|
"privacy": "protected",
|
|
11055
|
-
"default": "new
|
|
11015
|
+
"default": "new SlotController(this, \"hint\")",
|
|
11016
|
+
"inheritedFrom": {
|
|
11017
|
+
"name": "FormAssociatedMixin",
|
|
11018
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11019
|
+
}
|
|
11056
11020
|
},
|
|
11057
11021
|
{
|
|
11058
11022
|
"kind": "field",
|
|
11059
|
-
"name": "
|
|
11023
|
+
"name": "formData",
|
|
11060
11024
|
"privacy": "protected",
|
|
11061
|
-
"
|
|
11025
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
11062
11026
|
"inheritedFrom": {
|
|
11063
11027
|
"name": "FormAssociatedMixin",
|
|
11064
11028
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11066,50 +11030,12 @@
|
|
|
11066
11030
|
},
|
|
11067
11031
|
{
|
|
11068
11032
|
"kind": "field",
|
|
11069
|
-
"name": "
|
|
11033
|
+
"name": "errorId",
|
|
11070
11034
|
"type": {
|
|
11071
|
-
"text": "
|
|
11035
|
+
"text": "string"
|
|
11072
11036
|
},
|
|
11073
|
-
"default": "false",
|
|
11074
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
11075
|
-
"attribute": "checked",
|
|
11076
|
-
"reflects": true
|
|
11077
|
-
},
|
|
11078
|
-
{
|
|
11079
|
-
"kind": "method",
|
|
11080
|
-
"name": "handleCheckedChange",
|
|
11081
|
-
"privacy": "protected",
|
|
11082
|
-
"parameters": [
|
|
11083
|
-
{
|
|
11084
|
-
"name": "previousChecked",
|
|
11085
|
-
"type": {
|
|
11086
|
-
"text": "boolean"
|
|
11087
|
-
}
|
|
11088
|
-
}
|
|
11089
|
-
]
|
|
11090
|
-
},
|
|
11091
|
-
{
|
|
11092
|
-
"kind": "method",
|
|
11093
|
-
"name": "uncheckSiblings",
|
|
11094
|
-
"privacy": "private"
|
|
11095
|
-
},
|
|
11096
|
-
{
|
|
11097
|
-
"kind": "method",
|
|
11098
|
-
"name": "handleChange",
|
|
11099
11037
|
"privacy": "protected",
|
|
11100
|
-
"
|
|
11101
|
-
{
|
|
11102
|
-
"name": "e",
|
|
11103
|
-
"type": {
|
|
11104
|
-
"text": "Event"
|
|
11105
|
-
}
|
|
11106
|
-
}
|
|
11107
|
-
],
|
|
11108
|
-
"return": {
|
|
11109
|
-
"type": {
|
|
11110
|
-
"text": "void"
|
|
11111
|
-
}
|
|
11112
|
-
},
|
|
11038
|
+
"default": "\"error\"",
|
|
11113
11039
|
"inheritedFrom": {
|
|
11114
11040
|
"name": "FormAssociatedMixin",
|
|
11115
11041
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11117,19 +11043,12 @@
|
|
|
11117
11043
|
},
|
|
11118
11044
|
{
|
|
11119
11045
|
"kind": "field",
|
|
11120
|
-
"name": "
|
|
11121
|
-
"
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
"kind": "field",
|
|
11125
|
-
"name": "handleFocus",
|
|
11126
|
-
"privacy": "private"
|
|
11127
|
-
},
|
|
11128
|
-
{
|
|
11129
|
-
"kind": "field",
|
|
11130
|
-
"name": "formData",
|
|
11046
|
+
"name": "hintId",
|
|
11047
|
+
"type": {
|
|
11048
|
+
"text": "string"
|
|
11049
|
+
},
|
|
11131
11050
|
"privacy": "protected",
|
|
11132
|
-
"default": "
|
|
11051
|
+
"default": "\"hint\"",
|
|
11133
11052
|
"inheritedFrom": {
|
|
11134
11053
|
"name": "FormAssociatedMixin",
|
|
11135
11054
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11247,6 +11166,23 @@
|
|
|
11247
11166
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11248
11167
|
}
|
|
11249
11168
|
},
|
|
11169
|
+
{
|
|
11170
|
+
"kind": "method",
|
|
11171
|
+
"name": "handleChange",
|
|
11172
|
+
"privacy": "protected",
|
|
11173
|
+
"parameters": [
|
|
11174
|
+
{
|
|
11175
|
+
"name": "e",
|
|
11176
|
+
"type": {
|
|
11177
|
+
"text": "Event"
|
|
11178
|
+
}
|
|
11179
|
+
}
|
|
11180
|
+
],
|
|
11181
|
+
"inheritedFrom": {
|
|
11182
|
+
"name": "FormAssociatedMixin",
|
|
11183
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11184
|
+
}
|
|
11185
|
+
},
|
|
11250
11186
|
{
|
|
11251
11187
|
"kind": "method",
|
|
11252
11188
|
"name": "renderLabel",
|
|
@@ -11312,6 +11248,20 @@
|
|
|
11312
11248
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11313
11249
|
}
|
|
11314
11250
|
},
|
|
11251
|
+
{
|
|
11252
|
+
"kind": "field",
|
|
11253
|
+
"name": "autocomplete",
|
|
11254
|
+
"type": {
|
|
11255
|
+
"text": "AutocompleteAttribute"
|
|
11256
|
+
},
|
|
11257
|
+
"default": "\"off\"",
|
|
11258
|
+
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
11259
|
+
"attribute": "autocomplete",
|
|
11260
|
+
"inheritedFrom": {
|
|
11261
|
+
"name": "AutocompleteMixin",
|
|
11262
|
+
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
11263
|
+
}
|
|
11264
|
+
},
|
|
11315
11265
|
{
|
|
11316
11266
|
"kind": "field",
|
|
11317
11267
|
"name": "disabled",
|
|
@@ -11441,13 +11391,26 @@
|
|
|
11441
11391
|
],
|
|
11442
11392
|
"attributes": [
|
|
11443
11393
|
{
|
|
11444
|
-
"name": "
|
|
11394
|
+
"name": "expand",
|
|
11395
|
+
"type": {
|
|
11396
|
+
"text": "boolean"
|
|
11397
|
+
},
|
|
11398
|
+
"default": "false",
|
|
11399
|
+
"description": "Controls whether the select expands to fill the width of its container.",
|
|
11400
|
+
"fieldName": "expand"
|
|
11401
|
+
},
|
|
11402
|
+
{
|
|
11403
|
+
"name": "size",
|
|
11445
11404
|
"type": {
|
|
11446
|
-
"text": "
|
|
11405
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
11447
11406
|
},
|
|
11448
|
-
"default": "
|
|
11449
|
-
"description": "
|
|
11450
|
-
"fieldName": "
|
|
11407
|
+
"default": "\"m\"",
|
|
11408
|
+
"description": "The size of the component.",
|
|
11409
|
+
"fieldName": "size",
|
|
11410
|
+
"inheritedFrom": {
|
|
11411
|
+
"name": "SizeMixin",
|
|
11412
|
+
"module": "src/common/mixins/SizeMixin.ts"
|
|
11413
|
+
}
|
|
11451
11414
|
},
|
|
11452
11415
|
{
|
|
11453
11416
|
"name": "label",
|
|
@@ -11537,6 +11500,19 @@
|
|
|
11537
11500
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11538
11501
|
}
|
|
11539
11502
|
},
|
|
11503
|
+
{
|
|
11504
|
+
"name": "autocomplete",
|
|
11505
|
+
"type": {
|
|
11506
|
+
"text": "AutocompleteAttribute"
|
|
11507
|
+
},
|
|
11508
|
+
"default": "\"off\"",
|
|
11509
|
+
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
11510
|
+
"fieldName": "autocomplete",
|
|
11511
|
+
"inheritedFrom": {
|
|
11512
|
+
"name": "AutocompleteMixin",
|
|
11513
|
+
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
11514
|
+
}
|
|
11515
|
+
},
|
|
11540
11516
|
{
|
|
11541
11517
|
"name": "disabled",
|
|
11542
11518
|
"type": {
|
|
@@ -11563,43 +11539,264 @@
|
|
|
11563
11539
|
}
|
|
11564
11540
|
},
|
|
11565
11541
|
{
|
|
11566
|
-
"name": "value",
|
|
11542
|
+
"name": "value",
|
|
11543
|
+
"type": {
|
|
11544
|
+
"text": "string"
|
|
11545
|
+
},
|
|
11546
|
+
"default": "\"\"",
|
|
11547
|
+
"description": "The value of the form component.",
|
|
11548
|
+
"fieldName": "value",
|
|
11549
|
+
"inheritedFrom": {
|
|
11550
|
+
"name": "InputMixin",
|
|
11551
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
11552
|
+
}
|
|
11553
|
+
},
|
|
11554
|
+
{
|
|
11555
|
+
"name": "form",
|
|
11556
|
+
"type": {
|
|
11557
|
+
"text": "HTMLFormElement | null"
|
|
11558
|
+
},
|
|
11559
|
+
"description": "Gets the form, if any, associated with the form element.\nThe setter accepts a string, which is the id of the form.",
|
|
11560
|
+
"fieldName": "form",
|
|
11561
|
+
"inheritedFrom": {
|
|
11562
|
+
"name": "InputMixin",
|
|
11563
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
11564
|
+
}
|
|
11565
|
+
}
|
|
11566
|
+
],
|
|
11567
|
+
"mixins": [
|
|
11568
|
+
{
|
|
11569
|
+
"name": "SizeMixin",
|
|
11570
|
+
"module": "/src/common/mixins/SizeMixin.js"
|
|
11571
|
+
},
|
|
11572
|
+
{
|
|
11573
|
+
"name": "FormAssociatedMixin",
|
|
11574
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
11575
|
+
},
|
|
11576
|
+
{
|
|
11577
|
+
"name": "AutocompleteMixin",
|
|
11578
|
+
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
11579
|
+
},
|
|
11580
|
+
{
|
|
11581
|
+
"name": "InputMixin",
|
|
11582
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
11583
|
+
},
|
|
11584
|
+
{
|
|
11585
|
+
"name": "FocusableMixin",
|
|
11586
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
11587
|
+
}
|
|
11588
|
+
],
|
|
11589
|
+
"superclass": {
|
|
11590
|
+
"name": "LitElement",
|
|
11591
|
+
"package": "lit"
|
|
11592
|
+
},
|
|
11593
|
+
"localization": [],
|
|
11594
|
+
"status": "ready",
|
|
11595
|
+
"category": "form",
|
|
11596
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to let a user choose one option from an options menu.\n- Use when you have more than 6 options to choose from.\n- Use when you don’t know how many options there will be.\n- Use hint text and placeholder to provide additional, non-critical instructions.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use a select if you have less than 6 options to choose from. Consider using radio components instead, if you have enough space to allow it. \n\n</div>\n\n---\n\n## Content guidelines\n\nSelect labels act as a title for the select field. Labels should typically be short and in noun form:\n\n<div class=\"n-usage n-usage-do\">Company name</div>\n<div class=\"n-usage n-usage-dont\">What is your company name?</div>\n\nWhen writing select labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Company name</div>\n<div class=\"n-usage n-usage-dont\">Company Name</div>\n\nDo not use colons in select labels:\n\n<div class=\"n-usage n-usage-do\">Choose organization</div>\n<div class=\"n-usage n-usage-dont\">Choose organization:</div>\n",
|
|
11597
|
+
"examples": [],
|
|
11598
|
+
"dependencies": [
|
|
11599
|
+
"button",
|
|
11600
|
+
"icon"
|
|
11601
|
+
],
|
|
11602
|
+
"tagName": "nord-select",
|
|
11603
|
+
"customElement": true,
|
|
11604
|
+
"events": [
|
|
11605
|
+
{
|
|
11606
|
+
"name": "input",
|
|
11607
|
+
"type": {
|
|
11608
|
+
"text": "NordEvent"
|
|
11609
|
+
},
|
|
11610
|
+
"description": "Fired as the user types into the input.",
|
|
11611
|
+
"inheritedFrom": {
|
|
11612
|
+
"name": "FormAssociatedMixin",
|
|
11613
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11614
|
+
}
|
|
11615
|
+
},
|
|
11616
|
+
{
|
|
11617
|
+
"name": "change",
|
|
11618
|
+
"type": {
|
|
11619
|
+
"text": "NordEvent"
|
|
11620
|
+
},
|
|
11621
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
11622
|
+
"inheritedFrom": {
|
|
11623
|
+
"name": "FormAssociatedMixin",
|
|
11624
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11625
|
+
}
|
|
11626
|
+
}
|
|
11627
|
+
]
|
|
11628
|
+
}
|
|
11629
|
+
],
|
|
11630
|
+
"exports": [
|
|
11631
|
+
{
|
|
11632
|
+
"kind": "js",
|
|
11633
|
+
"name": "default",
|
|
11634
|
+
"declaration": {
|
|
11635
|
+
"name": "Select",
|
|
11636
|
+
"module": "src/select/Select.ts"
|
|
11637
|
+
}
|
|
11638
|
+
},
|
|
11639
|
+
{
|
|
11640
|
+
"kind": "custom-element-definition",
|
|
11641
|
+
"name": "nord-select",
|
|
11642
|
+
"declaration": {
|
|
11643
|
+
"name": "Select",
|
|
11644
|
+
"module": "src/select/Select.ts"
|
|
11645
|
+
}
|
|
11646
|
+
}
|
|
11647
|
+
]
|
|
11648
|
+
},
|
|
11649
|
+
{
|
|
11650
|
+
"kind": "javascript-module",
|
|
11651
|
+
"path": "src/qrcode/Qrcode.ts",
|
|
11652
|
+
"declarations": [
|
|
11653
|
+
{
|
|
11654
|
+
"kind": "class",
|
|
11655
|
+
"description": "QR Code component is used for providing information or links\nto users which they can quickly scan with their smartphone.",
|
|
11656
|
+
"name": "Qrcode",
|
|
11657
|
+
"members": [
|
|
11658
|
+
{
|
|
11659
|
+
"kind": "field",
|
|
11660
|
+
"name": "canvas",
|
|
11661
|
+
"type": {
|
|
11662
|
+
"text": "HTMLElement"
|
|
11663
|
+
},
|
|
11664
|
+
"privacy": "private"
|
|
11665
|
+
},
|
|
11666
|
+
{
|
|
11667
|
+
"kind": "field",
|
|
11668
|
+
"name": "computed",
|
|
11669
|
+
"type": {
|
|
11670
|
+
"text": "HTMLElement"
|
|
11671
|
+
},
|
|
11672
|
+
"privacy": "private"
|
|
11673
|
+
},
|
|
11674
|
+
{
|
|
11675
|
+
"kind": "field",
|
|
11676
|
+
"name": "value",
|
|
11677
|
+
"type": {
|
|
11678
|
+
"text": "string"
|
|
11679
|
+
},
|
|
11680
|
+
"default": "\"\"",
|
|
11681
|
+
"description": "The value of the QR Code, most commonly an URL.",
|
|
11682
|
+
"attribute": "value",
|
|
11683
|
+
"reflects": true
|
|
11684
|
+
},
|
|
11685
|
+
{
|
|
11686
|
+
"kind": "field",
|
|
11687
|
+
"name": "label",
|
|
11688
|
+
"type": {
|
|
11689
|
+
"text": "string"
|
|
11690
|
+
},
|
|
11691
|
+
"default": "\"\"",
|
|
11692
|
+
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
11693
|
+
"attribute": "label",
|
|
11694
|
+
"reflects": true
|
|
11695
|
+
},
|
|
11696
|
+
{
|
|
11697
|
+
"kind": "field",
|
|
11698
|
+
"name": "size",
|
|
11699
|
+
"type": {
|
|
11700
|
+
"text": "number"
|
|
11701
|
+
},
|
|
11702
|
+
"default": "128",
|
|
11703
|
+
"description": "The size of the rendered QR Code in pixels.",
|
|
11704
|
+
"attribute": "size",
|
|
11705
|
+
"reflects": true
|
|
11706
|
+
},
|
|
11707
|
+
{
|
|
11708
|
+
"kind": "field",
|
|
11709
|
+
"name": "color",
|
|
11710
|
+
"type": {
|
|
11711
|
+
"text": "string"
|
|
11712
|
+
},
|
|
11713
|
+
"default": "\"var(--n-color-text)\"",
|
|
11714
|
+
"description": "The fill color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
11715
|
+
"attribute": "color",
|
|
11716
|
+
"reflects": true
|
|
11717
|
+
},
|
|
11718
|
+
{
|
|
11719
|
+
"kind": "field",
|
|
11720
|
+
"name": "background",
|
|
11721
|
+
"type": {
|
|
11722
|
+
"text": "string"
|
|
11723
|
+
},
|
|
11724
|
+
"default": "\"var(--n-color-surface)\"",
|
|
11725
|
+
"description": "The background color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
11726
|
+
"attribute": "background",
|
|
11727
|
+
"reflects": true
|
|
11728
|
+
},
|
|
11729
|
+
{
|
|
11730
|
+
"kind": "field",
|
|
11731
|
+
"name": "correction",
|
|
11732
|
+
"type": {
|
|
11733
|
+
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
11734
|
+
},
|
|
11735
|
+
"default": "\"H\"",
|
|
11736
|
+
"description": "Error correction level makes the QR Code bigger and helps users to\nscan it without issues. L, M, Q and H values will use 7%, 15%, 25%\nand 30% of the QR code for error correction respectively.",
|
|
11737
|
+
"attribute": "correction",
|
|
11738
|
+
"reflects": true
|
|
11739
|
+
},
|
|
11740
|
+
{
|
|
11741
|
+
"kind": "method",
|
|
11742
|
+
"name": "generate",
|
|
11743
|
+
"privacy": "private"
|
|
11744
|
+
}
|
|
11745
|
+
],
|
|
11746
|
+
"attributes": [
|
|
11747
|
+
{
|
|
11748
|
+
"name": "value",
|
|
11749
|
+
"type": {
|
|
11750
|
+
"text": "string"
|
|
11751
|
+
},
|
|
11752
|
+
"default": "\"\"",
|
|
11753
|
+
"description": "The value of the QR Code, most commonly an URL.",
|
|
11754
|
+
"fieldName": "value"
|
|
11755
|
+
},
|
|
11756
|
+
{
|
|
11757
|
+
"name": "label",
|
|
11758
|
+
"type": {
|
|
11759
|
+
"text": "string"
|
|
11760
|
+
},
|
|
11761
|
+
"default": "\"\"",
|
|
11762
|
+
"description": "Label used by assistive technology. If unspecified, the value will\nbe used instead.",
|
|
11763
|
+
"fieldName": "label"
|
|
11764
|
+
},
|
|
11765
|
+
{
|
|
11766
|
+
"name": "size",
|
|
11767
|
+
"type": {
|
|
11768
|
+
"text": "number"
|
|
11769
|
+
},
|
|
11770
|
+
"default": "128",
|
|
11771
|
+
"description": "The size of the rendered QR Code in pixels.",
|
|
11772
|
+
"fieldName": "size"
|
|
11773
|
+
},
|
|
11774
|
+
{
|
|
11775
|
+
"name": "color",
|
|
11567
11776
|
"type": {
|
|
11568
11777
|
"text": "string"
|
|
11569
11778
|
},
|
|
11570
|
-
"default": "\"\"",
|
|
11571
|
-
"description": "The
|
|
11572
|
-
"fieldName": "
|
|
11573
|
-
"inheritedFrom": {
|
|
11574
|
-
"name": "InputMixin",
|
|
11575
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
11576
|
-
}
|
|
11779
|
+
"default": "\"var(--n-color-text)\"",
|
|
11780
|
+
"description": "The fill color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
11781
|
+
"fieldName": "color"
|
|
11577
11782
|
},
|
|
11578
11783
|
{
|
|
11579
|
-
"name": "
|
|
11784
|
+
"name": "background",
|
|
11580
11785
|
"type": {
|
|
11581
|
-
"text": "
|
|
11786
|
+
"text": "string"
|
|
11582
11787
|
},
|
|
11583
|
-
"
|
|
11584
|
-
"
|
|
11585
|
-
"
|
|
11586
|
-
"name": "InputMixin",
|
|
11587
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
11588
|
-
}
|
|
11589
|
-
}
|
|
11590
|
-
],
|
|
11591
|
-
"mixins": [
|
|
11592
|
-
{
|
|
11593
|
-
"name": "FormAssociatedMixin",
|
|
11594
|
-
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
11595
|
-
},
|
|
11596
|
-
{
|
|
11597
|
-
"name": "InputMixin",
|
|
11598
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
11788
|
+
"default": "\"var(--n-color-surface)\"",
|
|
11789
|
+
"description": "The background color of the QR Code.\nCan accept any valid CSS color value, including custom properties.",
|
|
11790
|
+
"fieldName": "background"
|
|
11599
11791
|
},
|
|
11600
11792
|
{
|
|
11601
|
-
"name": "
|
|
11602
|
-
"
|
|
11793
|
+
"name": "correction",
|
|
11794
|
+
"type": {
|
|
11795
|
+
"text": "\"L\" | \"M\" | \"Q\" | \"H\""
|
|
11796
|
+
},
|
|
11797
|
+
"default": "\"H\"",
|
|
11798
|
+
"description": "Error correction level makes the QR Code bigger and helps users to\nscan it without issues. L, M, Q and H values will use 7%, 15%, 25%\nand 30% of the QR code for error correction respectively.",
|
|
11799
|
+
"fieldName": "correction"
|
|
11603
11800
|
}
|
|
11604
11801
|
],
|
|
11605
11802
|
"superclass": {
|
|
@@ -11608,36 +11805,13 @@
|
|
|
11608
11805
|
},
|
|
11609
11806
|
"localization": [],
|
|
11610
11807
|
"status": "ready",
|
|
11611
|
-
"category": "
|
|
11612
|
-
"
|
|
11808
|
+
"category": "image",
|
|
11809
|
+
"displayName": "QR Code",
|
|
11810
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to allow people to access information on their smartphone without the need to type.\n- Always provide an alternative way to access the same information.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t hide important information behind a QR Code only.\n\n</div>\n",
|
|
11613
11811
|
"examples": [],
|
|
11614
11812
|
"dependencies": [],
|
|
11615
|
-
"tagName": "nord-
|
|
11616
|
-
"customElement": true
|
|
11617
|
-
"events": [
|
|
11618
|
-
{
|
|
11619
|
-
"name": "input",
|
|
11620
|
-
"type": {
|
|
11621
|
-
"text": "NordEvent"
|
|
11622
|
-
},
|
|
11623
|
-
"description": "Fired as the user types into the input.",
|
|
11624
|
-
"inheritedFrom": {
|
|
11625
|
-
"name": "FormAssociatedMixin",
|
|
11626
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11627
|
-
}
|
|
11628
|
-
},
|
|
11629
|
-
{
|
|
11630
|
-
"name": "change",
|
|
11631
|
-
"type": {
|
|
11632
|
-
"text": "NordEvent"
|
|
11633
|
-
},
|
|
11634
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
11635
|
-
"inheritedFrom": {
|
|
11636
|
-
"name": "FormAssociatedMixin",
|
|
11637
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11638
|
-
}
|
|
11639
|
-
}
|
|
11640
|
-
]
|
|
11813
|
+
"tagName": "nord-qrcode",
|
|
11814
|
+
"customElement": true
|
|
11641
11815
|
}
|
|
11642
11816
|
],
|
|
11643
11817
|
"exports": [
|
|
@@ -11645,16 +11819,16 @@
|
|
|
11645
11819
|
"kind": "js",
|
|
11646
11820
|
"name": "default",
|
|
11647
11821
|
"declaration": {
|
|
11648
|
-
"name": "
|
|
11649
|
-
"module": "src/
|
|
11822
|
+
"name": "Qrcode",
|
|
11823
|
+
"module": "src/qrcode/Qrcode.ts"
|
|
11650
11824
|
}
|
|
11651
11825
|
},
|
|
11652
11826
|
{
|
|
11653
11827
|
"kind": "custom-element-definition",
|
|
11654
|
-
"name": "nord-
|
|
11828
|
+
"name": "nord-qrcode",
|
|
11655
11829
|
"declaration": {
|
|
11656
|
-
"name": "
|
|
11657
|
-
"module": "src/
|
|
11830
|
+
"name": "Qrcode",
|
|
11831
|
+
"module": "src/qrcode/Qrcode.ts"
|
|
11658
11832
|
}
|
|
11659
11833
|
}
|
|
11660
11834
|
]
|
|
@@ -12473,47 +12647,35 @@
|
|
|
12473
12647
|
},
|
|
12474
12648
|
{
|
|
12475
12649
|
"kind": "javascript-module",
|
|
12476
|
-
"path": "src/
|
|
12650
|
+
"path": "src/radio/Radio.ts",
|
|
12477
12651
|
"declarations": [
|
|
12478
12652
|
{
|
|
12479
12653
|
"kind": "class",
|
|
12480
|
-
"description": "
|
|
12481
|
-
"name": "
|
|
12482
|
-
"cssProperties": [
|
|
12483
|
-
{
|
|
12484
|
-
"description": "Controls the block size, or height, of the select using our [spacing tokens](/tokens/#space).",
|
|
12485
|
-
"name": "--n-select-block-size",
|
|
12486
|
-
"default": "var(--n-space-xl)"
|
|
12487
|
-
}
|
|
12488
|
-
],
|
|
12654
|
+
"description": "Radio buttons are graphical user interface elements that allow user to choose only one option from\na predefined set of mutually exclusive options.",
|
|
12655
|
+
"name": "Radio",
|
|
12489
12656
|
"slots": [
|
|
12490
|
-
{
|
|
12491
|
-
"description": "Default slot for holding <option> elements.",
|
|
12492
|
-
"name": ""
|
|
12493
|
-
},
|
|
12494
12657
|
{
|
|
12495
12658
|
"description": "Use when a label requires more than plain text.",
|
|
12496
12659
|
"name": "label"
|
|
12497
12660
|
},
|
|
12498
12661
|
{
|
|
12499
|
-
"description": "
|
|
12662
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
12500
12663
|
"name": "hint"
|
|
12501
12664
|
},
|
|
12502
12665
|
{
|
|
12503
12666
|
"description": "Optional slot that holds error text for the input.",
|
|
12504
12667
|
"name": "error"
|
|
12505
|
-
},
|
|
12506
|
-
{
|
|
12507
|
-
"description": "Used to place an icon at the start of select.",
|
|
12508
|
-
"name": "icon"
|
|
12509
12668
|
}
|
|
12510
12669
|
],
|
|
12511
12670
|
"members": [
|
|
12512
12671
|
{
|
|
12513
12672
|
"kind": "field",
|
|
12514
|
-
"name": "
|
|
12673
|
+
"name": "inputId",
|
|
12674
|
+
"type": {
|
|
12675
|
+
"text": "string"
|
|
12676
|
+
},
|
|
12515
12677
|
"privacy": "protected",
|
|
12516
|
-
"
|
|
12678
|
+
"default": "\"input\"",
|
|
12517
12679
|
"inheritedFrom": {
|
|
12518
12680
|
"name": "FormAssociatedMixin",
|
|
12519
12681
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12521,18 +12683,12 @@
|
|
|
12521
12683
|
},
|
|
12522
12684
|
{
|
|
12523
12685
|
"kind": "field",
|
|
12524
|
-
"name": "
|
|
12525
|
-
"privacy": "private",
|
|
12526
|
-
"default": "new SlotController(this)"
|
|
12527
|
-
},
|
|
12528
|
-
{
|
|
12529
|
-
"kind": "field",
|
|
12530
|
-
"name": "inputId",
|
|
12686
|
+
"name": "hintId",
|
|
12531
12687
|
"type": {
|
|
12532
12688
|
"text": "string"
|
|
12533
12689
|
},
|
|
12534
12690
|
"privacy": "protected",
|
|
12535
|
-
"default": "\"
|
|
12691
|
+
"default": "\"hint\"",
|
|
12536
12692
|
"inheritedFrom": {
|
|
12537
12693
|
"name": "FormAssociatedMixin",
|
|
12538
12694
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12540,72 +12696,33 @@
|
|
|
12540
12696
|
},
|
|
12541
12697
|
{
|
|
12542
12698
|
"kind": "field",
|
|
12543
|
-
"name": "
|
|
12699
|
+
"name": "errorId",
|
|
12544
12700
|
"type": {
|
|
12545
|
-
"text": "
|
|
12546
|
-
},
|
|
12547
|
-
"default": "false",
|
|
12548
|
-
"description": "Controls whether the select expands to fill the width of its container.",
|
|
12549
|
-
"attribute": "expand",
|
|
12550
|
-
"reflects": true
|
|
12551
|
-
},
|
|
12552
|
-
{
|
|
12553
|
-
"kind": "field",
|
|
12554
|
-
"name": "options",
|
|
12555
|
-
"privacy": "private",
|
|
12556
|
-
"readonly": true
|
|
12557
|
-
},
|
|
12558
|
-
{
|
|
12559
|
-
"kind": "method",
|
|
12560
|
-
"name": "getButtonText",
|
|
12561
|
-
"privacy": "private",
|
|
12562
|
-
"return": {
|
|
12563
|
-
"type": {
|
|
12564
|
-
"text": "string"
|
|
12565
|
-
}
|
|
12701
|
+
"text": "string"
|
|
12566
12702
|
},
|
|
12567
|
-
"
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
}
|
|
12574
|
-
]
|
|
12575
|
-
},
|
|
12576
|
-
{
|
|
12577
|
-
"kind": "method",
|
|
12578
|
-
"name": "renderOption",
|
|
12579
|
-
"privacy": "private",
|
|
12580
|
-
"parameters": [
|
|
12581
|
-
{
|
|
12582
|
-
"name": "option",
|
|
12583
|
-
"type": {
|
|
12584
|
-
"text": "HTMLOptionElement"
|
|
12585
|
-
}
|
|
12586
|
-
}
|
|
12587
|
-
]
|
|
12703
|
+
"privacy": "protected",
|
|
12704
|
+
"default": "\"error\"",
|
|
12705
|
+
"inheritedFrom": {
|
|
12706
|
+
"name": "FormAssociatedMixin",
|
|
12707
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12708
|
+
}
|
|
12588
12709
|
},
|
|
12589
12710
|
{
|
|
12590
12711
|
"kind": "field",
|
|
12591
|
-
"name": "
|
|
12592
|
-
"
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
"default": "\"m\"",
|
|
12596
|
-
"description": "The size of the component.",
|
|
12597
|
-
"attribute": "size",
|
|
12598
|
-
"reflects": true,
|
|
12712
|
+
"name": "hintSlot",
|
|
12713
|
+
"privacy": "protected",
|
|
12714
|
+
"default": "new LightSlotController(this, {\n slotName: \"hint\",\n render: () => (this.hint ? html`<div slot=\"hint-internal\" id=${this.hintId}>${this.hint}</div>` : nothing),\n syncLightDom: element => {\n element.id = this.hintId\n },\n })",
|
|
12715
|
+
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
12599
12716
|
"inheritedFrom": {
|
|
12600
|
-
"name": "
|
|
12601
|
-
"module": "src/common/mixins/
|
|
12717
|
+
"name": "FormAssociatedMixin",
|
|
12718
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12602
12719
|
}
|
|
12603
12720
|
},
|
|
12604
12721
|
{
|
|
12605
12722
|
"kind": "field",
|
|
12606
12723
|
"name": "labelSlot",
|
|
12607
12724
|
"privacy": "protected",
|
|
12608
|
-
"default": "new
|
|
12725
|
+
"default": "new LightSlotController(this, {\n slotName: \"label\",\n render: () => (this.label ? html`<label slot=\"label-internal\" for=${this.inputId}>${this.label}</label>` : nothing),\n syncLightDom: element => {\n if (!isLabel(element)) {\n // eslint-disable-next-line no-console\n console.warn(`NORD: Only <label> elements should be placed in radio's \"label\" slot`)\n } else {\n element.htmlFor = this.inputId\n }\n },\n })",
|
|
12609
12726
|
"inheritedFrom": {
|
|
12610
12727
|
"name": "FormAssociatedMixin",
|
|
12611
12728
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12615,7 +12732,7 @@
|
|
|
12615
12732
|
"kind": "field",
|
|
12616
12733
|
"name": "errorSlot",
|
|
12617
12734
|
"privacy": "protected",
|
|
12618
|
-
"default": "new
|
|
12735
|
+
"default": "new LightSlotController(this, {\n slotName: \"error\",\n render: () => (this.error ? html`<div slot=\"error-internal\" id=${this.errorId}>${this.error}</div>` : nothing),\n syncLightDom: element => {\n element.id = this.hintId\n },\n })",
|
|
12619
12736
|
"inheritedFrom": {
|
|
12620
12737
|
"name": "FormAssociatedMixin",
|
|
12621
12738
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12623,19 +12740,15 @@
|
|
|
12623
12740
|
},
|
|
12624
12741
|
{
|
|
12625
12742
|
"kind": "field",
|
|
12626
|
-
"name": "
|
|
12743
|
+
"name": "inputSlot",
|
|
12627
12744
|
"privacy": "protected",
|
|
12628
|
-
"default": "new
|
|
12629
|
-
"inheritedFrom": {
|
|
12630
|
-
"name": "FormAssociatedMixin",
|
|
12631
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12632
|
-
}
|
|
12745
|
+
"default": "new LightDomController(this, {\n render: () =>\n html`\n <input\n slot=\"input\"\n @blur=${this.handleBlur}\n @focus=${this.handleFocus}\n ${ref(this.focusableRef)}\n class=\"n-input\"\n id=${this.inputId}\n type=\"radio\"\n name=${cond(this.name)}\n .value=${cond(this.value)}\n .checked=${this.checked}\n ?disabled=${this.disabled}\n ?required=${this.required}\n aria-describedby=${cond(this.getDescribedBy())}\n aria-invalid=${cond(this.getInvalid())}\n form=${cond(this._formId)}\n />\n `,\n })"
|
|
12633
12746
|
},
|
|
12634
12747
|
{
|
|
12635
12748
|
"kind": "field",
|
|
12636
|
-
"name": "
|
|
12749
|
+
"name": "formValue",
|
|
12637
12750
|
"privacy": "protected",
|
|
12638
|
-
"
|
|
12751
|
+
"readonly": true,
|
|
12639
12752
|
"inheritedFrom": {
|
|
12640
12753
|
"name": "FormAssociatedMixin",
|
|
12641
12754
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12643,12 +12756,50 @@
|
|
|
12643
12756
|
},
|
|
12644
12757
|
{
|
|
12645
12758
|
"kind": "field",
|
|
12646
|
-
"name": "
|
|
12759
|
+
"name": "checked",
|
|
12647
12760
|
"type": {
|
|
12648
|
-
"text": "
|
|
12761
|
+
"text": "boolean"
|
|
12649
12762
|
},
|
|
12763
|
+
"default": "false",
|
|
12764
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
12765
|
+
"attribute": "checked",
|
|
12766
|
+
"reflects": true
|
|
12767
|
+
},
|
|
12768
|
+
{
|
|
12769
|
+
"kind": "method",
|
|
12770
|
+
"name": "handleCheckedChange",
|
|
12650
12771
|
"privacy": "protected",
|
|
12651
|
-
"
|
|
12772
|
+
"parameters": [
|
|
12773
|
+
{
|
|
12774
|
+
"name": "previousChecked",
|
|
12775
|
+
"type": {
|
|
12776
|
+
"text": "boolean"
|
|
12777
|
+
}
|
|
12778
|
+
}
|
|
12779
|
+
]
|
|
12780
|
+
},
|
|
12781
|
+
{
|
|
12782
|
+
"kind": "method",
|
|
12783
|
+
"name": "uncheckSiblings",
|
|
12784
|
+
"privacy": "private"
|
|
12785
|
+
},
|
|
12786
|
+
{
|
|
12787
|
+
"kind": "method",
|
|
12788
|
+
"name": "handleChange",
|
|
12789
|
+
"privacy": "protected",
|
|
12790
|
+
"parameters": [
|
|
12791
|
+
{
|
|
12792
|
+
"name": "e",
|
|
12793
|
+
"type": {
|
|
12794
|
+
"text": "Event"
|
|
12795
|
+
}
|
|
12796
|
+
}
|
|
12797
|
+
],
|
|
12798
|
+
"return": {
|
|
12799
|
+
"type": {
|
|
12800
|
+
"text": "void"
|
|
12801
|
+
}
|
|
12802
|
+
},
|
|
12652
12803
|
"inheritedFrom": {
|
|
12653
12804
|
"name": "FormAssociatedMixin",
|
|
12654
12805
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12656,12 +12807,19 @@
|
|
|
12656
12807
|
},
|
|
12657
12808
|
{
|
|
12658
12809
|
"kind": "field",
|
|
12659
|
-
"name": "
|
|
12660
|
-
"
|
|
12661
|
-
|
|
12662
|
-
|
|
12810
|
+
"name": "handleBlur",
|
|
12811
|
+
"privacy": "private"
|
|
12812
|
+
},
|
|
12813
|
+
{
|
|
12814
|
+
"kind": "field",
|
|
12815
|
+
"name": "handleFocus",
|
|
12816
|
+
"privacy": "private"
|
|
12817
|
+
},
|
|
12818
|
+
{
|
|
12819
|
+
"kind": "field",
|
|
12820
|
+
"name": "formData",
|
|
12663
12821
|
"privacy": "protected",
|
|
12664
|
-
"default": "
|
|
12822
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
12665
12823
|
"inheritedFrom": {
|
|
12666
12824
|
"name": "FormAssociatedMixin",
|
|
12667
12825
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12779,23 +12937,6 @@
|
|
|
12779
12937
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12780
12938
|
}
|
|
12781
12939
|
},
|
|
12782
|
-
{
|
|
12783
|
-
"kind": "method",
|
|
12784
|
-
"name": "handleChange",
|
|
12785
|
-
"privacy": "protected",
|
|
12786
|
-
"parameters": [
|
|
12787
|
-
{
|
|
12788
|
-
"name": "e",
|
|
12789
|
-
"type": {
|
|
12790
|
-
"text": "Event"
|
|
12791
|
-
}
|
|
12792
|
-
}
|
|
12793
|
-
],
|
|
12794
|
-
"inheritedFrom": {
|
|
12795
|
-
"name": "FormAssociatedMixin",
|
|
12796
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12797
|
-
}
|
|
12798
|
-
},
|
|
12799
12940
|
{
|
|
12800
12941
|
"kind": "method",
|
|
12801
12942
|
"name": "renderLabel",
|
|
@@ -12861,20 +13002,6 @@
|
|
|
12861
13002
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12862
13003
|
}
|
|
12863
13004
|
},
|
|
12864
|
-
{
|
|
12865
|
-
"kind": "field",
|
|
12866
|
-
"name": "autocomplete",
|
|
12867
|
-
"type": {
|
|
12868
|
-
"text": "AutocompleteAttribute"
|
|
12869
|
-
},
|
|
12870
|
-
"default": "\"off\"",
|
|
12871
|
-
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
12872
|
-
"attribute": "autocomplete",
|
|
12873
|
-
"inheritedFrom": {
|
|
12874
|
-
"name": "AutocompleteMixin",
|
|
12875
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
12876
|
-
}
|
|
12877
|
-
},
|
|
12878
13005
|
{
|
|
12879
13006
|
"kind": "field",
|
|
12880
13007
|
"name": "disabled",
|
|
@@ -13004,26 +13131,13 @@
|
|
|
13004
13131
|
],
|
|
13005
13132
|
"attributes": [
|
|
13006
13133
|
{
|
|
13007
|
-
"name": "
|
|
13134
|
+
"name": "checked",
|
|
13008
13135
|
"type": {
|
|
13009
13136
|
"text": "boolean"
|
|
13010
13137
|
},
|
|
13011
13138
|
"default": "false",
|
|
13012
|
-
"description": "Controls whether the
|
|
13013
|
-
"fieldName": "
|
|
13014
|
-
},
|
|
13015
|
-
{
|
|
13016
|
-
"name": "size",
|
|
13017
|
-
"type": {
|
|
13018
|
-
"text": "\"s\" | \"m\" | \"l\""
|
|
13019
|
-
},
|
|
13020
|
-
"default": "\"m\"",
|
|
13021
|
-
"description": "The size of the component.",
|
|
13022
|
-
"fieldName": "size",
|
|
13023
|
-
"inheritedFrom": {
|
|
13024
|
-
"name": "SizeMixin",
|
|
13025
|
-
"module": "src/common/mixins/SizeMixin.ts"
|
|
13026
|
-
}
|
|
13139
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
13140
|
+
"fieldName": "checked"
|
|
13027
13141
|
},
|
|
13028
13142
|
{
|
|
13029
13143
|
"name": "label",
|
|
@@ -13113,19 +13227,6 @@
|
|
|
13113
13227
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
13114
13228
|
}
|
|
13115
13229
|
},
|
|
13116
|
-
{
|
|
13117
|
-
"name": "autocomplete",
|
|
13118
|
-
"type": {
|
|
13119
|
-
"text": "AutocompleteAttribute"
|
|
13120
|
-
},
|
|
13121
|
-
"default": "\"off\"",
|
|
13122
|
-
"description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
|
|
13123
|
-
"fieldName": "autocomplete",
|
|
13124
|
-
"inheritedFrom": {
|
|
13125
|
-
"name": "AutocompleteMixin",
|
|
13126
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
13127
|
-
}
|
|
13128
|
-
},
|
|
13129
13230
|
{
|
|
13130
13231
|
"name": "disabled",
|
|
13131
13232
|
"type": {
|
|
@@ -13178,18 +13279,10 @@
|
|
|
13178
13279
|
}
|
|
13179
13280
|
],
|
|
13180
13281
|
"mixins": [
|
|
13181
|
-
{
|
|
13182
|
-
"name": "SizeMixin",
|
|
13183
|
-
"module": "/src/common/mixins/SizeMixin.js"
|
|
13184
|
-
},
|
|
13185
13282
|
{
|
|
13186
13283
|
"name": "FormAssociatedMixin",
|
|
13187
13284
|
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
13188
13285
|
},
|
|
13189
|
-
{
|
|
13190
|
-
"name": "AutocompleteMixin",
|
|
13191
|
-
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
13192
|
-
},
|
|
13193
13286
|
{
|
|
13194
13287
|
"name": "InputMixin",
|
|
13195
13288
|
"module": "/src/common/mixins/InputMixin.js"
|
|
@@ -13206,13 +13299,10 @@
|
|
|
13206
13299
|
"localization": [],
|
|
13207
13300
|
"status": "ready",
|
|
13208
13301
|
"category": "form",
|
|
13209
|
-
"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
|
|
13302
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use a radio component when users can only select one option from a list.\n- Favour radios over a select component when there are a small number of options. This reduces the number of clicks a user has to make, increasing efficiency.\n- Radio buttons are grouped by their `name` attribute. Therefore, it is crucial that the same `name` is used for a group of radios.\n- Give each radio within a group a unique `value`.\n- Radios **must** be used in combination with a fieldset component.\n- In most cases, a stack component should be used to layout a group of radio buttons.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use when a user can select more than one option. In this case, use a checkbox instead.\n- Don’t use for “accepting terms of service” and similar functionality. Use a checkbox instead.\n- When you have more than 10 options to choose from. Consider using a select instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nRadio button labels should be clear, accurate and predictable. It should be possible for the user to understand what they are enabling or disabling:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing radio button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Blue</div>\n<div class=\"n-usage n-usage-dont\">Blue.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patient</div>\n<div class=\"n-usage n-usage-dont\">Patient;</div>\n\n---\n\n## Additional considerations\n\n- Hint text can be used to offer further information or explanation for an option.\n- Once a radio has been selected, users cannot return to having no radios selected without refreshing their browser window. Therefore, you should include \"None of the above\" or \"I do not know\" if they are valid options.\n- In most cases, radio buttons should be stacked vertically. However, radio buttons can be stacked horizontally when there are only two options with short labels. An example might be a yes/no question.\n",
|
|
13210
13303
|
"examples": [],
|
|
13211
|
-
"dependencies": [
|
|
13212
|
-
|
|
13213
|
-
"icon"
|
|
13214
|
-
],
|
|
13215
|
-
"tagName": "nord-select",
|
|
13304
|
+
"dependencies": [],
|
|
13305
|
+
"tagName": "nord-radio",
|
|
13216
13306
|
"customElement": true,
|
|
13217
13307
|
"events": [
|
|
13218
13308
|
{
|
|
@@ -13245,16 +13335,16 @@
|
|
|
13245
13335
|
"kind": "js",
|
|
13246
13336
|
"name": "default",
|
|
13247
13337
|
"declaration": {
|
|
13248
|
-
"name": "
|
|
13249
|
-
"module": "src/
|
|
13338
|
+
"name": "Radio",
|
|
13339
|
+
"module": "src/radio/Radio.ts"
|
|
13250
13340
|
}
|
|
13251
13341
|
},
|
|
13252
13342
|
{
|
|
13253
13343
|
"kind": "custom-element-definition",
|
|
13254
|
-
"name": "nord-
|
|
13344
|
+
"name": "nord-radio",
|
|
13255
13345
|
"declaration": {
|
|
13256
|
-
"name": "
|
|
13257
|
-
"module": "src/
|
|
13346
|
+
"name": "Radio",
|
|
13347
|
+
"module": "src/radio/Radio.ts"
|
|
13258
13348
|
}
|
|
13259
13349
|
}
|
|
13260
13350
|
]
|
|
@@ -13500,13 +13590,169 @@
|
|
|
13500
13590
|
],
|
|
13501
13591
|
"attributes": [
|
|
13502
13592
|
{
|
|
13503
|
-
"name": "selected",
|
|
13593
|
+
"name": "selected",
|
|
13594
|
+
"type": {
|
|
13595
|
+
"text": "boolean"
|
|
13596
|
+
},
|
|
13597
|
+
"default": "false",
|
|
13598
|
+
"description": "Whether the tab item is selected",
|
|
13599
|
+
"fieldName": "selected"
|
|
13600
|
+
}
|
|
13601
|
+
],
|
|
13602
|
+
"superclass": {
|
|
13603
|
+
"name": "LitElement",
|
|
13604
|
+
"package": "lit"
|
|
13605
|
+
},
|
|
13606
|
+
"localization": [],
|
|
13607
|
+
"status": "ready",
|
|
13608
|
+
"category": "navigation",
|
|
13609
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab component within the tab group component.\n- Use the `selected` option to signify if the tab is selected.\n- Use text, icons and other non-interactive content within the tab.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use tabs to navigate to other pages. Use navigation or links instead.\n- Don't use the tab component outside of the tab group component.\n- Don't add interactive elements, such as buttons and links, inside the tab component.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular section you wish to show out of order of the tabs UI itself consider using the `selected` option to select the tab but prevent the order of the tabs being affected.\n",
|
|
13610
|
+
"examples": [],
|
|
13611
|
+
"dependencies": [],
|
|
13612
|
+
"tagName": "nord-tab",
|
|
13613
|
+
"customElement": true
|
|
13614
|
+
}
|
|
13615
|
+
],
|
|
13616
|
+
"exports": [
|
|
13617
|
+
{
|
|
13618
|
+
"kind": "js",
|
|
13619
|
+
"name": "default",
|
|
13620
|
+
"declaration": {
|
|
13621
|
+
"name": "Tab",
|
|
13622
|
+
"module": "src/tab/Tab.ts"
|
|
13623
|
+
}
|
|
13624
|
+
},
|
|
13625
|
+
{
|
|
13626
|
+
"kind": "custom-element-definition",
|
|
13627
|
+
"name": "nord-tab",
|
|
13628
|
+
"declaration": {
|
|
13629
|
+
"name": "Tab",
|
|
13630
|
+
"module": "src/tab/Tab.ts"
|
|
13631
|
+
}
|
|
13632
|
+
}
|
|
13633
|
+
]
|
|
13634
|
+
},
|
|
13635
|
+
{
|
|
13636
|
+
"kind": "javascript-module",
|
|
13637
|
+
"path": "src/stack/Stack.ts",
|
|
13638
|
+
"declarations": [
|
|
13639
|
+
{
|
|
13640
|
+
"kind": "class",
|
|
13641
|
+
"description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
|
|
13642
|
+
"name": "Stack",
|
|
13643
|
+
"cssProperties": [
|
|
13644
|
+
{
|
|
13645
|
+
"description": "Controls the spacing between items, using our [spacing tokens](/tokens/#space).",
|
|
13646
|
+
"name": "--n-stack-gap",
|
|
13647
|
+
"default": "var(--n-space-m)"
|
|
13648
|
+
}
|
|
13649
|
+
],
|
|
13650
|
+
"slots": [
|
|
13651
|
+
{
|
|
13652
|
+
"description": "The stack content.",
|
|
13653
|
+
"name": ""
|
|
13654
|
+
}
|
|
13655
|
+
],
|
|
13656
|
+
"members": [
|
|
13657
|
+
{
|
|
13658
|
+
"kind": "field",
|
|
13659
|
+
"name": "gap",
|
|
13660
|
+
"type": {
|
|
13661
|
+
"text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13662
|
+
},
|
|
13663
|
+
"default": "\"m\"",
|
|
13664
|
+
"description": "The space injected between components.",
|
|
13665
|
+
"attribute": "gap",
|
|
13666
|
+
"reflects": true
|
|
13667
|
+
},
|
|
13668
|
+
{
|
|
13669
|
+
"kind": "field",
|
|
13670
|
+
"name": "direction",
|
|
13671
|
+
"type": {
|
|
13672
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
13673
|
+
},
|
|
13674
|
+
"default": "\"vertical\"",
|
|
13675
|
+
"description": "The direction of the stack.",
|
|
13676
|
+
"attribute": "direction",
|
|
13677
|
+
"reflects": true
|
|
13678
|
+
},
|
|
13679
|
+
{
|
|
13680
|
+
"kind": "field",
|
|
13681
|
+
"name": "alignItems",
|
|
13682
|
+
"type": {
|
|
13683
|
+
"text": "\"center\" | \"start\" | \"end\" | \"stretch\" | undefined"
|
|
13684
|
+
},
|
|
13685
|
+
"default": "\"stretch\"",
|
|
13686
|
+
"description": "How to align the child items inside the stack.",
|
|
13687
|
+
"attribute": "align-items",
|
|
13688
|
+
"reflects": true
|
|
13689
|
+
},
|
|
13690
|
+
{
|
|
13691
|
+
"kind": "field",
|
|
13692
|
+
"name": "wrap",
|
|
13693
|
+
"type": {
|
|
13694
|
+
"text": "boolean"
|
|
13695
|
+
},
|
|
13696
|
+
"default": "false",
|
|
13697
|
+
"description": "Defines whether the Stack items are forced in a single line\nor can be flowed into multiple lines.",
|
|
13698
|
+
"attribute": "wrap",
|
|
13699
|
+
"reflects": true
|
|
13700
|
+
},
|
|
13701
|
+
{
|
|
13702
|
+
"kind": "field",
|
|
13703
|
+
"name": "justifyContent",
|
|
13704
|
+
"type": {
|
|
13705
|
+
"text": "| \"center\"\n | \"start\"\n | \"end\"\n | \"baseline\"\n | \"space-between\"\n | \"space-around\"\n | \"space-evenly\" | undefined"
|
|
13706
|
+
},
|
|
13707
|
+
"description": "How to justify the child items inside the stack.",
|
|
13708
|
+
"attribute": "justify-content",
|
|
13709
|
+
"reflects": true
|
|
13710
|
+
}
|
|
13711
|
+
],
|
|
13712
|
+
"attributes": [
|
|
13713
|
+
{
|
|
13714
|
+
"name": "gap",
|
|
13715
|
+
"type": {
|
|
13716
|
+
"text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13717
|
+
},
|
|
13718
|
+
"default": "\"m\"",
|
|
13719
|
+
"description": "The space injected between components.",
|
|
13720
|
+
"fieldName": "gap"
|
|
13721
|
+
},
|
|
13722
|
+
{
|
|
13723
|
+
"name": "direction",
|
|
13724
|
+
"type": {
|
|
13725
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
13726
|
+
},
|
|
13727
|
+
"default": "\"vertical\"",
|
|
13728
|
+
"description": "The direction of the stack.",
|
|
13729
|
+
"fieldName": "direction"
|
|
13730
|
+
},
|
|
13731
|
+
{
|
|
13732
|
+
"name": "align-items",
|
|
13733
|
+
"type": {
|
|
13734
|
+
"text": "\"center\" | \"start\" | \"end\" | \"stretch\" | undefined"
|
|
13735
|
+
},
|
|
13736
|
+
"default": "\"stretch\"",
|
|
13737
|
+
"description": "How to align the child items inside the stack.",
|
|
13738
|
+
"fieldName": "alignItems"
|
|
13739
|
+
},
|
|
13740
|
+
{
|
|
13741
|
+
"name": "wrap",
|
|
13504
13742
|
"type": {
|
|
13505
13743
|
"text": "boolean"
|
|
13506
13744
|
},
|
|
13507
13745
|
"default": "false",
|
|
13508
|
-
"description": "
|
|
13509
|
-
"fieldName": "
|
|
13746
|
+
"description": "Defines whether the Stack items are forced in a single line\nor can be flowed into multiple lines.",
|
|
13747
|
+
"fieldName": "wrap"
|
|
13748
|
+
},
|
|
13749
|
+
{
|
|
13750
|
+
"name": "justify-content",
|
|
13751
|
+
"type": {
|
|
13752
|
+
"text": "| \"center\"\n | \"start\"\n | \"end\"\n | \"baseline\"\n | \"space-between\"\n | \"space-around\"\n | \"space-evenly\" | undefined"
|
|
13753
|
+
},
|
|
13754
|
+
"description": "How to justify the child items inside the stack.",
|
|
13755
|
+
"fieldName": "justifyContent"
|
|
13510
13756
|
}
|
|
13511
13757
|
],
|
|
13512
13758
|
"superclass": {
|
|
@@ -13515,11 +13761,11 @@
|
|
|
13515
13761
|
},
|
|
13516
13762
|
"localization": [],
|
|
13517
13763
|
"status": "ready",
|
|
13518
|
-
"category": "
|
|
13519
|
-
"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
|
|
13764
|
+
"category": "structure",
|
|
13765
|
+
"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 when you need to stack multiple components vertically or horizontally.\n- Use when you want to adjust the white space between two or more components.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for building grid based layouts.\n\n</div>\n",
|
|
13520
13766
|
"examples": [],
|
|
13521
13767
|
"dependencies": [],
|
|
13522
|
-
"tagName": "nord-
|
|
13768
|
+
"tagName": "nord-stack",
|
|
13523
13769
|
"customElement": true
|
|
13524
13770
|
}
|
|
13525
13771
|
],
|
|
@@ -13528,16 +13774,16 @@
|
|
|
13528
13774
|
"kind": "js",
|
|
13529
13775
|
"name": "default",
|
|
13530
13776
|
"declaration": {
|
|
13531
|
-
"name": "
|
|
13532
|
-
"module": "src/
|
|
13777
|
+
"name": "Stack",
|
|
13778
|
+
"module": "src/stack/Stack.ts"
|
|
13533
13779
|
}
|
|
13534
13780
|
},
|
|
13535
13781
|
{
|
|
13536
13782
|
"kind": "custom-element-definition",
|
|
13537
|
-
"name": "nord-
|
|
13783
|
+
"name": "nord-stack",
|
|
13538
13784
|
"declaration": {
|
|
13539
|
-
"name": "
|
|
13540
|
-
"module": "src/
|
|
13785
|
+
"name": "Stack",
|
|
13786
|
+
"module": "src/stack/Stack.ts"
|
|
13541
13787
|
}
|
|
13542
13788
|
}
|
|
13543
13789
|
]
|
|
@@ -13788,162 +14034,6 @@
|
|
|
13788
14034
|
}
|
|
13789
14035
|
]
|
|
13790
14036
|
},
|
|
13791
|
-
{
|
|
13792
|
-
"kind": "javascript-module",
|
|
13793
|
-
"path": "src/stack/Stack.ts",
|
|
13794
|
-
"declarations": [
|
|
13795
|
-
{
|
|
13796
|
-
"kind": "class",
|
|
13797
|
-
"description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
|
|
13798
|
-
"name": "Stack",
|
|
13799
|
-
"cssProperties": [
|
|
13800
|
-
{
|
|
13801
|
-
"description": "Controls the spacing between items, using our [spacing tokens](/tokens/#space).",
|
|
13802
|
-
"name": "--n-stack-gap",
|
|
13803
|
-
"default": "var(--n-space-m)"
|
|
13804
|
-
}
|
|
13805
|
-
],
|
|
13806
|
-
"slots": [
|
|
13807
|
-
{
|
|
13808
|
-
"description": "The stack content.",
|
|
13809
|
-
"name": ""
|
|
13810
|
-
}
|
|
13811
|
-
],
|
|
13812
|
-
"members": [
|
|
13813
|
-
{
|
|
13814
|
-
"kind": "field",
|
|
13815
|
-
"name": "gap",
|
|
13816
|
-
"type": {
|
|
13817
|
-
"text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13818
|
-
},
|
|
13819
|
-
"default": "\"m\"",
|
|
13820
|
-
"description": "The space injected between components.",
|
|
13821
|
-
"attribute": "gap",
|
|
13822
|
-
"reflects": true
|
|
13823
|
-
},
|
|
13824
|
-
{
|
|
13825
|
-
"kind": "field",
|
|
13826
|
-
"name": "direction",
|
|
13827
|
-
"type": {
|
|
13828
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
13829
|
-
},
|
|
13830
|
-
"default": "\"vertical\"",
|
|
13831
|
-
"description": "The direction of the stack.",
|
|
13832
|
-
"attribute": "direction",
|
|
13833
|
-
"reflects": true
|
|
13834
|
-
},
|
|
13835
|
-
{
|
|
13836
|
-
"kind": "field",
|
|
13837
|
-
"name": "alignItems",
|
|
13838
|
-
"type": {
|
|
13839
|
-
"text": "\"center\" | \"start\" | \"end\" | \"stretch\" | undefined"
|
|
13840
|
-
},
|
|
13841
|
-
"default": "\"stretch\"",
|
|
13842
|
-
"description": "How to align the child items inside the stack.",
|
|
13843
|
-
"attribute": "align-items",
|
|
13844
|
-
"reflects": true
|
|
13845
|
-
},
|
|
13846
|
-
{
|
|
13847
|
-
"kind": "field",
|
|
13848
|
-
"name": "wrap",
|
|
13849
|
-
"type": {
|
|
13850
|
-
"text": "boolean"
|
|
13851
|
-
},
|
|
13852
|
-
"default": "false",
|
|
13853
|
-
"description": "Defines whether the Stack items are forced in a single line\nor can be flowed into multiple lines.",
|
|
13854
|
-
"attribute": "wrap",
|
|
13855
|
-
"reflects": true
|
|
13856
|
-
},
|
|
13857
|
-
{
|
|
13858
|
-
"kind": "field",
|
|
13859
|
-
"name": "justifyContent",
|
|
13860
|
-
"type": {
|
|
13861
|
-
"text": "| \"center\"\n | \"start\"\n | \"end\"\n | \"baseline\"\n | \"space-between\"\n | \"space-around\"\n | \"space-evenly\" | undefined"
|
|
13862
|
-
},
|
|
13863
|
-
"description": "How to justify the child items inside the stack.",
|
|
13864
|
-
"attribute": "justify-content",
|
|
13865
|
-
"reflects": true
|
|
13866
|
-
}
|
|
13867
|
-
],
|
|
13868
|
-
"attributes": [
|
|
13869
|
-
{
|
|
13870
|
-
"name": "gap",
|
|
13871
|
-
"type": {
|
|
13872
|
-
"text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13873
|
-
},
|
|
13874
|
-
"default": "\"m\"",
|
|
13875
|
-
"description": "The space injected between components.",
|
|
13876
|
-
"fieldName": "gap"
|
|
13877
|
-
},
|
|
13878
|
-
{
|
|
13879
|
-
"name": "direction",
|
|
13880
|
-
"type": {
|
|
13881
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
13882
|
-
},
|
|
13883
|
-
"default": "\"vertical\"",
|
|
13884
|
-
"description": "The direction of the stack.",
|
|
13885
|
-
"fieldName": "direction"
|
|
13886
|
-
},
|
|
13887
|
-
{
|
|
13888
|
-
"name": "align-items",
|
|
13889
|
-
"type": {
|
|
13890
|
-
"text": "\"center\" | \"start\" | \"end\" | \"stretch\" | undefined"
|
|
13891
|
-
},
|
|
13892
|
-
"default": "\"stretch\"",
|
|
13893
|
-
"description": "How to align the child items inside the stack.",
|
|
13894
|
-
"fieldName": "alignItems"
|
|
13895
|
-
},
|
|
13896
|
-
{
|
|
13897
|
-
"name": "wrap",
|
|
13898
|
-
"type": {
|
|
13899
|
-
"text": "boolean"
|
|
13900
|
-
},
|
|
13901
|
-
"default": "false",
|
|
13902
|
-
"description": "Defines whether the Stack items are forced in a single line\nor can be flowed into multiple lines.",
|
|
13903
|
-
"fieldName": "wrap"
|
|
13904
|
-
},
|
|
13905
|
-
{
|
|
13906
|
-
"name": "justify-content",
|
|
13907
|
-
"type": {
|
|
13908
|
-
"text": "| \"center\"\n | \"start\"\n | \"end\"\n | \"baseline\"\n | \"space-between\"\n | \"space-around\"\n | \"space-evenly\" | undefined"
|
|
13909
|
-
},
|
|
13910
|
-
"description": "How to justify the child items inside the stack.",
|
|
13911
|
-
"fieldName": "justifyContent"
|
|
13912
|
-
}
|
|
13913
|
-
],
|
|
13914
|
-
"superclass": {
|
|
13915
|
-
"name": "LitElement",
|
|
13916
|
-
"package": "lit"
|
|
13917
|
-
},
|
|
13918
|
-
"localization": [],
|
|
13919
|
-
"status": "ready",
|
|
13920
|
-
"category": "structure",
|
|
13921
|
-
"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 when you need to stack multiple components vertically or horizontally.\n- Use when you want to adjust the white space between two or more components.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for building grid based layouts.\n\n</div>\n",
|
|
13922
|
-
"examples": [],
|
|
13923
|
-
"dependencies": [],
|
|
13924
|
-
"tagName": "nord-stack",
|
|
13925
|
-
"customElement": true
|
|
13926
|
-
}
|
|
13927
|
-
],
|
|
13928
|
-
"exports": [
|
|
13929
|
-
{
|
|
13930
|
-
"kind": "js",
|
|
13931
|
-
"name": "default",
|
|
13932
|
-
"declaration": {
|
|
13933
|
-
"name": "Stack",
|
|
13934
|
-
"module": "src/stack/Stack.ts"
|
|
13935
|
-
}
|
|
13936
|
-
},
|
|
13937
|
-
{
|
|
13938
|
-
"kind": "custom-element-definition",
|
|
13939
|
-
"name": "nord-stack",
|
|
13940
|
-
"declaration": {
|
|
13941
|
-
"name": "Stack",
|
|
13942
|
-
"module": "src/stack/Stack.ts"
|
|
13943
|
-
}
|
|
13944
|
-
}
|
|
13945
|
-
]
|
|
13946
|
-
},
|
|
13947
14037
|
{
|
|
13948
14038
|
"kind": "javascript-module",
|
|
13949
14039
|
"path": "src/tab-panel/TabPanel.ts",
|
|
@@ -16351,6 +16441,41 @@
|
|
|
16351
16441
|
}
|
|
16352
16442
|
]
|
|
16353
16443
|
},
|
|
16444
|
+
{
|
|
16445
|
+
"kind": "javascript-module",
|
|
16446
|
+
"path": "src/common/decorators/observe.ts",
|
|
16447
|
+
"declarations": [
|
|
16448
|
+
{
|
|
16449
|
+
"kind": "function",
|
|
16450
|
+
"name": "observe",
|
|
16451
|
+
"parameters": [
|
|
16452
|
+
{
|
|
16453
|
+
"name": "propertyName",
|
|
16454
|
+
"type": {
|
|
16455
|
+
"text": "string"
|
|
16456
|
+
}
|
|
16457
|
+
},
|
|
16458
|
+
{
|
|
16459
|
+
"name": "lifecycle",
|
|
16460
|
+
"default": "\"update\"",
|
|
16461
|
+
"type": {
|
|
16462
|
+
"text": "ObserveLifecycle"
|
|
16463
|
+
}
|
|
16464
|
+
}
|
|
16465
|
+
]
|
|
16466
|
+
}
|
|
16467
|
+
],
|
|
16468
|
+
"exports": [
|
|
16469
|
+
{
|
|
16470
|
+
"kind": "js",
|
|
16471
|
+
"name": "observe",
|
|
16472
|
+
"declaration": {
|
|
16473
|
+
"name": "observe",
|
|
16474
|
+
"module": "src/common/decorators/observe.ts"
|
|
16475
|
+
}
|
|
16476
|
+
}
|
|
16477
|
+
]
|
|
16478
|
+
},
|
|
16354
16479
|
{
|
|
16355
16480
|
"kind": "javascript-module",
|
|
16356
16481
|
"path": "src/common/controllers/BroadcastChannelController.ts",
|
|
@@ -17627,41 +17752,6 @@
|
|
|
17627
17752
|
}
|
|
17628
17753
|
]
|
|
17629
17754
|
},
|
|
17630
|
-
{
|
|
17631
|
-
"kind": "javascript-module",
|
|
17632
|
-
"path": "src/common/decorators/observe.ts",
|
|
17633
|
-
"declarations": [
|
|
17634
|
-
{
|
|
17635
|
-
"kind": "function",
|
|
17636
|
-
"name": "observe",
|
|
17637
|
-
"parameters": [
|
|
17638
|
-
{
|
|
17639
|
-
"name": "propertyName",
|
|
17640
|
-
"type": {
|
|
17641
|
-
"text": "string"
|
|
17642
|
-
}
|
|
17643
|
-
},
|
|
17644
|
-
{
|
|
17645
|
-
"name": "lifecycle",
|
|
17646
|
-
"default": "\"update\"",
|
|
17647
|
-
"type": {
|
|
17648
|
-
"text": "ObserveLifecycle"
|
|
17649
|
-
}
|
|
17650
|
-
}
|
|
17651
|
-
]
|
|
17652
|
-
}
|
|
17653
|
-
],
|
|
17654
|
-
"exports": [
|
|
17655
|
-
{
|
|
17656
|
-
"kind": "js",
|
|
17657
|
-
"name": "observe",
|
|
17658
|
-
"declaration": {
|
|
17659
|
-
"name": "observe",
|
|
17660
|
-
"module": "src/common/decorators/observe.ts"
|
|
17661
|
-
}
|
|
17662
|
-
}
|
|
17663
|
-
]
|
|
17664
|
-
},
|
|
17665
17755
|
{
|
|
17666
17756
|
"kind": "javascript-module",
|
|
17667
17757
|
"path": "src/common/directives/cond.ts",
|