@nordhealth/components 1.0.0-alpha.43 → 1.0.0-alpha.44

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.
Files changed (110) hide show
  1. package/custom-elements.json +2964 -713
  2. package/lib/Badge.js +1 -1
  3. package/lib/Badge.js.map +1 -1
  4. package/lib/Button.js +1 -1
  5. package/lib/Button.js.map +1 -1
  6. package/lib/Calendar-3ce42a4e.js +13 -0
  7. package/lib/Calendar-3ce42a4e.js.map +1 -0
  8. package/lib/Calendar.js +2 -0
  9. package/lib/Calendar.js.map +1 -0
  10. package/lib/Card.js +1 -1
  11. package/lib/Card.js.map +1 -1
  12. package/lib/CommandMenu.js +2 -2
  13. package/lib/CommandMenu.js.map +1 -1
  14. package/lib/CommandMenuAction.js +1 -1
  15. package/lib/CommandMenuAction.js.map +1 -1
  16. package/lib/DatePicker.js +2 -0
  17. package/lib/DatePicker.js.map +1 -0
  18. package/lib/DateSelectEvent.js +2 -0
  19. package/lib/DateSelectEvent.js.map +1 -0
  20. package/lib/DraftComponentMixin-1d7c27bc.js +21 -0
  21. package/lib/DraftComponentMixin-1d7c27bc.js.map +1 -0
  22. package/lib/FormField-51d4bc33.js +2 -0
  23. package/lib/{FormField-ba861a0b.js.map → FormField-51d4bc33.js.map} +1 -1
  24. package/lib/Icon.js +1 -1
  25. package/lib/Icon.js.map +1 -1
  26. package/lib/Input.js +1 -1
  27. package/lib/Input.js.map +1 -1
  28. package/lib/InputMixin-3557c381.js +2 -0
  29. package/lib/{InputMixin-6c108de4.js.map → InputMixin-3557c381.js.map} +1 -1
  30. package/lib/KeyboardController.js +1 -1
  31. package/lib/KeyboardController.js.map +1 -1
  32. package/lib/LightDismissController-62f9b7d6.js +2 -0
  33. package/lib/LightDismissController-62f9b7d6.js.map +1 -0
  34. package/lib/Select.js +1 -1
  35. package/lib/Select.js.map +1 -1
  36. package/lib/ShortcutController-00c16c78.js +2 -0
  37. package/lib/ShortcutController-00c16c78.js.map +1 -0
  38. package/lib/Spinner.js +1 -1
  39. package/lib/Spinner.js.map +1 -1
  40. package/lib/Stack.js +1 -1
  41. package/lib/Stack.js.map +1 -1
  42. package/lib/Table.js +1 -1
  43. package/lib/Table.js.map +1 -1
  44. package/lib/TextField-fa6242da.js +2 -0
  45. package/lib/TextField-fa6242da.js.map +1 -0
  46. package/lib/Textarea.js +1 -1
  47. package/lib/Textarea.js.map +1 -1
  48. package/lib/VisuallyHidden.js +1 -1
  49. package/lib/VisuallyHidden.js.map +1 -1
  50. package/lib/calendar-localization.js +2 -0
  51. package/lib/calendar-localization.js.map +1 -0
  52. package/lib/class-map-756151db.js +7 -0
  53. package/lib/class-map-756151db.js.map +1 -0
  54. package/lib/collection-f3631dc8.js +2 -0
  55. package/lib/collection-f3631dc8.js.map +1 -0
  56. package/lib/date-adapter.js +2 -0
  57. package/lib/date-adapter.js.map +1 -0
  58. package/lib/date-localization.js +2 -0
  59. package/lib/date-localization.js.map +1 -0
  60. package/lib/dates-ccf5a897.js +2 -0
  61. package/lib/dates-ccf5a897.js.map +1 -0
  62. package/lib/if-defined-9acae812.js +7 -0
  63. package/lib/{if-defined-617ae549.js.map → if-defined-9acae812.js.map} +1 -1
  64. package/lib/index.js +1 -1
  65. package/lib/lit-element-5ddf42d5.js +24 -0
  66. package/lib/lit-element-5ddf42d5.js.map +1 -0
  67. package/lib/month-view.js +2 -0
  68. package/lib/month-view.js.map +1 -0
  69. package/lib/number-3ff8cd9b.js +2 -0
  70. package/lib/number-3ff8cd9b.js.map +1 -0
  71. package/lib/{ref-65ef7607.js → ref-9addd32e.js} +4 -4
  72. package/lib/{ref-65ef7607.js.map → ref-9addd32e.js.map} +1 -1
  73. package/lib/src/calendar/Calendar.d.ts +86 -0
  74. package/lib/src/calendar/DateSelectEvent.d.ts +6 -0
  75. package/lib/src/calendar/calendar-localization.d.ts +15 -0
  76. package/lib/src/calendar/month-view.d.ts +32 -0
  77. package/lib/src/common/collection.d.ts +15 -0
  78. package/lib/src/common/controllers/DirectionController.d.ts +14 -0
  79. package/lib/src/common/controllers/LightDismissController.d.ts +1 -0
  80. package/lib/src/common/controllers/SwipeController.d.ts +32 -0
  81. package/lib/src/common/dates.d.ts +50 -0
  82. package/lib/src/common/dates.test.d.ts +1 -0
  83. package/lib/src/common/input.d.ts +1 -0
  84. package/lib/src/common/number.d.ts +1 -0
  85. package/lib/src/date-picker/DatePicker.d.ts +116 -0
  86. package/lib/src/date-picker/DatePicker.test.d.ts +1 -0
  87. package/lib/src/date-picker/date-adapter.d.ts +10 -0
  88. package/lib/src/date-picker/date-localization.d.ts +8 -0
  89. package/lib/src/index.d.ts +2 -0
  90. package/lib/state-70f38ceb.js +7 -0
  91. package/lib/state-70f38ceb.js.map +1 -0
  92. package/lib/tinykeys.module-26a9f7a7.js +2 -0
  93. package/lib/tinykeys.module-26a9f7a7.js.map +1 -0
  94. package/lib/unsafe-html-c7264329.js +7 -0
  95. package/lib/{unsafe-html-21f62902.js.map → unsafe-html-c7264329.js.map} +1 -1
  96. package/package.json +8 -4
  97. package/lib/CommandMenuAction-b286bcbb.js +0 -7
  98. package/lib/CommandMenuAction-b286bcbb.js.map +0 -1
  99. package/lib/DraftComponentMixin-4bb26f5d.js +0 -44
  100. package/lib/DraftComponentMixin-4bb26f5d.js.map +0 -1
  101. package/lib/FormField-ba861a0b.js +0 -2
  102. package/lib/Icon-559d954d.js +0 -7
  103. package/lib/Icon-559d954d.js.map +0 -1
  104. package/lib/InputMixin-6c108de4.js +0 -2
  105. package/lib/KeyboardController-28c7135b.js +0 -2
  106. package/lib/KeyboardController-28c7135b.js.map +0 -1
  107. package/lib/TextField-bfdc253c.js +0 -2
  108. package/lib/TextField-bfdc253c.js.map +0 -1
  109. package/lib/if-defined-617ae549.js +0 -7
  110. package/lib/unsafe-html-21f62902.js +0 -7
@@ -110,6 +110,22 @@
110
110
  "name": "default",
111
111
  "module": "\"./textarea/Textarea.js\""
112
112
  }
113
+ },
114
+ {
115
+ "kind": "js",
116
+ "name": "Calendar",
117
+ "declaration": {
118
+ "name": "default",
119
+ "module": "\"./calendar/Calendar.js\""
120
+ }
121
+ },
122
+ {
123
+ "kind": "js",
124
+ "name": "DatePicker",
125
+ "declaration": {
126
+ "name": "default",
127
+ "module": "\"./date-picker/DatePicker.js\""
128
+ }
113
129
  }
114
130
  ]
115
131
  },
@@ -349,8 +365,9 @@
349
365
  "kind": "field",
350
366
  "name": "value",
351
367
  "type": {
352
- "text": "string | undefined"
368
+ "text": "string"
353
369
  },
370
+ "default": "\"\"",
354
371
  "description": "The value of the input component.",
355
372
  "attribute": "value",
356
373
  "inheritedFrom": {
@@ -520,8 +537,9 @@
520
537
  {
521
538
  "name": "value",
522
539
  "type": {
523
- "text": "string | undefined"
540
+ "text": "string"
524
541
  },
542
+ "default": "\"\"",
525
543
  "description": "The value of the input component.",
526
544
  "fieldName": "value",
527
545
  "inheritedFrom": {
@@ -575,43 +593,274 @@
575
593
  },
576
594
  {
577
595
  "kind": "javascript-module",
578
- "path": "src/card/Card.ts",
596
+ "path": "src/calendar/Calendar.ts",
579
597
  "declarations": [
580
598
  {
581
599
  "kind": "class",
582
- "description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
583
- "name": "Card",
584
- "slots": [
600
+ "description": "Calendar allows user to pick a date. It comes with built-in\nfunctionality that allows you to set a minimum and a maximum allowed date.\nPlease note that the date must be passed in IS0-8601 format.",
601
+ "name": "Calendar",
602
+ "members": [
585
603
  {
586
- "description": "The card content.",
587
- "name": ""
604
+ "kind": "field",
605
+ "name": "dialogLabelId",
606
+ "type": {
607
+ "text": "string"
608
+ },
609
+ "privacy": "private",
610
+ "default": "\"dialog-header\""
588
611
  },
589
612
  {
590
- "description": "Optional slot that holds a header for the card.",
591
- "name": "header"
613
+ "kind": "field",
614
+ "name": "monthSelectNode",
615
+ "type": {
616
+ "text": "HTMLElement"
617
+ },
618
+ "privacy": "private"
592
619
  },
593
620
  {
594
- "description": "Optional slot that holds footer content for the card.",
595
- "name": "footer"
596
- }
597
- ],
598
- "members": [
621
+ "kind": "field",
622
+ "name": "focusedDayNode",
623
+ "type": {
624
+ "text": "HTMLButtonElement"
625
+ },
626
+ "privacy": "private"
627
+ },
599
628
  {
600
629
  "kind": "field",
601
- "name": "slots",
630
+ "name": "direction",
602
631
  "privacy": "private",
603
- "default": "new SlotController(this)"
632
+ "default": "new DirectionController(this)"
604
633
  },
605
634
  {
606
635
  "kind": "field",
607
- "name": "padding",
636
+ "name": "swipe",
637
+ "privacy": "private",
638
+ "default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
639
+ },
640
+ {
641
+ "kind": "field",
642
+ "name": "shortcuts",
643
+ "privacy": "private"
644
+ },
645
+ {
646
+ "kind": "field",
647
+ "name": "dateFormatShort",
608
648
  "type": {
609
- "text": "\"m\" | \"l\" | \"none\""
649
+ "text": "Intl.DateTimeFormat"
610
650
  },
611
- "default": "\"m\"",
612
- "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
613
- "attribute": "padding",
614
- "reflects": true
651
+ "privacy": "private",
652
+ "description": "Whilst dateAdapter is used for handling the formatting/parsing dates in the input,\nthese are used to format dates exclusively for the benefit of screen readers.\n\nWe prefer DateTimeFormat over date.toLocaleDateString, as the former has\nbetter performance when formatting large number of dates. See:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#Performance"
653
+ },
654
+ {
655
+ "kind": "field",
656
+ "name": "localization",
657
+ "type": {
658
+ "text": "CalendarLocalizedText"
659
+ },
660
+ "default": "localization"
661
+ },
662
+ {
663
+ "kind": "field",
664
+ "name": "value",
665
+ "type": {
666
+ "text": "string"
667
+ },
668
+ "default": "\"\"",
669
+ "description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
670
+ "attribute": "value"
671
+ },
672
+ {
673
+ "kind": "field",
674
+ "name": "firstDayOfWeek",
675
+ "type": {
676
+ "text": "DaysOfWeek"
677
+ },
678
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
679
+ "attribute": "firstDayOfWeek"
680
+ },
681
+ {
682
+ "kind": "field",
683
+ "name": "min",
684
+ "type": {
685
+ "text": "string"
686
+ },
687
+ "default": "\"\"",
688
+ "description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
689
+ "attribute": "min"
690
+ },
691
+ {
692
+ "kind": "field",
693
+ "name": "max",
694
+ "type": {
695
+ "text": "string"
696
+ },
697
+ "default": "\"\"",
698
+ "description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
699
+ "attribute": "max"
700
+ },
701
+ {
702
+ "kind": "field",
703
+ "name": "isDateDisabled",
704
+ "type": {
705
+ "text": "DateDisabledPredicate"
706
+ },
707
+ "description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
708
+ },
709
+ {
710
+ "kind": "field",
711
+ "name": "activeFocus",
712
+ "type": {
713
+ "text": "boolean"
714
+ },
715
+ "privacy": "private",
716
+ "default": "false"
717
+ },
718
+ {
719
+ "kind": "field",
720
+ "name": "focusedDay",
721
+ "privacy": "private",
722
+ "default": "new Date()"
723
+ },
724
+ {
725
+ "kind": "method",
726
+ "name": "focus",
727
+ "parameters": [
728
+ {
729
+ "name": "options",
730
+ "optional": true,
731
+ "type": {
732
+ "text": "FocusOptions & { target: \"day\" | \"month\" }"
733
+ }
734
+ }
735
+ ]
736
+ },
737
+ {
738
+ "kind": "method",
739
+ "name": "createDateFormatter",
740
+ "privacy": "private"
741
+ },
742
+ {
743
+ "kind": "field",
744
+ "name": "handleDaySelect",
745
+ "privacy": "private"
746
+ },
747
+ {
748
+ "kind": "method",
749
+ "name": "addDays",
750
+ "privacy": "private",
751
+ "parameters": [
752
+ {
753
+ "name": "days",
754
+ "type": {
755
+ "text": "number"
756
+ }
757
+ }
758
+ ]
759
+ },
760
+ {
761
+ "kind": "method",
762
+ "name": "addMonths",
763
+ "privacy": "private",
764
+ "parameters": [
765
+ {
766
+ "name": "months",
767
+ "type": {
768
+ "text": "number"
769
+ }
770
+ }
771
+ ]
772
+ },
773
+ {
774
+ "kind": "method",
775
+ "name": "addYears",
776
+ "privacy": "private",
777
+ "parameters": [
778
+ {
779
+ "name": "years",
780
+ "type": {
781
+ "text": "number"
782
+ }
783
+ }
784
+ ]
785
+ },
786
+ {
787
+ "kind": "method",
788
+ "name": "startOfWeek",
789
+ "privacy": "private"
790
+ },
791
+ {
792
+ "kind": "method",
793
+ "name": "endOfWeek",
794
+ "privacy": "private"
795
+ },
796
+ {
797
+ "kind": "method",
798
+ "name": "setMonth",
799
+ "privacy": "private",
800
+ "parameters": [
801
+ {
802
+ "name": "month",
803
+ "type": {
804
+ "text": "number"
805
+ }
806
+ }
807
+ ]
808
+ },
809
+ {
810
+ "kind": "method",
811
+ "name": "setYear",
812
+ "privacy": "private",
813
+ "parameters": [
814
+ {
815
+ "name": "year",
816
+ "type": {
817
+ "text": "number"
818
+ }
819
+ }
820
+ ]
821
+ },
822
+ {
823
+ "kind": "method",
824
+ "name": "setFocusedDay",
825
+ "privacy": "private",
826
+ "parameters": [
827
+ {
828
+ "name": "day",
829
+ "type": {
830
+ "text": "Date"
831
+ }
832
+ }
833
+ ]
834
+ },
835
+ {
836
+ "kind": "field",
837
+ "name": "handleMonthSelect",
838
+ "privacy": "private"
839
+ },
840
+ {
841
+ "kind": "field",
842
+ "name": "handleYearSelect",
843
+ "privacy": "private"
844
+ },
845
+ {
846
+ "kind": "field",
847
+ "name": "handleNextMonthClick",
848
+ "privacy": "private"
849
+ },
850
+ {
851
+ "kind": "field",
852
+ "name": "handlePreviousMonthClick",
853
+ "privacy": "private"
854
+ },
855
+ {
856
+ "kind": "field",
857
+ "name": "enableActiveFocus",
858
+ "privacy": "private"
859
+ },
860
+ {
861
+ "kind": "field",
862
+ "name": "disableActiveFocus",
863
+ "privacy": "private"
615
864
  },
616
865
  {
617
866
  "kind": "field",
@@ -630,13 +879,39 @@
630
879
  ],
631
880
  "attributes": [
632
881
  {
633
- "name": "padding",
882
+ "name": "value",
634
883
  "type": {
635
- "text": "\"m\" | \"l\" | \"none\""
884
+ "text": "string"
636
885
  },
637
- "default": "\"m\"",
638
- "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
639
- "fieldName": "padding"
886
+ "default": "\"\"",
887
+ "description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
888
+ "fieldName": "value"
889
+ },
890
+ {
891
+ "name": "firstDayOfWeek",
892
+ "type": {
893
+ "text": "DaysOfWeek"
894
+ },
895
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
896
+ "fieldName": "firstDayOfWeek"
897
+ },
898
+ {
899
+ "name": "min",
900
+ "type": {
901
+ "text": "string"
902
+ },
903
+ "default": "\"\"",
904
+ "description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
905
+ "fieldName": "min"
906
+ },
907
+ {
908
+ "name": "max",
909
+ "type": {
910
+ "text": "string"
911
+ },
912
+ "default": "\"\"",
913
+ "description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
914
+ "fieldName": "max"
640
915
  }
641
916
  ],
642
917
  "mixins": [
@@ -650,8 +925,8 @@
650
925
  "package": "lit"
651
926
  },
652
927
  "status": "draft",
653
- "category": "structure",
654
- "tagName": "nord-card",
928
+ "category": "form",
929
+ "tagName": "nord-calendar",
655
930
  "customElement": true
656
931
  }
657
932
  ],
@@ -660,510 +935,194 @@
660
935
  "kind": "js",
661
936
  "name": "default",
662
937
  "declaration": {
663
- "name": "Card",
664
- "module": "src/card/Card.ts"
938
+ "name": "Calendar",
939
+ "module": "src/calendar/Calendar.ts"
665
940
  }
666
941
  },
667
942
  {
668
943
  "kind": "custom-element-definition",
669
- "name": "nord-card",
944
+ "name": "nord-calendar",
670
945
  "declaration": {
671
- "name": "Card",
672
- "module": "src/card/Card.ts"
946
+ "name": "Calendar",
947
+ "module": "src/calendar/Calendar.ts"
673
948
  }
674
949
  }
675
950
  ]
676
951
  },
677
952
  {
678
953
  "kind": "javascript-module",
679
- "path": "src/common/collection.ts",
954
+ "path": "src/calendar/DateSelectEvent.ts",
680
955
  "declarations": [
681
956
  {
682
- "kind": "function",
683
- "name": "groupBy",
684
- "parameters": [
957
+ "kind": "class",
958
+ "description": "",
959
+ "name": "DateSelectEvent",
960
+ "members": [
685
961
  {
686
- "name": "array",
962
+ "kind": "field",
963
+ "name": "eventName",
687
964
  "type": {
688
- "text": "Array<TObject>"
965
+ "text": "string"
689
966
  },
690
- "description": "the collection of objects to group"
967
+ "static": true,
968
+ "default": "\"nord-select\""
691
969
  },
692
970
  {
693
- "name": "key",
971
+ "kind": "field",
972
+ "name": "date",
694
973
  "type": {
695
- "text": "TKey"
974
+ "text": "Date"
696
975
  },
697
- "description": "the property to group by"
976
+ "default": "date"
698
977
  }
699
978
  ],
700
- "description": "Groups an array objects by property value",
701
- "return": {
702
- "type": {
703
- "text": ""
704
- }
979
+ "superclass": {
980
+ "name": "NordEvent",
981
+ "module": "/src/common/events.js"
705
982
  }
706
983
  }
707
984
  ],
708
985
  "exports": [
709
986
  {
710
987
  "kind": "js",
711
- "name": "groupBy",
988
+ "name": "DateSelectEvent",
712
989
  "declaration": {
713
- "name": "groupBy",
714
- "module": "src/common/collection.ts"
990
+ "name": "DateSelectEvent",
991
+ "module": "src/calendar/DateSelectEvent.ts"
715
992
  }
716
993
  }
717
994
  ]
718
995
  },
719
996
  {
720
997
  "kind": "javascript-module",
721
- "path": "src/common/events.ts",
998
+ "path": "src/calendar/calendar-localization.ts",
722
999
  "declarations": [
723
1000
  {
724
- "kind": "class",
725
- "description": "A base class for events which defaults to bubbling and composed",
726
- "name": "NordEvent",
727
- "superclass": {
728
- "name": "Event",
729
- "module": "src/common/events.ts"
1001
+ "kind": "variable",
1002
+ "name": "localization",
1003
+ "type": {
1004
+ "text": "CalendarLocalizedText"
730
1005
  },
731
- "status": null,
732
- "category": null
1006
+ "default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n calendarHeading: \"Choose a date\",\n dayNames: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n monthNames: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n monthNamesShort: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n locale: \"en-GB\",\n}"
733
1007
  }
734
1008
  ],
735
1009
  "exports": [
736
1010
  {
737
1011
  "kind": "js",
738
- "name": "NordEvent",
1012
+ "name": "default",
739
1013
  "declaration": {
740
- "name": "NordEvent",
741
- "module": "src/common/events.ts"
1014
+ "name": "localization",
1015
+ "module": "src/calendar/calendar-localization.ts"
742
1016
  }
743
1017
  }
744
1018
  ]
745
1019
  },
746
1020
  {
747
1021
  "kind": "javascript-module",
748
- "path": "src/common/focus.ts",
1022
+ "path": "src/calendar/month-view.ts",
749
1023
  "declarations": [
750
1024
  {
751
1025
  "kind": "function",
752
- "name": "getFocusedElement",
753
- "return": {
754
- "type": {
755
- "text": "Element | undefined"
756
- }
757
- },
1026
+ "name": "dayView",
758
1027
  "parameters": [
759
1028
  {
760
- "name": "root",
1029
+ "name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
761
1030
  "type": {
762
- "text": "Document | ShadowRoot"
1031
+ "text": "DatePickerDayProps"
763
1032
  }
764
1033
  }
765
- ],
766
- "description": "Gets the currently focused element, taking shadow roots into account."
767
- }
768
- ],
769
- "exports": [
770
- {
771
- "kind": "js",
772
- "name": "getFocusedElement",
773
- "declaration": {
774
- "name": "getFocusedElement",
775
- "module": "src/common/focus.ts"
776
- }
777
- }
778
- ]
779
- },
780
- {
781
- "kind": "javascript-module",
782
- "path": "src/common/number.ts",
783
- "declarations": [
1034
+ ]
1035
+ },
784
1036
  {
785
1037
  "kind": "function",
786
- "name": "wrap",
1038
+ "name": "monthView",
787
1039
  "parameters": [
788
1040
  {
789
- "name": "val",
790
- "type": {
791
- "text": "number"
792
- }
793
- },
794
- {
795
- "name": "min",
796
- "type": {
797
- "text": "number"
798
- }
799
- },
800
- {
801
- "name": "max",
1041
+ "name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n localization,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
802
1042
  "type": {
803
- "text": "number"
1043
+ "text": "MonthViewArgs"
804
1044
  }
805
1045
  }
806
- ],
807
- "description": "Wraps a value so that it always falls within min/max,\nwhere a value greater than max gets set to min, and vice versa"
1046
+ ]
808
1047
  }
809
1048
  ],
810
1049
  "exports": [
811
1050
  {
812
1051
  "kind": "js",
813
- "name": "wrap",
1052
+ "name": "dayView",
814
1053
  "declaration": {
815
- "name": "wrap",
816
- "module": "src/common/number.ts"
1054
+ "name": "dayView",
1055
+ "module": "src/calendar/month-view.ts"
817
1056
  }
818
- }
819
- ]
820
- },
821
- {
822
- "kind": "javascript-module",
823
- "path": "src/common/ref.ts",
824
- "declarations": [
825
- {
826
- "kind": "function",
827
- "name": "mergeRefs",
828
- "return": {
829
- "type": {
830
- "text": "RefCallback"
831
- }
832
- },
833
- "parameters": [
834
- {
835
- "name": "refs",
836
- "type": {
837
- "text": "Ref[]"
838
- }
839
- }
840
- ],
841
- "description": "Creates a ref callback which will assign the element to every given ref"
842
- }
843
- ],
844
- "exports": [
1057
+ },
845
1058
  {
846
1059
  "kind": "js",
847
- "name": "mergeRefs",
1060
+ "name": "monthView",
848
1061
  "declaration": {
849
- "name": "mergeRefs",
850
- "module": "src/common/ref.ts"
1062
+ "name": "monthView",
1063
+ "module": "src/calendar/month-view.ts"
851
1064
  }
852
1065
  }
853
1066
  ]
854
1067
  },
855
1068
  {
856
1069
  "kind": "javascript-module",
857
- "path": "src/icon/Icon.ts",
1070
+ "path": "src/command-menu/CommandMenu.ts",
858
1071
  "declarations": [
859
1072
  {
860
1073
  "kind": "class",
861
- "description": "Icons are used to provide additional meaning or in places where text label doesn’t fit.\nIcon component allows you to display an icon from the Nordicons library.",
862
- "name": "Icon",
1074
+ "description": "Command Menu allows users to navigate and use an app without touching the mouse and helps them transform into “power users” who can harness more advanced features far faster.",
1075
+ "name": "CommandMenu",
1076
+ "slots": [
1077
+ {
1078
+ "description": "Used to replace the default footer contents.",
1079
+ "name": "footer"
1080
+ }
1081
+ ],
863
1082
  "members": [
864
1083
  {
865
1084
  "kind": "field",
866
- "name": "resolver",
867
- "type": {
868
- "text": "IconResolver"
869
- },
870
- "privacy": "private",
871
- "static": true
1085
+ "name": "inputRef",
1086
+ "privacy": "private"
872
1087
  },
873
1088
  {
874
1089
  "kind": "field",
875
- "name": "registeredIcons",
876
- "privacy": "private",
877
- "static": true,
878
- "default": "new Map<string, string>()"
1090
+ "name": "listRef",
1091
+ "privacy": "private"
879
1092
  },
880
1093
  {
881
- "kind": "method",
882
- "name": "registerResolver",
883
- "static": true,
884
- "parameters": [
885
- {
886
- "name": "resolver",
887
- "type": {
888
- "text": "IconResolver"
889
- },
890
- "description": "The resolver function to register."
891
- }
892
- ],
893
- "description": "Register a custom icon resolver, which accepts the icon name as an parameter, and returns an SVG string.\nCan return a string synchronously, or a promise of a string.\nBy default, will load icons from the Nord CDN."
1094
+ "kind": "field",
1095
+ "name": "previousFocus",
1096
+ "type": {
1097
+ "text": "HTMLElement | undefined"
1098
+ },
1099
+ "privacy": "private"
894
1100
  },
895
1101
  {
896
- "kind": "method",
897
- "name": "registerIcon",
898
- "static": true,
899
- "return": {
900
- "type": {
901
- "text": "void"
902
- }
903
- },
904
- "parameters": [
905
- {
906
- "name": "icon",
907
- "type": {
908
- "text": "{ title: string; default: string }"
909
- },
910
- "description": "An object representing the icon to be registered, where \"title\" is the icon's name, and \"default\" is the SVG string.\nThis is intended to be used in cases where you import an icon's entire ES module and register it directly."
911
- }
912
- ],
913
- "description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
1102
+ "kind": "field",
1103
+ "name": "dismissController",
1104
+ "privacy": "private",
1105
+ "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
914
1106
  },
915
1107
  {
916
- "kind": "method",
917
- "name": "registerIcon",
918
- "static": true,
919
- "return": {
920
- "type": {
921
- "text": "void"
922
- }
923
- },
924
- "parameters": [
925
- {
926
- "name": "name",
927
- "type": {
928
- "text": "string"
929
- },
930
- "description": "The name of the icon to be registered."
931
- },
932
- {
933
- "name": "icon",
934
- "type": {
935
- "text": "string"
936
- },
937
- "description": "The SVG string for the icon."
938
- }
939
- ],
940
- "description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
1108
+ "kind": "field",
1109
+ "name": "keyboardController",
1110
+ "privacy": "private",
1111
+ "default": "new KeyboardController(this, {\n trigger: () => this.select(),\n goBack: () => this.goBack(),\n end: () => this.end(),\n start: () => this.start(),\n next: () => this.next(),\n previous: () => this.previous(),\n toggleOpen: () => this.toggleOpen(),\n })"
941
1112
  },
942
1113
  {
943
- "kind": "method",
944
- "name": "registerIcon",
945
- "static": true,
946
- "parameters": [
947
- {
948
- "name": "iconOrName",
949
- "type": {
950
- "text": "string | { title: string; default: string }"
951
- }
952
- },
953
- {
954
- "name": "icon",
955
- "optional": true,
956
- "type": {
957
- "text": "string"
958
- }
959
- }
960
- ]
1114
+ "kind": "field",
1115
+ "name": "open",
1116
+ "type": {
1117
+ "text": "boolean"
1118
+ },
1119
+ "default": "false",
1120
+ "description": "Show or hide the command menu.",
1121
+ "attribute": "open"
961
1122
  },
962
1123
  {
963
1124
  "kind": "field",
964
- "name": "name",
965
- "type": {
966
- "text": "string"
967
- },
968
- "default": "\"\"",
969
- "description": "The name of the icon to display, as defined by nordicons.",
970
- "attribute": "name",
971
- "reflects": true
972
- },
973
- {
974
- "kind": "field",
975
- "name": "size",
976
- "type": {
977
- "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
978
- },
979
- "default": "\"m\"",
980
- "description": "The size of the icon.",
981
- "attribute": "size",
982
- "reflects": true
983
- },
984
- {
985
- "kind": "field",
986
- "name": "color",
987
- "type": {
988
- "text": "string | undefined"
989
- },
990
- "description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
991
- "attribute": "color",
992
- "reflects": true
993
- },
994
- {
995
- "kind": "field",
996
- "name": "label",
997
- "type": {
998
- "text": "string | undefined"
999
- },
1000
- "description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
1001
- "attribute": "label",
1002
- "reflects": true
1003
- },
1004
- {
1005
- "kind": "field",
1006
- "name": "svg",
1007
- "type": {
1008
- "text": "string"
1009
- },
1010
- "privacy": "private",
1011
- "default": "\"\""
1012
- },
1013
- {
1014
- "kind": "method",
1015
- "name": "resolve",
1016
- "privacy": "private",
1017
- "return": {
1018
- "type": {
1019
- "text": "string | Promise<string>"
1020
- }
1021
- }
1022
- },
1023
- {
1024
- "kind": "field",
1025
- "name": "_warningLogged",
1026
- "type": {
1027
- "text": "boolean"
1028
- },
1029
- "privacy": "private",
1030
- "static": true,
1031
- "default": "false",
1032
- "inheritedFrom": {
1033
- "name": "DraftComponentMixin",
1034
- "module": "src/common/mixins/DraftComponentMixin.ts"
1035
- }
1036
- }
1037
- ],
1038
- "attributes": [
1039
- {
1040
- "name": "name",
1041
- "type": {
1042
- "text": "string"
1043
- },
1044
- "default": "\"\"",
1045
- "description": "The name of the icon to display, as defined by nordicons.",
1046
- "fieldName": "name"
1047
- },
1048
- {
1049
- "name": "size",
1050
- "type": {
1051
- "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
1052
- },
1053
- "default": "\"m\"",
1054
- "description": "The size of the icon.",
1055
- "fieldName": "size"
1056
- },
1057
- {
1058
- "name": "color",
1059
- "type": {
1060
- "text": "string | undefined"
1061
- },
1062
- "description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
1063
- "fieldName": "color"
1064
- },
1065
- {
1066
- "name": "label",
1067
- "type": {
1068
- "text": "string | undefined"
1069
- },
1070
- "description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
1071
- "fieldName": "label"
1072
- }
1073
- ],
1074
- "mixins": [
1075
- {
1076
- "name": "DraftComponentMixin",
1077
- "module": "/src/common/mixins/DraftComponentMixin.js"
1078
- }
1079
- ],
1080
- "superclass": {
1081
- "name": "LitElement",
1082
- "package": "lit"
1083
- },
1084
- "status": "draft",
1085
- "category": "image",
1086
- "tagName": "nord-icon",
1087
- "customElement": true
1088
- }
1089
- ],
1090
- "exports": [
1091
- {
1092
- "kind": "js",
1093
- "name": "default",
1094
- "declaration": {
1095
- "name": "Icon",
1096
- "module": "src/icon/Icon.ts"
1097
- }
1098
- },
1099
- {
1100
- "kind": "custom-element-definition",
1101
- "name": "nord-icon",
1102
- "declaration": {
1103
- "name": "Icon",
1104
- "module": "src/icon/Icon.ts"
1105
- }
1106
- }
1107
- ]
1108
- },
1109
- {
1110
- "kind": "javascript-module",
1111
- "path": "src/command-menu/CommandMenu.ts",
1112
- "declarations": [
1113
- {
1114
- "kind": "class",
1115
- "description": "Command Menu allows users to navigate and use an app without touching the mouse and helps them transform into “power users” who can harness more advanced features far faster.",
1116
- "name": "CommandMenu",
1117
- "slots": [
1118
- {
1119
- "description": "Used to replace the default footer contents.",
1120
- "name": "footer"
1121
- }
1122
- ],
1123
- "members": [
1124
- {
1125
- "kind": "field",
1126
- "name": "inputRef",
1127
- "privacy": "private"
1128
- },
1129
- {
1130
- "kind": "field",
1131
- "name": "listRef",
1132
- "privacy": "private"
1133
- },
1134
- {
1135
- "kind": "field",
1136
- "name": "previousFocus",
1137
- "type": {
1138
- "text": "HTMLElement | undefined"
1139
- },
1140
- "privacy": "private"
1141
- },
1142
- {
1143
- "kind": "field",
1144
- "name": "dismissController",
1145
- "privacy": "private",
1146
- "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
1147
- },
1148
- {
1149
- "kind": "field",
1150
- "name": "keyboardController",
1151
- "privacy": "private",
1152
- "default": "new KeyboardController(this, {\n trigger: () => this.select(),\n goBack: () => this.goBack(),\n end: () => this.end(),\n start: () => this.start(),\n next: () => this.next(),\n previous: () => this.previous(),\n toggleOpen: () => this.toggleOpen(),\n })"
1153
- },
1154
- {
1155
- "kind": "field",
1156
- "name": "open",
1157
- "type": {
1158
- "text": "boolean"
1159
- },
1160
- "default": "false",
1161
- "description": "Show or hide the command menu.",
1162
- "attribute": "open"
1163
- },
1164
- {
1165
- "kind": "field",
1166
- "name": "placeholder",
1125
+ "name": "placeholder",
1167
1126
  "type": {
1168
1127
  "text": "string"
1169
1128
  },
@@ -1636,27 +1595,2089 @@
1636
1595
  "name": "SelectEvent",
1637
1596
  "members": [
1638
1597
  {
1639
- "kind": "field",
1640
- "name": "command",
1598
+ "kind": "field",
1599
+ "name": "command",
1600
+ "type": {
1601
+ "text": "ICommandMenuAction"
1602
+ },
1603
+ "default": "command"
1604
+ }
1605
+ ],
1606
+ "superclass": {
1607
+ "name": "NordEvent",
1608
+ "module": "/src/common/events.js"
1609
+ }
1610
+ }
1611
+ ],
1612
+ "exports": [
1613
+ {
1614
+ "kind": "js",
1615
+ "name": "SelectEvent",
1616
+ "declaration": {
1617
+ "name": "SelectEvent",
1618
+ "module": "src/command-menu/events.ts"
1619
+ }
1620
+ }
1621
+ ]
1622
+ },
1623
+ {
1624
+ "kind": "javascript-module",
1625
+ "path": "src/card/Card.ts",
1626
+ "declarations": [
1627
+ {
1628
+ "kind": "class",
1629
+ "description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
1630
+ "name": "Card",
1631
+ "slots": [
1632
+ {
1633
+ "description": "The card content.",
1634
+ "name": ""
1635
+ },
1636
+ {
1637
+ "description": "Optional slot that holds a header for the card.",
1638
+ "name": "header"
1639
+ },
1640
+ {
1641
+ "description": "Optional slot that holds footer content for the card.",
1642
+ "name": "footer"
1643
+ }
1644
+ ],
1645
+ "members": [
1646
+ {
1647
+ "kind": "field",
1648
+ "name": "slots",
1649
+ "privacy": "private",
1650
+ "default": "new SlotController(this)"
1651
+ },
1652
+ {
1653
+ "kind": "field",
1654
+ "name": "padding",
1655
+ "type": {
1656
+ "text": "\"m\" | \"l\" | \"none\""
1657
+ },
1658
+ "default": "\"m\"",
1659
+ "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
1660
+ "attribute": "padding",
1661
+ "reflects": true
1662
+ },
1663
+ {
1664
+ "kind": "field",
1665
+ "name": "_warningLogged",
1666
+ "type": {
1667
+ "text": "boolean"
1668
+ },
1669
+ "privacy": "private",
1670
+ "static": true,
1671
+ "default": "false",
1672
+ "inheritedFrom": {
1673
+ "name": "DraftComponentMixin",
1674
+ "module": "src/common/mixins/DraftComponentMixin.ts"
1675
+ }
1676
+ }
1677
+ ],
1678
+ "attributes": [
1679
+ {
1680
+ "name": "padding",
1681
+ "type": {
1682
+ "text": "\"m\" | \"l\" | \"none\""
1683
+ },
1684
+ "default": "\"m\"",
1685
+ "description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
1686
+ "fieldName": "padding"
1687
+ }
1688
+ ],
1689
+ "mixins": [
1690
+ {
1691
+ "name": "DraftComponentMixin",
1692
+ "module": "/src/common/mixins/DraftComponentMixin.js"
1693
+ }
1694
+ ],
1695
+ "superclass": {
1696
+ "name": "LitElement",
1697
+ "package": "lit"
1698
+ },
1699
+ "status": "draft",
1700
+ "category": "structure",
1701
+ "tagName": "nord-card",
1702
+ "customElement": true
1703
+ }
1704
+ ],
1705
+ "exports": [
1706
+ {
1707
+ "kind": "js",
1708
+ "name": "default",
1709
+ "declaration": {
1710
+ "name": "Card",
1711
+ "module": "src/card/Card.ts"
1712
+ }
1713
+ },
1714
+ {
1715
+ "kind": "custom-element-definition",
1716
+ "name": "nord-card",
1717
+ "declaration": {
1718
+ "name": "Card",
1719
+ "module": "src/card/Card.ts"
1720
+ }
1721
+ }
1722
+ ]
1723
+ },
1724
+ {
1725
+ "kind": "javascript-module",
1726
+ "path": "src/common/collection.ts",
1727
+ "declarations": [
1728
+ {
1729
+ "kind": "function",
1730
+ "name": "groupBy",
1731
+ "parameters": [
1732
+ {
1733
+ "name": "array",
1734
+ "type": {
1735
+ "text": "Array<TObject>"
1736
+ },
1737
+ "description": "the collection of objects to group"
1738
+ },
1739
+ {
1740
+ "name": "key",
1741
+ "type": {
1742
+ "text": "TKey"
1743
+ },
1744
+ "description": "the property to group by"
1745
+ }
1746
+ ],
1747
+ "description": "Groups an array objects by property value",
1748
+ "return": {
1749
+ "type": {
1750
+ "text": ""
1751
+ }
1752
+ }
1753
+ },
1754
+ {
1755
+ "kind": "function",
1756
+ "name": "chunk",
1757
+ "return": {
1758
+ "type": {
1759
+ "text": ""
1760
+ }
1761
+ },
1762
+ "parameters": [
1763
+ {
1764
+ "name": "array",
1765
+ "type": {
1766
+ "text": "T[]"
1767
+ }
1768
+ },
1769
+ {
1770
+ "name": "chunkSize",
1771
+ "type": {
1772
+ "text": "number"
1773
+ }
1774
+ }
1775
+ ],
1776
+ "description": "Split an array into chunks of the given size"
1777
+ },
1778
+ {
1779
+ "kind": "function",
1780
+ "name": "mapWithOffset",
1781
+ "return": {
1782
+ "type": {
1783
+ "text": ""
1784
+ }
1785
+ },
1786
+ "parameters": [
1787
+ {
1788
+ "name": "array",
1789
+ "type": {
1790
+ "text": "T[]"
1791
+ }
1792
+ },
1793
+ {
1794
+ "name": "startingOffset",
1795
+ "type": {
1796
+ "text": "number"
1797
+ }
1798
+ },
1799
+ {
1800
+ "name": "mapFn",
1801
+ "type": {
1802
+ "text": "(item: T) => U"
1803
+ }
1804
+ }
1805
+ ],
1806
+ "description": "maps over an array, starting at the given offset and wrapping around."
1807
+ }
1808
+ ],
1809
+ "exports": [
1810
+ {
1811
+ "kind": "js",
1812
+ "name": "groupBy",
1813
+ "declaration": {
1814
+ "name": "groupBy",
1815
+ "module": "src/common/collection.ts"
1816
+ }
1817
+ },
1818
+ {
1819
+ "kind": "js",
1820
+ "name": "chunk",
1821
+ "declaration": {
1822
+ "name": "chunk",
1823
+ "module": "src/common/collection.ts"
1824
+ }
1825
+ },
1826
+ {
1827
+ "kind": "js",
1828
+ "name": "mapWithOffset",
1829
+ "declaration": {
1830
+ "name": "mapWithOffset",
1831
+ "module": "src/common/collection.ts"
1832
+ }
1833
+ }
1834
+ ]
1835
+ },
1836
+ {
1837
+ "kind": "javascript-module",
1838
+ "path": "src/common/dates.ts",
1839
+ "declarations": [
1840
+ {
1841
+ "kind": "function",
1842
+ "name": "createDate",
1843
+ "return": {
1844
+ "type": {
1845
+ "text": "Date | undefined"
1846
+ }
1847
+ },
1848
+ "parameters": [
1849
+ {
1850
+ "name": "year",
1851
+ "type": {
1852
+ "text": "string"
1853
+ }
1854
+ },
1855
+ {
1856
+ "name": "month",
1857
+ "type": {
1858
+ "text": "string"
1859
+ }
1860
+ },
1861
+ {
1862
+ "name": "day",
1863
+ "type": {
1864
+ "text": "string"
1865
+ }
1866
+ }
1867
+ ]
1868
+ },
1869
+ {
1870
+ "kind": "function",
1871
+ "name": "parseISODate",
1872
+ "return": {
1873
+ "type": {
1874
+ "text": "Date | undefined"
1875
+ }
1876
+ },
1877
+ "parameters": [
1878
+ {
1879
+ "name": "value",
1880
+ "type": {
1881
+ "text": "string"
1882
+ },
1883
+ "description": "date string in ISO format YYYY-MM-DD"
1884
+ }
1885
+ ]
1886
+ },
1887
+ {
1888
+ "kind": "function",
1889
+ "name": "printISODate",
1890
+ "return": {
1891
+ "type": {
1892
+ "text": "string"
1893
+ }
1894
+ },
1895
+ "parameters": [
1896
+ {
1897
+ "name": "date",
1898
+ "type": {
1899
+ "text": "Date"
1900
+ }
1901
+ }
1902
+ ],
1903
+ "description": "print date in format YYYY-MM-DD"
1904
+ },
1905
+ {
1906
+ "kind": "function",
1907
+ "name": "isEqualMonth",
1908
+ "return": {
1909
+ "type": {
1910
+ "text": "boolean"
1911
+ }
1912
+ },
1913
+ "parameters": [
1914
+ {
1915
+ "name": "a",
1916
+ "optional": true,
1917
+ "type": {
1918
+ "text": "Date"
1919
+ }
1920
+ },
1921
+ {
1922
+ "name": "b",
1923
+ "optional": true,
1924
+ "type": {
1925
+ "text": "Date"
1926
+ }
1927
+ }
1928
+ ],
1929
+ "description": "Compare if two dates are in the same month of the same year."
1930
+ },
1931
+ {
1932
+ "kind": "function",
1933
+ "name": "isEqual",
1934
+ "return": {
1935
+ "type": {
1936
+ "text": "boolean"
1937
+ }
1938
+ },
1939
+ "parameters": [
1940
+ {
1941
+ "name": "a",
1942
+ "optional": true,
1943
+ "type": {
1944
+ "text": "Date"
1945
+ }
1946
+ },
1947
+ {
1948
+ "name": "b",
1949
+ "optional": true,
1950
+ "type": {
1951
+ "text": "Date"
1952
+ }
1953
+ }
1954
+ ],
1955
+ "description": "Compare if two dates are equal in terms of day, month, and year"
1956
+ },
1957
+ {
1958
+ "kind": "function",
1959
+ "name": "addDays",
1960
+ "return": {
1961
+ "type": {
1962
+ "text": "Date"
1963
+ }
1964
+ },
1965
+ "parameters": [
1966
+ {
1967
+ "name": "date",
1968
+ "type": {
1969
+ "text": "Date"
1970
+ }
1971
+ },
1972
+ {
1973
+ "name": "days",
1974
+ "type": {
1975
+ "text": "number"
1976
+ }
1977
+ }
1978
+ ]
1979
+ },
1980
+ {
1981
+ "kind": "function",
1982
+ "name": "addMonths",
1983
+ "return": {
1984
+ "type": {
1985
+ "text": "Date"
1986
+ }
1987
+ },
1988
+ "parameters": [
1989
+ {
1990
+ "name": "date",
1991
+ "type": {
1992
+ "text": "Date"
1993
+ }
1994
+ },
1995
+ {
1996
+ "name": "months",
1997
+ "type": {
1998
+ "text": "number"
1999
+ }
2000
+ }
2001
+ ]
2002
+ },
2003
+ {
2004
+ "kind": "function",
2005
+ "name": "addYears",
2006
+ "return": {
2007
+ "type": {
2008
+ "text": "Date"
2009
+ }
2010
+ },
2011
+ "parameters": [
2012
+ {
2013
+ "name": "date",
2014
+ "type": {
2015
+ "text": "Date"
2016
+ }
2017
+ },
2018
+ {
2019
+ "name": "years",
2020
+ "type": {
2021
+ "text": "number"
2022
+ }
2023
+ }
2024
+ ]
2025
+ },
2026
+ {
2027
+ "kind": "function",
2028
+ "name": "startOfWeek",
2029
+ "return": {
2030
+ "type": {
2031
+ "text": "Date"
2032
+ }
2033
+ },
2034
+ "parameters": [
2035
+ {
2036
+ "name": "date",
2037
+ "type": {
2038
+ "text": "Date"
2039
+ }
2040
+ },
2041
+ {
2042
+ "name": "firstDayOfWeek",
2043
+ "default": "DaysOfWeek.Monday",
2044
+ "type": {
2045
+ "text": "DaysOfWeek"
2046
+ }
2047
+ }
2048
+ ]
2049
+ },
2050
+ {
2051
+ "kind": "function",
2052
+ "name": "endOfWeek",
2053
+ "return": {
2054
+ "type": {
2055
+ "text": "Date"
2056
+ }
2057
+ },
2058
+ "parameters": [
2059
+ {
2060
+ "name": "date",
2061
+ "type": {
2062
+ "text": "Date"
2063
+ }
2064
+ },
2065
+ {
2066
+ "name": "firstDayOfWeek",
2067
+ "default": "DaysOfWeek.Monday",
2068
+ "type": {
2069
+ "text": "DaysOfWeek"
2070
+ }
2071
+ }
2072
+ ]
2073
+ },
2074
+ {
2075
+ "kind": "function",
2076
+ "name": "startOfMonth",
2077
+ "return": {
2078
+ "type": {
2079
+ "text": "Date"
2080
+ }
2081
+ },
2082
+ "parameters": [
2083
+ {
2084
+ "name": "date",
2085
+ "type": {
2086
+ "text": "Date"
2087
+ }
2088
+ }
2089
+ ]
2090
+ },
2091
+ {
2092
+ "kind": "function",
2093
+ "name": "endOfMonth",
2094
+ "return": {
2095
+ "type": {
2096
+ "text": "Date"
2097
+ }
2098
+ },
2099
+ "parameters": [
2100
+ {
2101
+ "name": "date",
2102
+ "type": {
2103
+ "text": "Date"
2104
+ }
2105
+ }
2106
+ ]
2107
+ },
2108
+ {
2109
+ "kind": "function",
2110
+ "name": "setMonth",
2111
+ "return": {
2112
+ "type": {
2113
+ "text": "Date"
2114
+ }
2115
+ },
2116
+ "parameters": [
2117
+ {
2118
+ "name": "date",
2119
+ "type": {
2120
+ "text": "Date"
2121
+ }
2122
+ },
2123
+ {
2124
+ "name": "month",
2125
+ "type": {
2126
+ "text": "number"
2127
+ }
2128
+ }
2129
+ ]
2130
+ },
2131
+ {
2132
+ "kind": "function",
2133
+ "name": "setYear",
2134
+ "return": {
2135
+ "type": {
2136
+ "text": "Date"
2137
+ }
2138
+ },
2139
+ "parameters": [
2140
+ {
2141
+ "name": "date",
2142
+ "type": {
2143
+ "text": "Date"
2144
+ }
2145
+ },
2146
+ {
2147
+ "name": "year",
2148
+ "type": {
2149
+ "text": "number"
2150
+ }
2151
+ }
2152
+ ]
2153
+ },
2154
+ {
2155
+ "kind": "function",
2156
+ "name": "clamp",
2157
+ "return": {
2158
+ "type": {
2159
+ "text": "Date"
2160
+ }
2161
+ },
2162
+ "parameters": [
2163
+ {
2164
+ "name": "date",
2165
+ "type": {
2166
+ "text": "Date"
2167
+ }
2168
+ },
2169
+ {
2170
+ "name": "min",
2171
+ "optional": true,
2172
+ "type": {
2173
+ "text": "Date"
2174
+ }
2175
+ },
2176
+ {
2177
+ "name": "max",
2178
+ "optional": true,
2179
+ "type": {
2180
+ "text": "Date"
2181
+ }
2182
+ }
2183
+ ],
2184
+ "description": "Ensures date is within range, returns min or max if out of bounds"
2185
+ },
2186
+ {
2187
+ "kind": "function",
2188
+ "name": "inRange",
2189
+ "return": {
2190
+ "type": {
2191
+ "text": "boolean"
2192
+ }
2193
+ },
2194
+ "parameters": [
2195
+ {
2196
+ "name": "date",
2197
+ "type": {
2198
+ "text": "Date"
2199
+ }
2200
+ },
2201
+ {
2202
+ "name": "min",
2203
+ "optional": true,
2204
+ "type": {
2205
+ "text": "Date"
2206
+ }
2207
+ },
2208
+ {
2209
+ "name": "max",
2210
+ "optional": true,
2211
+ "type": {
2212
+ "text": "Date"
2213
+ }
2214
+ }
2215
+ ],
2216
+ "description": "Check if date is within a min and max"
2217
+ },
2218
+ {
2219
+ "kind": "function",
2220
+ "name": "getViewOfMonth",
2221
+ "return": {
2222
+ "type": {
2223
+ "text": "Date[]"
2224
+ }
2225
+ },
2226
+ "parameters": [
2227
+ {
2228
+ "name": "date",
2229
+ "type": {
2230
+ "text": "Date"
2231
+ }
2232
+ },
2233
+ {
2234
+ "name": "firstDayOfWeek",
2235
+ "default": "DaysOfWeek.Monday",
2236
+ "type": {
2237
+ "text": "DaysOfWeek"
2238
+ }
2239
+ }
2240
+ ],
2241
+ "description": "given a date, return an array of dates from a calendar perspective"
2242
+ }
2243
+ ],
2244
+ "exports": [
2245
+ {
2246
+ "kind": "js",
2247
+ "name": "createDate",
2248
+ "declaration": {
2249
+ "name": "createDate",
2250
+ "module": "src/common/dates.ts"
2251
+ }
2252
+ },
2253
+ {
2254
+ "kind": "js",
2255
+ "name": "parseISODate",
2256
+ "declaration": {
2257
+ "name": "parseISODate",
2258
+ "module": "src/common/dates.ts"
2259
+ }
2260
+ },
2261
+ {
2262
+ "kind": "js",
2263
+ "name": "printISODate",
2264
+ "declaration": {
2265
+ "name": "printISODate",
2266
+ "module": "src/common/dates.ts"
2267
+ }
2268
+ },
2269
+ {
2270
+ "kind": "js",
2271
+ "name": "isEqualMonth",
2272
+ "declaration": {
2273
+ "name": "isEqualMonth",
2274
+ "module": "src/common/dates.ts"
2275
+ }
2276
+ },
2277
+ {
2278
+ "kind": "js",
2279
+ "name": "isEqual",
2280
+ "declaration": {
2281
+ "name": "isEqual",
2282
+ "module": "src/common/dates.ts"
2283
+ }
2284
+ },
2285
+ {
2286
+ "kind": "js",
2287
+ "name": "addDays",
2288
+ "declaration": {
2289
+ "name": "addDays",
2290
+ "module": "src/common/dates.ts"
2291
+ }
2292
+ },
2293
+ {
2294
+ "kind": "js",
2295
+ "name": "addMonths",
2296
+ "declaration": {
2297
+ "name": "addMonths",
2298
+ "module": "src/common/dates.ts"
2299
+ }
2300
+ },
2301
+ {
2302
+ "kind": "js",
2303
+ "name": "addYears",
2304
+ "declaration": {
2305
+ "name": "addYears",
2306
+ "module": "src/common/dates.ts"
2307
+ }
2308
+ },
2309
+ {
2310
+ "kind": "js",
2311
+ "name": "startOfWeek",
2312
+ "declaration": {
2313
+ "name": "startOfWeek",
2314
+ "module": "src/common/dates.ts"
2315
+ }
2316
+ },
2317
+ {
2318
+ "kind": "js",
2319
+ "name": "endOfWeek",
2320
+ "declaration": {
2321
+ "name": "endOfWeek",
2322
+ "module": "src/common/dates.ts"
2323
+ }
2324
+ },
2325
+ {
2326
+ "kind": "js",
2327
+ "name": "startOfMonth",
2328
+ "declaration": {
2329
+ "name": "startOfMonth",
2330
+ "module": "src/common/dates.ts"
2331
+ }
2332
+ },
2333
+ {
2334
+ "kind": "js",
2335
+ "name": "endOfMonth",
2336
+ "declaration": {
2337
+ "name": "endOfMonth",
2338
+ "module": "src/common/dates.ts"
2339
+ }
2340
+ },
2341
+ {
2342
+ "kind": "js",
2343
+ "name": "setMonth",
2344
+ "declaration": {
2345
+ "name": "setMonth",
2346
+ "module": "src/common/dates.ts"
2347
+ }
2348
+ },
2349
+ {
2350
+ "kind": "js",
2351
+ "name": "setYear",
2352
+ "declaration": {
2353
+ "name": "setYear",
2354
+ "module": "src/common/dates.ts"
2355
+ }
2356
+ },
2357
+ {
2358
+ "kind": "js",
2359
+ "name": "clamp",
2360
+ "declaration": {
2361
+ "name": "clamp",
2362
+ "module": "src/common/dates.ts"
2363
+ }
2364
+ },
2365
+ {
2366
+ "kind": "js",
2367
+ "name": "inRange",
2368
+ "declaration": {
2369
+ "name": "inRange",
2370
+ "module": "src/common/dates.ts"
2371
+ }
2372
+ },
2373
+ {
2374
+ "kind": "js",
2375
+ "name": "getViewOfMonth",
2376
+ "declaration": {
2377
+ "name": "getViewOfMonth",
2378
+ "module": "src/common/dates.ts"
2379
+ }
2380
+ }
2381
+ ]
2382
+ },
2383
+ {
2384
+ "kind": "javascript-module",
2385
+ "path": "src/common/events.ts",
2386
+ "declarations": [
2387
+ {
2388
+ "kind": "class",
2389
+ "description": "A base class for events which defaults to bubbling and composed",
2390
+ "name": "NordEvent",
2391
+ "superclass": {
2392
+ "name": "Event",
2393
+ "module": "src/common/events.ts"
2394
+ },
2395
+ "status": null,
2396
+ "category": null
2397
+ }
2398
+ ],
2399
+ "exports": [
2400
+ {
2401
+ "kind": "js",
2402
+ "name": "NordEvent",
2403
+ "declaration": {
2404
+ "name": "NordEvent",
2405
+ "module": "src/common/events.ts"
2406
+ }
2407
+ }
2408
+ ]
2409
+ },
2410
+ {
2411
+ "kind": "javascript-module",
2412
+ "path": "src/common/focus.ts",
2413
+ "declarations": [
2414
+ {
2415
+ "kind": "function",
2416
+ "name": "getFocusedElement",
2417
+ "return": {
2418
+ "type": {
2419
+ "text": "Element | undefined"
2420
+ }
2421
+ },
2422
+ "parameters": [
2423
+ {
2424
+ "name": "root",
2425
+ "type": {
2426
+ "text": "Document | ShadowRoot"
2427
+ }
2428
+ }
2429
+ ],
2430
+ "description": "Gets the currently focused element, taking shadow roots into account."
2431
+ }
2432
+ ],
2433
+ "exports": [
2434
+ {
2435
+ "kind": "js",
2436
+ "name": "getFocusedElement",
2437
+ "declaration": {
2438
+ "name": "getFocusedElement",
2439
+ "module": "src/common/focus.ts"
2440
+ }
2441
+ }
2442
+ ]
2443
+ },
2444
+ {
2445
+ "kind": "javascript-module",
2446
+ "path": "src/common/input.ts",
2447
+ "declarations": [
2448
+ {
2449
+ "kind": "function",
2450
+ "name": "cleanValue",
2451
+ "return": {
2452
+ "type": {
2453
+ "text": "string"
2454
+ }
2455
+ },
2456
+ "parameters": [
2457
+ {
2458
+ "name": "inputEl",
2459
+ "type": {
2460
+ "text": "HTMLInputElement"
2461
+ }
2462
+ },
2463
+ {
2464
+ "name": "regex",
2465
+ "type": {
2466
+ "text": "RegExp"
2467
+ }
2468
+ }
2469
+ ]
2470
+ }
2471
+ ],
2472
+ "exports": [
2473
+ {
2474
+ "kind": "js",
2475
+ "name": "cleanValue",
2476
+ "declaration": {
2477
+ "name": "cleanValue",
2478
+ "module": "src/common/input.ts"
2479
+ }
2480
+ }
2481
+ ]
2482
+ },
2483
+ {
2484
+ "kind": "javascript-module",
2485
+ "path": "src/common/number.ts",
2486
+ "declarations": [
2487
+ {
2488
+ "kind": "function",
2489
+ "name": "wrap",
2490
+ "parameters": [
2491
+ {
2492
+ "name": "val",
2493
+ "type": {
2494
+ "text": "number"
2495
+ }
2496
+ },
2497
+ {
2498
+ "name": "min",
2499
+ "type": {
2500
+ "text": "number"
2501
+ }
2502
+ },
2503
+ {
2504
+ "name": "max",
2505
+ "type": {
2506
+ "text": "number"
2507
+ }
2508
+ }
2509
+ ],
2510
+ "description": "Wraps a value so that it always falls within min/max,\nwhere a value greater than max gets set to min, and vice versa"
2511
+ },
2512
+ {
2513
+ "kind": "function",
2514
+ "name": "range",
2515
+ "parameters": [
2516
+ {
2517
+ "name": "from",
2518
+ "type": {
2519
+ "text": "number"
2520
+ }
2521
+ },
2522
+ {
2523
+ "name": "to",
2524
+ "type": {
2525
+ "text": "number"
2526
+ }
2527
+ }
2528
+ ]
2529
+ }
2530
+ ],
2531
+ "exports": [
2532
+ {
2533
+ "kind": "js",
2534
+ "name": "wrap",
2535
+ "declaration": {
2536
+ "name": "wrap",
2537
+ "module": "src/common/number.ts"
2538
+ }
2539
+ },
2540
+ {
2541
+ "kind": "js",
2542
+ "name": "range",
2543
+ "declaration": {
2544
+ "name": "range",
2545
+ "module": "src/common/number.ts"
2546
+ }
2547
+ }
2548
+ ]
2549
+ },
2550
+ {
2551
+ "kind": "javascript-module",
2552
+ "path": "src/common/ref.ts",
2553
+ "declarations": [
2554
+ {
2555
+ "kind": "function",
2556
+ "name": "mergeRefs",
2557
+ "return": {
2558
+ "type": {
2559
+ "text": "RefCallback"
2560
+ }
2561
+ },
2562
+ "parameters": [
2563
+ {
2564
+ "name": "refs",
2565
+ "type": {
2566
+ "text": "Ref[]"
2567
+ }
2568
+ }
2569
+ ],
2570
+ "description": "Creates a ref callback which will assign the element to every given ref"
2571
+ }
2572
+ ],
2573
+ "exports": [
2574
+ {
2575
+ "kind": "js",
2576
+ "name": "mergeRefs",
2577
+ "declaration": {
2578
+ "name": "mergeRefs",
2579
+ "module": "src/common/ref.ts"
2580
+ }
2581
+ }
2582
+ ]
2583
+ },
2584
+ {
2585
+ "kind": "javascript-module",
2586
+ "path": "src/date-picker/DatePicker.ts",
2587
+ "declarations": [
2588
+ {
2589
+ "kind": "class",
2590
+ "description": "\nDate Picker allows user to enter a date either through text input,\nor by choosing a date from the calendar. Please note that the date\nmust be passed in IS0-8601 format: YYYY-MM-DD.",
2591
+ "name": "DatePicker",
2592
+ "members": [
2593
+ {
2594
+ "kind": "field",
2595
+ "name": "toggleButton",
2596
+ "type": {
2597
+ "text": "Button"
2598
+ },
2599
+ "privacy": "private"
2600
+ },
2601
+ {
2602
+ "kind": "field",
2603
+ "name": "closeButton",
2604
+ "type": {
2605
+ "text": "HTMLButtonElement"
2606
+ },
2607
+ "privacy": "private"
2608
+ },
2609
+ {
2610
+ "kind": "field",
2611
+ "name": "calendar",
2612
+ "type": {
2613
+ "text": "Calendar"
2614
+ },
2615
+ "privacy": "private"
2616
+ },
2617
+ {
2618
+ "kind": "field",
2619
+ "name": "dialog",
2620
+ "type": {
2621
+ "text": "HTMLElement"
2622
+ },
2623
+ "privacy": "private"
2624
+ },
2625
+ {
2626
+ "kind": "field",
2627
+ "name": "dismiss",
2628
+ "privacy": "private",
2629
+ "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: e => this.hide(e.type !== \"click\"),\n isDismissible: node => node !== this.calendar && node !== this.toggleButton,\n })"
2630
+ },
2631
+ {
2632
+ "kind": "field",
2633
+ "name": "swipe",
2634
+ "privacy": "private",
2635
+ "default": "new SwipeController(this, {\n target: () => this.dialog,\n matchesGesture: isDownwardsSwipe,\n onSwipeEnd: () => this.hide(false),\n })"
2636
+ },
2637
+ {
2638
+ "kind": "field",
2639
+ "name": "dateFormatLong",
2640
+ "type": {
2641
+ "text": "Intl.DateTimeFormat"
2642
+ },
2643
+ "privacy": "private",
2644
+ "description": "Whilst dateAdapter is used for handling the formatting/parsing dates in the input,\nthese are used to format dates exclusively for the benefit of screen readers.\n\nWe prefer DateTimeFormat over date.toLocaleDateString, as the former has\nbetter performance when formatting large number of dates. See:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#Performance"
2645
+ },
2646
+ {
2647
+ "kind": "field",
2648
+ "name": "open",
2649
+ "type": {
2650
+ "text": "boolean"
2651
+ },
2652
+ "privacy": "private",
2653
+ "default": "false"
2654
+ },
2655
+ {
2656
+ "kind": "field",
2657
+ "name": "value",
2658
+ "type": {
2659
+ "text": "string"
2660
+ },
2661
+ "default": "\"\"",
2662
+ "description": "Date value. Must be in IS0-8601 format: YYYY-MM-DD",
2663
+ "attribute": "value",
2664
+ "inheritedFrom": {
2665
+ "name": "InputMixin",
2666
+ "module": "src/common/mixins/InputMixin.ts"
2667
+ }
2668
+ },
2669
+ {
2670
+ "kind": "field",
2671
+ "name": "valueAsDate",
2672
+ "type": {
2673
+ "text": "Date | undefined"
2674
+ },
2675
+ "description": "Get/set the value of the picker as a Date object."
2676
+ },
2677
+ {
2678
+ "kind": "field",
2679
+ "name": "valueAsNumber",
2680
+ "type": {
2681
+ "text": "number"
2682
+ },
2683
+ "description": "Get/set the value of the picker as the number of milliseconds elapsed since the UNIX epoch."
2684
+ },
2685
+ {
2686
+ "kind": "field",
2687
+ "name": "min",
2688
+ "type": {
2689
+ "text": "string"
2690
+ },
2691
+ "default": "\"\"",
2692
+ "description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
2693
+ "attribute": "min"
2694
+ },
2695
+ {
2696
+ "kind": "field",
2697
+ "name": "max",
2698
+ "type": {
2699
+ "text": "string"
2700
+ },
2701
+ "default": "\"\"",
2702
+ "description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
2703
+ "attribute": "max"
2704
+ },
2705
+ {
2706
+ "kind": "field",
2707
+ "name": "direction",
2708
+ "type": {
2709
+ "text": "\"left\" | \"right\""
2710
+ },
2711
+ "default": "\"right\"",
2712
+ "description": "Forces the opening direction of the calendar modal to be always left or right.\nThis setting can be useful when the input is smaller than the opening date picker\nwould be as by default the picker always opens towards right.",
2713
+ "attribute": "direction"
2714
+ },
2715
+ {
2716
+ "kind": "field",
2717
+ "name": "firstDayOfWeek",
2718
+ "type": {
2719
+ "text": "DaysOfWeek"
2720
+ },
2721
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
2722
+ "attribute": "first-day-of-week"
2723
+ },
2724
+ {
2725
+ "kind": "field",
2726
+ "name": "localization",
2727
+ "type": {
2728
+ "text": "DatePickerLocalizedText"
2729
+ },
2730
+ "default": "localization",
2731
+ "description": "Button labels, day names, month names, etc, used for localization.\nDefault is English."
2732
+ },
2733
+ {
2734
+ "kind": "field",
2735
+ "name": "dateAdapter",
2736
+ "type": {
2737
+ "text": "DateAdapter"
2738
+ },
2739
+ "default": "isoAdapter",
2740
+ "description": "Date adapter, for custom parsing/formatting.\nMust be object with a `parse` function which accepts a `string` and returns a `Date`,\nand a `format` function which accepts a `Date` and returns a `string`.\nDefault is IS0-8601 parsing and formatting."
2741
+ },
2742
+ {
2743
+ "kind": "field",
2744
+ "name": "isDateDisabled",
2745
+ "type": {
2746
+ "text": "DateDisabledPredicate"
2747
+ },
2748
+ "description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
2749
+ },
2750
+ {
2751
+ "kind": "method",
2752
+ "name": "show",
2753
+ "description": "Show the calendar modal, moving focus to the calendar inside."
2754
+ },
2755
+ {
2756
+ "kind": "method",
2757
+ "name": "hide",
2758
+ "parameters": [
2759
+ {
2760
+ "name": "moveFocusToButton",
2761
+ "default": "true"
2762
+ }
2763
+ ],
2764
+ "description": "Hide the calendar modal. Set `moveFocusToButton` to false to prevent focus\nreturning to the date picker's button. Default is true."
2765
+ },
2766
+ {
2767
+ "kind": "method",
2768
+ "name": "createDateFormatters",
2769
+ "privacy": "private"
2770
+ },
2771
+ {
2772
+ "kind": "method",
2773
+ "name": "focusFirst",
2774
+ "privacy": "private"
2775
+ },
2776
+ {
2777
+ "kind": "method",
2778
+ "name": "focusLast",
2779
+ "privacy": "private"
2780
+ },
2781
+ {
2782
+ "kind": "field",
2783
+ "name": "handleDaySelect",
2784
+ "privacy": "private"
2785
+ },
2786
+ {
2787
+ "kind": "field",
2788
+ "name": "toggleOpen",
2789
+ "privacy": "private"
2790
+ },
2791
+ {
2792
+ "kind": "field",
2793
+ "name": "handleBlur",
2794
+ "privacy": "private"
2795
+ },
2796
+ {
2797
+ "kind": "field",
2798
+ "name": "handleFocus",
2799
+ "privacy": "private"
2800
+ },
2801
+ {
2802
+ "kind": "field",
2803
+ "name": "handleInputChange",
2804
+ "privacy": "private"
2805
+ },
2806
+ {
2807
+ "kind": "method",
2808
+ "name": "setValue",
2809
+ "privacy": "private",
2810
+ "parameters": [
2811
+ {
2812
+ "name": "date",
2813
+ "optional": true,
2814
+ "type": {
2815
+ "text": "Date"
2816
+ }
2817
+ }
2818
+ ]
2819
+ },
2820
+ {
2821
+ "kind": "field",
2822
+ "name": "slots",
2823
+ "privacy": "protected",
2824
+ "default": "new SlotController(this)",
2825
+ "inheritedFrom": {
2826
+ "name": "FormAssociatedMixin",
2827
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2828
+ }
2829
+ },
2830
+ {
2831
+ "kind": "field",
2832
+ "name": "inputId",
2833
+ "type": {
2834
+ "text": "string"
2835
+ },
2836
+ "privacy": "protected",
2837
+ "default": "\"input\"",
2838
+ "inheritedFrom": {
2839
+ "name": "FormAssociatedMixin",
2840
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2841
+ }
2842
+ },
2843
+ {
2844
+ "kind": "field",
2845
+ "name": "label",
2846
+ "type": {
2847
+ "text": "string"
2848
+ },
2849
+ "default": "\"\"",
2850
+ "description": "Label for the input.",
2851
+ "attribute": "label",
2852
+ "inheritedFrom": {
2853
+ "name": "FormAssociatedMixin",
2854
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2855
+ }
2856
+ },
2857
+ {
2858
+ "kind": "field",
2859
+ "name": "hint",
2860
+ "type": {
2861
+ "text": "string | undefined"
2862
+ },
2863
+ "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
2864
+ "attribute": "hint",
2865
+ "inheritedFrom": {
2866
+ "name": "FormAssociatedMixin",
2867
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2868
+ }
2869
+ },
2870
+ {
2871
+ "kind": "field",
2872
+ "name": "hideLabel",
2873
+ "type": {
2874
+ "text": "boolean"
2875
+ },
2876
+ "default": "false",
2877
+ "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
2878
+ "attribute": "hide-label",
2879
+ "inheritedFrom": {
2880
+ "name": "FormAssociatedMixin",
2881
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2882
+ }
2883
+ },
2884
+ {
2885
+ "kind": "field",
2886
+ "name": "placeholder",
2887
+ "type": {
2888
+ "text": "string | undefined"
2889
+ },
2890
+ "description": "Placeholder text to display within the input.",
2891
+ "attribute": "placeholder",
2892
+ "inheritedFrom": {
2893
+ "name": "FormAssociatedMixin",
2894
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2895
+ }
2896
+ },
2897
+ {
2898
+ "kind": "field",
2899
+ "name": "error",
2900
+ "type": {
2901
+ "text": "string | undefined"
2902
+ },
2903
+ "description": "Optional error to be shown with the input. Alternatively use the error slot.",
2904
+ "attribute": "error",
2905
+ "inheritedFrom": {
2906
+ "name": "FormAssociatedMixin",
2907
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2908
+ }
2909
+ },
2910
+ {
2911
+ "kind": "field",
2912
+ "name": "required",
2913
+ "type": {
2914
+ "text": "boolean"
2915
+ },
2916
+ "default": "false",
2917
+ "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.",
2918
+ "attribute": "required",
2919
+ "inheritedFrom": {
2920
+ "name": "FormAssociatedMixin",
2921
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2922
+ }
2923
+ },
2924
+ {
2925
+ "kind": "field",
2926
+ "name": "expand",
2927
+ "type": {
2928
+ "text": "boolean"
2929
+ },
2930
+ "default": "false",
2931
+ "description": "Controls whether the input expands to fill the width of its container.",
2932
+ "attribute": "expand",
2933
+ "reflects": true,
2934
+ "inheritedFrom": {
2935
+ "name": "FormAssociatedMixin",
2936
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2937
+ }
2938
+ },
2939
+ {
2940
+ "kind": "field",
2941
+ "name": "handleFormData",
2942
+ "privacy": "private",
2943
+ "inheritedFrom": {
2944
+ "name": "FormAssociatedMixin",
2945
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2946
+ }
2947
+ },
2948
+ {
2949
+ "kind": "method",
2950
+ "name": "handleInput",
2951
+ "privacy": "protected",
2952
+ "parameters": [
2953
+ {
2954
+ "name": "e",
2955
+ "type": {
2956
+ "text": "Event"
2957
+ }
2958
+ }
2959
+ ],
2960
+ "inheritedFrom": {
2961
+ "name": "FormAssociatedMixin",
2962
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2963
+ }
2964
+ },
2965
+ {
2966
+ "kind": "method",
2967
+ "name": "handleChange",
2968
+ "privacy": "protected",
2969
+ "inheritedFrom": {
2970
+ "name": "FormAssociatedMixin",
2971
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2972
+ }
2973
+ },
2974
+ {
2975
+ "kind": "method",
2976
+ "name": "renderLabel",
2977
+ "privacy": "protected",
2978
+ "inheritedFrom": {
2979
+ "name": "FormAssociatedMixin",
2980
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2981
+ }
2982
+ },
2983
+ {
2984
+ "kind": "method",
2985
+ "name": "renderHint",
2986
+ "privacy": "private",
2987
+ "inheritedFrom": {
2988
+ "name": "FormAssociatedMixin",
2989
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2990
+ }
2991
+ },
2992
+ {
2993
+ "kind": "method",
2994
+ "name": "renderError",
2995
+ "privacy": "protected",
2996
+ "inheritedFrom": {
2997
+ "name": "FormAssociatedMixin",
2998
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2999
+ }
3000
+ },
3001
+ {
3002
+ "kind": "method",
3003
+ "name": "getDescribedBy",
3004
+ "privacy": "protected",
3005
+ "inheritedFrom": {
3006
+ "name": "FormAssociatedMixin",
3007
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3008
+ }
3009
+ },
3010
+ {
3011
+ "kind": "method",
3012
+ "name": "getInvalid",
3013
+ "privacy": "protected",
3014
+ "inheritedFrom": {
3015
+ "name": "FormAssociatedMixin",
3016
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3017
+ }
3018
+ },
3019
+ {
3020
+ "kind": "field",
3021
+ "name": "hasHint",
3022
+ "privacy": "protected",
3023
+ "inheritedFrom": {
3024
+ "name": "FormAssociatedMixin",
3025
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3026
+ }
3027
+ },
3028
+ {
3029
+ "kind": "field",
3030
+ "name": "hasError",
3031
+ "privacy": "protected",
3032
+ "inheritedFrom": {
3033
+ "name": "FormAssociatedMixin",
3034
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3035
+ }
3036
+ },
3037
+ {
3038
+ "kind": "field",
3039
+ "name": "disabled",
3040
+ "type": {
3041
+ "text": "boolean"
3042
+ },
3043
+ "default": "false",
3044
+ "description": "Makes the input component disabled.\nThis prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies.",
3045
+ "attribute": "disabled",
3046
+ "inheritedFrom": {
3047
+ "name": "InputMixin",
3048
+ "module": "src/common/mixins/InputMixin.ts"
3049
+ }
3050
+ },
3051
+ {
3052
+ "kind": "field",
3053
+ "name": "name",
3054
+ "type": {
3055
+ "text": "string | undefined"
3056
+ },
3057
+ "description": "The name of the input component.",
3058
+ "attribute": "name",
3059
+ "inheritedFrom": {
3060
+ "name": "InputMixin",
3061
+ "module": "src/common/mixins/InputMixin.ts"
3062
+ }
3063
+ },
3064
+ {
3065
+ "kind": "field",
3066
+ "name": "form",
3067
+ "privacy": "protected",
3068
+ "description": "Gets the form, if any, associated with the input element.",
3069
+ "inheritedFrom": {
3070
+ "name": "InputMixin",
3071
+ "module": "src/common/mixins/InputMixin.ts"
3072
+ }
3073
+ },
3074
+ {
3075
+ "kind": "field",
3076
+ "name": "focusableRef",
3077
+ "privacy": "protected",
3078
+ "inheritedFrom": {
3079
+ "name": "FocusableMixin",
3080
+ "module": "src/common/mixins/FocusableMixin.ts"
3081
+ }
3082
+ },
3083
+ {
3084
+ "kind": "method",
3085
+ "name": "focus",
3086
+ "parameters": [
3087
+ {
3088
+ "name": "options",
3089
+ "optional": true,
3090
+ "type": {
3091
+ "text": "FocusOptions"
3092
+ },
3093
+ "description": "An object which controls aspects of the focusing process."
3094
+ }
3095
+ ],
3096
+ "description": "Programmatically move focus to the component",
3097
+ "inheritedFrom": {
3098
+ "name": "FocusableMixin",
3099
+ "module": "src/common/mixins/FocusableMixin.ts"
3100
+ }
3101
+ },
3102
+ {
3103
+ "kind": "method",
3104
+ "name": "blur",
3105
+ "description": "Programmatically remove focus from the component.",
3106
+ "inheritedFrom": {
3107
+ "name": "FocusableMixin",
3108
+ "module": "src/common/mixins/FocusableMixin.ts"
3109
+ }
3110
+ },
3111
+ {
3112
+ "kind": "method",
3113
+ "name": "click",
3114
+ "description": "Programmatically simulates a click on the component.",
3115
+ "inheritedFrom": {
3116
+ "name": "FocusableMixin",
3117
+ "module": "src/common/mixins/FocusableMixin.ts"
3118
+ }
3119
+ },
3120
+ {
3121
+ "kind": "field",
3122
+ "name": "_warningLogged",
3123
+ "type": {
3124
+ "text": "boolean"
3125
+ },
3126
+ "privacy": "private",
3127
+ "static": true,
3128
+ "default": "false",
3129
+ "inheritedFrom": {
3130
+ "name": "DraftComponentMixin",
3131
+ "module": "src/common/mixins/DraftComponentMixin.ts"
3132
+ }
3133
+ }
3134
+ ],
3135
+ "events": [
3136
+ {
3137
+ "name": "open",
3138
+ "type": {
3139
+ "text": "NordEvent"
3140
+ },
3141
+ "description": "Dispatched when the calendar is toggled open."
3142
+ },
3143
+ {
3144
+ "name": "close",
3145
+ "type": {
3146
+ "text": "NordEvent"
3147
+ },
3148
+ "description": "Dispatched when the calendar is closed."
3149
+ },
3150
+ {
3151
+ "name": "change",
3152
+ "type": {
3153
+ "text": "NordEvent"
3154
+ },
3155
+ "description": "Fired whenever the input's value is changed via user interaction.",
3156
+ "inheritedFrom": {
3157
+ "name": "FormAssociatedMixin",
3158
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3159
+ }
3160
+ },
3161
+ {
3162
+ "name": "input",
3163
+ "type": {
3164
+ "text": "NordEvent"
3165
+ },
3166
+ "description": "Fired as the user types into the input.",
3167
+ "inheritedFrom": {
3168
+ "name": "FormAssociatedMixin",
3169
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3170
+ }
3171
+ }
3172
+ ],
3173
+ "attributes": [
3174
+ {
3175
+ "name": "value",
3176
+ "type": {
3177
+ "text": "string"
3178
+ },
3179
+ "default": "\"\"",
3180
+ "description": "Date value. Must be in IS0-8601 format: YYYY-MM-DD",
3181
+ "fieldName": "value",
3182
+ "inheritedFrom": {
3183
+ "name": "InputMixin",
3184
+ "module": "src/common/mixins/InputMixin.ts"
3185
+ }
3186
+ },
3187
+ {
3188
+ "name": "min",
3189
+ "type": {
3190
+ "text": "string"
3191
+ },
3192
+ "default": "\"\"",
3193
+ "description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
3194
+ "fieldName": "min"
3195
+ },
3196
+ {
3197
+ "name": "max",
3198
+ "type": {
3199
+ "text": "string"
3200
+ },
3201
+ "default": "\"\"",
3202
+ "description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
3203
+ "fieldName": "max"
3204
+ },
3205
+ {
3206
+ "name": "direction",
3207
+ "type": {
3208
+ "text": "\"left\" | \"right\""
3209
+ },
3210
+ "default": "\"right\"",
3211
+ "description": "Forces the opening direction of the calendar modal to be always left or right.\nThis setting can be useful when the input is smaller than the opening date picker\nwould be as by default the picker always opens towards right.",
3212
+ "fieldName": "direction"
3213
+ },
3214
+ {
3215
+ "name": "first-day-of-week",
3216
+ "type": {
3217
+ "text": "DaysOfWeek"
3218
+ },
3219
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
3220
+ "fieldName": "firstDayOfWeek"
3221
+ },
3222
+ {
3223
+ "name": "label",
3224
+ "type": {
3225
+ "text": "string"
3226
+ },
3227
+ "default": "\"\"",
3228
+ "description": "Label for the input.",
3229
+ "fieldName": "label",
3230
+ "inheritedFrom": {
3231
+ "name": "FormAssociatedMixin",
3232
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3233
+ }
3234
+ },
3235
+ {
3236
+ "name": "hint",
3237
+ "type": {
3238
+ "text": "string | undefined"
3239
+ },
3240
+ "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
3241
+ "fieldName": "hint",
3242
+ "inheritedFrom": {
3243
+ "name": "FormAssociatedMixin",
3244
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3245
+ }
3246
+ },
3247
+ {
3248
+ "name": "hide-label",
3249
+ "type": {
3250
+ "text": "boolean"
3251
+ },
3252
+ "default": "false",
3253
+ "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
3254
+ "fieldName": "hideLabel",
3255
+ "inheritedFrom": {
3256
+ "name": "FormAssociatedMixin",
3257
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3258
+ }
3259
+ },
3260
+ {
3261
+ "name": "placeholder",
3262
+ "type": {
3263
+ "text": "string | undefined"
3264
+ },
3265
+ "description": "Placeholder text to display within the input.",
3266
+ "fieldName": "placeholder",
3267
+ "inheritedFrom": {
3268
+ "name": "FormAssociatedMixin",
3269
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3270
+ }
3271
+ },
3272
+ {
3273
+ "name": "error",
3274
+ "type": {
3275
+ "text": "string | undefined"
3276
+ },
3277
+ "description": "Optional error to be shown with the input. Alternatively use the error slot.",
3278
+ "fieldName": "error",
3279
+ "inheritedFrom": {
3280
+ "name": "FormAssociatedMixin",
3281
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3282
+ }
3283
+ },
3284
+ {
3285
+ "name": "required",
3286
+ "type": {
3287
+ "text": "boolean"
3288
+ },
3289
+ "default": "false",
3290
+ "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.",
3291
+ "fieldName": "required",
3292
+ "inheritedFrom": {
3293
+ "name": "FormAssociatedMixin",
3294
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3295
+ }
3296
+ },
3297
+ {
3298
+ "name": "expand",
3299
+ "type": {
3300
+ "text": "boolean"
3301
+ },
3302
+ "default": "false",
3303
+ "description": "Controls whether the input expands to fill the width of its container.",
3304
+ "fieldName": "expand",
3305
+ "inheritedFrom": {
3306
+ "name": "FormAssociatedMixin",
3307
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
3308
+ }
3309
+ },
3310
+ {
3311
+ "name": "disabled",
3312
+ "type": {
3313
+ "text": "boolean"
3314
+ },
3315
+ "default": "false",
3316
+ "description": "Makes the input component disabled.\nThis prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies.",
3317
+ "fieldName": "disabled",
3318
+ "inheritedFrom": {
3319
+ "name": "InputMixin",
3320
+ "module": "src/common/mixins/InputMixin.ts"
3321
+ }
3322
+ },
3323
+ {
3324
+ "name": "name",
3325
+ "type": {
3326
+ "text": "string | undefined"
3327
+ },
3328
+ "description": "The name of the input component.",
3329
+ "fieldName": "name",
3330
+ "inheritedFrom": {
3331
+ "name": "InputMixin",
3332
+ "module": "src/common/mixins/InputMixin.ts"
3333
+ }
3334
+ }
3335
+ ],
3336
+ "mixins": [
3337
+ {
3338
+ "name": "FormAssociatedMixin",
3339
+ "module": "/src/common/mixins/FormAssociatedMixin.js"
3340
+ },
3341
+ {
3342
+ "name": "InputMixin",
3343
+ "module": "/src/common/mixins/InputMixin.js"
3344
+ },
3345
+ {
3346
+ "name": "FocusableMixin",
3347
+ "module": "/src/common/mixins/FocusableMixin.js"
3348
+ },
3349
+ {
3350
+ "name": "DraftComponentMixin",
3351
+ "module": "/src/common/mixins/DraftComponentMixin.js"
3352
+ }
3353
+ ],
3354
+ "superclass": {
3355
+ "name": "LitElement",
3356
+ "package": "lit"
3357
+ },
3358
+ "status": "draft",
3359
+ "category": "form",
3360
+ "tagName": "nord-date-picker",
3361
+ "customElement": true
3362
+ }
3363
+ ],
3364
+ "exports": [
3365
+ {
3366
+ "kind": "js",
3367
+ "name": "default",
3368
+ "declaration": {
3369
+ "name": "DatePicker",
3370
+ "module": "src/date-picker/DatePicker.ts"
3371
+ }
3372
+ },
3373
+ {
3374
+ "kind": "custom-element-definition",
3375
+ "name": "nord-date-picker",
3376
+ "declaration": {
3377
+ "name": "DatePicker",
3378
+ "module": "src/date-picker/DatePicker.ts"
3379
+ }
3380
+ }
3381
+ ]
3382
+ },
3383
+ {
3384
+ "kind": "javascript-module",
3385
+ "path": "src/date-picker/date-adapter.ts",
3386
+ "declarations": [
3387
+ {
3388
+ "kind": "variable",
3389
+ "name": "isoAdapter",
3390
+ "type": {
3391
+ "text": "DateAdapter"
3392
+ },
3393
+ "default": "{ parse: parseISODate, format: printISODate }"
3394
+ }
3395
+ ],
3396
+ "exports": [
3397
+ {
3398
+ "kind": "js",
3399
+ "name": "isoAdapter",
3400
+ "declaration": {
3401
+ "name": "isoAdapter",
3402
+ "module": "src/date-picker/date-adapter.ts"
3403
+ }
3404
+ }
3405
+ ]
3406
+ },
3407
+ {
3408
+ "kind": "javascript-module",
3409
+ "path": "src/date-picker/date-localization.ts",
3410
+ "declarations": [
3411
+ {
3412
+ "kind": "variable",
3413
+ "name": "localization",
3414
+ "type": {
3415
+ "text": "DatePickerLocalizedText"
3416
+ },
3417
+ "default": "{\n ...calendarLocalization,\n closeLabel: \"Close window\",\n buttonLabel: \"Choose date\",\n selectedDateMessage: \"Selected date is\",\n}"
3418
+ }
3419
+ ],
3420
+ "exports": [
3421
+ {
3422
+ "kind": "js",
3423
+ "name": "default",
3424
+ "declaration": {
3425
+ "name": "localization",
3426
+ "module": "src/date-picker/date-localization.ts"
3427
+ }
3428
+ }
3429
+ ]
3430
+ },
3431
+ {
3432
+ "kind": "javascript-module",
3433
+ "path": "src/icon/Icon.ts",
3434
+ "declarations": [
3435
+ {
3436
+ "kind": "class",
3437
+ "description": "Icons are used to provide additional meaning or in places where text label doesn’t fit.\nIcon component allows you to display an icon from the Nordicons library.",
3438
+ "name": "Icon",
3439
+ "members": [
3440
+ {
3441
+ "kind": "field",
3442
+ "name": "resolver",
3443
+ "type": {
3444
+ "text": "IconResolver"
3445
+ },
3446
+ "privacy": "private",
3447
+ "static": true
3448
+ },
3449
+ {
3450
+ "kind": "field",
3451
+ "name": "registeredIcons",
3452
+ "privacy": "private",
3453
+ "static": true,
3454
+ "default": "new Map<string, string>()"
3455
+ },
3456
+ {
3457
+ "kind": "method",
3458
+ "name": "registerResolver",
3459
+ "static": true,
3460
+ "parameters": [
3461
+ {
3462
+ "name": "resolver",
3463
+ "type": {
3464
+ "text": "IconResolver"
3465
+ },
3466
+ "description": "The resolver function to register."
3467
+ }
3468
+ ],
3469
+ "description": "Register a custom icon resolver, which accepts the icon name as an parameter, and returns an SVG string.\nCan return a string synchronously, or a promise of a string.\nBy default, will load icons from the Nord CDN."
3470
+ },
3471
+ {
3472
+ "kind": "method",
3473
+ "name": "registerIcon",
3474
+ "static": true,
3475
+ "return": {
3476
+ "type": {
3477
+ "text": "void"
3478
+ }
3479
+ },
3480
+ "parameters": [
3481
+ {
3482
+ "name": "icon",
3483
+ "type": {
3484
+ "text": "{ title: string; default: string }"
3485
+ },
3486
+ "description": "An object representing the icon to be registered, where \"title\" is the icon's name, and \"default\" is the SVG string.\nThis is intended to be used in cases where you import an icon's entire ES module and register it directly."
3487
+ }
3488
+ ],
3489
+ "description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
3490
+ },
3491
+ {
3492
+ "kind": "method",
3493
+ "name": "registerIcon",
3494
+ "static": true,
3495
+ "return": {
3496
+ "type": {
3497
+ "text": "void"
3498
+ }
3499
+ },
3500
+ "parameters": [
3501
+ {
3502
+ "name": "name",
3503
+ "type": {
3504
+ "text": "string"
3505
+ },
3506
+ "description": "The name of the icon to be registered."
3507
+ },
3508
+ {
3509
+ "name": "icon",
3510
+ "type": {
3511
+ "text": "string"
3512
+ },
3513
+ "description": "The SVG string for the icon."
3514
+ }
3515
+ ],
3516
+ "description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
3517
+ },
3518
+ {
3519
+ "kind": "method",
3520
+ "name": "registerIcon",
3521
+ "static": true,
3522
+ "parameters": [
3523
+ {
3524
+ "name": "iconOrName",
3525
+ "type": {
3526
+ "text": "string | { title: string; default: string }"
3527
+ }
3528
+ },
3529
+ {
3530
+ "name": "icon",
3531
+ "optional": true,
3532
+ "type": {
3533
+ "text": "string"
3534
+ }
3535
+ }
3536
+ ]
3537
+ },
3538
+ {
3539
+ "kind": "field",
3540
+ "name": "name",
3541
+ "type": {
3542
+ "text": "string"
3543
+ },
3544
+ "default": "\"\"",
3545
+ "description": "The name of the icon to display, as defined by nordicons.",
3546
+ "attribute": "name",
3547
+ "reflects": true
3548
+ },
3549
+ {
3550
+ "kind": "field",
3551
+ "name": "size",
3552
+ "type": {
3553
+ "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
3554
+ },
3555
+ "default": "\"m\"",
3556
+ "description": "The size of the icon.",
3557
+ "attribute": "size",
3558
+ "reflects": true
3559
+ },
3560
+ {
3561
+ "kind": "field",
3562
+ "name": "color",
3563
+ "type": {
3564
+ "text": "string | undefined"
3565
+ },
3566
+ "description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
3567
+ "attribute": "color",
3568
+ "reflects": true
3569
+ },
3570
+ {
3571
+ "kind": "field",
3572
+ "name": "label",
3573
+ "type": {
3574
+ "text": "string | undefined"
3575
+ },
3576
+ "description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
3577
+ "attribute": "label",
3578
+ "reflects": true
3579
+ },
3580
+ {
3581
+ "kind": "field",
3582
+ "name": "svg",
3583
+ "type": {
3584
+ "text": "string"
3585
+ },
3586
+ "privacy": "private",
3587
+ "default": "\"\""
3588
+ },
3589
+ {
3590
+ "kind": "method",
3591
+ "name": "resolve",
3592
+ "privacy": "private",
3593
+ "return": {
3594
+ "type": {
3595
+ "text": "string | Promise<string>"
3596
+ }
3597
+ }
3598
+ },
3599
+ {
3600
+ "kind": "field",
3601
+ "name": "_warningLogged",
3602
+ "type": {
3603
+ "text": "boolean"
3604
+ },
3605
+ "privacy": "private",
3606
+ "static": true,
3607
+ "default": "false",
3608
+ "inheritedFrom": {
3609
+ "name": "DraftComponentMixin",
3610
+ "module": "src/common/mixins/DraftComponentMixin.ts"
3611
+ }
3612
+ }
3613
+ ],
3614
+ "attributes": [
3615
+ {
3616
+ "name": "name",
3617
+ "type": {
3618
+ "text": "string"
3619
+ },
3620
+ "default": "\"\"",
3621
+ "description": "The name of the icon to display, as defined by nordicons.",
3622
+ "fieldName": "name"
3623
+ },
3624
+ {
3625
+ "name": "size",
3626
+ "type": {
3627
+ "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
3628
+ },
3629
+ "default": "\"m\"",
3630
+ "description": "The size of the icon.",
3631
+ "fieldName": "size"
3632
+ },
3633
+ {
3634
+ "name": "color",
3635
+ "type": {
3636
+ "text": "string | undefined"
3637
+ },
3638
+ "description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
3639
+ "fieldName": "color"
3640
+ },
3641
+ {
3642
+ "name": "label",
1641
3643
  "type": {
1642
- "text": "ICommandMenuAction"
3644
+ "text": "string | undefined"
1643
3645
  },
1644
- "default": "command"
3646
+ "description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
3647
+ "fieldName": "label"
3648
+ }
3649
+ ],
3650
+ "mixins": [
3651
+ {
3652
+ "name": "DraftComponentMixin",
3653
+ "module": "/src/common/mixins/DraftComponentMixin.js"
1645
3654
  }
1646
3655
  ],
1647
3656
  "superclass": {
1648
- "name": "NordEvent",
1649
- "module": "/src/common/events.js"
1650
- }
3657
+ "name": "LitElement",
3658
+ "package": "lit"
3659
+ },
3660
+ "status": "draft",
3661
+ "category": "image",
3662
+ "tagName": "nord-icon",
3663
+ "customElement": true
1651
3664
  }
1652
3665
  ],
1653
3666
  "exports": [
1654
3667
  {
1655
3668
  "kind": "js",
1656
- "name": "SelectEvent",
3669
+ "name": "default",
1657
3670
  "declaration": {
1658
- "name": "SelectEvent",
1659
- "module": "src/command-menu/events.ts"
3671
+ "name": "Icon",
3672
+ "module": "src/icon/Icon.ts"
3673
+ }
3674
+ },
3675
+ {
3676
+ "kind": "custom-element-definition",
3677
+ "name": "nord-icon",
3678
+ "declaration": {
3679
+ "name": "Icon",
3680
+ "module": "src/icon/Icon.ts"
1660
3681
  }
1661
3682
  }
1662
3683
  ]
@@ -1959,8 +3980,9 @@
1959
3980
  "kind": "field",
1960
3981
  "name": "value",
1961
3982
  "type": {
1962
- "text": "string | undefined"
3983
+ "text": "string"
1963
3984
  },
3985
+ "default": "\"\"",
1964
3986
  "description": "The value of the input component.",
1965
3987
  "attribute": "value",
1966
3988
  "inheritedFrom": {
@@ -2165,8 +4187,9 @@
2165
4187
  {
2166
4188
  "name": "value",
2167
4189
  "type": {
2168
- "text": "string | undefined"
4190
+ "text": "string"
2169
4191
  },
4192
+ "default": "\"\"",
2170
4193
  "description": "The value of the input component.",
2171
4194
  "fieldName": "value",
2172
4195
  "inheritedFrom": {
@@ -2557,8 +4580,9 @@
2557
4580
  "kind": "field",
2558
4581
  "name": "value",
2559
4582
  "type": {
2560
- "text": "string | undefined"
4583
+ "text": "string"
2561
4584
  },
4585
+ "default": "\"\"",
2562
4586
  "description": "The value of the input component.",
2563
4587
  "attribute": "value",
2564
4588
  "inheritedFrom": {
@@ -2780,8 +4804,9 @@
2780
4804
  {
2781
4805
  "name": "value",
2782
4806
  "type": {
2783
- "text": "string | undefined"
4807
+ "text": "string"
2784
4808
  },
4809
+ "default": "\"\"",
2785
4810
  "description": "The value of the input component.",
2786
4811
  "fieldName": "value",
2787
4812
  "inheritedFrom": {
@@ -2803,17 +4828,233 @@
2803
4828
  }
2804
4829
  },
2805
4830
  {
2806
- "name": "change",
4831
+ "name": "change",
4832
+ "type": {
4833
+ "text": "NordEvent"
4834
+ },
4835
+ "description": "Fired whenever the input's value is changed via user interaction.",
4836
+ "inheritedFrom": {
4837
+ "name": "FormAssociatedMixin",
4838
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
4839
+ }
4840
+ }
4841
+ ]
4842
+ }
4843
+ ],
4844
+ "exports": [
4845
+ {
4846
+ "kind": "js",
4847
+ "name": "default",
4848
+ "declaration": {
4849
+ "name": "Select",
4850
+ "module": "src/select/Select.ts"
4851
+ }
4852
+ },
4853
+ {
4854
+ "kind": "custom-element-definition",
4855
+ "name": "nord-select",
4856
+ "declaration": {
4857
+ "name": "Select",
4858
+ "module": "src/select/Select.ts"
4859
+ }
4860
+ }
4861
+ ]
4862
+ },
4863
+ {
4864
+ "kind": "javascript-module",
4865
+ "path": "src/spinner/Spinner.ts",
4866
+ "declarations": [
4867
+ {
4868
+ "kind": "class",
4869
+ "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.",
4870
+ "name": "Spinner",
4871
+ "members": [
4872
+ {
4873
+ "kind": "field",
4874
+ "name": "size",
4875
+ "type": {
4876
+ "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
4877
+ },
4878
+ "default": "\"m\"",
4879
+ "description": "The size of the spinner.",
4880
+ "attribute": "size",
4881
+ "reflects": true
4882
+ },
4883
+ {
4884
+ "kind": "field",
4885
+ "name": "color",
4886
+ "type": {
4887
+ "text": "string | undefined"
4888
+ },
4889
+ "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
4890
+ "attribute": "color",
4891
+ "reflects": true
4892
+ },
4893
+ {
4894
+ "kind": "field",
4895
+ "name": "label",
4896
+ "type": {
4897
+ "text": "string | undefined"
4898
+ },
4899
+ "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
4900
+ "attribute": "label",
4901
+ "reflects": true
4902
+ },
4903
+ {
4904
+ "kind": "field",
4905
+ "name": "_warningLogged",
4906
+ "type": {
4907
+ "text": "boolean"
4908
+ },
4909
+ "privacy": "private",
4910
+ "static": true,
4911
+ "default": "false",
4912
+ "inheritedFrom": {
4913
+ "name": "DraftComponentMixin",
4914
+ "module": "src/common/mixins/DraftComponentMixin.ts"
4915
+ }
4916
+ }
4917
+ ],
4918
+ "attributes": [
4919
+ {
4920
+ "name": "size",
4921
+ "type": {
4922
+ "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
4923
+ },
4924
+ "default": "\"m\"",
4925
+ "description": "The size of the spinner.",
4926
+ "fieldName": "size"
4927
+ },
4928
+ {
4929
+ "name": "color",
4930
+ "type": {
4931
+ "text": "string | undefined"
4932
+ },
4933
+ "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
4934
+ "fieldName": "color"
4935
+ },
4936
+ {
4937
+ "name": "label",
4938
+ "type": {
4939
+ "text": "string | undefined"
4940
+ },
4941
+ "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
4942
+ "fieldName": "label"
4943
+ }
4944
+ ],
4945
+ "mixins": [
4946
+ {
4947
+ "name": "DraftComponentMixin",
4948
+ "module": "/src/common/mixins/DraftComponentMixin.js"
4949
+ }
4950
+ ],
4951
+ "superclass": {
4952
+ "name": "LitElement",
4953
+ "package": "lit"
4954
+ },
4955
+ "status": "draft",
4956
+ "category": "feedback",
4957
+ "tagName": "nord-spinner",
4958
+ "customElement": true
4959
+ }
4960
+ ],
4961
+ "exports": [
4962
+ {
4963
+ "kind": "js",
4964
+ "name": "default",
4965
+ "declaration": {
4966
+ "name": "Spinner",
4967
+ "module": "src/spinner/Spinner.ts"
4968
+ }
4969
+ },
4970
+ {
4971
+ "kind": "custom-element-definition",
4972
+ "name": "nord-spinner",
4973
+ "declaration": {
4974
+ "name": "Spinner",
4975
+ "module": "src/spinner/Spinner.ts"
4976
+ }
4977
+ }
4978
+ ]
4979
+ },
4980
+ {
4981
+ "kind": "javascript-module",
4982
+ "path": "src/table/Table.ts",
4983
+ "declarations": [
4984
+ {
4985
+ "kind": "class",
4986
+ "description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
4987
+ "name": "Table",
4988
+ "slots": [
4989
+ {
4990
+ "description": "The table.",
4991
+ "name": ""
4992
+ }
4993
+ ],
4994
+ "members": [
4995
+ {
4996
+ "kind": "field",
4997
+ "name": "density",
4998
+ "type": {
4999
+ "text": "\"condensed\" | \"default\" | \"relaxed\""
5000
+ },
5001
+ "default": "\"default\"",
5002
+ "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
5003
+ "attribute": "density",
5004
+ "reflects": true
5005
+ },
5006
+ {
5007
+ "kind": "method",
5008
+ "name": "renderStyles",
5009
+ "privacy": "private",
5010
+ "description": "renders table styles into nearest root.\nthis is necessary since we do not use shadow dom."
5011
+ },
5012
+ {
5013
+ "kind": "method",
5014
+ "name": "createRenderRoot",
5015
+ "privacy": "protected",
5016
+ "description": "opt out of shadow dom"
5017
+ },
5018
+ {
5019
+ "kind": "field",
5020
+ "name": "_warningLogged",
5021
+ "type": {
5022
+ "text": "boolean"
5023
+ },
5024
+ "privacy": "private",
5025
+ "static": true,
5026
+ "default": "false",
5027
+ "inheritedFrom": {
5028
+ "name": "DraftComponentMixin",
5029
+ "module": "src/common/mixins/DraftComponentMixin.ts"
5030
+ }
5031
+ }
5032
+ ],
5033
+ "attributes": [
5034
+ {
5035
+ "name": "density",
2807
5036
  "type": {
2808
- "text": "NordEvent"
5037
+ "text": "\"condensed\" | \"default\" | \"relaxed\""
2809
5038
  },
2810
- "description": "Fired whenever the input's value is changed via user interaction.",
2811
- "inheritedFrom": {
2812
- "name": "FormAssociatedMixin",
2813
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2814
- }
5039
+ "default": "\"default\"",
5040
+ "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
5041
+ "fieldName": "density"
2815
5042
  }
2816
- ]
5043
+ ],
5044
+ "mixins": [
5045
+ {
5046
+ "name": "DraftComponentMixin",
5047
+ "module": "/src/common/mixins/DraftComponentMixin.js"
5048
+ }
5049
+ ],
5050
+ "superclass": {
5051
+ "name": "LitElement",
5052
+ "package": "lit"
5053
+ },
5054
+ "status": "draft",
5055
+ "category": "list",
5056
+ "tagName": "nord-table",
5057
+ "customElement": true
2817
5058
  }
2818
5059
  ],
2819
5060
  "exports": [
@@ -2821,16 +5062,16 @@
2821
5062
  "kind": "js",
2822
5063
  "name": "default",
2823
5064
  "declaration": {
2824
- "name": "Select",
2825
- "module": "src/select/Select.ts"
5065
+ "name": "Table",
5066
+ "module": "src/table/Table.ts"
2826
5067
  }
2827
5068
  },
2828
5069
  {
2829
5070
  "kind": "custom-element-definition",
2830
- "name": "nord-select",
5071
+ "name": "nord-table",
2831
5072
  "declaration": {
2832
- "name": "Select",
2833
- "module": "src/select/Select.ts"
5073
+ "name": "Table",
5074
+ "module": "src/table/Table.ts"
2834
5075
  }
2835
5076
  }
2836
5077
  ]
@@ -2962,44 +5203,19 @@
2962
5203
  },
2963
5204
  {
2964
5205
  "kind": "javascript-module",
2965
- "path": "src/spinner/Spinner.ts",
5206
+ "path": "src/visually-hidden/VisuallyHidden.ts",
2966
5207
  "declarations": [
2967
5208
  {
2968
5209
  "kind": "class",
2969
- "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.",
2970
- "name": "Spinner",
2971
- "members": [
2972
- {
2973
- "kind": "field",
2974
- "name": "size",
2975
- "type": {
2976
- "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
2977
- },
2978
- "default": "\"m\"",
2979
- "description": "The size of the spinner.",
2980
- "attribute": "size",
2981
- "reflects": true
2982
- },
2983
- {
2984
- "kind": "field",
2985
- "name": "color",
2986
- "type": {
2987
- "text": "string | undefined"
2988
- },
2989
- "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
2990
- "attribute": "color",
2991
- "reflects": true
2992
- },
5210
+ "description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
5211
+ "name": "VisuallyHidden",
5212
+ "slots": [
2993
5213
  {
2994
- "kind": "field",
2995
- "name": "label",
2996
- "type": {
2997
- "text": "string | undefined"
2998
- },
2999
- "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
3000
- "attribute": "label",
3001
- "reflects": true
3002
- },
5214
+ "description": "The visually hidden content.",
5215
+ "name": ""
5216
+ }
5217
+ ],
5218
+ "members": [
3003
5219
  {
3004
5220
  "kind": "field",
3005
5221
  "name": "_warningLogged",
@@ -3015,33 +5231,6 @@
3015
5231
  }
3016
5232
  }
3017
5233
  ],
3018
- "attributes": [
3019
- {
3020
- "name": "size",
3021
- "type": {
3022
- "text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
3023
- },
3024
- "default": "\"m\"",
3025
- "description": "The size of the spinner.",
3026
- "fieldName": "size"
3027
- },
3028
- {
3029
- "name": "color",
3030
- "type": {
3031
- "text": "string | undefined"
3032
- },
3033
- "description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
3034
- "fieldName": "color"
3035
- },
3036
- {
3037
- "name": "label",
3038
- "type": {
3039
- "text": "string | undefined"
3040
- },
3041
- "description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
3042
- "fieldName": "label"
3043
- }
3044
- ],
3045
5234
  "mixins": [
3046
5235
  {
3047
5236
  "name": "DraftComponentMixin",
@@ -3053,8 +5242,8 @@
3053
5242
  "package": "lit"
3054
5243
  },
3055
5244
  "status": "draft",
3056
- "category": "feedback",
3057
- "tagName": "nord-spinner",
5245
+ "category": "text",
5246
+ "tagName": "nord-visually-hidden",
3058
5247
  "customElement": true
3059
5248
  }
3060
5249
  ],
@@ -3063,16 +5252,16 @@
3063
5252
  "kind": "js",
3064
5253
  "name": "default",
3065
5254
  "declaration": {
3066
- "name": "Spinner",
3067
- "module": "src/spinner/Spinner.ts"
5255
+ "name": "VisuallyHidden",
5256
+ "module": "src/visually-hidden/VisuallyHidden.ts"
3068
5257
  }
3069
5258
  },
3070
5259
  {
3071
5260
  "kind": "custom-element-definition",
3072
- "name": "nord-spinner",
5261
+ "name": "nord-visually-hidden",
3073
5262
  "declaration": {
3074
- "name": "Spinner",
3075
- "module": "src/spinner/Spinner.ts"
5263
+ "name": "VisuallyHidden",
5264
+ "module": "src/visually-hidden/VisuallyHidden.ts"
3076
5265
  }
3077
5266
  }
3078
5267
  ]
@@ -3364,8 +5553,9 @@
3364
5553
  "kind": "field",
3365
5554
  "name": "value",
3366
5555
  "type": {
3367
- "text": "string | undefined"
5556
+ "text": "string"
3368
5557
  },
5558
+ "default": "\"\"",
3369
5559
  "description": "The value of the input component.",
3370
5560
  "attribute": "value",
3371
5561
  "inheritedFrom": {
@@ -3570,8 +5760,9 @@
3570
5760
  {
3571
5761
  "name": "value",
3572
5762
  "type": {
3573
- "text": "string | undefined"
5763
+ "text": "string"
3574
5764
  },
5765
+ "default": "\"\"",
3575
5766
  "description": "The value of the input component.",
3576
5767
  "fieldName": "value",
3577
5768
  "inheritedFrom": {
@@ -3590,132 +5781,9 @@
3590
5781
  "module": "/src/common/mixins/InputMixin.js"
3591
5782
  },
3592
5783
  {
3593
- "name": "FocusableMixin",
3594
- "module": "/src/common/mixins/FocusableMixin.js"
3595
- },
3596
- {
3597
- "name": "DraftComponentMixin",
3598
- "module": "/src/common/mixins/DraftComponentMixin.js"
3599
- }
3600
- ],
3601
- "superclass": {
3602
- "name": "LitElement",
3603
- "package": "lit"
3604
- },
3605
- "status": "draft",
3606
- "category": "form",
3607
- "tagName": "nord-textarea",
3608
- "customElement": true,
3609
- "events": [
3610
- {
3611
- "name": "input",
3612
- "type": {
3613
- "text": "NordEvent"
3614
- },
3615
- "description": "Fired as the user types into the input.",
3616
- "inheritedFrom": {
3617
- "name": "FormAssociatedMixin",
3618
- "module": "src/common/mixins/FormAssociatedMixin.ts"
3619
- }
3620
- },
3621
- {
3622
- "name": "change",
3623
- "type": {
3624
- "text": "NordEvent"
3625
- },
3626
- "description": "Fired whenever the input's value is changed via user interaction.",
3627
- "inheritedFrom": {
3628
- "name": "FormAssociatedMixin",
3629
- "module": "src/common/mixins/FormAssociatedMixin.ts"
3630
- }
3631
- }
3632
- ]
3633
- }
3634
- ],
3635
- "exports": [
3636
- {
3637
- "kind": "js",
3638
- "name": "default",
3639
- "declaration": {
3640
- "name": "Textarea",
3641
- "module": "src/textarea/Textarea.ts"
3642
- }
3643
- },
3644
- {
3645
- "kind": "custom-element-definition",
3646
- "name": "nord-textarea",
3647
- "declaration": {
3648
- "name": "Textarea",
3649
- "module": "src/textarea/Textarea.ts"
3650
- }
3651
- }
3652
- ]
3653
- },
3654
- {
3655
- "kind": "javascript-module",
3656
- "path": "src/table/Table.ts",
3657
- "declarations": [
3658
- {
3659
- "kind": "class",
3660
- "description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
3661
- "name": "Table",
3662
- "slots": [
3663
- {
3664
- "description": "The table.",
3665
- "name": ""
3666
- }
3667
- ],
3668
- "members": [
3669
- {
3670
- "kind": "field",
3671
- "name": "density",
3672
- "type": {
3673
- "text": "\"condensed\" | \"default\" | \"relaxed\""
3674
- },
3675
- "default": "\"default\"",
3676
- "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
3677
- "attribute": "density",
3678
- "reflects": true
3679
- },
3680
- {
3681
- "kind": "method",
3682
- "name": "renderStyles",
3683
- "privacy": "private",
3684
- "description": "renders table styles into nearest root.\nthis is necessary since we do not use shadow dom."
3685
- },
3686
- {
3687
- "kind": "method",
3688
- "name": "createRenderRoot",
3689
- "privacy": "protected",
3690
- "description": "opt out of shadow dom"
3691
- },
3692
- {
3693
- "kind": "field",
3694
- "name": "_warningLogged",
3695
- "type": {
3696
- "text": "boolean"
3697
- },
3698
- "privacy": "private",
3699
- "static": true,
3700
- "default": "false",
3701
- "inheritedFrom": {
3702
- "name": "DraftComponentMixin",
3703
- "module": "src/common/mixins/DraftComponentMixin.ts"
3704
- }
3705
- }
3706
- ],
3707
- "attributes": [
3708
- {
3709
- "name": "density",
3710
- "type": {
3711
- "text": "\"condensed\" | \"default\" | \"relaxed\""
3712
- },
3713
- "default": "\"default\"",
3714
- "description": "Controls the density of the table's rows and headers.\nRelaxed increases space, condensed reduces space.",
3715
- "fieldName": "density"
3716
- }
3717
- ],
3718
- "mixins": [
5784
+ "name": "FocusableMixin",
5785
+ "module": "/src/common/mixins/FocusableMixin.js"
5786
+ },
3719
5787
  {
3720
5788
  "name": "DraftComponentMixin",
3721
5789
  "module": "/src/common/mixins/DraftComponentMixin.js"
@@ -3726,9 +5794,33 @@
3726
5794
  "package": "lit"
3727
5795
  },
3728
5796
  "status": "draft",
3729
- "category": "list",
3730
- "tagName": "nord-table",
3731
- "customElement": true
5797
+ "category": "form",
5798
+ "tagName": "nord-textarea",
5799
+ "customElement": true,
5800
+ "events": [
5801
+ {
5802
+ "name": "input",
5803
+ "type": {
5804
+ "text": "NordEvent"
5805
+ },
5806
+ "description": "Fired as the user types into the input.",
5807
+ "inheritedFrom": {
5808
+ "name": "FormAssociatedMixin",
5809
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
5810
+ }
5811
+ },
5812
+ {
5813
+ "name": "change",
5814
+ "type": {
5815
+ "text": "NordEvent"
5816
+ },
5817
+ "description": "Fired whenever the input's value is changed via user interaction.",
5818
+ "inheritedFrom": {
5819
+ "name": "FormAssociatedMixin",
5820
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
5821
+ }
5822
+ }
5823
+ ]
3732
5824
  }
3733
5825
  ],
3734
5826
  "exports": [
@@ -3736,81 +5828,113 @@
3736
5828
  "kind": "js",
3737
5829
  "name": "default",
3738
5830
  "declaration": {
3739
- "name": "Table",
3740
- "module": "src/table/Table.ts"
5831
+ "name": "Textarea",
5832
+ "module": "src/textarea/Textarea.ts"
3741
5833
  }
3742
5834
  },
3743
5835
  {
3744
5836
  "kind": "custom-element-definition",
3745
- "name": "nord-table",
5837
+ "name": "nord-textarea",
3746
5838
  "declaration": {
3747
- "name": "Table",
3748
- "module": "src/table/Table.ts"
5839
+ "name": "Textarea",
5840
+ "module": "src/textarea/Textarea.ts"
3749
5841
  }
3750
5842
  }
3751
5843
  ]
3752
5844
  },
3753
5845
  {
3754
5846
  "kind": "javascript-module",
3755
- "path": "src/visually-hidden/VisuallyHidden.ts",
5847
+ "path": "src/common/directives/cond.ts",
5848
+ "declarations": [
5849
+ {
5850
+ "kind": "variable",
5851
+ "name": "cond"
5852
+ }
5853
+ ],
5854
+ "exports": [
5855
+ {
5856
+ "kind": "js",
5857
+ "name": "cond",
5858
+ "declaration": {
5859
+ "name": "cond",
5860
+ "module": "src/common/directives/cond.ts"
5861
+ }
5862
+ }
5863
+ ]
5864
+ },
5865
+ {
5866
+ "kind": "javascript-module",
5867
+ "path": "src/common/controllers/DirectionController.ts",
3756
5868
  "declarations": [
3757
5869
  {
3758
5870
  "kind": "class",
3759
- "description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
3760
- "name": "VisuallyHidden",
3761
- "slots": [
3762
- {
3763
- "description": "The visually hidden content.",
3764
- "name": ""
3765
- }
3766
- ],
5871
+ "description": "",
5872
+ "name": "DirectionController",
3767
5873
  "members": [
3768
5874
  {
3769
5875
  "kind": "field",
3770
- "name": "_warningLogged",
5876
+ "name": "hosts",
5877
+ "privacy": "private",
5878
+ "static": true,
5879
+ "default": "new Set<ReactiveControllerHost>()"
5880
+ },
5881
+ {
5882
+ "kind": "field",
5883
+ "name": "observer",
3771
5884
  "type": {
3772
- "text": "boolean"
5885
+ "text": "MutationObserver | undefined"
3773
5886
  },
3774
5887
  "privacy": "private",
3775
- "static": true,
3776
- "default": "false",
3777
- "inheritedFrom": {
3778
- "name": "DraftComponentMixin",
3779
- "module": "src/common/mixins/DraftComponentMixin.ts"
5888
+ "static": true
5889
+ },
5890
+ {
5891
+ "kind": "field",
5892
+ "name": "host",
5893
+ "type": {
5894
+ "text": "ReactiveControllerHost"
5895
+ },
5896
+ "privacy": "private",
5897
+ "default": "host"
5898
+ },
5899
+ {
5900
+ "kind": "field",
5901
+ "name": "dir",
5902
+ "type": {
5903
+ "text": "WritingDirection"
3780
5904
  }
3781
- }
3782
- ],
3783
- "mixins": [
5905
+ },
3784
5906
  {
3785
- "name": "DraftComponentMixin",
3786
- "module": "/src/common/mixins/DraftComponentMixin.js"
5907
+ "kind": "field",
5908
+ "name": "isLTR"
5909
+ },
5910
+ {
5911
+ "kind": "field",
5912
+ "name": "isRTL"
5913
+ },
5914
+ {
5915
+ "kind": "method",
5916
+ "name": "hostConnected"
5917
+ },
5918
+ {
5919
+ "kind": "method",
5920
+ "name": "hostDisconnected"
5921
+ },
5922
+ {
5923
+ "kind": "method",
5924
+ "name": "observe",
5925
+ "privacy": "private",
5926
+ "static": true
3787
5927
  }
3788
- ],
3789
- "superclass": {
3790
- "name": "LitElement",
3791
- "package": "lit"
3792
- },
3793
- "status": "draft",
3794
- "category": "text",
3795
- "tagName": "nord-visually-hidden",
3796
- "customElement": true
5928
+ ]
3797
5929
  }
3798
5930
  ],
3799
5931
  "exports": [
3800
5932
  {
3801
5933
  "kind": "js",
3802
- "name": "default",
3803
- "declaration": {
3804
- "name": "VisuallyHidden",
3805
- "module": "src/visually-hidden/VisuallyHidden.ts"
3806
- }
3807
- },
3808
- {
3809
- "kind": "custom-element-definition",
3810
- "name": "nord-visually-hidden",
5934
+ "name": "DirectionController",
3811
5935
  "declaration": {
3812
- "name": "VisuallyHidden",
3813
- "module": "src/visually-hidden/VisuallyHidden.ts"
5936
+ "name": "DirectionController",
5937
+ "module": "src/common/controllers/DirectionController.ts"
3814
5938
  }
3815
5939
  }
3816
5940
  ]
@@ -4022,20 +6146,145 @@
4022
6146
  },
4023
6147
  {
4024
6148
  "kind": "javascript-module",
4025
- "path": "src/common/directives/cond.ts",
6149
+ "path": "src/common/controllers/SwipeController.ts",
4026
6150
  "declarations": [
4027
6151
  {
4028
- "kind": "variable",
4029
- "name": "cond"
6152
+ "kind": "class",
6153
+ "description": "",
6154
+ "name": "SwipeController",
6155
+ "members": [
6156
+ {
6157
+ "kind": "field",
6158
+ "name": "host",
6159
+ "type": {
6160
+ "text": "ReactiveElement"
6161
+ },
6162
+ "privacy": "private",
6163
+ "default": "host"
6164
+ },
6165
+ {
6166
+ "kind": "field",
6167
+ "name": "attached",
6168
+ "type": {
6169
+ "text": "boolean"
6170
+ },
6171
+ "privacy": "private",
6172
+ "default": "false"
6173
+ },
6174
+ {
6175
+ "kind": "field",
6176
+ "name": "initialTouchX",
6177
+ "type": {
6178
+ "text": "number"
6179
+ },
6180
+ "privacy": "private",
6181
+ "default": "0"
6182
+ },
6183
+ {
6184
+ "kind": "field",
6185
+ "name": "initialTouchY",
6186
+ "type": {
6187
+ "text": "number"
6188
+ },
6189
+ "privacy": "private",
6190
+ "default": "0"
6191
+ },
6192
+ {
6193
+ "kind": "field",
6194
+ "name": "target",
6195
+ "type": {
6196
+ "text": "() => HTMLElement"
6197
+ },
6198
+ "privacy": "private"
6199
+ },
6200
+ {
6201
+ "kind": "field",
6202
+ "name": "onSwipeEnd",
6203
+ "type": {
6204
+ "text": "SwipeControllerOptions[\"onSwipeEnd\"]"
6205
+ },
6206
+ "privacy": "private"
6207
+ },
6208
+ {
6209
+ "kind": "field",
6210
+ "name": "matchesGesture",
6211
+ "type": {
6212
+ "text": "SwipeControllerOptions[\"matchesGesture\"]"
6213
+ }
6214
+ },
6215
+ {
6216
+ "kind": "method",
6217
+ "name": "hostUpdated"
6218
+ },
6219
+ {
6220
+ "kind": "method",
6221
+ "name": "hostDisconnected"
6222
+ },
6223
+ {
6224
+ "kind": "field",
6225
+ "name": "handleTouchStart",
6226
+ "privacy": "private"
6227
+ },
6228
+ {
6229
+ "kind": "field",
6230
+ "name": "handleTouchMove",
6231
+ "privacy": "private"
6232
+ },
6233
+ {
6234
+ "kind": "field",
6235
+ "name": "handleTouchEnd",
6236
+ "privacy": "private"
6237
+ }
6238
+ ]
6239
+ },
6240
+ {
6241
+ "kind": "function",
6242
+ "name": "isHorizontalSwipe",
6243
+ "parameters": [
6244
+ {
6245
+ "name": "{ distX, distY }",
6246
+ "type": {
6247
+ "text": "SwipeDetails"
6248
+ }
6249
+ }
6250
+ ]
6251
+ },
6252
+ {
6253
+ "kind": "function",
6254
+ "name": "isDownwardsSwipe",
6255
+ "parameters": [
6256
+ {
6257
+ "name": "{ distX, distY }",
6258
+ "type": {
6259
+ "text": "SwipeDetails"
6260
+ }
6261
+ }
6262
+ ]
4030
6263
  }
4031
6264
  ],
4032
6265
  "exports": [
4033
6266
  {
4034
6267
  "kind": "js",
4035
- "name": "cond",
6268
+ "name": "SwipeController",
4036
6269
  "declaration": {
4037
- "name": "cond",
4038
- "module": "src/common/directives/cond.ts"
6270
+ "name": "SwipeController",
6271
+ "module": "src/common/controllers/SwipeController.ts"
6272
+ }
6273
+ },
6274
+ {
6275
+ "kind": "js",
6276
+ "name": "isHorizontalSwipe",
6277
+ "declaration": {
6278
+ "name": "isHorizontalSwipe",
6279
+ "module": "src/common/controllers/SwipeController.ts"
6280
+ }
6281
+ },
6282
+ {
6283
+ "kind": "js",
6284
+ "name": "isDownwardsSwipe",
6285
+ "declaration": {
6286
+ "name": "isDownwardsSwipe",
6287
+ "module": "src/common/controllers/SwipeController.ts"
4039
6288
  }
4040
6289
  }
4041
6290
  ]
@@ -4674,8 +6923,9 @@
4674
6923
  "kind": "field",
4675
6924
  "name": "value",
4676
6925
  "type": {
4677
- "text": "string | undefined"
6926
+ "text": "string"
4678
6927
  },
6928
+ "default": "\"\"",
4679
6929
  "description": "The value of the input component.",
4680
6930
  "attribute": "value"
4681
6931
  },
@@ -4707,8 +6957,9 @@
4707
6957
  {
4708
6958
  "name": "value",
4709
6959
  "type": {
4710
- "text": "string | undefined"
6960
+ "text": "string"
4711
6961
  },
6962
+ "default": "\"\"",
4712
6963
  "description": "The value of the input component.",
4713
6964
  "fieldName": "value"
4714
6965
  }