@nordhealth/components 2.3.0 → 2.5.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 +384 -379
- package/lib/Badge.js +1 -1
- package/lib/Badge.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/{Calendar-a0246aa3.js → Calendar-7ae2dda7.js} +2 -2
- package/lib/Calendar-7ae2dda7.js.map +1 -0
- 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/Icon.js +1 -1
- package/lib/Icon.js.map +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/bundle.js +8 -8
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/src/button/Button.d.ts +1 -0
- package/lib/src/icon/Icon.d.ts +1 -1
- package/package.json +5 -5
- package/lib/Calendar-a0246aa3.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -513,52 +513,57 @@
|
|
|
513
513
|
},
|
|
514
514
|
{
|
|
515
515
|
"kind": "javascript-module",
|
|
516
|
-
"path": "src/
|
|
516
|
+
"path": "src/badge/Badge.ts",
|
|
517
517
|
"declarations": [
|
|
518
518
|
{
|
|
519
519
|
"kind": "class",
|
|
520
|
-
"description": "
|
|
521
|
-
"name": "
|
|
522
|
-
"cssProperties": [
|
|
523
|
-
{
|
|
524
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
525
|
-
"name": "--n-banner-border-radius",
|
|
526
|
-
"default": "var(--n-border-radius)"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
530
|
-
"name": "--n-banner-box-shadow",
|
|
531
|
-
"default": "var(--n-box-shadow-card)"
|
|
532
|
-
}
|
|
533
|
-
],
|
|
520
|
+
"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.",
|
|
521
|
+
"name": "Badge",
|
|
534
522
|
"slots": [
|
|
535
523
|
{
|
|
536
|
-
"description": "
|
|
524
|
+
"description": "The badge content.",
|
|
537
525
|
"name": ""
|
|
538
526
|
}
|
|
539
527
|
],
|
|
540
528
|
"members": [
|
|
541
529
|
{
|
|
542
530
|
"kind": "field",
|
|
543
|
-
"name": "
|
|
531
|
+
"name": "type",
|
|
544
532
|
"type": {
|
|
545
|
-
"text": "\"
|
|
533
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
546
534
|
},
|
|
547
|
-
"default": "\"
|
|
548
|
-
"description": "The
|
|
549
|
-
"attribute": "
|
|
535
|
+
"default": "\"neutral\"",
|
|
536
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
537
|
+
"attribute": "type",
|
|
550
538
|
"reflects": true
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"kind": "field",
|
|
542
|
+
"name": "progress",
|
|
543
|
+
"type": {
|
|
544
|
+
"text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
|
|
545
|
+
},
|
|
546
|
+
"description": "The progress of the badge. Displays a progress\nindicator next to the label.",
|
|
547
|
+
"attribute": "progress"
|
|
551
548
|
}
|
|
552
549
|
],
|
|
553
550
|
"attributes": [
|
|
554
551
|
{
|
|
555
|
-
"name": "
|
|
552
|
+
"name": "type",
|
|
556
553
|
"type": {
|
|
557
|
-
"text": "\"
|
|
554
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
558
555
|
},
|
|
559
|
-
"default": "\"
|
|
560
|
-
"description": "The
|
|
561
|
-
"fieldName": "
|
|
556
|
+
"default": "\"neutral\"",
|
|
557
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
558
|
+
"fieldName": "type"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "progress",
|
|
562
|
+
"type": {
|
|
563
|
+
"text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
|
|
564
|
+
},
|
|
565
|
+
"description": "The progress of the badge. Displays a progress\nindicator next to the label.",
|
|
566
|
+
"fieldName": "progress"
|
|
562
567
|
}
|
|
563
568
|
],
|
|
564
569
|
"superclass": {
|
|
@@ -566,10 +571,10 @@
|
|
|
566
571
|
"package": "lit"
|
|
567
572
|
},
|
|
568
573
|
"status": "ready",
|
|
569
|
-
"category": "
|
|
574
|
+
"category": "text",
|
|
570
575
|
"displayName": null,
|
|
571
576
|
"examples": [],
|
|
572
|
-
"tagName": "nord-
|
|
577
|
+
"tagName": "nord-badge",
|
|
573
578
|
"customElement": true
|
|
574
579
|
}
|
|
575
580
|
],
|
|
@@ -578,20 +583,20 @@
|
|
|
578
583
|
"kind": "js",
|
|
579
584
|
"name": "default",
|
|
580
585
|
"declaration": {
|
|
581
|
-
"name": "
|
|
582
|
-
"module": "src/
|
|
586
|
+
"name": "Badge",
|
|
587
|
+
"module": "src/badge/Badge.ts"
|
|
583
588
|
}
|
|
584
589
|
},
|
|
585
590
|
{
|
|
586
591
|
"kind": "custom-element-definition",
|
|
587
|
-
"name": "nord-
|
|
592
|
+
"name": "nord-badge",
|
|
588
593
|
"declaration": {
|
|
589
|
-
"name": "
|
|
590
|
-
"module": "src/
|
|
594
|
+
"name": "Badge",
|
|
595
|
+
"module": "src/badge/Badge.ts"
|
|
591
596
|
}
|
|
592
597
|
}
|
|
593
598
|
],
|
|
594
|
-
"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
|
|
599
|
+
"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"
|
|
595
600
|
},
|
|
596
601
|
{
|
|
597
602
|
"kind": "javascript-module",
|
|
@@ -617,6 +622,11 @@
|
|
|
617
622
|
"name": "--n-button-gradient",
|
|
618
623
|
"default": "linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.013) 100%))"
|
|
619
624
|
},
|
|
625
|
+
{
|
|
626
|
+
"description": "Controls the background color of the button, using [color tokens](/tokens/#color).",
|
|
627
|
+
"name": "--n-button-background-color",
|
|
628
|
+
"default": "var(--n-color-button)"
|
|
629
|
+
},
|
|
620
630
|
{
|
|
621
631
|
"description": "Controls the border color of the button, using [color tokens](/tokens/#color).",
|
|
622
632
|
"name": "--n-button-border-color",
|
|
@@ -1093,6 +1103,210 @@
|
|
|
1093
1103
|
],
|
|
1094
1104
|
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Only use one primary button per section, as a main call-to-action.\n- Use clear and accurate labels.\n- Use established button colors appropriately. For example, only use a danger button style for an action that’s difficult or impossible to undo.\n- Prioritize the most important actions. Too many buttons will cause confusion.\n- Be consistent with positioning of buttons in the user interface.\n- Use strong, actionable verbs in labels such as “Add”, “Close”, “Cancel”, or “Save”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use a primary button in every row of a table.\n- Don’t use buttons to link to other pages. Use regular link or a plain style instead where necessary.\n- Don’t use buttons for navigation where the link appears within or following a sentence.\n- Don’t use labels such as “Read more”, “Click here” or “More”.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `default` | Default style is the most common button variant. Only switch to another variant if you need to adjust the visual weight of the element. |\n| `primary` | Primary style is reserved for main call-to-actions. Should be used only once per content area or panel, e.g. for a “Save” action. |\n| `dashed` | Dashed style should be used for actions that trigger filtering. |\n| `danger` | Danger style should be used for actions that delete data or otherwise make it hard to undo the action. |\n| `plain` | Used for less important or less common actions. Can be also used for linking to other pages. |\n| `disabled` | Used for actions that aren’t currently available or not available anymore. Also prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies. |\n| `switch` | Switch style is reserved for the clinic switcher in the top left corner of an application. |\n\n---\n\n## Additional considerations\n\n- Users of assistive technology expect a button to submit data or do an action. If you need the button to navigate into another view, use the `href` property which will output `<a>` tag instead of a `<button>`.\n- When you need to disable a button, use `disabled` property as it conveys this information correctly to assistive technologies like screen readers.\n- Button component provides 3 size variants; small, medium and large. The large size should only be used for marketing purposes or on areas such as an empty space/content notice.\n"
|
|
1095
1105
|
},
|
|
1106
|
+
{
|
|
1107
|
+
"kind": "javascript-module",
|
|
1108
|
+
"path": "src/card/Card.ts",
|
|
1109
|
+
"declarations": [
|
|
1110
|
+
{
|
|
1111
|
+
"kind": "class",
|
|
1112
|
+
"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.",
|
|
1113
|
+
"name": "Card",
|
|
1114
|
+
"cssProperties": [
|
|
1115
|
+
{
|
|
1116
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1117
|
+
"name": "--n-card-border-radius",
|
|
1118
|
+
"default": "var(--n-border-radius)"
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1122
|
+
"name": "--n-card-box-shadow",
|
|
1123
|
+
"default": "var(--n-box-shadow-popout)"
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
"description": "Controls the padding on all sides of the card.",
|
|
1127
|
+
"name": "--n-card-padding",
|
|
1128
|
+
"default": "var(--n-space-m)"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
1132
|
+
"name": "--n-card-slot-padding",
|
|
1133
|
+
"default": "var(--n-space-m)"
|
|
1134
|
+
}
|
|
1135
|
+
],
|
|
1136
|
+
"slots": [
|
|
1137
|
+
{
|
|
1138
|
+
"description": "The card content.",
|
|
1139
|
+
"name": ""
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"description": "Optional slot that holds a header for the card.",
|
|
1143
|
+
"name": "header"
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
1147
|
+
"name": "header-end"
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
1151
|
+
"name": "footer"
|
|
1152
|
+
}
|
|
1153
|
+
],
|
|
1154
|
+
"members": [
|
|
1155
|
+
{
|
|
1156
|
+
"kind": "field",
|
|
1157
|
+
"name": "headerSlot",
|
|
1158
|
+
"privacy": "private",
|
|
1159
|
+
"default": "new SlotController(this, \"header\")"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"kind": "field",
|
|
1163
|
+
"name": "headerEndSlot",
|
|
1164
|
+
"privacy": "private",
|
|
1165
|
+
"default": "new SlotController(this, \"header-end\")"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"kind": "field",
|
|
1169
|
+
"name": "footerSlot",
|
|
1170
|
+
"privacy": "private",
|
|
1171
|
+
"default": "new SlotController(this, \"footer\")"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"kind": "field",
|
|
1175
|
+
"name": "padding",
|
|
1176
|
+
"type": {
|
|
1177
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1178
|
+
},
|
|
1179
|
+
"default": "\"m\"",
|
|
1180
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1181
|
+
"attribute": "padding",
|
|
1182
|
+
"reflects": true
|
|
1183
|
+
}
|
|
1184
|
+
],
|
|
1185
|
+
"attributes": [
|
|
1186
|
+
{
|
|
1187
|
+
"name": "padding",
|
|
1188
|
+
"type": {
|
|
1189
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1190
|
+
},
|
|
1191
|
+
"default": "\"m\"",
|
|
1192
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1193
|
+
"fieldName": "padding"
|
|
1194
|
+
}
|
|
1195
|
+
],
|
|
1196
|
+
"superclass": {
|
|
1197
|
+
"name": "LitElement",
|
|
1198
|
+
"package": "lit"
|
|
1199
|
+
},
|
|
1200
|
+
"status": "ready",
|
|
1201
|
+
"category": "structure",
|
|
1202
|
+
"displayName": null,
|
|
1203
|
+
"examples": [],
|
|
1204
|
+
"tagName": "nord-card",
|
|
1205
|
+
"customElement": true
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
"exports": [
|
|
1209
|
+
{
|
|
1210
|
+
"kind": "js",
|
|
1211
|
+
"name": "default",
|
|
1212
|
+
"declaration": {
|
|
1213
|
+
"name": "Card",
|
|
1214
|
+
"module": "src/card/Card.ts"
|
|
1215
|
+
}
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"kind": "custom-element-definition",
|
|
1219
|
+
"name": "nord-card",
|
|
1220
|
+
"declaration": {
|
|
1221
|
+
"name": "Card",
|
|
1222
|
+
"module": "src/card/Card.ts"
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
],
|
|
1226
|
+
"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 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"
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
"kind": "javascript-module",
|
|
1230
|
+
"path": "src/banner/Banner.ts",
|
|
1231
|
+
"declarations": [
|
|
1232
|
+
{
|
|
1233
|
+
"kind": "class",
|
|
1234
|
+
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
1235
|
+
"name": "Banner",
|
|
1236
|
+
"cssProperties": [
|
|
1237
|
+
{
|
|
1238
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1239
|
+
"name": "--n-banner-border-radius",
|
|
1240
|
+
"default": "var(--n-border-radius)"
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1244
|
+
"name": "--n-banner-box-shadow",
|
|
1245
|
+
"default": "var(--n-box-shadow-card)"
|
|
1246
|
+
}
|
|
1247
|
+
],
|
|
1248
|
+
"slots": [
|
|
1249
|
+
{
|
|
1250
|
+
"description": "default slot",
|
|
1251
|
+
"name": ""
|
|
1252
|
+
}
|
|
1253
|
+
],
|
|
1254
|
+
"members": [
|
|
1255
|
+
{
|
|
1256
|
+
"kind": "field",
|
|
1257
|
+
"name": "variant",
|
|
1258
|
+
"type": {
|
|
1259
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
1260
|
+
},
|
|
1261
|
+
"default": "\"info\"",
|
|
1262
|
+
"description": "The style variant of the banner.",
|
|
1263
|
+
"attribute": "variant",
|
|
1264
|
+
"reflects": true
|
|
1265
|
+
}
|
|
1266
|
+
],
|
|
1267
|
+
"attributes": [
|
|
1268
|
+
{
|
|
1269
|
+
"name": "variant",
|
|
1270
|
+
"type": {
|
|
1271
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
1272
|
+
},
|
|
1273
|
+
"default": "\"info\"",
|
|
1274
|
+
"description": "The style variant of the banner.",
|
|
1275
|
+
"fieldName": "variant"
|
|
1276
|
+
}
|
|
1277
|
+
],
|
|
1278
|
+
"superclass": {
|
|
1279
|
+
"name": "LitElement",
|
|
1280
|
+
"package": "lit"
|
|
1281
|
+
},
|
|
1282
|
+
"status": "ready",
|
|
1283
|
+
"category": "feedback",
|
|
1284
|
+
"displayName": null,
|
|
1285
|
+
"examples": [],
|
|
1286
|
+
"tagName": "nord-banner",
|
|
1287
|
+
"customElement": true
|
|
1288
|
+
}
|
|
1289
|
+
],
|
|
1290
|
+
"exports": [
|
|
1291
|
+
{
|
|
1292
|
+
"kind": "js",
|
|
1293
|
+
"name": "default",
|
|
1294
|
+
"declaration": {
|
|
1295
|
+
"name": "Banner",
|
|
1296
|
+
"module": "src/banner/Banner.ts"
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"kind": "custom-element-definition",
|
|
1301
|
+
"name": "nord-banner",
|
|
1302
|
+
"declaration": {
|
|
1303
|
+
"name": "Banner",
|
|
1304
|
+
"module": "src/banner/Banner.ts"
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
],
|
|
1308
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n"
|
|
1309
|
+
},
|
|
1096
1310
|
{
|
|
1097
1311
|
"kind": "javascript-module",
|
|
1098
1312
|
"path": "src/calendar/Calendar.ts",
|
|
@@ -1469,251 +1683,28 @@
|
|
|
1469
1683
|
"name": "min",
|
|
1470
1684
|
"type": {
|
|
1471
1685
|
"text": "string"
|
|
1472
|
-
},
|
|
1473
|
-
"default": "\"\"",
|
|
1474
|
-
"description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
|
|
1475
|
-
"fieldName": "min"
|
|
1476
|
-
},
|
|
1477
|
-
{
|
|
1478
|
-
"name": "max",
|
|
1479
|
-
"type": {
|
|
1480
|
-
"text": "string"
|
|
1481
|
-
},
|
|
1482
|
-
"default": "\"\"",
|
|
1483
|
-
"description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
|
|
1484
|
-
"fieldName": "max"
|
|
1485
|
-
},
|
|
1486
|
-
{
|
|
1487
|
-
"name": "expand",
|
|
1488
|
-
"type": {
|
|
1489
|
-
"text": "boolean"
|
|
1490
|
-
},
|
|
1491
|
-
"default": "false",
|
|
1492
|
-
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
1493
|
-
"fieldName": "expand"
|
|
1494
|
-
}
|
|
1495
|
-
],
|
|
1496
|
-
"superclass": {
|
|
1497
|
-
"name": "LitElement",
|
|
1498
|
-
"package": "lit"
|
|
1499
|
-
},
|
|
1500
|
-
"status": "ready",
|
|
1501
|
-
"category": "list",
|
|
1502
|
-
"displayName": null,
|
|
1503
|
-
"examples": [],
|
|
1504
|
-
"tagName": "nord-calendar",
|
|
1505
|
-
"customElement": true
|
|
1506
|
-
}
|
|
1507
|
-
],
|
|
1508
|
-
"exports": [
|
|
1509
|
-
{
|
|
1510
|
-
"kind": "js",
|
|
1511
|
-
"name": "default",
|
|
1512
|
-
"declaration": {
|
|
1513
|
-
"name": "Calendar",
|
|
1514
|
-
"module": "src/calendar/Calendar.ts"
|
|
1515
|
-
}
|
|
1516
|
-
},
|
|
1517
|
-
{
|
|
1518
|
-
"kind": "custom-element-definition",
|
|
1519
|
-
"name": "nord-calendar",
|
|
1520
|
-
"declaration": {
|
|
1521
|
-
"name": "Calendar",
|
|
1522
|
-
"module": "src/calendar/Calendar.ts"
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
],
|
|
1526
|
-
"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 the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1527
|
-
},
|
|
1528
|
-
{
|
|
1529
|
-
"kind": "javascript-module",
|
|
1530
|
-
"path": "src/calendar/DateSelectEvent.ts",
|
|
1531
|
-
"declarations": [
|
|
1532
|
-
{
|
|
1533
|
-
"kind": "class",
|
|
1534
|
-
"description": "",
|
|
1535
|
-
"name": "DateSelectEvent",
|
|
1536
|
-
"superclass": {
|
|
1537
|
-
"name": "NordEvent",
|
|
1538
|
-
"module": "/src/common/events.js"
|
|
1539
|
-
},
|
|
1540
|
-
"examples": []
|
|
1541
|
-
}
|
|
1542
|
-
],
|
|
1543
|
-
"exports": [
|
|
1544
|
-
{
|
|
1545
|
-
"kind": "js",
|
|
1546
|
-
"name": "DateSelectEvent",
|
|
1547
|
-
"declaration": {
|
|
1548
|
-
"name": "DateSelectEvent",
|
|
1549
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
1550
|
-
}
|
|
1551
|
-
}
|
|
1552
|
-
],
|
|
1553
|
-
"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 the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
"kind": "javascript-module",
|
|
1557
|
-
"path": "src/calendar/localization.ts",
|
|
1558
|
-
"declarations": [
|
|
1559
|
-
{
|
|
1560
|
-
"kind": "variable",
|
|
1561
|
-
"name": "calendarLocalization",
|
|
1562
|
-
"type": {
|
|
1563
|
-
"text": "object"
|
|
1564
|
-
},
|
|
1565
|
-
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n}"
|
|
1566
|
-
}
|
|
1567
|
-
],
|
|
1568
|
-
"exports": [
|
|
1569
|
-
{
|
|
1570
|
-
"kind": "js",
|
|
1571
|
-
"name": "default",
|
|
1572
|
-
"declaration": {
|
|
1573
|
-
"name": "calendarLocalization",
|
|
1574
|
-
"module": "src/calendar/localization.ts"
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
],
|
|
1578
|
-
"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 the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1579
|
-
},
|
|
1580
|
-
{
|
|
1581
|
-
"kind": "javascript-module",
|
|
1582
|
-
"path": "src/calendar/month-view.ts",
|
|
1583
|
-
"declarations": [
|
|
1584
|
-
{
|
|
1585
|
-
"kind": "function",
|
|
1586
|
-
"name": "dayView",
|
|
1587
|
-
"parameters": [
|
|
1588
|
-
{
|
|
1589
|
-
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
1590
|
-
"type": {
|
|
1591
|
-
"text": "DatePickerDayProps"
|
|
1592
|
-
}
|
|
1593
|
-
}
|
|
1594
|
-
]
|
|
1595
|
-
},
|
|
1596
|
-
{
|
|
1597
|
-
"kind": "function",
|
|
1598
|
-
"name": "monthView",
|
|
1599
|
-
"parameters": [
|
|
1600
|
-
{
|
|
1601
|
-
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n dayNames,\n dayNamesShort,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
1602
|
-
"type": {
|
|
1603
|
-
"text": "MonthViewArgs"
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
]
|
|
1607
|
-
}
|
|
1608
|
-
],
|
|
1609
|
-
"exports": [
|
|
1610
|
-
{
|
|
1611
|
-
"kind": "js",
|
|
1612
|
-
"name": "dayView",
|
|
1613
|
-
"declaration": {
|
|
1614
|
-
"name": "dayView",
|
|
1615
|
-
"module": "src/calendar/month-view.ts"
|
|
1616
|
-
}
|
|
1617
|
-
},
|
|
1618
|
-
{
|
|
1619
|
-
"kind": "js",
|
|
1620
|
-
"name": "monthView",
|
|
1621
|
-
"declaration": {
|
|
1622
|
-
"name": "monthView",
|
|
1623
|
-
"module": "src/calendar/month-view.ts"
|
|
1624
|
-
}
|
|
1625
|
-
}
|
|
1626
|
-
],
|
|
1627
|
-
"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 the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1628
|
-
},
|
|
1629
|
-
{
|
|
1630
|
-
"kind": "javascript-module",
|
|
1631
|
-
"path": "src/card/Card.ts",
|
|
1632
|
-
"declarations": [
|
|
1633
|
-
{
|
|
1634
|
-
"kind": "class",
|
|
1635
|
-
"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.",
|
|
1636
|
-
"name": "Card",
|
|
1637
|
-
"cssProperties": [
|
|
1638
|
-
{
|
|
1639
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1640
|
-
"name": "--n-card-border-radius",
|
|
1641
|
-
"default": "var(--n-border-radius)"
|
|
1642
|
-
},
|
|
1643
|
-
{
|
|
1644
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1645
|
-
"name": "--n-card-box-shadow",
|
|
1646
|
-
"default": "var(--n-box-shadow-popout)"
|
|
1647
|
-
},
|
|
1648
|
-
{
|
|
1649
|
-
"description": "Controls the padding on all sides of the card.",
|
|
1650
|
-
"name": "--n-card-padding",
|
|
1651
|
-
"default": "var(--n-space-m)"
|
|
1652
|
-
},
|
|
1653
|
-
{
|
|
1654
|
-
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
1655
|
-
"name": "--n-card-slot-padding",
|
|
1656
|
-
"default": "var(--n-space-m)"
|
|
1657
|
-
}
|
|
1658
|
-
],
|
|
1659
|
-
"slots": [
|
|
1660
|
-
{
|
|
1661
|
-
"description": "The card content.",
|
|
1662
|
-
"name": ""
|
|
1663
|
-
},
|
|
1664
|
-
{
|
|
1665
|
-
"description": "Optional slot that holds a header for the card.",
|
|
1666
|
-
"name": "header"
|
|
1667
|
-
},
|
|
1668
|
-
{
|
|
1669
|
-
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
1670
|
-
"name": "header-end"
|
|
1671
|
-
},
|
|
1672
|
-
{
|
|
1673
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
1674
|
-
"name": "footer"
|
|
1675
|
-
}
|
|
1676
|
-
],
|
|
1677
|
-
"members": [
|
|
1678
|
-
{
|
|
1679
|
-
"kind": "field",
|
|
1680
|
-
"name": "headerSlot",
|
|
1681
|
-
"privacy": "private",
|
|
1682
|
-
"default": "new SlotController(this, \"header\")"
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
"kind": "field",
|
|
1686
|
-
"name": "headerEndSlot",
|
|
1687
|
-
"privacy": "private",
|
|
1688
|
-
"default": "new SlotController(this, \"header-end\")"
|
|
1689
|
-
},
|
|
1690
|
-
{
|
|
1691
|
-
"kind": "field",
|
|
1692
|
-
"name": "footerSlot",
|
|
1693
|
-
"privacy": "private",
|
|
1694
|
-
"default": "new SlotController(this, \"footer\")"
|
|
1686
|
+
},
|
|
1687
|
+
"default": "\"\"",
|
|
1688
|
+
"description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
|
|
1689
|
+
"fieldName": "min"
|
|
1695
1690
|
},
|
|
1696
1691
|
{
|
|
1697
|
-
"
|
|
1698
|
-
"name": "padding",
|
|
1692
|
+
"name": "max",
|
|
1699
1693
|
"type": {
|
|
1700
|
-
"text": "
|
|
1694
|
+
"text": "string"
|
|
1701
1695
|
},
|
|
1702
|
-
"default": "\"
|
|
1703
|
-
"description": "
|
|
1704
|
-
"
|
|
1705
|
-
|
|
1706
|
-
}
|
|
1707
|
-
],
|
|
1708
|
-
"attributes": [
|
|
1696
|
+
"default": "\"\"",
|
|
1697
|
+
"description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
|
|
1698
|
+
"fieldName": "max"
|
|
1699
|
+
},
|
|
1709
1700
|
{
|
|
1710
|
-
"name": "
|
|
1701
|
+
"name": "expand",
|
|
1711
1702
|
"type": {
|
|
1712
|
-
"text": "
|
|
1703
|
+
"text": "boolean"
|
|
1713
1704
|
},
|
|
1714
|
-
"default": "
|
|
1715
|
-
"description": "Controls
|
|
1716
|
-
"fieldName": "
|
|
1705
|
+
"default": "false",
|
|
1706
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
1707
|
+
"fieldName": "expand"
|
|
1717
1708
|
}
|
|
1718
1709
|
],
|
|
1719
1710
|
"superclass": {
|
|
@@ -1721,10 +1712,10 @@
|
|
|
1721
1712
|
"package": "lit"
|
|
1722
1713
|
},
|
|
1723
1714
|
"status": "ready",
|
|
1724
|
-
"category": "
|
|
1715
|
+
"category": "list",
|
|
1725
1716
|
"displayName": null,
|
|
1726
1717
|
"examples": [],
|
|
1727
|
-
"tagName": "nord-
|
|
1718
|
+
"tagName": "nord-calendar",
|
|
1728
1719
|
"customElement": true
|
|
1729
1720
|
}
|
|
1730
1721
|
],
|
|
@@ -1733,107 +1724,121 @@
|
|
|
1733
1724
|
"kind": "js",
|
|
1734
1725
|
"name": "default",
|
|
1735
1726
|
"declaration": {
|
|
1736
|
-
"name": "
|
|
1737
|
-
"module": "src/
|
|
1727
|
+
"name": "Calendar",
|
|
1728
|
+
"module": "src/calendar/Calendar.ts"
|
|
1738
1729
|
}
|
|
1739
1730
|
},
|
|
1740
1731
|
{
|
|
1741
1732
|
"kind": "custom-element-definition",
|
|
1742
|
-
"name": "nord-
|
|
1733
|
+
"name": "nord-calendar",
|
|
1743
1734
|
"declaration": {
|
|
1744
|
-
"name": "
|
|
1745
|
-
"module": "src/
|
|
1735
|
+
"name": "Calendar",
|
|
1736
|
+
"module": "src/calendar/Calendar.ts"
|
|
1746
1737
|
}
|
|
1747
1738
|
}
|
|
1748
1739
|
],
|
|
1749
|
-
"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
|
|
1740
|
+
"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 the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1750
1741
|
},
|
|
1751
1742
|
{
|
|
1752
1743
|
"kind": "javascript-module",
|
|
1753
|
-
"path": "src/
|
|
1744
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
1754
1745
|
"declarations": [
|
|
1755
1746
|
{
|
|
1756
1747
|
"kind": "class",
|
|
1757
|
-
"description": "
|
|
1758
|
-
"name": "
|
|
1759
|
-
"
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1748
|
+
"description": "",
|
|
1749
|
+
"name": "DateSelectEvent",
|
|
1750
|
+
"superclass": {
|
|
1751
|
+
"name": "NordEvent",
|
|
1752
|
+
"module": "/src/common/events.js"
|
|
1753
|
+
},
|
|
1754
|
+
"examples": []
|
|
1755
|
+
}
|
|
1756
|
+
],
|
|
1757
|
+
"exports": [
|
|
1758
|
+
{
|
|
1759
|
+
"kind": "js",
|
|
1760
|
+
"name": "DateSelectEvent",
|
|
1761
|
+
"declaration": {
|
|
1762
|
+
"name": "DateSelectEvent",
|
|
1763
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
],
|
|
1767
|
+
"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 the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
"kind": "javascript-module",
|
|
1771
|
+
"path": "src/calendar/localization.ts",
|
|
1772
|
+
"declarations": [
|
|
1773
|
+
{
|
|
1774
|
+
"kind": "variable",
|
|
1775
|
+
"name": "calendarLocalization",
|
|
1776
|
+
"type": {
|
|
1777
|
+
"text": "object"
|
|
1778
|
+
},
|
|
1779
|
+
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n}"
|
|
1780
|
+
}
|
|
1781
|
+
],
|
|
1782
|
+
"exports": [
|
|
1783
|
+
{
|
|
1784
|
+
"kind": "js",
|
|
1785
|
+
"name": "default",
|
|
1786
|
+
"declaration": {
|
|
1787
|
+
"name": "calendarLocalization",
|
|
1788
|
+
"module": "src/calendar/localization.ts"
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
],
|
|
1792
|
+
"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 the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"kind": "javascript-module",
|
|
1796
|
+
"path": "src/calendar/month-view.ts",
|
|
1797
|
+
"declarations": [
|
|
1798
|
+
{
|
|
1799
|
+
"kind": "function",
|
|
1800
|
+
"name": "dayView",
|
|
1801
|
+
"parameters": [
|
|
1777
1802
|
{
|
|
1778
|
-
"
|
|
1779
|
-
"name": "progress",
|
|
1803
|
+
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
1780
1804
|
"type": {
|
|
1781
|
-
"text": "
|
|
1782
|
-
}
|
|
1783
|
-
"description": "The progress of the badge. Displays a progress\nindicator next to the label.",
|
|
1784
|
-
"attribute": "progress"
|
|
1805
|
+
"text": "DatePickerDayProps"
|
|
1806
|
+
}
|
|
1785
1807
|
}
|
|
1786
|
-
]
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
},
|
|
1793
|
-
"default": "\"neutral\"",
|
|
1794
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
1795
|
-
"fieldName": "type"
|
|
1796
|
-
},
|
|
1808
|
+
]
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"kind": "function",
|
|
1812
|
+
"name": "monthView",
|
|
1813
|
+
"parameters": [
|
|
1797
1814
|
{
|
|
1798
|
-
"name": "
|
|
1815
|
+
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n dayNames,\n dayNamesShort,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
1799
1816
|
"type": {
|
|
1800
|
-
"text": "
|
|
1801
|
-
}
|
|
1802
|
-
"description": "The progress of the badge. Displays a progress\nindicator next to the label.",
|
|
1803
|
-
"fieldName": "progress"
|
|
1817
|
+
"text": "MonthViewArgs"
|
|
1818
|
+
}
|
|
1804
1819
|
}
|
|
1805
|
-
]
|
|
1806
|
-
"superclass": {
|
|
1807
|
-
"name": "LitElement",
|
|
1808
|
-
"package": "lit"
|
|
1809
|
-
},
|
|
1810
|
-
"status": "ready",
|
|
1811
|
-
"category": "text",
|
|
1812
|
-
"displayName": null,
|
|
1813
|
-
"examples": [],
|
|
1814
|
-
"tagName": "nord-badge",
|
|
1815
|
-
"customElement": true
|
|
1820
|
+
]
|
|
1816
1821
|
}
|
|
1817
1822
|
],
|
|
1818
1823
|
"exports": [
|
|
1819
1824
|
{
|
|
1820
1825
|
"kind": "js",
|
|
1821
|
-
"name": "
|
|
1826
|
+
"name": "dayView",
|
|
1822
1827
|
"declaration": {
|
|
1823
|
-
"name": "
|
|
1824
|
-
"module": "src/
|
|
1828
|
+
"name": "dayView",
|
|
1829
|
+
"module": "src/calendar/month-view.ts"
|
|
1825
1830
|
}
|
|
1826
1831
|
},
|
|
1827
1832
|
{
|
|
1828
|
-
"kind": "
|
|
1829
|
-
"name": "
|
|
1833
|
+
"kind": "js",
|
|
1834
|
+
"name": "monthView",
|
|
1830
1835
|
"declaration": {
|
|
1831
|
-
"name": "
|
|
1832
|
-
"module": "src/
|
|
1836
|
+
"name": "monthView",
|
|
1837
|
+
"module": "src/calendar/month-view.ts"
|
|
1833
1838
|
}
|
|
1834
1839
|
}
|
|
1835
1840
|
],
|
|
1836
|
-
"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
|
|
1841
|
+
"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 the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n"
|
|
1837
1842
|
},
|
|
1838
1843
|
{
|
|
1839
1844
|
"kind": "javascript-module",
|
|
@@ -6109,7 +6114,7 @@
|
|
|
6109
6114
|
"kind": "field",
|
|
6110
6115
|
"name": "size",
|
|
6111
6116
|
"type": {
|
|
6112
|
-
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
6117
|
+
"text": "\"xxs\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
6113
6118
|
},
|
|
6114
6119
|
"default": "\"m\"",
|
|
6115
6120
|
"description": "The size of the icon.",
|
|
@@ -6164,7 +6169,7 @@
|
|
|
6164
6169
|
{
|
|
6165
6170
|
"name": "size",
|
|
6166
6171
|
"type": {
|
|
6167
|
-
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
6172
|
+
"text": "\"xxs\" | \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
6168
6173
|
},
|
|
6169
6174
|
"default": "\"m\"",
|
|
6170
6175
|
"description": "The size of the icon.",
|
|
@@ -12964,6 +12969,41 @@
|
|
|
12964
12969
|
],
|
|
12965
12970
|
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to hide text visually from the screen, but keep it available to assistive technologies, such as screen readers.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for hiding interactive content.\n\n</div>\n"
|
|
12966
12971
|
},
|
|
12972
|
+
{
|
|
12973
|
+
"kind": "javascript-module",
|
|
12974
|
+
"path": "src/common/decorators/observe.ts",
|
|
12975
|
+
"declarations": [
|
|
12976
|
+
{
|
|
12977
|
+
"kind": "function",
|
|
12978
|
+
"name": "observe",
|
|
12979
|
+
"parameters": [
|
|
12980
|
+
{
|
|
12981
|
+
"name": "propertyName",
|
|
12982
|
+
"type": {
|
|
12983
|
+
"text": "string"
|
|
12984
|
+
}
|
|
12985
|
+
},
|
|
12986
|
+
{
|
|
12987
|
+
"name": "lifecycle",
|
|
12988
|
+
"default": "\"update\"",
|
|
12989
|
+
"type": {
|
|
12990
|
+
"text": "ObserveLifecycle"
|
|
12991
|
+
}
|
|
12992
|
+
}
|
|
12993
|
+
]
|
|
12994
|
+
}
|
|
12995
|
+
],
|
|
12996
|
+
"exports": [
|
|
12997
|
+
{
|
|
12998
|
+
"kind": "js",
|
|
12999
|
+
"name": "observe",
|
|
13000
|
+
"declaration": {
|
|
13001
|
+
"name": "observe",
|
|
13002
|
+
"module": "src/common/decorators/observe.ts"
|
|
13003
|
+
}
|
|
13004
|
+
}
|
|
13005
|
+
]
|
|
13006
|
+
},
|
|
12967
13007
|
{
|
|
12968
13008
|
"kind": "javascript-module",
|
|
12969
13009
|
"path": "src/common/controllers/DirectionController.ts",
|
|
@@ -13996,41 +14036,6 @@
|
|
|
13996
14036
|
}
|
|
13997
14037
|
]
|
|
13998
14038
|
},
|
|
13999
|
-
{
|
|
14000
|
-
"kind": "javascript-module",
|
|
14001
|
-
"path": "src/common/decorators/observe.ts",
|
|
14002
|
-
"declarations": [
|
|
14003
|
-
{
|
|
14004
|
-
"kind": "function",
|
|
14005
|
-
"name": "observe",
|
|
14006
|
-
"parameters": [
|
|
14007
|
-
{
|
|
14008
|
-
"name": "propertyName",
|
|
14009
|
-
"type": {
|
|
14010
|
-
"text": "string"
|
|
14011
|
-
}
|
|
14012
|
-
},
|
|
14013
|
-
{
|
|
14014
|
-
"name": "lifecycle",
|
|
14015
|
-
"default": "\"update\"",
|
|
14016
|
-
"type": {
|
|
14017
|
-
"text": "ObserveLifecycle"
|
|
14018
|
-
}
|
|
14019
|
-
}
|
|
14020
|
-
]
|
|
14021
|
-
}
|
|
14022
|
-
],
|
|
14023
|
-
"exports": [
|
|
14024
|
-
{
|
|
14025
|
-
"kind": "js",
|
|
14026
|
-
"name": "observe",
|
|
14027
|
-
"declaration": {
|
|
14028
|
-
"name": "observe",
|
|
14029
|
-
"module": "src/common/decorators/observe.ts"
|
|
14030
|
-
}
|
|
14031
|
-
}
|
|
14032
|
-
]
|
|
14033
|
-
},
|
|
14034
14039
|
{
|
|
14035
14040
|
"kind": "javascript-module",
|
|
14036
14041
|
"path": "src/common/directives/cond.ts",
|