@nordhealth/components 4.0.0-alpha.2 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -673,91 +673,6 @@
673
673
  }
674
674
  ]
675
675
  },
676
- {
677
- "kind": "javascript-module",
678
- "path": "src/banner/Banner.ts",
679
- "declarations": [
680
- {
681
- "kind": "class",
682
- "description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
683
- "name": "Banner",
684
- "cssProperties": [
685
- {
686
- "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
687
- "name": "--n-banner-border-radius",
688
- "default": "var(--n-border-radius)"
689
- },
690
- {
691
- "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
692
- "name": "--n-banner-box-shadow",
693
- "default": "var(--n-box-shadow-card)"
694
- }
695
- ],
696
- "slots": [
697
- {
698
- "description": "default slot",
699
- "name": ""
700
- }
701
- ],
702
- "members": [
703
- {
704
- "kind": "field",
705
- "name": "variant",
706
- "type": {
707
- "text": "\"info\" | \"danger\" | \"success\" | \"warning\""
708
- },
709
- "default": "\"info\"",
710
- "description": "The style variant of the banner.",
711
- "attribute": "variant",
712
- "reflects": true
713
- }
714
- ],
715
- "attributes": [
716
- {
717
- "name": "variant",
718
- "type": {
719
- "text": "\"info\" | \"danger\" | \"success\" | \"warning\""
720
- },
721
- "default": "\"info\"",
722
- "description": "The style variant of the banner.",
723
- "fieldName": "variant"
724
- }
725
- ],
726
- "superclass": {
727
- "name": "LitElement",
728
- "package": "lit"
729
- },
730
- "localization": [],
731
- "status": "ready",
732
- "category": "feedback",
733
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n",
734
- "examples": [],
735
- "dependencies": [
736
- "icon"
737
- ],
738
- "tagName": "nord-banner",
739
- "customElement": true
740
- }
741
- ],
742
- "exports": [
743
- {
744
- "kind": "js",
745
- "name": "default",
746
- "declaration": {
747
- "name": "Banner",
748
- "module": "src/banner/Banner.ts"
749
- }
750
- },
751
- {
752
- "kind": "custom-element-definition",
753
- "name": "nord-banner",
754
- "declaration": {
755
- "name": "Banner",
756
- "module": "src/banner/Banner.ts"
757
- }
758
- }
759
- ]
760
- },
761
676
  {
762
677
  "kind": "javascript-module",
763
678
  "path": "src/badge/Badge.ts",
@@ -875,161 +790,6 @@
875
790
  }
876
791
  ]
877
792
  },
878
- {
879
- "kind": "javascript-module",
880
- "path": "src/button-group/ButtonGroup.ts",
881
- "declarations": [
882
- {
883
- "kind": "class",
884
- "description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
885
- "name": "ButtonGroup",
886
- "cssProperties": [
887
- {
888
- "description": "Controls the rounded corners of the button group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.",
889
- "name": "--n-button-group-border-radius",
890
- "default": "var(--n-border-radius-s)"
891
- },
892
- {
893
- "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.",
894
- "name": "--n-button-group-box-shadow",
895
- "default": "var(--n-box-shadow)"
896
- }
897
- ],
898
- "slots": [
899
- {
900
- "description": "The button group content",
901
- "name": ""
902
- }
903
- ],
904
- "members": [
905
- {
906
- "kind": "field",
907
- "name": "defaultSlot",
908
- "privacy": "private",
909
- "default": "new SlotController(this)"
910
- },
911
- {
912
- "kind": "field",
913
- "name": "dirController",
914
- "privacy": "private",
915
- "default": "new DirectionController(this)"
916
- },
917
- {
918
- "kind": "field",
919
- "name": "variant",
920
- "type": {
921
- "text": "\"default\" | \"spaced\""
922
- },
923
- "default": "\"default\"",
924
- "description": "The style variant of the button group.",
925
- "attribute": "variant",
926
- "reflects": true
927
- },
928
- {
929
- "kind": "field",
930
- "name": "direction",
931
- "type": {
932
- "text": "\"vertical\" | \"horizontal\""
933
- },
934
- "default": "\"horizontal\"",
935
- "description": "The direction of the button group.",
936
- "attribute": "direction",
937
- "reflects": true
938
- },
939
- {
940
- "kind": "field",
941
- "name": "wrap",
942
- "type": {
943
- "text": "boolean"
944
- },
945
- "default": "false",
946
- "description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
947
- "attribute": "wrap",
948
- "reflects": true
949
- },
950
- {
951
- "kind": "field",
952
- "name": "role",
953
- "type": {
954
- "text": "string"
955
- },
956
- "default": "\"group\"",
957
- "description": "The appropriate role for the containing element.",
958
- "attribute": "role",
959
- "reflects": true
960
- }
961
- ],
962
- "attributes": [
963
- {
964
- "name": "variant",
965
- "type": {
966
- "text": "\"default\" | \"spaced\""
967
- },
968
- "default": "\"default\"",
969
- "description": "The style variant of the button group.",
970
- "fieldName": "variant"
971
- },
972
- {
973
- "name": "direction",
974
- "type": {
975
- "text": "\"vertical\" | \"horizontal\""
976
- },
977
- "default": "\"horizontal\"",
978
- "description": "The direction of the button group.",
979
- "fieldName": "direction"
980
- },
981
- {
982
- "name": "wrap",
983
- "type": {
984
- "text": "boolean"
985
- },
986
- "default": "false",
987
- "description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
988
- "fieldName": "wrap"
989
- },
990
- {
991
- "name": "role",
992
- "type": {
993
- "text": "string"
994
- },
995
- "default": "\"group\"",
996
- "description": "The appropriate role for the containing element.",
997
- "fieldName": "role"
998
- }
999
- ],
1000
- "superclass": {
1001
- "name": "LitElement",
1002
- "package": "lit"
1003
- },
1004
- "localization": [],
1005
- "status": "ready",
1006
- "category": "structure",
1007
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to group together buttons, or dropdowns, of a similar nature or purpose.\n- Use the appropriate `role` attribute on the button group to provide additional semantics.\n- Use an `aria-labelledby` attribute referencing another element to best explain the contents of the button group.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t add components other than buttons, dropdowns and in some instances visually hidden components to the button group.\n- Don’t skip the addition of an appropriate label if the added `role` attribute value calls for it.\n- Don’t use for building grid based layouts.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| --------- | -------------------------------------------------------------------------------------------------------- |\n| `default` | The default variant renders a group of segmented buttons to emphasize that they’re thematically-related. |\n| `spaced` | The spaced variant renders a gap between the buttons to space them out evenly. |\n",
1008
- "examples": [],
1009
- "dependencies": [],
1010
- "tagName": "nord-button-group",
1011
- "customElement": true
1012
- }
1013
- ],
1014
- "exports": [
1015
- {
1016
- "kind": "js",
1017
- "name": "default",
1018
- "declaration": {
1019
- "name": "ButtonGroup",
1020
- "module": "src/button-group/ButtonGroup.ts"
1021
- }
1022
- },
1023
- {
1024
- "kind": "custom-element-definition",
1025
- "name": "nord-button-group",
1026
- "declaration": {
1027
- "name": "ButtonGroup",
1028
- "module": "src/button-group/ButtonGroup.ts"
1029
- }
1030
- }
1031
- ]
1032
- },
1033
793
  {
1034
794
  "kind": "javascript-module",
1035
795
  "path": "src/button/Button.ts",
@@ -1613,7 +1373,7 @@
1613
1373
  "localization": [],
1614
1374
  "status": "ready",
1615
1375
  "category": "action",
1616
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Only use one primary button per section, as a main call-to-action.\n- Use clear and accurate labels.\n- Use established button colors appropriately. For example, only use a danger button style for an action that’s difficult or impossible to undo.\n- Prioritize the most important actions. Too many buttons will cause confusion.\n- Be consistent with positioning of buttons in the user interface.\n- Use strong, actionable verbs in labels such as “Add”, “Close”, “Cancel”, or “Save”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use a primary button in every row of a table.\n- Don’t use buttons to link to other pages. Use regular link or a plain style instead where necessary.\n- Don’t use buttons for navigation where the link appears within or following a sentence.\n- Don’t use labels such as “Read more”, “Click here” or “More”.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `default` | Default style is the most common button variant. Only switch to another variant if you need to adjust the visual weight of the element. |\n| `primary` | Primary style is reserved for main call-to-actions. Should be used only once per content area or panel, e.g. for a “Save” action. |\n| `dashed` | Dashed style should be used for actions that trigger filtering. |\n| `danger` | Danger style should be used for actions that delete data or otherwise make it hard to undo the action. |\n| `plain` | Used for less important or less common actions. Can be also used for linking to other pages. |\n| `disabled` | Used for actions that aren’t currently available or not available anymore. Also prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies. |\n\n---\n\n## Icon usage in button\n\nIllustrative icons should be always positioned in the `start` slot:\n\n<img src=\"/img/components/button/start-slot.png\" class=\"n-border n-border-radius\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Button with icon in start slot\" />\n\nWhen a button is used as a dropdown toggle, the `interface-dropdown-small` icon from [Nordicons](/nordicons/) is automatically placed in the `end` slot:\n\n<img src=\"/img/components/button/dropdown.png\" class=\"n-border n-border-radius\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Dropdown button\" />\n\nEach button size has a recommended icon size. The medium button uses the `s` icon size, the [small button](/components/button/?example=small+buttons) uses the `xs` icon size, and the [large button](/components/button/?example=large+buttons) uses the `m` icon size. The icon will adjust size automatically based on the button size, so you will get the correct behavior by default. However, this can be overridden by explicitly setting a size on the icon.\n\n<img src=\"/img/components/button/icon-sizes.png\" class=\"n-border n-border-radius\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Button icon sizes\" />\n\nUse `interface-add-small` icon in the `start` slot for create/add type primary actions in the [header](/components/header/):\n\n<img src=\"/img/components/button/create.png\" class=\"n-border n-border-radius\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Create/add type primary action with icon\" />\n\n---\n\n## Additional considerations\n\n- Users of assistive technology expect a button to submit data or do an action. If you need the button to navigate into another view, use the `href` property which will output `<a>` tag instead of a `<button>`.\n- When you need to disable a button, use `disabled` property as it conveys this information correctly to assistive technologies like screen readers.\n- Button component provides 3 size variants; small, medium and large. The large size should only be used for marketing purposes or on areas such as an empty space/content notice.\n",
1376
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Only use one primary button per section, as a main call-to-action.\n- Use clear and accurate labels.\n- Use established button colors appropriately. For example, only use a danger button style for an action that’s difficult or impossible to undo.\n- Prioritize the most important actions. Too many buttons will cause confusion.\n- Be consistent with positioning of buttons in the user interface.\n- Use strong, actionable verbs in labels such as “Add”, “Close”, “Cancel”, or “Save”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use a primary button in every row of a table.\n- Don’t use buttons to link to other pages. Use regular link or a plain style instead where necessary.\n- Don’t use buttons for navigation where the link appears within or following a sentence.\n- Don’t use labels such as “Read more”, “Click here” or “More”.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `default` | Default style is the most common button variant. Only switch to another variant if you need to adjust the visual weight of the element. |\n| `primary` | Primary style is reserved for main call-to-actions. Should be used only once per content area or panel, e.g. for a “Save” action. |\n| `dashed` | Dashed style should be used for actions that trigger filtering. |\n| `danger` | Danger style should be used for actions that delete data or otherwise make it hard to undo the action. |\n| `plain` | Used for less important or less common actions. Can be also used for linking to other pages. |\n| `disabled` | Used for actions that aren’t currently available or not available anymore. Also prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies. |\n\n---\n\n## Icon usage in button\n\nIllustrative icons should be always positioned in the `start` slot:\n\n<img src=\"/img/components/button/start-slot.png\" class=\"n-border n-border-radius n-brand-therapy\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Button with icon in start slot\" />\n<img src=\"/img/components/button/start-slot-vet.png\" class=\"n-border n-border-radius n-brand-veterinary\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Button with icon in start slot\" />\n\nWhen a button is used as a dropdown toggle, the `interface-dropdown-small` icon from [Nordicons](/nordicons/) is automatically placed in the `end` slot:\n\n<img src=\"/img/components/button/dropdown.png\" class=\"n-border n-border-radius\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Dropdown button\" />\n\nEach button size has a recommended icon size. The medium button uses the `s` icon size, the [small button](/components/button/?example=small+buttons) uses the `xs` icon size, and the [large button](/components/button/?example=large+buttons) uses the `m` icon size. The icon will adjust size automatically based on the button size, so you will get the correct behavior by default. However, this can be overridden by explicitly setting a size on the icon.\n\n<img src=\"/img/components/button/icon-sizes.png\" class=\"n-border n-border-radius n-brand-therapy\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Button icon sizes\" />\n<img src=\"/img/components/button/icon-sizes-vet.png\" class=\"n-border n-border-radius n-brand-veterinary\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Button icon sizes\" />\n\nUse `interface-add-small` icon in the `start` slot for create/add type primary actions in the [header](/components/header/):\n\n<img src=\"/img/components/button/create.png\" class=\"n-border n-border-radius n-brand-therapy\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Create/add type primary action with icon\" />\n<img src=\"/img/components/button/create-vet.png\" class=\"n-border n-border-radius n-brand-veterinary\" style=\"max-inline-size:700px;\" loading=\"lazy\" height=\"475\" width=\"800\" alt=\"Create/add type primary action with icon\" />\n\n---\n\n## Additional considerations\n\n- Users of assistive technology expect a button to submit data or do an action. If you need the button to navigate into another view, use the `href` property which will output `<a>` tag instead of a `<button>`.\n- When you need to disable a button, use `disabled` property as it conveys this information correctly to assistive technologies like screen readers.\n- Button component provides 3 size variants; small, medium and large. The large size should only be used for marketing purposes or on areas such as an empty space/content notice.\n",
1617
1377
  "examples": [],
1618
1378
  "dependencies": [
1619
1379
  "spinner"
@@ -1643,455 +1403,551 @@
1643
1403
  },
1644
1404
  {
1645
1405
  "kind": "javascript-module",
1646
- "path": "src/checkbox/Checkbox.ts",
1406
+ "path": "src/banner/Banner.ts",
1647
1407
  "declarations": [
1648
1408
  {
1649
1409
  "kind": "class",
1650
- "description": "Checkboxes allow user to choose one or more options from a limited set of options.\nIf you have more than 10 options, please use Select component instead.",
1651
- "name": "Checkbox",
1410
+ "description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
1411
+ "name": "Banner",
1652
1412
  "cssProperties": [
1653
1413
  {
1654
- "description": "Controls the text color of the label, using our [color tokens](/tokens/#color).",
1655
- "name": "--n-label-color",
1656
- "default": "var(--n-color-text)"
1657
- }
1658
- ],
1659
- "slots": [
1414
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
1415
+ "name": "--n-banner-border-radius",
1416
+ "default": "var(--n-border-radius)"
1417
+ },
1660
1418
  {
1661
- "description": "Use when a label requires more than plain text.",
1662
- "name": "label"
1663
- },
1664
- {
1665
- "description": "Optional slot that holds hint text for the input.",
1666
- "name": "hint"
1667
- },
1419
+ "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
1420
+ "name": "--n-banner-box-shadow",
1421
+ "default": "var(--n-box-shadow-card)"
1422
+ }
1423
+ ],
1424
+ "slots": [
1668
1425
  {
1669
- "description": "Optional slot that holds error text for the input.",
1670
- "name": "error"
1426
+ "description": "default slot",
1427
+ "name": ""
1671
1428
  }
1672
1429
  ],
1673
1430
  "members": [
1674
1431
  {
1675
1432
  "kind": "field",
1676
- "name": "formValue",
1677
- "privacy": "protected",
1678
- "readonly": true,
1679
- "inheritedFrom": {
1680
- "name": "FormAssociatedMixin",
1681
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1682
- }
1683
- },
1684
- {
1685
- "kind": "field",
1686
- "name": "indeterminate",
1433
+ "name": "variant",
1687
1434
  "type": {
1688
- "text": "boolean"
1435
+ "text": "\"info\" | \"danger\" | \"success\" | \"warning\""
1689
1436
  },
1690
- "default": "false",
1691
- "description": "Controls whether the checkbox is in an indeterminate state.",
1692
- "attribute": "indeterminate",
1437
+ "default": "\"info\"",
1438
+ "description": "The style variant of the banner.",
1439
+ "attribute": "variant",
1693
1440
  "reflects": true
1694
- },
1441
+ }
1442
+ ],
1443
+ "attributes": [
1695
1444
  {
1696
- "kind": "field",
1697
- "name": "checked",
1445
+ "name": "variant",
1698
1446
  "type": {
1699
- "text": "boolean"
1447
+ "text": "\"info\" | \"danger\" | \"success\" | \"warning\""
1700
1448
  },
1701
- "default": "false",
1702
- "description": "Controls whether the checkbox is checked or not.",
1703
- "attribute": "checked",
1704
- "reflects": true
1705
- },
1449
+ "default": "\"info\"",
1450
+ "description": "The style variant of the banner.",
1451
+ "fieldName": "variant"
1452
+ }
1453
+ ],
1454
+ "superclass": {
1455
+ "name": "LitElement",
1456
+ "package": "lit"
1457
+ },
1458
+ "localization": [],
1459
+ "status": "ready",
1460
+ "category": "feedback",
1461
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n",
1462
+ "examples": [],
1463
+ "dependencies": [
1464
+ "icon"
1465
+ ],
1466
+ "tagName": "nord-banner",
1467
+ "customElement": true
1468
+ }
1469
+ ],
1470
+ "exports": [
1471
+ {
1472
+ "kind": "js",
1473
+ "name": "default",
1474
+ "declaration": {
1475
+ "name": "Banner",
1476
+ "module": "src/banner/Banner.ts"
1477
+ }
1478
+ },
1479
+ {
1480
+ "kind": "custom-element-definition",
1481
+ "name": "nord-banner",
1482
+ "declaration": {
1483
+ "name": "Banner",
1484
+ "module": "src/banner/Banner.ts"
1485
+ }
1486
+ }
1487
+ ]
1488
+ },
1489
+ {
1490
+ "kind": "javascript-module",
1491
+ "path": "src/button-group/ButtonGroup.ts",
1492
+ "declarations": [
1493
+ {
1494
+ "kind": "class",
1495
+ "description": "Button groups are designed to bring together button controls that are of a similar nature. For example text formatting controls.",
1496
+ "name": "ButtonGroup",
1497
+ "cssProperties": [
1706
1498
  {
1707
- "kind": "method",
1708
- "name": "handleChange",
1709
- "privacy": "protected",
1710
- "parameters": [
1711
- {
1712
- "name": "e",
1713
- "type": {
1714
- "text": "Event"
1715
- }
1716
- }
1717
- ],
1718
- "return": {
1719
- "type": {
1720
- "text": "void"
1721
- }
1722
- },
1723
- "inheritedFrom": {
1724
- "name": "FormAssociatedMixin",
1725
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1726
- }
1499
+ "description": "Controls the rounded corners of the button group, using [border radius tokens](/tokens/#border-radius). Only relevant for the default variant.",
1500
+ "name": "--n-button-group-border-radius",
1501
+ "default": "var(--n-border-radius-s)"
1727
1502
  },
1728
1503
  {
1729
- "kind": "field",
1730
- "name": "size",
1731
- "type": {
1732
- "text": "\"s\" | \"m\" | \"l\""
1733
- },
1734
- "default": "\"m\"",
1735
- "description": "The size of the component.",
1736
- "attribute": "size",
1737
- "reflects": true,
1738
- "inheritedFrom": {
1739
- "name": "SizeMixin",
1740
- "module": "src/common/mixins/SizeMixin.ts"
1741
- }
1742
- },
1504
+ "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow). Only relevant for the default variant.",
1505
+ "name": "--n-button-group-box-shadow",
1506
+ "default": "var(--n-box-shadow)"
1507
+ }
1508
+ ],
1509
+ "slots": [
1743
1510
  {
1744
- "kind": "field",
1745
- "name": "labelSlot",
1746
- "privacy": "protected",
1747
- "default": "new SlotController(this, \"label\")",
1748
- "inheritedFrom": {
1749
- "name": "FormAssociatedMixin",
1750
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1751
- }
1752
- },
1511
+ "description": "The button group content",
1512
+ "name": ""
1513
+ }
1514
+ ],
1515
+ "members": [
1753
1516
  {
1754
1517
  "kind": "field",
1755
- "name": "errorSlot",
1756
- "privacy": "protected",
1757
- "default": "new SlotController(this, \"error\")",
1758
- "inheritedFrom": {
1759
- "name": "FormAssociatedMixin",
1760
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1761
- }
1518
+ "name": "defaultSlot",
1519
+ "privacy": "private",
1520
+ "default": "new SlotController(this)"
1762
1521
  },
1763
1522
  {
1764
1523
  "kind": "field",
1765
- "name": "hintSlot",
1766
- "privacy": "protected",
1767
- "default": "new SlotController(this, \"hint\")",
1768
- "inheritedFrom": {
1769
- "name": "FormAssociatedMixin",
1770
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1771
- }
1524
+ "name": "dirController",
1525
+ "privacy": "private",
1526
+ "default": "new DirectionController(this)"
1772
1527
  },
1773
1528
  {
1774
1529
  "kind": "field",
1775
- "name": "formData",
1776
- "privacy": "protected",
1777
- "default": "new FormDataController(this, { value: () => this.formValue })",
1778
- "inheritedFrom": {
1779
- "name": "FormAssociatedMixin",
1780
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1781
- }
1530
+ "name": "variant",
1531
+ "type": {
1532
+ "text": "\"default\" | \"spaced\""
1533
+ },
1534
+ "default": "\"default\"",
1535
+ "description": "The style variant of the button group.",
1536
+ "attribute": "variant",
1537
+ "reflects": true
1782
1538
  },
1783
1539
  {
1784
1540
  "kind": "field",
1785
- "name": "inputId",
1541
+ "name": "direction",
1786
1542
  "type": {
1787
- "text": "string"
1543
+ "text": "\"vertical\" | \"horizontal\""
1788
1544
  },
1789
- "privacy": "protected",
1790
- "default": "\"input\"",
1791
- "inheritedFrom": {
1792
- "name": "FormAssociatedMixin",
1793
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1794
- }
1545
+ "default": "\"horizontal\"",
1546
+ "description": "The direction of the button group.",
1547
+ "attribute": "direction",
1548
+ "reflects": true
1795
1549
  },
1796
1550
  {
1797
1551
  "kind": "field",
1798
- "name": "errorId",
1552
+ "name": "wrap",
1799
1553
  "type": {
1800
- "text": "string"
1554
+ "text": "boolean"
1801
1555
  },
1802
- "privacy": "protected",
1803
- "default": "\"error\"",
1804
- "inheritedFrom": {
1805
- "name": "FormAssociatedMixin",
1806
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1807
- }
1556
+ "default": "false",
1557
+ "description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
1558
+ "attribute": "wrap",
1559
+ "reflects": true
1808
1560
  },
1809
1561
  {
1810
1562
  "kind": "field",
1811
- "name": "hintId",
1563
+ "name": "role",
1812
1564
  "type": {
1813
1565
  "text": "string"
1814
1566
  },
1815
- "privacy": "protected",
1816
- "default": "\"hint\"",
1817
- "inheritedFrom": {
1818
- "name": "FormAssociatedMixin",
1819
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1820
- }
1821
- },
1567
+ "default": "\"group\"",
1568
+ "description": "The appropriate role for the containing element.",
1569
+ "attribute": "role",
1570
+ "reflects": true
1571
+ }
1572
+ ],
1573
+ "attributes": [
1822
1574
  {
1823
- "kind": "field",
1824
- "name": "label",
1575
+ "name": "variant",
1825
1576
  "type": {
1826
- "text": "string"
1577
+ "text": "\"default\" | \"spaced\""
1827
1578
  },
1828
- "default": "\"\"",
1829
- "description": "Label for the input.",
1830
- "attribute": "label",
1831
- "reflects": true,
1832
- "inheritedFrom": {
1833
- "name": "FormAssociatedMixin",
1834
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1835
- }
1579
+ "default": "\"default\"",
1580
+ "description": "The style variant of the button group.",
1581
+ "fieldName": "variant"
1836
1582
  },
1837
1583
  {
1838
- "kind": "field",
1839
- "name": "hint",
1584
+ "name": "direction",
1840
1585
  "type": {
1841
- "text": "string | undefined"
1586
+ "text": "\"vertical\" | \"horizontal\""
1842
1587
  },
1843
- "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
1844
- "attribute": "hint",
1845
- "reflects": true,
1846
- "inheritedFrom": {
1847
- "name": "FormAssociatedMixin",
1848
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1849
- }
1588
+ "default": "\"horizontal\"",
1589
+ "description": "The direction of the button group.",
1590
+ "fieldName": "direction"
1850
1591
  },
1851
1592
  {
1852
- "kind": "field",
1853
- "name": "hideLabel",
1593
+ "name": "wrap",
1854
1594
  "type": {
1855
1595
  "text": "boolean"
1856
1596
  },
1857
1597
  "default": "false",
1858
- "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
1859
- "attribute": "hide-label",
1860
- "reflects": true,
1861
- "inheritedFrom": {
1862
- "name": "FormAssociatedMixin",
1863
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1864
- }
1598
+ "description": "Defines whether the buttons are forced in a single line\nor can be flowed into multiple lines (only applied when variant is set to `spaced`).",
1599
+ "fieldName": "wrap"
1865
1600
  },
1866
1601
  {
1867
- "kind": "field",
1868
- "name": "placeholder",
1602
+ "name": "role",
1869
1603
  "type": {
1870
- "text": "string | undefined"
1604
+ "text": "string"
1871
1605
  },
1872
- "description": "Placeholder text to display within the input.",
1873
- "attribute": "placeholder",
1874
- "reflects": true,
1875
- "inheritedFrom": {
1876
- "name": "FormAssociatedMixin",
1877
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1878
- }
1606
+ "default": "\"group\"",
1607
+ "description": "The appropriate role for the containing element.",
1608
+ "fieldName": "role"
1609
+ }
1610
+ ],
1611
+ "superclass": {
1612
+ "name": "LitElement",
1613
+ "package": "lit"
1614
+ },
1615
+ "localization": [],
1616
+ "status": "ready",
1617
+ "category": "structure",
1618
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to group together buttons, or dropdowns, of a similar nature or purpose.\n- Use the appropriate `role` attribute on the button group to provide additional semantics.\n- Use an `aria-labelledby` attribute referencing another element to best explain the contents of the button group.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t add components other than buttons, dropdowns and in some instances visually hidden components to the button group.\n- Don’t skip the addition of an appropriate label if the added `role` attribute value calls for it.\n- Don’t use for building grid based layouts.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| --------- | -------------------------------------------------------------------------------------------------------- |\n| `default` | The default variant renders a group of segmented buttons to emphasize that they’re thematically-related. |\n| `spaced` | The spaced variant renders a gap between the buttons to space them out evenly. |\n",
1619
+ "examples": [],
1620
+ "dependencies": [],
1621
+ "tagName": "nord-button-group",
1622
+ "customElement": true
1623
+ }
1624
+ ],
1625
+ "exports": [
1626
+ {
1627
+ "kind": "js",
1628
+ "name": "default",
1629
+ "declaration": {
1630
+ "name": "ButtonGroup",
1631
+ "module": "src/button-group/ButtonGroup.ts"
1632
+ }
1633
+ },
1634
+ {
1635
+ "kind": "custom-element-definition",
1636
+ "name": "nord-button-group",
1637
+ "declaration": {
1638
+ "name": "ButtonGroup",
1639
+ "module": "src/button-group/ButtonGroup.ts"
1640
+ }
1641
+ }
1642
+ ]
1643
+ },
1644
+ {
1645
+ "kind": "javascript-module",
1646
+ "path": "src/card/Card.ts",
1647
+ "declarations": [
1648
+ {
1649
+ "kind": "class",
1650
+ "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.",
1651
+ "name": "Card",
1652
+ "cssProperties": [
1653
+ {
1654
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
1655
+ "name": "--n-card-border-radius",
1656
+ "default": "var(--n-border-radius)"
1657
+ },
1658
+ {
1659
+ "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
1660
+ "name": "--n-card-box-shadow",
1661
+ "default": "var(--n-box-shadow-popout)"
1662
+ },
1663
+ {
1664
+ "description": "Controls the padding on all sides of the card.",
1665
+ "name": "--n-card-padding",
1666
+ "default": "var(--n-space-m)"
1667
+ },
1668
+ {
1669
+ "description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
1670
+ "name": "--n-card-slot-padding",
1671
+ "default": "var(--n-space-m)"
1672
+ }
1673
+ ],
1674
+ "slots": [
1675
+ {
1676
+ "description": "The card content.",
1677
+ "name": ""
1678
+ },
1679
+ {
1680
+ "description": "Optional slot that holds a header for the card.",
1681
+ "name": "header"
1682
+ },
1683
+ {
1684
+ "description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
1685
+ "name": "header-end"
1879
1686
  },
1687
+ {
1688
+ "description": "Optional slot that holds footer content for the card.",
1689
+ "name": "footer"
1690
+ }
1691
+ ],
1692
+ "members": [
1880
1693
  {
1881
1694
  "kind": "field",
1882
- "name": "error",
1695
+ "name": "headerSlot",
1696
+ "privacy": "private",
1697
+ "default": "new SlotController(this, \"header\")"
1698
+ },
1699
+ {
1700
+ "kind": "field",
1701
+ "name": "headerEndSlot",
1702
+ "privacy": "private",
1703
+ "default": "new SlotController(this, \"header-end\")"
1704
+ },
1705
+ {
1706
+ "kind": "field",
1707
+ "name": "footerSlot",
1708
+ "privacy": "private",
1709
+ "default": "new SlotController(this, \"footer\")"
1710
+ },
1711
+ {
1712
+ "kind": "field",
1713
+ "name": "padding",
1883
1714
  "type": {
1884
- "text": "string | undefined"
1715
+ "text": "\"m\" | \"l\" | \"none\""
1885
1716
  },
1886
- "description": "Optional error to be shown with the input. Alternatively use the error slot.",
1887
- "attribute": "error",
1888
- "reflects": true,
1889
- "inheritedFrom": {
1890
- "name": "FormAssociatedMixin",
1891
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1892
- }
1717
+ "default": "\"m\"",
1718
+ "description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
1719
+ "attribute": "padding",
1720
+ "reflects": true
1721
+ }
1722
+ ],
1723
+ "attributes": [
1724
+ {
1725
+ "name": "padding",
1726
+ "type": {
1727
+ "text": "\"m\" | \"l\" | \"none\""
1728
+ },
1729
+ "default": "\"m\"",
1730
+ "description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
1731
+ "fieldName": "padding"
1732
+ }
1733
+ ],
1734
+ "superclass": {
1735
+ "name": "LitElement",
1736
+ "package": "lit"
1737
+ },
1738
+ "localization": [],
1739
+ "status": "ready",
1740
+ "category": "structure",
1741
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n- Include a header when placing a [Table](/components/table) component inside the card.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place cards within cards. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n",
1742
+ "examples": [],
1743
+ "dependencies": [],
1744
+ "tagName": "nord-card",
1745
+ "customElement": true
1746
+ }
1747
+ ],
1748
+ "exports": [
1749
+ {
1750
+ "kind": "js",
1751
+ "name": "default",
1752
+ "declaration": {
1753
+ "name": "Card",
1754
+ "module": "src/card/Card.ts"
1755
+ }
1756
+ },
1757
+ {
1758
+ "kind": "custom-element-definition",
1759
+ "name": "nord-card",
1760
+ "declaration": {
1761
+ "name": "Card",
1762
+ "module": "src/card/Card.ts"
1763
+ }
1764
+ }
1765
+ ]
1766
+ },
1767
+ {
1768
+ "kind": "javascript-module",
1769
+ "path": "src/calendar/Calendar.ts",
1770
+ "declarations": [
1771
+ {
1772
+ "kind": "class",
1773
+ "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 ISO-8601 format.",
1774
+ "name": "Calendar",
1775
+ "cssProperties": [
1776
+ {
1777
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
1778
+ "name": "--n-calendar-border-radius",
1779
+ "default": "var(--n-border-radius)"
1893
1780
  },
1781
+ {
1782
+ "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
1783
+ "name": "--n-calendar-box-shadow",
1784
+ "default": "var(--n-box-shadow-popout)"
1785
+ }
1786
+ ],
1787
+ "members": [
1894
1788
  {
1895
1789
  "kind": "field",
1896
- "name": "required",
1790
+ "name": "monthSelectNode",
1897
1791
  "type": {
1898
- "text": "boolean"
1792
+ "text": "HTMLElement"
1899
1793
  },
1900
- "default": "false",
1901
- "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.",
1902
- "attribute": "required",
1903
- "reflects": true,
1904
- "inheritedFrom": {
1905
- "name": "FormAssociatedMixin",
1906
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1907
- }
1794
+ "privacy": "private"
1908
1795
  },
1909
1796
  {
1910
1797
  "kind": "field",
1911
- "name": "hideRequired",
1798
+ "name": "focusedDayNode",
1912
1799
  "type": {
1913
- "text": "boolean"
1800
+ "text": "HTMLButtonElement"
1914
1801
  },
1915
- "default": "false",
1916
- "description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
1917
- "attribute": "hide-required",
1918
- "reflects": true,
1919
- "inheritedFrom": {
1920
- "name": "FormAssociatedMixin",
1921
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1922
- }
1802
+ "privacy": "private"
1923
1803
  },
1924
1804
  {
1925
- "kind": "method",
1926
- "name": "handleInput",
1927
- "privacy": "protected",
1928
- "parameters": [
1929
- {
1930
- "name": "e",
1931
- "type": {
1932
- "text": "Event"
1933
- }
1934
- }
1935
- ],
1936
- "inheritedFrom": {
1937
- "name": "FormAssociatedMixin",
1938
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1939
- }
1805
+ "kind": "field",
1806
+ "name": "direction",
1807
+ "privacy": "private",
1808
+ "default": "new DirectionController(this)"
1940
1809
  },
1941
1810
  {
1942
- "kind": "method",
1943
- "name": "renderLabel",
1944
- "privacy": "protected",
1945
- "parameters": [
1946
- {
1947
- "name": "additionalContent",
1948
- "optional": true,
1949
- "type": {
1950
- "text": "TemplateResult"
1951
- }
1952
- }
1953
- ],
1954
- "inheritedFrom": {
1955
- "name": "FormAssociatedMixin",
1956
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1957
- }
1811
+ "kind": "field",
1812
+ "name": "swipe",
1813
+ "privacy": "private",
1814
+ "default": "new SwipeController(this, { matchesGesture: isHorizontalSwipe, onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1), })"
1815
+ },
1816
+ {
1817
+ "kind": "field",
1818
+ "name": "shortcuts",
1819
+ "privacy": "private"
1820
+ },
1821
+ {
1822
+ "kind": "field",
1823
+ "name": "localize",
1824
+ "privacy": "private",
1825
+ "default": "new LocalizeController<\"nord-calendar\">(this, { onLangChange: () => this.handleLangChange(), })"
1826
+ },
1827
+ {
1828
+ "kind": "field",
1829
+ "name": "dateFormatShort",
1830
+ "type": {
1831
+ "text": "Intl.DateTimeFormat"
1832
+ },
1833
+ "privacy": "private",
1834
+ "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"
1835
+ },
1836
+ {
1837
+ "kind": "field",
1838
+ "name": "monthNames",
1839
+ "type": {
1840
+ "text": "string[]"
1841
+ },
1842
+ "privacy": "private"
1958
1843
  },
1959
1844
  {
1960
- "kind": "method",
1961
- "name": "renderError",
1962
- "privacy": "protected",
1963
- "inheritedFrom": {
1964
- "name": "FormAssociatedMixin",
1965
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1966
- }
1845
+ "kind": "field",
1846
+ "name": "monthNamesShort",
1847
+ "type": {
1848
+ "text": "string[]"
1849
+ },
1850
+ "privacy": "private"
1967
1851
  },
1968
1852
  {
1969
- "kind": "method",
1970
- "name": "getDescribedBy",
1971
- "privacy": "protected",
1972
- "inheritedFrom": {
1973
- "name": "FormAssociatedMixin",
1974
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1975
- }
1853
+ "kind": "field",
1854
+ "name": "dayNames",
1855
+ "type": {
1856
+ "text": "string[]"
1857
+ },
1858
+ "privacy": "private"
1976
1859
  },
1977
1860
  {
1978
- "kind": "method",
1979
- "name": "getInvalid",
1980
- "privacy": "protected",
1981
- "inheritedFrom": {
1982
- "name": "FormAssociatedMixin",
1983
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1984
- }
1861
+ "kind": "field",
1862
+ "name": "dayNamesShort",
1863
+ "type": {
1864
+ "text": "string[]"
1865
+ },
1866
+ "privacy": "private"
1985
1867
  },
1986
1868
  {
1987
1869
  "kind": "field",
1988
- "name": "hasHint",
1989
- "privacy": "protected",
1990
- "readonly": true,
1991
- "inheritedFrom": {
1992
- "name": "FormAssociatedMixin",
1993
- "module": "src/common/mixins/FormAssociatedMixin.ts"
1994
- }
1870
+ "name": "value",
1871
+ "type": {
1872
+ "text": "string"
1873
+ },
1874
+ "default": "\"\"",
1875
+ "description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
1876
+ "attribute": "value"
1995
1877
  },
1996
1878
  {
1997
1879
  "kind": "field",
1998
- "name": "hasError",
1999
- "privacy": "protected",
2000
- "readonly": true,
2001
- "inheritedFrom": {
2002
- "name": "FormAssociatedMixin",
2003
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2004
- }
1880
+ "name": "firstDayOfWeek",
1881
+ "type": {
1882
+ "text": "DaysOfWeek"
1883
+ },
1884
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
1885
+ "attribute": "first-day-of-week",
1886
+ "reflects": true
2005
1887
  },
2006
1888
  {
2007
1889
  "kind": "field",
2008
- "name": "disabled",
1890
+ "name": "min",
2009
1891
  "type": {
2010
- "text": "boolean"
1892
+ "text": "string | undefined"
2011
1893
  },
2012
- "default": "false",
2013
- "description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
2014
- "attribute": "disabled",
2015
- "reflects": true,
2016
- "inheritedFrom": {
2017
- "name": "InputMixin",
2018
- "module": "src/common/mixins/InputMixin.ts"
2019
- }
1894
+ "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.",
1895
+ "attribute": "min",
1896
+ "reflects": true
2020
1897
  },
2021
1898
  {
2022
1899
  "kind": "field",
2023
- "name": "name",
1900
+ "name": "max",
2024
1901
  "type": {
2025
1902
  "text": "string | undefined"
2026
1903
  },
2027
- "description": "The name of the form component.",
2028
- "attribute": "name",
2029
- "reflects": true,
2030
- "inheritedFrom": {
2031
- "name": "InputMixin",
2032
- "module": "src/common/mixins/InputMixin.ts"
2033
- }
1904
+ "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.",
1905
+ "attribute": "max",
1906
+ "reflects": true
2034
1907
  },
2035
1908
  {
2036
1909
  "kind": "field",
2037
- "name": "value",
1910
+ "name": "expand",
2038
1911
  "type": {
2039
- "text": "string"
1912
+ "text": "boolean"
2040
1913
  },
2041
- "default": "\"\"",
2042
- "description": "The value of the form component.",
2043
- "attribute": "value",
2044
- "inheritedFrom": {
2045
- "name": "InputMixin",
2046
- "module": "src/common/mixins/InputMixin.ts"
2047
- }
1914
+ "default": "false",
1915
+ "description": "Controls whether the calendar expands to fill the width of its container.",
1916
+ "attribute": "expand",
1917
+ "reflects": true
2048
1918
  },
2049
1919
  {
2050
1920
  "kind": "field",
2051
- "name": "formAncestor",
1921
+ "name": "isDateDisabled",
2052
1922
  "type": {
2053
- "text": "HTMLFormElement | null"
1923
+ "text": "DatePredicate"
2054
1924
  },
2055
- "privacy": "private",
2056
- "default": "null",
2057
- "inheritedFrom": {
2058
- "name": "InputMixin",
2059
- "module": "src/common/mixins/InputMixin.ts"
2060
- }
1925
+ "default": "isDateDisabled",
1926
+ "description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
2061
1927
  },
2062
1928
  {
2063
1929
  "kind": "field",
2064
- "name": "_formId",
1930
+ "name": "isDateHighlighted",
2065
1931
  "type": {
2066
- "text": "string | undefined"
1932
+ "text": "(date: Date) => string | boolean"
2067
1933
  },
2068
- "privacy": "protected",
2069
- "inheritedFrom": {
2070
- "name": "InputMixin",
2071
- "module": "src/common/mixins/InputMixin.ts"
2072
- }
1934
+ "default": "isDateHighlighted",
1935
+ "description": "Controls which days are highlighted with a small indicator.\nReturning a \"falsy\" value will not show an indicator.\nReturning \"truthy\" value will show the indicator, but without an accessible label.\nReturning a string will show the indicator, and use the string as accessible label.\nIt is recommended to return a string rather than a truthy value whenever possible."
2073
1936
  },
2074
1937
  {
2075
1938
  "kind": "field",
2076
- "name": "form",
1939
+ "name": "activeFocus",
2077
1940
  "type": {
2078
- "text": "HTMLFormElement | null"
1941
+ "text": "boolean"
2079
1942
  },
2080
- "description": "Gets the form, if any, associated with the form element.\nThe setter accepts a string, which is the id of the form.",
2081
- "attribute": "form",
2082
- "inheritedFrom": {
2083
- "name": "InputMixin",
2084
- "module": "src/common/mixins/InputMixin.ts"
2085
- }
1943
+ "privacy": "private",
1944
+ "default": "false"
2086
1945
  },
2087
1946
  {
2088
1947
  "kind": "field",
2089
- "name": "focusableRef",
2090
- "privacy": "protected",
2091
- "inheritedFrom": {
2092
- "name": "FocusableMixin",
2093
- "module": "src/common/mixins/FocusableMixin.ts"
2094
- }
1948
+ "name": "focusedDay",
1949
+ "privacy": "private",
1950
+ "default": "new Date()"
2095
1951
  },
2096
1952
  {
2097
1953
  "kind": "method",
@@ -2101,263 +1957,245 @@
2101
1957
  "name": "options",
2102
1958
  "optional": true,
2103
1959
  "type": {
2104
- "text": "FocusOptions"
1960
+ "text": "FocusOptions & { target: \"day\" | \"month\" }"
2105
1961
  },
2106
1962
  "description": "An object which controls aspects of the focusing process."
2107
1963
  }
2108
1964
  ],
2109
- "description": "Programmatically move focus to the component.",
2110
- "inheritedFrom": {
2111
- "name": "FocusableMixin",
2112
- "module": "src/common/mixins/FocusableMixin.ts"
2113
- }
1965
+ "description": "Programmatically move focus to the calendar."
2114
1966
  },
2115
1967
  {
2116
1968
  "kind": "method",
2117
- "name": "blur",
2118
- "description": "Programmatically remove focus from the component.",
2119
- "inheritedFrom": {
2120
- "name": "FocusableMixin",
2121
- "module": "src/common/mixins/FocusableMixin.ts"
2122
- }
1969
+ "name": "handleValueChange",
1970
+ "privacy": "protected"
1971
+ },
1972
+ {
1973
+ "kind": "method",
1974
+ "name": "handleFocusedDayChange",
1975
+ "privacy": "protected"
1976
+ },
1977
+ {
1978
+ "kind": "method",
1979
+ "name": "handleLangChange",
1980
+ "privacy": "private"
1981
+ },
1982
+ {
1983
+ "kind": "field",
1984
+ "name": "handleDaySelect",
1985
+ "privacy": "private"
1986
+ },
1987
+ {
1988
+ "kind": "method",
1989
+ "name": "addDays",
1990
+ "privacy": "private",
1991
+ "parameters": [
1992
+ {
1993
+ "name": "days",
1994
+ "type": {
1995
+ "text": "number"
1996
+ }
1997
+ }
1998
+ ]
1999
+ },
2000
+ {
2001
+ "kind": "method",
2002
+ "name": "addMonths",
2003
+ "privacy": "private",
2004
+ "parameters": [
2005
+ {
2006
+ "name": "months",
2007
+ "type": {
2008
+ "text": "number"
2009
+ }
2010
+ }
2011
+ ]
2012
+ },
2013
+ {
2014
+ "kind": "method",
2015
+ "name": "addYears",
2016
+ "privacy": "private",
2017
+ "parameters": [
2018
+ {
2019
+ "name": "years",
2020
+ "type": {
2021
+ "text": "number"
2022
+ }
2023
+ }
2024
+ ]
2025
+ },
2026
+ {
2027
+ "kind": "method",
2028
+ "name": "startOfWeek",
2029
+ "privacy": "private"
2030
+ },
2031
+ {
2032
+ "kind": "method",
2033
+ "name": "endOfWeek",
2034
+ "privacy": "private"
2035
+ },
2036
+ {
2037
+ "kind": "method",
2038
+ "name": "setMonth",
2039
+ "privacy": "private",
2040
+ "parameters": [
2041
+ {
2042
+ "name": "month",
2043
+ "type": {
2044
+ "text": "number"
2045
+ }
2046
+ }
2047
+ ]
2048
+ },
2049
+ {
2050
+ "kind": "method",
2051
+ "name": "setYear",
2052
+ "privacy": "private",
2053
+ "parameters": [
2054
+ {
2055
+ "name": "year",
2056
+ "type": {
2057
+ "text": "number"
2058
+ }
2059
+ }
2060
+ ]
2123
2061
  },
2124
2062
  {
2125
2063
  "kind": "method",
2126
- "name": "click",
2127
- "description": "Programmatically simulates a click on the component.",
2128
- "inheritedFrom": {
2129
- "name": "FocusableMixin",
2130
- "module": "src/common/mixins/FocusableMixin.ts"
2131
- }
2132
- }
2133
- ],
2134
- "attributes": [
2135
- {
2136
- "name": "indeterminate",
2137
- "type": {
2138
- "text": "boolean"
2139
- },
2140
- "default": "false",
2141
- "description": "Controls whether the checkbox is in an indeterminate state.",
2142
- "fieldName": "indeterminate"
2064
+ "name": "setFocusedDay",
2065
+ "privacy": "private",
2066
+ "parameters": [
2067
+ {
2068
+ "name": "day",
2069
+ "type": {
2070
+ "text": "Date"
2071
+ }
2072
+ }
2073
+ ]
2143
2074
  },
2144
2075
  {
2145
- "name": "checked",
2146
- "type": {
2147
- "text": "boolean"
2148
- },
2149
- "default": "false",
2150
- "description": "Controls whether the checkbox is checked or not.",
2151
- "fieldName": "checked"
2076
+ "kind": "field",
2077
+ "name": "handleMonthSelect",
2078
+ "privacy": "private"
2152
2079
  },
2153
2080
  {
2154
- "name": "size",
2155
- "type": {
2156
- "text": "\"s\" | \"m\" | \"l\""
2157
- },
2158
- "default": "\"m\"",
2159
- "description": "The size of the component.",
2160
- "fieldName": "size",
2161
- "inheritedFrom": {
2162
- "name": "SizeMixin",
2163
- "module": "src/common/mixins/SizeMixin.ts"
2164
- }
2081
+ "kind": "field",
2082
+ "name": "handleYearSelect",
2083
+ "privacy": "private"
2165
2084
  },
2166
2085
  {
2167
- "name": "label",
2168
- "type": {
2169
- "text": "string"
2170
- },
2171
- "default": "\"\"",
2172
- "description": "Label for the input.",
2173
- "fieldName": "label",
2174
- "inheritedFrom": {
2175
- "name": "FormAssociatedMixin",
2176
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2177
- }
2086
+ "kind": "field",
2087
+ "name": "handleNextMonthClick",
2088
+ "privacy": "private"
2178
2089
  },
2179
2090
  {
2180
- "name": "hint",
2181
- "type": {
2182
- "text": "string | undefined"
2183
- },
2184
- "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
2185
- "fieldName": "hint",
2186
- "inheritedFrom": {
2187
- "name": "FormAssociatedMixin",
2188
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2189
- }
2091
+ "kind": "field",
2092
+ "name": "handlePreviousMonthClick",
2093
+ "privacy": "private"
2190
2094
  },
2191
2095
  {
2192
- "name": "hide-label",
2193
- "type": {
2194
- "text": "boolean"
2195
- },
2196
- "default": "false",
2197
- "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
2198
- "fieldName": "hideLabel",
2199
- "inheritedFrom": {
2200
- "name": "FormAssociatedMixin",
2201
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2202
- }
2096
+ "kind": "field",
2097
+ "name": "enableActiveFocus",
2098
+ "privacy": "private"
2203
2099
  },
2204
2100
  {
2205
- "name": "placeholder",
2206
- "type": {
2207
- "text": "string | undefined"
2208
- },
2209
- "description": "Placeholder text to display within the input.",
2210
- "fieldName": "placeholder",
2211
- "inheritedFrom": {
2212
- "name": "FormAssociatedMixin",
2213
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2214
- }
2215
- },
2101
+ "kind": "field",
2102
+ "name": "disableActiveFocus",
2103
+ "privacy": "private"
2104
+ }
2105
+ ],
2106
+ "events": [
2216
2107
  {
2217
- "name": "error",
2108
+ "name": "nord-focus-date",
2218
2109
  "type": {
2219
- "text": "string | undefined"
2110
+ "text": "DateSelectEvent"
2220
2111
  },
2221
- "description": "Optional error to be shown with the input. Alternatively use the error slot.",
2222
- "fieldName": "error",
2223
- "inheritedFrom": {
2224
- "name": "FormAssociatedMixin",
2225
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2226
- }
2112
+ "description": "Dispatched when the calendar's focused date changes."
2227
2113
  },
2228
2114
  {
2229
- "name": "required",
2230
2115
  "type": {
2231
- "text": "boolean"
2116
+ "text": "DateSelectEvent"
2232
2117
  },
2233
- "default": "false",
2234
- "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.",
2235
- "fieldName": "required",
2236
- "inheritedFrom": {
2237
- "name": "FormAssociatedMixin",
2238
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2239
- }
2240
- },
2118
+ "description": "Dispatched when a date is selected and the value changes.",
2119
+ "name": "change"
2120
+ }
2121
+ ],
2122
+ "attributes": [
2241
2123
  {
2242
- "name": "hide-required",
2124
+ "name": "value",
2243
2125
  "type": {
2244
- "text": "boolean"
2126
+ "text": "string"
2245
2127
  },
2246
- "default": "false",
2247
- "description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
2248
- "fieldName": "hideRequired",
2249
- "inheritedFrom": {
2250
- "name": "FormAssociatedMixin",
2251
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2252
- }
2128
+ "default": "\"\"",
2129
+ "description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
2130
+ "fieldName": "value"
2253
2131
  },
2254
2132
  {
2255
- "name": "disabled",
2133
+ "name": "first-day-of-week",
2256
2134
  "type": {
2257
- "text": "boolean"
2135
+ "text": "DaysOfWeek"
2258
2136
  },
2259
- "default": "false",
2260
- "description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
2261
- "fieldName": "disabled",
2262
- "inheritedFrom": {
2263
- "name": "InputMixin",
2264
- "module": "src/common/mixins/InputMixin.ts"
2265
- }
2137
+ "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
2138
+ "fieldName": "firstDayOfWeek"
2266
2139
  },
2267
2140
  {
2268
- "name": "name",
2141
+ "name": "min",
2269
2142
  "type": {
2270
2143
  "text": "string | undefined"
2271
2144
  },
2272
- "description": "The name of the form component.",
2273
- "fieldName": "name",
2274
- "inheritedFrom": {
2275
- "name": "InputMixin",
2276
- "module": "src/common/mixins/InputMixin.ts"
2277
- }
2145
+ "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.",
2146
+ "fieldName": "min"
2278
2147
  },
2279
2148
  {
2280
- "name": "value",
2149
+ "name": "max",
2281
2150
  "type": {
2282
- "text": "string"
2151
+ "text": "string | undefined"
2283
2152
  },
2284
- "default": "\"\"",
2285
- "description": "The value of the form component.",
2286
- "fieldName": "value",
2287
- "inheritedFrom": {
2288
- "name": "InputMixin",
2289
- "module": "src/common/mixins/InputMixin.ts"
2290
- }
2153
+ "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.",
2154
+ "fieldName": "max"
2291
2155
  },
2292
2156
  {
2293
- "name": "form",
2157
+ "name": "expand",
2294
2158
  "type": {
2295
- "text": "HTMLFormElement | null"
2159
+ "text": "boolean"
2296
2160
  },
2297
- "description": "Gets the form, if any, associated with the form element.\nThe setter accepts a string, which is the id of the form.",
2298
- "fieldName": "form",
2299
- "inheritedFrom": {
2300
- "name": "InputMixin",
2301
- "module": "src/common/mixins/InputMixin.ts"
2302
- }
2303
- }
2304
- ],
2305
- "mixins": [
2306
- {
2307
- "name": "SizeMixin",
2308
- "module": "/src/common/mixins/SizeMixin.js"
2309
- },
2310
- {
2311
- "name": "FormAssociatedMixin",
2312
- "module": "/src/common/mixins/FormAssociatedMixin.js"
2313
- },
2314
- {
2315
- "name": "InputMixin",
2316
- "module": "/src/common/mixins/InputMixin.js"
2317
- },
2318
- {
2319
- "name": "FocusableMixin",
2320
- "module": "/src/common/mixins/FocusableMixin.js"
2161
+ "default": "false",
2162
+ "description": "Controls whether the calendar expands to fill the width of its container.",
2163
+ "fieldName": "expand"
2321
2164
  }
2322
2165
  ],
2323
2166
  "superclass": {
2324
2167
  "name": "LitElement",
2325
2168
  "package": "lit"
2326
2169
  },
2327
- "localization": [],
2328
- "status": "ready",
2329
- "category": "form",
2330
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for making it possible to choose one or more options from a limited number of options.\n- Use for “accepting terms of service” and similar functionality.\n- Use in forms to toggle something on or off.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Avoid using when you have more than 10 options to choose from.\n- Don’t change the selection of another checkbox when another one is clicked. Only exception is when a checkbox is used to make a bulk selection of multiple items.\n\n</div>\n\n---\n\n## Content guidelines\n\nCheckbox labels should be clear, accurate and predictable. It should be possible for the user to understand what they are selecting:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing checkbox labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">User Settings</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Show dashboard</div>\n<div class=\"n-usage n-usage-dont\">Show dashboard.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients;</div>\n",
2331
- "examples": [],
2332
- "dependencies": [
2333
- "icon"
2334
- ],
2335
- "tagName": "nord-checkbox",
2336
- "customElement": true,
2337
- "events": [
2170
+ "localization": [
2338
2171
  {
2339
- "name": "input",
2340
- "type": {
2341
- "text": "NordEvent"
2342
- },
2343
- "description": "Fired as the user types into the input.",
2344
- "inheritedFrom": {
2345
- "name": "FormAssociatedMixin",
2346
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2347
- }
2172
+ "name": "prevMonthLabel",
2173
+ "description": "Accessible label for the previous month button."
2174
+ },
2175
+ {
2176
+ "name": "nextMonthLabel",
2177
+ "description": "Accessible label for the next month button."
2178
+ },
2179
+ {
2180
+ "name": "monthSelectLabel",
2181
+ "description": "Accessible label for the month select."
2348
2182
  },
2349
2183
  {
2350
- "name": "change",
2351
- "type": {
2352
- "text": "NordEvent"
2353
- },
2354
- "description": "Fired whenever the input's value is changed via user interaction.",
2355
- "inheritedFrom": {
2356
- "name": "FormAssociatedMixin",
2357
- "module": "src/common/mixins/FormAssociatedMixin.ts"
2358
- }
2184
+ "name": "yearSelectLabel",
2185
+ "description": "Accessible label for the year select."
2359
2186
  }
2360
- ]
2187
+ ],
2188
+ "status": "ready",
2189
+ "category": "list",
2190
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n",
2191
+ "examples": [],
2192
+ "dependencies": [
2193
+ "button",
2194
+ "visually-hidden",
2195
+ "icon"
2196
+ ],
2197
+ "tagName": "nord-calendar",
2198
+ "customElement": true
2361
2199
  }
2362
2200
  ],
2363
2201
  "exports": [
@@ -2365,327 +2203,520 @@
2365
2203
  "kind": "js",
2366
2204
  "name": "default",
2367
2205
  "declaration": {
2368
- "name": "Checkbox",
2369
- "module": "src/checkbox/Checkbox.ts"
2206
+ "name": "Calendar",
2207
+ "module": "src/calendar/Calendar.ts"
2370
2208
  }
2371
2209
  },
2372
2210
  {
2373
2211
  "kind": "custom-element-definition",
2374
- "name": "nord-checkbox",
2212
+ "name": "nord-calendar",
2375
2213
  "declaration": {
2376
- "name": "Checkbox",
2377
- "module": "src/checkbox/Checkbox.ts"
2214
+ "name": "Calendar",
2215
+ "module": "src/calendar/Calendar.ts"
2378
2216
  }
2379
2217
  }
2380
2218
  ]
2381
2219
  },
2382
2220
  {
2383
2221
  "kind": "javascript-module",
2384
- "path": "src/card/Card.ts",
2222
+ "path": "src/calendar/DateSelectEvent.ts",
2385
2223
  "declarations": [
2386
2224
  {
2387
2225
  "kind": "class",
2388
- "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.",
2389
- "name": "Card",
2226
+ "description": "",
2227
+ "name": "DateSelectEvent",
2228
+ "superclass": {
2229
+ "name": "NordEvent",
2230
+ "module": "/src/common/events.js"
2231
+ }
2232
+ }
2233
+ ],
2234
+ "exports": [
2235
+ {
2236
+ "kind": "js",
2237
+ "name": "DateSelectEvent",
2238
+ "declaration": {
2239
+ "name": "DateSelectEvent",
2240
+ "module": "src/calendar/DateSelectEvent.ts"
2241
+ }
2242
+ }
2243
+ ]
2244
+ },
2245
+ {
2246
+ "kind": "javascript-module",
2247
+ "path": "src/calendar/localization.ts",
2248
+ "declarations": [
2249
+ {
2250
+ "kind": "variable",
2251
+ "name": "calendarLocalization",
2252
+ "type": {
2253
+ "text": "object"
2254
+ },
2255
+ "default": "{ prevMonthLabel: \"Previous month\", nextMonthLabel: \"Next month\", monthSelectLabel: \"Month\", yearSelectLabel: \"Year\", }"
2256
+ }
2257
+ ],
2258
+ "exports": [
2259
+ {
2260
+ "kind": "js",
2261
+ "name": "default",
2262
+ "declaration": {
2263
+ "name": "calendarLocalization",
2264
+ "module": "src/calendar/localization.ts"
2265
+ }
2266
+ }
2267
+ ]
2268
+ },
2269
+ {
2270
+ "kind": "javascript-module",
2271
+ "path": "src/checkbox/Checkbox.ts",
2272
+ "declarations": [
2273
+ {
2274
+ "kind": "class",
2275
+ "description": "Checkboxes allow user to choose one or more options from a limited set of options.\nIf you have more than 10 options, please use Select component instead.",
2276
+ "name": "Checkbox",
2390
2277
  "cssProperties": [
2391
2278
  {
2392
- "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
2393
- "name": "--n-card-border-radius",
2394
- "default": "var(--n-border-radius)"
2395
- },
2396
- {
2397
- "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
2398
- "name": "--n-card-box-shadow",
2399
- "default": "var(--n-box-shadow-popout)"
2400
- },
2401
- {
2402
- "description": "Controls the padding on all sides of the card.",
2403
- "name": "--n-card-padding",
2404
- "default": "var(--n-space-m)"
2405
- },
2406
- {
2407
- "description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
2408
- "name": "--n-card-slot-padding",
2409
- "default": "var(--n-space-m)"
2279
+ "description": "Controls the text color of the label, using our [color tokens](/tokens/#color).",
2280
+ "name": "--n-label-color",
2281
+ "default": "var(--n-color-text)"
2410
2282
  }
2411
2283
  ],
2412
2284
  "slots": [
2413
2285
  {
2414
- "description": "The card content.",
2415
- "name": ""
2416
- },
2417
- {
2418
- "description": "Optional slot that holds a header for the card.",
2419
- "name": "header"
2286
+ "description": "Use when a label requires more than plain text.",
2287
+ "name": "label"
2420
2288
  },
2421
2289
  {
2422
- "description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
2423
- "name": "header-end"
2290
+ "description": "Optional slot that holds hint text for the input.",
2291
+ "name": "hint"
2424
2292
  },
2425
2293
  {
2426
- "description": "Optional slot that holds footer content for the card.",
2427
- "name": "footer"
2294
+ "description": "Optional slot that holds error text for the input.",
2295
+ "name": "error"
2428
2296
  }
2429
2297
  ],
2430
2298
  "members": [
2431
2299
  {
2432
2300
  "kind": "field",
2433
- "name": "headerSlot",
2434
- "privacy": "private",
2435
- "default": "new SlotController(this, \"header\")"
2436
- },
2437
- {
2438
- "kind": "field",
2439
- "name": "headerEndSlot",
2440
- "privacy": "private",
2441
- "default": "new SlotController(this, \"header-end\")"
2301
+ "name": "formValue",
2302
+ "privacy": "protected",
2303
+ "readonly": true,
2304
+ "inheritedFrom": {
2305
+ "name": "FormAssociatedMixin",
2306
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2307
+ }
2442
2308
  },
2443
2309
  {
2444
2310
  "kind": "field",
2445
- "name": "footerSlot",
2446
- "privacy": "private",
2447
- "default": "new SlotController(this, \"footer\")"
2311
+ "name": "indeterminate",
2312
+ "type": {
2313
+ "text": "boolean"
2314
+ },
2315
+ "default": "false",
2316
+ "description": "Controls whether the checkbox is in an indeterminate state.",
2317
+ "attribute": "indeterminate",
2318
+ "reflects": true
2448
2319
  },
2449
2320
  {
2450
2321
  "kind": "field",
2451
- "name": "padding",
2322
+ "name": "checked",
2452
2323
  "type": {
2453
- "text": "\"m\" | \"l\" | \"none\""
2324
+ "text": "boolean"
2454
2325
  },
2455
- "default": "\"m\"",
2456
- "description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
2457
- "attribute": "padding",
2326
+ "default": "false",
2327
+ "description": "Controls whether the checkbox is checked or not.",
2328
+ "attribute": "checked",
2458
2329
  "reflects": true
2459
- }
2460
- ],
2461
- "attributes": [
2330
+ },
2462
2331
  {
2463
- "name": "padding",
2332
+ "kind": "method",
2333
+ "name": "handleChange",
2334
+ "privacy": "protected",
2335
+ "parameters": [
2336
+ {
2337
+ "name": "e",
2338
+ "type": {
2339
+ "text": "Event"
2340
+ }
2341
+ }
2342
+ ],
2343
+ "return": {
2344
+ "type": {
2345
+ "text": "void"
2346
+ }
2347
+ },
2348
+ "inheritedFrom": {
2349
+ "name": "FormAssociatedMixin",
2350
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2351
+ }
2352
+ },
2353
+ {
2354
+ "kind": "field",
2355
+ "name": "size",
2464
2356
  "type": {
2465
- "text": "\"m\" | \"l\" | \"none\""
2357
+ "text": "\"s\" | \"m\" | \"l\""
2466
2358
  },
2467
2359
  "default": "\"m\"",
2468
- "description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
2469
- "fieldName": "padding"
2470
- }
2471
- ],
2472
- "superclass": {
2473
- "name": "LitElement",
2474
- "package": "lit"
2475
- },
2476
- "localization": [],
2477
- "status": "ready",
2478
- "category": "structure",
2479
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n- Include a header when placing a [Table](/components/table) component inside the card.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place cards within cards. Consider using the [divider](/components/divider/) component to break up sections instead.\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n",
2480
- "examples": [],
2481
- "dependencies": [],
2482
- "tagName": "nord-card",
2483
- "customElement": true
2484
- }
2485
- ],
2486
- "exports": [
2487
- {
2488
- "kind": "js",
2489
- "name": "default",
2490
- "declaration": {
2491
- "name": "Card",
2492
- "module": "src/card/Card.ts"
2493
- }
2494
- },
2495
- {
2496
- "kind": "custom-element-definition",
2497
- "name": "nord-card",
2498
- "declaration": {
2499
- "name": "Card",
2500
- "module": "src/card/Card.ts"
2501
- }
2502
- }
2503
- ]
2504
- },
2505
- {
2506
- "kind": "javascript-module",
2507
- "path": "src/calendar/Calendar.ts",
2508
- "declarations": [
2509
- {
2510
- "kind": "class",
2511
- "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 ISO-8601 format.",
2512
- "name": "Calendar",
2513
- "cssProperties": [
2360
+ "description": "The size of the component.",
2361
+ "attribute": "size",
2362
+ "reflects": true,
2363
+ "inheritedFrom": {
2364
+ "name": "SizeMixin",
2365
+ "module": "src/common/mixins/SizeMixin.ts"
2366
+ }
2367
+ },
2514
2368
  {
2515
- "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
2516
- "name": "--n-calendar-border-radius",
2517
- "default": "var(--n-border-radius)"
2369
+ "kind": "field",
2370
+ "name": "labelSlot",
2371
+ "privacy": "protected",
2372
+ "default": "new SlotController(this, \"label\")",
2373
+ "inheritedFrom": {
2374
+ "name": "FormAssociatedMixin",
2375
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2376
+ }
2518
2377
  },
2519
- {
2520
- "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
2521
- "name": "--n-calendar-box-shadow",
2522
- "default": "var(--n-box-shadow-popout)"
2523
- }
2524
- ],
2525
- "members": [
2526
2378
  {
2527
2379
  "kind": "field",
2528
- "name": "monthSelectNode",
2529
- "type": {
2530
- "text": "HTMLElement"
2531
- },
2532
- "privacy": "private"
2380
+ "name": "errorSlot",
2381
+ "privacy": "protected",
2382
+ "default": "new SlotController(this, \"error\")",
2383
+ "inheritedFrom": {
2384
+ "name": "FormAssociatedMixin",
2385
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2386
+ }
2533
2387
  },
2534
2388
  {
2535
2389
  "kind": "field",
2536
- "name": "focusedDayNode",
2537
- "type": {
2538
- "text": "HTMLButtonElement"
2539
- },
2540
- "privacy": "private"
2390
+ "name": "hintSlot",
2391
+ "privacy": "protected",
2392
+ "default": "new SlotController(this, \"hint\")",
2393
+ "inheritedFrom": {
2394
+ "name": "FormAssociatedMixin",
2395
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2396
+ }
2541
2397
  },
2542
2398
  {
2543
2399
  "kind": "field",
2544
- "name": "direction",
2545
- "privacy": "private",
2546
- "default": "new DirectionController(this)"
2400
+ "name": "formData",
2401
+ "privacy": "protected",
2402
+ "default": "new FormDataController(this, { value: () => this.formValue })",
2403
+ "inheritedFrom": {
2404
+ "name": "FormAssociatedMixin",
2405
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2406
+ }
2547
2407
  },
2548
2408
  {
2549
2409
  "kind": "field",
2550
- "name": "swipe",
2551
- "privacy": "private",
2552
- "default": "new SwipeController(this, { matchesGesture: isHorizontalSwipe, onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1), })"
2410
+ "name": "inputId",
2411
+ "type": {
2412
+ "text": "string"
2413
+ },
2414
+ "privacy": "protected",
2415
+ "default": "\"input\"",
2416
+ "inheritedFrom": {
2417
+ "name": "FormAssociatedMixin",
2418
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2419
+ }
2553
2420
  },
2554
2421
  {
2555
2422
  "kind": "field",
2556
- "name": "shortcuts",
2557
- "privacy": "private"
2423
+ "name": "errorId",
2424
+ "type": {
2425
+ "text": "string"
2426
+ },
2427
+ "privacy": "protected",
2428
+ "default": "\"error\"",
2429
+ "inheritedFrom": {
2430
+ "name": "FormAssociatedMixin",
2431
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2432
+ }
2558
2433
  },
2559
2434
  {
2560
2435
  "kind": "field",
2561
- "name": "localize",
2562
- "privacy": "private",
2563
- "default": "new LocalizeController<\"nord-calendar\">(this, { onLangChange: () => this.handleLangChange(), })"
2436
+ "name": "hintId",
2437
+ "type": {
2438
+ "text": "string"
2439
+ },
2440
+ "privacy": "protected",
2441
+ "default": "\"hint\"",
2442
+ "inheritedFrom": {
2443
+ "name": "FormAssociatedMixin",
2444
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2445
+ }
2564
2446
  },
2565
2447
  {
2566
2448
  "kind": "field",
2567
- "name": "dateFormatShort",
2449
+ "name": "label",
2568
2450
  "type": {
2569
- "text": "Intl.DateTimeFormat"
2451
+ "text": "string"
2570
2452
  },
2571
- "privacy": "private",
2572
- "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"
2453
+ "default": "\"\"",
2454
+ "description": "Label for the input.",
2455
+ "attribute": "label",
2456
+ "reflects": true,
2457
+ "inheritedFrom": {
2458
+ "name": "FormAssociatedMixin",
2459
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2460
+ }
2573
2461
  },
2574
2462
  {
2575
2463
  "kind": "field",
2576
- "name": "monthNames",
2464
+ "name": "hint",
2577
2465
  "type": {
2578
- "text": "string[]"
2466
+ "text": "string | undefined"
2579
2467
  },
2580
- "privacy": "private"
2468
+ "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
2469
+ "attribute": "hint",
2470
+ "reflects": true,
2471
+ "inheritedFrom": {
2472
+ "name": "FormAssociatedMixin",
2473
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2474
+ }
2581
2475
  },
2582
2476
  {
2583
2477
  "kind": "field",
2584
- "name": "monthNamesShort",
2478
+ "name": "hideLabel",
2585
2479
  "type": {
2586
- "text": "string[]"
2480
+ "text": "boolean"
2587
2481
  },
2588
- "privacy": "private"
2482
+ "default": "false",
2483
+ "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
2484
+ "attribute": "hide-label",
2485
+ "reflects": true,
2486
+ "inheritedFrom": {
2487
+ "name": "FormAssociatedMixin",
2488
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2489
+ }
2589
2490
  },
2590
2491
  {
2591
2492
  "kind": "field",
2592
- "name": "dayNames",
2493
+ "name": "placeholder",
2593
2494
  "type": {
2594
- "text": "string[]"
2495
+ "text": "string | undefined"
2595
2496
  },
2596
- "privacy": "private"
2497
+ "description": "Placeholder text to display within the input.",
2498
+ "attribute": "placeholder",
2499
+ "reflects": true,
2500
+ "inheritedFrom": {
2501
+ "name": "FormAssociatedMixin",
2502
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2503
+ }
2597
2504
  },
2598
2505
  {
2599
2506
  "kind": "field",
2600
- "name": "dayNamesShort",
2507
+ "name": "error",
2601
2508
  "type": {
2602
- "text": "string[]"
2509
+ "text": "string | undefined"
2603
2510
  },
2604
- "privacy": "private"
2511
+ "description": "Optional error to be shown with the input. Alternatively use the error slot.",
2512
+ "attribute": "error",
2513
+ "reflects": true,
2514
+ "inheritedFrom": {
2515
+ "name": "FormAssociatedMixin",
2516
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2517
+ }
2605
2518
  },
2606
2519
  {
2607
2520
  "kind": "field",
2608
- "name": "value",
2521
+ "name": "required",
2609
2522
  "type": {
2610
- "text": "string"
2523
+ "text": "boolean"
2611
2524
  },
2612
- "default": "\"\"",
2613
- "description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
2614
- "attribute": "value"
2525
+ "default": "false",
2526
+ "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.",
2527
+ "attribute": "required",
2528
+ "reflects": true,
2529
+ "inheritedFrom": {
2530
+ "name": "FormAssociatedMixin",
2531
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2532
+ }
2615
2533
  },
2616
2534
  {
2617
2535
  "kind": "field",
2618
- "name": "firstDayOfWeek",
2536
+ "name": "hideRequired",
2619
2537
  "type": {
2620
- "text": "DaysOfWeek"
2538
+ "text": "boolean"
2621
2539
  },
2622
- "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
2623
- "attribute": "first-day-of-week",
2624
- "reflects": true
2540
+ "default": "false",
2541
+ "description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
2542
+ "attribute": "hide-required",
2543
+ "reflects": true,
2544
+ "inheritedFrom": {
2545
+ "name": "FormAssociatedMixin",
2546
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2547
+ }
2548
+ },
2549
+ {
2550
+ "kind": "method",
2551
+ "name": "handleInput",
2552
+ "privacy": "protected",
2553
+ "parameters": [
2554
+ {
2555
+ "name": "e",
2556
+ "type": {
2557
+ "text": "Event"
2558
+ }
2559
+ }
2560
+ ],
2561
+ "inheritedFrom": {
2562
+ "name": "FormAssociatedMixin",
2563
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2564
+ }
2565
+ },
2566
+ {
2567
+ "kind": "method",
2568
+ "name": "renderLabel",
2569
+ "privacy": "protected",
2570
+ "parameters": [
2571
+ {
2572
+ "name": "additionalContent",
2573
+ "optional": true,
2574
+ "type": {
2575
+ "text": "TemplateResult"
2576
+ }
2577
+ }
2578
+ ],
2579
+ "inheritedFrom": {
2580
+ "name": "FormAssociatedMixin",
2581
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2582
+ }
2583
+ },
2584
+ {
2585
+ "kind": "method",
2586
+ "name": "renderError",
2587
+ "privacy": "protected",
2588
+ "inheritedFrom": {
2589
+ "name": "FormAssociatedMixin",
2590
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2591
+ }
2592
+ },
2593
+ {
2594
+ "kind": "method",
2595
+ "name": "getDescribedBy",
2596
+ "privacy": "protected",
2597
+ "inheritedFrom": {
2598
+ "name": "FormAssociatedMixin",
2599
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2600
+ }
2601
+ },
2602
+ {
2603
+ "kind": "method",
2604
+ "name": "getInvalid",
2605
+ "privacy": "protected",
2606
+ "inheritedFrom": {
2607
+ "name": "FormAssociatedMixin",
2608
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2609
+ }
2610
+ },
2611
+ {
2612
+ "kind": "field",
2613
+ "name": "hasHint",
2614
+ "privacy": "protected",
2615
+ "readonly": true,
2616
+ "inheritedFrom": {
2617
+ "name": "FormAssociatedMixin",
2618
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2619
+ }
2620
+ },
2621
+ {
2622
+ "kind": "field",
2623
+ "name": "hasError",
2624
+ "privacy": "protected",
2625
+ "readonly": true,
2626
+ "inheritedFrom": {
2627
+ "name": "FormAssociatedMixin",
2628
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2629
+ }
2625
2630
  },
2626
2631
  {
2627
2632
  "kind": "field",
2628
- "name": "min",
2633
+ "name": "disabled",
2629
2634
  "type": {
2630
- "text": "string | undefined"
2635
+ "text": "boolean"
2631
2636
  },
2632
- "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.",
2633
- "attribute": "min",
2634
- "reflects": true
2637
+ "default": "false",
2638
+ "description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
2639
+ "attribute": "disabled",
2640
+ "reflects": true,
2641
+ "inheritedFrom": {
2642
+ "name": "InputMixin",
2643
+ "module": "src/common/mixins/InputMixin.ts"
2644
+ }
2635
2645
  },
2636
2646
  {
2637
2647
  "kind": "field",
2638
- "name": "max",
2648
+ "name": "name",
2639
2649
  "type": {
2640
2650
  "text": "string | undefined"
2641
2651
  },
2642
- "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.",
2643
- "attribute": "max",
2644
- "reflects": true
2652
+ "description": "The name of the form component.",
2653
+ "attribute": "name",
2654
+ "reflects": true,
2655
+ "inheritedFrom": {
2656
+ "name": "InputMixin",
2657
+ "module": "src/common/mixins/InputMixin.ts"
2658
+ }
2645
2659
  },
2646
2660
  {
2647
2661
  "kind": "field",
2648
- "name": "expand",
2662
+ "name": "value",
2649
2663
  "type": {
2650
- "text": "boolean"
2664
+ "text": "string"
2651
2665
  },
2652
- "default": "false",
2653
- "description": "Controls whether the calendar expands to fill the width of its container.",
2654
- "attribute": "expand",
2655
- "reflects": true
2666
+ "default": "\"\"",
2667
+ "description": "The value of the form component.",
2668
+ "attribute": "value",
2669
+ "inheritedFrom": {
2670
+ "name": "InputMixin",
2671
+ "module": "src/common/mixins/InputMixin.ts"
2672
+ }
2656
2673
  },
2657
2674
  {
2658
2675
  "kind": "field",
2659
- "name": "isDateDisabled",
2676
+ "name": "formAncestor",
2660
2677
  "type": {
2661
- "text": "DatePredicate"
2678
+ "text": "HTMLFormElement | null"
2662
2679
  },
2663
- "default": "isDateDisabled",
2664
- "description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
2680
+ "privacy": "private",
2681
+ "default": "null",
2682
+ "inheritedFrom": {
2683
+ "name": "InputMixin",
2684
+ "module": "src/common/mixins/InputMixin.ts"
2685
+ }
2665
2686
  },
2666
2687
  {
2667
2688
  "kind": "field",
2668
- "name": "isDateHighlighted",
2689
+ "name": "_formId",
2669
2690
  "type": {
2670
- "text": "(date: Date) => string | boolean"
2691
+ "text": "string | undefined"
2671
2692
  },
2672
- "default": "isDateHighlighted",
2673
- "description": "Controls which days are highlighted with a small indicator.\nReturning a \"falsy\" value will not show an indicator.\nReturning \"truthy\" value will show the indicator, but without an accessible label.\nReturning a string will show the indicator, and use the string as accessible label.\nIt is recommended to return a string rather than a truthy value whenever possible."
2693
+ "privacy": "protected",
2694
+ "inheritedFrom": {
2695
+ "name": "InputMixin",
2696
+ "module": "src/common/mixins/InputMixin.ts"
2697
+ }
2674
2698
  },
2675
2699
  {
2676
2700
  "kind": "field",
2677
- "name": "activeFocus",
2701
+ "name": "form",
2678
2702
  "type": {
2679
- "text": "boolean"
2703
+ "text": "HTMLFormElement | null"
2680
2704
  },
2681
- "privacy": "private",
2682
- "default": "false"
2705
+ "description": "Gets the form, if any, associated with the form element.\nThe setter accepts a string, which is the id of the form.",
2706
+ "attribute": "form",
2707
+ "inheritedFrom": {
2708
+ "name": "InputMixin",
2709
+ "module": "src/common/mixins/InputMixin.ts"
2710
+ }
2683
2711
  },
2684
2712
  {
2685
2713
  "kind": "field",
2686
- "name": "focusedDay",
2687
- "privacy": "private",
2688
- "default": "new Date()"
2714
+ "name": "focusableRef",
2715
+ "privacy": "protected",
2716
+ "inheritedFrom": {
2717
+ "name": "FocusableMixin",
2718
+ "module": "src/common/mixins/FocusableMixin.ts"
2719
+ }
2689
2720
  },
2690
2721
  {
2691
2722
  "kind": "method",
@@ -2695,245 +2726,263 @@
2695
2726
  "name": "options",
2696
2727
  "optional": true,
2697
2728
  "type": {
2698
- "text": "FocusOptions & { target: \"day\" | \"month\" }"
2729
+ "text": "FocusOptions"
2699
2730
  },
2700
2731
  "description": "An object which controls aspects of the focusing process."
2701
2732
  }
2702
2733
  ],
2703
- "description": "Programmatically move focus to the calendar."
2704
- },
2705
- {
2706
- "kind": "method",
2707
- "name": "handleValueChange",
2708
- "privacy": "protected"
2709
- },
2710
- {
2711
- "kind": "method",
2712
- "name": "handleFocusedDayChange",
2713
- "privacy": "protected"
2714
- },
2715
- {
2716
- "kind": "method",
2717
- "name": "handleLangChange",
2718
- "privacy": "private"
2719
- },
2720
- {
2721
- "kind": "field",
2722
- "name": "handleDaySelect",
2723
- "privacy": "private"
2724
- },
2725
- {
2726
- "kind": "method",
2727
- "name": "addDays",
2728
- "privacy": "private",
2729
- "parameters": [
2730
- {
2731
- "name": "days",
2732
- "type": {
2733
- "text": "number"
2734
- }
2735
- }
2736
- ]
2737
- },
2738
- {
2739
- "kind": "method",
2740
- "name": "addMonths",
2741
- "privacy": "private",
2742
- "parameters": [
2743
- {
2744
- "name": "months",
2745
- "type": {
2746
- "text": "number"
2747
- }
2748
- }
2749
- ]
2750
- },
2751
- {
2752
- "kind": "method",
2753
- "name": "addYears",
2754
- "privacy": "private",
2755
- "parameters": [
2756
- {
2757
- "name": "years",
2758
- "type": {
2759
- "text": "number"
2760
- }
2761
- }
2762
- ]
2763
- },
2764
- {
2765
- "kind": "method",
2766
- "name": "startOfWeek",
2767
- "privacy": "private"
2768
- },
2769
- {
2770
- "kind": "method",
2771
- "name": "endOfWeek",
2772
- "privacy": "private"
2734
+ "description": "Programmatically move focus to the component.",
2735
+ "inheritedFrom": {
2736
+ "name": "FocusableMixin",
2737
+ "module": "src/common/mixins/FocusableMixin.ts"
2738
+ }
2773
2739
  },
2774
2740
  {
2775
2741
  "kind": "method",
2776
- "name": "setMonth",
2777
- "privacy": "private",
2778
- "parameters": [
2779
- {
2780
- "name": "month",
2781
- "type": {
2782
- "text": "number"
2783
- }
2784
- }
2785
- ]
2742
+ "name": "blur",
2743
+ "description": "Programmatically remove focus from the component.",
2744
+ "inheritedFrom": {
2745
+ "name": "FocusableMixin",
2746
+ "module": "src/common/mixins/FocusableMixin.ts"
2747
+ }
2786
2748
  },
2787
2749
  {
2788
2750
  "kind": "method",
2789
- "name": "setYear",
2790
- "privacy": "private",
2791
- "parameters": [
2792
- {
2793
- "name": "year",
2794
- "type": {
2795
- "text": "number"
2796
- }
2797
- }
2798
- ]
2799
- },
2751
+ "name": "click",
2752
+ "description": "Programmatically simulates a click on the component.",
2753
+ "inheritedFrom": {
2754
+ "name": "FocusableMixin",
2755
+ "module": "src/common/mixins/FocusableMixin.ts"
2756
+ }
2757
+ }
2758
+ ],
2759
+ "attributes": [
2800
2760
  {
2801
- "kind": "method",
2802
- "name": "setFocusedDay",
2803
- "privacy": "private",
2804
- "parameters": [
2805
- {
2806
- "name": "day",
2807
- "type": {
2808
- "text": "Date"
2809
- }
2810
- }
2811
- ]
2761
+ "name": "indeterminate",
2762
+ "type": {
2763
+ "text": "boolean"
2764
+ },
2765
+ "default": "false",
2766
+ "description": "Controls whether the checkbox is in an indeterminate state.",
2767
+ "fieldName": "indeterminate"
2812
2768
  },
2813
2769
  {
2814
- "kind": "field",
2815
- "name": "handleMonthSelect",
2816
- "privacy": "private"
2770
+ "name": "checked",
2771
+ "type": {
2772
+ "text": "boolean"
2773
+ },
2774
+ "default": "false",
2775
+ "description": "Controls whether the checkbox is checked or not.",
2776
+ "fieldName": "checked"
2817
2777
  },
2818
2778
  {
2819
- "kind": "field",
2820
- "name": "handleYearSelect",
2821
- "privacy": "private"
2779
+ "name": "size",
2780
+ "type": {
2781
+ "text": "\"s\" | \"m\" | \"l\""
2782
+ },
2783
+ "default": "\"m\"",
2784
+ "description": "The size of the component.",
2785
+ "fieldName": "size",
2786
+ "inheritedFrom": {
2787
+ "name": "SizeMixin",
2788
+ "module": "src/common/mixins/SizeMixin.ts"
2789
+ }
2822
2790
  },
2823
2791
  {
2824
- "kind": "field",
2825
- "name": "handleNextMonthClick",
2826
- "privacy": "private"
2792
+ "name": "label",
2793
+ "type": {
2794
+ "text": "string"
2795
+ },
2796
+ "default": "\"\"",
2797
+ "description": "Label for the input.",
2798
+ "fieldName": "label",
2799
+ "inheritedFrom": {
2800
+ "name": "FormAssociatedMixin",
2801
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2802
+ }
2827
2803
  },
2828
2804
  {
2829
- "kind": "field",
2830
- "name": "handlePreviousMonthClick",
2831
- "privacy": "private"
2805
+ "name": "hint",
2806
+ "type": {
2807
+ "text": "string | undefined"
2808
+ },
2809
+ "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
2810
+ "fieldName": "hint",
2811
+ "inheritedFrom": {
2812
+ "name": "FormAssociatedMixin",
2813
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2814
+ }
2832
2815
  },
2833
2816
  {
2834
- "kind": "field",
2835
- "name": "enableActiveFocus",
2836
- "privacy": "private"
2817
+ "name": "hide-label",
2818
+ "type": {
2819
+ "text": "boolean"
2820
+ },
2821
+ "default": "false",
2822
+ "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
2823
+ "fieldName": "hideLabel",
2824
+ "inheritedFrom": {
2825
+ "name": "FormAssociatedMixin",
2826
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2827
+ }
2837
2828
  },
2838
2829
  {
2839
- "kind": "field",
2840
- "name": "disableActiveFocus",
2841
- "privacy": "private"
2842
- }
2843
- ],
2844
- "events": [
2830
+ "name": "placeholder",
2831
+ "type": {
2832
+ "text": "string | undefined"
2833
+ },
2834
+ "description": "Placeholder text to display within the input.",
2835
+ "fieldName": "placeholder",
2836
+ "inheritedFrom": {
2837
+ "name": "FormAssociatedMixin",
2838
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2839
+ }
2840
+ },
2845
2841
  {
2846
- "name": "nord-focus-date",
2842
+ "name": "error",
2847
2843
  "type": {
2848
- "text": "DateSelectEvent"
2844
+ "text": "string | undefined"
2849
2845
  },
2850
- "description": "Dispatched when the calendar's focused date changes."
2846
+ "description": "Optional error to be shown with the input. Alternatively use the error slot.",
2847
+ "fieldName": "error",
2848
+ "inheritedFrom": {
2849
+ "name": "FormAssociatedMixin",
2850
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2851
+ }
2851
2852
  },
2852
2853
  {
2854
+ "name": "required",
2853
2855
  "type": {
2854
- "text": "DateSelectEvent"
2856
+ "text": "boolean"
2855
2857
  },
2856
- "description": "Dispatched when a date is selected and the value changes.",
2857
- "name": "change"
2858
- }
2859
- ],
2860
- "attributes": [
2858
+ "default": "false",
2859
+ "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.",
2860
+ "fieldName": "required",
2861
+ "inheritedFrom": {
2862
+ "name": "FormAssociatedMixin",
2863
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2864
+ }
2865
+ },
2861
2866
  {
2862
- "name": "value",
2867
+ "name": "hide-required",
2863
2868
  "type": {
2864
- "text": "string"
2869
+ "text": "boolean"
2865
2870
  },
2866
- "default": "\"\"",
2867
- "description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
2868
- "fieldName": "value"
2871
+ "default": "false",
2872
+ "description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
2873
+ "fieldName": "hideRequired",
2874
+ "inheritedFrom": {
2875
+ "name": "FormAssociatedMixin",
2876
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2877
+ }
2869
2878
  },
2870
2879
  {
2871
- "name": "first-day-of-week",
2880
+ "name": "disabled",
2872
2881
  "type": {
2873
- "text": "DaysOfWeek"
2882
+ "text": "boolean"
2874
2883
  },
2875
- "description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
2876
- "fieldName": "firstDayOfWeek"
2884
+ "default": "false",
2885
+ "description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
2886
+ "fieldName": "disabled",
2887
+ "inheritedFrom": {
2888
+ "name": "InputMixin",
2889
+ "module": "src/common/mixins/InputMixin.ts"
2890
+ }
2877
2891
  },
2878
2892
  {
2879
- "name": "min",
2893
+ "name": "name",
2880
2894
  "type": {
2881
2895
  "text": "string | undefined"
2882
2896
  },
2883
- "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.",
2884
- "fieldName": "min"
2897
+ "description": "The name of the form component.",
2898
+ "fieldName": "name",
2899
+ "inheritedFrom": {
2900
+ "name": "InputMixin",
2901
+ "module": "src/common/mixins/InputMixin.ts"
2902
+ }
2885
2903
  },
2886
2904
  {
2887
- "name": "max",
2905
+ "name": "value",
2888
2906
  "type": {
2889
- "text": "string | undefined"
2907
+ "text": "string"
2890
2908
  },
2891
- "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.",
2892
- "fieldName": "max"
2909
+ "default": "\"\"",
2910
+ "description": "The value of the form component.",
2911
+ "fieldName": "value",
2912
+ "inheritedFrom": {
2913
+ "name": "InputMixin",
2914
+ "module": "src/common/mixins/InputMixin.ts"
2915
+ }
2893
2916
  },
2894
2917
  {
2895
- "name": "expand",
2918
+ "name": "form",
2896
2919
  "type": {
2897
- "text": "boolean"
2920
+ "text": "HTMLFormElement | null"
2898
2921
  },
2899
- "default": "false",
2900
- "description": "Controls whether the calendar expands to fill the width of its container.",
2901
- "fieldName": "expand"
2922
+ "description": "Gets the form, if any, associated with the form element.\nThe setter accepts a string, which is the id of the form.",
2923
+ "fieldName": "form",
2924
+ "inheritedFrom": {
2925
+ "name": "InputMixin",
2926
+ "module": "src/common/mixins/InputMixin.ts"
2927
+ }
2902
2928
  }
2903
2929
  ],
2904
- "superclass": {
2905
- "name": "LitElement",
2906
- "package": "lit"
2907
- },
2908
- "localization": [
2930
+ "mixins": [
2909
2931
  {
2910
- "name": "prevMonthLabel",
2911
- "description": "Accessible label for the previous month button."
2932
+ "name": "SizeMixin",
2933
+ "module": "/src/common/mixins/SizeMixin.js"
2912
2934
  },
2913
2935
  {
2914
- "name": "nextMonthLabel",
2915
- "description": "Accessible label for the next month button."
2936
+ "name": "FormAssociatedMixin",
2937
+ "module": "/src/common/mixins/FormAssociatedMixin.js"
2916
2938
  },
2917
2939
  {
2918
- "name": "monthSelectLabel",
2919
- "description": "Accessible label for the month select."
2940
+ "name": "InputMixin",
2941
+ "module": "/src/common/mixins/InputMixin.js"
2920
2942
  },
2921
2943
  {
2922
- "name": "yearSelectLabel",
2923
- "description": "Accessible label for the year select."
2944
+ "name": "FocusableMixin",
2945
+ "module": "/src/common/mixins/FocusableMixin.js"
2924
2946
  }
2925
2947
  ],
2948
+ "superclass": {
2949
+ "name": "LitElement",
2950
+ "package": "lit"
2951
+ },
2952
+ "localization": [],
2926
2953
  "status": "ready",
2927
- "category": "list",
2928
- "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n",
2954
+ "category": "form",
2955
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for making it possible to choose one or more options from a limited number of options.\n- Use for “accepting terms of service” and similar functionality.\n- Use in forms to toggle something on or off.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Avoid using when you have more than 10 options to choose from.\n- Don’t change the selection of another checkbox when another one is clicked. Only exception is when a checkbox is used to make a bulk selection of multiple items.\n\n</div>\n\n---\n\n## Content guidelines\n\nCheckbox labels should be clear, accurate and predictable. It should be possible for the user to understand what they are selecting:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing checkbox labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">User Settings</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Show dashboard</div>\n<div class=\"n-usage n-usage-dont\">Show dashboard.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients;</div>\n",
2929
2956
  "examples": [],
2930
2957
  "dependencies": [
2931
- "button",
2932
- "visually-hidden",
2933
2958
  "icon"
2934
2959
  ],
2935
- "tagName": "nord-calendar",
2936
- "customElement": true
2960
+ "tagName": "nord-checkbox",
2961
+ "customElement": true,
2962
+ "events": [
2963
+ {
2964
+ "name": "input",
2965
+ "type": {
2966
+ "text": "NordEvent"
2967
+ },
2968
+ "description": "Fired as the user types into the input.",
2969
+ "inheritedFrom": {
2970
+ "name": "FormAssociatedMixin",
2971
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2972
+ }
2973
+ },
2974
+ {
2975
+ "name": "change",
2976
+ "type": {
2977
+ "text": "NordEvent"
2978
+ },
2979
+ "description": "Fired whenever the input's value is changed via user interaction.",
2980
+ "inheritedFrom": {
2981
+ "name": "FormAssociatedMixin",
2982
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
2983
+ }
2984
+ }
2985
+ ]
2937
2986
  }
2938
2987
  ],
2939
2988
  "exports": [
@@ -2941,65 +2990,16 @@
2941
2990
  "kind": "js",
2942
2991
  "name": "default",
2943
2992
  "declaration": {
2944
- "name": "Calendar",
2945
- "module": "src/calendar/Calendar.ts"
2993
+ "name": "Checkbox",
2994
+ "module": "src/checkbox/Checkbox.ts"
2946
2995
  }
2947
2996
  },
2948
2997
  {
2949
2998
  "kind": "custom-element-definition",
2950
- "name": "nord-calendar",
2951
- "declaration": {
2952
- "name": "Calendar",
2953
- "module": "src/calendar/Calendar.ts"
2954
- }
2955
- }
2956
- ]
2957
- },
2958
- {
2959
- "kind": "javascript-module",
2960
- "path": "src/calendar/DateSelectEvent.ts",
2961
- "declarations": [
2962
- {
2963
- "kind": "class",
2964
- "description": "",
2965
- "name": "DateSelectEvent",
2966
- "superclass": {
2967
- "name": "NordEvent",
2968
- "module": "/src/common/events.js"
2969
- }
2970
- }
2971
- ],
2972
- "exports": [
2973
- {
2974
- "kind": "js",
2975
- "name": "DateSelectEvent",
2976
- "declaration": {
2977
- "name": "DateSelectEvent",
2978
- "module": "src/calendar/DateSelectEvent.ts"
2979
- }
2980
- }
2981
- ]
2982
- },
2983
- {
2984
- "kind": "javascript-module",
2985
- "path": "src/calendar/localization.ts",
2986
- "declarations": [
2987
- {
2988
- "kind": "variable",
2989
- "name": "calendarLocalization",
2990
- "type": {
2991
- "text": "object"
2992
- },
2993
- "default": "{ prevMonthLabel: \"Previous month\", nextMonthLabel: \"Next month\", monthSelectLabel: \"Month\", yearSelectLabel: \"Year\", }"
2994
- }
2995
- ],
2996
- "exports": [
2997
- {
2998
- "kind": "js",
2999
- "name": "default",
2999
+ "name": "nord-checkbox",
3000
3000
  "declaration": {
3001
- "name": "calendarLocalization",
3002
- "module": "src/calendar/localization.ts"
3001
+ "name": "Checkbox",
3002
+ "module": "src/checkbox/Checkbox.ts"
3003
3003
  }
3004
3004
  }
3005
3005
  ]