@nordhealth/components 3.4.1 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +850 -834
- package/lib/{Calendar-3fd55b5d.js → Calendar-b19b4bf6.js} +1 -1
- package/lib/{Calendar-3fd55b5d.js.map → Calendar-b19b4bf6.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/IconManager.js +1 -1
- package/lib/Layout.js +1 -1
- package/lib/Layout.js.map +1 -1
- package/lib/{NavToggle-fbd227e5.js → NavToggle-0e6c6458.js} +1 -1
- package/lib/{NavToggle-fbd227e5.js.map → NavToggle-0e6c6458.js.map} +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/Navigation.js.map +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Spinner.js.map +1 -1
- package/lib/bundle.js +11 -11
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/src/navigation/Navigation.d.ts +1 -0
- package/lib/src/spinner/Spinner.d.ts +2 -0
- package/package.json +4 -4
package/custom-elements.json
CHANGED
|
@@ -435,161 +435,82 @@
|
|
|
435
435
|
},
|
|
436
436
|
{
|
|
437
437
|
"kind": "javascript-module",
|
|
438
|
-
"path": "src/
|
|
438
|
+
"path": "src/badge/Badge.ts",
|
|
439
439
|
"declarations": [
|
|
440
440
|
{
|
|
441
441
|
"kind": "class",
|
|
442
|
-
"description": "
|
|
443
|
-
"name": "
|
|
444
|
-
"
|
|
445
|
-
{
|
|
446
|
-
"description": "Controls the color of the avatar fallback, using [color tokens](/tokens/#color).",
|
|
447
|
-
"name": "--n-avatar-color",
|
|
448
|
-
"default": "var(--n-color-status-highlight)"
|
|
449
|
-
},
|
|
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": [
|
|
450
445
|
{
|
|
451
|
-
"description": "
|
|
452
|
-
"name": "
|
|
453
|
-
"default": "var(--n-size-icon-l)"
|
|
446
|
+
"description": "The badge content.",
|
|
447
|
+
"name": ""
|
|
454
448
|
},
|
|
455
449
|
{
|
|
456
|
-
"description": "
|
|
457
|
-
"name": "
|
|
458
|
-
"default": "none"
|
|
450
|
+
"description": "Used to place an icon at the start of badge.",
|
|
451
|
+
"name": "icon"
|
|
459
452
|
}
|
|
460
453
|
],
|
|
461
454
|
"members": [
|
|
462
455
|
{
|
|
463
456
|
"kind": "field",
|
|
464
|
-
"name": "
|
|
465
|
-
"type": {
|
|
466
|
-
"text": "States<typeof transition>"
|
|
467
|
-
},
|
|
468
|
-
"privacy": "private",
|
|
469
|
-
"default": "\"initial\""
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
"kind": "field",
|
|
473
|
-
"name": "size",
|
|
457
|
+
"name": "type",
|
|
474
458
|
"type": {
|
|
475
|
-
"text": "\"
|
|
459
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
476
460
|
},
|
|
477
|
-
"
|
|
478
|
-
"
|
|
479
|
-
"attribute": "
|
|
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",
|
|
480
464
|
"reflects": true
|
|
481
465
|
},
|
|
482
466
|
{
|
|
483
467
|
"kind": "field",
|
|
484
|
-
"name": "
|
|
468
|
+
"name": "variant",
|
|
485
469
|
"type": {
|
|
486
|
-
"text": "
|
|
470
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
487
471
|
},
|
|
488
|
-
"description": "The
|
|
489
|
-
"attribute": "
|
|
472
|
+
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
473
|
+
"attribute": "variant",
|
|
490
474
|
"reflects": true
|
|
491
475
|
},
|
|
492
476
|
{
|
|
493
477
|
"kind": "field",
|
|
494
|
-
"name": "
|
|
495
|
-
"type": {
|
|
496
|
-
"text": "string"
|
|
497
|
-
},
|
|
498
|
-
"default": "\"\"",
|
|
499
|
-
"description": "The name of the person or entity.",
|
|
500
|
-
"attribute": "name"
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
"kind": "field",
|
|
504
|
-
"name": "icon",
|
|
505
|
-
"type": {
|
|
506
|
-
"text": "string"
|
|
507
|
-
},
|
|
508
|
-
"default": "\"\"",
|
|
509
|
-
"description": "The fallback icon.",
|
|
510
|
-
"attribute": "icon"
|
|
511
|
-
},
|
|
512
|
-
{
|
|
513
|
-
"kind": "field",
|
|
514
|
-
"name": "variant",
|
|
478
|
+
"name": "strong",
|
|
515
479
|
"type": {
|
|
516
|
-
"text": "
|
|
480
|
+
"text": "boolean"
|
|
517
481
|
},
|
|
518
|
-
"default": "
|
|
519
|
-
"description": "
|
|
520
|
-
"attribute": "
|
|
482
|
+
"default": "false",
|
|
483
|
+
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
484
|
+
"attribute": "strong",
|
|
521
485
|
"reflects": true
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
"kind": "method",
|
|
525
|
-
"name": "handleSrcChange",
|
|
526
|
-
"privacy": "protected"
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
"kind": "method",
|
|
530
|
-
"name": "renderImage",
|
|
531
|
-
"privacy": "protected"
|
|
532
|
-
},
|
|
533
|
-
{
|
|
534
|
-
"kind": "method",
|
|
535
|
-
"name": "renderFallback",
|
|
536
|
-
"privacy": "protected"
|
|
537
|
-
},
|
|
538
|
-
{
|
|
539
|
-
"kind": "method",
|
|
540
|
-
"name": "handleLoad",
|
|
541
|
-
"privacy": "private"
|
|
542
|
-
},
|
|
543
|
-
{
|
|
544
|
-
"kind": "method",
|
|
545
|
-
"name": "handleError",
|
|
546
|
-
"privacy": "private"
|
|
547
486
|
}
|
|
548
487
|
],
|
|
549
488
|
"attributes": [
|
|
550
489
|
{
|
|
551
|
-
"name": "
|
|
552
|
-
"type": {
|
|
553
|
-
"text": "\"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\" | \"xxxl\""
|
|
554
|
-
},
|
|
555
|
-
"default": "\"m\"",
|
|
556
|
-
"description": "The size of the avatar.",
|
|
557
|
-
"fieldName": "size"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"name": "src",
|
|
561
|
-
"type": {
|
|
562
|
-
"text": "string | undefined"
|
|
563
|
-
},
|
|
564
|
-
"description": "The URL of the avatar image uploaded by the user.",
|
|
565
|
-
"fieldName": "src"
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
"name": "name",
|
|
490
|
+
"name": "type",
|
|
569
491
|
"type": {
|
|
570
|
-
"text": "
|
|
492
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
571
493
|
},
|
|
572
|
-
"
|
|
573
|
-
"
|
|
574
|
-
"fieldName": "
|
|
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"
|
|
575
497
|
},
|
|
576
498
|
{
|
|
577
|
-
"name": "
|
|
499
|
+
"name": "variant",
|
|
578
500
|
"type": {
|
|
579
|
-
"text": "
|
|
501
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"neutral\" | \"info\" | undefined"
|
|
580
502
|
},
|
|
581
|
-
"
|
|
582
|
-
"
|
|
583
|
-
"fieldName": "icon"
|
|
503
|
+
"description": "The style variant of the badge.\nDetermines the background color of the badge.",
|
|
504
|
+
"fieldName": "variant"
|
|
584
505
|
},
|
|
585
506
|
{
|
|
586
|
-
"name": "
|
|
507
|
+
"name": "strong",
|
|
587
508
|
"type": {
|
|
588
|
-
"text": "
|
|
509
|
+
"text": "boolean"
|
|
589
510
|
},
|
|
590
|
-
"default": "
|
|
591
|
-
"description": "
|
|
592
|
-
"fieldName": "
|
|
511
|
+
"default": "false",
|
|
512
|
+
"description": "Strong badges are a secondary style for badges.\nThey provide more visual prominence and emphasize them.",
|
|
513
|
+
"fieldName": "strong"
|
|
593
514
|
}
|
|
594
515
|
],
|
|
595
516
|
"superclass": {
|
|
@@ -598,14 +519,11 @@
|
|
|
598
519
|
},
|
|
599
520
|
"localization": [],
|
|
600
521
|
"status": "ready",
|
|
601
|
-
"category": "
|
|
602
|
-
"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-
|
|
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",
|
|
603
524
|
"examples": [],
|
|
604
|
-
"dependencies": [
|
|
605
|
-
|
|
606
|
-
"icon"
|
|
607
|
-
],
|
|
608
|
-
"tagName": "nord-avatar",
|
|
525
|
+
"dependencies": [],
|
|
526
|
+
"tagName": "nord-badge",
|
|
609
527
|
"customElement": true
|
|
610
528
|
}
|
|
611
529
|
],
|
|
@@ -614,16 +532,16 @@
|
|
|
614
532
|
"kind": "js",
|
|
615
533
|
"name": "default",
|
|
616
534
|
"declaration": {
|
|
617
|
-
"name": "
|
|
618
|
-
"module": "src/
|
|
535
|
+
"name": "Badge",
|
|
536
|
+
"module": "src/badge/Badge.ts"
|
|
619
537
|
}
|
|
620
538
|
},
|
|
621
539
|
{
|
|
622
540
|
"kind": "custom-element-definition",
|
|
623
|
-
"name": "nord-
|
|
541
|
+
"name": "nord-badge",
|
|
624
542
|
"declaration": {
|
|
625
|
-
"name": "
|
|
626
|
-
"module": "src/
|
|
543
|
+
"name": "Badge",
|
|
544
|
+
"module": "src/badge/Badge.ts"
|
|
627
545
|
}
|
|
628
546
|
}
|
|
629
547
|
]
|
|
@@ -715,82 +633,161 @@
|
|
|
715
633
|
},
|
|
716
634
|
{
|
|
717
635
|
"kind": "javascript-module",
|
|
718
|
-
"path": "src/
|
|
636
|
+
"path": "src/avatar/Avatar.ts",
|
|
719
637
|
"declarations": [
|
|
720
638
|
{
|
|
721
639
|
"kind": "class",
|
|
722
|
-
"description": "
|
|
723
|
-
"name": "
|
|
724
|
-
"
|
|
640
|
+
"description": "Avatar is used for showing a thumbnail representation of a single user or entity.\nDefault avatar illustration is displayed when no src is specified.",
|
|
641
|
+
"name": "Avatar",
|
|
642
|
+
"cssProperties": [
|
|
725
643
|
{
|
|
726
|
-
"description": "
|
|
727
|
-
"name": ""
|
|
644
|
+
"description": "Controls the color of the avatar fallback, using [color tokens](/tokens/#color).",
|
|
645
|
+
"name": "--n-avatar-color",
|
|
646
|
+
"default": "var(--n-color-status-highlight)"
|
|
728
647
|
},
|
|
729
648
|
{
|
|
730
|
-
"description": "
|
|
731
|
-
"name": "
|
|
649
|
+
"description": "Controls the size of the avatar, using [icon sizing tokens](/tokens/#size).",
|
|
650
|
+
"name": "--n-avatar-size",
|
|
651
|
+
"default": "var(--n-size-icon-l)"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"description": "Controls the box shadow for the avatar.",
|
|
655
|
+
"name": "--n-avatar-box-shadow",
|
|
656
|
+
"default": "none"
|
|
732
657
|
}
|
|
733
658
|
],
|
|
734
659
|
"members": [
|
|
735
660
|
{
|
|
736
661
|
"kind": "field",
|
|
737
|
-
"name": "
|
|
662
|
+
"name": "state",
|
|
738
663
|
"type": {
|
|
739
|
-
"text": "
|
|
664
|
+
"text": "States<typeof transition>"
|
|
740
665
|
},
|
|
741
|
-
"
|
|
742
|
-
"
|
|
743
|
-
|
|
666
|
+
"privacy": "private",
|
|
667
|
+
"default": "\"initial\""
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"kind": "field",
|
|
671
|
+
"name": "size",
|
|
672
|
+
"type": {
|
|
673
|
+
"text": "\"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\" | \"xxxl\""
|
|
674
|
+
},
|
|
675
|
+
"default": "\"m\"",
|
|
676
|
+
"description": "The size of the avatar.",
|
|
677
|
+
"attribute": "size",
|
|
744
678
|
"reflects": true
|
|
745
679
|
},
|
|
746
680
|
{
|
|
747
681
|
"kind": "field",
|
|
748
|
-
"name": "
|
|
682
|
+
"name": "src",
|
|
749
683
|
"type": {
|
|
750
|
-
"text": "
|
|
684
|
+
"text": "string | undefined"
|
|
751
685
|
},
|
|
752
|
-
"description": "The
|
|
753
|
-
"attribute": "
|
|
686
|
+
"description": "The URL of the avatar image uploaded by the user.",
|
|
687
|
+
"attribute": "src",
|
|
754
688
|
"reflects": true
|
|
755
689
|
},
|
|
756
690
|
{
|
|
757
691
|
"kind": "field",
|
|
758
|
-
"name": "
|
|
692
|
+
"name": "name",
|
|
759
693
|
"type": {
|
|
760
|
-
"text": "
|
|
694
|
+
"text": "string"
|
|
761
695
|
},
|
|
762
|
-
"default": "
|
|
763
|
-
"description": "
|
|
764
|
-
"attribute": "
|
|
696
|
+
"default": "\"\"",
|
|
697
|
+
"description": "The name of the person or entity.",
|
|
698
|
+
"attribute": "name"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"kind": "field",
|
|
702
|
+
"name": "icon",
|
|
703
|
+
"type": {
|
|
704
|
+
"text": "string"
|
|
705
|
+
},
|
|
706
|
+
"default": "\"\"",
|
|
707
|
+
"description": "The fallback icon.",
|
|
708
|
+
"attribute": "icon"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"kind": "field",
|
|
712
|
+
"name": "variant",
|
|
713
|
+
"type": {
|
|
714
|
+
"text": "\"default\" | \"square\""
|
|
715
|
+
},
|
|
716
|
+
"default": "\"default\"",
|
|
717
|
+
"description": "The style variant of the avatar.",
|
|
718
|
+
"attribute": "variant",
|
|
765
719
|
"reflects": true
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"kind": "method",
|
|
723
|
+
"name": "handleSrcChange",
|
|
724
|
+
"privacy": "protected"
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"kind": "method",
|
|
728
|
+
"name": "renderImage",
|
|
729
|
+
"privacy": "protected"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"kind": "method",
|
|
733
|
+
"name": "renderFallback",
|
|
734
|
+
"privacy": "protected"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"kind": "method",
|
|
738
|
+
"name": "handleLoad",
|
|
739
|
+
"privacy": "private"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"kind": "method",
|
|
743
|
+
"name": "handleError",
|
|
744
|
+
"privacy": "private"
|
|
766
745
|
}
|
|
767
746
|
],
|
|
768
747
|
"attributes": [
|
|
769
748
|
{
|
|
770
|
-
"name": "
|
|
749
|
+
"name": "size",
|
|
771
750
|
"type": {
|
|
772
|
-
"text": "\"
|
|
751
|
+
"text": "\"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\" | \"xxxl\""
|
|
773
752
|
},
|
|
774
|
-
"
|
|
775
|
-
"
|
|
776
|
-
"fieldName": "
|
|
753
|
+
"default": "\"m\"",
|
|
754
|
+
"description": "The size of the avatar.",
|
|
755
|
+
"fieldName": "size"
|
|
777
756
|
},
|
|
778
757
|
{
|
|
779
|
-
"name": "
|
|
758
|
+
"name": "src",
|
|
780
759
|
"type": {
|
|
781
|
-
"text": "
|
|
760
|
+
"text": "string | undefined"
|
|
782
761
|
},
|
|
783
|
-
"description": "The
|
|
784
|
-
"fieldName": "
|
|
762
|
+
"description": "The URL of the avatar image uploaded by the user.",
|
|
763
|
+
"fieldName": "src"
|
|
785
764
|
},
|
|
786
765
|
{
|
|
787
|
-
"name": "
|
|
766
|
+
"name": "name",
|
|
788
767
|
"type": {
|
|
789
|
-
"text": "
|
|
768
|
+
"text": "string"
|
|
790
769
|
},
|
|
791
|
-
"default": "
|
|
792
|
-
"description": "
|
|
793
|
-
"fieldName": "
|
|
770
|
+
"default": "\"\"",
|
|
771
|
+
"description": "The name of the person or entity.",
|
|
772
|
+
"fieldName": "name"
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"name": "icon",
|
|
776
|
+
"type": {
|
|
777
|
+
"text": "string"
|
|
778
|
+
},
|
|
779
|
+
"default": "\"\"",
|
|
780
|
+
"description": "The fallback icon.",
|
|
781
|
+
"fieldName": "icon"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"name": "variant",
|
|
785
|
+
"type": {
|
|
786
|
+
"text": "\"default\" | \"square\""
|
|
787
|
+
},
|
|
788
|
+
"default": "\"default\"",
|
|
789
|
+
"description": "The style variant of the avatar.",
|
|
790
|
+
"fieldName": "variant"
|
|
794
791
|
}
|
|
795
792
|
],
|
|
796
793
|
"superclass": {
|
|
@@ -799,11 +796,14 @@
|
|
|
799
796
|
},
|
|
800
797
|
"localization": [],
|
|
801
798
|
"status": "ready",
|
|
802
|
-
"category": "
|
|
803
|
-
"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-
|
|
799
|
+
"category": "image",
|
|
800
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Always add the name of the person using the `name` property.\n- For the best results, use square images or images cropped into a square.\n- Use the avatar to represent a single user, pet or entity.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Try to avoid using landscape or portrait images as avatars. Let users crop their images before or after uploading if possible.\n- Don't use an avatar when an icon is more suitable, for example when denoting groups or \"things\".\n\n</div>\n",
|
|
804
801
|
"examples": [],
|
|
805
|
-
"dependencies": [
|
|
806
|
-
|
|
802
|
+
"dependencies": [
|
|
803
|
+
"visually-hidden",
|
|
804
|
+
"icon"
|
|
805
|
+
],
|
|
806
|
+
"tagName": "nord-avatar",
|
|
807
807
|
"customElement": true
|
|
808
808
|
}
|
|
809
809
|
],
|
|
@@ -812,16 +812,16 @@
|
|
|
812
812
|
"kind": "js",
|
|
813
813
|
"name": "default",
|
|
814
814
|
"declaration": {
|
|
815
|
-
"name": "
|
|
816
|
-
"module": "src/
|
|
815
|
+
"name": "Avatar",
|
|
816
|
+
"module": "src/avatar/Avatar.ts"
|
|
817
817
|
}
|
|
818
818
|
},
|
|
819
819
|
{
|
|
820
820
|
"kind": "custom-element-definition",
|
|
821
|
-
"name": "nord-
|
|
821
|
+
"name": "nord-avatar",
|
|
822
822
|
"declaration": {
|
|
823
|
-
"name": "
|
|
824
|
-
"module": "src/
|
|
823
|
+
"name": "Avatar",
|
|
824
|
+
"module": "src/avatar/Avatar.ts"
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
]
|
|
@@ -9425,69 +9425,7 @@
|
|
|
9425
9425
|
"type": {
|
|
9426
9426
|
"text": "object"
|
|
9427
9427
|
},
|
|
9428
|
-
"default": "{\n closeLabel: \"Close dialog\",\n}"
|
|
9429
|
-
}
|
|
9430
|
-
],
|
|
9431
|
-
"exports": [
|
|
9432
|
-
{
|
|
9433
|
-
"kind": "js",
|
|
9434
|
-
"name": "default",
|
|
9435
|
-
"declaration": {
|
|
9436
|
-
"name": "localization",
|
|
9437
|
-
"module": "src/modal/localization.ts"
|
|
9438
|
-
}
|
|
9439
|
-
}
|
|
9440
|
-
]
|
|
9441
|
-
},
|
|
9442
|
-
{
|
|
9443
|
-
"kind": "javascript-module",
|
|
9444
|
-
"path": "src/nav-group/NavGroup.ts",
|
|
9445
|
-
"declarations": [
|
|
9446
|
-
{
|
|
9447
|
-
"kind": "class",
|
|
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
|
-
"slots": [
|
|
9451
|
-
{
|
|
9452
|
-
"description": "The default slot used for the nav items.",
|
|
9453
|
-
"name": ""
|
|
9454
|
-
}
|
|
9455
|
-
],
|
|
9456
|
-
"members": [
|
|
9457
|
-
{
|
|
9458
|
-
"kind": "field",
|
|
9459
|
-
"name": "heading",
|
|
9460
|
-
"type": {
|
|
9461
|
-
"text": "string | undefined"
|
|
9462
|
-
},
|
|
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
|
|
9428
|
+
"default": "{\n closeLabel: \"Close dialog\",\n}"
|
|
9491
9429
|
}
|
|
9492
9430
|
],
|
|
9493
9431
|
"exports": [
|
|
@@ -9495,16 +9433,8 @@
|
|
|
9495
9433
|
"kind": "js",
|
|
9496
9434
|
"name": "default",
|
|
9497
9435
|
"declaration": {
|
|
9498
|
-
"name": "
|
|
9499
|
-
"module": "src/
|
|
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"
|
|
9436
|
+
"name": "localization",
|
|
9437
|
+
"module": "src/modal/localization.ts"
|
|
9508
9438
|
}
|
|
9509
9439
|
}
|
|
9510
9440
|
]
|
|
@@ -9782,6 +9712,76 @@
|
|
|
9782
9712
|
}
|
|
9783
9713
|
]
|
|
9784
9714
|
},
|
|
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",
|
|
@@ -9964,6 +9964,15 @@
|
|
|
9964
9964
|
"privacy": "private",
|
|
9965
9965
|
"default": "new EventController(this)"
|
|
9966
9966
|
},
|
|
9967
|
+
{
|
|
9968
|
+
"kind": "field",
|
|
9969
|
+
"name": "allowItemsToRemainOpen",
|
|
9970
|
+
"type": {
|
|
9971
|
+
"text": "boolean"
|
|
9972
|
+
},
|
|
9973
|
+
"privacy": "private",
|
|
9974
|
+
"default": "false"
|
|
9975
|
+
},
|
|
9967
9976
|
{
|
|
9968
9977
|
"kind": "field",
|
|
9969
9978
|
"name": "handleActivate",
|
|
@@ -10937,12 +10946,34 @@
|
|
|
10937
10946
|
},
|
|
10938
10947
|
{
|
|
10939
10948
|
"kind": "javascript-module",
|
|
10940
|
-
"path": "src/
|
|
10949
|
+
"path": "src/range/Range.ts",
|
|
10941
10950
|
"declarations": [
|
|
10942
10951
|
{
|
|
10943
10952
|
"kind": "class",
|
|
10944
|
-
"description": "
|
|
10945
|
-
"name": "
|
|
10953
|
+
"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.",
|
|
10954
|
+
"name": "Range",
|
|
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
|
+
],
|
|
10946
10977
|
"slots": [
|
|
10947
10978
|
{
|
|
10948
10979
|
"description": "Use when a label requires more than plain text.",
|
|
@@ -10960,38 +10991,63 @@
|
|
|
10960
10991
|
"members": [
|
|
10961
10992
|
{
|
|
10962
10993
|
"kind": "field",
|
|
10963
|
-
"name": "
|
|
10994
|
+
"name": "direction",
|
|
10995
|
+
"privacy": "private",
|
|
10996
|
+
"default": "new DirectionController(this)"
|
|
10997
|
+
},
|
|
10998
|
+
{
|
|
10999
|
+
"kind": "field",
|
|
11000
|
+
"name": "min",
|
|
10964
11001
|
"type": {
|
|
10965
|
-
"text": "
|
|
11002
|
+
"text": "number"
|
|
10966
11003
|
},
|
|
10967
|
-
"
|
|
10968
|
-
"
|
|
10969
|
-
"
|
|
10970
|
-
"name": "FormAssociatedMixin",
|
|
10971
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10972
|
-
}
|
|
11004
|
+
"default": "0",
|
|
11005
|
+
"description": "Minimum value for the range slider.",
|
|
11006
|
+
"attribute": "min"
|
|
10973
11007
|
},
|
|
10974
11008
|
{
|
|
10975
11009
|
"kind": "field",
|
|
10976
|
-
"name": "
|
|
11010
|
+
"name": "max",
|
|
10977
11011
|
"type": {
|
|
10978
|
-
"text": "
|
|
11012
|
+
"text": "number"
|
|
10979
11013
|
},
|
|
10980
|
-
"
|
|
10981
|
-
"
|
|
10982
|
-
"
|
|
10983
|
-
"name": "FormAssociatedMixin",
|
|
10984
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
10985
|
-
}
|
|
11014
|
+
"default": "10",
|
|
11015
|
+
"description": "Maximum value for the range slider.",
|
|
11016
|
+
"attribute": "max"
|
|
10986
11017
|
},
|
|
10987
11018
|
{
|
|
10988
11019
|
"kind": "field",
|
|
10989
|
-
"name": "
|
|
11020
|
+
"name": "step",
|
|
10990
11021
|
"type": {
|
|
10991
|
-
"text": "
|
|
11022
|
+
"text": "number"
|
|
11023
|
+
},
|
|
11024
|
+
"default": "1",
|
|
11025
|
+
"description": "Step amount for the range slider.",
|
|
11026
|
+
"attribute": "step"
|
|
11027
|
+
},
|
|
11028
|
+
{
|
|
11029
|
+
"kind": "field",
|
|
11030
|
+
"name": "expand",
|
|
11031
|
+
"type": {
|
|
11032
|
+
"text": "boolean"
|
|
10992
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",
|
|
10993
11042
|
"privacy": "protected",
|
|
10994
|
-
"
|
|
11043
|
+
"parameters": [
|
|
11044
|
+
{
|
|
11045
|
+
"name": "e",
|
|
11046
|
+
"type": {
|
|
11047
|
+
"text": "Event"
|
|
11048
|
+
}
|
|
11049
|
+
}
|
|
11050
|
+
],
|
|
10995
11051
|
"inheritedFrom": {
|
|
10996
11052
|
"name": "FormAssociatedMixin",
|
|
10997
11053
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -10999,10 +11055,9 @@
|
|
|
10999
11055
|
},
|
|
11000
11056
|
{
|
|
11001
11057
|
"kind": "field",
|
|
11002
|
-
"name": "
|
|
11058
|
+
"name": "labelSlot",
|
|
11003
11059
|
"privacy": "protected",
|
|
11004
|
-
"default": "new
|
|
11005
|
-
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
11060
|
+
"default": "new SlotController(this, \"label\")",
|
|
11006
11061
|
"inheritedFrom": {
|
|
11007
11062
|
"name": "FormAssociatedMixin",
|
|
11008
11063
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11010,9 +11065,9 @@
|
|
|
11010
11065
|
},
|
|
11011
11066
|
{
|
|
11012
11067
|
"kind": "field",
|
|
11013
|
-
"name": "
|
|
11068
|
+
"name": "errorSlot",
|
|
11014
11069
|
"privacy": "protected",
|
|
11015
|
-
"default": "new
|
|
11070
|
+
"default": "new SlotController(this, \"error\")",
|
|
11016
11071
|
"inheritedFrom": {
|
|
11017
11072
|
"name": "FormAssociatedMixin",
|
|
11018
11073
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11020,9 +11075,9 @@
|
|
|
11020
11075
|
},
|
|
11021
11076
|
{
|
|
11022
11077
|
"kind": "field",
|
|
11023
|
-
"name": "
|
|
11078
|
+
"name": "hintSlot",
|
|
11024
11079
|
"privacy": "protected",
|
|
11025
|
-
"default": "new
|
|
11080
|
+
"default": "new SlotController(this, \"hint\")",
|
|
11026
11081
|
"inheritedFrom": {
|
|
11027
11082
|
"name": "FormAssociatedMixin",
|
|
11028
11083
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11030,9 +11085,13 @@
|
|
|
11030
11085
|
},
|
|
11031
11086
|
{
|
|
11032
11087
|
"kind": "field",
|
|
11033
|
-
"name": "
|
|
11088
|
+
"name": "formData",
|
|
11034
11089
|
"privacy": "protected",
|
|
11035
|
-
"default": "new
|
|
11090
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
11091
|
+
"inheritedFrom": {
|
|
11092
|
+
"name": "FormAssociatedMixin",
|
|
11093
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11094
|
+
}
|
|
11036
11095
|
},
|
|
11037
11096
|
{
|
|
11038
11097
|
"kind": "field",
|
|
@@ -11046,50 +11105,12 @@
|
|
|
11046
11105
|
},
|
|
11047
11106
|
{
|
|
11048
11107
|
"kind": "field",
|
|
11049
|
-
"name": "
|
|
11108
|
+
"name": "inputId",
|
|
11050
11109
|
"type": {
|
|
11051
|
-
"text": "
|
|
11052
|
-
},
|
|
11053
|
-
"default": "false",
|
|
11054
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
11055
|
-
"attribute": "checked",
|
|
11056
|
-
"reflects": true
|
|
11057
|
-
},
|
|
11058
|
-
{
|
|
11059
|
-
"kind": "method",
|
|
11060
|
-
"name": "handleCheckedChange",
|
|
11061
|
-
"privacy": "protected",
|
|
11062
|
-
"parameters": [
|
|
11063
|
-
{
|
|
11064
|
-
"name": "previousChecked",
|
|
11065
|
-
"type": {
|
|
11066
|
-
"text": "boolean"
|
|
11067
|
-
}
|
|
11068
|
-
}
|
|
11069
|
-
]
|
|
11070
|
-
},
|
|
11071
|
-
{
|
|
11072
|
-
"kind": "method",
|
|
11073
|
-
"name": "uncheckSiblings",
|
|
11074
|
-
"privacy": "private"
|
|
11075
|
-
},
|
|
11076
|
-
{
|
|
11077
|
-
"kind": "method",
|
|
11078
|
-
"name": "handleChange",
|
|
11079
|
-
"privacy": "protected",
|
|
11080
|
-
"parameters": [
|
|
11081
|
-
{
|
|
11082
|
-
"name": "e",
|
|
11083
|
-
"type": {
|
|
11084
|
-
"text": "Event"
|
|
11085
|
-
}
|
|
11086
|
-
}
|
|
11087
|
-
],
|
|
11088
|
-
"return": {
|
|
11089
|
-
"type": {
|
|
11090
|
-
"text": "void"
|
|
11091
|
-
}
|
|
11110
|
+
"text": "string"
|
|
11092
11111
|
},
|
|
11112
|
+
"privacy": "protected",
|
|
11113
|
+
"default": "\"input\"",
|
|
11093
11114
|
"inheritedFrom": {
|
|
11094
11115
|
"name": "FormAssociatedMixin",
|
|
11095
11116
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11097,19 +11118,25 @@
|
|
|
11097
11118
|
},
|
|
11098
11119
|
{
|
|
11099
11120
|
"kind": "field",
|
|
11100
|
-
"name": "
|
|
11101
|
-
"
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
"
|
|
11105
|
-
"
|
|
11106
|
-
"
|
|
11121
|
+
"name": "errorId",
|
|
11122
|
+
"type": {
|
|
11123
|
+
"text": "string"
|
|
11124
|
+
},
|
|
11125
|
+
"privacy": "protected",
|
|
11126
|
+
"default": "\"error\"",
|
|
11127
|
+
"inheritedFrom": {
|
|
11128
|
+
"name": "FormAssociatedMixin",
|
|
11129
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11130
|
+
}
|
|
11107
11131
|
},
|
|
11108
11132
|
{
|
|
11109
11133
|
"kind": "field",
|
|
11110
|
-
"name": "
|
|
11134
|
+
"name": "hintId",
|
|
11135
|
+
"type": {
|
|
11136
|
+
"text": "string"
|
|
11137
|
+
},
|
|
11111
11138
|
"privacy": "protected",
|
|
11112
|
-
"default": "
|
|
11139
|
+
"default": "\"hint\"",
|
|
11113
11140
|
"inheritedFrom": {
|
|
11114
11141
|
"name": "FormAssociatedMixin",
|
|
11115
11142
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11212,7 +11239,7 @@
|
|
|
11212
11239
|
},
|
|
11213
11240
|
{
|
|
11214
11241
|
"kind": "method",
|
|
11215
|
-
"name": "
|
|
11242
|
+
"name": "handleChange",
|
|
11216
11243
|
"privacy": "protected",
|
|
11217
11244
|
"parameters": [
|
|
11218
11245
|
{
|
|
@@ -11292,6 +11319,35 @@
|
|
|
11292
11319
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11293
11320
|
}
|
|
11294
11321
|
},
|
|
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
|
+
},
|
|
11295
11351
|
{
|
|
11296
11352
|
"kind": "field",
|
|
11297
11353
|
"name": "disabled",
|
|
@@ -11419,15 +11475,66 @@
|
|
|
11419
11475
|
}
|
|
11420
11476
|
}
|
|
11421
11477
|
],
|
|
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
|
+
],
|
|
11422
11502
|
"attributes": [
|
|
11423
11503
|
{
|
|
11424
|
-
"name": "
|
|
11504
|
+
"name": "min",
|
|
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",
|
|
11425
11532
|
"type": {
|
|
11426
11533
|
"text": "boolean"
|
|
11427
11534
|
},
|
|
11428
11535
|
"default": "false",
|
|
11429
|
-
"description": "Controls whether the
|
|
11430
|
-
"fieldName": "
|
|
11536
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
11537
|
+
"fieldName": "expand"
|
|
11431
11538
|
},
|
|
11432
11539
|
{
|
|
11433
11540
|
"name": "label",
|
|
@@ -11517,6 +11624,32 @@
|
|
|
11517
11624
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11518
11625
|
}
|
|
11519
11626
|
},
|
|
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
|
+
},
|
|
11520
11653
|
{
|
|
11521
11654
|
"name": "disabled",
|
|
11522
11655
|
"type": {
|
|
@@ -11573,6 +11706,14 @@
|
|
|
11573
11706
|
"name": "FormAssociatedMixin",
|
|
11574
11707
|
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
11575
11708
|
},
|
|
11709
|
+
{
|
|
11710
|
+
"name": "AutocompleteMixin",
|
|
11711
|
+
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
11712
|
+
},
|
|
11713
|
+
{
|
|
11714
|
+
"name": "ReadonlyMixin",
|
|
11715
|
+
"module": "/src/common/mixins/ReadonlyMixin.js"
|
|
11716
|
+
},
|
|
11576
11717
|
{
|
|
11577
11718
|
"name": "InputMixin",
|
|
11578
11719
|
"module": "/src/common/mixins/InputMixin.js"
|
|
@@ -11587,37 +11728,13 @@
|
|
|
11587
11728
|
"package": "lit"
|
|
11588
11729
|
},
|
|
11589
11730
|
"localization": [],
|
|
11590
|
-
"status": "
|
|
11731
|
+
"status": "new",
|
|
11591
11732
|
"category": "form",
|
|
11592
|
-
"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
|
|
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 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",
|
|
11593
11734
|
"examples": [],
|
|
11594
11735
|
"dependencies": [],
|
|
11595
|
-
"tagName": "nord-
|
|
11596
|
-
"customElement": true
|
|
11597
|
-
"events": [
|
|
11598
|
-
{
|
|
11599
|
-
"name": "input",
|
|
11600
|
-
"type": {
|
|
11601
|
-
"text": "NordEvent"
|
|
11602
|
-
},
|
|
11603
|
-
"description": "Fired as the user types into the input.",
|
|
11604
|
-
"inheritedFrom": {
|
|
11605
|
-
"name": "FormAssociatedMixin",
|
|
11606
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11607
|
-
}
|
|
11608
|
-
},
|
|
11609
|
-
{
|
|
11610
|
-
"name": "change",
|
|
11611
|
-
"type": {
|
|
11612
|
-
"text": "NordEvent"
|
|
11613
|
-
},
|
|
11614
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
11615
|
-
"inheritedFrom": {
|
|
11616
|
-
"name": "FormAssociatedMixin",
|
|
11617
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11618
|
-
}
|
|
11619
|
-
}
|
|
11620
|
-
]
|
|
11736
|
+
"tagName": "nord-range",
|
|
11737
|
+
"customElement": true
|
|
11621
11738
|
}
|
|
11622
11739
|
],
|
|
11623
11740
|
"exports": [
|
|
@@ -11625,124 +11742,51 @@
|
|
|
11625
11742
|
"kind": "js",
|
|
11626
11743
|
"name": "default",
|
|
11627
11744
|
"declaration": {
|
|
11628
|
-
"name": "
|
|
11629
|
-
"module": "src/
|
|
11745
|
+
"name": "Range",
|
|
11746
|
+
"module": "src/range/Range.ts"
|
|
11630
11747
|
}
|
|
11631
11748
|
},
|
|
11632
11749
|
{
|
|
11633
11750
|
"kind": "custom-element-definition",
|
|
11634
|
-
"name": "nord-
|
|
11751
|
+
"name": "nord-range",
|
|
11635
11752
|
"declaration": {
|
|
11636
|
-
"name": "
|
|
11637
|
-
"module": "src/
|
|
11753
|
+
"name": "Range",
|
|
11754
|
+
"module": "src/range/Range.ts"
|
|
11638
11755
|
}
|
|
11639
11756
|
}
|
|
11640
11757
|
]
|
|
11641
11758
|
},
|
|
11642
11759
|
{
|
|
11643
11760
|
"kind": "javascript-module",
|
|
11644
|
-
"path": "src/
|
|
11761
|
+
"path": "src/radio/Radio.ts",
|
|
11645
11762
|
"declarations": [
|
|
11646
11763
|
{
|
|
11647
11764
|
"kind": "class",
|
|
11648
|
-
"description": "
|
|
11649
|
-
"name": "
|
|
11650
|
-
"cssProperties": [
|
|
11651
|
-
{
|
|
11652
|
-
"description": "Controls the size of the thumb.",
|
|
11653
|
-
"name": "--n-range-thumb-size",
|
|
11654
|
-
"default": "20px"
|
|
11655
|
-
},
|
|
11656
|
-
{
|
|
11657
|
-
"description": "Controls the color of the portion of the track that represents the current value.",
|
|
11658
|
-
"name": "--n-range-track-color-active",
|
|
11659
|
-
"default": "var(--n-color-accent)"
|
|
11660
|
-
},
|
|
11661
|
-
{
|
|
11662
|
-
"description": "Controls the color of the portion of the track that represents the remaining value.",
|
|
11663
|
-
"name": "--n-range-track-color-inactive",
|
|
11664
|
-
"default": "var(--n-color-border-strong)"
|
|
11665
|
-
},
|
|
11666
|
-
{
|
|
11667
|
-
"description": "Controls the height of the track.",
|
|
11668
|
-
"name": "--n-range-track-size",
|
|
11669
|
-
"default": "3px"
|
|
11670
|
-
}
|
|
11671
|
-
],
|
|
11765
|
+
"description": "Radio buttons are graphical user interface elements that allow user to choose only one option from\na predefined set of mutually exclusive options.",
|
|
11766
|
+
"name": "Radio",
|
|
11672
11767
|
"slots": [
|
|
11673
11768
|
{
|
|
11674
11769
|
"description": "Use when a label requires more than plain text.",
|
|
11675
|
-
"name": "label"
|
|
11676
|
-
},
|
|
11677
|
-
{
|
|
11678
|
-
"description": "Optional slot that holds hint text for the input.",
|
|
11679
|
-
"name": "hint"
|
|
11680
|
-
},
|
|
11681
|
-
{
|
|
11682
|
-
"description": "Optional slot that holds error text for the input.",
|
|
11683
|
-
"name": "error"
|
|
11684
|
-
}
|
|
11685
|
-
],
|
|
11686
|
-
"members": [
|
|
11687
|
-
{
|
|
11688
|
-
"kind": "field",
|
|
11689
|
-
"name": "direction",
|
|
11690
|
-
"privacy": "private",
|
|
11691
|
-
"default": "new DirectionController(this)"
|
|
11692
|
-
},
|
|
11693
|
-
{
|
|
11694
|
-
"kind": "field",
|
|
11695
|
-
"name": "min",
|
|
11696
|
-
"type": {
|
|
11697
|
-
"text": "number"
|
|
11698
|
-
},
|
|
11699
|
-
"default": "0",
|
|
11700
|
-
"description": "Minimum value for the range slider.",
|
|
11701
|
-
"attribute": "min"
|
|
11702
|
-
},
|
|
11703
|
-
{
|
|
11704
|
-
"kind": "field",
|
|
11705
|
-
"name": "max",
|
|
11706
|
-
"type": {
|
|
11707
|
-
"text": "number"
|
|
11708
|
-
},
|
|
11709
|
-
"default": "10",
|
|
11710
|
-
"description": "Maximum value for the range slider.",
|
|
11711
|
-
"attribute": "max"
|
|
11770
|
+
"name": "label"
|
|
11712
11771
|
},
|
|
11713
11772
|
{
|
|
11714
|
-
"
|
|
11715
|
-
"name": "
|
|
11716
|
-
"type": {
|
|
11717
|
-
"text": "number"
|
|
11718
|
-
},
|
|
11719
|
-
"default": "1",
|
|
11720
|
-
"description": "Step amount for the range slider.",
|
|
11721
|
-
"attribute": "step"
|
|
11773
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
11774
|
+
"name": "hint"
|
|
11722
11775
|
},
|
|
11776
|
+
{
|
|
11777
|
+
"description": "Optional slot that holds error text for the input.",
|
|
11778
|
+
"name": "error"
|
|
11779
|
+
}
|
|
11780
|
+
],
|
|
11781
|
+
"members": [
|
|
11723
11782
|
{
|
|
11724
11783
|
"kind": "field",
|
|
11725
|
-
"name": "
|
|
11784
|
+
"name": "inputId",
|
|
11726
11785
|
"type": {
|
|
11727
|
-
"text": "
|
|
11786
|
+
"text": "string"
|
|
11728
11787
|
},
|
|
11729
|
-
"default": "false",
|
|
11730
|
-
"description": "Controls whether the input expands to fill the width of its container.",
|
|
11731
|
-
"attribute": "expand",
|
|
11732
|
-
"reflects": true
|
|
11733
|
-
},
|
|
11734
|
-
{
|
|
11735
|
-
"kind": "method",
|
|
11736
|
-
"name": "handleInput",
|
|
11737
11788
|
"privacy": "protected",
|
|
11738
|
-
"
|
|
11739
|
-
{
|
|
11740
|
-
"name": "e",
|
|
11741
|
-
"type": {
|
|
11742
|
-
"text": "Event"
|
|
11743
|
-
}
|
|
11744
|
-
}
|
|
11745
|
-
],
|
|
11789
|
+
"default": "\"input\"",
|
|
11746
11790
|
"inheritedFrom": {
|
|
11747
11791
|
"name": "FormAssociatedMixin",
|
|
11748
11792
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11750,9 +11794,12 @@
|
|
|
11750
11794
|
},
|
|
11751
11795
|
{
|
|
11752
11796
|
"kind": "field",
|
|
11753
|
-
"name": "
|
|
11797
|
+
"name": "hintId",
|
|
11798
|
+
"type": {
|
|
11799
|
+
"text": "string"
|
|
11800
|
+
},
|
|
11754
11801
|
"privacy": "protected",
|
|
11755
|
-
"default": "
|
|
11802
|
+
"default": "\"hint\"",
|
|
11756
11803
|
"inheritedFrom": {
|
|
11757
11804
|
"name": "FormAssociatedMixin",
|
|
11758
11805
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11760,9 +11807,12 @@
|
|
|
11760
11807
|
},
|
|
11761
11808
|
{
|
|
11762
11809
|
"kind": "field",
|
|
11763
|
-
"name": "
|
|
11810
|
+
"name": "errorId",
|
|
11811
|
+
"type": {
|
|
11812
|
+
"text": "string"
|
|
11813
|
+
},
|
|
11764
11814
|
"privacy": "protected",
|
|
11765
|
-
"default": "
|
|
11815
|
+
"default": "\"error\"",
|
|
11766
11816
|
"inheritedFrom": {
|
|
11767
11817
|
"name": "FormAssociatedMixin",
|
|
11768
11818
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11772,7 +11822,8 @@
|
|
|
11772
11822
|
"kind": "field",
|
|
11773
11823
|
"name": "hintSlot",
|
|
11774
11824
|
"privacy": "protected",
|
|
11775
|
-
"default": "new
|
|
11825
|
+
"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 })",
|
|
11826
|
+
"description": "For accessibility reasons, we render some parts of the component to the light DOM.",
|
|
11776
11827
|
"inheritedFrom": {
|
|
11777
11828
|
"name": "FormAssociatedMixin",
|
|
11778
11829
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11780,9 +11831,9 @@
|
|
|
11780
11831
|
},
|
|
11781
11832
|
{
|
|
11782
11833
|
"kind": "field",
|
|
11783
|
-
"name": "
|
|
11834
|
+
"name": "labelSlot",
|
|
11784
11835
|
"privacy": "protected",
|
|
11785
|
-
"default": "new
|
|
11836
|
+
"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 })",
|
|
11786
11837
|
"inheritedFrom": {
|
|
11787
11838
|
"name": "FormAssociatedMixin",
|
|
11788
11839
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11790,9 +11841,9 @@
|
|
|
11790
11841
|
},
|
|
11791
11842
|
{
|
|
11792
11843
|
"kind": "field",
|
|
11793
|
-
"name": "
|
|
11844
|
+
"name": "errorSlot",
|
|
11794
11845
|
"privacy": "protected",
|
|
11795
|
-
"
|
|
11846
|
+
"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 })",
|
|
11796
11847
|
"inheritedFrom": {
|
|
11797
11848
|
"name": "FormAssociatedMixin",
|
|
11798
11849
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11800,12 +11851,15 @@
|
|
|
11800
11851
|
},
|
|
11801
11852
|
{
|
|
11802
11853
|
"kind": "field",
|
|
11803
|
-
"name": "
|
|
11804
|
-
"type": {
|
|
11805
|
-
"text": "string"
|
|
11806
|
-
},
|
|
11854
|
+
"name": "inputSlot",
|
|
11807
11855
|
"privacy": "protected",
|
|
11808
|
-
"default": "\"input\""
|
|
11856
|
+
"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 })"
|
|
11857
|
+
},
|
|
11858
|
+
{
|
|
11859
|
+
"kind": "field",
|
|
11860
|
+
"name": "formValue",
|
|
11861
|
+
"privacy": "protected",
|
|
11862
|
+
"readonly": true,
|
|
11809
11863
|
"inheritedFrom": {
|
|
11810
11864
|
"name": "FormAssociatedMixin",
|
|
11811
11865
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11813,12 +11867,50 @@
|
|
|
11813
11867
|
},
|
|
11814
11868
|
{
|
|
11815
11869
|
"kind": "field",
|
|
11816
|
-
"name": "
|
|
11870
|
+
"name": "checked",
|
|
11817
11871
|
"type": {
|
|
11818
|
-
"text": "
|
|
11872
|
+
"text": "boolean"
|
|
11819
11873
|
},
|
|
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",
|
|
11820
11882
|
"privacy": "protected",
|
|
11821
|
-
"
|
|
11883
|
+
"parameters": [
|
|
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
|
+
},
|
|
11822
11914
|
"inheritedFrom": {
|
|
11823
11915
|
"name": "FormAssociatedMixin",
|
|
11824
11916
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11826,12 +11918,19 @@
|
|
|
11826
11918
|
},
|
|
11827
11919
|
{
|
|
11828
11920
|
"kind": "field",
|
|
11829
|
-
"name": "
|
|
11830
|
-
"
|
|
11831
|
-
|
|
11832
|
-
|
|
11921
|
+
"name": "handleBlur",
|
|
11922
|
+
"privacy": "private"
|
|
11923
|
+
},
|
|
11924
|
+
{
|
|
11925
|
+
"kind": "field",
|
|
11926
|
+
"name": "handleFocus",
|
|
11927
|
+
"privacy": "private"
|
|
11928
|
+
},
|
|
11929
|
+
{
|
|
11930
|
+
"kind": "field",
|
|
11931
|
+
"name": "formData",
|
|
11833
11932
|
"privacy": "protected",
|
|
11834
|
-
"default": "
|
|
11933
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
11835
11934
|
"inheritedFrom": {
|
|
11836
11935
|
"name": "FormAssociatedMixin",
|
|
11837
11936
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
@@ -11934,7 +12033,7 @@
|
|
|
11934
12033
|
},
|
|
11935
12034
|
{
|
|
11936
12035
|
"kind": "method",
|
|
11937
|
-
"name": "
|
|
12036
|
+
"name": "handleInput",
|
|
11938
12037
|
"privacy": "protected",
|
|
11939
12038
|
"parameters": [
|
|
11940
12039
|
{
|
|
@@ -12014,35 +12113,6 @@
|
|
|
12014
12113
|
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12015
12114
|
}
|
|
12016
12115
|
},
|
|
12017
|
-
{
|
|
12018
|
-
"kind": "field",
|
|
12019
|
-
"name": "autocomplete",
|
|
12020
|
-
"type": {
|
|
12021
|
-
"text": "AutocompleteAttribute"
|
|
12022
|
-
},
|
|
12023
|
-
"default": "\"off\"",
|
|
12024
|
-
"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.",
|
|
12025
|
-
"attribute": "autocomplete",
|
|
12026
|
-
"inheritedFrom": {
|
|
12027
|
-
"name": "AutocompleteMixin",
|
|
12028
|
-
"module": "src/common/mixins/AutocompleteMixin.ts"
|
|
12029
|
-
}
|
|
12030
|
-
},
|
|
12031
|
-
{
|
|
12032
|
-
"kind": "field",
|
|
12033
|
-
"name": "readonly",
|
|
12034
|
-
"type": {
|
|
12035
|
-
"text": "boolean"
|
|
12036
|
-
},
|
|
12037
|
-
"default": "false",
|
|
12038
|
-
"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.",
|
|
12039
|
-
"attribute": "readonly",
|
|
12040
|
-
"reflects": true,
|
|
12041
|
-
"inheritedFrom": {
|
|
12042
|
-
"name": "ReadonlyMixin",
|
|
12043
|
-
"module": "src/common/mixins/ReadonlyMixin.ts"
|
|
12044
|
-
}
|
|
12045
|
-
},
|
|
12046
12116
|
{
|
|
12047
12117
|
"kind": "field",
|
|
12048
12118
|
"name": "disabled",
|
|
@@ -12170,66 +12240,15 @@
|
|
|
12170
12240
|
}
|
|
12171
12241
|
}
|
|
12172
12242
|
],
|
|
12173
|
-
"events": [
|
|
12174
|
-
{
|
|
12175
|
-
"name": "input",
|
|
12176
|
-
"type": {
|
|
12177
|
-
"text": "NordEvent"
|
|
12178
|
-
},
|
|
12179
|
-
"description": "Fired as the user types into the input.",
|
|
12180
|
-
"inheritedFrom": {
|
|
12181
|
-
"name": "FormAssociatedMixin",
|
|
12182
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12183
|
-
}
|
|
12184
|
-
},
|
|
12185
|
-
{
|
|
12186
|
-
"name": "change",
|
|
12187
|
-
"type": {
|
|
12188
|
-
"text": "NordEvent"
|
|
12189
|
-
},
|
|
12190
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
12191
|
-
"inheritedFrom": {
|
|
12192
|
-
"name": "FormAssociatedMixin",
|
|
12193
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12194
|
-
}
|
|
12195
|
-
}
|
|
12196
|
-
],
|
|
12197
12243
|
"attributes": [
|
|
12198
12244
|
{
|
|
12199
|
-
"name": "
|
|
12200
|
-
"type": {
|
|
12201
|
-
"text": "number"
|
|
12202
|
-
},
|
|
12203
|
-
"default": "0",
|
|
12204
|
-
"description": "Minimum value for the range slider.",
|
|
12205
|
-
"fieldName": "min"
|
|
12206
|
-
},
|
|
12207
|
-
{
|
|
12208
|
-
"name": "max",
|
|
12209
|
-
"type": {
|
|
12210
|
-
"text": "number"
|
|
12211
|
-
},
|
|
12212
|
-
"default": "10",
|
|
12213
|
-
"description": "Maximum value for the range slider.",
|
|
12214
|
-
"fieldName": "max"
|
|
12215
|
-
},
|
|
12216
|
-
{
|
|
12217
|
-
"name": "step",
|
|
12218
|
-
"type": {
|
|
12219
|
-
"text": "number"
|
|
12220
|
-
},
|
|
12221
|
-
"default": "1",
|
|
12222
|
-
"description": "Step amount for the range slider.",
|
|
12223
|
-
"fieldName": "step"
|
|
12224
|
-
},
|
|
12225
|
-
{
|
|
12226
|
-
"name": "expand",
|
|
12245
|
+
"name": "checked",
|
|
12227
12246
|
"type": {
|
|
12228
12247
|
"text": "boolean"
|
|
12229
12248
|
},
|
|
12230
12249
|
"default": "false",
|
|
12231
|
-
"description": "Controls whether the
|
|
12232
|
-
"fieldName": "
|
|
12250
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
12251
|
+
"fieldName": "checked"
|
|
12233
12252
|
},
|
|
12234
12253
|
{
|
|
12235
12254
|
"name": "label",
|
|
@@ -12296,53 +12315,27 @@
|
|
|
12296
12315
|
{
|
|
12297
12316
|
"name": "required",
|
|
12298
12317
|
"type": {
|
|
12299
|
-
"text": "boolean"
|
|
12300
|
-
},
|
|
12301
|
-
"default": "false",
|
|
12302
|
-
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
12303
|
-
"fieldName": "required",
|
|
12304
|
-
"inheritedFrom": {
|
|
12305
|
-
"name": "FormAssociatedMixin",
|
|
12306
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12307
|
-
}
|
|
12308
|
-
},
|
|
12309
|
-
{
|
|
12310
|
-
"name": "hide-required",
|
|
12311
|
-
"type": {
|
|
12312
|
-
"text": "boolean"
|
|
12313
|
-
},
|
|
12314
|
-
"default": "false",
|
|
12315
|
-
"description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
|
|
12316
|
-
"fieldName": "hideRequired",
|
|
12317
|
-
"inheritedFrom": {
|
|
12318
|
-
"name": "FormAssociatedMixin",
|
|
12319
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12320
|
-
}
|
|
12321
|
-
},
|
|
12322
|
-
{
|
|
12323
|
-
"name": "autocomplete",
|
|
12324
|
-
"type": {
|
|
12325
|
-
"text": "AutocompleteAttribute"
|
|
12326
|
-
},
|
|
12327
|
-
"default": "\"off\"",
|
|
12328
|
-
"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.",
|
|
12329
|
-
"fieldName": "autocomplete",
|
|
12318
|
+
"text": "boolean"
|
|
12319
|
+
},
|
|
12320
|
+
"default": "false",
|
|
12321
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
12322
|
+
"fieldName": "required",
|
|
12330
12323
|
"inheritedFrom": {
|
|
12331
|
-
"name": "
|
|
12332
|
-
"module": "src/common/mixins/
|
|
12324
|
+
"name": "FormAssociatedMixin",
|
|
12325
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12333
12326
|
}
|
|
12334
12327
|
},
|
|
12335
12328
|
{
|
|
12336
|
-
"name": "
|
|
12329
|
+
"name": "hide-required",
|
|
12337
12330
|
"type": {
|
|
12338
12331
|
"text": "boolean"
|
|
12339
12332
|
},
|
|
12340
12333
|
"default": "false",
|
|
12341
|
-
"description": "
|
|
12342
|
-
"fieldName": "
|
|
12334
|
+
"description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
|
|
12335
|
+
"fieldName": "hideRequired",
|
|
12343
12336
|
"inheritedFrom": {
|
|
12344
|
-
"name": "
|
|
12345
|
-
"module": "src/common/mixins/
|
|
12337
|
+
"name": "FormAssociatedMixin",
|
|
12338
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12346
12339
|
}
|
|
12347
12340
|
},
|
|
12348
12341
|
{
|
|
@@ -12401,14 +12394,6 @@
|
|
|
12401
12394
|
"name": "FormAssociatedMixin",
|
|
12402
12395
|
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
12403
12396
|
},
|
|
12404
|
-
{
|
|
12405
|
-
"name": "AutocompleteMixin",
|
|
12406
|
-
"module": "/src/common/mixins/AutocompleteMixin.js"
|
|
12407
|
-
},
|
|
12408
|
-
{
|
|
12409
|
-
"name": "ReadonlyMixin",
|
|
12410
|
-
"module": "/src/common/mixins/ReadonlyMixin.js"
|
|
12411
|
-
},
|
|
12412
12397
|
{
|
|
12413
12398
|
"name": "InputMixin",
|
|
12414
12399
|
"module": "/src/common/mixins/InputMixin.js"
|
|
@@ -12423,13 +12408,37 @@
|
|
|
12423
12408
|
"package": "lit"
|
|
12424
12409
|
},
|
|
12425
12410
|
"localization": [],
|
|
12426
|
-
"status": "
|
|
12411
|
+
"status": "ready",
|
|
12427
12412
|
"category": "form",
|
|
12428
|
-
"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
|
|
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",
|
|
12429
12414
|
"examples": [],
|
|
12430
12415
|
"dependencies": [],
|
|
12431
|
-
"tagName": "nord-
|
|
12432
|
-
"customElement": true
|
|
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
|
+
}
|
|
12429
|
+
},
|
|
12430
|
+
{
|
|
12431
|
+
"name": "change",
|
|
12432
|
+
"type": {
|
|
12433
|
+
"text": "NordEvent"
|
|
12434
|
+
},
|
|
12435
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
12436
|
+
"inheritedFrom": {
|
|
12437
|
+
"name": "FormAssociatedMixin",
|
|
12438
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
12439
|
+
}
|
|
12440
|
+
}
|
|
12441
|
+
]
|
|
12433
12442
|
}
|
|
12434
12443
|
],
|
|
12435
12444
|
"exports": [
|
|
@@ -12437,16 +12446,16 @@
|
|
|
12437
12446
|
"kind": "js",
|
|
12438
12447
|
"name": "default",
|
|
12439
12448
|
"declaration": {
|
|
12440
|
-
"name": "
|
|
12441
|
-
"module": "src/
|
|
12449
|
+
"name": "Radio",
|
|
12450
|
+
"module": "src/radio/Radio.ts"
|
|
12442
12451
|
}
|
|
12443
12452
|
},
|
|
12444
12453
|
{
|
|
12445
12454
|
"kind": "custom-element-definition",
|
|
12446
|
-
"name": "nord-
|
|
12455
|
+
"name": "nord-radio",
|
|
12447
12456
|
"declaration": {
|
|
12448
|
-
"name": "
|
|
12449
|
-
"module": "src/
|
|
12457
|
+
"name": "Radio",
|
|
12458
|
+
"module": "src/radio/Radio.ts"
|
|
12450
12459
|
}
|
|
12451
12460
|
}
|
|
12452
12461
|
]
|
|
@@ -13319,107 +13328,6 @@
|
|
|
13319
13328
|
}
|
|
13320
13329
|
]
|
|
13321
13330
|
},
|
|
13322
|
-
{
|
|
13323
|
-
"kind": "javascript-module",
|
|
13324
|
-
"path": "src/spinner/Spinner.ts",
|
|
13325
|
-
"declarations": [
|
|
13326
|
-
{
|
|
13327
|
-
"kind": "class",
|
|
13328
|
-
"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.",
|
|
13329
|
-
"name": "Spinner",
|
|
13330
|
-
"members": [
|
|
13331
|
-
{
|
|
13332
|
-
"kind": "field",
|
|
13333
|
-
"name": "size",
|
|
13334
|
-
"type": {
|
|
13335
|
-
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13336
|
-
},
|
|
13337
|
-
"default": "\"m\"",
|
|
13338
|
-
"description": "The size of the spinner.",
|
|
13339
|
-
"attribute": "size",
|
|
13340
|
-
"reflects": true
|
|
13341
|
-
},
|
|
13342
|
-
{
|
|
13343
|
-
"kind": "field",
|
|
13344
|
-
"name": "color",
|
|
13345
|
-
"type": {
|
|
13346
|
-
"text": "string | undefined"
|
|
13347
|
-
},
|
|
13348
|
-
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
|
|
13349
|
-
"attribute": "color",
|
|
13350
|
-
"reflects": true
|
|
13351
|
-
},
|
|
13352
|
-
{
|
|
13353
|
-
"kind": "field",
|
|
13354
|
-
"name": "label",
|
|
13355
|
-
"type": {
|
|
13356
|
-
"text": "string | undefined"
|
|
13357
|
-
},
|
|
13358
|
-
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
13359
|
-
"attribute": "label",
|
|
13360
|
-
"reflects": true
|
|
13361
|
-
}
|
|
13362
|
-
],
|
|
13363
|
-
"attributes": [
|
|
13364
|
-
{
|
|
13365
|
-
"name": "size",
|
|
13366
|
-
"type": {
|
|
13367
|
-
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13368
|
-
},
|
|
13369
|
-
"default": "\"m\"",
|
|
13370
|
-
"description": "The size of the spinner.",
|
|
13371
|
-
"fieldName": "size"
|
|
13372
|
-
},
|
|
13373
|
-
{
|
|
13374
|
-
"name": "color",
|
|
13375
|
-
"type": {
|
|
13376
|
-
"text": "string | undefined"
|
|
13377
|
-
},
|
|
13378
|
-
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
|
|
13379
|
-
"fieldName": "color"
|
|
13380
|
-
},
|
|
13381
|
-
{
|
|
13382
|
-
"name": "label",
|
|
13383
|
-
"type": {
|
|
13384
|
-
"text": "string | undefined"
|
|
13385
|
-
},
|
|
13386
|
-
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
13387
|
-
"fieldName": "label"
|
|
13388
|
-
}
|
|
13389
|
-
],
|
|
13390
|
-
"superclass": {
|
|
13391
|
-
"name": "LitElement",
|
|
13392
|
-
"package": "lit"
|
|
13393
|
-
},
|
|
13394
|
-
"localization": [],
|
|
13395
|
-
"status": "ready",
|
|
13396
|
-
"category": "feedback",
|
|
13397
|
-
"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",
|
|
13398
|
-
"examples": [],
|
|
13399
|
-
"dependencies": [],
|
|
13400
|
-
"tagName": "nord-spinner",
|
|
13401
|
-
"customElement": true
|
|
13402
|
-
}
|
|
13403
|
-
],
|
|
13404
|
-
"exports": [
|
|
13405
|
-
{
|
|
13406
|
-
"kind": "js",
|
|
13407
|
-
"name": "default",
|
|
13408
|
-
"declaration": {
|
|
13409
|
-
"name": "Spinner",
|
|
13410
|
-
"module": "src/spinner/Spinner.ts"
|
|
13411
|
-
}
|
|
13412
|
-
},
|
|
13413
|
-
{
|
|
13414
|
-
"kind": "custom-element-definition",
|
|
13415
|
-
"name": "nord-spinner",
|
|
13416
|
-
"declaration": {
|
|
13417
|
-
"name": "Spinner",
|
|
13418
|
-
"module": "src/spinner/Spinner.ts"
|
|
13419
|
-
}
|
|
13420
|
-
}
|
|
13421
|
-
]
|
|
13422
|
-
},
|
|
13423
13331
|
{
|
|
13424
13332
|
"kind": "javascript-module",
|
|
13425
13333
|
"path": "src/stack/Stack.ts",
|
|
@@ -13629,13 +13537,121 @@
|
|
|
13629
13537
|
],
|
|
13630
13538
|
"attributes": [
|
|
13631
13539
|
{
|
|
13632
|
-
"name": "selected",
|
|
13540
|
+
"name": "selected",
|
|
13541
|
+
"type": {
|
|
13542
|
+
"text": "boolean"
|
|
13543
|
+
},
|
|
13544
|
+
"default": "false",
|
|
13545
|
+
"description": "Whether the tab item is selected",
|
|
13546
|
+
"fieldName": "selected"
|
|
13547
|
+
}
|
|
13548
|
+
],
|
|
13549
|
+
"superclass": {
|
|
13550
|
+
"name": "LitElement",
|
|
13551
|
+
"package": "lit"
|
|
13552
|
+
},
|
|
13553
|
+
"localization": [],
|
|
13554
|
+
"status": "ready",
|
|
13555
|
+
"category": "navigation",
|
|
13556
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab component within the tab group component.\n- Use the `selected` option to signify if the tab is selected.\n- Use text, icons and other non-interactive content within the tab.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use tabs to navigate to other pages. Use navigation or links instead.\n- Don't use the tab component outside of the tab group component.\n- Don't add interactive elements, such as buttons and links, inside the tab component.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular section you wish to show out of order of the tabs UI itself consider using the `selected` option to select the tab but prevent the order of the tabs being affected.\n",
|
|
13557
|
+
"examples": [],
|
|
13558
|
+
"dependencies": [],
|
|
13559
|
+
"tagName": "nord-tab",
|
|
13560
|
+
"customElement": true
|
|
13561
|
+
}
|
|
13562
|
+
],
|
|
13563
|
+
"exports": [
|
|
13564
|
+
{
|
|
13565
|
+
"kind": "js",
|
|
13566
|
+
"name": "default",
|
|
13567
|
+
"declaration": {
|
|
13568
|
+
"name": "Tab",
|
|
13569
|
+
"module": "src/tab/Tab.ts"
|
|
13570
|
+
}
|
|
13571
|
+
},
|
|
13572
|
+
{
|
|
13573
|
+
"kind": "custom-element-definition",
|
|
13574
|
+
"name": "nord-tab",
|
|
13575
|
+
"declaration": {
|
|
13576
|
+
"name": "Tab",
|
|
13577
|
+
"module": "src/tab/Tab.ts"
|
|
13578
|
+
}
|
|
13579
|
+
}
|
|
13580
|
+
]
|
|
13581
|
+
},
|
|
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
13633
|
"type": {
|
|
13634
|
-
"text": "
|
|
13634
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
13635
13635
|
},
|
|
13636
|
-
"default": "
|
|
13637
|
-
"description": "
|
|
13638
|
-
"fieldName": "
|
|
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"
|
|
13639
13655
|
}
|
|
13640
13656
|
],
|
|
13641
13657
|
"superclass": {
|
|
@@ -13644,11 +13660,11 @@
|
|
|
13644
13660
|
},
|
|
13645
13661
|
"localization": [],
|
|
13646
13662
|
"status": "ready",
|
|
13647
|
-
"category": "
|
|
13648
|
-
"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
|
|
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",
|
|
13649
13665
|
"examples": [],
|
|
13650
13666
|
"dependencies": [],
|
|
13651
|
-
"tagName": "nord-
|
|
13667
|
+
"tagName": "nord-spinner",
|
|
13652
13668
|
"customElement": true
|
|
13653
13669
|
}
|
|
13654
13670
|
],
|
|
@@ -13657,16 +13673,16 @@
|
|
|
13657
13673
|
"kind": "js",
|
|
13658
13674
|
"name": "default",
|
|
13659
13675
|
"declaration": {
|
|
13660
|
-
"name": "
|
|
13661
|
-
"module": "src/
|
|
13676
|
+
"name": "Spinner",
|
|
13677
|
+
"module": "src/spinner/Spinner.ts"
|
|
13662
13678
|
}
|
|
13663
13679
|
},
|
|
13664
13680
|
{
|
|
13665
13681
|
"kind": "custom-element-definition",
|
|
13666
|
-
"name": "nord-
|
|
13682
|
+
"name": "nord-spinner",
|
|
13667
13683
|
"declaration": {
|
|
13668
|
-
"name": "
|
|
13669
|
-
"module": "src/
|
|
13684
|
+
"name": "Spinner",
|
|
13685
|
+
"module": "src/spinner/Spinner.ts"
|
|
13670
13686
|
}
|
|
13671
13687
|
}
|
|
13672
13688
|
]
|
|
@@ -15177,6 +15193,84 @@
|
|
|
15177
15193
|
}
|
|
15178
15194
|
]
|
|
15179
15195
|
},
|
|
15196
|
+
{
|
|
15197
|
+
"kind": "javascript-module",
|
|
15198
|
+
"path": "src/toast-group/ToastGroup.ts",
|
|
15199
|
+
"declarations": [
|
|
15200
|
+
{
|
|
15201
|
+
"kind": "class",
|
|
15202
|
+
"description": "Toast group is used to position and style a group of toasts, whilst ensuring they are announced by screen readers.",
|
|
15203
|
+
"name": "ToastGroup",
|
|
15204
|
+
"slots": [
|
|
15205
|
+
{
|
|
15206
|
+
"description": "Default slot in which to place toasts.",
|
|
15207
|
+
"name": ""
|
|
15208
|
+
}
|
|
15209
|
+
],
|
|
15210
|
+
"members": [
|
|
15211
|
+
{
|
|
15212
|
+
"kind": "method",
|
|
15213
|
+
"name": "addToast",
|
|
15214
|
+
"parameters": [
|
|
15215
|
+
{
|
|
15216
|
+
"name": "text",
|
|
15217
|
+
"type": {
|
|
15218
|
+
"text": "string"
|
|
15219
|
+
},
|
|
15220
|
+
"description": "The text/message of the toast."
|
|
15221
|
+
},
|
|
15222
|
+
{
|
|
15223
|
+
"name": "options",
|
|
15224
|
+
"default": "{}",
|
|
15225
|
+
"type": {
|
|
15226
|
+
"text": "ToastOptions"
|
|
15227
|
+
},
|
|
15228
|
+
"description": "An optional object for configuring the toast's `variant` and `autoDismiss`."
|
|
15229
|
+
}
|
|
15230
|
+
],
|
|
15231
|
+
"description": "Convenience method for creating and adding a toast to the group.",
|
|
15232
|
+
"return": {
|
|
15233
|
+
"type": {
|
|
15234
|
+
"text": "Toast"
|
|
15235
|
+
}
|
|
15236
|
+
}
|
|
15237
|
+
}
|
|
15238
|
+
],
|
|
15239
|
+
"superclass": {
|
|
15240
|
+
"name": "LitElement",
|
|
15241
|
+
"package": "lit"
|
|
15242
|
+
},
|
|
15243
|
+
"localization": [],
|
|
15244
|
+
"status": "ready",
|
|
15245
|
+
"category": "feedback",
|
|
15246
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use in combination with [Toast](/components/toast/) so that toasts get styled and announced to screen readers correctly.\n- Add as close to the bottom of the document as possible, ideally near the body closing tag, to maintain correct stacking order.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than toast components\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and understandable by the user:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast 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\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
15247
|
+
"examples": [],
|
|
15248
|
+
"dependencies": [
|
|
15249
|
+
"toast"
|
|
15250
|
+
],
|
|
15251
|
+
"tagName": "nord-toast-group",
|
|
15252
|
+
"customElement": true
|
|
15253
|
+
}
|
|
15254
|
+
],
|
|
15255
|
+
"exports": [
|
|
15256
|
+
{
|
|
15257
|
+
"kind": "js",
|
|
15258
|
+
"name": "default",
|
|
15259
|
+
"declaration": {
|
|
15260
|
+
"name": "ToastGroup",
|
|
15261
|
+
"module": "src/toast-group/ToastGroup.ts"
|
|
15262
|
+
}
|
|
15263
|
+
},
|
|
15264
|
+
{
|
|
15265
|
+
"kind": "custom-element-definition",
|
|
15266
|
+
"name": "nord-toast-group",
|
|
15267
|
+
"declaration": {
|
|
15268
|
+
"name": "ToastGroup",
|
|
15269
|
+
"module": "src/toast-group/ToastGroup.ts"
|
|
15270
|
+
}
|
|
15271
|
+
}
|
|
15272
|
+
]
|
|
15273
|
+
},
|
|
15180
15274
|
{
|
|
15181
15275
|
"kind": "javascript-module",
|
|
15182
15276
|
"path": "src/toggle/Toggle.ts",
|
|
@@ -15884,84 +15978,6 @@
|
|
|
15884
15978
|
}
|
|
15885
15979
|
]
|
|
15886
15980
|
},
|
|
15887
|
-
{
|
|
15888
|
-
"kind": "javascript-module",
|
|
15889
|
-
"path": "src/toast-group/ToastGroup.ts",
|
|
15890
|
-
"declarations": [
|
|
15891
|
-
{
|
|
15892
|
-
"kind": "class",
|
|
15893
|
-
"description": "Toast group is used to position and style a group of toasts, whilst ensuring they are announced by screen readers.",
|
|
15894
|
-
"name": "ToastGroup",
|
|
15895
|
-
"slots": [
|
|
15896
|
-
{
|
|
15897
|
-
"description": "Default slot in which to place toasts.",
|
|
15898
|
-
"name": ""
|
|
15899
|
-
}
|
|
15900
|
-
],
|
|
15901
|
-
"members": [
|
|
15902
|
-
{
|
|
15903
|
-
"kind": "method",
|
|
15904
|
-
"name": "addToast",
|
|
15905
|
-
"parameters": [
|
|
15906
|
-
{
|
|
15907
|
-
"name": "text",
|
|
15908
|
-
"type": {
|
|
15909
|
-
"text": "string"
|
|
15910
|
-
},
|
|
15911
|
-
"description": "The text/message of the toast."
|
|
15912
|
-
},
|
|
15913
|
-
{
|
|
15914
|
-
"name": "options",
|
|
15915
|
-
"default": "{}",
|
|
15916
|
-
"type": {
|
|
15917
|
-
"text": "ToastOptions"
|
|
15918
|
-
},
|
|
15919
|
-
"description": "An optional object for configuring the toast's `variant` and `autoDismiss`."
|
|
15920
|
-
}
|
|
15921
|
-
],
|
|
15922
|
-
"description": "Convenience method for creating and adding a toast to the group.",
|
|
15923
|
-
"return": {
|
|
15924
|
-
"type": {
|
|
15925
|
-
"text": "Toast"
|
|
15926
|
-
}
|
|
15927
|
-
}
|
|
15928
|
-
}
|
|
15929
|
-
],
|
|
15930
|
-
"superclass": {
|
|
15931
|
-
"name": "LitElement",
|
|
15932
|
-
"package": "lit"
|
|
15933
|
-
},
|
|
15934
|
-
"localization": [],
|
|
15935
|
-
"status": "ready",
|
|
15936
|
-
"category": "feedback",
|
|
15937
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use in combination with [Toast](/components/toast/) so that toasts get styled and announced to screen readers correctly.\n- Add as close to the bottom of the document as possible, ideally near the body closing tag, to maintain correct stacking order.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping anything other than toast components\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and understandable by the user:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast 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\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
15938
|
-
"examples": [],
|
|
15939
|
-
"dependencies": [
|
|
15940
|
-
"toast"
|
|
15941
|
-
],
|
|
15942
|
-
"tagName": "nord-toast-group",
|
|
15943
|
-
"customElement": true
|
|
15944
|
-
}
|
|
15945
|
-
],
|
|
15946
|
-
"exports": [
|
|
15947
|
-
{
|
|
15948
|
-
"kind": "js",
|
|
15949
|
-
"name": "default",
|
|
15950
|
-
"declaration": {
|
|
15951
|
-
"name": "ToastGroup",
|
|
15952
|
-
"module": "src/toast-group/ToastGroup.ts"
|
|
15953
|
-
}
|
|
15954
|
-
},
|
|
15955
|
-
{
|
|
15956
|
-
"kind": "custom-element-definition",
|
|
15957
|
-
"name": "nord-toast-group",
|
|
15958
|
-
"declaration": {
|
|
15959
|
-
"name": "ToastGroup",
|
|
15960
|
-
"module": "src/toast-group/ToastGroup.ts"
|
|
15961
|
-
}
|
|
15962
|
-
}
|
|
15963
|
-
]
|
|
15964
|
-
},
|
|
15965
15981
|
{
|
|
15966
15982
|
"kind": "javascript-module",
|
|
15967
15983
|
"path": "src/tooltip/Tooltip.ts",
|
|
@@ -16227,16 +16243,20 @@
|
|
|
16227
16243
|
},
|
|
16228
16244
|
{
|
|
16229
16245
|
"kind": "javascript-module",
|
|
16230
|
-
"path": "src/
|
|
16246
|
+
"path": "src/top-bar/TopBar.ts",
|
|
16231
16247
|
"declarations": [
|
|
16232
16248
|
{
|
|
16233
16249
|
"kind": "class",
|
|
16234
|
-
"description": "
|
|
16235
|
-
"name": "
|
|
16250
|
+
"description": "Top bar is a header component that is always visible at the top of the interface. Top bar allows functionality such as search and contextual menus to be placed at the top of the interface.",
|
|
16251
|
+
"name": "TopBar",
|
|
16236
16252
|
"slots": [
|
|
16237
16253
|
{
|
|
16238
|
-
"description": "
|
|
16254
|
+
"description": "Used for the main content of the top bar. We recommend placing your application’s global search functionality into this slot.",
|
|
16239
16255
|
"name": ""
|
|
16256
|
+
},
|
|
16257
|
+
{
|
|
16258
|
+
"description": "Optional slot for menus, buttons, toggles, etc.",
|
|
16259
|
+
"name": "end"
|
|
16240
16260
|
}
|
|
16241
16261
|
],
|
|
16242
16262
|
"members": [],
|
|
@@ -16245,12 +16265,11 @@
|
|
|
16245
16265
|
"package": "lit"
|
|
16246
16266
|
},
|
|
16247
16267
|
"localization": [],
|
|
16248
|
-
"
|
|
16249
|
-
"
|
|
16250
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to hide text visually from the screen, but keep it available to assistive technologies, such as screen readers.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for hiding interactive content.\n\n</div>\n",
|
|
16268
|
+
"category": "structure",
|
|
16269
|
+
"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- Applications that utilize the top bar can allow users to customize the color of the top bar to match their preference. [View an example](/components/top-bar/?example=color).\n- If your application allows it, include search to help users find resources and navigate.\n- Include a user menu in the end slot of the top bar.\n- Use the [layout component](/components/layout/?example=top-bar) to provide structure for the top bar component. We’ve also created [an example which shows full theming capabilities](/components/layout/?example=theming).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for global navigation. Use the [navigation component](/components/navigation/) instead.\n- Don’t allow the user to set a top bar color that doesn’t provide enough contrast with the content.\n- Don’t allow the user to freely pick a hex code as the top bar color. Instead, offer a choice from a predefined palette of colors which provides sufficient contrast with the content. [View an example](/components/top-bar/?example=color).\n\n</div>\n\n---\n\n## Theming\n\nPlease see the [Top Bar theming](/themes/#top-bar-theming) section in our theming documentation for detailed guidelines.\n\n<nord-button variant=\"primary\" href=\"/themes/#top-bar-theming\">Theming Guidelines</nord-button>\n",
|
|
16251
16270
|
"examples": [],
|
|
16252
16271
|
"dependencies": [],
|
|
16253
|
-
"tagName": "nord-
|
|
16272
|
+
"tagName": "nord-top-bar",
|
|
16254
16273
|
"customElement": true
|
|
16255
16274
|
}
|
|
16256
16275
|
],
|
|
@@ -16259,36 +16278,32 @@
|
|
|
16259
16278
|
"kind": "js",
|
|
16260
16279
|
"name": "default",
|
|
16261
16280
|
"declaration": {
|
|
16262
|
-
"name": "
|
|
16263
|
-
"module": "src/
|
|
16281
|
+
"name": "TopBar",
|
|
16282
|
+
"module": "src/top-bar/TopBar.ts"
|
|
16264
16283
|
}
|
|
16265
16284
|
},
|
|
16266
16285
|
{
|
|
16267
16286
|
"kind": "custom-element-definition",
|
|
16268
|
-
"name": "nord-
|
|
16287
|
+
"name": "nord-top-bar",
|
|
16269
16288
|
"declaration": {
|
|
16270
|
-
"name": "
|
|
16271
|
-
"module": "src/
|
|
16289
|
+
"name": "TopBar",
|
|
16290
|
+
"module": "src/top-bar/TopBar.ts"
|
|
16272
16291
|
}
|
|
16273
16292
|
}
|
|
16274
16293
|
]
|
|
16275
16294
|
},
|
|
16276
16295
|
{
|
|
16277
16296
|
"kind": "javascript-module",
|
|
16278
|
-
"path": "src/
|
|
16297
|
+
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
16279
16298
|
"declarations": [
|
|
16280
16299
|
{
|
|
16281
16300
|
"kind": "class",
|
|
16282
|
-
"description": "
|
|
16283
|
-
"name": "
|
|
16301
|
+
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
16302
|
+
"name": "VisuallyHidden",
|
|
16284
16303
|
"slots": [
|
|
16285
16304
|
{
|
|
16286
|
-
"description": "
|
|
16305
|
+
"description": "The visually hidden content.",
|
|
16287
16306
|
"name": ""
|
|
16288
|
-
},
|
|
16289
|
-
{
|
|
16290
|
-
"description": "Optional slot for menus, buttons, toggles, etc.",
|
|
16291
|
-
"name": "end"
|
|
16292
16307
|
}
|
|
16293
16308
|
],
|
|
16294
16309
|
"members": [],
|
|
@@ -16297,11 +16312,12 @@
|
|
|
16297
16312
|
"package": "lit"
|
|
16298
16313
|
},
|
|
16299
16314
|
"localization": [],
|
|
16300
|
-
"
|
|
16301
|
-
"
|
|
16315
|
+
"status": "ready",
|
|
16316
|
+
"category": "text",
|
|
16317
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to hide text visually from the screen, but keep it available to assistive technologies, such as screen readers.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for hiding interactive content.\n\n</div>\n",
|
|
16302
16318
|
"examples": [],
|
|
16303
16319
|
"dependencies": [],
|
|
16304
|
-
"tagName": "nord-
|
|
16320
|
+
"tagName": "nord-visually-hidden",
|
|
16305
16321
|
"customElement": true
|
|
16306
16322
|
}
|
|
16307
16323
|
],
|
|
@@ -16310,16 +16326,16 @@
|
|
|
16310
16326
|
"kind": "js",
|
|
16311
16327
|
"name": "default",
|
|
16312
16328
|
"declaration": {
|
|
16313
|
-
"name": "
|
|
16314
|
-
"module": "src/
|
|
16329
|
+
"name": "VisuallyHidden",
|
|
16330
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
16315
16331
|
}
|
|
16316
16332
|
},
|
|
16317
16333
|
{
|
|
16318
16334
|
"kind": "custom-element-definition",
|
|
16319
|
-
"name": "nord-
|
|
16335
|
+
"name": "nord-visually-hidden",
|
|
16320
16336
|
"declaration": {
|
|
16321
|
-
"name": "
|
|
16322
|
-
"module": "src/
|
|
16337
|
+
"name": "VisuallyHidden",
|
|
16338
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
16323
16339
|
}
|
|
16324
16340
|
}
|
|
16325
16341
|
]
|