@digdir/designsystemet-react 1.0.0-next.46 → 1.0.0-next.48

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 (436) hide show
  1. package/dist/cjs/components/Alert/Alert.js +2 -1
  2. package/dist/cjs/components/Badge/Badge.js +3 -7
  3. package/dist/cjs/components/Badge/BadgePosition.js +9 -0
  4. package/dist/cjs/components/Badge/index.js +6 -0
  5. package/dist/cjs/components/Breadcrumbs/Breadcrumbs.js +18 -0
  6. package/dist/cjs/components/Breadcrumbs/index.js +13 -8
  7. package/dist/cjs/components/Button/Button.js +1 -0
  8. package/dist/cjs/components/Card/Card.js +1 -0
  9. package/dist/cjs/components/Card/index.js +10 -0
  10. package/dist/cjs/components/Checkbox/Checkbox.js +3 -2
  11. package/dist/cjs/components/Chip/Chips.js +1 -0
  12. package/dist/cjs/components/Combobox/Combobox.js +5 -2
  13. package/dist/cjs/components/Combobox/Custom.js +1 -1
  14. package/dist/cjs/components/Combobox/index.js +3 -0
  15. package/dist/cjs/components/Combobox/internal/ComboboxChips.js +1 -1
  16. package/dist/cjs/components/Details/Details.js +3 -2
  17. package/dist/cjs/components/Details/DetailsContent.js +1 -0
  18. package/dist/cjs/components/Details/DetailsSummary.js +1 -0
  19. package/dist/cjs/components/Details/index.js +4 -3
  20. package/dist/cjs/components/Divider/Divider.js +6 -0
  21. package/dist/cjs/components/Dropdown/Dropdown.js +27 -0
  22. package/dist/cjs/components/Dropdown/DropdownTriggerContext.js +4 -1
  23. package/dist/cjs/components/Dropdown/index.js +11 -9
  24. package/dist/cjs/components/ErrorSummary/ErrorSummary.js +20 -2
  25. package/dist/cjs/components/ErrorSummary/ErrorSummaryItem.js +10 -4
  26. package/dist/cjs/components/ErrorSummary/ErrorSummaryLink.js +15 -0
  27. package/dist/cjs/components/ErrorSummary/index.js +15 -4
  28. package/dist/cjs/components/Field/Field.js +11 -0
  29. package/dist/cjs/components/Field/FieldAffix.js +21 -0
  30. package/dist/cjs/components/Field/FieldCounter.js +9 -0
  31. package/dist/cjs/components/Field/index.js +7 -5
  32. package/dist/cjs/components/Fieldset/Fieldset.js +15 -0
  33. package/dist/cjs/components/Fieldset/FieldsetDescription.js +8 -0
  34. package/dist/cjs/components/Fieldset/FieldsetLegend.js +6 -0
  35. package/dist/cjs/components/Fieldset/index.js +10 -3
  36. package/dist/cjs/components/Input/Input.js +2 -3
  37. package/dist/cjs/components/Label/Label.js +2 -2
  38. package/dist/cjs/components/Link/Link.js +6 -0
  39. package/dist/cjs/components/List/Lists.js +20 -0
  40. package/dist/cjs/components/Modal/Modal.js +23 -0
  41. package/dist/cjs/components/Modal/ModalBlock.js +16 -0
  42. package/dist/cjs/components/Modal/ModalTrigger.js +11 -0
  43. package/dist/cjs/components/Modal/ModalTriggerContext.js +11 -0
  44. package/dist/cjs/components/Modal/index.js +13 -0
  45. package/dist/cjs/components/Pagination/Pagination.js +18 -0
  46. package/dist/cjs/components/Pagination/PaginationButton.js +8 -0
  47. package/dist/cjs/components/Pagination/PaginationItem.js +10 -0
  48. package/dist/cjs/components/Pagination/PaginationList.js +12 -0
  49. package/dist/cjs/components/Pagination/index.js +18 -0
  50. package/dist/cjs/components/Pagination/usePagination.js +29 -1
  51. package/dist/cjs/components/Paragraph/Paragraph.js +1 -0
  52. package/dist/cjs/components/Popover/Popover.js +17 -0
  53. package/dist/cjs/components/Popover/PopoverTrigger.js +27 -2
  54. package/dist/cjs/components/Popover/PopoverTriggerContext.js +11 -0
  55. package/dist/cjs/components/Popover/index.js +15 -3
  56. package/dist/cjs/components/Radio/Radio.js +3 -2
  57. package/dist/cjs/components/Search/Search.js +16 -0
  58. package/dist/cjs/components/Search/SearchButton.js +9 -0
  59. package/dist/cjs/components/Search/SearchClear.js +9 -0
  60. package/dist/cjs/components/Search/SearchInput.js +8 -0
  61. package/dist/cjs/components/Search/index.js +11 -7
  62. package/dist/cjs/components/Select/Select.js +9 -0
  63. package/dist/cjs/components/Select/SelectOptgroup.js +11 -0
  64. package/dist/cjs/components/Select/SelectOption.js +9 -0
  65. package/dist/cjs/components/Select/index.js +9 -0
  66. package/dist/cjs/components/Skeleton/Skeleton.js +5 -4
  67. package/dist/cjs/components/SkipLink/SkipLink.js +7 -0
  68. package/dist/cjs/components/Spinner/Spinner.js +6 -1
  69. package/dist/cjs/components/Suggestion/Suggestion.js +55 -0
  70. package/dist/cjs/components/Suggestion/SuggestionClear.js +48 -0
  71. package/dist/cjs/components/Suggestion/SuggestionEmpty.js +23 -0
  72. package/dist/cjs/components/Suggestion/SuggestionInput.js +45 -0
  73. package/dist/cjs/components/Suggestion/SuggestionList.js +30 -0
  74. package/dist/cjs/components/Suggestion/SuggestionOption.js +12 -0
  75. package/dist/cjs/components/Suggestion/index.js +44 -0
  76. package/dist/cjs/components/Switch/Switch.js +1 -0
  77. package/dist/cjs/components/Table/Table.js +25 -0
  78. package/dist/cjs/components/Table/TableBody.js +11 -0
  79. package/dist/cjs/components/Table/TableCell.js +6 -0
  80. package/dist/cjs/components/Table/TableFoot.js +11 -0
  81. package/dist/cjs/components/Table/TableHead.js +11 -0
  82. package/dist/cjs/components/Table/TableHeaderCell.js +6 -0
  83. package/dist/cjs/components/Table/TableRow.js +9 -0
  84. package/dist/cjs/components/Table/index.js +25 -0
  85. package/dist/cjs/components/Tabs/Tabs.js +1 -2
  86. package/dist/cjs/components/Tabs/TabsList.js +1 -2
  87. package/dist/cjs/components/Tabs/TabsPanel.js +1 -2
  88. package/dist/cjs/components/Tabs/TabsTab.js +1 -0
  89. package/dist/cjs/components/Tabs/index.js +1 -2
  90. package/dist/cjs/components/Tag/Tag.js +3 -2
  91. package/dist/cjs/components/Textarea/Textarea.js +2 -3
  92. package/dist/cjs/components/Textfield/Textfield.js +1 -3
  93. package/dist/cjs/components/ToggleGroup/ToggleGroup.js +1 -0
  94. package/dist/cjs/components/ToggleGroup/index.js +4 -4
  95. package/dist/cjs/components/Tooltip/Tooltip.js +8 -4
  96. package/dist/cjs/components/ValidationMessage/ValidationMessage.js +6 -1
  97. package/dist/cjs/index.js +14 -2
  98. package/dist/cjs/utilities/RovingFocus/RovingFocusRoot.js +1 -1
  99. package/dist/esm/components/Alert/Alert.js +2 -1
  100. package/dist/esm/components/Badge/Badge.js +3 -7
  101. package/dist/esm/components/Badge/BadgePosition.js +9 -0
  102. package/dist/esm/components/Badge/index.js +6 -0
  103. package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +18 -0
  104. package/dist/esm/components/Breadcrumbs/index.js +13 -8
  105. package/dist/esm/components/Button/Button.js +1 -0
  106. package/dist/esm/components/Card/Card.js +1 -0
  107. package/dist/esm/components/Card/index.js +10 -0
  108. package/dist/esm/components/Checkbox/Checkbox.js +3 -2
  109. package/dist/esm/components/Chip/Chips.js +1 -0
  110. package/dist/esm/components/Combobox/Combobox.js +5 -2
  111. package/dist/esm/components/Combobox/Custom.js +1 -1
  112. package/dist/esm/components/Combobox/index.js +3 -0
  113. package/dist/esm/components/Combobox/internal/ComboboxChips.js +1 -1
  114. package/dist/esm/components/Details/Details.js +3 -2
  115. package/dist/esm/components/Details/DetailsContent.js +1 -0
  116. package/dist/esm/components/Details/DetailsSummary.js +1 -0
  117. package/dist/esm/components/Details/index.js +4 -3
  118. package/dist/esm/components/Divider/Divider.js +6 -0
  119. package/dist/esm/components/Dropdown/Dropdown.js +27 -0
  120. package/dist/esm/components/Dropdown/DropdownTriggerContext.js +4 -1
  121. package/dist/esm/components/Dropdown/index.js +11 -9
  122. package/dist/esm/components/ErrorSummary/ErrorSummary.js +20 -2
  123. package/dist/esm/components/ErrorSummary/ErrorSummaryItem.js +10 -4
  124. package/dist/esm/components/ErrorSummary/ErrorSummaryLink.js +13 -0
  125. package/dist/esm/components/ErrorSummary/index.js +15 -5
  126. package/dist/esm/components/Field/Field.js +11 -0
  127. package/dist/esm/components/Field/FieldAffix.js +21 -0
  128. package/dist/esm/components/Field/FieldCounter.js +9 -0
  129. package/dist/esm/components/Field/index.js +7 -5
  130. package/dist/esm/components/Fieldset/Fieldset.js +15 -0
  131. package/dist/esm/components/Fieldset/FieldsetDescription.js +8 -0
  132. package/dist/esm/components/Fieldset/FieldsetLegend.js +6 -0
  133. package/dist/esm/components/Fieldset/index.js +10 -3
  134. package/dist/esm/components/Input/Input.js +2 -3
  135. package/dist/esm/components/Label/Label.js +2 -2
  136. package/dist/esm/components/Link/Link.js +6 -0
  137. package/dist/esm/components/List/Lists.js +20 -0
  138. package/dist/esm/components/Modal/Modal.js +23 -0
  139. package/dist/esm/components/Modal/ModalBlock.js +16 -0
  140. package/dist/esm/components/Modal/ModalTrigger.js +11 -0
  141. package/dist/esm/components/Modal/ModalTriggerContext.js +11 -0
  142. package/dist/esm/components/Modal/index.js +13 -0
  143. package/dist/esm/components/Pagination/Pagination.js +18 -0
  144. package/dist/esm/components/Pagination/PaginationButton.js +8 -0
  145. package/dist/esm/components/Pagination/PaginationItem.js +10 -0
  146. package/dist/esm/components/Pagination/PaginationList.js +12 -0
  147. package/dist/esm/components/Pagination/index.js +18 -0
  148. package/dist/esm/components/Pagination/usePagination.js +29 -1
  149. package/dist/esm/components/Paragraph/Paragraph.js +1 -0
  150. package/dist/esm/components/Popover/Popover.js +17 -0
  151. package/dist/esm/components/Popover/PopoverTrigger.js +28 -3
  152. package/dist/esm/components/Popover/PopoverTriggerContext.js +11 -0
  153. package/dist/esm/components/Popover/index.js +15 -3
  154. package/dist/esm/components/Radio/Radio.js +3 -2
  155. package/dist/esm/components/Search/Search.js +16 -0
  156. package/dist/esm/components/Search/SearchButton.js +9 -0
  157. package/dist/esm/components/Search/SearchClear.js +9 -0
  158. package/dist/esm/components/Search/SearchInput.js +8 -0
  159. package/dist/esm/components/Search/index.js +11 -7
  160. package/dist/esm/components/Select/Select.js +9 -0
  161. package/dist/esm/components/Select/SelectOptgroup.js +11 -0
  162. package/dist/esm/components/Select/SelectOption.js +9 -0
  163. package/dist/esm/components/Select/index.js +9 -0
  164. package/dist/esm/components/Skeleton/Skeleton.js +5 -4
  165. package/dist/esm/components/SkipLink/SkipLink.js +7 -0
  166. package/dist/esm/components/Spinner/Spinner.js +6 -1
  167. package/dist/esm/components/Suggestion/Suggestion.js +52 -0
  168. package/dist/esm/components/Suggestion/SuggestionClear.js +45 -0
  169. package/dist/esm/components/Suggestion/SuggestionEmpty.js +21 -0
  170. package/dist/esm/components/Suggestion/SuggestionInput.js +43 -0
  171. package/dist/esm/components/Suggestion/SuggestionList.js +28 -0
  172. package/dist/esm/components/Suggestion/SuggestionOption.js +10 -0
  173. package/dist/esm/components/Suggestion/index.js +37 -0
  174. package/dist/esm/components/Switch/Switch.js +1 -0
  175. package/dist/esm/components/Table/Table.js +25 -0
  176. package/dist/esm/components/Table/TableBody.js +11 -0
  177. package/dist/esm/components/Table/TableCell.js +6 -0
  178. package/dist/esm/components/Table/TableFoot.js +11 -0
  179. package/dist/esm/components/Table/TableHead.js +11 -0
  180. package/dist/esm/components/Table/TableHeaderCell.js +6 -0
  181. package/dist/esm/components/Table/TableRow.js +9 -0
  182. package/dist/esm/components/Table/index.js +25 -0
  183. package/dist/esm/components/Tabs/Tabs.js +1 -2
  184. package/dist/esm/components/Tabs/TabsList.js +1 -2
  185. package/dist/esm/components/Tabs/TabsPanel.js +1 -2
  186. package/dist/esm/components/Tabs/TabsTab.js +1 -0
  187. package/dist/esm/components/Tabs/index.js +1 -2
  188. package/dist/esm/components/Tag/Tag.js +3 -2
  189. package/dist/esm/components/Textarea/Textarea.js +2 -3
  190. package/dist/esm/components/Textfield/Textfield.js +1 -3
  191. package/dist/esm/components/ToggleGroup/ToggleGroup.js +1 -0
  192. package/dist/esm/components/ToggleGroup/index.js +4 -4
  193. package/dist/esm/components/Tooltip/Tooltip.js +9 -5
  194. package/dist/esm/components/ValidationMessage/ValidationMessage.js +6 -1
  195. package/dist/esm/index.js +7 -1
  196. package/dist/esm/utilities/RovingFocus/RovingFocusRoot.js +1 -1
  197. package/dist/types/components/Alert/Alert.d.ts +6 -3
  198. package/dist/types/components/Alert/Alert.d.ts.map +1 -1
  199. package/dist/types/components/Alert/index.d.ts +2 -1
  200. package/dist/types/components/Alert/index.d.ts.map +1 -1
  201. package/dist/types/components/Badge/Badge.d.ts +3 -7
  202. package/dist/types/components/Badge/Badge.d.ts.map +1 -1
  203. package/dist/types/components/Badge/BadgePosition.d.ts +9 -0
  204. package/dist/types/components/Badge/BadgePosition.d.ts.map +1 -1
  205. package/dist/types/components/Badge/index.d.ts +6 -0
  206. package/dist/types/components/Badge/index.d.ts.map +1 -1
  207. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +18 -0
  208. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  209. package/dist/types/components/Breadcrumbs/BreadcrumbsLink.d.ts +1 -3
  210. package/dist/types/components/Breadcrumbs/BreadcrumbsLink.d.ts.map +1 -1
  211. package/dist/types/components/Breadcrumbs/index.d.ts +14 -11
  212. package/dist/types/components/Breadcrumbs/index.d.ts.map +1 -1
  213. package/dist/types/components/Button/Button.d.ts +11 -6
  214. package/dist/types/components/Button/Button.d.ts.map +1 -1
  215. package/dist/types/components/Card/Card.d.ts +9 -0
  216. package/dist/types/components/Card/Card.d.ts.map +1 -1
  217. package/dist/types/components/Card/index.d.ts +10 -0
  218. package/dist/types/components/Card/index.d.ts.map +1 -1
  219. package/dist/types/components/Checkbox/Checkbox.d.ts +17 -6
  220. package/dist/types/components/Checkbox/Checkbox.d.ts.map +1 -1
  221. package/dist/types/components/Checkbox/index.d.ts +2 -1
  222. package/dist/types/components/Checkbox/index.d.ts.map +1 -1
  223. package/dist/types/components/Chip/Chips.d.ts +1 -0
  224. package/dist/types/components/Chip/Chips.d.ts.map +1 -1
  225. package/dist/types/components/Combobox/Combobox.d.ts +3 -0
  226. package/dist/types/components/Combobox/Combobox.d.ts.map +1 -1
  227. package/dist/types/components/Combobox/ComboboxContext.d.ts +1 -1
  228. package/dist/types/components/Combobox/ComboboxContext.d.ts.map +1 -1
  229. package/dist/types/components/Combobox/Option/Option.d.ts +2 -2
  230. package/dist/types/components/Combobox/Option/Option.d.ts.map +1 -1
  231. package/dist/types/components/Combobox/Option/useComboboxOption.d.ts +6 -4
  232. package/dist/types/components/Combobox/Option/useComboboxOption.d.ts.map +1 -1
  233. package/dist/types/components/Combobox/index.d.ts +3 -0
  234. package/dist/types/components/Combobox/index.d.ts.map +1 -1
  235. package/dist/types/components/Combobox/useFloatingCombobox.d.ts +2 -2
  236. package/dist/types/components/Combobox/useFloatingCombobox.d.ts.map +1 -1
  237. package/dist/types/components/Details/Details.d.ts +9 -4
  238. package/dist/types/components/Details/Details.d.ts.map +1 -1
  239. package/dist/types/components/Details/DetailsContent.d.ts +1 -0
  240. package/dist/types/components/Details/DetailsContent.d.ts.map +1 -1
  241. package/dist/types/components/Details/DetailsSummary.d.ts +1 -0
  242. package/dist/types/components/Details/DetailsSummary.d.ts.map +1 -1
  243. package/dist/types/components/Details/index.d.ts +4 -3
  244. package/dist/types/components/Details/index.d.ts.map +1 -1
  245. package/dist/types/components/Divider/Divider.d.ts +6 -0
  246. package/dist/types/components/Divider/Divider.d.ts.map +1 -1
  247. package/dist/types/components/Dropdown/Dropdown.d.ts +31 -2
  248. package/dist/types/components/Dropdown/Dropdown.d.ts.map +1 -1
  249. package/dist/types/components/Dropdown/DropdownTriggerContext.d.ts +4 -1
  250. package/dist/types/components/Dropdown/DropdownTriggerContext.d.ts.map +1 -1
  251. package/dist/types/components/Dropdown/index.d.ts +11 -9
  252. package/dist/types/components/Dropdown/index.d.ts.map +1 -1
  253. package/dist/types/components/ErrorSummary/ErrorSummary.d.ts +22 -2
  254. package/dist/types/components/ErrorSummary/ErrorSummary.d.ts.map +1 -1
  255. package/dist/types/components/ErrorSummary/ErrorSummaryItem.d.ts +11 -21
  256. package/dist/types/components/ErrorSummary/ErrorSummaryItem.d.ts.map +1 -1
  257. package/dist/types/components/ErrorSummary/ErrorSummaryLink.d.ts +10 -0
  258. package/dist/types/components/ErrorSummary/ErrorSummaryLink.d.ts.map +1 -0
  259. package/dist/types/components/ErrorSummary/index.d.ts +24 -7
  260. package/dist/types/components/ErrorSummary/index.d.ts.map +1 -1
  261. package/dist/types/components/Field/Field.d.ts +15 -2
  262. package/dist/types/components/Field/Field.d.ts.map +1 -1
  263. package/dist/types/components/Field/FieldAffix.d.ts +21 -0
  264. package/dist/types/components/Field/FieldAffix.d.ts.map +1 -1
  265. package/dist/types/components/Field/FieldCounter.d.ts +35 -6
  266. package/dist/types/components/Field/FieldCounter.d.ts.map +1 -1
  267. package/dist/types/components/Field/index.d.ts +7 -5
  268. package/dist/types/components/Field/index.d.ts.map +1 -1
  269. package/dist/types/components/Fieldset/Fieldset.d.ts +15 -0
  270. package/dist/types/components/Fieldset/Fieldset.d.ts.map +1 -1
  271. package/dist/types/components/Fieldset/FieldsetDescription.d.ts +8 -0
  272. package/dist/types/components/Fieldset/FieldsetDescription.d.ts.map +1 -1
  273. package/dist/types/components/Fieldset/FieldsetLegend.d.ts +6 -0
  274. package/dist/types/components/Fieldset/FieldsetLegend.d.ts.map +1 -1
  275. package/dist/types/components/Fieldset/index.d.ts +10 -3
  276. package/dist/types/components/Fieldset/index.d.ts.map +1 -1
  277. package/dist/types/components/Heading/Heading.d.ts +6 -2
  278. package/dist/types/components/Heading/Heading.d.ts.map +1 -1
  279. package/dist/types/components/Heading/index.d.ts +2 -1
  280. package/dist/types/components/Heading/index.d.ts.map +1 -1
  281. package/dist/types/components/Input/Input.d.ts +22 -11
  282. package/dist/types/components/Input/Input.d.ts.map +1 -1
  283. package/dist/types/components/Label/Label.d.ts +2 -2
  284. package/dist/types/components/Label/index.d.ts +2 -1
  285. package/dist/types/components/Label/index.d.ts.map +1 -1
  286. package/dist/types/components/Link/Link.d.ts +13 -11
  287. package/dist/types/components/Link/Link.d.ts.map +1 -1
  288. package/dist/types/components/List/Lists.d.ts +20 -0
  289. package/dist/types/components/List/Lists.d.ts.map +1 -1
  290. package/dist/types/components/Modal/Modal.d.ts +31 -0
  291. package/dist/types/components/Modal/Modal.d.ts.map +1 -1
  292. package/dist/types/components/Modal/ModalBlock.d.ts +16 -0
  293. package/dist/types/components/Modal/ModalBlock.d.ts.map +1 -1
  294. package/dist/types/components/Modal/ModalTrigger.d.ts +13 -4
  295. package/dist/types/components/Modal/ModalTrigger.d.ts.map +1 -1
  296. package/dist/types/components/Modal/ModalTriggerContext.d.ts +12 -1
  297. package/dist/types/components/Modal/ModalTriggerContext.d.ts.map +1 -1
  298. package/dist/types/components/Modal/index.d.ts +15 -4
  299. package/dist/types/components/Modal/index.d.ts.map +1 -1
  300. package/dist/types/components/Pagination/Pagination.d.ts +18 -0
  301. package/dist/types/components/Pagination/Pagination.d.ts.map +1 -1
  302. package/dist/types/components/Pagination/PaginationButton.d.ts +8 -0
  303. package/dist/types/components/Pagination/PaginationButton.d.ts.map +1 -1
  304. package/dist/types/components/Pagination/PaginationItem.d.ts +10 -0
  305. package/dist/types/components/Pagination/PaginationItem.d.ts.map +1 -1
  306. package/dist/types/components/Pagination/PaginationList.d.ts +12 -0
  307. package/dist/types/components/Pagination/PaginationList.d.ts.map +1 -1
  308. package/dist/types/components/Pagination/index.d.ts +18 -0
  309. package/dist/types/components/Pagination/index.d.ts.map +1 -1
  310. package/dist/types/components/Pagination/usePagination.d.ts +29 -1
  311. package/dist/types/components/Pagination/usePagination.d.ts.map +1 -1
  312. package/dist/types/components/Paragraph/Paragraph.d.ts +1 -0
  313. package/dist/types/components/Paragraph/Paragraph.d.ts.map +1 -1
  314. package/dist/types/components/Paragraph/index.d.ts +2 -1
  315. package/dist/types/components/Paragraph/index.d.ts.map +1 -1
  316. package/dist/types/components/Popover/Popover.d.ts +34 -9
  317. package/dist/types/components/Popover/Popover.d.ts.map +1 -1
  318. package/dist/types/components/Popover/PopoverTrigger.d.ts +33 -0
  319. package/dist/types/components/Popover/PopoverTrigger.d.ts.map +1 -1
  320. package/dist/types/components/Popover/PopoverTriggerContext.d.ts +11 -0
  321. package/dist/types/components/Popover/PopoverTriggerContext.d.ts.map +1 -1
  322. package/dist/types/components/Popover/index.d.ts +25 -5
  323. package/dist/types/components/Popover/index.d.ts.map +1 -1
  324. package/dist/types/components/Radio/Radio.d.ts +17 -6
  325. package/dist/types/components/Radio/Radio.d.ts.map +1 -1
  326. package/dist/types/components/Radio/index.d.ts +2 -1
  327. package/dist/types/components/Radio/index.d.ts.map +1 -1
  328. package/dist/types/components/Search/Search.d.ts +16 -0
  329. package/dist/types/components/Search/Search.d.ts.map +1 -1
  330. package/dist/types/components/Search/SearchButton.d.ts +15 -1
  331. package/dist/types/components/Search/SearchButton.d.ts.map +1 -1
  332. package/dist/types/components/Search/SearchClear.d.ts +9 -0
  333. package/dist/types/components/Search/SearchClear.d.ts.map +1 -1
  334. package/dist/types/components/Search/SearchInput.d.ts +8 -0
  335. package/dist/types/components/Search/SearchInput.d.ts.map +1 -1
  336. package/dist/types/components/Search/index.d.ts +11 -7
  337. package/dist/types/components/Search/index.d.ts.map +1 -1
  338. package/dist/types/components/Select/Select.d.ts +17 -4
  339. package/dist/types/components/Select/Select.d.ts.map +1 -1
  340. package/dist/types/components/Select/SelectOptgroup.d.ts +11 -0
  341. package/dist/types/components/Select/SelectOptgroup.d.ts.map +1 -1
  342. package/dist/types/components/Select/SelectOption.d.ts +9 -0
  343. package/dist/types/components/Select/SelectOption.d.ts.map +1 -1
  344. package/dist/types/components/Select/index.d.ts +9 -0
  345. package/dist/types/components/Select/index.d.ts.map +1 -1
  346. package/dist/types/components/Skeleton/Skeleton.d.ts +15 -10
  347. package/dist/types/components/Skeleton/Skeleton.d.ts.map +1 -1
  348. package/dist/types/components/SkipLink/SkipLink.d.ts +19 -4
  349. package/dist/types/components/SkipLink/SkipLink.d.ts.map +1 -1
  350. package/dist/types/components/Spinner/Spinner.d.ts +9 -2
  351. package/dist/types/components/Spinner/Spinner.d.ts.map +1 -1
  352. package/dist/types/components/Spinner/index.d.ts +2 -1
  353. package/dist/types/components/Spinner/index.d.ts.map +1 -1
  354. package/dist/types/components/Suggestion/Suggestion.d.ts +102 -0
  355. package/dist/types/components/Suggestion/Suggestion.d.ts.map +1 -0
  356. package/dist/types/components/Suggestion/SuggestionClear.d.ts +35 -0
  357. package/dist/types/components/Suggestion/SuggestionClear.d.ts.map +1 -0
  358. package/dist/types/components/Suggestion/SuggestionEmpty.d.ts +28 -0
  359. package/dist/types/components/Suggestion/SuggestionEmpty.d.ts.map +1 -0
  360. package/dist/types/components/Suggestion/SuggestionInput.d.ts +21 -0
  361. package/dist/types/components/Suggestion/SuggestionInput.d.ts.map +1 -0
  362. package/dist/types/components/Suggestion/SuggestionList.d.ts +40 -0
  363. package/dist/types/components/Suggestion/SuggestionList.d.ts.map +1 -0
  364. package/dist/types/components/Suggestion/SuggestionOption.d.ts +6 -0
  365. package/dist/types/components/Suggestion/SuggestionOption.d.ts.map +1 -0
  366. package/dist/types/components/Suggestion/index.d.ts +56 -0
  367. package/dist/types/components/Suggestion/index.d.ts.map +1 -0
  368. package/dist/types/components/Switch/Switch.d.ts +15 -5
  369. package/dist/types/components/Switch/Switch.d.ts.map +1 -1
  370. package/dist/types/components/Switch/index.d.ts +2 -1
  371. package/dist/types/components/Switch/index.d.ts.map +1 -1
  372. package/dist/types/components/Table/Table.d.ts +33 -8
  373. package/dist/types/components/Table/Table.d.ts.map +1 -1
  374. package/dist/types/components/Table/TableBody.d.ts +11 -0
  375. package/dist/types/components/Table/TableBody.d.ts.map +1 -1
  376. package/dist/types/components/Table/TableCell.d.ts +6 -0
  377. package/dist/types/components/Table/TableCell.d.ts.map +1 -1
  378. package/dist/types/components/Table/TableFoot.d.ts +11 -0
  379. package/dist/types/components/Table/TableFoot.d.ts.map +1 -1
  380. package/dist/types/components/Table/TableHead.d.ts +11 -0
  381. package/dist/types/components/Table/TableHead.d.ts.map +1 -1
  382. package/dist/types/components/Table/TableHeaderCell.d.ts +6 -0
  383. package/dist/types/components/Table/TableHeaderCell.d.ts.map +1 -1
  384. package/dist/types/components/Table/TableRow.d.ts +9 -0
  385. package/dist/types/components/Table/TableRow.d.ts.map +1 -1
  386. package/dist/types/components/Table/index.d.ts +25 -0
  387. package/dist/types/components/Table/index.d.ts.map +1 -1
  388. package/dist/types/components/Tabs/Tabs.d.ts +25 -8
  389. package/dist/types/components/Tabs/Tabs.d.ts.map +1 -1
  390. package/dist/types/components/Tabs/TabsList.d.ts +1 -2
  391. package/dist/types/components/Tabs/TabsList.d.ts.map +1 -1
  392. package/dist/types/components/Tabs/TabsPanel.d.ts +9 -4
  393. package/dist/types/components/Tabs/TabsPanel.d.ts.map +1 -1
  394. package/dist/types/components/Tabs/TabsTab.d.ts +7 -2
  395. package/dist/types/components/Tabs/TabsTab.d.ts.map +1 -1
  396. package/dist/types/components/Tabs/index.d.ts +1 -2
  397. package/dist/types/components/Tabs/index.d.ts.map +1 -1
  398. package/dist/types/components/Tag/Tag.d.ts +3 -2
  399. package/dist/types/components/Tag/Tag.d.ts.map +1 -1
  400. package/dist/types/components/Tag/index.d.ts +2 -1
  401. package/dist/types/components/Tag/index.d.ts.map +1 -1
  402. package/dist/types/components/Textarea/Textarea.d.ts +2 -3
  403. package/dist/types/components/Textarea/Textarea.d.ts.map +1 -1
  404. package/dist/types/components/Textarea/index.d.ts +2 -1
  405. package/dist/types/components/Textarea/index.d.ts.map +1 -1
  406. package/dist/types/components/Textfield/Textfield.d.ts +30 -12
  407. package/dist/types/components/Textfield/Textfield.d.ts.map +1 -1
  408. package/dist/types/components/Textfield/index.d.ts +2 -1
  409. package/dist/types/components/Textfield/index.d.ts.map +1 -1
  410. package/dist/types/components/ToggleGroup/ToggleGroup.d.ts +25 -8
  411. package/dist/types/components/ToggleGroup/ToggleGroup.d.ts.map +1 -1
  412. package/dist/types/components/ToggleGroup/index.d.ts +13 -9
  413. package/dist/types/components/ToggleGroup/index.d.ts.map +1 -1
  414. package/dist/types/components/Tooltip/Tooltip.d.ts +8 -3
  415. package/dist/types/components/Tooltip/Tooltip.d.ts.map +1 -1
  416. package/dist/types/components/ValidationMessage/ValidationMessage.d.ts +6 -1
  417. package/dist/types/components/ValidationMessage/ValidationMessage.d.ts.map +1 -1
  418. package/dist/types/components/ValidationMessage/index.d.ts +2 -1
  419. package/dist/types/components/ValidationMessage/index.d.ts.map +1 -1
  420. package/dist/types/components/index.d.ts +1 -0
  421. package/dist/types/components/index.d.ts.map +1 -1
  422. package/dist/types/utilities/RovingFocus/useRovingFocus.d.ts +14 -1
  423. package/dist/types/utilities/RovingFocus/useRovingFocus.d.ts.map +1 -1
  424. package/dist/types/utilities/hooks/index.d.ts +0 -1
  425. package/dist/types/utilities/hooks/index.d.ts.map +1 -1
  426. package/dist/types/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts +6 -325
  427. package/dist/types/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts.map +1 -1
  428. package/dist/types/utilities/hooks/useRadioGroup/useRadioGroup.d.ts +13 -327
  429. package/dist/types/utilities/hooks/useRadioGroup/useRadioGroup.d.ts.map +1 -1
  430. package/dist/types/utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.d.ts +1 -1
  431. package/dist/types/utilities/hooks/useSynchronizedAnimation/useSynchronizedAnimation.d.ts.map +1 -1
  432. package/package.json +13 -12
  433. package/dist/cjs/utilities/hooks/usePrevious/usePrevious.js +0 -14
  434. package/dist/esm/utilities/hooks/usePrevious/usePrevious.js +0 -12
  435. package/dist/types/utilities/hooks/usePrevious/usePrevious.d.ts +0 -2
  436. package/dist/types/utilities/hooks/usePrevious/usePrevious.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAUlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAM5C,MAAM,MAAM,aAAa,GAAG;IA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AO;IACjB;;OAEG;iBACU,MAAM;IACnB;;;;OAIG;cACO,OAAO;IACjB;;;OAGG;mBACY,MAAM;IACrB;;;;;;;OAOG;aACM,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO;IACxD;;;;;;OAMG;kBACW,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM;IACxC;;;;OAIG;aACM,OAAO;;;;;;;;;8JAqXjB,CAAC"}
@@ -19,7 +19,7 @@ export type ComboboxContextType = {
19
19
  size: NonNullable<ComboboxProps['size']>;
20
20
  formFieldProps: ReturnType<typeof useFormField>;
21
21
  refs: UseFloatingReturn['refs'];
22
- inputRef: RefObject<HTMLInputElement>;
22
+ inputRef: RefObject<HTMLInputElement | null>;
23
23
  open: boolean;
24
24
  inputValue: string;
25
25
  customIds: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"ComboboxContext.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;IACjD,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;IACjD,QAAQ,EAAE,WAAW,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;IACjD,QAAQ,EAAE,a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,IAAI,KAAK,IAAI,CAAC;CAC9D,CAAC;AAEF,eAAO,MAAM,eAAe,gDAE3B,CAAC"}
@@ -14,7 +14,7 @@ export type ComboboxOptionProps = {
14
14
  */
15
15
  displayValue?: string;
16
16
  } & ButtonHTMLAttributes<HTMLButtonElement>;
17
- declare const ComboboxOption: React.MemoExoticComponent<React.ForwardRefExoticComponent<{
17
+ declare const ComboboxOption: React.NamedExoticComponent<{
18
18
  /**
19
19
  * The value returned when the option is selected
20
20
  */
@@ -28,7 +28,7 @@ declare const ComboboxOption: React.MemoExoticComponent<React.ForwardRefExoticCo
28
28
  * Required if children is not composed of strings only.
29
29
  */
30
30
  displayValue?: string;
31
- } & ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>>;
31
+ } & ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
32
32
  export { ComboboxOption };
33
33
  export declare function isComboboxOption(child: ReactNode): child is ReactElement<ComboboxOptionProps>;
34
34
  //# sourceMappingURL=Option.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Option/Option.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAU3E,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C,QAAA,MAAM,cAAc;IAflB;;OAEG;WACI,MAAM;IACb;;OAEG;kBACW,MAAM;IACpB;;;OAGG;mBACY,MAAM;sFAoEtB,CAAC;AAIF,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,YAAY,CAAC,mBAAmB,CAAC,CAE5C"}
1
+ {"version":3,"file":"Option.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Option/Option.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAU3E,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAE5C,QAAA,MAAM,cAAc;IAflB;;OAEG;WACI,MAAM;IACb;;OAEG;kBACW,MAAM;IACpB;;;OAGG;mBACY,MAAM;qFAoEtB,CAAC;AAIF,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,SAAS,GACf,KAAK,IAAI,YAAY,CAAC,mBAAmB,CAAC,CAE5C"}
@@ -1,15 +1,17 @@
1
1
  import type { Ref } from 'react';
2
+ import type { Option } from '../useCombobox';
2
3
  type UseComboboxOptionProps = {
3
4
  id?: string;
4
5
  ref: Ref<HTMLButtonElement>;
5
6
  value: string;
6
7
  };
7
- export declare const useComboboxOption: ({ id, ref, value, }: UseComboboxOptionProps) => {
8
+ type UseComboboxOptionReturn = {
8
9
  id: string;
9
- ref: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | null;
10
- selected: import("../useCombobox").Option;
10
+ ref: Ref<HTMLButtonElement>;
11
+ selected: Option;
11
12
  active: boolean;
12
- onOptionClick: (...args: never[]) => void;
13
+ onOptionClick: () => void;
13
14
  };
15
+ export declare const useComboboxOption: ({ id, ref, value, }: UseComboboxOptionProps) => UseComboboxOptionReturn;
14
16
  export {};
15
17
  //# sourceMappingURL=useComboboxOption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useComboboxOption.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Option/useComboboxOption.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,KAAK,sBAAsB,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,iBAAiB,wBAI3B,sBAAsB;;;;;;CAuDxB,CAAC"}
1
+ {"version":3,"file":"useComboboxOption.d.ts","sourceRoot":"","sources":["../../../../src/components/Combobox/Option/useComboboxOption.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAKjC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAG7C,KAAK,sBAAsB,GAAG;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,wBAI3B,sBAAsB,KAAG,uBAuD3B,CAAC"}
@@ -5,6 +5,9 @@ type ComboboxComponent = typeof ComboboxRoot & {
5
5
  Option: typeof ComboboxOption;
6
6
  Empty: typeof ComboboxEmpty;
7
7
  };
8
+ /**
9
+ * @deprecated Use `Suggestion` instead
10
+ */
8
11
  declare const Combobox: ComboboxComponent;
9
12
  export type { ComboboxProps } from './Combobox';
10
13
  export type { ComboboxOptionProps } from './Option/Option';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,iBAAiB,GAAG,OAAO,YAAY,GAAG;IAC7C,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,KAAK,EAAE,OAAO,aAAa,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAmB,iBAAiB,CAAC;AAQnD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,KAAK,iBAAiB,GAAG,OAAO,YAAY,GAAG;IAC7C,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,KAAK,EAAE,OAAO,aAAa,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,QAAQ,EAAmB,iBAAiB,CAAC;AAQnD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
@@ -8,7 +8,7 @@ export declare const useFloatingCombobox: ({ listRef }: UseFloatingComboboxProps
8
8
  activeIndex: number;
9
9
  refs: {
10
10
  reference: MutableRefObject<import("@floating-ui/react-dom").ReferenceType | null>;
11
- floating: MutableRefObject<HTMLElement | null>;
11
+ floating: React.MutableRefObject<HTMLElement | null>;
12
12
  setReference: (node: import("@floating-ui/react-dom").ReferenceType | null) => void;
13
13
  setFloating: (node: HTMLElement | null) => void;
14
14
  } & import("@floating-ui/react").ExtendedRefs<HTMLInputElement>;
@@ -25,7 +25,7 @@ export declare const useFloatingCombobox: ({ listRef }: UseFloatingComboboxProps
25
25
  open: boolean;
26
26
  onOpenChange: (open: boolean, event?: Event, reason?: import("@floating-ui/react").OpenChangeReason) => void;
27
27
  events: import("@floating-ui/react").FloatingEvents;
28
- dataRef: MutableRefObject<import("@floating-ui/react").ContextData>;
28
+ dataRef: React.MutableRefObject<import("@floating-ui/react").ContextData>;
29
29
  nodeId: string | undefined;
30
30
  floatingId: string;
31
31
  refs: import("@floating-ui/react").ExtendedRefs<HTMLInputElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"useFloatingCombobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/useFloatingCombobox.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAK9C,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,gBAAgB,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBAAiB,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuExE,CAAC"}
1
+ {"version":3,"file":"useFloatingCombobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/useFloatingCombobox.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAK9C,KAAK,wBAAwB,GAAG;IAC9B,OAAO,EAAE,gBAAgB,CAAC,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBAAiB,wBAAwB;;;;;;kBAwEw0N,MAAO,gBAAgB;;;;;;;;;;;;;wBAA5X,MAAO,aAAa;;;;iBAAoe,MAAO,gBAAgB;;;;;;oCAA6yxB,MAAO,SAAS;mCAA0E,MAAO,SAAS;oCAAgF,MAAM,SAAS;;;;CADhjgC,CAAC"}
@@ -22,9 +22,13 @@ export type DetailsProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDetailsE
22
22
  * @default false
23
23
  */
24
24
  defaultOpen?: boolean;
25
- /** Callback function when Details toggles due to click on summary or find in page-search */
25
+ /**
26
+ * Callback function when Details toggles due to click on summary or find in page-search
27
+ */
26
28
  onToggle?: (event: Event) => void;
27
- /** Content should be one `<Details.Summary>` and `<Details.Content>` */
29
+ /**
30
+ * Content should be one `<Details.Summary>` and `<Details.Content>`
31
+ */
28
32
  children?: ReactNode;
29
33
  }> & ({
30
34
  open: boolean;
@@ -35,10 +39,11 @@ export type DetailsProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDetailsE
35
39
  });
36
40
  /**
37
41
  * Details component, contains `Details.Summary` and `Details.Content` components.
42
+ *
38
43
  * @example
39
44
  * <Details>
40
- * <DetailsSummary>Header</DetailsSummary>
41
- * <DetailsContent>Content</DetailsContent>
45
+ * <Details.Summary>Header</Details.Summary>
46
+ * <Details.Content>Content</Details.Content>
42
47
  * </Details>
43
48
  */
44
49
  export declare const Details: React.ForwardRefExoticComponent<DetailsProps & React.RefAttributes<HTMLDetailsElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../src/components/Details/Details.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,YAAY,GAAG,cAAc,CAAC,kBAAkB,CAAC,EACjD;IACE;;;OAGG;IACH,YAAY,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAChC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CACF,GACC,CACI;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,GACnD;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,CACtD,CAAC;AAEJ;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,yFAmCnB,CAAC"}
1
+ {"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../src/components/Details/Details.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,YAAY,GAAG,cAAc,CAAC,kBAAkB,CAAC,EACjD;IACE;;;OAGG;IACH,YAAY,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAChC;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CACF,GACC,CACI;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,GACnD;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,CACtD,CAAC;AAEJ;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,yFAmCnB,CAAC"}
@@ -2,6 +2,7 @@ import type { HTMLAttributes } from 'react';
2
2
  export type DetailsContentProps = HTMLAttributes<HTMLDivElement>;
3
3
  /**
4
4
  * Details content component, contains the content of the details item.
5
+ *
5
6
  * @example
6
7
  * <DetailsContent>Content</DetailsContent>
7
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DetailsContent.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,cAAc,4FAI1B,CAAC"}
1
+ {"version":3,"file":"DetailsContent.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEjE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,4FAI1B,CAAC"}
@@ -5,6 +5,7 @@ export type DetailsSummaryProps = {
5
5
  } & HTMLAttributes<HTMLElement>;
6
6
  /**
7
7
  * Details summary component, contains a the heading to toggle the content.
8
+ *
8
9
  * @example
9
10
  * <Details.Summary>Heading</Details.Summary>
10
11
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DetailsSummary.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,MAAM,MAAM,mBAAmB,GAAG;IAChC,mBAAmB;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAEhC;;;;GAIG;AACH,eAAO,MAAM,cAAc;IATzB,mBAAmB;cACT,SAAS;mEAapB,CAAC"}
1
+ {"version":3,"file":"DetailsSummary.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,MAAM,MAAM,mBAAmB,GAAG;IAChC,mBAAmB;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;AAEhC;;;;;GAKG;AACH,eAAO,MAAM,cAAc;IAVzB,mBAAmB;cACT,SAAS;mEAcpB,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import { DetailsContent } from './DetailsContent';
2
2
  import { DetailsSummary } from './DetailsSummary';
3
3
  /**
4
- * Details are used to toggle the visibility of content.
4
+ * Details component, contains `Details.Summary` and `Details.Content` components.
5
+ *
5
6
  * @example
6
7
  * <Details>
7
- * <Details.Summary>Heading 1</Details.Summary>
8
- * <Details.Content>Content 1</Details.Content>
8
+ * <Details.Summary>Header</Details.Summary>
9
+ * <Details.Content>Content</Details.Content>
9
10
  * </Details>
10
11
  */
11
12
  declare const Details: React.ForwardRefExoticComponent<import("./Details").DetailsProps & React.RefAttributes<HTMLDetailsElement>> & {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Details/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;GAOG;AACH,QAAA,MAAM,OAAO;;;;;CAGX,CAAC;AAKH,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Details/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;GAQG;AACH,QAAA,MAAM,OAAO;;;;;CAGX,CAAC;AAKH,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
@@ -1,4 +1,10 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  export type DividerProps = HTMLAttributes<HTMLHRElement>;
3
+ /**
4
+ * Divider component, used to separate content. Uses `hr` element.
5
+ *
6
+ * @example
7
+ * <Divider />
8
+ */
3
9
  export declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLHRElement>>;
4
10
  //# sourceMappingURL=Divider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAEzD,eAAO,MAAM,OAAO,oFAalB,CAAC"}
1
+ {"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,OAAO,oFAalB,CAAC"}
@@ -3,13 +3,42 @@ import type { DefaultProps } from '../../types';
3
3
  import type { MergeRight } from '../../utilities';
4
4
  import type { PopoverProps } from '../Popover';
5
5
  export type DropdownProps = MergeRight<DefaultProps & Omit<PopoverProps, 'variant'>, {
6
- /** The placement of the dropdown
6
+ /**
7
+ * The placement of the dropdown
7
8
  * @default bottom-end
8
9
  */
9
10
  placement?: Placement;
10
11
  }>;
12
+ /**
13
+ * Dropdown component, used to display a list of options.
14
+ *
15
+ * @example with TriggerContext
16
+ * <Dropdown.TriggerContext>
17
+ * <Dropdown.Trigger>Dropdown trigger</Dropdown.Trigger>
18
+ * <Dropdown placement='bottom-end'>
19
+ * <Dropdown.Heading>Dropdown</Dropdown.Heading>
20
+ * <Dropdown.List>
21
+ * <Dropdown.Item>
22
+ * <Dropdown.Button>Option</Dropdown.Button>
23
+ * </Dropdown.Item>
24
+ * </Dropdown.List>
25
+ * </Dropdown>
26
+ * </Dropdown.TriggerContext>
27
+ *
28
+ * @example without TriggerContext
29
+ * <Button popovertarget="my-dropdown">Trigger</Button>
30
+ * <Dropdown id="my-dropdown">
31
+ * <Dropdown.Heading>Heading</Dropdown.Heading>
32
+ * <Dropdown.List>
33
+ * <Dropdown.Item>
34
+ * <Dropdown.Button>Item</Dropdown.Button>
35
+ * </Dropdown.Item>
36
+ * </Dropdown.List>
37
+ * </Dropdown>
38
+ */
11
39
  export declare const Dropdown: React.ForwardRefExoticComponent<Omit<DefaultProps & Omit<PopoverProps, "variant">, "placement"> & {
12
- /** The placement of the dropdown
40
+ /**
41
+ * The placement of the dropdown
13
42
  * @default bottom-end
14
43
  */
15
44
  placement?: Placement;
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,UAAU,CACpC,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,EAC5C;IACE;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CACF,CAAC;AAEF,eAAO,MAAM,QAAQ;IAPjB;;OAEG;gBACS,SAAS;wCAkBxB,CAAC"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,UAAU,CACpC,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,EAC5C;IACE;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,QAAQ;IAnCjB;;;OAGG;gBACS,SAAS;wCA6CxB,CAAC"}
@@ -4,13 +4,16 @@ export type DropdownTriggerContextProps = {
4
4
  };
5
5
  /**
6
6
  * DropdownTriggerContext enables use of the `.Trigger` for the Dropdown component.
7
+ *
7
8
  * @example
8
9
  * <Dropdown.TriggerContext>
9
10
  * <Dropdown.Trigger>Dropdown</Dropdown.Trigger>
10
11
  * <Dropdown>
11
12
  * <Dropdown.Heading>Heading</Dropdown.Heading>
12
13
  * <Dropdown.List>
13
- * <Dropdown.Item>Button 1</Dropdown.Item>
14
+ * <Dropdown.Item>
15
+ * <Dropdown.Button>Button</Dropdown.Button>
16
+ * </Dropdown.Item>
14
17
  * </Dropdown.List>
15
18
  * </Dropdown>
16
19
  * </Dropdown.TriggerContext>
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownTriggerContext.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/DropdownTriggerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB;oBAEhC,2BAA2B;;CAE7B,CAAC"}
1
+ {"version":3,"file":"DropdownTriggerContext.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/DropdownTriggerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,sBAAsB;oBAEhC,2BAA2B;;CAE7B,CAAC"}
@@ -5,17 +5,19 @@ import { DropdownList } from './DropdownList';
5
5
  import { DropdownTrigger } from './DropdownTrigger';
6
6
  import { DropdownTriggerContext } from './DropdownTriggerContext';
7
7
  /**
8
+ * Dropdown component, used to display a list of options.
9
+ *
8
10
  * @example
9
11
  * <Dropdown.TriggerContext>
10
- * <Dropdown.Trigger>Dropdown</Dropdown.Trigger>
11
- * <Dropdown>
12
- * <Dropdown.Heading>Heading</Dropdown.Heading>
13
- * <Dropdown.List>
14
- * <Dropdown.Item>
15
- * <Dropdown.Button>Button 1</Dropdown.Button>
16
- * </Dropdown.Item>
17
- * </Dropdown.List>
18
- * </Dropdown>
12
+ * <Dropdown.Trigger>Dropdown trigger</Dropdown.Trigger>
13
+ * <Dropdown placement='bottom-end'>
14
+ * <Dropdown.Heading>Dropdown</Dropdown.Heading>
15
+ * <Dropdown.List>
16
+ * <Dropdown.Item>
17
+ * <Dropdown.Button>Option</Dropdown.Button>
18
+ * </Dropdown.Item>
19
+ * </Dropdown.List>
20
+ * </Dropdown>
19
21
  * </Dropdown.TriggerContext>
20
22
  */
21
23
  declare const Dropdown: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & Omit<import("..").PopoverProps, "variant">, "placement"> & {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dropdown/index.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;;;;GAeG;AACH,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;CAOZ,CAAC;AASH,YAAY,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAC5E,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,cAAc,EACd,eAAe,GAChB,CAAC"}
@@ -5,7 +5,27 @@ type ErrorSummaryContextType = {
5
5
  setHeadingId: (id: string) => void;
6
6
  };
7
7
  export declare const ErrorSummaryContext: React.Context<ErrorSummaryContextType>;
8
- export type ErrorSummaryProps = Omit<HTMLAttributes<HTMLDivElement> & DefaultProps, 'data-color'>;
9
- export declare const ErrorSummary: React.ForwardRefExoticComponent<ErrorSummaryProps & React.RefAttributes<HTMLDivElement>>;
8
+ export type ErrorSummaryProps = {
9
+ asChild?: React.ReactNode;
10
+ } & Omit<HTMLAttributes<HTMLDivElement> & DefaultProps, 'data-color'>;
11
+ /**
12
+ * ErrorSummary component, used to display a list of errors.
13
+ *
14
+ * @example
15
+ * <ErrorSummary>
16
+ * <ErrorSummary.Heading>Heading</ErrorSummary.Heading>
17
+ * <ErrorSummary.List>
18
+ * <ErrorSummary.Item>
19
+ * <ErrorSummary.Link href='#'>Error 1</ErrorSummary.Link>
20
+ * </ErrorSummary.Item>
21
+ * <ErrorSummary.Item>
22
+ * <ErrorSummary.Link href='#'>Error 2</ErrorSummary.Link>
23
+ * </ErrorSummary.Item>
24
+ * </ErrorSummary.List>
25
+ * </ErrorSummary>
26
+ */
27
+ export declare const ErrorSummary: React.ForwardRefExoticComponent<{
28
+ asChild?: React.ReactNode;
29
+ } & Omit<HTMLAttributes<HTMLDivElement> & DefaultProps, "data-color"> & React.RefAttributes<HTMLDivElement>>;
10
30
  export {};
11
31
  //# sourceMappingURL=ErrorSummary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorSummary.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorSummary/ErrorSummary.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,KAAK,uBAAuB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,wCAG9B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAClC,cAAc,CAAC,cAAc,CAAC,GAAG,YAAY,EAC7C,YAAY,CACb,CAAC;AAEF,eAAO,MAAM,YAAY,0FA4BxB,CAAC"}
1
+ {"version":3,"file":"ErrorSummary.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorSummary/ErrorSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,KAAK,uBAAuB,GAAG;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,wCAG9B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,YAAY,EAAE,YAAY,CAAC,CAAC;AAEtE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY;cAnBb,KAAK,CAAC,SAAS;4GAkD1B,CAAC"}
@@ -1,22 +1,12 @@
1
- import type { LinkProps } from '../Link';
2
- import type { ListItemProps } from '../List';
3
- type RequiredHref = {
4
- href: LinkProps['href'];
5
- /**
6
- * Change the default rendered element for the one passed as a child, merging their props and behavior.
7
- * @default false
8
- */
9
- asChild?: false;
10
- };
11
- type OptionalHref = {
12
- href?: LinkProps['href'];
13
- /**
14
- * Change the default rendered element for the one passed as a child, merging their props and behavior.
15
- * @default false
16
- */
17
- asChild: true;
18
- };
19
- export type ErrorSummaryItemProps = (RequiredHref | OptionalHref) & Omit<ListItemProps, 'asChild' | 'ref'>;
20
- export declare const ErrorSummaryItem: React.ForwardRefExoticComponent<ErrorSummaryItemProps & React.RefAttributes<HTMLLIElement>>;
21
- export {};
1
+ import { type ListItemProps } from '../List';
2
+ export type ErrorSummaryItemProps = ListItemProps;
3
+ /**
4
+ * ErrorSummaryItem component, used to display an error link in the ErrorSummary.
5
+ *
6
+ * @example
7
+ * <ErrorSummary.Item href='#'>Link to error</ErrorSummary.Item>
8
+ */
9
+ export declare const ErrorSummaryItem: React.ForwardRefExoticComponent<{
10
+ asChild?: boolean;
11
+ } & React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
22
12
  //# sourceMappingURL=ErrorSummaryItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorSummaryItem.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorSummary/ErrorSummaryItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG7C,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB;;;OAGG;IACH,OAAO,EAAE,IAAI,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,YAAY,GAAG,YAAY,CAAC,GAC/D,IAAI,CAAC,aAAa,EAAE,SAAS,GAAG,KAAK,CAAC,CAAC;AAEzC,eAAO,MAAM,gBAAgB,6FAc3B,CAAC"}
1
+ {"version":3,"file":"ErrorSummaryItem.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorSummary/ErrorSummaryItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;+EAK3B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { LinkProps } from '../Link';
2
+ export type ErrorSummaryLinkProps = LinkProps;
3
+ /**
4
+ * Link component used in ErrorSummary.
5
+ */
6
+ export declare const ErrorSummaryLink: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
7
+ children: React.ReactNode;
8
+ asChild?: boolean;
9
+ } & React.RefAttributes<HTMLAnchorElement>>;
10
+ //# sourceMappingURL=ErrorSummaryLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorSummaryLink.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorSummary/ErrorSummaryLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC;AAE9C;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;2CAK3B,CAAC"}
@@ -1,29 +1,46 @@
1
1
  import { ErrorSummaryHeading } from './ErrorSummaryHeading';
2
2
  import { ErrorSummaryItem } from './ErrorSummaryItem';
3
+ import { ErrorSummaryLink } from './ErrorSummaryLink';
3
4
  import { ErrorSummaryList } from './ErrorSummaryList';
4
5
  /**
6
+ * ErrorSummary component, used to display a list of errors.
7
+ *
5
8
  * @example
6
9
  * <ErrorSummary>
7
- * <ErrorSummary.Heading>Heading</ErrorSummary.Heading>
8
- * <ErrorSummary.List>
9
- * <ErrorSummary.Item>Item 1</ErrorSummary.Item>
10
- * </ErrorSummary.List>
10
+ * <ErrorSummary.Heading>Heading</ErrorSummary.Heading>
11
+ * <ErrorSummary.List>
12
+ * <ErrorSummary.Item>
13
+ * <ErrorSummary.Link href='#'>Error 1</ErrorSummary.Link>
14
+ * </ErrorSummary.Item>
15
+ * <ErrorSummary.Item>
16
+ * <ErrorSummary.Link href='#'>Error 2</ErrorSummary.Link>
17
+ * </ErrorSummary.Item>
18
+ * </ErrorSummary.List>
11
19
  * </ErrorSummary>
12
20
  */
13
- declare const ErrorSummary: React.ForwardRefExoticComponent<import("./ErrorSummary").ErrorSummaryProps & React.RefAttributes<HTMLDivElement>> & {
21
+ declare const ErrorSummary: React.ForwardRefExoticComponent<{
22
+ asChild?: React.ReactNode;
23
+ } & Omit<React.HTMLAttributes<HTMLDivElement> & import("../../types").DefaultProps, "data-color"> & React.RefAttributes<HTMLDivElement>> & {
14
24
  Heading: React.ForwardRefExoticComponent<{
15
25
  level?: 1 | 2 | 3 | 4 | 5 | 6;
16
26
  'data-size'?: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | (string & {});
17
27
  asChild?: boolean;
18
28
  } & React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
19
- Item: React.ForwardRefExoticComponent<import("./ErrorSummaryItem").ErrorSummaryItemProps & React.RefAttributes<HTMLLIElement>>;
29
+ Item: React.ForwardRefExoticComponent<{
30
+ asChild?: boolean;
31
+ } & React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
20
32
  List: React.ForwardRefExoticComponent<{
21
33
  asChild?: boolean;
22
34
  } & import("../../types").DefaultProps & Omit<React.HTMLAttributes<HTMLUListElement>, "size"> & React.RefAttributes<HTMLOListElement>>;
35
+ Link: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "asChild"> & {
36
+ children: React.ReactNode;
37
+ asChild?: boolean;
38
+ } & React.RefAttributes<HTMLAnchorElement>>;
23
39
  };
24
40
  export type { ErrorSummaryProps } from './ErrorSummary';
25
41
  export type { ErrorSummaryItemProps } from './ErrorSummaryItem';
26
42
  export type { ErrorSummaryHeadingProps } from './ErrorSummaryHeading';
27
43
  export type { ErrorSummaryListProps } from './ErrorSummaryList';
28
- export { ErrorSummary, ErrorSummaryItem, ErrorSummaryHeading, ErrorSummaryList, };
44
+ export type { ErrorSummaryLinkProps } from './ErrorSummaryLink';
45
+ export { ErrorSummary, ErrorSummaryItem, ErrorSummaryHeading, ErrorSummaryList, ErrorSummaryLink, };
29
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorSummary/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;;GAQG;AACH,QAAA,MAAM,YAAY;;;;;;;;;;CAIhB,CAAC;AAMH,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GACjB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorSummary/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,YAAY;cART,MAAG,SAAS;;;;;;;;;;;;;;;;;CAanB,CAAC;AAOH,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AACtE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACjB,CAAC"}
@@ -1,13 +1,26 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  import type { DefaultProps } from '../../types';
3
3
  export type FieldProps = {
4
- /** Position of toggle inputs (radio, checkbox, switch) in field
4
+ /**
5
+ * Position of toggle inputs (radio, checkbox, switch) in field
5
6
  * @default start
6
7
  */
7
8
  position?: 'start' | 'end';
8
9
  } & HTMLAttributes<HTMLDivElement> & DefaultProps;
10
+ /**
11
+ * Field component, used to wrap a form field.
12
+ *
13
+ * @example
14
+ * <Field>
15
+ * <Label>Kort beskrivelse</Label>
16
+ * <Field.Description>Beskrivelse</Field.Description>
17
+ * <Input />
18
+ * <ValidationMessage>Feilmelding</ValidationMessage>
19
+ * </Field>
20
+ */
9
21
  export declare const Field: React.ForwardRefExoticComponent<{
10
- /** Position of toggle inputs (radio, checkbox, switch) in field
22
+ /**
23
+ * Position of toggle inputs (radio, checkbox, switch) in field
11
24
  * @default start
12
25
  */
13
26
  position?: "start" | "end";
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CAC5B,GAAG,cAAc,CAAC,cAAc,CAAC,GAChC,YAAY,CAAC;AAEf,eAAO,MAAM,KAAK;IAPhB;;OAEG;eACQ,OAAO,GAAG,KAAK;wFAoB1B,CAAC"}
1
+ {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/components/Field/Field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CAC5B,GAAG,cAAc,CAAC,cAAc,CAAC,GAChC,YAAY,CAAC;AAEf;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK;IAnBhB;;;OAGG;eACQ,OAAO,GAAG,KAAK;wFA+B1B,CAAC"}
@@ -1,6 +1,27 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  export type FieldAffixesProps = Omit<HTMLAttributes<HTMLDivElement>, 'prefix'>;
3
+ /**
4
+ * FieldAffixes component, used to wrap a form field.
5
+ *
6
+ * @example
7
+ * <Field.Affixes>
8
+ * <Field.Affix>NOK</Field.Affix>
9
+ * <Input />
10
+ * <Field.Affix>pr. mnd.</Field.Affix>
11
+ * </Field.Affixes>
12
+ */
3
13
  export declare const FieldAffixes: React.ForwardRefExoticComponent<FieldAffixesProps & React.RefAttributes<HTMLDivElement>>;
4
14
  export type FieldAffixProps = Omit<HTMLAttributes<HTMLDivElement>, 'prefix'>;
15
+ /**
16
+ * FieldAffix component, used to wrap a form field.
17
+ * Use together with Field.Affixes.
18
+ *
19
+ * @example
20
+ * <Field.Affixes>
21
+ * <Field.Affix>NOK</Field.Affix>
22
+ * <Input />
23
+ * <Field.Affix>pr. mnd.</Field.Affix>
24
+ * </Field.Affixes>
25
+ */
5
26
  export declare const FieldAffix: React.ForwardRefExoticComponent<FieldAffixProps & React.RefAttributes<HTMLSpanElement>>;
6
27
  //# sourceMappingURL=FieldAffix.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldAffix.d.ts","sourceRoot":"","sources":["../../../src/components/Field/FieldAffix.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,CAAC;AAE/E,eAAO,MAAM,YAAY,0FAMxB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,CAAC;AAE7E,eAAO,MAAM,UAAU,yFAWtB,CAAC"}
1
+ {"version":3,"file":"FieldAffix.d.ts","sourceRoot":"","sources":["../../../src/components/Field/FieldAffix.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,CAAC;AAE/E;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,0FAMxB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC,CAAC;AAE7E;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,yFAWtB,CAAC"}