@nordhealth/components 1.14.3 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/custom-elements.json +1389 -1161
  2. package/lib/Avatar.js +1 -1
  3. package/lib/Avatar.js.map +1 -1
  4. package/lib/Badge.js +1 -1
  5. package/lib/Badge.js.map +1 -1
  6. package/lib/Banner.js +1 -1
  7. package/lib/Banner.js.map +1 -1
  8. package/lib/Button.js +1 -1
  9. package/lib/Button.js.map +1 -1
  10. package/lib/Calendar-8aa523a7.js +2 -0
  11. package/lib/Calendar-8aa523a7.js.map +1 -0
  12. package/lib/Calendar.js +1 -1
  13. package/lib/Card.js +1 -1
  14. package/lib/Card.js.map +1 -1
  15. package/lib/Checkbox.js +1 -1
  16. package/lib/Checkbox.js.map +1 -1
  17. package/lib/CommandMenu.js +1 -1
  18. package/lib/CommandMenu.js.map +1 -1
  19. package/lib/DatePicker.js +1 -1
  20. package/lib/DatePicker.js.map +1 -1
  21. package/lib/Divider.js +1 -1
  22. package/lib/Divider.js.map +1 -1
  23. package/lib/Dropdown.js +1 -1
  24. package/lib/Dropdown.js.map +1 -1
  25. package/lib/DropdownGroup.js +1 -1
  26. package/lib/DropdownGroup.js.map +1 -1
  27. package/lib/DropdownItem.js +1 -1
  28. package/lib/DropdownItem.js.map +1 -1
  29. package/lib/Header.js +1 -1
  30. package/lib/Header.js.map +1 -1
  31. package/lib/Icon.js +1 -1
  32. package/lib/Icon.js.map +1 -1
  33. package/lib/Input.js +1 -1
  34. package/lib/Input.js.map +1 -1
  35. package/lib/Layout.js +1 -1
  36. package/lib/Layout.js.map +1 -1
  37. package/lib/Modal.js +1 -1
  38. package/lib/Modal.js.map +1 -1
  39. package/lib/NavGroup.js +1 -1
  40. package/lib/NavGroup.js.map +1 -1
  41. package/lib/NavItem.js +1 -1
  42. package/lib/NavItem.js.map +1 -1
  43. package/lib/Popout.js +1 -1
  44. package/lib/Popout.js.map +1 -1
  45. package/lib/ProgressBar.js +1 -1
  46. package/lib/ProgressBar.js.map +1 -1
  47. package/lib/Radio.js +1 -1
  48. package/lib/Radio.js.map +1 -1
  49. package/lib/Select.js +1 -1
  50. package/lib/Select.js.map +1 -1
  51. package/lib/Skeleton.js +1 -1
  52. package/lib/Skeleton.js.map +1 -1
  53. package/lib/Spinner.js +1 -1
  54. package/lib/Spinner.js.map +1 -1
  55. package/lib/Stack.js +1 -1
  56. package/lib/Stack.js.map +1 -1
  57. package/lib/Tab.js +1 -1
  58. package/lib/Tab.js.map +1 -1
  59. package/lib/TabGroup.js +1 -1
  60. package/lib/TabGroup.js.map +1 -1
  61. package/lib/Table.js +1 -1
  62. package/lib/Table.js.map +1 -1
  63. package/lib/TextField-2df7c697.js +2 -0
  64. package/lib/{TextField-c34519d4.js.map → TextField-2df7c697.js.map} +1 -1
  65. package/lib/Textarea.js +1 -1
  66. package/lib/Textarea.js.map +1 -1
  67. package/lib/Toast.js +1 -1
  68. package/lib/Toast.js.map +1 -1
  69. package/lib/ToastGroup.js +1 -1
  70. package/lib/ToastGroup.js.map +1 -1
  71. package/lib/Toggle.js +1 -1
  72. package/lib/Toggle.js.map +1 -1
  73. package/lib/Tooltip.js +1 -1
  74. package/lib/Tooltip.js.map +1 -1
  75. package/lib/bundle.js +23 -23
  76. package/lib/bundle.js.map +1 -1
  77. package/lib/index.js +1 -1
  78. package/lib/src/avatar/Avatar.d.ts +3 -1
  79. package/lib/src/badge/Badge.d.ts +10 -3
  80. package/lib/src/badge/Badge.test.d.ts +4 -0
  81. package/lib/src/banner/Banner.d.ts +3 -0
  82. package/lib/src/button/Button.d.ts +6 -0
  83. package/lib/src/calendar/Calendar.d.ts +3 -0
  84. package/lib/src/card/Card.d.ts +5 -0
  85. package/lib/src/command-menu/CommandMenu.d.ts +4 -0
  86. package/lib/src/divider/Divider.d.ts +3 -0
  87. package/lib/src/dropdown/Dropdown.d.ts +2 -0
  88. package/lib/src/input/Input.d.ts +6 -0
  89. package/lib/src/layout/Layout.d.ts +3 -1
  90. package/lib/src/modal/Modal.d.ts +4 -0
  91. package/lib/src/progress-bar/ProgressBar.d.ts +4 -0
  92. package/lib/src/skeleton/Skeleton.d.ts +6 -4
  93. package/lib/src/stack/Stack.d.ts +2 -0
  94. package/lib/src/tab/Tab.d.ts +3 -0
  95. package/lib/src/tab/Tab.test.d.ts +1 -1
  96. package/lib/src/tab-group/TabGroup.d.ts +2 -0
  97. package/lib/src/table/Table.d.ts +3 -0
  98. package/lib/src/textarea/Textarea.d.ts +8 -0
  99. package/lib/src/toast/Toast.d.ts +2 -4
  100. package/lib/src/toast-group/ToastGroup.d.ts +2 -3
  101. package/package.json +6 -6
  102. package/lib/Calendar-df35e1cd.js +0 -2
  103. package/lib/Calendar-df35e1cd.js.map +0 -1
  104. package/lib/DraftComponentMixin-9e4b7b34.js +0 -2
  105. package/lib/DraftComponentMixin-9e4b7b34.js.map +0 -1
  106. package/lib/TextField-c34519d4.js +0 -2
@@ -377,6 +377,13 @@
377
377
  "kind": "class",
378
378
  "description": "Avatar is used for showing a thumbnail representation of a user or entity.\nDefault avatar illustration is displayed when no src is specified.",
379
379
  "name": "Avatar",
380
+ "cssProperties": [
381
+ {
382
+ "description": "Controls the size of the avatar, using [icon sizing tokens](/tokens/#size).",
383
+ "name": "--n-avatar-size",
384
+ "default": "var(--n-size-icon-l)"
385
+ }
386
+ ],
380
387
  "members": [
381
388
  {
382
389
  "kind": "field",
@@ -511,6 +518,33 @@
511
518
  "kind": "class",
512
519
  "description": "Buttons are used for interface actions. Primary style should be\nused only once per section for main call-to-action, while other\nstyles can appear more frequently.",
513
520
  "name": "Button",
521
+ "cssProperties": [
522
+ {
523
+ "description": "Controls the rounded corners of the button, using [border radius tokens](/tokens/#border-radius).",
524
+ "name": "--n-button-border-radius",
525
+ "default": "var(--n-border-radius-s)"
526
+ },
527
+ {
528
+ "description": "Controls the spacing between items within the button, using our [spacing tokens](/tokens/#space).",
529
+ "name": "--n-button-gap",
530
+ "default": "var(--n-space-s)"
531
+ },
532
+ {
533
+ "description": "Controls the overlayed gradient background on the button.",
534
+ "name": "--n-button-gradient",
535
+ "default": "linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.013) 100%))"
536
+ },
537
+ {
538
+ "description": "Controls the border color of the button, using [color tokens](/tokens/#color).",
539
+ "name": "--n-button-border-color",
540
+ "default": "var(--n-color-border-strong)"
541
+ },
542
+ {
543
+ "description": "Controls the text alignment for the text in the button.",
544
+ "name": "--n-button-text-align",
545
+ "default": "center"
546
+ }
547
+ ],
514
548
  "slots": [
515
549
  {
516
550
  "description": "The button content",
@@ -983,6 +1017,18 @@
983
1017
  "kind": "class",
984
1018
  "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.",
985
1019
  "name": "Banner",
1020
+ "cssProperties": [
1021
+ {
1022
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
1023
+ "name": "--n-banner-border-radius",
1024
+ "default": "var(--n-border-radius)"
1025
+ },
1026
+ {
1027
+ "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
1028
+ "name": "--n-banner-box-shadow",
1029
+ "default": "var(--n-box-shadow-card)"
1030
+ }
1031
+ ],
986
1032
  "slots": [
987
1033
  {
988
1034
  "description": "default slot",
@@ -1046,81 +1092,24 @@
1046
1092
  },
1047
1093
  {
1048
1094
  "kind": "javascript-module",
1049
- "path": "src/badge/Badge.ts",
1095
+ "path": "src/calendar/Calendar.ts",
1050
1096
  "declarations": [
1051
1097
  {
1052
1098
  "kind": "class",
1053
- "description": "Badges are used to inform users of the status of an object or of an action that’s been taken. Commonly used in tabular data to indicate status.",
1054
- "name": "Badge",
1055
- "slots": [
1056
- {
1057
- "description": "The badge content.",
1058
- "name": ""
1059
- }
1060
- ],
1061
- "members": [
1099
+ "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.",
1100
+ "name": "Calendar",
1101
+ "cssProperties": [
1062
1102
  {
1063
- "kind": "field",
1064
- "name": "type",
1065
- "type": {
1066
- "text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
1067
- },
1068
- "default": "\"info\"",
1069
- "description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
1070
- "attribute": "type",
1071
- "reflects": true
1072
- }
1073
- ],
1074
- "attributes": [
1103
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
1104
+ "name": "--n-calendar-border-radius",
1105
+ "default": "var(--n-border-radius)"
1106
+ },
1075
1107
  {
1076
- "name": "type",
1077
- "type": {
1078
- "text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
1079
- },
1080
- "default": "\"info\"",
1081
- "description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
1082
- "fieldName": "type"
1108
+ "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
1109
+ "name": "--n-calendar-box-shadow",
1110
+ "default": "var(--n-box-shadow-popout)"
1083
1111
  }
1084
1112
  ],
1085
- "superclass": {
1086
- "name": "LitElement",
1087
- "package": "lit"
1088
- },
1089
- "status": "ready",
1090
- "category": "text",
1091
- "displayName": null,
1092
- "tagName": "nord-badge",
1093
- "customElement": true
1094
- }
1095
- ],
1096
- "exports": [
1097
- {
1098
- "kind": "js",
1099
- "name": "default",
1100
- "declaration": {
1101
- "name": "Badge",
1102
- "module": "src/badge/Badge.ts"
1103
- }
1104
- },
1105
- {
1106
- "kind": "custom-element-definition",
1107
- "name": "nord-badge",
1108
- "declaration": {
1109
- "name": "Badge",
1110
- "module": "src/badge/Badge.ts"
1111
- }
1112
- }
1113
- ],
1114
- "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 show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Use established color patterns so that users can clearly identify the importance level.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `info` | The default variant. Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n"
1115
- },
1116
- {
1117
- "kind": "javascript-module",
1118
- "path": "src/calendar/Calendar.ts",
1119
- "declarations": [
1120
- {
1121
- "kind": "class",
1122
- "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.",
1123
- "name": "Calendar",
1124
1113
  "members": [
1125
1114
  {
1126
1115
  "kind": "field",
@@ -1634,70 +1623,57 @@
1634
1623
  },
1635
1624
  {
1636
1625
  "kind": "javascript-module",
1637
- "path": "src/card/Card.ts",
1626
+ "path": "src/badge/Badge.ts",
1638
1627
  "declarations": [
1639
1628
  {
1640
1629
  "kind": "class",
1641
- "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.",
1642
- "name": "Card",
1630
+ "description": "Badges are used to inform users of the status of an object\nor of an action that’s been taken. Commonly used in tabular\ndata to indicate status.",
1631
+ "name": "Badge",
1643
1632
  "slots": [
1644
1633
  {
1645
- "description": "The card content.",
1634
+ "description": "The badge content.",
1646
1635
  "name": ""
1647
- },
1648
- {
1649
- "description": "Optional slot that holds a header for the card.",
1650
- "name": "header"
1651
- },
1652
- {
1653
- "description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
1654
- "name": "header-end"
1655
- },
1656
- {
1657
- "description": "Optional slot that holds footer content for the card.",
1658
- "name": "footer"
1659
1636
  }
1660
1637
  ],
1661
1638
  "members": [
1662
1639
  {
1663
1640
  "kind": "field",
1664
- "name": "headerSlot",
1665
- "privacy": "private",
1666
- "default": "new SlotController(this, \"header\")"
1667
- },
1668
- {
1669
- "kind": "field",
1670
- "name": "headerEndSlot",
1671
- "privacy": "private",
1672
- "default": "new SlotController(this, \"header-end\")"
1673
- },
1674
- {
1675
- "kind": "field",
1676
- "name": "footerSlot",
1677
- "privacy": "private",
1678
- "default": "new SlotController(this, \"footer\")"
1641
+ "name": "type",
1642
+ "type": {
1643
+ "text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
1644
+ },
1645
+ "default": "\"neutral\"",
1646
+ "description": "The type of badge.\nDetermines the background color of the badge.",
1647
+ "attribute": "type",
1648
+ "reflects": true
1679
1649
  },
1680
1650
  {
1681
1651
  "kind": "field",
1682
- "name": "padding",
1652
+ "name": "progress",
1683
1653
  "type": {
1684
- "text": "\"m\" | \"l\" | \"none\""
1654
+ "text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
1685
1655
  },
1686
- "default": "\"m\"",
1687
- "description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
1688
- "attribute": "padding",
1689
- "reflects": true
1656
+ "description": "The progress of the badge. Displays a progress\nindicator next to the label.",
1657
+ "attribute": "progress"
1690
1658
  }
1691
1659
  ],
1692
1660
  "attributes": [
1693
1661
  {
1694
- "name": "padding",
1662
+ "name": "type",
1695
1663
  "type": {
1696
- "text": "\"m\" | \"l\" | \"none\""
1664
+ "text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
1697
1665
  },
1698
- "default": "\"m\"",
1699
- "description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
1700
- "fieldName": "padding"
1666
+ "default": "\"neutral\"",
1667
+ "description": "The type of badge.\nDetermines the background color of the badge.",
1668
+ "fieldName": "type"
1669
+ },
1670
+ {
1671
+ "name": "progress",
1672
+ "type": {
1673
+ "text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
1674
+ },
1675
+ "description": "The progress of the badge. Displays a progress\nindicator next to the label.",
1676
+ "fieldName": "progress"
1701
1677
  }
1702
1678
  ],
1703
1679
  "superclass": {
@@ -1705,9 +1681,9 @@
1705
1681
  "package": "lit"
1706
1682
  },
1707
1683
  "status": "ready",
1708
- "category": "structure",
1684
+ "category": "text",
1709
1685
  "displayName": null,
1710
- "tagName": "nord-card",
1686
+ "tagName": "nord-badge",
1711
1687
  "customElement": true
1712
1688
  }
1713
1689
  ],
@@ -1716,20 +1692,20 @@
1716
1692
  "kind": "js",
1717
1693
  "name": "default",
1718
1694
  "declaration": {
1719
- "name": "Card",
1720
- "module": "src/card/Card.ts"
1695
+ "name": "Badge",
1696
+ "module": "src/badge/Badge.ts"
1721
1697
  }
1722
1698
  },
1723
1699
  {
1724
1700
  "kind": "custom-element-definition",
1725
- "name": "nord-card",
1701
+ "name": "nord-badge",
1726
1702
  "declaration": {
1727
- "name": "Card",
1728
- "module": "src/card/Card.ts"
1703
+ "name": "Badge",
1704
+ "module": "src/badge/Badge.ts"
1729
1705
  }
1730
1706
  }
1731
1707
  ],
1732
- "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\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n"
1708
+ "readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use established variants and color patterns so that users can clearly identify the importance level.\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `neutral` | The default style variant. |\n| `info` | Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n| `progress` | Used to convey something that’s in progress. |\n"
1733
1709
  },
1734
1710
  {
1735
1711
  "kind": "javascript-module",
@@ -2338,110 +2314,248 @@
2338
2314
  },
2339
2315
  {
2340
2316
  "kind": "javascript-module",
2341
- "path": "src/command-menu/CommandMenu.ts",
2317
+ "path": "src/card/Card.ts",
2342
2318
  "declarations": [
2343
2319
  {
2344
2320
  "kind": "class",
2345
- "description": "Command Menu allows users to navigate and use an app without\ntouching the mouse and helps them transform into “power users”\nwho can harness more advanced features far faster.",
2346
- "name": "CommandMenu",
2347
- "slots": [
2348
- {
2349
- "description": "Used to replace the default footer contents.",
2350
- "name": "footer"
2351
- }
2352
- ],
2353
- "members": [
2321
+ "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.",
2322
+ "name": "Card",
2323
+ "cssProperties": [
2354
2324
  {
2355
- "kind": "field",
2356
- "name": "inputRef",
2357
- "privacy": "private"
2325
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
2326
+ "name": "--n-card-border-radius",
2327
+ "default": "var(--n-border-radius)"
2358
2328
  },
2359
2329
  {
2360
- "kind": "field",
2361
- "name": "listRef",
2362
- "privacy": "private"
2330
+ "description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
2331
+ "name": "--n-card-box-shadow",
2332
+ "default": "var(--n-box-shadow-popout)"
2363
2333
  },
2364
2334
  {
2365
- "kind": "field",
2366
- "name": "previousFocus",
2367
- "type": {
2368
- "text": "HTMLElement | undefined"
2369
- },
2370
- "privacy": "private"
2335
+ "description": "Controls the padding on all sides of the card.",
2336
+ "name": "--n-card-padding",
2337
+ "default": "var(--n-space-m)"
2371
2338
  },
2372
2339
  {
2373
- "kind": "field",
2374
- "name": "localize",
2375
- "privacy": "private",
2376
- "default": "new LocalizeController<\"nord-command-menu\">(this)"
2377
- },
2340
+ "description": "Controls the padding of items slotted within the card. This does not affect the block padding of items slotted into the header.",
2341
+ "name": "--n-card-slot-padding",
2342
+ "default": "var(--n-space-m)"
2343
+ }
2344
+ ],
2345
+ "slots": [
2378
2346
  {
2379
- "kind": "field",
2380
- "name": "dismissController",
2381
- "privacy": "private",
2382
- "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
2347
+ "description": "The card content.",
2348
+ "name": ""
2383
2349
  },
2384
2350
  {
2385
- "kind": "field",
2386
- "name": "keyboardController",
2387
- "privacy": "private",
2388
- "default": "new KeyboardController(this, {\n trigger: () => this.select(),\n goBack: () => this.goBack(),\n end: () => this.end(),\n start: () => this.start(),\n next: () => this.next(),\n previous: () => this.previous(),\n toggleOpen: () => this.toggleOpen(),\n })"
2351
+ "description": "Optional slot that holds a header for the card.",
2352
+ "name": "header"
2389
2353
  },
2390
2354
  {
2391
- "kind": "field",
2392
- "name": "open",
2393
- "type": {
2394
- "text": "boolean"
2395
- },
2396
- "default": "false",
2397
- "description": "Show or hide the command menu.",
2398
- "attribute": "open"
2355
+ "description": "Optional slot that positions content at the end of the header. Useful for actions or additional info.",
2356
+ "name": "header-end"
2399
2357
  },
2400
2358
  {
2401
- "kind": "field",
2402
- "name": "placeholder",
2403
- "type": {
2404
- "text": "string"
2405
- },
2406
- "default": "\"Type a command or search...\"",
2407
- "description": "Hint text to display in the Command Menu search field.",
2408
- "attribute": "placeholder"
2409
- },
2359
+ "description": "Optional slot that holds footer content for the card.",
2360
+ "name": "footer"
2361
+ }
2362
+ ],
2363
+ "members": [
2410
2364
  {
2411
2365
  "kind": "field",
2412
- "name": "commands",
2413
- "type": {
2414
- "text": "Array<ICommandMenuAction>"
2415
- },
2416
- "default": "[]",
2417
- "description": "Array of commands to be included in the menu.\nPlease see “Commands data” section for more documentation."
2366
+ "name": "headerSlot",
2367
+ "privacy": "private",
2368
+ "default": "new SlotController(this, \"header\")"
2418
2369
  },
2419
2370
  {
2420
2371
  "kind": "field",
2421
- "name": "parent",
2422
- "type": {
2423
- "text": "ICommandMenuAction[\"parent\"]"
2424
- },
2425
- "privacy": "private"
2372
+ "name": "headerEndSlot",
2373
+ "privacy": "private",
2374
+ "default": "new SlotController(this, \"header-end\")"
2426
2375
  },
2427
2376
  {
2428
2377
  "kind": "field",
2429
- "name": "search",
2430
- "type": {
2431
- "text": "string"
2432
- },
2378
+ "name": "footerSlot",
2433
2379
  "privacy": "private",
2434
- "default": "\"\""
2380
+ "default": "new SlotController(this, \"footer\")"
2435
2381
  },
2436
2382
  {
2437
2383
  "kind": "field",
2438
- "name": "bump",
2384
+ "name": "padding",
2439
2385
  "type": {
2440
- "text": "boolean"
2386
+ "text": "\"m\" | \"l\" | \"none\""
2441
2387
  },
2442
- "privacy": "private",
2443
- "default": "true"
2444
- },
2388
+ "default": "\"m\"",
2389
+ "description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
2390
+ "attribute": "padding",
2391
+ "reflects": true
2392
+ }
2393
+ ],
2394
+ "attributes": [
2395
+ {
2396
+ "name": "padding",
2397
+ "type": {
2398
+ "text": "\"m\" | \"l\" | \"none\""
2399
+ },
2400
+ "default": "\"m\"",
2401
+ "description": "Controls the padding of the card component. When set to “none”,\nthe header and footer slots will still have padding.",
2402
+ "fieldName": "padding"
2403
+ }
2404
+ ],
2405
+ "superclass": {
2406
+ "name": "LitElement",
2407
+ "package": "lit"
2408
+ },
2409
+ "status": "ready",
2410
+ "category": "structure",
2411
+ "displayName": null,
2412
+ "tagName": "nord-card",
2413
+ "customElement": true
2414
+ }
2415
+ ],
2416
+ "exports": [
2417
+ {
2418
+ "kind": "js",
2419
+ "name": "default",
2420
+ "declaration": {
2421
+ "name": "Card",
2422
+ "module": "src/card/Card.ts"
2423
+ }
2424
+ },
2425
+ {
2426
+ "kind": "custom-element-definition",
2427
+ "name": "nord-card",
2428
+ "declaration": {
2429
+ "name": "Card",
2430
+ "module": "src/card/Card.ts"
2431
+ }
2432
+ }
2433
+ ],
2434
+ "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\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n"
2435
+ },
2436
+ {
2437
+ "kind": "javascript-module",
2438
+ "path": "src/command-menu/CommandMenu.ts",
2439
+ "declarations": [
2440
+ {
2441
+ "kind": "class",
2442
+ "description": "Command Menu allows users to navigate and use an app without\ntouching the mouse and helps them transform into “power users”\nwho can harness more advanced features far faster.",
2443
+ "name": "CommandMenu",
2444
+ "cssProperties": [
2445
+ {
2446
+ "description": "Controls the max inline size, or width, of the command menu.",
2447
+ "name": "--n-command-menu-inline-size",
2448
+ "default": "640px"
2449
+ },
2450
+ {
2451
+ "description": "Controls the max block size, or height, of the command menu.",
2452
+ "name": "--n-command-menu-block-size",
2453
+ "default": "290px"
2454
+ },
2455
+ {
2456
+ "description": "Controls the command menu offset from the block start, or top, of the screen.",
2457
+ "name": "--n-command-menu-block-start",
2458
+ "default": "16%"
2459
+ }
2460
+ ],
2461
+ "slots": [
2462
+ {
2463
+ "description": "Used to replace the default footer contents.",
2464
+ "name": "footer"
2465
+ }
2466
+ ],
2467
+ "members": [
2468
+ {
2469
+ "kind": "field",
2470
+ "name": "inputRef",
2471
+ "privacy": "private"
2472
+ },
2473
+ {
2474
+ "kind": "field",
2475
+ "name": "listRef",
2476
+ "privacy": "private"
2477
+ },
2478
+ {
2479
+ "kind": "field",
2480
+ "name": "previousFocus",
2481
+ "type": {
2482
+ "text": "HTMLElement | undefined"
2483
+ },
2484
+ "privacy": "private"
2485
+ },
2486
+ {
2487
+ "kind": "field",
2488
+ "name": "localize",
2489
+ "privacy": "private",
2490
+ "default": "new LocalizeController<\"nord-command-menu\">(this)"
2491
+ },
2492
+ {
2493
+ "kind": "field",
2494
+ "name": "dismissController",
2495
+ "privacy": "private",
2496
+ "default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
2497
+ },
2498
+ {
2499
+ "kind": "field",
2500
+ "name": "keyboardController",
2501
+ "privacy": "private",
2502
+ "default": "new KeyboardController(this, {\n trigger: () => this.select(),\n goBack: () => this.goBack(),\n end: () => this.end(),\n start: () => this.start(),\n next: () => this.next(),\n previous: () => this.previous(),\n toggleOpen: () => this.toggleOpen(),\n })"
2503
+ },
2504
+ {
2505
+ "kind": "field",
2506
+ "name": "open",
2507
+ "type": {
2508
+ "text": "boolean"
2509
+ },
2510
+ "default": "false",
2511
+ "description": "Show or hide the command menu.",
2512
+ "attribute": "open"
2513
+ },
2514
+ {
2515
+ "kind": "field",
2516
+ "name": "placeholder",
2517
+ "type": {
2518
+ "text": "string"
2519
+ },
2520
+ "default": "\"Type a command or search...\"",
2521
+ "description": "Hint text to display in the Command Menu search field.",
2522
+ "attribute": "placeholder"
2523
+ },
2524
+ {
2525
+ "kind": "field",
2526
+ "name": "commands",
2527
+ "type": {
2528
+ "text": "Array<ICommandMenuAction>"
2529
+ },
2530
+ "default": "[]",
2531
+ "description": "Array of commands to be included in the menu.\nPlease see “Commands data” section for more documentation."
2532
+ },
2533
+ {
2534
+ "kind": "field",
2535
+ "name": "parent",
2536
+ "type": {
2537
+ "text": "ICommandMenuAction[\"parent\"]"
2538
+ },
2539
+ "privacy": "private"
2540
+ },
2541
+ {
2542
+ "kind": "field",
2543
+ "name": "search",
2544
+ "type": {
2545
+ "text": "string"
2546
+ },
2547
+ "privacy": "private",
2548
+ "default": "\"\""
2549
+ },
2550
+ {
2551
+ "kind": "field",
2552
+ "name": "bump",
2553
+ "type": {
2554
+ "text": "boolean"
2555
+ },
2556
+ "privacy": "private",
2557
+ "default": "true"
2558
+ },
2445
2559
  {
2446
2560
  "kind": "field",
2447
2561
  "name": "selectedIndex",
@@ -5100,6 +5214,18 @@
5100
5214
  "kind": "class",
5101
5215
  "description": "Divider components are used to separate and distinguish sections of\ncontent or groups of menu items. Visually, they look like\nhorizontal or vertical lines.",
5102
5216
  "name": "Divider",
5217
+ "cssProperties": [
5218
+ {
5219
+ "description": "Controls the color of the divider, using our [color tokens](/tokens/#color).",
5220
+ "name": "--n-divider-color",
5221
+ "default": "var(--n-color-border)"
5222
+ },
5223
+ {
5224
+ "description": "Controls the size, or thickness, of the divider.",
5225
+ "name": "--n-divider-size",
5226
+ "default": "1px"
5227
+ }
5228
+ ],
5103
5229
  "members": [
5104
5230
  {
5105
5231
  "kind": "field",
@@ -5168,6 +5294,13 @@
5168
5294
  "kind": "class",
5169
5295
  "description": "Dropdown menu displays a list of actions or selectable options for\na user. Dropdown uses popout component internally to create\nthe overlay functionality.",
5170
5296
  "name": "Dropdown",
5297
+ "cssProperties": [
5298
+ {
5299
+ "description": "Controls the inline size, or width, of the dropdown. Will resize up to 1.5 times to account for larger content.",
5300
+ "name": "--n-dropdown-size",
5301
+ "default": "250px"
5302
+ }
5303
+ ],
5171
5304
  "slots": [
5172
5305
  {
5173
5306
  "description": "The dropdown content.",
@@ -6008,6 +6141,33 @@
6008
6141
  "kind": "class",
6009
6142
  "description": "Inputs are used to allow users to provide text input when the expected input is short.\nAs well as plain text, Input supports various types of text, including passwords and numbers.",
6010
6143
  "name": "Input",
6144
+ "cssProperties": [
6145
+ {
6146
+ "description": "Controls the inline size, or width, of the input.",
6147
+ "name": "--n-input-inline-size",
6148
+ "default": "240px"
6149
+ },
6150
+ {
6151
+ "description": "Controls the background of the input, using our [color tokens](/tokens/#color).",
6152
+ "name": "--n-input-background",
6153
+ "default": "var(--n-color-active)"
6154
+ },
6155
+ {
6156
+ "description": "Controls the text color of the input, using our [color tokens](/tokens/#color).",
6157
+ "name": "--n-input-color",
6158
+ "default": "var(--n-color-text)"
6159
+ },
6160
+ {
6161
+ "description": "Controls the border color of the input, using our [color tokens](/tokens/#color).",
6162
+ "name": "--n-input-border-color",
6163
+ "default": "var(--n-color-border-strong)"
6164
+ },
6165
+ {
6166
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
6167
+ "name": "--n-input-border-radius",
6168
+ "default": "var(--n-border-radius-s)"
6169
+ }
6170
+ ],
6011
6171
  "slots": [
6012
6172
  {
6013
6173
  "description": "Use when a label requires more than plain text.",
@@ -6705,6 +6865,13 @@
6705
6865
  "kind": "class",
6706
6866
  "description": "Layout component is used to create the main layout of an app. Layout\ncurrently comes with one main configuration: two-column.",
6707
6867
  "name": "Layout",
6868
+ "cssProperties": [
6869
+ {
6870
+ "description": "Controls the padding around the main layout area (the main slot), using our [spacing tokens](/tokens/#space).",
6871
+ "name": "--n-layout-padding",
6872
+ "default": "var(--n-space-l)"
6873
+ }
6874
+ ],
6708
6875
  "slots": [
6709
6876
  {
6710
6877
  "description": "The default main section content.",
@@ -7295,6 +7462,23 @@
7295
7462
  "kind": "class",
7296
7463
  "description": "Modal component is used to display content that temporarily blocks interactions\nwith the main view of an application. Modal should be used sparingly and\nonly when necessary.",
7297
7464
  "name": "Modal",
7465
+ "cssProperties": [
7466
+ {
7467
+ "description": "Controls the padding on the sides of the modal, using our [spacing tokens](/tokens/#space).",
7468
+ "name": "--n-modal-padding-inline",
7469
+ "default": "var(--n-space-m)"
7470
+ },
7471
+ {
7472
+ "description": "Controls the padding above and below the modal, using our [spacing tokens](/tokens/#space).",
7473
+ "name": "--n-modal-padding-block",
7474
+ "default": "var(--n-space-m)"
7475
+ },
7476
+ {
7477
+ "description": "Controls the width of the modal.",
7478
+ "name": "--n-modal-max-inline-size",
7479
+ "default": "620px"
7480
+ }
7481
+ ],
7298
7482
  "slots": [
7299
7483
  {
7300
7484
  "description": "Default slot",
@@ -8223,6 +8407,23 @@
8223
8407
  "kind": "class",
8224
8408
  "description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
8225
8409
  "name": "ProgressBar",
8410
+ "cssProperties": [
8411
+ {
8412
+ "description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
8413
+ "name": "--n-progress-size",
8414
+ "default": "var(--n-space-s)"
8415
+ },
8416
+ {
8417
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
8418
+ "name": "--n-progress-border-radius",
8419
+ "default": "var(--n-border-radius-s)"
8420
+ },
8421
+ {
8422
+ "description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
8423
+ "name": "--n-progress-color",
8424
+ "default": "var(--n-color-accent)"
8425
+ }
8426
+ ],
8226
8427
  "members": [
8227
8428
  {
8228
8429
  "kind": "field",
@@ -9841,6 +10042,23 @@
9841
10042
  "kind": "class",
9842
10043
  "description": "Skeletons are used to provide a low fidelity representation of content\nbefore it appears in a view. This improves the perceived loading time\nfor our users.",
9843
10044
  "name": "Skeleton",
10045
+ "cssProperties": [
10046
+ {
10047
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
10048
+ "name": "--n-skeleton-border-radius",
10049
+ "default": "var(--n-border-radius)"
10050
+ },
10051
+ {
10052
+ "description": "Controls the main color of the skeleton, using our [color tokens](/tokens/#color).",
10053
+ "name": "--n-skeleton-color",
10054
+ "default": "var(--n-color-border)"
10055
+ },
10056
+ {
10057
+ "description": "Controls the sheen color of the skeleton, using our [color tokens](/tokens/#color).",
10058
+ "name": "--n-skeleton-sheen-color",
10059
+ "default": "var(--n-color-border-strong)"
10060
+ }
10061
+ ],
9844
10062
  "members": [
9845
10063
  {
9846
10064
  "kind": "field",
@@ -9851,20 +10069,6 @@
9851
10069
  "default": "\"none\"",
9852
10070
  "description": "Determines which animation effect the skeleton will use.",
9853
10071
  "attribute": "effect"
9854
- },
9855
- {
9856
- "kind": "field",
9857
- "name": "_warningLogged",
9858
- "type": {
9859
- "text": "boolean"
9860
- },
9861
- "privacy": "private",
9862
- "static": true,
9863
- "default": "false",
9864
- "inheritedFrom": {
9865
- "name": "DraftComponentMixin",
9866
- "module": "src/common/mixins/DraftComponentMixin.ts"
9867
- }
9868
10072
  }
9869
10073
  ],
9870
10074
  "attributes": [
@@ -9878,17 +10082,11 @@
9878
10082
  "fieldName": "effect"
9879
10083
  }
9880
10084
  ],
9881
- "mixins": [
9882
- {
9883
- "name": "DraftComponentMixin",
9884
- "module": "/src/common/mixins/DraftComponentMixin.js"
9885
- }
9886
- ],
9887
10085
  "superclass": {
9888
10086
  "name": "LitElement",
9889
10087
  "package": "lit"
9890
10088
  },
9891
- "status": "draft",
10089
+ "status": "new",
9892
10090
  "category": "feedback",
9893
10091
  "displayName": null,
9894
10092
  "tagName": "nord-skeleton",
@@ -10022,6 +10220,13 @@
10022
10220
  "kind": "class",
10023
10221
  "description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
10024
10222
  "name": "Stack",
10223
+ "cssProperties": [
10224
+ {
10225
+ "description": "Controls the spacing between items, using our [spacing tokens](/tokens/#space).",
10226
+ "name": "--n-stack-gap",
10227
+ "default": "var(--n-space-m)"
10228
+ }
10229
+ ],
10025
10230
  "slots": [
10026
10231
  {
10027
10232
  "description": "The stack content.",
@@ -10191,6 +10396,18 @@
10191
10396
  "kind": "class",
10192
10397
  "description": "The interactive tab button for use within the tab group component.",
10193
10398
  "name": "Tab",
10399
+ "cssProperties": [
10400
+ {
10401
+ "description": "Controls the text color of the tab, using our [color tokens](/tokens/#color).",
10402
+ "name": "--n-tab-color",
10403
+ "default": "var(--n-color-text-weak)"
10404
+ },
10405
+ {
10406
+ "description": "Controls the font weight of the tab, using our [font tokens](/tokens/#font).",
10407
+ "name": "--n-tab-font-weight",
10408
+ "default": "var(--n-font-weight)"
10409
+ }
10410
+ ],
10194
10411
  "slots": [
10195
10412
  {
10196
10413
  "description": "The tab button content.",
@@ -10272,6 +10489,13 @@
10272
10489
  "kind": "class",
10273
10490
  "description": "Tab Group allows multiple panels to be contained within a single window,\nusing tabs as a navigational element.",
10274
10491
  "name": "TabGroup",
10492
+ "cssProperties": [
10493
+ {
10494
+ "description": "Controls the padding around the tab group (including the tab list), using our [spacing tokens](/tokens/#space).",
10495
+ "name": "--n-tab-group-padding",
10496
+ "default": "0"
10497
+ }
10498
+ ],
10275
10499
  "slots": [
10276
10500
  {
10277
10501
  "description": "The element which contains the content to be revealed.",
@@ -10552,6 +10776,18 @@
10552
10776
  "kind": "class",
10553
10777
  "description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
10554
10778
  "name": "Table",
10779
+ "cssProperties": [
10780
+ {
10781
+ "description": "Controls the padding around the table cells.",
10782
+ "name": "--n-table-td-padding",
10783
+ "default": "calc(var(--n-space-m) * 0.95)"
10784
+ },
10785
+ {
10786
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
10787
+ "name": "--n-table-border-radius",
10788
+ "default": "var(--n-border-radius-s)"
10789
+ }
10790
+ ],
10555
10791
  "slots": [
10556
10792
  {
10557
10793
  "description": "Default slot which holds the HTML `<table>` element.",
@@ -10673,6 +10909,38 @@
10673
10909
  "kind": "class",
10674
10910
  "description": "Textarea is a component that allows user to write text over\nmultiple rows. Used when the expected user input is long.\nFor shorter input, use the Input component.",
10675
10911
  "name": "Textarea",
10912
+ "cssProperties": [
10913
+ {
10914
+ "description": "Controls the inline size, or width, of the textarea.",
10915
+ "name": "--n-textarea-inline-size",
10916
+ "default": "240px"
10917
+ },
10918
+ {
10919
+ "description": "Controls the block size, or height, or the textarea.",
10920
+ "name": "--n-textarea-block-size",
10921
+ "default": "76px"
10922
+ },
10923
+ {
10924
+ "description": "Controls the background of the textarea, using our [color tokens](/tokens/#color).",
10925
+ "name": "--n-textarea-background",
10926
+ "default": "var(--n-color-active)"
10927
+ },
10928
+ {
10929
+ "description": "Controls the text color of the textarea, using our [color tokens](/tokens/#color).",
10930
+ "name": "--n-textarea-color",
10931
+ "default": "var(--n-color-text)"
10932
+ },
10933
+ {
10934
+ "description": "Controls the border color of the textarea, using our [color tokens](/tokens/#color).",
10935
+ "name": "--n-textarea-border-color",
10936
+ "default": "var(--n-color-border-strong)"
10937
+ },
10938
+ {
10939
+ "description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
10940
+ "name": "--n-textarea-border-radius",
10941
+ "default": "var(--n-border-radius-s)"
10942
+ }
10943
+ ],
10676
10944
  "slots": [
10677
10945
  {
10678
10946
  "description": "Use when a label requires more than plain text.",
@@ -11411,23 +11679,9 @@
11411
11679
  "kind": "method",
11412
11680
  "name": "handleAutoDismissChange",
11413
11681
  "privacy": "protected"
11414
- },
11415
- {
11416
- "kind": "field",
11417
- "name": "_warningLogged",
11418
- "type": {
11419
- "text": "boolean"
11420
- },
11421
- "privacy": "private",
11422
- "static": true,
11423
- "default": "false",
11424
- "inheritedFrom": {
11425
- "name": "DraftComponentMixin",
11426
- "module": "src/common/mixins/DraftComponentMixin.ts"
11427
- }
11428
- }
11429
- ],
11430
- "events": [
11682
+ }
11683
+ ],
11684
+ "events": [
11431
11685
  {
11432
11686
  "name": "dismiss",
11433
11687
  "type": {
@@ -11456,17 +11710,11 @@
11456
11710
  "fieldName": "autoDismiss"
11457
11711
  }
11458
11712
  ],
11459
- "mixins": [
11460
- {
11461
- "name": "DraftComponentMixin",
11462
- "module": "/src/common/mixins/DraftComponentMixin.js"
11463
- }
11464
- ],
11465
11713
  "superclass": {
11466
11714
  "name": "LitElement",
11467
11715
  "package": "lit"
11468
11716
  },
11469
- "status": "draft",
11717
+ "status": "new",
11470
11718
  "category": "feedback",
11471
11719
  "displayName": null,
11472
11720
  "tagName": "nord-toast",
@@ -11534,33 +11782,13 @@
11534
11782
  "text": ""
11535
11783
  }
11536
11784
  }
11537
- },
11538
- {
11539
- "kind": "field",
11540
- "name": "_warningLogged",
11541
- "type": {
11542
- "text": "boolean"
11543
- },
11544
- "privacy": "private",
11545
- "static": true,
11546
- "default": "false",
11547
- "inheritedFrom": {
11548
- "name": "DraftComponentMixin",
11549
- "module": "src/common/mixins/DraftComponentMixin.ts"
11550
- }
11551
- }
11552
- ],
11553
- "mixins": [
11554
- {
11555
- "name": "DraftComponentMixin",
11556
- "module": "/src/common/mixins/DraftComponentMixin.js"
11557
11785
  }
11558
11786
  ],
11559
11787
  "superclass": {
11560
11788
  "name": "LitElement",
11561
11789
  "package": "lit"
11562
11790
  },
11563
- "status": "draft",
11791
+ "status": "new",
11564
11792
  "category": "feedback",
11565
11793
  "displayName": null,
11566
11794
  "tagName": "nord-toast-group",
@@ -13569,210 +13797,215 @@
13569
13797
  },
13570
13798
  {
13571
13799
  "kind": "javascript-module",
13572
- "path": "src/common/directives/cond.ts",
13800
+ "path": "src/common/mixins/AutocompleteMixin.ts",
13573
13801
  "declarations": [
13574
13802
  {
13575
- "kind": "function",
13576
- "name": "cond",
13577
- "return": {
13578
- "type": {
13579
- "text": "typeof value | typeof nothing"
13580
- }
13581
- },
13582
- "parameters": [
13803
+ "kind": "class",
13804
+ "description": "",
13805
+ "name": "AutocompleteMixinInterface",
13806
+ "members": [
13583
13807
  {
13584
- "name": "value",
13808
+ "kind": "field",
13809
+ "name": "autocomplete",
13585
13810
  "type": {
13586
- "text": "any"
13811
+ "text": "AutocompleteAttribute"
13587
13812
  }
13588
13813
  }
13589
- ],
13590
- "description": "if value is truthy, return it, otherwise return nothing"
13814
+ ]
13591
13815
  },
13592
13816
  {
13593
- "kind": "function",
13594
- "name": "cond",
13595
- "return": {
13596
- "type": {
13597
- "text": "typeof trueCase | typeof nothing"
13598
- }
13599
- },
13600
- "parameters": [
13817
+ "kind": "mixin",
13818
+ "description": "",
13819
+ "name": "AutocompleteMixin",
13820
+ "members": [
13601
13821
  {
13602
- "name": "condition",
13822
+ "kind": "field",
13823
+ "name": "autocomplete",
13603
13824
  "type": {
13604
- "text": "unknown"
13605
- }
13606
- },
13825
+ "text": "AutocompleteAttribute"
13826
+ },
13827
+ "default": "\"off\"",
13828
+ "description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
13829
+ "attribute": "autocomplete"
13830
+ }
13831
+ ],
13832
+ "attributes": [
13607
13833
  {
13608
- "name": "trueCase",
13834
+ "name": "autocomplete",
13609
13835
  "type": {
13610
- "text": "any"
13611
- }
13836
+ "text": "AutocompleteAttribute"
13837
+ },
13838
+ "default": "\"off\"",
13839
+ "description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
13840
+ "fieldName": "autocomplete"
13612
13841
  }
13613
13842
  ],
13614
- "description": "if condition is truthy, return trueCase, otherwise return nothing"
13615
- },
13616
- {
13617
- "kind": "function",
13618
- "name": "cond",
13619
- "return": {
13620
- "type": {
13621
- "text": "typeof trueCase"
13622
- }
13623
- },
13624
13843
  "parameters": [
13625
13844
  {
13626
- "name": "condition",
13627
- "type": {
13628
- "text": "true"
13629
- }
13630
- },
13631
- {
13632
- "name": "trueCase",
13845
+ "name": "superClass",
13633
13846
  "type": {
13634
- "text": "any"
13847
+ "text": "T"
13635
13848
  }
13636
13849
  }
13637
- ],
13638
- "description": "condition is true, so always return trueCase"
13850
+ ]
13851
+ }
13852
+ ],
13853
+ "exports": [
13854
+ {
13855
+ "kind": "js",
13856
+ "name": "AutocompleteMixinInterface",
13857
+ "declaration": {
13858
+ "name": "AutocompleteMixinInterface",
13859
+ "module": "src/common/mixins/AutocompleteMixin.ts"
13860
+ }
13639
13861
  },
13640
13862
  {
13641
- "kind": "function",
13642
- "name": "cond",
13643
- "return": {
13644
- "type": {
13645
- "text": "typeof nothing"
13646
- }
13647
- },
13648
- "parameters": [
13863
+ "kind": "js",
13864
+ "name": "AutocompleteMixin",
13865
+ "declaration": {
13866
+ "name": "AutocompleteMixin",
13867
+ "module": "src/common/mixins/AutocompleteMixin.ts"
13868
+ }
13869
+ }
13870
+ ]
13871
+ },
13872
+ {
13873
+ "kind": "javascript-module",
13874
+ "path": "src/common/mixins/DraftComponentMixin.ts",
13875
+ "declarations": [
13876
+ {
13877
+ "kind": "mixin",
13878
+ "description": "",
13879
+ "name": "DraftComponentMixin",
13880
+ "members": [
13649
13881
  {
13650
- "name": "condition",
13882
+ "kind": "field",
13883
+ "name": "_warningLogged",
13651
13884
  "type": {
13652
- "text": "false"
13653
- }
13654
- },
13885
+ "text": "boolean"
13886
+ },
13887
+ "privacy": "private",
13888
+ "static": true,
13889
+ "default": "false"
13890
+ }
13891
+ ],
13892
+ "parameters": [
13655
13893
  {
13656
- "name": "trueCase",
13894
+ "name": "superClass",
13657
13895
  "type": {
13658
- "text": "any"
13896
+ "text": "T"
13659
13897
  }
13660
13898
  }
13661
- ],
13662
- "description": "condition is false, to will always return nothing"
13663
- },
13899
+ ]
13900
+ }
13901
+ ],
13902
+ "exports": [
13664
13903
  {
13665
- "kind": "function",
13666
- "name": "cond",
13667
- "return": {
13668
- "type": {
13669
- "text": "typeof trueCase | typeof falseCase"
13670
- }
13671
- },
13672
- "parameters": [
13904
+ "kind": "js",
13905
+ "name": "DraftComponentMixin",
13906
+ "declaration": {
13907
+ "name": "DraftComponentMixin",
13908
+ "module": "src/common/mixins/DraftComponentMixin.ts"
13909
+ }
13910
+ }
13911
+ ]
13912
+ },
13913
+ {
13914
+ "kind": "javascript-module",
13915
+ "path": "src/common/mixins/FocusableMixin.ts",
13916
+ "declarations": [
13917
+ {
13918
+ "kind": "class",
13919
+ "description": "",
13920
+ "name": "FocusableMixinInterface",
13921
+ "members": [
13673
13922
  {
13674
- "name": "condition",
13923
+ "kind": "field",
13924
+ "name": "focusableRef",
13675
13925
  "type": {
13676
- "text": "unknown"
13677
- }
13926
+ "text": "Ref<HTMLElement>"
13927
+ },
13928
+ "privacy": "protected"
13678
13929
  },
13679
13930
  {
13680
- "name": "trueCase",
13681
- "type": {
13682
- "text": "any"
13931
+ "kind": "method",
13932
+ "name": "focus",
13933
+ "return": {
13934
+ "type": {
13935
+ "text": "void"
13936
+ }
13937
+ },
13938
+ "parameters": [
13939
+ {
13940
+ "name": "options",
13941
+ "optional": true,
13942
+ "type": {
13943
+ "text": "FocusOptions"
13944
+ }
13945
+ }
13946
+ ]
13947
+ },
13948
+ {
13949
+ "kind": "method",
13950
+ "name": "blur",
13951
+ "return": {
13952
+ "type": {
13953
+ "text": "void"
13954
+ }
13683
13955
  }
13684
13956
  },
13685
13957
  {
13686
- "name": "falseCase",
13687
- "type": {
13688
- "text": "any"
13958
+ "kind": "method",
13959
+ "name": "click",
13960
+ "return": {
13961
+ "type": {
13962
+ "text": "void"
13963
+ }
13689
13964
  }
13690
13965
  }
13691
- ],
13692
- "description": "if condition is truthy, return trueCase, otherwise return falseCase"
13966
+ ]
13693
13967
  },
13694
13968
  {
13695
- "kind": "function",
13696
- "name": "cond",
13697
- "return": {
13698
- "type": {
13699
- "text": "typeof trueCase"
13700
- }
13701
- },
13702
- "parameters": [
13703
- {
13704
- "name": "condition",
13705
- "type": {
13706
- "text": "true"
13707
- }
13708
- },
13969
+ "kind": "mixin",
13970
+ "description": "",
13971
+ "name": "FocusableMixin",
13972
+ "members": [
13709
13973
  {
13710
- "name": "trueCase",
13711
- "type": {
13712
- "text": "any"
13713
- }
13974
+ "kind": "field",
13975
+ "name": "focusableRef",
13976
+ "privacy": "protected"
13714
13977
  },
13715
13978
  {
13716
- "name": "falseCase",
13717
- "type": {
13718
- "text": "any"
13719
- }
13720
- }
13721
- ],
13722
- "description": "condition is true, so always return trueCase"
13723
- },
13724
- {
13725
- "kind": "function",
13726
- "name": "cond",
13727
- "return": {
13728
- "type": {
13729
- "text": "typeof falseCase"
13730
- }
13731
- },
13732
- "parameters": [
13733
- {
13734
- "name": "condition",
13735
- "type": {
13736
- "text": "false"
13737
- }
13979
+ "kind": "method",
13980
+ "name": "focus",
13981
+ "parameters": [
13982
+ {
13983
+ "name": "options",
13984
+ "optional": true,
13985
+ "type": {
13986
+ "text": "FocusOptions"
13987
+ },
13988
+ "description": "An object which controls aspects of the focusing process."
13989
+ }
13990
+ ],
13991
+ "description": "Programmatically move focus to the component."
13738
13992
  },
13739
13993
  {
13740
- "name": "trueCase",
13741
- "type": {
13742
- "text": "any"
13743
- }
13994
+ "kind": "method",
13995
+ "name": "blur",
13996
+ "description": "Programmatically remove focus from the component."
13744
13997
  },
13745
13998
  {
13746
- "name": "falseCase",
13747
- "type": {
13748
- "text": "any"
13749
- }
13999
+ "kind": "method",
14000
+ "name": "click",
14001
+ "description": "Programmatically simulates a click on the component."
13750
14002
  }
13751
14003
  ],
13752
- "description": "condition is false, so always return falseCase"
13753
- },
13754
- {
13755
- "kind": "function",
13756
- "name": "cond",
13757
14004
  "parameters": [
13758
14005
  {
13759
- "name": "condition",
13760
- "type": {
13761
- "text": "unknown"
13762
- }
13763
- },
13764
- {
13765
- "name": "trueCase",
13766
- "default": "condition",
13767
- "type": {
13768
- "text": "any"
13769
- }
13770
- },
13771
- {
13772
- "name": "falseCase",
13773
- "default": "nothing",
14006
+ "name": "superClass",
13774
14007
  "type": {
13775
- "text": "any"
14008
+ "text": "T"
13776
14009
  }
13777
14010
  }
13778
14011
  ]
@@ -13781,361 +14014,164 @@
13781
14014
  "exports": [
13782
14015
  {
13783
14016
  "kind": "js",
13784
- "name": "cond",
13785
- "declaration": {
13786
- "name": "cond",
13787
- "module": "src/common/directives/cond.ts"
13788
- }
13789
- },
13790
- {
13791
- "kind": "js",
13792
- "name": "cond",
13793
- "declaration": {
13794
- "name": "cond",
13795
- "module": "src/common/directives/cond.ts"
13796
- }
13797
- },
13798
- {
13799
- "kind": "js",
13800
- "name": "cond",
13801
- "declaration": {
13802
- "name": "cond",
13803
- "module": "src/common/directives/cond.ts"
13804
- }
13805
- },
13806
- {
13807
- "kind": "js",
13808
- "name": "cond",
13809
- "declaration": {
13810
- "name": "cond",
13811
- "module": "src/common/directives/cond.ts"
13812
- }
13813
- },
13814
- {
13815
- "kind": "js",
13816
- "name": "cond",
13817
- "declaration": {
13818
- "name": "cond",
13819
- "module": "src/common/directives/cond.ts"
13820
- }
13821
- },
13822
- {
13823
- "kind": "js",
13824
- "name": "cond",
13825
- "declaration": {
13826
- "name": "cond",
13827
- "module": "src/common/directives/cond.ts"
13828
- }
13829
- },
13830
- {
13831
- "kind": "js",
13832
- "name": "cond",
14017
+ "name": "FocusableMixinInterface",
13833
14018
  "declaration": {
13834
- "name": "cond",
13835
- "module": "src/common/directives/cond.ts"
14019
+ "name": "FocusableMixinInterface",
14020
+ "module": "src/common/mixins/FocusableMixin.ts"
13836
14021
  }
13837
14022
  },
13838
14023
  {
13839
14024
  "kind": "js",
13840
- "name": "cond",
14025
+ "name": "FocusableMixin",
13841
14026
  "declaration": {
13842
- "name": "cond",
13843
- "module": "src/common/directives/cond.ts"
14027
+ "name": "FocusableMixin",
14028
+ "module": "src/common/mixins/FocusableMixin.ts"
13844
14029
  }
13845
14030
  }
13846
14031
  ]
13847
14032
  },
13848
14033
  {
13849
14034
  "kind": "javascript-module",
13850
- "path": "src/common/directives/wrapIf.ts",
14035
+ "path": "src/common/mixins/FormAssociatedMixin.ts",
13851
14036
  "declarations": [
13852
14037
  {
13853
- "kind": "function",
13854
- "name": "wrapIf",
13855
- "return": {
13856
- "type": {
13857
- "text": "TInner"
13858
- }
13859
- },
13860
- "parameters": [
14038
+ "kind": "class",
14039
+ "description": "",
14040
+ "name": "FormAssociatedMixinInterface",
14041
+ "members": [
13861
14042
  {
13862
- "name": "condition",
14043
+ "kind": "field",
14044
+ "name": "label",
13863
14045
  "type": {
13864
- "text": "false"
14046
+ "text": "string"
13865
14047
  }
13866
14048
  },
13867
14049
  {
13868
- "name": "inner",
14050
+ "kind": "field",
14051
+ "name": "required",
13869
14052
  "type": {
13870
- "text": "() => TInner"
14053
+ "text": "boolean"
13871
14054
  }
13872
14055
  },
13873
14056
  {
13874
- "name": "wrapper",
13875
- "type": {
13876
- "text": "(inner: TInner) => TWrapper"
13877
- }
13878
- }
13879
- ]
13880
- },
13881
- {
13882
- "kind": "function",
13883
- "name": "wrapIf",
13884
- "return": {
13885
- "type": {
13886
- "text": "TWrapper"
13887
- }
13888
- },
13889
- "parameters": [
13890
- {
13891
- "name": "condition",
14057
+ "kind": "field",
14058
+ "name": "hint",
13892
14059
  "type": {
13893
- "text": "true"
14060
+ "text": "string | undefined"
13894
14061
  }
13895
14062
  },
13896
14063
  {
13897
- "name": "inner",
14064
+ "kind": "field",
14065
+ "name": "hideLabel",
13898
14066
  "type": {
13899
- "text": "() => TInner"
14067
+ "text": "boolean"
13900
14068
  }
13901
14069
  },
13902
14070
  {
13903
- "name": "wrapper",
14071
+ "kind": "field",
14072
+ "name": "placeholder",
13904
14073
  "type": {
13905
- "text": "(inner: TInner) => TWrapper"
14074
+ "text": "string | undefined"
13906
14075
  }
13907
- }
13908
- ]
13909
- },
13910
- {
13911
- "kind": "function",
13912
- "name": "wrapIf",
13913
- "return": {
13914
- "type": {
13915
- "text": "TInner | TWrapper"
13916
- }
13917
- },
13918
- "parameters": [
14076
+ },
13919
14077
  {
13920
- "name": "condition",
14078
+ "kind": "field",
14079
+ "name": "error",
13921
14080
  "type": {
13922
- "text": "unknown"
14081
+ "text": "string | undefined"
13923
14082
  }
13924
14083
  },
13925
14084
  {
13926
- "name": "inner",
14085
+ "kind": "field",
14086
+ "name": "expand",
13927
14087
  "type": {
13928
- "text": "() => TInner"
14088
+ "text": "boolean"
13929
14089
  }
13930
14090
  },
13931
14091
  {
13932
- "name": "wrapper",
14092
+ "kind": "field",
14093
+ "name": "inputId",
13933
14094
  "type": {
13934
- "text": "(inner: TInner) => TWrapper"
13935
- }
13936
- }
13937
- ]
13938
- },
13939
- {
13940
- "kind": "function",
13941
- "name": "wrapIf",
13942
- "parameters": [
14095
+ "text": "string"
14096
+ },
14097
+ "privacy": "protected"
14098
+ },
13943
14099
  {
13944
- "name": "condition",
14100
+ "kind": "field",
14101
+ "name": "errorId",
13945
14102
  "type": {
13946
- "text": "any"
13947
- }
14103
+ "text": "string"
14104
+ },
14105
+ "privacy": "protected"
13948
14106
  },
13949
14107
  {
13950
- "name": "inner",
14108
+ "kind": "field",
14109
+ "name": "hintId",
13951
14110
  "type": {
13952
- "text": "() => TInner"
13953
- }
14111
+ "text": "string"
14112
+ },
14113
+ "privacy": "protected"
13954
14114
  },
13955
14115
  {
13956
- "name": "wrapper",
14116
+ "kind": "field",
14117
+ "name": "labelSlot",
13957
14118
  "type": {
13958
- "text": "(innards: TInner) => TWrapper"
13959
- }
13960
- }
13961
- ],
13962
- "return": {
13963
- "type": {
13964
- "text": ""
13965
- }
13966
- }
13967
- }
13968
- ],
13969
- "exports": [
13970
- {
13971
- "kind": "js",
13972
- "name": "wrapIf",
13973
- "declaration": {
13974
- "name": "wrapIf",
13975
- "module": "src/common/directives/wrapIf.ts"
13976
- }
13977
- },
13978
- {
13979
- "kind": "js",
13980
- "name": "wrapIf",
13981
- "declaration": {
13982
- "name": "wrapIf",
13983
- "module": "src/common/directives/wrapIf.ts"
13984
- }
13985
- },
13986
- {
13987
- "kind": "js",
13988
- "name": "wrapIf",
13989
- "declaration": {
13990
- "name": "wrapIf",
13991
- "module": "src/common/directives/wrapIf.ts"
13992
- }
13993
- },
13994
- {
13995
- "kind": "js",
13996
- "name": "wrapIf",
13997
- "declaration": {
13998
- "name": "wrapIf",
13999
- "module": "src/common/directives/wrapIf.ts"
14000
- }
14001
- }
14002
- ]
14003
- },
14004
- {
14005
- "kind": "javascript-module",
14006
- "path": "src/common/mixins/AutocompleteMixin.ts",
14007
- "declarations": [
14008
- {
14009
- "kind": "class",
14010
- "description": "",
14011
- "name": "AutocompleteMixinInterface",
14012
- "members": [
14119
+ "text": "SlotController"
14120
+ },
14121
+ "privacy": "protected"
14122
+ },
14013
14123
  {
14014
14124
  "kind": "field",
14015
- "name": "autocomplete",
14125
+ "name": "hintSlot",
14016
14126
  "type": {
14017
- "text": "AutocompleteAttribute"
14018
- }
14019
- }
14020
- ]
14021
- },
14022
- {
14023
- "kind": "mixin",
14024
- "description": "",
14025
- "name": "AutocompleteMixin",
14026
- "members": [
14127
+ "text": "SlotController"
14128
+ },
14129
+ "privacy": "protected"
14130
+ },
14027
14131
  {
14028
14132
  "kind": "field",
14029
- "name": "autocomplete",
14133
+ "name": "errorSlot",
14030
14134
  "type": {
14031
- "text": "AutocompleteAttribute"
14135
+ "text": "SlotController"
14032
14136
  },
14033
- "default": "\"off\"",
14034
- "description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
14035
- "attribute": "autocomplete"
14036
- }
14037
- ],
14038
- "attributes": [
14137
+ "privacy": "protected"
14138
+ },
14039
14139
  {
14040
- "name": "autocomplete",
14140
+ "kind": "field",
14141
+ "name": "formData",
14041
14142
  "type": {
14042
- "text": "AutocompleteAttribute"
14143
+ "text": "FormDataController"
14043
14144
  },
14044
- "default": "\"off\"",
14045
- "description": "Specifies the data type of the field, so that the browser may attempt to fill out the field automatically on behalf of the user.",
14046
- "fieldName": "autocomplete"
14047
- }
14048
- ],
14049
- "parameters": [
14145
+ "privacy": "protected"
14146
+ },
14050
14147
  {
14051
- "name": "superClass",
14148
+ "kind": "field",
14149
+ "name": "formValue",
14052
14150
  "type": {
14053
- "text": "T"
14054
- }
14055
- }
14056
- ]
14057
- }
14058
- ],
14059
- "exports": [
14060
- {
14061
- "kind": "js",
14062
- "name": "AutocompleteMixinInterface",
14063
- "declaration": {
14064
- "name": "AutocompleteMixinInterface",
14065
- "module": "src/common/mixins/AutocompleteMixin.ts"
14066
- }
14067
- },
14068
- {
14069
- "kind": "js",
14070
- "name": "AutocompleteMixin",
14071
- "declaration": {
14072
- "name": "AutocompleteMixin",
14073
- "module": "src/common/mixins/AutocompleteMixin.ts"
14074
- }
14075
- }
14076
- ]
14077
- },
14078
- {
14079
- "kind": "javascript-module",
14080
- "path": "src/common/mixins/DraftComponentMixin.ts",
14081
- "declarations": [
14082
- {
14083
- "kind": "mixin",
14084
- "description": "",
14085
- "name": "DraftComponentMixin",
14086
- "members": [
14151
+ "text": "string | undefined"
14152
+ },
14153
+ "privacy": "protected"
14154
+ },
14087
14155
  {
14088
14156
  "kind": "field",
14089
- "name": "_warningLogged",
14157
+ "name": "hasError",
14090
14158
  "type": {
14091
14159
  "text": "boolean"
14092
14160
  },
14093
- "privacy": "private",
14094
- "static": true,
14095
- "default": "false"
14096
- }
14097
- ],
14098
- "parameters": [
14099
- {
14100
- "name": "superClass",
14101
- "type": {
14102
- "text": "T"
14103
- }
14104
- }
14105
- ]
14106
- }
14107
- ],
14108
- "exports": [
14109
- {
14110
- "kind": "js",
14111
- "name": "DraftComponentMixin",
14112
- "declaration": {
14113
- "name": "DraftComponentMixin",
14114
- "module": "src/common/mixins/DraftComponentMixin.ts"
14115
- }
14116
- }
14117
- ]
14118
- },
14119
- {
14120
- "kind": "javascript-module",
14121
- "path": "src/common/mixins/FocusableMixin.ts",
14122
- "declarations": [
14123
- {
14124
- "kind": "class",
14125
- "description": "",
14126
- "name": "FocusableMixinInterface",
14127
- "members": [
14161
+ "privacy": "protected"
14162
+ },
14128
14163
  {
14129
14164
  "kind": "field",
14130
- "name": "focusableRef",
14165
+ "name": "hasHint",
14131
14166
  "type": {
14132
- "text": "Ref<HTMLElement>"
14167
+ "text": "boolean"
14133
14168
  },
14134
14169
  "privacy": "protected"
14135
14170
  },
14136
14171
  {
14137
14172
  "kind": "method",
14138
- "name": "focus",
14173
+ "name": "handleChange",
14174
+ "privacy": "protected",
14139
14175
  "return": {
14140
14176
  "type": {
14141
14177
  "text": "void"
@@ -14143,29 +14179,68 @@
14143
14179
  },
14144
14180
  "parameters": [
14145
14181
  {
14146
- "name": "options",
14147
- "optional": true,
14182
+ "name": "e",
14148
14183
  "type": {
14149
- "text": "FocusOptions"
14184
+ "text": "Event"
14150
14185
  }
14151
14186
  }
14152
14187
  ]
14153
14188
  },
14154
14189
  {
14155
14190
  "kind": "method",
14156
- "name": "blur",
14191
+ "name": "handleInput",
14192
+ "privacy": "protected",
14157
14193
  "return": {
14158
14194
  "type": {
14159
14195
  "text": "void"
14160
14196
  }
14197
+ },
14198
+ "parameters": [
14199
+ {
14200
+ "name": "e",
14201
+ "type": {
14202
+ "text": "Event"
14203
+ }
14204
+ }
14205
+ ]
14206
+ },
14207
+ {
14208
+ "kind": "method",
14209
+ "name": "renderLabel",
14210
+ "privacy": "protected",
14211
+ "return": {
14212
+ "type": {
14213
+ "text": "TemplateResult"
14214
+ }
14161
14215
  }
14162
14216
  },
14163
14217
  {
14164
14218
  "kind": "method",
14165
- "name": "click",
14219
+ "name": "renderError",
14220
+ "privacy": "protected",
14166
14221
  "return": {
14167
14222
  "type": {
14168
- "text": "void"
14223
+ "text": "TemplateResult"
14224
+ }
14225
+ }
14226
+ },
14227
+ {
14228
+ "kind": "method",
14229
+ "name": "getDescribedBy",
14230
+ "privacy": "protected",
14231
+ "return": {
14232
+ "type": {
14233
+ "text": "string | undefined"
14234
+ }
14235
+ }
14236
+ },
14237
+ {
14238
+ "kind": "method",
14239
+ "name": "getInvalid",
14240
+ "privacy": "protected",
14241
+ "return": {
14242
+ "type": {
14243
+ "text": "\"true\" | undefined"
14169
14244
  }
14170
14245
  }
14171
14246
  }
@@ -14174,125 +14249,36 @@
14174
14249
  {
14175
14250
  "kind": "mixin",
14176
14251
  "description": "",
14177
- "name": "FocusableMixin",
14252
+ "name": "FormAssociatedMixin",
14178
14253
  "members": [
14179
14254
  {
14180
14255
  "kind": "field",
14181
- "name": "focusableRef",
14182
- "privacy": "protected"
14183
- },
14184
- {
14185
- "kind": "method",
14186
- "name": "focus",
14187
- "parameters": [
14188
- {
14189
- "name": "options",
14190
- "optional": true,
14191
- "type": {
14192
- "text": "FocusOptions"
14193
- },
14194
- "description": "An object which controls aspects of the focusing process."
14195
- }
14196
- ],
14197
- "description": "Programmatically move focus to the component."
14198
- },
14199
- {
14200
- "kind": "method",
14201
- "name": "blur",
14202
- "description": "Programmatically remove focus from the component."
14203
- },
14204
- {
14205
- "kind": "method",
14206
- "name": "click",
14207
- "description": "Programmatically simulates a click on the component."
14208
- }
14209
- ],
14210
- "parameters": [
14211
- {
14212
- "name": "superClass",
14213
- "type": {
14214
- "text": "T"
14215
- }
14216
- }
14217
- ]
14218
- }
14219
- ],
14220
- "exports": [
14221
- {
14222
- "kind": "js",
14223
- "name": "FocusableMixinInterface",
14224
- "declaration": {
14225
- "name": "FocusableMixinInterface",
14226
- "module": "src/common/mixins/FocusableMixin.ts"
14227
- }
14228
- },
14229
- {
14230
- "kind": "js",
14231
- "name": "FocusableMixin",
14232
- "declaration": {
14233
- "name": "FocusableMixin",
14234
- "module": "src/common/mixins/FocusableMixin.ts"
14235
- }
14236
- }
14237
- ]
14238
- },
14239
- {
14240
- "kind": "javascript-module",
14241
- "path": "src/common/mixins/FormAssociatedMixin.ts",
14242
- "declarations": [
14243
- {
14244
- "kind": "class",
14245
- "description": "",
14246
- "name": "FormAssociatedMixinInterface",
14247
- "members": [
14248
- {
14249
- "kind": "field",
14250
- "name": "label",
14251
- "type": {
14252
- "text": "string"
14253
- }
14254
- },
14255
- {
14256
- "kind": "field",
14257
- "name": "required",
14258
- "type": {
14259
- "text": "boolean"
14260
- }
14261
- },
14262
- {
14263
- "kind": "field",
14264
- "name": "hint",
14265
- "type": {
14266
- "text": "string | undefined"
14267
- }
14256
+ "name": "labelSlot",
14257
+ "privacy": "protected",
14258
+ "default": "new SlotController(this, \"label\")"
14268
14259
  },
14269
14260
  {
14270
14261
  "kind": "field",
14271
- "name": "hideLabel",
14272
- "type": {
14273
- "text": "boolean"
14274
- }
14262
+ "name": "errorSlot",
14263
+ "privacy": "protected",
14264
+ "default": "new SlotController(this, \"error\")"
14275
14265
  },
14276
14266
  {
14277
14267
  "kind": "field",
14278
- "name": "placeholder",
14279
- "type": {
14280
- "text": "string | undefined"
14281
- }
14268
+ "name": "hintSlot",
14269
+ "privacy": "protected",
14270
+ "default": "new SlotController(this, \"hint\")"
14282
14271
  },
14283
14272
  {
14284
14273
  "kind": "field",
14285
- "name": "error",
14286
- "type": {
14287
- "text": "string | undefined"
14288
- }
14274
+ "name": "formData",
14275
+ "privacy": "protected",
14276
+ "default": "new FormDataController(this, { value: () => this.formValue })"
14289
14277
  },
14290
14278
  {
14291
14279
  "kind": "field",
14292
- "name": "expand",
14293
- "type": {
14294
- "text": "boolean"
14295
- }
14280
+ "name": "formValue",
14281
+ "privacy": "protected"
14296
14282
  },
14297
14283
  {
14298
14284
  "kind": "field",
@@ -14300,7 +14286,8 @@
14300
14286
  "type": {
14301
14287
  "text": "string"
14302
14288
  },
14303
- "privacy": "protected"
14289
+ "privacy": "protected",
14290
+ "default": "\"input\""
14304
14291
  },
14305
14292
  {
14306
14293
  "kind": "field",
@@ -14308,7 +14295,8 @@
14308
14295
  "type": {
14309
14296
  "text": "string"
14310
14297
  },
14311
- "privacy": "protected"
14298
+ "privacy": "protected",
14299
+ "default": "\"error\""
14312
14300
  },
14313
14301
  {
14314
14302
  "kind": "field",
@@ -14316,73 +14304,70 @@
14316
14304
  "type": {
14317
14305
  "text": "string"
14318
14306
  },
14319
- "privacy": "protected"
14320
- },
14321
- {
14322
- "kind": "field",
14323
- "name": "labelSlot",
14324
- "type": {
14325
- "text": "SlotController"
14326
- },
14327
- "privacy": "protected"
14307
+ "privacy": "protected",
14308
+ "default": "\"hint\""
14328
14309
  },
14329
14310
  {
14330
14311
  "kind": "field",
14331
- "name": "hintSlot",
14312
+ "name": "label",
14332
14313
  "type": {
14333
- "text": "SlotController"
14314
+ "text": "string"
14334
14315
  },
14335
- "privacy": "protected"
14316
+ "default": "\"\"",
14317
+ "description": "Label for the input.",
14318
+ "attribute": "label"
14336
14319
  },
14337
14320
  {
14338
14321
  "kind": "field",
14339
- "name": "errorSlot",
14322
+ "name": "hint",
14340
14323
  "type": {
14341
- "text": "SlotController"
14324
+ "text": "string | undefined"
14342
14325
  },
14343
- "privacy": "protected"
14326
+ "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
14327
+ "attribute": "hint"
14344
14328
  },
14345
14329
  {
14346
14330
  "kind": "field",
14347
- "name": "formData",
14331
+ "name": "hideLabel",
14348
14332
  "type": {
14349
- "text": "FormDataController"
14333
+ "text": "boolean"
14350
14334
  },
14351
- "privacy": "protected"
14335
+ "default": "false",
14336
+ "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
14337
+ "attribute": "hide-label"
14352
14338
  },
14353
14339
  {
14354
14340
  "kind": "field",
14355
- "name": "formValue",
14341
+ "name": "placeholder",
14356
14342
  "type": {
14357
14343
  "text": "string | undefined"
14358
14344
  },
14359
- "privacy": "protected"
14345
+ "description": "Placeholder text to display within the input.",
14346
+ "attribute": "placeholder"
14360
14347
  },
14361
14348
  {
14362
14349
  "kind": "field",
14363
- "name": "hasError",
14350
+ "name": "error",
14364
14351
  "type": {
14365
- "text": "boolean"
14352
+ "text": "string | undefined"
14366
14353
  },
14367
- "privacy": "protected"
14354
+ "description": "Optional error to be shown with the input. Alternatively use the error slot.",
14355
+ "attribute": "error"
14368
14356
  },
14369
14357
  {
14370
14358
  "kind": "field",
14371
- "name": "hasHint",
14359
+ "name": "required",
14372
14360
  "type": {
14373
14361
  "text": "boolean"
14374
14362
  },
14375
- "privacy": "protected"
14363
+ "default": "false",
14364
+ "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.",
14365
+ "attribute": "required"
14376
14366
  },
14377
14367
  {
14378
14368
  "kind": "method",
14379
- "name": "handleChange",
14369
+ "name": "handleInput",
14380
14370
  "privacy": "protected",
14381
- "return": {
14382
- "type": {
14383
- "text": "void"
14384
- }
14385
- },
14386
14371
  "parameters": [
14387
14372
  {
14388
14373
  "name": "e",
@@ -14394,13 +14379,8 @@
14394
14379
  },
14395
14380
  {
14396
14381
  "kind": "method",
14397
- "name": "handleInput",
14382
+ "name": "handleChange",
14398
14383
  "privacy": "protected",
14399
- "return": {
14400
- "type": {
14401
- "text": "void"
14402
- }
14403
- },
14404
14384
  "parameters": [
14405
14385
  {
14406
14386
  "name": "e",
@@ -14413,287 +14393,238 @@
14413
14393
  {
14414
14394
  "kind": "method",
14415
14395
  "name": "renderLabel",
14416
- "privacy": "protected",
14417
- "return": {
14418
- "type": {
14419
- "text": "TemplateResult"
14420
- }
14421
- }
14396
+ "privacy": "protected"
14422
14397
  },
14423
14398
  {
14424
14399
  "kind": "method",
14425
14400
  "name": "renderError",
14426
- "privacy": "protected",
14427
- "return": {
14428
- "type": {
14429
- "text": "TemplateResult"
14430
- }
14431
- }
14401
+ "privacy": "protected"
14432
14402
  },
14433
14403
  {
14434
14404
  "kind": "method",
14435
14405
  "name": "getDescribedBy",
14436
- "privacy": "protected",
14437
- "return": {
14438
- "type": {
14439
- "text": "string | undefined"
14440
- }
14441
- }
14406
+ "privacy": "protected"
14442
14407
  },
14443
14408
  {
14444
14409
  "kind": "method",
14445
14410
  "name": "getInvalid",
14446
- "privacy": "protected",
14447
- "return": {
14448
- "type": {
14449
- "text": "\"true\" | undefined"
14450
- }
14451
- }
14452
- }
14453
- ]
14454
- },
14455
- {
14456
- "kind": "mixin",
14457
- "description": "",
14458
- "name": "FormAssociatedMixin",
14459
- "members": [
14460
- {
14461
- "kind": "field",
14462
- "name": "labelSlot",
14463
- "privacy": "protected",
14464
- "default": "new SlotController(this, \"label\")"
14465
- },
14466
- {
14467
- "kind": "field",
14468
- "name": "errorSlot",
14469
- "privacy": "protected",
14470
- "default": "new SlotController(this, \"error\")"
14471
- },
14472
- {
14473
- "kind": "field",
14474
- "name": "hintSlot",
14475
- "privacy": "protected",
14476
- "default": "new SlotController(this, \"hint\")"
14411
+ "privacy": "protected"
14477
14412
  },
14478
14413
  {
14479
14414
  "kind": "field",
14480
- "name": "formData",
14481
- "privacy": "protected",
14482
- "default": "new FormDataController(this, { value: () => this.formValue })"
14415
+ "name": "hasHint",
14416
+ "privacy": "protected"
14483
14417
  },
14484
14418
  {
14485
14419
  "kind": "field",
14486
- "name": "formValue",
14420
+ "name": "hasError",
14487
14421
  "privacy": "protected"
14488
- },
14422
+ }
14423
+ ],
14424
+ "events": [
14489
14425
  {
14490
- "kind": "field",
14491
- "name": "inputId",
14426
+ "name": "input",
14492
14427
  "type": {
14493
- "text": "string"
14428
+ "text": "NordEvent"
14494
14429
  },
14495
- "privacy": "protected",
14496
- "default": "\"input\""
14430
+ "description": "Fired as the user types into the input."
14497
14431
  },
14498
14432
  {
14499
- "kind": "field",
14500
- "name": "errorId",
14433
+ "name": "change",
14501
14434
  "type": {
14502
- "text": "string"
14503
- },
14504
- "privacy": "protected",
14505
- "default": "\"error\""
14506
- },
14507
- {
14508
- "kind": "field",
14509
- "name": "hintId",
14510
- "type": {
14511
- "text": "string"
14435
+ "text": "NordEvent"
14512
14436
  },
14513
- "privacy": "protected",
14514
- "default": "\"hint\""
14515
- },
14437
+ "description": "Fired whenever the input's value is changed via user interaction."
14438
+ }
14439
+ ],
14440
+ "attributes": [
14516
14441
  {
14517
- "kind": "field",
14518
14442
  "name": "label",
14519
14443
  "type": {
14520
14444
  "text": "string"
14521
14445
  },
14522
14446
  "default": "\"\"",
14523
14447
  "description": "Label for the input.",
14524
- "attribute": "label"
14448
+ "fieldName": "label"
14525
14449
  },
14526
14450
  {
14527
- "kind": "field",
14528
14451
  "name": "hint",
14529
14452
  "type": {
14530
14453
  "text": "string | undefined"
14531
14454
  },
14532
14455
  "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
14533
- "attribute": "hint"
14456
+ "fieldName": "hint"
14534
14457
  },
14535
14458
  {
14536
- "kind": "field",
14537
- "name": "hideLabel",
14459
+ "name": "hide-label",
14538
14460
  "type": {
14539
14461
  "text": "boolean"
14540
14462
  },
14541
14463
  "default": "false",
14542
14464
  "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
14543
- "attribute": "hide-label"
14465
+ "fieldName": "hideLabel"
14544
14466
  },
14545
14467
  {
14546
- "kind": "field",
14547
14468
  "name": "placeholder",
14548
14469
  "type": {
14549
14470
  "text": "string | undefined"
14550
14471
  },
14551
14472
  "description": "Placeholder text to display within the input.",
14552
- "attribute": "placeholder"
14473
+ "fieldName": "placeholder"
14553
14474
  },
14554
14475
  {
14555
- "kind": "field",
14556
14476
  "name": "error",
14557
14477
  "type": {
14558
14478
  "text": "string | undefined"
14559
14479
  },
14560
14480
  "description": "Optional error to be shown with the input. Alternatively use the error slot.",
14561
- "attribute": "error"
14481
+ "fieldName": "error"
14562
14482
  },
14563
14483
  {
14564
- "kind": "field",
14565
14484
  "name": "required",
14566
14485
  "type": {
14567
14486
  "text": "boolean"
14568
14487
  },
14569
14488
  "default": "false",
14570
14489
  "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.",
14571
- "attribute": "required"
14572
- },
14573
- {
14574
- "kind": "method",
14575
- "name": "handleInput",
14576
- "privacy": "protected",
14577
- "parameters": [
14578
- {
14579
- "name": "e",
14580
- "type": {
14581
- "text": "Event"
14582
- }
14583
- }
14584
- ]
14585
- },
14586
- {
14587
- "kind": "method",
14588
- "name": "handleChange",
14589
- "privacy": "protected",
14590
- "parameters": [
14591
- {
14592
- "name": "e",
14593
- "type": {
14594
- "text": "Event"
14595
- }
14596
- }
14597
- ]
14598
- },
14599
- {
14600
- "kind": "method",
14601
- "name": "renderLabel",
14602
- "privacy": "protected"
14603
- },
14490
+ "fieldName": "required"
14491
+ }
14492
+ ],
14493
+ "parameters": [
14604
14494
  {
14605
- "kind": "method",
14606
- "name": "renderError",
14607
- "privacy": "protected"
14608
- },
14495
+ "name": "superClass",
14496
+ "type": {
14497
+ "text": "T"
14498
+ }
14499
+ }
14500
+ ]
14501
+ }
14502
+ ],
14503
+ "exports": [
14504
+ {
14505
+ "kind": "js",
14506
+ "name": "FormAssociatedMixinInterface",
14507
+ "declaration": {
14508
+ "name": "FormAssociatedMixinInterface",
14509
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
14510
+ }
14511
+ },
14512
+ {
14513
+ "kind": "js",
14514
+ "name": "FormAssociatedMixin",
14515
+ "declaration": {
14516
+ "name": "FormAssociatedMixin",
14517
+ "module": "src/common/mixins/FormAssociatedMixin.ts"
14518
+ }
14519
+ }
14520
+ ]
14521
+ },
14522
+ {
14523
+ "kind": "javascript-module",
14524
+ "path": "src/common/mixins/InputMixin.ts",
14525
+ "declarations": [
14526
+ {
14527
+ "kind": "class",
14528
+ "description": "",
14529
+ "name": "InputMixinInterface",
14530
+ "members": [
14609
14531
  {
14610
- "kind": "method",
14611
- "name": "getDescribedBy",
14612
- "privacy": "protected"
14532
+ "kind": "field",
14533
+ "name": "name",
14534
+ "type": {
14535
+ "text": "string | undefined"
14536
+ }
14613
14537
  },
14614
14538
  {
14615
- "kind": "method",
14616
- "name": "getInvalid",
14617
- "privacy": "protected"
14539
+ "kind": "field",
14540
+ "name": "value",
14541
+ "type": {
14542
+ "text": "string"
14543
+ }
14618
14544
  },
14619
14545
  {
14620
14546
  "kind": "field",
14621
- "name": "hasHint",
14622
- "privacy": "protected"
14547
+ "name": "disabled",
14548
+ "type": {
14549
+ "text": "boolean"
14550
+ }
14623
14551
  },
14624
14552
  {
14625
14553
  "kind": "field",
14626
- "name": "hasError",
14627
- "privacy": "protected"
14554
+ "name": "form",
14555
+ "type": {
14556
+ "text": "HTMLFormElement | null"
14557
+ }
14628
14558
  }
14629
- ],
14630
- "events": [
14559
+ ]
14560
+ },
14561
+ {
14562
+ "kind": "mixin",
14563
+ "description": "",
14564
+ "name": "InputMixin",
14565
+ "members": [
14631
14566
  {
14632
- "name": "input",
14567
+ "kind": "field",
14568
+ "name": "disabled",
14633
14569
  "type": {
14634
- "text": "NordEvent"
14570
+ "text": "boolean"
14635
14571
  },
14636
- "description": "Fired as the user types into the input."
14572
+ "default": "false",
14573
+ "description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
14574
+ "attribute": "disabled",
14575
+ "reflects": true
14637
14576
  },
14638
14577
  {
14639
- "name": "change",
14578
+ "kind": "field",
14579
+ "name": "name",
14640
14580
  "type": {
14641
- "text": "NordEvent"
14581
+ "text": "string | undefined"
14642
14582
  },
14643
- "description": "Fired whenever the input's value is changed via user interaction."
14644
- }
14645
- ],
14646
- "attributes": [
14583
+ "description": "The name of the form component.",
14584
+ "attribute": "name"
14585
+ },
14647
14586
  {
14648
- "name": "label",
14587
+ "kind": "field",
14588
+ "name": "value",
14649
14589
  "type": {
14650
14590
  "text": "string"
14651
14591
  },
14652
14592
  "default": "\"\"",
14653
- "description": "Label for the input.",
14654
- "fieldName": "label"
14593
+ "description": "The value of the form component.",
14594
+ "attribute": "value"
14655
14595
  },
14656
14596
  {
14657
- "name": "hint",
14658
- "type": {
14659
- "text": "string | undefined"
14660
- },
14661
- "description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
14662
- "fieldName": "hint"
14663
- },
14597
+ "kind": "field",
14598
+ "name": "form",
14599
+ "description": "Gets the form, if any, associated with the form element."
14600
+ }
14601
+ ],
14602
+ "attributes": [
14664
14603
  {
14665
- "name": "hide-label",
14604
+ "name": "disabled",
14666
14605
  "type": {
14667
14606
  "text": "boolean"
14668
14607
  },
14669
14608
  "default": "false",
14670
- "description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
14671
- "fieldName": "hideLabel"
14672
- },
14673
- {
14674
- "name": "placeholder",
14675
- "type": {
14676
- "text": "string | undefined"
14677
- },
14678
- "description": "Placeholder text to display within the input.",
14679
- "fieldName": "placeholder"
14609
+ "description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
14610
+ "fieldName": "disabled"
14680
14611
  },
14681
14612
  {
14682
- "name": "error",
14613
+ "name": "name",
14683
14614
  "type": {
14684
14615
  "text": "string | undefined"
14685
14616
  },
14686
- "description": "Optional error to be shown with the input. Alternatively use the error slot.",
14687
- "fieldName": "error"
14617
+ "description": "The name of the form component.",
14618
+ "fieldName": "name"
14688
14619
  },
14689
14620
  {
14690
- "name": "required",
14621
+ "name": "value",
14691
14622
  "type": {
14692
- "text": "boolean"
14623
+ "text": "string"
14693
14624
  },
14694
- "default": "false",
14695
- "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.",
14696
- "fieldName": "required"
14625
+ "default": "\"\"",
14626
+ "description": "The value of the form component.",
14627
+ "fieldName": "value"
14697
14628
  }
14698
14629
  ],
14699
14630
  "parameters": [
@@ -14709,230 +14640,527 @@
14709
14640
  "exports": [
14710
14641
  {
14711
14642
  "kind": "js",
14712
- "name": "FormAssociatedMixinInterface",
14643
+ "name": "InputMixinInterface",
14644
+ "declaration": {
14645
+ "name": "InputMixinInterface",
14646
+ "module": "src/common/mixins/InputMixin.ts"
14647
+ }
14648
+ },
14649
+ {
14650
+ "kind": "js",
14651
+ "name": "InputMixin",
14652
+ "declaration": {
14653
+ "name": "InputMixin",
14654
+ "module": "src/common/mixins/InputMixin.ts"
14655
+ }
14656
+ }
14657
+ ]
14658
+ },
14659
+ {
14660
+ "kind": "javascript-module",
14661
+ "path": "src/common/mixins/ReadonlyMixin.ts",
14662
+ "declarations": [
14663
+ {
14664
+ "kind": "class",
14665
+ "description": "",
14666
+ "name": "ReadonlyMixinInterface",
14667
+ "members": [
14668
+ {
14669
+ "kind": "field",
14670
+ "name": "readonly",
14671
+ "type": {
14672
+ "text": "boolean"
14673
+ }
14674
+ }
14675
+ ]
14676
+ },
14677
+ {
14678
+ "kind": "mixin",
14679
+ "description": "",
14680
+ "name": "ReadonlyMixin",
14681
+ "members": [
14682
+ {
14683
+ "kind": "field",
14684
+ "name": "readonly",
14685
+ "type": {
14686
+ "text": "boolean"
14687
+ },
14688
+ "default": "false",
14689
+ "description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
14690
+ "attribute": "readonly",
14691
+ "reflects": true
14692
+ }
14693
+ ],
14694
+ "attributes": [
14695
+ {
14696
+ "name": "readonly",
14697
+ "type": {
14698
+ "text": "boolean"
14699
+ },
14700
+ "default": "false",
14701
+ "description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
14702
+ "fieldName": "readonly"
14703
+ }
14704
+ ],
14705
+ "parameters": [
14706
+ {
14707
+ "name": "superClass",
14708
+ "type": {
14709
+ "text": "T"
14710
+ }
14711
+ }
14712
+ ]
14713
+ }
14714
+ ],
14715
+ "exports": [
14716
+ {
14717
+ "kind": "js",
14718
+ "name": "ReadonlyMixinInterface",
14719
+ "declaration": {
14720
+ "name": "ReadonlyMixinInterface",
14721
+ "module": "src/common/mixins/ReadonlyMixin.ts"
14722
+ }
14723
+ },
14724
+ {
14725
+ "kind": "js",
14726
+ "name": "ReadonlyMixin",
14727
+ "declaration": {
14728
+ "name": "ReadonlyMixin",
14729
+ "module": "src/common/mixins/ReadonlyMixin.ts"
14730
+ }
14731
+ }
14732
+ ]
14733
+ },
14734
+ {
14735
+ "kind": "javascript-module",
14736
+ "path": "src/common/directives/cond.ts",
14737
+ "declarations": [
14738
+ {
14739
+ "kind": "function",
14740
+ "name": "cond",
14741
+ "return": {
14742
+ "type": {
14743
+ "text": "typeof value | typeof nothing"
14744
+ }
14745
+ },
14746
+ "parameters": [
14747
+ {
14748
+ "name": "value",
14749
+ "type": {
14750
+ "text": "any"
14751
+ }
14752
+ }
14753
+ ],
14754
+ "description": "if value is truthy, return it, otherwise return nothing"
14755
+ },
14756
+ {
14757
+ "kind": "function",
14758
+ "name": "cond",
14759
+ "return": {
14760
+ "type": {
14761
+ "text": "typeof trueCase | typeof nothing"
14762
+ }
14763
+ },
14764
+ "parameters": [
14765
+ {
14766
+ "name": "condition",
14767
+ "type": {
14768
+ "text": "unknown"
14769
+ }
14770
+ },
14771
+ {
14772
+ "name": "trueCase",
14773
+ "type": {
14774
+ "text": "any"
14775
+ }
14776
+ }
14777
+ ],
14778
+ "description": "if condition is truthy, return trueCase, otherwise return nothing"
14779
+ },
14780
+ {
14781
+ "kind": "function",
14782
+ "name": "cond",
14783
+ "return": {
14784
+ "type": {
14785
+ "text": "typeof trueCase"
14786
+ }
14787
+ },
14788
+ "parameters": [
14789
+ {
14790
+ "name": "condition",
14791
+ "type": {
14792
+ "text": "true"
14793
+ }
14794
+ },
14795
+ {
14796
+ "name": "trueCase",
14797
+ "type": {
14798
+ "text": "any"
14799
+ }
14800
+ }
14801
+ ],
14802
+ "description": "condition is true, so always return trueCase"
14803
+ },
14804
+ {
14805
+ "kind": "function",
14806
+ "name": "cond",
14807
+ "return": {
14808
+ "type": {
14809
+ "text": "typeof nothing"
14810
+ }
14811
+ },
14812
+ "parameters": [
14813
+ {
14814
+ "name": "condition",
14815
+ "type": {
14816
+ "text": "false"
14817
+ }
14818
+ },
14819
+ {
14820
+ "name": "trueCase",
14821
+ "type": {
14822
+ "text": "any"
14823
+ }
14824
+ }
14825
+ ],
14826
+ "description": "condition is false, to will always return nothing"
14827
+ },
14828
+ {
14829
+ "kind": "function",
14830
+ "name": "cond",
14831
+ "return": {
14832
+ "type": {
14833
+ "text": "typeof trueCase | typeof falseCase"
14834
+ }
14835
+ },
14836
+ "parameters": [
14837
+ {
14838
+ "name": "condition",
14839
+ "type": {
14840
+ "text": "unknown"
14841
+ }
14842
+ },
14843
+ {
14844
+ "name": "trueCase",
14845
+ "type": {
14846
+ "text": "any"
14847
+ }
14848
+ },
14849
+ {
14850
+ "name": "falseCase",
14851
+ "type": {
14852
+ "text": "any"
14853
+ }
14854
+ }
14855
+ ],
14856
+ "description": "if condition is truthy, return trueCase, otherwise return falseCase"
14857
+ },
14858
+ {
14859
+ "kind": "function",
14860
+ "name": "cond",
14861
+ "return": {
14862
+ "type": {
14863
+ "text": "typeof trueCase"
14864
+ }
14865
+ },
14866
+ "parameters": [
14867
+ {
14868
+ "name": "condition",
14869
+ "type": {
14870
+ "text": "true"
14871
+ }
14872
+ },
14873
+ {
14874
+ "name": "trueCase",
14875
+ "type": {
14876
+ "text": "any"
14877
+ }
14878
+ },
14879
+ {
14880
+ "name": "falseCase",
14881
+ "type": {
14882
+ "text": "any"
14883
+ }
14884
+ }
14885
+ ],
14886
+ "description": "condition is true, so always return trueCase"
14887
+ },
14888
+ {
14889
+ "kind": "function",
14890
+ "name": "cond",
14891
+ "return": {
14892
+ "type": {
14893
+ "text": "typeof falseCase"
14894
+ }
14895
+ },
14896
+ "parameters": [
14897
+ {
14898
+ "name": "condition",
14899
+ "type": {
14900
+ "text": "false"
14901
+ }
14902
+ },
14903
+ {
14904
+ "name": "trueCase",
14905
+ "type": {
14906
+ "text": "any"
14907
+ }
14908
+ },
14909
+ {
14910
+ "name": "falseCase",
14911
+ "type": {
14912
+ "text": "any"
14913
+ }
14914
+ }
14915
+ ],
14916
+ "description": "condition is false, so always return falseCase"
14917
+ },
14918
+ {
14919
+ "kind": "function",
14920
+ "name": "cond",
14921
+ "parameters": [
14922
+ {
14923
+ "name": "condition",
14924
+ "type": {
14925
+ "text": "unknown"
14926
+ }
14927
+ },
14928
+ {
14929
+ "name": "trueCase",
14930
+ "default": "condition",
14931
+ "type": {
14932
+ "text": "any"
14933
+ }
14934
+ },
14935
+ {
14936
+ "name": "falseCase",
14937
+ "default": "nothing",
14938
+ "type": {
14939
+ "text": "any"
14940
+ }
14941
+ }
14942
+ ]
14943
+ }
14944
+ ],
14945
+ "exports": [
14946
+ {
14947
+ "kind": "js",
14948
+ "name": "cond",
14949
+ "declaration": {
14950
+ "name": "cond",
14951
+ "module": "src/common/directives/cond.ts"
14952
+ }
14953
+ },
14954
+ {
14955
+ "kind": "js",
14956
+ "name": "cond",
14957
+ "declaration": {
14958
+ "name": "cond",
14959
+ "module": "src/common/directives/cond.ts"
14960
+ }
14961
+ },
14962
+ {
14963
+ "kind": "js",
14964
+ "name": "cond",
14965
+ "declaration": {
14966
+ "name": "cond",
14967
+ "module": "src/common/directives/cond.ts"
14968
+ }
14969
+ },
14970
+ {
14971
+ "kind": "js",
14972
+ "name": "cond",
14973
+ "declaration": {
14974
+ "name": "cond",
14975
+ "module": "src/common/directives/cond.ts"
14976
+ }
14977
+ },
14978
+ {
14979
+ "kind": "js",
14980
+ "name": "cond",
14981
+ "declaration": {
14982
+ "name": "cond",
14983
+ "module": "src/common/directives/cond.ts"
14984
+ }
14985
+ },
14986
+ {
14987
+ "kind": "js",
14988
+ "name": "cond",
14713
14989
  "declaration": {
14714
- "name": "FormAssociatedMixinInterface",
14715
- "module": "src/common/mixins/FormAssociatedMixin.ts"
14990
+ "name": "cond",
14991
+ "module": "src/common/directives/cond.ts"
14716
14992
  }
14717
14993
  },
14718
14994
  {
14719
14995
  "kind": "js",
14720
- "name": "FormAssociatedMixin",
14996
+ "name": "cond",
14721
14997
  "declaration": {
14722
- "name": "FormAssociatedMixin",
14723
- "module": "src/common/mixins/FormAssociatedMixin.ts"
14998
+ "name": "cond",
14999
+ "module": "src/common/directives/cond.ts"
15000
+ }
15001
+ },
15002
+ {
15003
+ "kind": "js",
15004
+ "name": "cond",
15005
+ "declaration": {
15006
+ "name": "cond",
15007
+ "module": "src/common/directives/cond.ts"
14724
15008
  }
14725
15009
  }
14726
15010
  ]
14727
15011
  },
14728
15012
  {
14729
15013
  "kind": "javascript-module",
14730
- "path": "src/common/mixins/InputMixin.ts",
15014
+ "path": "src/common/directives/wrapIf.ts",
14731
15015
  "declarations": [
14732
15016
  {
14733
- "kind": "class",
14734
- "description": "",
14735
- "name": "InputMixinInterface",
14736
- "members": [
15017
+ "kind": "function",
15018
+ "name": "wrapIf",
15019
+ "return": {
15020
+ "type": {
15021
+ "text": "TInner"
15022
+ }
15023
+ },
15024
+ "parameters": [
14737
15025
  {
14738
- "kind": "field",
14739
- "name": "name",
15026
+ "name": "condition",
14740
15027
  "type": {
14741
- "text": "string | undefined"
15028
+ "text": "false"
14742
15029
  }
14743
15030
  },
14744
15031
  {
14745
- "kind": "field",
14746
- "name": "value",
15032
+ "name": "inner",
14747
15033
  "type": {
14748
- "text": "string"
15034
+ "text": "() => TInner"
14749
15035
  }
14750
15036
  },
14751
15037
  {
14752
- "kind": "field",
14753
- "name": "disabled",
15038
+ "name": "wrapper",
14754
15039
  "type": {
14755
- "text": "boolean"
15040
+ "text": "(inner: TInner) => TWrapper"
15041
+ }
15042
+ }
15043
+ ]
15044
+ },
15045
+ {
15046
+ "kind": "function",
15047
+ "name": "wrapIf",
15048
+ "return": {
15049
+ "type": {
15050
+ "text": "TWrapper"
15051
+ }
15052
+ },
15053
+ "parameters": [
15054
+ {
15055
+ "name": "condition",
15056
+ "type": {
15057
+ "text": "true"
14756
15058
  }
14757
15059
  },
14758
15060
  {
14759
- "kind": "field",
14760
- "name": "form",
15061
+ "name": "inner",
14761
15062
  "type": {
14762
- "text": "HTMLFormElement | null"
15063
+ "text": "() => TInner"
15064
+ }
15065
+ },
15066
+ {
15067
+ "name": "wrapper",
15068
+ "type": {
15069
+ "text": "(inner: TInner) => TWrapper"
14763
15070
  }
14764
15071
  }
14765
15072
  ]
14766
15073
  },
14767
15074
  {
14768
- "kind": "mixin",
14769
- "description": "",
14770
- "name": "InputMixin",
14771
- "members": [
15075
+ "kind": "function",
15076
+ "name": "wrapIf",
15077
+ "return": {
15078
+ "type": {
15079
+ "text": "TInner | TWrapper"
15080
+ }
15081
+ },
15082
+ "parameters": [
14772
15083
  {
14773
- "kind": "field",
14774
- "name": "disabled",
15084
+ "name": "condition",
14775
15085
  "type": {
14776
- "text": "boolean"
14777
- },
14778
- "default": "false",
14779
- "description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
14780
- "attribute": "disabled",
14781
- "reflects": true
15086
+ "text": "unknown"
15087
+ }
14782
15088
  },
14783
15089
  {
14784
- "kind": "field",
14785
- "name": "name",
15090
+ "name": "inner",
14786
15091
  "type": {
14787
- "text": "string | undefined"
14788
- },
14789
- "description": "The name of the form component.",
14790
- "attribute": "name"
15092
+ "text": "() => TInner"
15093
+ }
14791
15094
  },
14792
15095
  {
14793
- "kind": "field",
14794
- "name": "value",
15096
+ "name": "wrapper",
14795
15097
  "type": {
14796
- "text": "string"
14797
- },
14798
- "default": "\"\"",
14799
- "description": "The value of the form component.",
14800
- "attribute": "value"
14801
- },
14802
- {
14803
- "kind": "field",
14804
- "name": "form",
14805
- "description": "Gets the form, if any, associated with the form element."
15098
+ "text": "(inner: TInner) => TWrapper"
15099
+ }
14806
15100
  }
14807
- ],
14808
- "attributes": [
15101
+ ]
15102
+ },
15103
+ {
15104
+ "kind": "function",
15105
+ "name": "wrapIf",
15106
+ "parameters": [
14809
15107
  {
14810
- "name": "disabled",
15108
+ "name": "condition",
14811
15109
  "type": {
14812
- "text": "boolean"
14813
- },
14814
- "default": "false",
14815
- "description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
14816
- "fieldName": "disabled"
15110
+ "text": "any"
15111
+ }
14817
15112
  },
14818
15113
  {
14819
- "name": "name",
15114
+ "name": "inner",
14820
15115
  "type": {
14821
- "text": "string | undefined"
14822
- },
14823
- "description": "The name of the form component.",
14824
- "fieldName": "name"
15116
+ "text": "() => TInner"
15117
+ }
14825
15118
  },
14826
15119
  {
14827
- "name": "value",
15120
+ "name": "wrapper",
14828
15121
  "type": {
14829
- "text": "string"
14830
- },
14831
- "default": "\"\"",
14832
- "description": "The value of the form component.",
14833
- "fieldName": "value"
15122
+ "text": "(innards: TInner) => TWrapper"
15123
+ }
14834
15124
  }
14835
15125
  ],
14836
- "parameters": [
14837
- {
14838
- "name": "superClass",
14839
- "type": {
14840
- "text": "T"
14841
- }
15126
+ "return": {
15127
+ "type": {
15128
+ "text": ""
14842
15129
  }
14843
- ]
15130
+ }
14844
15131
  }
14845
15132
  ],
14846
15133
  "exports": [
14847
15134
  {
14848
15135
  "kind": "js",
14849
- "name": "InputMixinInterface",
15136
+ "name": "wrapIf",
14850
15137
  "declaration": {
14851
- "name": "InputMixinInterface",
14852
- "module": "src/common/mixins/InputMixin.ts"
15138
+ "name": "wrapIf",
15139
+ "module": "src/common/directives/wrapIf.ts"
14853
15140
  }
14854
15141
  },
14855
15142
  {
14856
15143
  "kind": "js",
14857
- "name": "InputMixin",
15144
+ "name": "wrapIf",
14858
15145
  "declaration": {
14859
- "name": "InputMixin",
14860
- "module": "src/common/mixins/InputMixin.ts"
15146
+ "name": "wrapIf",
15147
+ "module": "src/common/directives/wrapIf.ts"
14861
15148
  }
14862
- }
14863
- ]
14864
- },
14865
- {
14866
- "kind": "javascript-module",
14867
- "path": "src/common/mixins/ReadonlyMixin.ts",
14868
- "declarations": [
14869
- {
14870
- "kind": "class",
14871
- "description": "",
14872
- "name": "ReadonlyMixinInterface",
14873
- "members": [
14874
- {
14875
- "kind": "field",
14876
- "name": "readonly",
14877
- "type": {
14878
- "text": "boolean"
14879
- }
14880
- }
14881
- ]
14882
15149
  },
14883
- {
14884
- "kind": "mixin",
14885
- "description": "",
14886
- "name": "ReadonlyMixin",
14887
- "members": [
14888
- {
14889
- "kind": "field",
14890
- "name": "readonly",
14891
- "type": {
14892
- "text": "boolean"
14893
- },
14894
- "default": "false",
14895
- "description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
14896
- "attribute": "readonly",
14897
- "reflects": true
14898
- }
14899
- ],
14900
- "attributes": [
14901
- {
14902
- "name": "readonly",
14903
- "type": {
14904
- "text": "boolean"
14905
- },
14906
- "default": "false",
14907
- "description": "Makes the component readonly, so that it is not editable.\nReadonly differs from disabled in that readonly fields are still focusable and will be submitted with a form.",
14908
- "fieldName": "readonly"
14909
- }
14910
- ],
14911
- "parameters": [
14912
- {
14913
- "name": "superClass",
14914
- "type": {
14915
- "text": "T"
14916
- }
14917
- }
14918
- ]
14919
- }
14920
- ],
14921
- "exports": [
14922
15150
  {
14923
15151
  "kind": "js",
14924
- "name": "ReadonlyMixinInterface",
15152
+ "name": "wrapIf",
14925
15153
  "declaration": {
14926
- "name": "ReadonlyMixinInterface",
14927
- "module": "src/common/mixins/ReadonlyMixin.ts"
15154
+ "name": "wrapIf",
15155
+ "module": "src/common/directives/wrapIf.ts"
14928
15156
  }
14929
15157
  },
14930
15158
  {
14931
15159
  "kind": "js",
14932
- "name": "ReadonlyMixin",
15160
+ "name": "wrapIf",
14933
15161
  "declaration": {
14934
- "name": "ReadonlyMixin",
14935
- "module": "src/common/mixins/ReadonlyMixin.ts"
15162
+ "name": "wrapIf",
15163
+ "module": "src/common/directives/wrapIf.ts"
14936
15164
  }
14937
15165
  }
14938
15166
  ]