@nordhealth/components 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +931 -939
- package/lib/{AutocompleteMixin-a98ada34.js → AutocompleteMixin-60503685.js} +2 -2
- package/lib/{AutocompleteMixin-a98ada34.js.map → AutocompleteMixin-60503685.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/{Calendar-b19b4bf6.js → Calendar-c68fd0d2.js} +2 -2
- package/lib/{Calendar-b19b4bf6.js.map → Calendar-c68fd0d2.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/{Component-1f694235.js → Component-253ecb24.js} +2 -2
- package/lib/Component-253ecb24.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/{DropdownItem-5c12978f.js → DropdownItem-397cd757.js} +2 -2
- package/lib/DropdownItem-397cd757.js.map +1 -0
- package/lib/DropdownItem.js +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/FocusableMixin-003e1094.js +2 -0
- package/lib/{FocusableMixin-186c69a2.js.map → FocusableMixin-003e1094.js.map} +1 -1
- package/lib/{FormAssociatedMixin-5fedde68.js → FormAssociatedMixin-0638b151.js} +2 -2
- package/lib/{FormAssociatedMixin-5fedde68.js.map → FormAssociatedMixin-0638b151.js.map} +1 -1
- package/lib/{FormField-3226fb17.js → FormField-0783cb5a.js} +2 -2
- package/lib/FormField-0783cb5a.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Icon.js +2 -2
- package/lib/Input.js +1 -1
- package/lib/{InputMixin-d50cb41a.js → InputMixin-87012c5a.js} +2 -2
- package/lib/{InputMixin-d50cb41a.js.map → InputMixin-87012c5a.js.map} +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/LightDomController-2b7e42a2.js +2 -0
- package/lib/LightDomController-2b7e42a2.js.map +1 -0
- package/lib/Message.js +1 -1
- package/lib/Modal.js +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/{NavToggle-0e6c6458.js → NavToggle-d39f3c6d.js} +2 -2
- package/lib/{NavToggle-0e6c6458.js.map → NavToggle-d39f3c6d.js.map} +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Notification.js +1 -1
- package/lib/NotificationGroup.js +1 -1
- package/lib/{NotificationMixin-5e028561.js → NotificationMixin-cea138a7.js} +2 -2
- package/lib/{NotificationMixin-5e028561.js.map → NotificationMixin-cea138a7.js.map} +1 -1
- package/lib/{Popout-6a85e4b6.js → Popout-1183c22b.js} +2 -2
- package/lib/{Popout-6a85e4b6.js.map → Popout-1183c22b.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/Qrcode.js +1 -1
- package/lib/Qrcode.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/Range.js +1 -1
- package/lib/Select.js +1 -1
- package/lib/{SizeMixin-f04ac402.js → SizeMixin-bc2098f4.js} +2 -2
- package/lib/{SizeMixin-f04ac402.js.map → SizeMixin-bc2098f4.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Stack.js +1 -1
- package/lib/{Sticky-b4e6c315.js → Sticky-220280e0.js} +2 -2
- package/lib/Sticky-220280e0.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/{TextField-3f901ec8.js → TextField-b455a6dd.js} +2 -2
- package/lib/{TextField-3f901ec8.js.map → TextField-b455a6dd.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Toast.js +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/TopBar.js +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/bundle.js +6 -6
- package/lib/bundle.js.map +1 -1
- package/lib/{class-map-c0d8e1e5.js → class-map-4a0dec4a.js} +2 -2
- package/lib/{class-map-c0d8e1e5.js.map → class-map-4a0dec4a.js.map} +1 -1
- package/lib/{collection-498f2b1f.js → collection-bba319d3.js} +3 -3
- package/lib/{collection-498f2b1f.js.map → collection-bba319d3.js.map} +1 -1
- package/lib/cond-77258def.js +2 -0
- package/lib/{cond-09498763.js.map → cond-77258def.js.map} +1 -1
- package/lib/{if-defined-8a007930.js → if-defined-10508457.js} +2 -2
- package/lib/{if-defined-8a007930.js.map → if-defined-10508457.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/positioning-a572d126.js +1 -1
- package/lib/positioning-a572d126.js.map +1 -1
- package/lib/{query-assigned-elements-822fe360.js → query-assigned-elements-2f8275b7.js} +2 -2
- package/lib/query-assigned-elements-2f8275b7.js.map +1 -0
- package/lib/{ref-6b46e5ea.js → ref-f75a30b7.js} +3 -3
- package/lib/{ref-6b46e5ea.js.map → ref-f75a30b7.js.map} +1 -1
- package/lib/src/common/controllers/LightDomController.d.ts +0 -1
- package/lib/src/common/controllers/LightSlotController.d.ts +0 -1
- package/lib/style-map-75ce20b3.js +7 -0
- package/lib/style-map-75ce20b3.js.map +1 -0
- package/package.json +2 -2
- package/lib/Component-1f694235.js.map +0 -1
- package/lib/DropdownItem-5c12978f.js.map +0 -1
- package/lib/FocusableMixin-186c69a2.js +0 -2
- package/lib/FormField-3226fb17.js.map +0 -1
- package/lib/LightDomController-8a770234.js +0 -2
- package/lib/LightDomController-8a770234.js.map +0 -1
- package/lib/Sticky-b4e6c315.js.map +0 -1
- package/lib/cond-09498763.js +0 -2
- package/lib/query-assigned-elements-822fe360.js.map +0 -1
- package/lib/style-map-5b757428.js +0 -7
- package/lib/style-map-5b757428.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -433,204 +433,6 @@
|
|
|
433
433
|
}
|
|
434
434
|
]
|
|
435
435
|
},
|
|
436
|
-
{
|
|
437
|
-
"kind": "javascript-module",
|
|
438
|
-
"path": "src/badge/Badge.ts",
|
|
439
|
-
"declarations": [
|
|
440
|
-
{
|
|
441
|
-
"kind": "class",
|
|
442
|
-
"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.",
|
|
443
|
-
"name": "Badge",
|
|
444
|
-
"slots": [
|
|
445
|
-
{
|
|
446
|
-
"description": "The badge content.",
|
|
447
|
-
"name": ""
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
"description": "Used to place an icon at the start of badge.",
|
|
451
|
-
"name": "icon"
|
|
452
|
-
}
|
|
453
|
-
],
|
|
454
|
-
"members": [
|
|
455
|
-
{
|
|
456
|
-
"kind": "field",
|
|
457
|
-
"name": "type",
|
|
458
|
-
"type": {
|
|
459
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
460
|
-
},
|
|
461
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
462
|
-
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
463
|
-
"attribute": "type",
|
|
464
|
-
"reflects": true
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"kind": "field",
|
|
468
|
-
"name": "variant",
|
|
469
|
-
"type": {
|
|
470
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
471
|
-
},
|
|
472
|
-
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
473
|
-
"attribute": "variant",
|
|
474
|
-
"reflects": true
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
"kind": "field",
|
|
478
|
-
"name": "strong",
|
|
479
|
-
"type": {
|
|
480
|
-
"text": "boolean"
|
|
481
|
-
},
|
|
482
|
-
"default": "false",
|
|
483
|
-
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
484
|
-
"attribute": "strong",
|
|
485
|
-
"reflects": true
|
|
486
|
-
}
|
|
487
|
-
],
|
|
488
|
-
"attributes": [
|
|
489
|
-
{
|
|
490
|
-
"name": "type",
|
|
491
|
-
"type": {
|
|
492
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
493
|
-
},
|
|
494
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
495
|
-
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
496
|
-
"fieldName": "type"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
"name": "variant",
|
|
500
|
-
"type": {
|
|
501
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
502
|
-
},
|
|
503
|
-
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
504
|
-
"fieldName": "variant"
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
"name": "strong",
|
|
508
|
-
"type": {
|
|
509
|
-
"text": "boolean"
|
|
510
|
-
},
|
|
511
|
-
"default": "false",
|
|
512
|
-
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
513
|
-
"fieldName": "strong"
|
|
514
|
-
}
|
|
515
|
-
],
|
|
516
|
-
"superclass": {
|
|
517
|
-
"name": "LitElement",
|
|
518
|
-
"package": "lit"
|
|
519
|
-
},
|
|
520
|
-
"localization": [],
|
|
521
|
-
"status": "ready",
|
|
522
|
-
"category": "text",
|
|
523
|
-
"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",
|
|
524
|
-
"examples": [],
|
|
525
|
-
"dependencies": [],
|
|
526
|
-
"tagName": "nord-badge",
|
|
527
|
-
"customElement": true
|
|
528
|
-
}
|
|
529
|
-
],
|
|
530
|
-
"exports": [
|
|
531
|
-
{
|
|
532
|
-
"kind": "js",
|
|
533
|
-
"name": "default",
|
|
534
|
-
"declaration": {
|
|
535
|
-
"name": "Badge",
|
|
536
|
-
"module": "src/badge/Badge.ts"
|
|
537
|
-
}
|
|
538
|
-
},
|
|
539
|
-
{
|
|
540
|
-
"kind": "custom-element-definition",
|
|
541
|
-
"name": "nord-badge",
|
|
542
|
-
"declaration": {
|
|
543
|
-
"name": "Badge",
|
|
544
|
-
"module": "src/badge/Badge.ts"
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
]
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"kind": "javascript-module",
|
|
551
|
-
"path": "src/banner/Banner.ts",
|
|
552
|
-
"declarations": [
|
|
553
|
-
{
|
|
554
|
-
"kind": "class",
|
|
555
|
-
"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.",
|
|
556
|
-
"name": "Banner",
|
|
557
|
-
"cssProperties": [
|
|
558
|
-
{
|
|
559
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
560
|
-
"name": "--n-banner-border-radius",
|
|
561
|
-
"default": "var(--n-border-radius)"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
565
|
-
"name": "--n-banner-box-shadow",
|
|
566
|
-
"default": "var(--n-box-shadow-card)"
|
|
567
|
-
}
|
|
568
|
-
],
|
|
569
|
-
"slots": [
|
|
570
|
-
{
|
|
571
|
-
"description": "default slot",
|
|
572
|
-
"name": ""
|
|
573
|
-
}
|
|
574
|
-
],
|
|
575
|
-
"members": [
|
|
576
|
-
{
|
|
577
|
-
"kind": "field",
|
|
578
|
-
"name": "variant",
|
|
579
|
-
"type": {
|
|
580
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
581
|
-
},
|
|
582
|
-
"default": "\"info\"",
|
|
583
|
-
"description": "The style variant of the banner.",
|
|
584
|
-
"attribute": "variant",
|
|
585
|
-
"reflects": true
|
|
586
|
-
}
|
|
587
|
-
],
|
|
588
|
-
"attributes": [
|
|
589
|
-
{
|
|
590
|
-
"name": "variant",
|
|
591
|
-
"type": {
|
|
592
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
593
|
-
},
|
|
594
|
-
"default": "\"info\"",
|
|
595
|
-
"description": "The style variant of the banner.",
|
|
596
|
-
"fieldName": "variant"
|
|
597
|
-
}
|
|
598
|
-
],
|
|
599
|
-
"superclass": {
|
|
600
|
-
"name": "LitElement",
|
|
601
|
-
"package": "lit"
|
|
602
|
-
},
|
|
603
|
-
"localization": [],
|
|
604
|
-
"status": "ready",
|
|
605
|
-
"category": "feedback",
|
|
606
|
-
"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",
|
|
607
|
-
"examples": [],
|
|
608
|
-
"dependencies": [
|
|
609
|
-
"icon"
|
|
610
|
-
],
|
|
611
|
-
"tagName": "nord-banner",
|
|
612
|
-
"customElement": true
|
|
613
|
-
}
|
|
614
|
-
],
|
|
615
|
-
"exports": [
|
|
616
|
-
{
|
|
617
|
-
"kind": "js",
|
|
618
|
-
"name": "default",
|
|
619
|
-
"declaration": {
|
|
620
|
-
"name": "Banner",
|
|
621
|
-
"module": "src/banner/Banner.ts"
|
|
622
|
-
}
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
"kind": "custom-element-definition",
|
|
626
|
-
"name": "nord-banner",
|
|
627
|
-
"declaration": {
|
|
628
|
-
"name": "Banner",
|
|
629
|
-
"module": "src/banner/Banner.ts"
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
]
|
|
633
|
-
},
|
|
634
436
|
{
|
|
635
437
|
"kind": "javascript-module",
|
|
636
438
|
"path": "src/avatar/Avatar.ts",
|
|
@@ -1417,72 +1219,82 @@
|
|
|
1417
1219
|
},
|
|
1418
1220
|
{
|
|
1419
1221
|
"kind": "javascript-module",
|
|
1420
|
-
"path": "src/
|
|
1222
|
+
"path": "src/badge/Badge.ts",
|
|
1421
1223
|
"declarations": [
|
|
1422
1224
|
{
|
|
1423
1225
|
"kind": "class",
|
|
1424
|
-
"description": "
|
|
1425
|
-
"name": "
|
|
1426
|
-
"cssProperties": [
|
|
1427
|
-
{
|
|
1428
|
-
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
1429
|
-
"name": "--n-button-group-border-radius",
|
|
1430
|
-
"default": "var(--n-border-radius-s)"
|
|
1431
|
-
},
|
|
1432
|
-
{
|
|
1433
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1434
|
-
"name": "--n-button-group-box-shadow",
|
|
1435
|
-
"default": "var(--n-box-shadow)"
|
|
1436
|
-
}
|
|
1437
|
-
],
|
|
1226
|
+
"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.",
|
|
1227
|
+
"name": "Badge",
|
|
1438
1228
|
"slots": [
|
|
1439
1229
|
{
|
|
1440
|
-
"description": "The
|
|
1230
|
+
"description": "The badge content.",
|
|
1441
1231
|
"name": ""
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"description": "Used to place an icon at the start of badge.",
|
|
1235
|
+
"name": "icon"
|
|
1442
1236
|
}
|
|
1443
1237
|
],
|
|
1444
1238
|
"members": [
|
|
1445
1239
|
{
|
|
1446
1240
|
"kind": "field",
|
|
1447
|
-
"name": "
|
|
1241
|
+
"name": "type",
|
|
1448
1242
|
"type": {
|
|
1449
|
-
"text": "\"
|
|
1243
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
1450
1244
|
},
|
|
1451
|
-
"
|
|
1452
|
-
"
|
|
1453
|
-
"attribute": "
|
|
1245
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
1246
|
+
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
1247
|
+
"attribute": "type",
|
|
1454
1248
|
"reflects": true
|
|
1455
1249
|
},
|
|
1456
1250
|
{
|
|
1457
1251
|
"kind": "field",
|
|
1458
|
-
"name": "
|
|
1252
|
+
"name": "variant",
|
|
1459
1253
|
"type": {
|
|
1460
|
-
"text": "
|
|
1254
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
1461
1255
|
},
|
|
1462
|
-
"
|
|
1463
|
-
"
|
|
1464
|
-
"
|
|
1256
|
+
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
1257
|
+
"attribute": "variant",
|
|
1258
|
+
"reflects": true
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"kind": "field",
|
|
1262
|
+
"name": "strong",
|
|
1263
|
+
"type": {
|
|
1264
|
+
"text": "boolean"
|
|
1265
|
+
},
|
|
1266
|
+
"default": "false",
|
|
1267
|
+
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
1268
|
+
"attribute": "strong",
|
|
1465
1269
|
"reflects": true
|
|
1466
1270
|
}
|
|
1467
1271
|
],
|
|
1468
1272
|
"attributes": [
|
|
1469
1273
|
{
|
|
1470
|
-
"name": "
|
|
1274
|
+
"name": "type",
|
|
1471
1275
|
"type": {
|
|
1472
|
-
"text": "\"
|
|
1276
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
1473
1277
|
},
|
|
1474
|
-
"
|
|
1475
|
-
"
|
|
1476
|
-
"fieldName": "
|
|
1278
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
1279
|
+
"deprecated": "Use `variant` instead. If you previously used `\"progress\"`, use `\"info\"` instead.",
|
|
1280
|
+
"fieldName": "type"
|
|
1477
1281
|
},
|
|
1478
1282
|
{
|
|
1479
|
-
"name": "
|
|
1283
|
+
"name": "variant",
|
|
1480
1284
|
"type": {
|
|
1481
|
-
"text": "
|
|
1285
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
1482
1286
|
},
|
|
1483
|
-
"
|
|
1484
|
-
"
|
|
1485
|
-
|
|
1287
|
+
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
1288
|
+
"fieldName": "variant"
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"name": "strong",
|
|
1292
|
+
"type": {
|
|
1293
|
+
"text": "boolean"
|
|
1294
|
+
},
|
|
1295
|
+
"default": "false",
|
|
1296
|
+
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
1297
|
+
"fieldName": "strong"
|
|
1486
1298
|
}
|
|
1487
1299
|
],
|
|
1488
1300
|
"superclass": {
|
|
@@ -1490,12 +1302,12 @@
|
|
|
1490
1302
|
"package": "lit"
|
|
1491
1303
|
},
|
|
1492
1304
|
"localization": [],
|
|
1493
|
-
"status": "
|
|
1494
|
-
"category": "
|
|
1495
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use
|
|
1305
|
+
"status": "ready",
|
|
1306
|
+
"category": "text",
|
|
1307
|
+
"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",
|
|
1496
1308
|
"examples": [],
|
|
1497
1309
|
"dependencies": [],
|
|
1498
|
-
"tagName": "nord-
|
|
1310
|
+
"tagName": "nord-badge",
|
|
1499
1311
|
"customElement": true
|
|
1500
1312
|
}
|
|
1501
1313
|
],
|
|
@@ -1504,16 +1316,101 @@
|
|
|
1504
1316
|
"kind": "js",
|
|
1505
1317
|
"name": "default",
|
|
1506
1318
|
"declaration": {
|
|
1507
|
-
"name": "
|
|
1508
|
-
"module": "src/
|
|
1319
|
+
"name": "Badge",
|
|
1320
|
+
"module": "src/badge/Badge.ts"
|
|
1509
1321
|
}
|
|
1510
1322
|
},
|
|
1511
1323
|
{
|
|
1512
1324
|
"kind": "custom-element-definition",
|
|
1513
|
-
"name": "nord-
|
|
1325
|
+
"name": "nord-badge",
|
|
1514
1326
|
"declaration": {
|
|
1515
|
-
"name": "
|
|
1516
|
-
"module": "src/
|
|
1327
|
+
"name": "Badge",
|
|
1328
|
+
"module": "src/badge/Badge.ts"
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
]
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"kind": "javascript-module",
|
|
1335
|
+
"path": "src/banner/Banner.ts",
|
|
1336
|
+
"declarations": [
|
|
1337
|
+
{
|
|
1338
|
+
"kind": "class",
|
|
1339
|
+
"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.",
|
|
1340
|
+
"name": "Banner",
|
|
1341
|
+
"cssProperties": [
|
|
1342
|
+
{
|
|
1343
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1344
|
+
"name": "--n-banner-border-radius",
|
|
1345
|
+
"default": "var(--n-border-radius)"
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
1349
|
+
"name": "--n-banner-box-shadow",
|
|
1350
|
+
"default": "var(--n-box-shadow-card)"
|
|
1351
|
+
}
|
|
1352
|
+
],
|
|
1353
|
+
"slots": [
|
|
1354
|
+
{
|
|
1355
|
+
"description": "default slot",
|
|
1356
|
+
"name": ""
|
|
1357
|
+
}
|
|
1358
|
+
],
|
|
1359
|
+
"members": [
|
|
1360
|
+
{
|
|
1361
|
+
"kind": "field",
|
|
1362
|
+
"name": "variant",
|
|
1363
|
+
"type": {
|
|
1364
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
1365
|
+
},
|
|
1366
|
+
"default": "\"info\"",
|
|
1367
|
+
"description": "The style variant of the banner.",
|
|
1368
|
+
"attribute": "variant",
|
|
1369
|
+
"reflects": true
|
|
1370
|
+
}
|
|
1371
|
+
],
|
|
1372
|
+
"attributes": [
|
|
1373
|
+
{
|
|
1374
|
+
"name": "variant",
|
|
1375
|
+
"type": {
|
|
1376
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
1377
|
+
},
|
|
1378
|
+
"default": "\"info\"",
|
|
1379
|
+
"description": "The style variant of the banner.",
|
|
1380
|
+
"fieldName": "variant"
|
|
1381
|
+
}
|
|
1382
|
+
],
|
|
1383
|
+
"superclass": {
|
|
1384
|
+
"name": "LitElement",
|
|
1385
|
+
"package": "lit"
|
|
1386
|
+
},
|
|
1387
|
+
"localization": [],
|
|
1388
|
+
"status": "ready",
|
|
1389
|
+
"category": "feedback",
|
|
1390
|
+
"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",
|
|
1391
|
+
"examples": [],
|
|
1392
|
+
"dependencies": [
|
|
1393
|
+
"icon"
|
|
1394
|
+
],
|
|
1395
|
+
"tagName": "nord-banner",
|
|
1396
|
+
"customElement": true
|
|
1397
|
+
}
|
|
1398
|
+
],
|
|
1399
|
+
"exports": [
|
|
1400
|
+
{
|
|
1401
|
+
"kind": "js",
|
|
1402
|
+
"name": "default",
|
|
1403
|
+
"declaration": {
|
|
1404
|
+
"name": "Banner",
|
|
1405
|
+
"module": "src/banner/Banner.ts"
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
"kind": "custom-element-definition",
|
|
1410
|
+
"name": "nord-banner",
|
|
1411
|
+
"declaration": {
|
|
1412
|
+
"name": "Banner",
|
|
1413
|
+
"module": "src/banner/Banner.ts"
|
|
1517
1414
|
}
|
|
1518
1415
|
}
|
|
1519
1416
|
]
|
|
@@ -2021,129 +1918,6 @@
|
|
|
2021
1918
|
}
|
|
2022
1919
|
]
|
|
2023
1920
|
},
|
|
2024
|
-
{
|
|
2025
|
-
"kind": "javascript-module",
|
|
2026
|
-
"path": "src/card/Card.ts",
|
|
2027
|
-
"declarations": [
|
|
2028
|
-
{
|
|
2029
|
-
"kind": "class",
|
|
2030
|
-
"description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
|
|
2031
|
-
"name": "Card",
|
|
2032
|
-
"cssProperties": [
|
|
2033
|
-
{
|
|
2034
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2035
|
-
"name": "--n-card-border-radius",
|
|
2036
|
-
"default": "var(--n-border-radius)"
|
|
2037
|
-
},
|
|
2038
|
-
{
|
|
2039
|
-
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2040
|
-
"name": "--n-card-box-shadow",
|
|
2041
|
-
"default": "var(--n-box-shadow-popout)"
|
|
2042
|
-
},
|
|
2043
|
-
{
|
|
2044
|
-
"description": "Controls the padding on all sides of the card.",
|
|
2045
|
-
"name": "--n-card-padding",
|
|
2046
|
-
"default": "var(--n-space-m)"
|
|
2047
|
-
},
|
|
2048
|
-
{
|
|
2049
|
-
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2050
|
-
"name": "--n-card-slot-padding",
|
|
2051
|
-
"default": "var(--n-space-m)"
|
|
2052
|
-
}
|
|
2053
|
-
],
|
|
2054
|
-
"slots": [
|
|
2055
|
-
{
|
|
2056
|
-
"description": "The card content.",
|
|
2057
|
-
"name": ""
|
|
2058
|
-
},
|
|
2059
|
-
{
|
|
2060
|
-
"description": "Optional slot that holds a header for the card.",
|
|
2061
|
-
"name": "header"
|
|
2062
|
-
},
|
|
2063
|
-
{
|
|
2064
|
-
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2065
|
-
"name": "header-end"
|
|
2066
|
-
},
|
|
2067
|
-
{
|
|
2068
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
2069
|
-
"name": "footer"
|
|
2070
|
-
}
|
|
2071
|
-
],
|
|
2072
|
-
"members": [
|
|
2073
|
-
{
|
|
2074
|
-
"kind": "field",
|
|
2075
|
-
"name": "headerSlot",
|
|
2076
|
-
"privacy": "private",
|
|
2077
|
-
"default": "new SlotController(this, \"header\")"
|
|
2078
|
-
},
|
|
2079
|
-
{
|
|
2080
|
-
"kind": "field",
|
|
2081
|
-
"name": "headerEndSlot",
|
|
2082
|
-
"privacy": "private",
|
|
2083
|
-
"default": "new SlotController(this, \"header-end\")"
|
|
2084
|
-
},
|
|
2085
|
-
{
|
|
2086
|
-
"kind": "field",
|
|
2087
|
-
"name": "footerSlot",
|
|
2088
|
-
"privacy": "private",
|
|
2089
|
-
"default": "new SlotController(this, \"footer\")"
|
|
2090
|
-
},
|
|
2091
|
-
{
|
|
2092
|
-
"kind": "field",
|
|
2093
|
-
"name": "padding",
|
|
2094
|
-
"type": {
|
|
2095
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2096
|
-
},
|
|
2097
|
-
"default": "\"m\"",
|
|
2098
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2099
|
-
"attribute": "padding",
|
|
2100
|
-
"reflects": true
|
|
2101
|
-
}
|
|
2102
|
-
],
|
|
2103
|
-
"attributes": [
|
|
2104
|
-
{
|
|
2105
|
-
"name": "padding",
|
|
2106
|
-
"type": {
|
|
2107
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
2108
|
-
},
|
|
2109
|
-
"default": "\"m\"",
|
|
2110
|
-
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2111
|
-
"fieldName": "padding"
|
|
2112
|
-
}
|
|
2113
|
-
],
|
|
2114
|
-
"superclass": {
|
|
2115
|
-
"name": "LitElement",
|
|
2116
|
-
"package": "lit"
|
|
2117
|
-
},
|
|
2118
|
-
"localization": [],
|
|
2119
|
-
"status": "ready",
|
|
2120
|
-
"category": "structure",
|
|
2121
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n- Include a header when placing a [Table](/components/table) component inside the card.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place cards within cards. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n",
|
|
2122
|
-
"examples": [],
|
|
2123
|
-
"dependencies": [],
|
|
2124
|
-
"tagName": "nord-card",
|
|
2125
|
-
"customElement": true
|
|
2126
|
-
}
|
|
2127
|
-
],
|
|
2128
|
-
"exports": [
|
|
2129
|
-
{
|
|
2130
|
-
"kind": "js",
|
|
2131
|
-
"name": "default",
|
|
2132
|
-
"declaration": {
|
|
2133
|
-
"name": "Card",
|
|
2134
|
-
"module": "src/card/Card.ts"
|
|
2135
|
-
}
|
|
2136
|
-
},
|
|
2137
|
-
{
|
|
2138
|
-
"kind": "custom-element-definition",
|
|
2139
|
-
"name": "nord-card",
|
|
2140
|
-
"declaration": {
|
|
2141
|
-
"name": "Card",
|
|
2142
|
-
"module": "src/card/Card.ts"
|
|
2143
|
-
}
|
|
2144
|
-
}
|
|
2145
|
-
]
|
|
2146
|
-
},
|
|
2147
1921
|
{
|
|
2148
1922
|
"kind": "javascript-module",
|
|
2149
1923
|
"path": "src/checkbox/Checkbox.ts",
|
|
@@ -2867,12 +2641,238 @@
|
|
|
2867
2641
|
},
|
|
2868
2642
|
{
|
|
2869
2643
|
"kind": "javascript-module",
|
|
2870
|
-
"path": "src/
|
|
2644
|
+
"path": "src/card/Card.ts",
|
|
2871
2645
|
"declarations": [
|
|
2872
2646
|
{
|
|
2873
2647
|
"kind": "class",
|
|
2874
|
-
"description": "
|
|
2875
|
-
"name": "
|
|
2648
|
+
"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.",
|
|
2649
|
+
"name": "Card",
|
|
2650
|
+
"cssProperties": [
|
|
2651
|
+
{
|
|
2652
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2653
|
+
"name": "--n-card-border-radius",
|
|
2654
|
+
"default": "var(--n-border-radius)"
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2658
|
+
"name": "--n-card-box-shadow",
|
|
2659
|
+
"default": "var(--n-box-shadow-popout)"
|
|
2660
|
+
},
|
|
2661
|
+
{
|
|
2662
|
+
"description": "Controls the padding on all sides of the card.",
|
|
2663
|
+
"name": "--n-card-padding",
|
|
2664
|
+
"default": "var(--n-space-m)"
|
|
2665
|
+
},
|
|
2666
|
+
{
|
|
2667
|
+
"description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
|
|
2668
|
+
"name": "--n-card-slot-padding",
|
|
2669
|
+
"default": "var(--n-space-m)"
|
|
2670
|
+
}
|
|
2671
|
+
],
|
|
2672
|
+
"slots": [
|
|
2673
|
+
{
|
|
2674
|
+
"description": "The card content.",
|
|
2675
|
+
"name": ""
|
|
2676
|
+
},
|
|
2677
|
+
{
|
|
2678
|
+
"description": "Optional slot that holds a header for the card.",
|
|
2679
|
+
"name": "header"
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
"description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
|
|
2683
|
+
"name": "header-end"
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
2687
|
+
"name": "footer"
|
|
2688
|
+
}
|
|
2689
|
+
],
|
|
2690
|
+
"members": [
|
|
2691
|
+
{
|
|
2692
|
+
"kind": "field",
|
|
2693
|
+
"name": "headerSlot",
|
|
2694
|
+
"privacy": "private",
|
|
2695
|
+
"default": "new SlotController(this, \"header\")"
|
|
2696
|
+
},
|
|
2697
|
+
{
|
|
2698
|
+
"kind": "field",
|
|
2699
|
+
"name": "headerEndSlot",
|
|
2700
|
+
"privacy": "private",
|
|
2701
|
+
"default": "new SlotController(this, \"header-end\")"
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
"kind": "field",
|
|
2705
|
+
"name": "footerSlot",
|
|
2706
|
+
"privacy": "private",
|
|
2707
|
+
"default": "new SlotController(this, \"footer\")"
|
|
2708
|
+
},
|
|
2709
|
+
{
|
|
2710
|
+
"kind": "field",
|
|
2711
|
+
"name": "padding",
|
|
2712
|
+
"type": {
|
|
2713
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2714
|
+
},
|
|
2715
|
+
"default": "\"m\"",
|
|
2716
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2717
|
+
"attribute": "padding",
|
|
2718
|
+
"reflects": true
|
|
2719
|
+
}
|
|
2720
|
+
],
|
|
2721
|
+
"attributes": [
|
|
2722
|
+
{
|
|
2723
|
+
"name": "padding",
|
|
2724
|
+
"type": {
|
|
2725
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
2726
|
+
},
|
|
2727
|
+
"default": "\"m\"",
|
|
2728
|
+
"description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
2729
|
+
"fieldName": "padding"
|
|
2730
|
+
}
|
|
2731
|
+
],
|
|
2732
|
+
"superclass": {
|
|
2733
|
+
"name": "LitElement",
|
|
2734
|
+
"package": "lit"
|
|
2735
|
+
},
|
|
2736
|
+
"localization": [],
|
|
2737
|
+
"status": "ready",
|
|
2738
|
+
"category": "structure",
|
|
2739
|
+
"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",
|
|
2740
|
+
"examples": [],
|
|
2741
|
+
"dependencies": [],
|
|
2742
|
+
"tagName": "nord-card",
|
|
2743
|
+
"customElement": true
|
|
2744
|
+
}
|
|
2745
|
+
],
|
|
2746
|
+
"exports": [
|
|
2747
|
+
{
|
|
2748
|
+
"kind": "js",
|
|
2749
|
+
"name": "default",
|
|
2750
|
+
"declaration": {
|
|
2751
|
+
"name": "Card",
|
|
2752
|
+
"module": "src/card/Card.ts"
|
|
2753
|
+
}
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
"kind": "custom-element-definition",
|
|
2757
|
+
"name": "nord-card",
|
|
2758
|
+
"declaration": {
|
|
2759
|
+
"name": "Card",
|
|
2760
|
+
"module": "src/card/Card.ts"
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
]
|
|
2764
|
+
},
|
|
2765
|
+
{
|
|
2766
|
+
"kind": "javascript-module",
|
|
2767
|
+
"path": "src/button-group/ButtonGroup.ts",
|
|
2768
|
+
"declarations": [
|
|
2769
|
+
{
|
|
2770
|
+
"kind": "class",
|
|
2771
|
+
"description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
|
|
2772
|
+
"name": "ButtonGroup",
|
|
2773
|
+
"cssProperties": [
|
|
2774
|
+
{
|
|
2775
|
+
"description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
|
|
2776
|
+
"name": "--n-button-group-border-radius",
|
|
2777
|
+
"default": "var(--n-border-radius-s)"
|
|
2778
|
+
},
|
|
2779
|
+
{
|
|
2780
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2781
|
+
"name": "--n-button-group-box-shadow",
|
|
2782
|
+
"default": "var(--n-box-shadow)"
|
|
2783
|
+
}
|
|
2784
|
+
],
|
|
2785
|
+
"slots": [
|
|
2786
|
+
{
|
|
2787
|
+
"description": "The button group content",
|
|
2788
|
+
"name": ""
|
|
2789
|
+
}
|
|
2790
|
+
],
|
|
2791
|
+
"members": [
|
|
2792
|
+
{
|
|
2793
|
+
"kind": "field",
|
|
2794
|
+
"name": "direction",
|
|
2795
|
+
"type": {
|
|
2796
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
2797
|
+
},
|
|
2798
|
+
"default": "\"horizontal\"",
|
|
2799
|
+
"description": "The direction of the button group.",
|
|
2800
|
+
"attribute": "direction",
|
|
2801
|
+
"reflects": true
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
"kind": "field",
|
|
2805
|
+
"name": "role",
|
|
2806
|
+
"type": {
|
|
2807
|
+
"text": "string"
|
|
2808
|
+
},
|
|
2809
|
+
"default": "\"group\"",
|
|
2810
|
+
"description": "The appropriate role for the containing element.",
|
|
2811
|
+
"attribute": "role",
|
|
2812
|
+
"reflects": true
|
|
2813
|
+
}
|
|
2814
|
+
],
|
|
2815
|
+
"attributes": [
|
|
2816
|
+
{
|
|
2817
|
+
"name": "direction",
|
|
2818
|
+
"type": {
|
|
2819
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
2820
|
+
},
|
|
2821
|
+
"default": "\"horizontal\"",
|
|
2822
|
+
"description": "The direction of the button group.",
|
|
2823
|
+
"fieldName": "direction"
|
|
2824
|
+
},
|
|
2825
|
+
{
|
|
2826
|
+
"name": "role",
|
|
2827
|
+
"type": {
|
|
2828
|
+
"text": "string"
|
|
2829
|
+
},
|
|
2830
|
+
"default": "\"group\"",
|
|
2831
|
+
"description": "The appropriate role for the containing element.",
|
|
2832
|
+
"fieldName": "role"
|
|
2833
|
+
}
|
|
2834
|
+
],
|
|
2835
|
+
"superclass": {
|
|
2836
|
+
"name": "LitElement",
|
|
2837
|
+
"package": "lit"
|
|
2838
|
+
},
|
|
2839
|
+
"localization": [],
|
|
2840
|
+
"status": "new",
|
|
2841
|
+
"category": "structure",
|
|
2842
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to 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",
|
|
2843
|
+
"examples": [],
|
|
2844
|
+
"dependencies": [],
|
|
2845
|
+
"tagName": "nord-button-group",
|
|
2846
|
+
"customElement": true
|
|
2847
|
+
}
|
|
2848
|
+
],
|
|
2849
|
+
"exports": [
|
|
2850
|
+
{
|
|
2851
|
+
"kind": "js",
|
|
2852
|
+
"name": "default",
|
|
2853
|
+
"declaration": {
|
|
2854
|
+
"name": "ButtonGroup",
|
|
2855
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
2856
|
+
}
|
|
2857
|
+
},
|
|
2858
|
+
{
|
|
2859
|
+
"kind": "custom-element-definition",
|
|
2860
|
+
"name": "nord-button-group",
|
|
2861
|
+
"declaration": {
|
|
2862
|
+
"name": "ButtonGroup",
|
|
2863
|
+
"module": "src/button-group/ButtonGroup.ts"
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
]
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
"kind": "javascript-module",
|
|
2870
|
+
"path": "src/command-menu/CommandMenu.ts",
|
|
2871
|
+
"declarations": [
|
|
2872
|
+
{
|
|
2873
|
+
"kind": "class",
|
|
2874
|
+
"description": "Command Menu allows users to navigate and use an app without\ntouching the mouse and helps them transform into “power users”\nwho can harness more advanced features far faster.",
|
|
2875
|
+
"name": "CommandMenu",
|
|
2876
2876
|
"cssProperties": [
|
|
2877
2877
|
{
|
|
2878
2878
|
"description": "Controls the max inline size, or width, of the command menu.",
|
|
@@ -9441,43 +9441,113 @@
|
|
|
9441
9441
|
},
|
|
9442
9442
|
{
|
|
9443
9443
|
"kind": "javascript-module",
|
|
9444
|
-
"path": "src/nav-
|
|
9444
|
+
"path": "src/nav-group/NavGroup.ts",
|
|
9445
9445
|
"declarations": [
|
|
9446
9446
|
{
|
|
9447
9447
|
"kind": "class",
|
|
9448
|
-
"description": "Navigation
|
|
9449
|
-
"name": "
|
|
9448
|
+
"description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
|
|
9449
|
+
"name": "NavGroup",
|
|
9450
9450
|
"slots": [
|
|
9451
9451
|
{
|
|
9452
|
-
"description": "The default slot used for the nav
|
|
9452
|
+
"description": "The default slot used for the nav items.",
|
|
9453
9453
|
"name": ""
|
|
9454
|
-
},
|
|
9455
|
-
{
|
|
9456
|
-
"description": "Used for nesting navigation. When used the nav-item becomes a button to collapse the subnav, rather than a link.",
|
|
9457
|
-
"name": "subnav"
|
|
9458
9454
|
}
|
|
9459
9455
|
],
|
|
9460
9456
|
"members": [
|
|
9461
9457
|
{
|
|
9462
9458
|
"kind": "field",
|
|
9463
|
-
"name": "
|
|
9464
|
-
"privacy": "private",
|
|
9465
|
-
"default": "new SlotController(this, \"subnav\")"
|
|
9466
|
-
},
|
|
9467
|
-
{
|
|
9468
|
-
"kind": "field",
|
|
9469
|
-
"name": "direction",
|
|
9470
|
-
"privacy": "private",
|
|
9471
|
-
"default": "new DirectionController(this)"
|
|
9472
|
-
},
|
|
9473
|
-
{
|
|
9474
|
-
"kind": "field",
|
|
9475
|
-
"name": "active",
|
|
9459
|
+
"name": "heading",
|
|
9476
9460
|
"type": {
|
|
9477
|
-
"text": "
|
|
9461
|
+
"text": "string | undefined"
|
|
9478
9462
|
},
|
|
9479
|
-
"
|
|
9480
|
-
"
|
|
9463
|
+
"description": "Heading and accessible label for the nav group",
|
|
9464
|
+
"attribute": "heading"
|
|
9465
|
+
}
|
|
9466
|
+
],
|
|
9467
|
+
"attributes": [
|
|
9468
|
+
{
|
|
9469
|
+
"name": "heading",
|
|
9470
|
+
"type": {
|
|
9471
|
+
"text": "string | undefined"
|
|
9472
|
+
},
|
|
9473
|
+
"description": "Heading and accessible label for the nav group",
|
|
9474
|
+
"fieldName": "heading"
|
|
9475
|
+
}
|
|
9476
|
+
],
|
|
9477
|
+
"superclass": {
|
|
9478
|
+
"name": "LitElement",
|
|
9479
|
+
"package": "lit"
|
|
9480
|
+
},
|
|
9481
|
+
"localization": [],
|
|
9482
|
+
"status": "ready",
|
|
9483
|
+
"category": "navigation",
|
|
9484
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
9485
|
+
"examples": [],
|
|
9486
|
+
"dependencies": [
|
|
9487
|
+
"icon"
|
|
9488
|
+
],
|
|
9489
|
+
"tagName": "nord-nav-group",
|
|
9490
|
+
"customElement": true
|
|
9491
|
+
}
|
|
9492
|
+
],
|
|
9493
|
+
"exports": [
|
|
9494
|
+
{
|
|
9495
|
+
"kind": "js",
|
|
9496
|
+
"name": "default",
|
|
9497
|
+
"declaration": {
|
|
9498
|
+
"name": "NavGroup",
|
|
9499
|
+
"module": "src/nav-group/NavGroup.ts"
|
|
9500
|
+
}
|
|
9501
|
+
},
|
|
9502
|
+
{
|
|
9503
|
+
"kind": "custom-element-definition",
|
|
9504
|
+
"name": "nord-nav-group",
|
|
9505
|
+
"declaration": {
|
|
9506
|
+
"name": "NavGroup",
|
|
9507
|
+
"module": "src/nav-group/NavGroup.ts"
|
|
9508
|
+
}
|
|
9509
|
+
}
|
|
9510
|
+
]
|
|
9511
|
+
},
|
|
9512
|
+
{
|
|
9513
|
+
"kind": "javascript-module",
|
|
9514
|
+
"path": "src/nav-item/NavItem.ts",
|
|
9515
|
+
"declarations": [
|
|
9516
|
+
{
|
|
9517
|
+
"kind": "class",
|
|
9518
|
+
"description": "Navigation item populates sidebar navigation with links.\nEvery item should be placed inside a navigation group.",
|
|
9519
|
+
"name": "NavItem",
|
|
9520
|
+
"slots": [
|
|
9521
|
+
{
|
|
9522
|
+
"description": "The default slot used for the nav item's text.",
|
|
9523
|
+
"name": ""
|
|
9524
|
+
},
|
|
9525
|
+
{
|
|
9526
|
+
"description": "Used for nesting navigation. When used the nav-item becomes a button to collapse the subnav, rather than a link.",
|
|
9527
|
+
"name": "subnav"
|
|
9528
|
+
}
|
|
9529
|
+
],
|
|
9530
|
+
"members": [
|
|
9531
|
+
{
|
|
9532
|
+
"kind": "field",
|
|
9533
|
+
"name": "subnavSlot",
|
|
9534
|
+
"privacy": "private",
|
|
9535
|
+
"default": "new SlotController(this, \"subnav\")"
|
|
9536
|
+
},
|
|
9537
|
+
{
|
|
9538
|
+
"kind": "field",
|
|
9539
|
+
"name": "direction",
|
|
9540
|
+
"privacy": "private",
|
|
9541
|
+
"default": "new DirectionController(this)"
|
|
9542
|
+
},
|
|
9543
|
+
{
|
|
9544
|
+
"kind": "field",
|
|
9545
|
+
"name": "active",
|
|
9546
|
+
"type": {
|
|
9547
|
+
"text": "boolean"
|
|
9548
|
+
},
|
|
9549
|
+
"default": "false",
|
|
9550
|
+
"description": "Used for indicating the current page. This gives a prominent background to the nav item,\nand marks the item as the current page for assistive technology.",
|
|
9481
9551
|
"attribute": "active",
|
|
9482
9552
|
"reflects": true
|
|
9483
9553
|
},
|
|
@@ -9712,76 +9782,6 @@
|
|
|
9712
9782
|
}
|
|
9713
9783
|
]
|
|
9714
9784
|
},
|
|
9715
|
-
{
|
|
9716
|
-
"kind": "javascript-module",
|
|
9717
|
-
"path": "src/nav-group/NavGroup.ts",
|
|
9718
|
-
"declarations": [
|
|
9719
|
-
{
|
|
9720
|
-
"kind": "class",
|
|
9721
|
-
"description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
|
|
9722
|
-
"name": "NavGroup",
|
|
9723
|
-
"slots": [
|
|
9724
|
-
{
|
|
9725
|
-
"description": "The default slot used for the nav items.",
|
|
9726
|
-
"name": ""
|
|
9727
|
-
}
|
|
9728
|
-
],
|
|
9729
|
-
"members": [
|
|
9730
|
-
{
|
|
9731
|
-
"kind": "field",
|
|
9732
|
-
"name": "heading",
|
|
9733
|
-
"type": {
|
|
9734
|
-
"text": "string | undefined"
|
|
9735
|
-
},
|
|
9736
|
-
"description": "Heading and accessible label for the nav group",
|
|
9737
|
-
"attribute": "heading"
|
|
9738
|
-
}
|
|
9739
|
-
],
|
|
9740
|
-
"attributes": [
|
|
9741
|
-
{
|
|
9742
|
-
"name": "heading",
|
|
9743
|
-
"type": {
|
|
9744
|
-
"text": "string | undefined"
|
|
9745
|
-
},
|
|
9746
|
-
"description": "Heading and accessible label for the nav group",
|
|
9747
|
-
"fieldName": "heading"
|
|
9748
|
-
}
|
|
9749
|
-
],
|
|
9750
|
-
"superclass": {
|
|
9751
|
-
"name": "LitElement",
|
|
9752
|
-
"package": "lit"
|
|
9753
|
-
},
|
|
9754
|
-
"localization": [],
|
|
9755
|
-
"status": "ready",
|
|
9756
|
-
"category": "navigation",
|
|
9757
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
9758
|
-
"examples": [],
|
|
9759
|
-
"dependencies": [
|
|
9760
|
-
"icon"
|
|
9761
|
-
],
|
|
9762
|
-
"tagName": "nord-nav-group",
|
|
9763
|
-
"customElement": true
|
|
9764
|
-
}
|
|
9765
|
-
],
|
|
9766
|
-
"exports": [
|
|
9767
|
-
{
|
|
9768
|
-
"kind": "js",
|
|
9769
|
-
"name": "default",
|
|
9770
|
-
"declaration": {
|
|
9771
|
-
"name": "NavGroup",
|
|
9772
|
-
"module": "src/nav-group/NavGroup.ts"
|
|
9773
|
-
}
|
|
9774
|
-
},
|
|
9775
|
-
{
|
|
9776
|
-
"kind": "custom-element-definition",
|
|
9777
|
-
"name": "nord-nav-group",
|
|
9778
|
-
"declaration": {
|
|
9779
|
-
"name": "NavGroup",
|
|
9780
|
-
"module": "src/nav-group/NavGroup.ts"
|
|
9781
|
-
}
|
|
9782
|
-
}
|
|
9783
|
-
]
|
|
9784
|
-
},
|
|
9785
9785
|
{
|
|
9786
9786
|
"kind": "javascript-module",
|
|
9787
9787
|
"path": "src/nav-toggle/NavToggle.ts",
|
|
@@ -10946,34 +10946,12 @@
|
|
|
10946
10946
|
},
|
|
10947
10947
|
{
|
|
10948
10948
|
"kind": "javascript-module",
|
|
10949
|
-
"path": "src/
|
|
10949
|
+
"path": "src/radio/Radio.ts",
|
|
10950
10950
|
"declarations": [
|
|
10951
10951
|
{
|
|
10952
10952
|
"kind": "class",
|
|
10953
|
-
"description": "
|
|
10954
|
-
"name": "
|
|
10955
|
-
"cssProperties": [
|
|
10956
|
-
{
|
|
10957
|
-
"description": "Controls the size of the thumb.",
|
|
10958
|
-
"name": "--n-range-thumb-size",
|
|
10959
|
-
"default": "20px"
|
|
10960
|
-
},
|
|
10961
|
-
{
|
|
10962
|
-
"description": "Controls the color of the portion of the track that represents the current value.",
|
|
10963
|
-
"name": "--n-range-track-color-active",
|
|
10964
|
-
"default": "var(--n-color-accent)"
|
|
10965
|
-
},
|
|
10966
|
-
{
|
|
10967
|
-
"description": "Controls the color of the portion of the track that represents the remaining value.",
|
|
10968
|
-
"name": "--n-range-track-color-inactive",
|
|
10969
|
-
"default": "var(--n-color-border-strong)"
|
|
10970
|
-
},
|
|
10971
|
-
{
|
|
10972
|
-
"description": "Controls the height of the track.",
|
|
10973
|
-
"name": "--n-range-track-size",
|
|
10974
|
-
"default": "3px"
|
|
10975
|
-
}
|
|
10976
|
-
],
|
|
10953
|
+
"description": "Radio buttons are graphical user interface elements that allow user to choose only one option from\na predefined set of mutually exclusive options.",
|
|
10954
|
+
"name": "Radio",
|
|
10977
10955
|
"slots": [
|
|
10978
10956
|
{
|
|
10979
10957
|
"description": "Use when a label requires more than plain text.",
|
|
@@ -10991,63 +10969,49 @@
|
|
|
10991
10969
|
"members": [
|
|
10992
10970
|
{
|
|
10993
10971
|
"kind": "field",
|
|
10994
|
-
"name": "
|
|
10995
|
-
"privacy": "private",
|
|
10996
|
-
"default": "new DirectionController(this)"
|
|
10997
|
-
},
|
|
10998
|
-
{
|
|
10999
|
-
"kind": "field",
|
|
11000
|
-
"name": "min",
|
|
10972
|
+
"name": "inputId",
|
|
11001
10973
|
"type": {
|
|
11002
|
-
"text": "
|
|
10974
|
+
"text": "string"
|
|
11003
10975
|
},
|
|
11004
|
-
"
|
|
11005
|
-
"
|
|
11006
|
-
"
|
|
10976
|
+
"privacy": "protected",
|
|
10977
|
+
"default": "\"input\"",
|
|
10978
|
+
"inheritedFrom": {
|
|
10979
|
+
"name": "FormAssociatedMixin",
|
|
10980
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10981
|
+
}
|
|
11007
10982
|
},
|
|
11008
10983
|
{
|
|
11009
10984
|
"kind": "field",
|
|
11010
|
-
"name": "
|
|
10985
|
+
"name": "hintId",
|
|
11011
10986
|
"type": {
|
|
11012
|
-
"text": "
|
|
10987
|
+
"text": "string"
|
|
11013
10988
|
},
|
|
11014
|
-
"
|
|
11015
|
-
"
|
|
11016
|
-
"
|
|
10989
|
+
"privacy": "protected",
|
|
10990
|
+
"default": "\"hint\"",
|
|
10991
|
+
"inheritedFrom": {
|
|
10992
|
+
"name": "FormAssociatedMixin",
|
|
10993
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10994
|
+
}
|
|
11017
10995
|
},
|
|
11018
10996
|
{
|
|
11019
10997
|
"kind": "field",
|
|
11020
|
-
"name": "
|
|
10998
|
+
"name": "errorId",
|
|
11021
10999
|
"type": {
|
|
11022
|
-
"text": "
|
|
11000
|
+
"text": "string"
|
|
11023
11001
|
},
|
|
11024
|
-
"
|
|
11025
|
-
"
|
|
11026
|
-
"
|
|
11002
|
+
"privacy": "protected",
|
|
11003
|
+
"default": "\"error\"",
|
|
11004
|
+
"inheritedFrom": {
|
|
11005
|
+
"name": "FormAssociatedMixin",
|
|
11006
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11007
|
+
}
|
|
11027
11008
|
},
|
|
11028
11009
|
{
|
|
11029
11010
|
"kind": "field",
|
|
11030
|
-
"name": "
|
|
11031
|
-
"type": {
|
|
11032
|
-
"text": "boolean"
|
|
11033
|
-
},
|
|
11034
|
-
"default": "false",
|
|
11035
|
-
"description": "Controls whether the input expands to fill the width of its container.",
|
|
11036
|
-
"attribute": "expand",
|
|
11037
|
-
"reflects": true
|
|
11038
|
-
},
|
|
11039
|
-
{
|
|
11040
|
-
"kind": "method",
|
|
11041
|
-
"name": "handleInput",
|
|
11011
|
+
"name": "hintSlot",
|
|
11042
11012
|
"privacy": "protected",
|
|
11043
|
-
"
|
|
11044
|
-
|
|
11045
|
-
"name": "e",
|
|
11046
|
-
"type": {
|
|
11047
|
-
"text": "Event"
|
|
11048
|
-
}
|
|
11049
|
-
}
|
|
11050
|
-
],
|
|
11013
|
+
"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 })",
|
|
11014
|
+
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
11051
11015
|
"inheritedFrom": {
|
|
11052
11016
|
"name": "FormAssociatedMixin",
|
|
11053
11017
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11057,7 +11021,7 @@
|
|
|
11057
11021
|
"kind": "field",
|
|
11058
11022
|
"name": "labelSlot",
|
|
11059
11023
|
"privacy": "protected",
|
|
11060
|
-
"default": "new
|
|
11024
|
+
"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 })",
|
|
11061
11025
|
"inheritedFrom": {
|
|
11062
11026
|
"name": "FormAssociatedMixin",
|
|
11063
11027
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11067,17 +11031,7 @@
|
|
|
11067
11031
|
"kind": "field",
|
|
11068
11032
|
"name": "errorSlot",
|
|
11069
11033
|
"privacy": "protected",
|
|
11070
|
-
"default": "new
|
|
11071
|
-
"inheritedFrom": {
|
|
11072
|
-
"name": "FormAssociatedMixin",
|
|
11073
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11074
|
-
}
|
|
11075
|
-
},
|
|
11076
|
-
{
|
|
11077
|
-
"kind": "field",
|
|
11078
|
-
"name": "hintSlot",
|
|
11079
|
-
"privacy": "protected",
|
|
11080
|
-
"default": "new SlotController(this, \"hint\")",
|
|
11034
|
+
"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 })",
|
|
11081
11035
|
"inheritedFrom": {
|
|
11082
11036
|
"name": "FormAssociatedMixin",
|
|
11083
11037
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11085,13 +11039,9 @@
|
|
|
11085
11039
|
},
|
|
11086
11040
|
{
|
|
11087
11041
|
"kind": "field",
|
|
11088
|
-
"name": "
|
|
11042
|
+
"name": "inputSlot",
|
|
11089
11043
|
"privacy": "protected",
|
|
11090
|
-
"default": "new
|
|
11091
|
-
"inheritedFrom": {
|
|
11092
|
-
"name": "FormAssociatedMixin",
|
|
11093
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11094
|
-
}
|
|
11044
|
+
"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 })"
|
|
11095
11045
|
},
|
|
11096
11046
|
{
|
|
11097
11047
|
"kind": "field",
|
|
@@ -11105,25 +11055,50 @@
|
|
|
11105
11055
|
},
|
|
11106
11056
|
{
|
|
11107
11057
|
"kind": "field",
|
|
11108
|
-
"name": "
|
|
11058
|
+
"name": "checked",
|
|
11109
11059
|
"type": {
|
|
11110
|
-
"text": "
|
|
11060
|
+
"text": "boolean"
|
|
11111
11061
|
},
|
|
11062
|
+
"default": "false",
|
|
11063
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
11064
|
+
"attribute": "checked",
|
|
11065
|
+
"reflects": true
|
|
11066
|
+
},
|
|
11067
|
+
{
|
|
11068
|
+
"kind": "method",
|
|
11069
|
+
"name": "handleCheckedChange",
|
|
11112
11070
|
"privacy": "protected",
|
|
11113
|
-
"
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11071
|
+
"parameters": [
|
|
11072
|
+
{
|
|
11073
|
+
"name": "previousChecked",
|
|
11074
|
+
"type": {
|
|
11075
|
+
"text": "boolean"
|
|
11076
|
+
}
|
|
11077
|
+
}
|
|
11078
|
+
]
|
|
11118
11079
|
},
|
|
11119
11080
|
{
|
|
11120
|
-
"kind": "
|
|
11121
|
-
"name": "
|
|
11122
|
-
"
|
|
11123
|
-
|
|
11124
|
-
|
|
11081
|
+
"kind": "method",
|
|
11082
|
+
"name": "uncheckSiblings",
|
|
11083
|
+
"privacy": "private"
|
|
11084
|
+
},
|
|
11085
|
+
{
|
|
11086
|
+
"kind": "method",
|
|
11087
|
+
"name": "handleChange",
|
|
11125
11088
|
"privacy": "protected",
|
|
11126
|
-
"
|
|
11089
|
+
"parameters": [
|
|
11090
|
+
{
|
|
11091
|
+
"name": "e",
|
|
11092
|
+
"type": {
|
|
11093
|
+
"text": "Event"
|
|
11094
|
+
}
|
|
11095
|
+
}
|
|
11096
|
+
],
|
|
11097
|
+
"return": {
|
|
11098
|
+
"type": {
|
|
11099
|
+
"text": "void"
|
|
11100
|
+
}
|
|
11101
|
+
},
|
|
11127
11102
|
"inheritedFrom": {
|
|
11128
11103
|
"name": "FormAssociatedMixin",
|
|
11129
11104
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11131,12 +11106,19 @@
|
|
|
11131
11106
|
},
|
|
11132
11107
|
{
|
|
11133
11108
|
"kind": "field",
|
|
11134
|
-
"name": "
|
|
11135
|
-
"
|
|
11136
|
-
|
|
11137
|
-
|
|
11109
|
+
"name": "handleBlur",
|
|
11110
|
+
"privacy": "private"
|
|
11111
|
+
},
|
|
11112
|
+
{
|
|
11113
|
+
"kind": "field",
|
|
11114
|
+
"name": "handleFocus",
|
|
11115
|
+
"privacy": "private"
|
|
11116
|
+
},
|
|
11117
|
+
{
|
|
11118
|
+
"kind": "field",
|
|
11119
|
+
"name": "formData",
|
|
11138
11120
|
"privacy": "protected",
|
|
11139
|
-
"default": "
|
|
11121
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
11140
11122
|
"inheritedFrom": {
|
|
11141
11123
|
"name": "FormAssociatedMixin",
|
|
11142
11124
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11239,7 +11221,7 @@
|
|
|
11239
11221
|
},
|
|
11240
11222
|
{
|
|
11241
11223
|
"kind": "method",
|
|
11242
|
-
"name": "
|
|
11224
|
+
"name": "handleInput",
|
|
11243
11225
|
"privacy": "protected",
|
|
11244
11226
|
"parameters": [
|
|
11245
11227
|
{
|
|
@@ -11319,35 +11301,6 @@
|
|
|
11319
11301
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11320
11302
|
}
|
|
11321
11303
|
},
|
|
11322
|
-
{
|
|
11323
|
-
"kind": "field",
|
|
11324
|
-
"name": "autocomplete",
|
|
11325
|
-
"type": {
|
|
11326
|
-
"text": "AutocompleteAttribute"
|
|
11327
|
-
},
|
|
11328
|
-
"default": "\"off\"",
|
|
11329
|
-
"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.",
|
|
11330
|
-
"attribute": "autocomplete",
|
|
11331
|
-
"inheritedFrom": {
|
|
11332
|
-
"name": "AutocompleteMixin",
|
|
11333
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
11334
|
-
}
|
|
11335
|
-
},
|
|
11336
|
-
{
|
|
11337
|
-
"kind": "field",
|
|
11338
|
-
"name": "readonly",
|
|
11339
|
-
"type": {
|
|
11340
|
-
"text": "boolean"
|
|
11341
|
-
},
|
|
11342
|
-
"default": "false",
|
|
11343
|
-
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
11344
|
-
"attribute": "readonly",
|
|
11345
|
-
"reflects": true,
|
|
11346
|
-
"inheritedFrom": {
|
|
11347
|
-
"name": "ReadonlyMixin",
|
|
11348
|
-
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
11349
|
-
}
|
|
11350
|
-
},
|
|
11351
11304
|
{
|
|
11352
11305
|
"kind": "field",
|
|
11353
11306
|
"name": "disabled",
|
|
@@ -11475,66 +11428,15 @@
|
|
|
11475
11428
|
}
|
|
11476
11429
|
}
|
|
11477
11430
|
],
|
|
11478
|
-
"events": [
|
|
11479
|
-
{
|
|
11480
|
-
"name": "input",
|
|
11481
|
-
"type": {
|
|
11482
|
-
"text": "NordEvent"
|
|
11483
|
-
},
|
|
11484
|
-
"description": "Fired as the user types into the input.",
|
|
11485
|
-
"inheritedFrom": {
|
|
11486
|
-
"name": "FormAssociatedMixin",
|
|
11487
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11488
|
-
}
|
|
11489
|
-
},
|
|
11490
|
-
{
|
|
11491
|
-
"name": "change",
|
|
11492
|
-
"type": {
|
|
11493
|
-
"text": "NordEvent"
|
|
11494
|
-
},
|
|
11495
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
11496
|
-
"inheritedFrom": {
|
|
11497
|
-
"name": "FormAssociatedMixin",
|
|
11498
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11499
|
-
}
|
|
11500
|
-
}
|
|
11501
|
-
],
|
|
11502
11431
|
"attributes": [
|
|
11503
11432
|
{
|
|
11504
|
-
"name": "
|
|
11505
|
-
"type": {
|
|
11506
|
-
"text": "number"
|
|
11507
|
-
},
|
|
11508
|
-
"default": "0",
|
|
11509
|
-
"description": "Minimum value for the range slider.",
|
|
11510
|
-
"fieldName": "min"
|
|
11511
|
-
},
|
|
11512
|
-
{
|
|
11513
|
-
"name": "max",
|
|
11514
|
-
"type": {
|
|
11515
|
-
"text": "number"
|
|
11516
|
-
},
|
|
11517
|
-
"default": "10",
|
|
11518
|
-
"description": "Maximum value for the range slider.",
|
|
11519
|
-
"fieldName": "max"
|
|
11520
|
-
},
|
|
11521
|
-
{
|
|
11522
|
-
"name": "step",
|
|
11523
|
-
"type": {
|
|
11524
|
-
"text": "number"
|
|
11525
|
-
},
|
|
11526
|
-
"default": "1",
|
|
11527
|
-
"description": "Step amount for the range slider.",
|
|
11528
|
-
"fieldName": "step"
|
|
11529
|
-
},
|
|
11530
|
-
{
|
|
11531
|
-
"name": "expand",
|
|
11433
|
+
"name": "checked",
|
|
11532
11434
|
"type": {
|
|
11533
11435
|
"text": "boolean"
|
|
11534
11436
|
},
|
|
11535
11437
|
"default": "false",
|
|
11536
|
-
"description": "Controls whether the
|
|
11537
|
-
"fieldName": "
|
|
11438
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
11439
|
+
"fieldName": "checked"
|
|
11538
11440
|
},
|
|
11539
11441
|
{
|
|
11540
11442
|
"name": "label",
|
|
@@ -11624,32 +11526,6 @@
|
|
|
11624
11526
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11625
11527
|
}
|
|
11626
11528
|
},
|
|
11627
|
-
{
|
|
11628
|
-
"name": "autocomplete",
|
|
11629
|
-
"type": {
|
|
11630
|
-
"text": "AutocompleteAttribute"
|
|
11631
|
-
},
|
|
11632
|
-
"default": "\"off\"",
|
|
11633
|
-
"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.",
|
|
11634
|
-
"fieldName": "autocomplete",
|
|
11635
|
-
"inheritedFrom": {
|
|
11636
|
-
"name": "AutocompleteMixin",
|
|
11637
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
11638
|
-
}
|
|
11639
|
-
},
|
|
11640
|
-
{
|
|
11641
|
-
"name": "readonly",
|
|
11642
|
-
"type": {
|
|
11643
|
-
"text": "boolean"
|
|
11644
|
-
},
|
|
11645
|
-
"default": "false",
|
|
11646
|
-
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
11647
|
-
"fieldName": "readonly",
|
|
11648
|
-
"inheritedFrom": {
|
|
11649
|
-
"name": "ReadonlyMixin",
|
|
11650
|
-
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
11651
|
-
}
|
|
11652
|
-
},
|
|
11653
11529
|
{
|
|
11654
11530
|
"name": "disabled",
|
|
11655
11531
|
"type": {
|
|
@@ -11706,14 +11582,6 @@
|
|
|
11706
11582
|
"name": "FormAssociatedMixin",
|
|
11707
11583
|
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
11708
11584
|
},
|
|
11709
|
-
{
|
|
11710
|
-
"name": "AutocompleteMixin",
|
|
11711
|
-
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
11712
|
-
},
|
|
11713
|
-
{
|
|
11714
|
-
"name": "ReadonlyMixin",
|
|
11715
|
-
"module": "/src/common/mixins/ReadonlyMixin.js"
|
|
11716
|
-
},
|
|
11717
11585
|
{
|
|
11718
11586
|
"name": "InputMixin",
|
|
11719
11587
|
"module": "/src/common/mixins/InputMixin.js"
|
|
@@ -11728,13 +11596,37 @@
|
|
|
11728
11596
|
"package": "lit"
|
|
11729
11597
|
},
|
|
11730
11598
|
"localization": [],
|
|
11731
|
-
"status": "
|
|
11599
|
+
"status": "ready",
|
|
11732
11600
|
"category": "form",
|
|
11733
|
-
"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
|
|
11601
|
+
"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",
|
|
11734
11602
|
"examples": [],
|
|
11735
11603
|
"dependencies": [],
|
|
11736
|
-
"tagName": "nord-
|
|
11737
|
-
"customElement": true
|
|
11604
|
+
"tagName": "nord-radio",
|
|
11605
|
+
"customElement": true,
|
|
11606
|
+
"events": [
|
|
11607
|
+
{
|
|
11608
|
+
"name": "input",
|
|
11609
|
+
"type": {
|
|
11610
|
+
"text": "NordEvent"
|
|
11611
|
+
},
|
|
11612
|
+
"description": "Fired as the user types into the input.",
|
|
11613
|
+
"inheritedFrom": {
|
|
11614
|
+
"name": "FormAssociatedMixin",
|
|
11615
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11616
|
+
}
|
|
11617
|
+
},
|
|
11618
|
+
{
|
|
11619
|
+
"name": "change",
|
|
11620
|
+
"type": {
|
|
11621
|
+
"text": "NordEvent"
|
|
11622
|
+
},
|
|
11623
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
11624
|
+
"inheritedFrom": {
|
|
11625
|
+
"name": "FormAssociatedMixin",
|
|
11626
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11627
|
+
}
|
|
11628
|
+
}
|
|
11629
|
+
]
|
|
11738
11630
|
}
|
|
11739
11631
|
],
|
|
11740
11632
|
"exports": [
|
|
@@ -11742,28 +11634,50 @@
|
|
|
11742
11634
|
"kind": "js",
|
|
11743
11635
|
"name": "default",
|
|
11744
11636
|
"declaration": {
|
|
11745
|
-
"name": "
|
|
11746
|
-
"module": "src/
|
|
11637
|
+
"name": "Radio",
|
|
11638
|
+
"module": "src/radio/Radio.ts"
|
|
11747
11639
|
}
|
|
11748
11640
|
},
|
|
11749
11641
|
{
|
|
11750
11642
|
"kind": "custom-element-definition",
|
|
11751
|
-
"name": "nord-
|
|
11643
|
+
"name": "nord-radio",
|
|
11752
11644
|
"declaration": {
|
|
11753
|
-
"name": "
|
|
11754
|
-
"module": "src/
|
|
11645
|
+
"name": "Radio",
|
|
11646
|
+
"module": "src/radio/Radio.ts"
|
|
11755
11647
|
}
|
|
11756
11648
|
}
|
|
11757
11649
|
]
|
|
11758
11650
|
},
|
|
11759
11651
|
{
|
|
11760
11652
|
"kind": "javascript-module",
|
|
11761
|
-
"path": "src/
|
|
11653
|
+
"path": "src/range/Range.ts",
|
|
11762
11654
|
"declarations": [
|
|
11763
11655
|
{
|
|
11764
11656
|
"kind": "class",
|
|
11765
|
-
"description": "
|
|
11766
|
-
"name": "
|
|
11657
|
+
"description": "Range input lets user specify a numeric value using a slider which\nmust be no less than a given value, and no more than another given value.",
|
|
11658
|
+
"name": "Range",
|
|
11659
|
+
"cssProperties": [
|
|
11660
|
+
{
|
|
11661
|
+
"description": "Controls the size of the thumb.",
|
|
11662
|
+
"name": "--n-range-thumb-size",
|
|
11663
|
+
"default": "20px"
|
|
11664
|
+
},
|
|
11665
|
+
{
|
|
11666
|
+
"description": "Controls the color of the portion of the track that represents the current value.",
|
|
11667
|
+
"name": "--n-range-track-color-active",
|
|
11668
|
+
"default": "var(--n-color-accent)"
|
|
11669
|
+
},
|
|
11670
|
+
{
|
|
11671
|
+
"description": "Controls the color of the portion of the track that represents the remaining value.",
|
|
11672
|
+
"name": "--n-range-track-color-inactive",
|
|
11673
|
+
"default": "var(--n-color-border-strong)"
|
|
11674
|
+
},
|
|
11675
|
+
{
|
|
11676
|
+
"description": "Controls the height of the track.",
|
|
11677
|
+
"name": "--n-range-track-size",
|
|
11678
|
+
"default": "3px"
|
|
11679
|
+
}
|
|
11680
|
+
],
|
|
11767
11681
|
"slots": [
|
|
11768
11682
|
{
|
|
11769
11683
|
"description": "Use when a label requires more than plain text.",
|
|
@@ -11781,38 +11695,63 @@
|
|
|
11781
11695
|
"members": [
|
|
11782
11696
|
{
|
|
11783
11697
|
"kind": "field",
|
|
11784
|
-
"name": "
|
|
11698
|
+
"name": "direction",
|
|
11699
|
+
"privacy": "private",
|
|
11700
|
+
"default": "new DirectionController(this)"
|
|
11701
|
+
},
|
|
11702
|
+
{
|
|
11703
|
+
"kind": "field",
|
|
11704
|
+
"name": "min",
|
|
11785
11705
|
"type": {
|
|
11786
|
-
"text": "
|
|
11706
|
+
"text": "number"
|
|
11787
11707
|
},
|
|
11788
|
-
"
|
|
11789
|
-
"
|
|
11790
|
-
"
|
|
11791
|
-
"name": "FormAssociatedMixin",
|
|
11792
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11793
|
-
}
|
|
11708
|
+
"default": "0",
|
|
11709
|
+
"description": "Minimum value for the range slider.",
|
|
11710
|
+
"attribute": "min"
|
|
11794
11711
|
},
|
|
11795
11712
|
{
|
|
11796
11713
|
"kind": "field",
|
|
11797
|
-
"name": "
|
|
11714
|
+
"name": "max",
|
|
11798
11715
|
"type": {
|
|
11799
|
-
"text": "
|
|
11716
|
+
"text": "number"
|
|
11800
11717
|
},
|
|
11801
|
-
"
|
|
11802
|
-
"
|
|
11803
|
-
"
|
|
11804
|
-
"name": "FormAssociatedMixin",
|
|
11805
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11806
|
-
}
|
|
11718
|
+
"default": "10",
|
|
11719
|
+
"description": "Maximum value for the range slider.",
|
|
11720
|
+
"attribute": "max"
|
|
11807
11721
|
},
|
|
11808
11722
|
{
|
|
11809
11723
|
"kind": "field",
|
|
11810
|
-
"name": "
|
|
11724
|
+
"name": "step",
|
|
11811
11725
|
"type": {
|
|
11812
|
-
"text": "
|
|
11726
|
+
"text": "number"
|
|
11727
|
+
},
|
|
11728
|
+
"default": "1",
|
|
11729
|
+
"description": "Step amount for the range slider.",
|
|
11730
|
+
"attribute": "step"
|
|
11731
|
+
},
|
|
11732
|
+
{
|
|
11733
|
+
"kind": "field",
|
|
11734
|
+
"name": "expand",
|
|
11735
|
+
"type": {
|
|
11736
|
+
"text": "boolean"
|
|
11813
11737
|
},
|
|
11738
|
+
"default": "false",
|
|
11739
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
11740
|
+
"attribute": "expand",
|
|
11741
|
+
"reflects": true
|
|
11742
|
+
},
|
|
11743
|
+
{
|
|
11744
|
+
"kind": "method",
|
|
11745
|
+
"name": "handleInput",
|
|
11814
11746
|
"privacy": "protected",
|
|
11815
|
-
"
|
|
11747
|
+
"parameters": [
|
|
11748
|
+
{
|
|
11749
|
+
"name": "e",
|
|
11750
|
+
"type": {
|
|
11751
|
+
"text": "Event"
|
|
11752
|
+
}
|
|
11753
|
+
}
|
|
11754
|
+
],
|
|
11816
11755
|
"inheritedFrom": {
|
|
11817
11756
|
"name": "FormAssociatedMixin",
|
|
11818
11757
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11820,10 +11759,9 @@
|
|
|
11820
11759
|
},
|
|
11821
11760
|
{
|
|
11822
11761
|
"kind": "field",
|
|
11823
|
-
"name": "
|
|
11762
|
+
"name": "labelSlot",
|
|
11824
11763
|
"privacy": "protected",
|
|
11825
|
-
"default": "new
|
|
11826
|
-
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
11764
|
+
"default": "new SlotController(this, \"label\")",
|
|
11827
11765
|
"inheritedFrom": {
|
|
11828
11766
|
"name": "FormAssociatedMixin",
|
|
11829
11767
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11831,9 +11769,9 @@
|
|
|
11831
11769
|
},
|
|
11832
11770
|
{
|
|
11833
11771
|
"kind": "field",
|
|
11834
|
-
"name": "
|
|
11772
|
+
"name": "errorSlot",
|
|
11835
11773
|
"privacy": "protected",
|
|
11836
|
-
"default": "new
|
|
11774
|
+
"default": "new SlotController(this, \"error\")",
|
|
11837
11775
|
"inheritedFrom": {
|
|
11838
11776
|
"name": "FormAssociatedMixin",
|
|
11839
11777
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11841,9 +11779,9 @@
|
|
|
11841
11779
|
},
|
|
11842
11780
|
{
|
|
11843
11781
|
"kind": "field",
|
|
11844
|
-
"name": "
|
|
11782
|
+
"name": "hintSlot",
|
|
11845
11783
|
"privacy": "protected",
|
|
11846
|
-
"default": "new
|
|
11784
|
+
"default": "new SlotController(this, \"hint\")",
|
|
11847
11785
|
"inheritedFrom": {
|
|
11848
11786
|
"name": "FormAssociatedMixin",
|
|
11849
11787
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11851,9 +11789,13 @@
|
|
|
11851
11789
|
},
|
|
11852
11790
|
{
|
|
11853
11791
|
"kind": "field",
|
|
11854
|
-
"name": "
|
|
11792
|
+
"name": "formData",
|
|
11855
11793
|
"privacy": "protected",
|
|
11856
|
-
"default": "new
|
|
11794
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
11795
|
+
"inheritedFrom": {
|
|
11796
|
+
"name": "FormAssociatedMixin",
|
|
11797
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11798
|
+
}
|
|
11857
11799
|
},
|
|
11858
11800
|
{
|
|
11859
11801
|
"kind": "field",
|
|
@@ -11867,50 +11809,12 @@
|
|
|
11867
11809
|
},
|
|
11868
11810
|
{
|
|
11869
11811
|
"kind": "field",
|
|
11870
|
-
"name": "
|
|
11812
|
+
"name": "inputId",
|
|
11871
11813
|
"type": {
|
|
11872
|
-
"text": "
|
|
11814
|
+
"text": "string"
|
|
11873
11815
|
},
|
|
11874
|
-
"default": "false",
|
|
11875
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
11876
|
-
"attribute": "checked",
|
|
11877
|
-
"reflects": true
|
|
11878
|
-
},
|
|
11879
|
-
{
|
|
11880
|
-
"kind": "method",
|
|
11881
|
-
"name": "handleCheckedChange",
|
|
11882
11816
|
"privacy": "protected",
|
|
11883
|
-
"
|
|
11884
|
-
{
|
|
11885
|
-
"name": "previousChecked",
|
|
11886
|
-
"type": {
|
|
11887
|
-
"text": "boolean"
|
|
11888
|
-
}
|
|
11889
|
-
}
|
|
11890
|
-
]
|
|
11891
|
-
},
|
|
11892
|
-
{
|
|
11893
|
-
"kind": "method",
|
|
11894
|
-
"name": "uncheckSiblings",
|
|
11895
|
-
"privacy": "private"
|
|
11896
|
-
},
|
|
11897
|
-
{
|
|
11898
|
-
"kind": "method",
|
|
11899
|
-
"name": "handleChange",
|
|
11900
|
-
"privacy": "protected",
|
|
11901
|
-
"parameters": [
|
|
11902
|
-
{
|
|
11903
|
-
"name": "e",
|
|
11904
|
-
"type": {
|
|
11905
|
-
"text": "Event"
|
|
11906
|
-
}
|
|
11907
|
-
}
|
|
11908
|
-
],
|
|
11909
|
-
"return": {
|
|
11910
|
-
"type": {
|
|
11911
|
-
"text": "void"
|
|
11912
|
-
}
|
|
11913
|
-
},
|
|
11817
|
+
"default": "\"input\"",
|
|
11914
11818
|
"inheritedFrom": {
|
|
11915
11819
|
"name": "FormAssociatedMixin",
|
|
11916
11820
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11918,19 +11822,25 @@
|
|
|
11918
11822
|
},
|
|
11919
11823
|
{
|
|
11920
11824
|
"kind": "field",
|
|
11921
|
-
"name": "
|
|
11922
|
-
"
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
"
|
|
11926
|
-
"
|
|
11927
|
-
"
|
|
11825
|
+
"name": "errorId",
|
|
11826
|
+
"type": {
|
|
11827
|
+
"text": "string"
|
|
11828
|
+
},
|
|
11829
|
+
"privacy": "protected",
|
|
11830
|
+
"default": "\"error\"",
|
|
11831
|
+
"inheritedFrom": {
|
|
11832
|
+
"name": "FormAssociatedMixin",
|
|
11833
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11834
|
+
}
|
|
11928
11835
|
},
|
|
11929
11836
|
{
|
|
11930
11837
|
"kind": "field",
|
|
11931
|
-
"name": "
|
|
11838
|
+
"name": "hintId",
|
|
11839
|
+
"type": {
|
|
11840
|
+
"text": "string"
|
|
11841
|
+
},
|
|
11932
11842
|
"privacy": "protected",
|
|
11933
|
-
"default": "
|
|
11843
|
+
"default": "\"hint\"",
|
|
11934
11844
|
"inheritedFrom": {
|
|
11935
11845
|
"name": "FormAssociatedMixin",
|
|
11936
11846
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -12033,7 +11943,7 @@
|
|
|
12033
11943
|
},
|
|
12034
11944
|
{
|
|
12035
11945
|
"kind": "method",
|
|
12036
|
-
"name": "
|
|
11946
|
+
"name": "handleChange",
|
|
12037
11947
|
"privacy": "protected",
|
|
12038
11948
|
"parameters": [
|
|
12039
11949
|
{
|
|
@@ -12113,6 +12023,35 @@
|
|
|
12113
12023
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12114
12024
|
}
|
|
12115
12025
|
},
|
|
12026
|
+
{
|
|
12027
|
+
"kind": "field",
|
|
12028
|
+
"name": "autocomplete",
|
|
12029
|
+
"type": {
|
|
12030
|
+
"text": "AutocompleteAttribute"
|
|
12031
|
+
},
|
|
12032
|
+
"default": "\"off\"",
|
|
12033
|
+
"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.",
|
|
12034
|
+
"attribute": "autocomplete",
|
|
12035
|
+
"inheritedFrom": {
|
|
12036
|
+
"name": "AutocompleteMixin",
|
|
12037
|
+
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
12038
|
+
}
|
|
12039
|
+
},
|
|
12040
|
+
{
|
|
12041
|
+
"kind": "field",
|
|
12042
|
+
"name": "readonly",
|
|
12043
|
+
"type": {
|
|
12044
|
+
"text": "boolean"
|
|
12045
|
+
},
|
|
12046
|
+
"default": "false",
|
|
12047
|
+
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
12048
|
+
"attribute": "readonly",
|
|
12049
|
+
"reflects": true,
|
|
12050
|
+
"inheritedFrom": {
|
|
12051
|
+
"name": "ReadonlyMixin",
|
|
12052
|
+
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
12053
|
+
}
|
|
12054
|
+
},
|
|
12116
12055
|
{
|
|
12117
12056
|
"kind": "field",
|
|
12118
12057
|
"name": "disabled",
|
|
@@ -12240,15 +12179,66 @@
|
|
|
12240
12179
|
}
|
|
12241
12180
|
}
|
|
12242
12181
|
],
|
|
12182
|
+
"events": [
|
|
12183
|
+
{
|
|
12184
|
+
"name": "input",
|
|
12185
|
+
"type": {
|
|
12186
|
+
"text": "NordEvent"
|
|
12187
|
+
},
|
|
12188
|
+
"description": "Fired as the user types into the input.",
|
|
12189
|
+
"inheritedFrom": {
|
|
12190
|
+
"name": "FormAssociatedMixin",
|
|
12191
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12192
|
+
}
|
|
12193
|
+
},
|
|
12194
|
+
{
|
|
12195
|
+
"name": "change",
|
|
12196
|
+
"type": {
|
|
12197
|
+
"text": "NordEvent"
|
|
12198
|
+
},
|
|
12199
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
12200
|
+
"inheritedFrom": {
|
|
12201
|
+
"name": "FormAssociatedMixin",
|
|
12202
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12203
|
+
}
|
|
12204
|
+
}
|
|
12205
|
+
],
|
|
12243
12206
|
"attributes": [
|
|
12244
12207
|
{
|
|
12245
|
-
"name": "
|
|
12208
|
+
"name": "min",
|
|
12209
|
+
"type": {
|
|
12210
|
+
"text": "number"
|
|
12211
|
+
},
|
|
12212
|
+
"default": "0",
|
|
12213
|
+
"description": "Minimum value for the range slider.",
|
|
12214
|
+
"fieldName": "min"
|
|
12215
|
+
},
|
|
12216
|
+
{
|
|
12217
|
+
"name": "max",
|
|
12218
|
+
"type": {
|
|
12219
|
+
"text": "number"
|
|
12220
|
+
},
|
|
12221
|
+
"default": "10",
|
|
12222
|
+
"description": "Maximum value for the range slider.",
|
|
12223
|
+
"fieldName": "max"
|
|
12224
|
+
},
|
|
12225
|
+
{
|
|
12226
|
+
"name": "step",
|
|
12227
|
+
"type": {
|
|
12228
|
+
"text": "number"
|
|
12229
|
+
},
|
|
12230
|
+
"default": "1",
|
|
12231
|
+
"description": "Step amount for the range slider.",
|
|
12232
|
+
"fieldName": "step"
|
|
12233
|
+
},
|
|
12234
|
+
{
|
|
12235
|
+
"name": "expand",
|
|
12246
12236
|
"type": {
|
|
12247
12237
|
"text": "boolean"
|
|
12248
12238
|
},
|
|
12249
12239
|
"default": "false",
|
|
12250
|
-
"description": "Controls whether the
|
|
12251
|
-
"fieldName": "
|
|
12240
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
12241
|
+
"fieldName": "expand"
|
|
12252
12242
|
},
|
|
12253
12243
|
{
|
|
12254
12244
|
"name": "label",
|
|
@@ -12338,6 +12328,32 @@
|
|
|
12338
12328
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12339
12329
|
}
|
|
12340
12330
|
},
|
|
12331
|
+
{
|
|
12332
|
+
"name": "autocomplete",
|
|
12333
|
+
"type": {
|
|
12334
|
+
"text": "AutocompleteAttribute"
|
|
12335
|
+
},
|
|
12336
|
+
"default": "\"off\"",
|
|
12337
|
+
"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.",
|
|
12338
|
+
"fieldName": "autocomplete",
|
|
12339
|
+
"inheritedFrom": {
|
|
12340
|
+
"name": "AutocompleteMixin",
|
|
12341
|
+
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
12342
|
+
}
|
|
12343
|
+
},
|
|
12344
|
+
{
|
|
12345
|
+
"name": "readonly",
|
|
12346
|
+
"type": {
|
|
12347
|
+
"text": "boolean"
|
|
12348
|
+
},
|
|
12349
|
+
"default": "false",
|
|
12350
|
+
"description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
|
|
12351
|
+
"fieldName": "readonly",
|
|
12352
|
+
"inheritedFrom": {
|
|
12353
|
+
"name": "ReadonlyMixin",
|
|
12354
|
+
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
12355
|
+
}
|
|
12356
|
+
},
|
|
12341
12357
|
{
|
|
12342
12358
|
"name": "disabled",
|
|
12343
12359
|
"type": {
|
|
@@ -12395,50 +12411,34 @@
|
|
|
12395
12411
|
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
12396
12412
|
},
|
|
12397
12413
|
{
|
|
12398
|
-
"name": "
|
|
12399
|
-
"module": "/src/common/mixins/
|
|
12400
|
-
},
|
|
12401
|
-
{
|
|
12402
|
-
"name": "FocusableMixin",
|
|
12403
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
12404
|
-
}
|
|
12405
|
-
],
|
|
12406
|
-
"superclass": {
|
|
12407
|
-
"name": "LitElement",
|
|
12408
|
-
"package": "lit"
|
|
12409
|
-
},
|
|
12410
|
-
"localization": [],
|
|
12411
|
-
"status": "ready",
|
|
12412
|
-
"category": "form",
|
|
12413
|
-
"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",
|
|
12414
|
-
"examples": [],
|
|
12415
|
-
"dependencies": [],
|
|
12416
|
-
"tagName": "nord-radio",
|
|
12417
|
-
"customElement": true,
|
|
12418
|
-
"events": [
|
|
12419
|
-
{
|
|
12420
|
-
"name": "input",
|
|
12421
|
-
"type": {
|
|
12422
|
-
"text": "NordEvent"
|
|
12423
|
-
},
|
|
12424
|
-
"description": "Fired as the user types into the input.",
|
|
12425
|
-
"inheritedFrom": {
|
|
12426
|
-
"name": "FormAssociatedMixin",
|
|
12427
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12428
|
-
}
|
|
12414
|
+
"name": "AutocompleteMixin",
|
|
12415
|
+
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
12429
12416
|
},
|
|
12430
12417
|
{
|
|
12431
|
-
"name": "
|
|
12432
|
-
"
|
|
12433
|
-
|
|
12434
|
-
|
|
12435
|
-
"
|
|
12436
|
-
"
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12418
|
+
"name": "ReadonlyMixin",
|
|
12419
|
+
"module": "/src/common/mixins/ReadonlyMixin.js"
|
|
12420
|
+
},
|
|
12421
|
+
{
|
|
12422
|
+
"name": "InputMixin",
|
|
12423
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
12424
|
+
},
|
|
12425
|
+
{
|
|
12426
|
+
"name": "FocusableMixin",
|
|
12427
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
12440
12428
|
}
|
|
12441
|
-
]
|
|
12429
|
+
],
|
|
12430
|
+
"superclass": {
|
|
12431
|
+
"name": "LitElement",
|
|
12432
|
+
"package": "lit"
|
|
12433
|
+
},
|
|
12434
|
+
"localization": [],
|
|
12435
|
+
"status": "new",
|
|
12436
|
+
"category": "form",
|
|
12437
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to let user specify a numeric value using a slider.\n- Use when the accuracy of the numeric value entered isn’t important.\n- Always use with a label, even if that label is hidden.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when the accuracy of the numeric value entered is important.\n- For entering arbitrary numeric values. Use [input component](/components/input/) instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nRange labels act as a title for the range input. Labels should typically be short and in noun form:\n\n<div class=\"n-usage n-usage-do\">Lightness percentage</div>\n<div class=\"n-usage n-usage-dont\">What is the lightness percentage?</div>\n\nWhen writing range labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Item price</div>\n<div class=\"n-usage n-usage-dont\">Item Price</div>\n\nDo not use colons in range label:\n\n<div class=\"n-usage n-usage-do\">Color depth</div>\n<div class=\"n-usage n-usage-dont\">Color depth:</div>\n",
|
|
12438
|
+
"examples": [],
|
|
12439
|
+
"dependencies": [],
|
|
12440
|
+
"tagName": "nord-range",
|
|
12441
|
+
"customElement": true
|
|
12442
12442
|
}
|
|
12443
12443
|
],
|
|
12444
12444
|
"exports": [
|
|
@@ -12446,16 +12446,16 @@
|
|
|
12446
12446
|
"kind": "js",
|
|
12447
12447
|
"name": "default",
|
|
12448
12448
|
"declaration": {
|
|
12449
|
-
"name": "
|
|
12450
|
-
"module": "src/
|
|
12449
|
+
"name": "Range",
|
|
12450
|
+
"module": "src/range/Range.ts"
|
|
12451
12451
|
}
|
|
12452
12452
|
},
|
|
12453
12453
|
{
|
|
12454
12454
|
"kind": "custom-element-definition",
|
|
12455
|
-
"name": "nord-
|
|
12455
|
+
"name": "nord-range",
|
|
12456
12456
|
"declaration": {
|
|
12457
|
-
"name": "
|
|
12458
|
-
"module": "src/
|
|
12457
|
+
"name": "Range",
|
|
12458
|
+
"module": "src/range/Range.ts"
|
|
12459
12459
|
}
|
|
12460
12460
|
}
|
|
12461
12461
|
]
|
|
@@ -13328,6 +13328,114 @@
|
|
|
13328
13328
|
}
|
|
13329
13329
|
]
|
|
13330
13330
|
},
|
|
13331
|
+
{
|
|
13332
|
+
"kind": "javascript-module",
|
|
13333
|
+
"path": "src/spinner/Spinner.ts",
|
|
13334
|
+
"declarations": [
|
|
13335
|
+
{
|
|
13336
|
+
"kind": "class",
|
|
13337
|
+
"description": "Spinner component is used to indicate users that their action is being\nprocessed. You can customize the size and color of the spinner with the\nprovided properties.",
|
|
13338
|
+
"name": "Spinner",
|
|
13339
|
+
"cssProperties": [
|
|
13340
|
+
{
|
|
13341
|
+
"description": "Controls the color the spinner.",
|
|
13342
|
+
"name": "--n-spinner-color",
|
|
13343
|
+
"default": "var(--n-color-accent)"
|
|
13344
|
+
}
|
|
13345
|
+
],
|
|
13346
|
+
"members": [
|
|
13347
|
+
{
|
|
13348
|
+
"kind": "field",
|
|
13349
|
+
"name": "size",
|
|
13350
|
+
"type": {
|
|
13351
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13352
|
+
},
|
|
13353
|
+
"default": "\"m\"",
|
|
13354
|
+
"description": "The size of the spinner.",
|
|
13355
|
+
"attribute": "size",
|
|
13356
|
+
"reflects": true
|
|
13357
|
+
},
|
|
13358
|
+
{
|
|
13359
|
+
"kind": "field",
|
|
13360
|
+
"name": "color",
|
|
13361
|
+
"type": {
|
|
13362
|
+
"text": "string | undefined"
|
|
13363
|
+
},
|
|
13364
|
+
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.\nTakes precedence over the `--n-spinner-color` CSS custom property.",
|
|
13365
|
+
"attribute": "color",
|
|
13366
|
+
"reflects": true
|
|
13367
|
+
},
|
|
13368
|
+
{
|
|
13369
|
+
"kind": "field",
|
|
13370
|
+
"name": "label",
|
|
13371
|
+
"type": {
|
|
13372
|
+
"text": "string | undefined"
|
|
13373
|
+
},
|
|
13374
|
+
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
13375
|
+
"attribute": "label",
|
|
13376
|
+
"reflects": true
|
|
13377
|
+
}
|
|
13378
|
+
],
|
|
13379
|
+
"attributes": [
|
|
13380
|
+
{
|
|
13381
|
+
"name": "size",
|
|
13382
|
+
"type": {
|
|
13383
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13384
|
+
},
|
|
13385
|
+
"default": "\"m\"",
|
|
13386
|
+
"description": "The size of the spinner.",
|
|
13387
|
+
"fieldName": "size"
|
|
13388
|
+
},
|
|
13389
|
+
{
|
|
13390
|
+
"name": "color",
|
|
13391
|
+
"type": {
|
|
13392
|
+
"text": "string | undefined"
|
|
13393
|
+
},
|
|
13394
|
+
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.\nTakes precedence over the `--n-spinner-color` CSS custom property.",
|
|
13395
|
+
"fieldName": "color"
|
|
13396
|
+
},
|
|
13397
|
+
{
|
|
13398
|
+
"name": "label",
|
|
13399
|
+
"type": {
|
|
13400
|
+
"text": "string | undefined"
|
|
13401
|
+
},
|
|
13402
|
+
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
13403
|
+
"fieldName": "label"
|
|
13404
|
+
}
|
|
13405
|
+
],
|
|
13406
|
+
"superclass": {
|
|
13407
|
+
"name": "LitElement",
|
|
13408
|
+
"package": "lit"
|
|
13409
|
+
},
|
|
13410
|
+
"localization": [],
|
|
13411
|
+
"status": "ready",
|
|
13412
|
+
"category": "feedback",
|
|
13413
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for indicating users that their action is being processed.\n- Use the label property to provide an accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to show progress. Favor a progress bar instead.\n\n</div>\n",
|
|
13414
|
+
"examples": [],
|
|
13415
|
+
"dependencies": [],
|
|
13416
|
+
"tagName": "nord-spinner",
|
|
13417
|
+
"customElement": true
|
|
13418
|
+
}
|
|
13419
|
+
],
|
|
13420
|
+
"exports": [
|
|
13421
|
+
{
|
|
13422
|
+
"kind": "js",
|
|
13423
|
+
"name": "default",
|
|
13424
|
+
"declaration": {
|
|
13425
|
+
"name": "Spinner",
|
|
13426
|
+
"module": "src/spinner/Spinner.ts"
|
|
13427
|
+
}
|
|
13428
|
+
},
|
|
13429
|
+
{
|
|
13430
|
+
"kind": "custom-element-definition",
|
|
13431
|
+
"name": "nord-spinner",
|
|
13432
|
+
"declaration": {
|
|
13433
|
+
"name": "Spinner",
|
|
13434
|
+
"module": "src/spinner/Spinner.ts"
|
|
13435
|
+
}
|
|
13436
|
+
}
|
|
13437
|
+
]
|
|
13438
|
+
},
|
|
13331
13439
|
{
|
|
13332
13440
|
"kind": "javascript-module",
|
|
13333
13441
|
"path": "src/stack/Stack.ts",
|
|
@@ -13579,114 +13687,6 @@
|
|
|
13579
13687
|
}
|
|
13580
13688
|
]
|
|
13581
13689
|
},
|
|
13582
|
-
{
|
|
13583
|
-
"kind": "javascript-module",
|
|
13584
|
-
"path": "src/spinner/Spinner.ts",
|
|
13585
|
-
"declarations": [
|
|
13586
|
-
{
|
|
13587
|
-
"kind": "class",
|
|
13588
|
-
"description": "Spinner component is used to indicate users that their action is being\nprocessed. You can customize the size and color of the spinner with the\nprovided properties.",
|
|
13589
|
-
"name": "Spinner",
|
|
13590
|
-
"cssProperties": [
|
|
13591
|
-
{
|
|
13592
|
-
"description": "Controls the color the spinner.",
|
|
13593
|
-
"name": "--n-spinner-color",
|
|
13594
|
-
"default": "var(--n-color-accent)"
|
|
13595
|
-
}
|
|
13596
|
-
],
|
|
13597
|
-
"members": [
|
|
13598
|
-
{
|
|
13599
|
-
"kind": "field",
|
|
13600
|
-
"name": "size",
|
|
13601
|
-
"type": {
|
|
13602
|
-
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13603
|
-
},
|
|
13604
|
-
"default": "\"m\"",
|
|
13605
|
-
"description": "The size of the spinner.",
|
|
13606
|
-
"attribute": "size",
|
|
13607
|
-
"reflects": true
|
|
13608
|
-
},
|
|
13609
|
-
{
|
|
13610
|
-
"kind": "field",
|
|
13611
|
-
"name": "color",
|
|
13612
|
-
"type": {
|
|
13613
|
-
"text": "string | undefined"
|
|
13614
|
-
},
|
|
13615
|
-
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.\nTakes precedence over the `--n-spinner-color` CSS custom property.",
|
|
13616
|
-
"attribute": "color",
|
|
13617
|
-
"reflects": true
|
|
13618
|
-
},
|
|
13619
|
-
{
|
|
13620
|
-
"kind": "field",
|
|
13621
|
-
"name": "label",
|
|
13622
|
-
"type": {
|
|
13623
|
-
"text": "string | undefined"
|
|
13624
|
-
},
|
|
13625
|
-
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
13626
|
-
"attribute": "label",
|
|
13627
|
-
"reflects": true
|
|
13628
|
-
}
|
|
13629
|
-
],
|
|
13630
|
-
"attributes": [
|
|
13631
|
-
{
|
|
13632
|
-
"name": "size",
|
|
13633
|
-
"type": {
|
|
13634
|
-
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13635
|
-
},
|
|
13636
|
-
"default": "\"m\"",
|
|
13637
|
-
"description": "The size of the spinner.",
|
|
13638
|
-
"fieldName": "size"
|
|
13639
|
-
},
|
|
13640
|
-
{
|
|
13641
|
-
"name": "color",
|
|
13642
|
-
"type": {
|
|
13643
|
-
"text": "string | undefined"
|
|
13644
|
-
},
|
|
13645
|
-
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.\nTakes precedence over the `--n-spinner-color` CSS custom property.",
|
|
13646
|
-
"fieldName": "color"
|
|
13647
|
-
},
|
|
13648
|
-
{
|
|
13649
|
-
"name": "label",
|
|
13650
|
-
"type": {
|
|
13651
|
-
"text": "string | undefined"
|
|
13652
|
-
},
|
|
13653
|
-
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
13654
|
-
"fieldName": "label"
|
|
13655
|
-
}
|
|
13656
|
-
],
|
|
13657
|
-
"superclass": {
|
|
13658
|
-
"name": "LitElement",
|
|
13659
|
-
"package": "lit"
|
|
13660
|
-
},
|
|
13661
|
-
"localization": [],
|
|
13662
|
-
"status": "ready",
|
|
13663
|
-
"category": "feedback",
|
|
13664
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for indicating users that their action is being processed.\n- Use the label property to provide an accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to show progress. Favor a progress bar instead.\n\n</div>\n",
|
|
13665
|
-
"examples": [],
|
|
13666
|
-
"dependencies": [],
|
|
13667
|
-
"tagName": "nord-spinner",
|
|
13668
|
-
"customElement": true
|
|
13669
|
-
}
|
|
13670
|
-
],
|
|
13671
|
-
"exports": [
|
|
13672
|
-
{
|
|
13673
|
-
"kind": "js",
|
|
13674
|
-
"name": "default",
|
|
13675
|
-
"declaration": {
|
|
13676
|
-
"name": "Spinner",
|
|
13677
|
-
"module": "src/spinner/Spinner.ts"
|
|
13678
|
-
}
|
|
13679
|
-
},
|
|
13680
|
-
{
|
|
13681
|
-
"kind": "custom-element-definition",
|
|
13682
|
-
"name": "nord-spinner",
|
|
13683
|
-
"declaration": {
|
|
13684
|
-
"name": "Spinner",
|
|
13685
|
-
"module": "src/spinner/Spinner.ts"
|
|
13686
|
-
}
|
|
13687
|
-
}
|
|
13688
|
-
]
|
|
13689
|
-
},
|
|
13690
13690
|
{
|
|
13691
13691
|
"kind": "javascript-module",
|
|
13692
13692
|
"path": "src/tab-group/TabGroup.ts",
|
|
@@ -16991,10 +16991,6 @@
|
|
|
16991
16991
|
{
|
|
16992
16992
|
"kind": "method",
|
|
16993
16993
|
"name": "hostUpdated"
|
|
16994
|
-
},
|
|
16995
|
-
{
|
|
16996
|
-
"kind": "method",
|
|
16997
|
-
"name": "hostDisconnected"
|
|
16998
16994
|
}
|
|
16999
16995
|
]
|
|
17000
16996
|
}
|
|
@@ -17044,10 +17040,6 @@
|
|
|
17044
17040
|
"module": "src/common/controllers/SlotController.ts"
|
|
17045
17041
|
}
|
|
17046
17042
|
},
|
|
17047
|
-
{
|
|
17048
|
-
"kind": "method",
|
|
17049
|
-
"name": "hostDisconnected"
|
|
17050
|
-
},
|
|
17051
17043
|
{
|
|
17052
17044
|
"kind": "field",
|
|
17053
17045
|
"name": "onChange",
|