@navikt/ds-react 6.0.0-alpha.2 → 6.0.0-alpha.7

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 (658) hide show
  1. package/_docs.json +520 -60
  2. package/cjs/chat/Bubble.d.ts +0 -5
  3. package/cjs/chat/Bubble.js +2 -2
  4. package/cjs/chat/Bubble.js.map +1 -1
  5. package/cjs/chat/Chat.d.ts +0 -10
  6. package/cjs/chat/Chat.js +3 -3
  7. package/cjs/chat/Chat.js.map +1 -1
  8. package/cjs/date/context/useSharedMonthContext.js +2 -6
  9. package/cjs/date/context/useSharedMonthContext.js.map +1 -1
  10. package/cjs/date/datepicker/DatePicker.js +3 -5
  11. package/cjs/date/datepicker/DatePicker.js.map +1 -1
  12. package/cjs/date/datepicker/DatePickerStandalone.js +3 -5
  13. package/cjs/date/datepicker/DatePickerStandalone.js.map +1 -1
  14. package/cjs/date/datepicker/parts/DayButton.js +2 -5
  15. package/cjs/date/datepicker/parts/DayButton.js.map +1 -1
  16. package/cjs/date/datepicker/parts/DropdownCaption.js +3 -6
  17. package/cjs/date/datepicker/parts/DropdownCaption.js.map +1 -1
  18. package/cjs/date/datepicker/parts/Row.js +2 -1
  19. package/cjs/date/datepicker/parts/Row.js.map +1 -1
  20. package/cjs/date/hooks/useDatepicker.d.ts +1 -6
  21. package/cjs/date/hooks/useDatepicker.js +7 -11
  22. package/cjs/date/hooks/useDatepicker.js.map +1 -1
  23. package/cjs/date/hooks/useMonthPicker.d.ts +1 -6
  24. package/cjs/date/hooks/useMonthPicker.js.map +1 -1
  25. package/cjs/date/hooks/useRangeDatepicker.js +20 -25
  26. package/cjs/date/hooks/useRangeDatepicker.js.map +1 -1
  27. package/cjs/date/monthpicker/MonthButton.js +11 -15
  28. package/cjs/date/monthpicker/MonthButton.js.map +1 -1
  29. package/cjs/date/monthpicker/MonthCaption.js +4 -7
  30. package/cjs/date/monthpicker/MonthCaption.js.map +1 -1
  31. package/cjs/date/monthpicker/MonthPicker.js +7 -1
  32. package/cjs/date/monthpicker/MonthPicker.js.map +1 -1
  33. package/cjs/date/monthpicker/MonthPickerStandalone.js +7 -1
  34. package/cjs/date/monthpicker/MonthPickerStandalone.js.map +1 -1
  35. package/cjs/date/monthpicker/MonthSelector.js +8 -11
  36. package/cjs/date/monthpicker/MonthSelector.js.map +1 -1
  37. package/cjs/date/parts/DateInput.d.ts +1 -1
  38. package/cjs/date/utils/check-dates.js +2 -6
  39. package/cjs/date/utils/check-dates.js.map +1 -1
  40. package/cjs/date/utils/dates-disabled.js +3 -6
  41. package/cjs/date/utils/dates-disabled.js.map +1 -1
  42. package/cjs/date/utils/format-date.d.ts +1 -0
  43. package/cjs/date/utils/format-date.js +2 -5
  44. package/cjs/date/utils/format-date.js.map +1 -1
  45. package/cjs/date/utils/get-dates.js +14 -21
  46. package/cjs/date/utils/get-dates.js.map +1 -1
  47. package/cjs/date/utils/get-initial-year.js +2 -5
  48. package/cjs/date/utils/get-initial-year.js.map +1 -1
  49. package/cjs/date/utils/is-match.js +14 -20
  50. package/cjs/date/utils/is-match.js.map +1 -1
  51. package/cjs/date/utils/labels.d.ts +1 -0
  52. package/cjs/date/utils/labels.js.map +1 -1
  53. package/cjs/date/utils/locale.d.ts +1 -1
  54. package/cjs/date/utils/locale.js +4 -9
  55. package/cjs/date/utils/locale.js.map +1 -1
  56. package/cjs/date/utils/navigation.js +21 -24
  57. package/cjs/date/utils/navigation.js.map +1 -1
  58. package/cjs/date/utils/parse-date.d.ts +1 -0
  59. package/cjs/date/utils/parse-date.js +8 -13
  60. package/cjs/date/utils/parse-date.js.map +1 -1
  61. package/cjs/form/Textarea.js +8 -8
  62. package/cjs/form/Textarea.js.map +1 -1
  63. package/cjs/form/combobox/Combobox.js +1 -1
  64. package/cjs/form/combobox/Combobox.js.map +1 -1
  65. package/cjs/form/combobox/ComboboxProvider.js +2 -1
  66. package/cjs/form/combobox/ComboboxProvider.js.map +1 -1
  67. package/cjs/form/combobox/ComboboxWrapper.js +1 -1
  68. package/cjs/form/combobox/ComboboxWrapper.js.map +1 -1
  69. package/cjs/form/combobox/FilteredOptions/FilteredOptions.js +59 -41
  70. package/cjs/form/combobox/FilteredOptions/FilteredOptions.js.map +1 -1
  71. package/cjs/form/combobox/FilteredOptions/filtered-options-util.d.ts +2 -1
  72. package/cjs/form/combobox/FilteredOptions/filtered-options-util.js +3 -1
  73. package/cjs/form/combobox/FilteredOptions/filtered-options-util.js.map +1 -1
  74. package/cjs/form/combobox/FilteredOptions/filteredOptionsContext.js +15 -3
  75. package/cjs/form/combobox/FilteredOptions/filteredOptionsContext.js.map +1 -1
  76. package/cjs/form/combobox/FilteredOptions/useVirtualFocus.d.ts +2 -4
  77. package/cjs/form/combobox/FilteredOptions/useVirtualFocus.js +52 -32
  78. package/cjs/form/combobox/FilteredOptions/useVirtualFocus.js.map +1 -1
  79. package/cjs/form/combobox/Input/Input.js +3 -1
  80. package/cjs/form/combobox/Input/Input.js.map +1 -1
  81. package/cjs/form/combobox/SelectedOptions/selectedOptionsContext.d.ts +5 -2
  82. package/cjs/form/combobox/SelectedOptions/selectedOptionsContext.js +3 -1
  83. package/cjs/form/combobox/SelectedOptions/selectedOptionsContext.js.map +1 -1
  84. package/cjs/form/combobox/types.d.ts +14 -0
  85. package/cjs/form/error-summary/ErrorSummary.d.ts +9 -3
  86. package/cjs/form/error-summary/ErrorSummary.js +4 -9
  87. package/cjs/form/error-summary/ErrorSummary.js.map +1 -1
  88. package/cjs/form/error-summary/ErrorSummaryItem.d.ts +1 -1
  89. package/cjs/form/error-summary/ErrorSummaryItem.js +2 -1
  90. package/cjs/form/error-summary/ErrorSummaryItem.js.map +1 -1
  91. package/cjs/form/search/Search.d.ts +1 -0
  92. package/cjs/form/search/Search.js +2 -2
  93. package/cjs/form/search/Search.js.map +1 -1
  94. package/cjs/index.d.ts +1 -2
  95. package/cjs/index.js +1 -3
  96. package/cjs/index.js.map +1 -1
  97. package/cjs/layout/bleed/Bleed.d.ts +2 -2
  98. package/cjs/layout/utilities/css.js +4 -0
  99. package/cjs/layout/utilities/css.js.map +1 -1
  100. package/cjs/layout/utilities/types.d.ts +1 -1
  101. package/cjs/overlays/index.d.ts +2 -0
  102. package/cjs/overlays/index.js +6 -0
  103. package/cjs/overlays/index.js.map +1 -0
  104. package/cjs/overlays/portal/Portal.d.ts +11 -0
  105. package/cjs/{grid/Grid.js → overlays/portal/Portal.js} +15 -11
  106. package/cjs/overlays/portal/Portal.js.map +1 -0
  107. package/cjs/tabs/TabList.js +2 -2
  108. package/cjs/tabs/TabList.js.map +1 -1
  109. package/cjs/tabs/TabPanel.js +2 -2
  110. package/cjs/tabs/TabPanel.js.map +1 -1
  111. package/cjs/timeline/AxisLabels.js +4 -4
  112. package/cjs/timeline/AxisLabels.js.map +1 -1
  113. package/cjs/tooltip/Tooltip.js +3 -7
  114. package/cjs/tooltip/Tooltip.js.map +1 -1
  115. package/cjs/util/Slot.js +5 -2
  116. package/cjs/util/Slot.js.map +1 -1
  117. package/cjs/util/TextareaAutoSize.js +14 -24
  118. package/cjs/util/TextareaAutoSize.js.map +1 -1
  119. package/cjs/util/types/AsChildProps.d.ts +36 -0
  120. package/cjs/util/types/AsChildProps.js +3 -0
  121. package/cjs/util/types/AsChildProps.js.map +1 -0
  122. package/cjs/util/types/index.d.ts +1 -0
  123. package/esm/accordion/Accordion.d.ts +3 -3
  124. package/esm/accordion/Accordion.js +4 -4
  125. package/esm/accordion/AccordionContent.js +2 -2
  126. package/esm/accordion/AccordionHeader.js +4 -4
  127. package/esm/accordion/AccordionItem.js +3 -3
  128. package/esm/accordion/index.d.ts +1 -1
  129. package/esm/accordion/index.js +1 -1
  130. package/esm/alert/Alert.js +2 -2
  131. package/esm/alert/index.d.ts +2 -2
  132. package/esm/alert/index.js +1 -1
  133. package/esm/button/Button.d.ts +1 -1
  134. package/esm/button/Button.js +6 -6
  135. package/esm/button/index.d.ts +2 -2
  136. package/esm/button/index.js +1 -1
  137. package/esm/chat/Bubble.d.ts +0 -5
  138. package/esm/chat/Bubble.js +3 -3
  139. package/esm/chat/Bubble.js.map +1 -1
  140. package/esm/chat/Chat.d.ts +1 -11
  141. package/esm/chat/Chat.js +5 -5
  142. package/esm/chat/Chat.js.map +1 -1
  143. package/esm/chat/index.d.ts +1 -1
  144. package/esm/chat/index.js +1 -1
  145. package/esm/chips/Chips.d.ts +3 -3
  146. package/esm/chips/Chips.js +2 -2
  147. package/esm/chips/Removable.js +1 -1
  148. package/esm/chips/Toggle.d.ts +1 -1
  149. package/esm/chips/index.d.ts +1 -1
  150. package/esm/chips/index.js +1 -1
  151. package/esm/copybutton/CopyButton.js +3 -3
  152. package/esm/copybutton/index.d.ts +1 -1
  153. package/esm/copybutton/index.js +1 -1
  154. package/esm/date/context/index.d.ts +2 -2
  155. package/esm/date/context/index.js +2 -2
  156. package/esm/date/context/useSharedMonthContext.d.ts +1 -1
  157. package/esm/date/context/useSharedMonthContext.js +2 -3
  158. package/esm/date/context/useSharedMonthContext.js.map +1 -1
  159. package/esm/date/datepicker/DatePicker.d.ts +3 -3
  160. package/esm/date/datepicker/DatePicker.js +15 -17
  161. package/esm/date/datepicker/DatePicker.js.map +1 -1
  162. package/esm/date/datepicker/DatePickerStandalone.d.ts +1 -1
  163. package/esm/date/datepicker/DatePickerStandalone.js +9 -11
  164. package/esm/date/datepicker/DatePickerStandalone.js.map +1 -1
  165. package/esm/date/datepicker/parts/Caption.js +3 -3
  166. package/esm/date/datepicker/parts/DayButton.js +1 -1
  167. package/esm/date/datepicker/parts/DayButton.js.map +1 -1
  168. package/esm/date/datepicker/parts/DropdownCaption.js +6 -9
  169. package/esm/date/datepicker/parts/DropdownCaption.js.map +1 -1
  170. package/esm/date/datepicker/parts/HeadRow.js +1 -1
  171. package/esm/date/datepicker/parts/Row.js +5 -4
  172. package/esm/date/datepicker/parts/Row.js.map +1 -1
  173. package/esm/date/datepicker/parts/WeekNumber.js +1 -1
  174. package/esm/date/datepicker/parts/WeekRow.js +6 -6
  175. package/esm/date/hooks/index.d.ts +6 -6
  176. package/esm/date/hooks/index.js +3 -3
  177. package/esm/date/hooks/useDatepicker.d.ts +3 -8
  178. package/esm/date/hooks/useDatepicker.js +2 -3
  179. package/esm/date/hooks/useDatepicker.js.map +1 -1
  180. package/esm/date/hooks/useMonthPicker.d.ts +3 -8
  181. package/esm/date/hooks/useMonthPicker.js +1 -1
  182. package/esm/date/hooks/useMonthPicker.js.map +1 -1
  183. package/esm/date/hooks/useRangeDatepicker.d.ts +3 -3
  184. package/esm/date/hooks/useRangeDatepicker.js +2 -4
  185. package/esm/date/hooks/useRangeDatepicker.js.map +1 -1
  186. package/esm/date/index.d.ts +7 -7
  187. package/esm/date/index.js +3 -3
  188. package/esm/date/monthpicker/MonthButton.js +3 -7
  189. package/esm/date/monthpicker/MonthButton.js.map +1 -1
  190. package/esm/date/monthpicker/MonthCaption.js +5 -8
  191. package/esm/date/monthpicker/MonthCaption.js.map +1 -1
  192. package/esm/date/monthpicker/MonthPicker.d.ts +3 -3
  193. package/esm/date/monthpicker/MonthPicker.js +17 -11
  194. package/esm/date/monthpicker/MonthPicker.js.map +1 -1
  195. package/esm/date/monthpicker/MonthPickerStandalone.d.ts +1 -1
  196. package/esm/date/monthpicker/MonthPickerStandalone.js +12 -6
  197. package/esm/date/monthpicker/MonthPickerStandalone.js.map +1 -1
  198. package/esm/date/monthpicker/MonthSelector.js +5 -8
  199. package/esm/date/monthpicker/MonthSelector.js.map +1 -1
  200. package/esm/date/monthpicker/types.d.ts +1 -1
  201. package/esm/date/parts/DateInput.d.ts +2 -2
  202. package/esm/date/parts/DateInput.js +5 -5
  203. package/esm/date/parts/DateWrapper.js +6 -6
  204. package/esm/date/utils/check-dates.js +1 -2
  205. package/esm/date/utils/check-dates.js.map +1 -1
  206. package/esm/date/utils/dates-disabled.js +1 -1
  207. package/esm/date/utils/dates-disabled.js.map +1 -1
  208. package/esm/date/utils/format-date.d.ts +1 -0
  209. package/esm/date/utils/format-date.js +2 -2
  210. package/esm/date/utils/format-date.js.map +1 -1
  211. package/esm/date/utils/get-dates.js +1 -5
  212. package/esm/date/utils/get-dates.js.map +1 -1
  213. package/esm/date/utils/get-initial-year.js +1 -1
  214. package/esm/date/utils/get-initial-year.js.map +1 -1
  215. package/esm/date/utils/index.d.ts +10 -10
  216. package/esm/date/utils/index.js +10 -10
  217. package/esm/date/utils/is-match.js +1 -4
  218. package/esm/date/utils/is-match.js.map +1 -1
  219. package/esm/date/utils/labels.d.ts +1 -0
  220. package/esm/date/utils/labels.js.map +1 -1
  221. package/esm/date/utils/locale.d.ts +1 -1
  222. package/esm/date/utils/locale.js +1 -3
  223. package/esm/date/utils/locale.js.map +1 -1
  224. package/esm/date/utils/navigation.d.ts +1 -1
  225. package/esm/date/utils/navigation.js +2 -2
  226. package/esm/date/utils/navigation.js.map +1 -1
  227. package/esm/date/utils/parse-date.d.ts +1 -0
  228. package/esm/date/utils/parse-date.js +2 -4
  229. package/esm/date/utils/parse-date.js.map +1 -1
  230. package/esm/dropdown/Dropdown.d.ts +2 -2
  231. package/esm/dropdown/Dropdown.js +4 -4
  232. package/esm/dropdown/Menu/GroupedList/GroupedItem.d.ts +1 -1
  233. package/esm/dropdown/Menu/GroupedList/GroupedItem.js +2 -2
  234. package/esm/dropdown/Menu/GroupedList/index.d.ts +3 -3
  235. package/esm/dropdown/Menu/GroupedList/index.js +2 -2
  236. package/esm/dropdown/Menu/List/Item.d.ts +1 -1
  237. package/esm/dropdown/Menu/List/Item.js +2 -2
  238. package/esm/dropdown/Menu/List/index.d.ts +2 -2
  239. package/esm/dropdown/Menu/List/index.js +1 -1
  240. package/esm/dropdown/Menu/index.d.ts +2 -2
  241. package/esm/dropdown/Menu/index.js +5 -5
  242. package/esm/dropdown/Toggle.js +2 -2
  243. package/esm/dropdown/index.d.ts +1 -1
  244. package/esm/dropdown/index.js +1 -1
  245. package/esm/expansion-card/ExpansionCard.d.ts +5 -5
  246. package/esm/expansion-card/ExpansionCard.js +5 -5
  247. package/esm/expansion-card/ExpansionCardContent.js +2 -2
  248. package/esm/expansion-card/ExpansionCardDescription.js +2 -2
  249. package/esm/expansion-card/ExpansionCardHeader.js +1 -1
  250. package/esm/expansion-card/ExpansionCardTitle.d.ts +1 -1
  251. package/esm/expansion-card/index.d.ts +1 -1
  252. package/esm/expansion-card/index.js +1 -1
  253. package/esm/form/ConfirmationPanel.d.ts +1 -1
  254. package/esm/form/ConfirmationPanel.js +4 -4
  255. package/esm/form/Fieldset/Fieldset.d.ts +1 -1
  256. package/esm/form/Fieldset/Fieldset.js +5 -5
  257. package/esm/form/Fieldset/index.d.ts +2 -2
  258. package/esm/form/Fieldset/index.js +2 -2
  259. package/esm/form/Fieldset/useFieldset.js +1 -1
  260. package/esm/form/Select.d.ts +1 -1
  261. package/esm/form/Select.js +4 -4
  262. package/esm/form/Switch.d.ts +1 -1
  263. package/esm/form/Switch.js +5 -5
  264. package/esm/form/TextField.d.ts +1 -1
  265. package/esm/form/TextField.js +4 -4
  266. package/esm/form/Textarea.d.ts +1 -1
  267. package/esm/form/Textarea.js +15 -15
  268. package/esm/form/Textarea.js.map +1 -1
  269. package/esm/form/TextareaCounter.d.ts +1 -1
  270. package/esm/form/TextareaCounter.js +2 -2
  271. package/esm/form/checkbox/Checkbox.d.ts +1 -1
  272. package/esm/form/checkbox/Checkbox.js +5 -5
  273. package/esm/form/checkbox/CheckboxGroup.d.ts +1 -1
  274. package/esm/form/checkbox/CheckboxGroup.js +1 -1
  275. package/esm/form/checkbox/index.d.ts +3 -3
  276. package/esm/form/checkbox/index.js +2 -2
  277. package/esm/form/checkbox/types.d.ts +1 -1
  278. package/esm/form/checkbox/useCheckbox.d.ts +1 -1
  279. package/esm/form/checkbox/useCheckbox.js +3 -3
  280. package/esm/form/combobox/Combobox.d.ts +1 -1
  281. package/esm/form/combobox/Combobox.js +12 -12
  282. package/esm/form/combobox/Combobox.js.map +1 -1
  283. package/esm/form/combobox/ComboboxProvider.d.ts +1 -1
  284. package/esm/form/combobox/ComboboxProvider.js +7 -6
  285. package/esm/form/combobox/ComboboxProvider.js.map +1 -1
  286. package/esm/form/combobox/ComboboxWrapper.js +1 -1
  287. package/esm/form/combobox/ComboboxWrapper.js.map +1 -1
  288. package/esm/form/combobox/FilteredOptions/FilteredOptions.js +65 -47
  289. package/esm/form/combobox/FilteredOptions/FilteredOptions.js.map +1 -1
  290. package/esm/form/combobox/FilteredOptions/filtered-options-util.d.ts +2 -1
  291. package/esm/form/combobox/FilteredOptions/filtered-options-util.js +3 -1
  292. package/esm/form/combobox/FilteredOptions/filtered-options-util.js.map +1 -1
  293. package/esm/form/combobox/FilteredOptions/filteredOptionsContext.d.ts +2 -2
  294. package/esm/form/combobox/FilteredOptions/filteredOptionsContext.js +20 -8
  295. package/esm/form/combobox/FilteredOptions/filteredOptionsContext.js.map +1 -1
  296. package/esm/form/combobox/FilteredOptions/useVirtualFocus.d.ts +2 -4
  297. package/esm/form/combobox/FilteredOptions/useVirtualFocus.js +52 -32
  298. package/esm/form/combobox/FilteredOptions/useVirtualFocus.js.map +1 -1
  299. package/esm/form/combobox/Input/Input.js +8 -6
  300. package/esm/form/combobox/Input/Input.js.map +1 -1
  301. package/esm/form/combobox/Input/inputContext.d.ts +1 -1
  302. package/esm/form/combobox/Input/inputContext.js +2 -2
  303. package/esm/form/combobox/SelectedOptions/SelectedOptions.js +3 -3
  304. package/esm/form/combobox/SelectedOptions/selectedOptionsContext.d.ts +5 -2
  305. package/esm/form/combobox/SelectedOptions/selectedOptionsContext.js +6 -4
  306. package/esm/form/combobox/SelectedOptions/selectedOptionsContext.js.map +1 -1
  307. package/esm/form/combobox/ToggleListButton.js +1 -1
  308. package/esm/form/combobox/customOptionsContext.js +1 -1
  309. package/esm/form/combobox/index.d.ts +2 -2
  310. package/esm/form/combobox/index.js +1 -1
  311. package/esm/form/combobox/types.d.ts +15 -1
  312. package/esm/form/error-summary/ErrorSummary.d.ts +9 -3
  313. package/esm/form/error-summary/ErrorSummary.js +8 -13
  314. package/esm/form/error-summary/ErrorSummary.js.map +1 -1
  315. package/esm/form/error-summary/ErrorSummaryItem.d.ts +2 -2
  316. package/esm/form/error-summary/ErrorSummaryItem.js +2 -1
  317. package/esm/form/error-summary/ErrorSummaryItem.js.map +1 -1
  318. package/esm/form/error-summary/index.d.ts +2 -2
  319. package/esm/form/error-summary/index.js +1 -1
  320. package/esm/form/index.d.ts +11 -11
  321. package/esm/form/index.js +11 -11
  322. package/esm/form/radio/Radio.d.ts +1 -1
  323. package/esm/form/radio/Radio.js +4 -4
  324. package/esm/form/radio/RadioGroup.d.ts +1 -1
  325. package/esm/form/radio/RadioGroup.js +2 -2
  326. package/esm/form/radio/index.d.ts +3 -3
  327. package/esm/form/radio/index.js +2 -2
  328. package/esm/form/radio/types.d.ts +1 -1
  329. package/esm/form/radio/useRadio.d.ts +1 -1
  330. package/esm/form/radio/useRadio.js +3 -3
  331. package/esm/form/search/Search.d.ts +3 -2
  332. package/esm/form/search/Search.js +8 -8
  333. package/esm/form/search/Search.js.map +1 -1
  334. package/esm/form/search/SearchButton.d.ts +1 -1
  335. package/esm/form/search/SearchButton.js +3 -3
  336. package/esm/form/search/index.d.ts +1 -1
  337. package/esm/form/search/index.js +1 -1
  338. package/esm/form/useFormField.js +2 -2
  339. package/esm/guide-panel/GuidePanel.js +1 -1
  340. package/esm/guide-panel/Illustration.js +1 -1
  341. package/esm/guide-panel/index.d.ts +2 -2
  342. package/esm/guide-panel/index.js +2 -2
  343. package/esm/help-text/HelpText.d.ts +1 -1
  344. package/esm/help-text/HelpText.js +4 -4
  345. package/esm/help-text/HelpTextIcon.js +1 -1
  346. package/esm/help-text/index.d.ts +2 -2
  347. package/esm/help-text/index.js +1 -1
  348. package/esm/index.d.ts +40 -41
  349. package/esm/index.js +40 -42
  350. package/esm/index.js.map +1 -1
  351. package/esm/internal-header/InternalHeader.d.ts +5 -5
  352. package/esm/internal-header/InternalHeader.js +4 -4
  353. package/esm/internal-header/InternalHeaderButton.d.ts +1 -1
  354. package/esm/internal-header/InternalHeaderTitle.d.ts +1 -1
  355. package/esm/internal-header/InternalHeaderUser.js +1 -1
  356. package/esm/internal-header/InternalHeaderUserButton.d.ts +1 -1
  357. package/esm/internal-header/InternalHeaderUserButton.js +2 -2
  358. package/esm/internal-header/index.d.ts +5 -5
  359. package/esm/internal-header/index.js +1 -1
  360. package/esm/layout/bleed/Bleed.d.ts +3 -3
  361. package/esm/layout/bleed/Bleed.js +2 -2
  362. package/esm/layout/bleed/index.d.ts +1 -1
  363. package/esm/layout/bleed/index.js +1 -1
  364. package/esm/layout/box/Box.d.ts +2 -2
  365. package/esm/layout/box/Box.js +1 -1
  366. package/esm/layout/box/index.d.ts +1 -1
  367. package/esm/layout/box/index.js +1 -1
  368. package/esm/layout/grid/HGrid.d.ts +1 -1
  369. package/esm/layout/grid/HGrid.js +1 -1
  370. package/esm/layout/grid/index.d.ts +1 -1
  371. package/esm/layout/grid/index.js +1 -1
  372. package/esm/layout/page/Page.d.ts +2 -2
  373. package/esm/layout/page/Page.js +1 -1
  374. package/esm/layout/page/index.d.ts +2 -2
  375. package/esm/layout/page/index.js +1 -1
  376. package/esm/layout/page/parts/PageBlock.d.ts +1 -1
  377. package/esm/layout/responsive/Responsive.d.ts +1 -1
  378. package/esm/layout/responsive/Responsive.js +1 -1
  379. package/esm/layout/responsive/index.d.ts +1 -1
  380. package/esm/layout/responsive/index.js +1 -1
  381. package/esm/layout/sidemal-test/AvatarPanel.js +2 -2
  382. package/esm/layout/sidemal-test/Content.js +9 -9
  383. package/esm/layout/sidemal-test/Filter.js +4 -4
  384. package/esm/layout/sidemal-test/Header.js +5 -5
  385. package/esm/layout/sidemal-test/Intro.js +4 -4
  386. package/esm/layout/sidemal-test/Sidebar.js +4 -4
  387. package/esm/layout/sidemal-test/content-box/ContentBox.d.ts +1 -1
  388. package/esm/layout/sidemal-test/content-box/index.d.ts +1 -1
  389. package/esm/layout/sidemal-test/content-box/index.js +1 -1
  390. package/esm/layout/stack/HStack.d.ts +2 -2
  391. package/esm/layout/stack/HStack.js +1 -1
  392. package/esm/layout/stack/Stack.d.ts +2 -2
  393. package/esm/layout/stack/Stack.js +1 -1
  394. package/esm/layout/stack/VStack.d.ts +2 -2
  395. package/esm/layout/stack/VStack.js +1 -1
  396. package/esm/layout/stack/index.d.ts +4 -4
  397. package/esm/layout/stack/index.js +4 -4
  398. package/esm/layout/utilities/css.d.ts +1 -1
  399. package/esm/layout/utilities/css.js +4 -0
  400. package/esm/layout/utilities/css.js.map +1 -1
  401. package/esm/layout/utilities/types.d.ts +1 -1
  402. package/esm/link/Link.d.ts +1 -1
  403. package/esm/link/index.d.ts +2 -2
  404. package/esm/link/index.js +1 -1
  405. package/esm/link-panel/LinkPanel.d.ts +3 -3
  406. package/esm/link-panel/LinkPanel.js +3 -3
  407. package/esm/link-panel/LinkPanelDescription.js +1 -1
  408. package/esm/link-panel/LinkPanelTitle.d.ts +1 -1
  409. package/esm/link-panel/index.d.ts +2 -2
  410. package/esm/link-panel/index.js +1 -1
  411. package/esm/list/List.d.ts +2 -2
  412. package/esm/list/List.js +4 -4
  413. package/esm/list/ListItem.js +2 -2
  414. package/esm/list/context.d.ts +1 -1
  415. package/esm/list/index.d.ts +2 -2
  416. package/esm/list/index.js +1 -1
  417. package/esm/loader/Loader.js +2 -2
  418. package/esm/loader/index.d.ts +2 -2
  419. package/esm/loader/index.js +1 -1
  420. package/esm/modal/Modal.d.ts +4 -4
  421. package/esm/modal/Modal.js +12 -12
  422. package/esm/modal/ModalHeader.js +2 -2
  423. package/esm/modal/ModalUtils.d.ts +1 -1
  424. package/esm/modal/index.d.ts +5 -5
  425. package/esm/modal/index.js +1 -1
  426. package/esm/overlays/index.d.ts +2 -0
  427. package/esm/overlays/index.js +2 -0
  428. package/esm/overlays/index.js.map +1 -0
  429. package/esm/overlays/portal/Portal.d.ts +11 -0
  430. package/esm/overlays/portal/Portal.js +27 -0
  431. package/esm/overlays/portal/Portal.js.map +1 -0
  432. package/esm/package.json +1 -1
  433. package/esm/pagination/Pagination.d.ts +1 -1
  434. package/esm/pagination/Pagination.js +2 -2
  435. package/esm/pagination/PaginationItem.d.ts +2 -2
  436. package/esm/pagination/PaginationItem.js +1 -1
  437. package/esm/pagination/index.d.ts +1 -1
  438. package/esm/pagination/index.js +1 -1
  439. package/esm/panel/Panel.d.ts +1 -1
  440. package/esm/panel/index.d.ts +2 -2
  441. package/esm/panel/index.js +1 -1
  442. package/esm/popover/Popover.d.ts +1 -1
  443. package/esm/popover/Popover.js +5 -5
  444. package/esm/popover/index.d.ts +2 -2
  445. package/esm/popover/index.js +1 -1
  446. package/esm/provider/index.d.ts +1 -1
  447. package/esm/provider/index.js +1 -1
  448. package/esm/read-more/ReadMore.js +3 -3
  449. package/esm/read-more/index.d.ts +2 -2
  450. package/esm/read-more/index.js +1 -1
  451. package/esm/skeleton/index.d.ts +2 -2
  452. package/esm/skeleton/index.js +1 -1
  453. package/esm/stepper/Step.d.ts +1 -1
  454. package/esm/stepper/Step.js +3 -3
  455. package/esm/stepper/Stepper.d.ts +1 -1
  456. package/esm/stepper/Stepper.js +2 -2
  457. package/esm/stepper/index.d.ts +1 -1
  458. package/esm/stepper/index.js +1 -1
  459. package/esm/table/ColumnHeader.d.ts +1 -1
  460. package/esm/table/ColumnHeader.js +2 -2
  461. package/esm/table/DataCell.js +1 -1
  462. package/esm/table/ExpandableRow.d.ts +1 -1
  463. package/esm/table/ExpandableRow.js +6 -6
  464. package/esm/table/Table.d.ts +8 -8
  465. package/esm/table/Table.js +8 -8
  466. package/esm/table/context.d.ts +1 -1
  467. package/esm/table/index.d.ts +9 -9
  468. package/esm/table/index.js +1 -1
  469. package/esm/tabs/Tab.d.ts +1 -1
  470. package/esm/tabs/Tab.js +2 -2
  471. package/esm/tabs/TabList.js +5 -5
  472. package/esm/tabs/TabList.js.map +1 -1
  473. package/esm/tabs/TabPanel.js +2 -2
  474. package/esm/tabs/TabPanel.js.map +1 -1
  475. package/esm/tabs/Tabs.d.ts +4 -4
  476. package/esm/tabs/Tabs.js +4 -4
  477. package/esm/tabs/index.d.ts +4 -4
  478. package/esm/tabs/index.js +1 -1
  479. package/esm/tag/Tag.js +1 -1
  480. package/esm/tag/index.d.ts +1 -1
  481. package/esm/tag/index.js +1 -1
  482. package/esm/timeline/AxisLabels.d.ts +1 -1
  483. package/esm/timeline/AxisLabels.js +5 -5
  484. package/esm/timeline/AxisLabels.js.map +1 -1
  485. package/esm/timeline/Pin.d.ts +1 -1
  486. package/esm/timeline/Pin.js +3 -3
  487. package/esm/timeline/Timeline.d.ts +5 -5
  488. package/esm/timeline/Timeline.js +9 -9
  489. package/esm/timeline/TimelineRow.d.ts +1 -1
  490. package/esm/timeline/TimelineRow.js +5 -5
  491. package/esm/timeline/hooks/useRowContext.d.ts +1 -1
  492. package/esm/timeline/hooks/useTimelineRows.d.ts +1 -1
  493. package/esm/timeline/hooks/useTimelineRows.js +3 -3
  494. package/esm/timeline/index.d.ts +6 -6
  495. package/esm/timeline/index.js +1 -1
  496. package/esm/timeline/period/ClickablePeriod.d.ts +1 -1
  497. package/esm/timeline/period/ClickablePeriod.js +5 -5
  498. package/esm/timeline/period/NonClickablePeriod.d.ts +1 -1
  499. package/esm/timeline/period/NonClickablePeriod.js +1 -1
  500. package/esm/timeline/period/index.d.ts +1 -1
  501. package/esm/timeline/period/index.js +4 -4
  502. package/esm/timeline/utils/filter.d.ts +1 -1
  503. package/esm/timeline/utils/index.d.ts +1 -1
  504. package/esm/timeline/utils/index.js +1 -1
  505. package/esm/timeline/utils/sort.d.ts +1 -1
  506. package/esm/timeline/utils/timeline.d.ts +1 -1
  507. package/esm/timeline/utils/timeline.js +1 -1
  508. package/esm/timeline/zoom/ZoomButton.js +2 -2
  509. package/esm/timeline/zoom/index.d.ts +1 -1
  510. package/esm/timeline/zoom/index.js +1 -1
  511. package/esm/toggle-group/ToggleGroup.d.ts +1 -1
  512. package/esm/toggle-group/ToggleGroup.js +4 -4
  513. package/esm/toggle-group/ToggleItem.js +2 -2
  514. package/esm/toggle-group/index.d.ts +2 -2
  515. package/esm/toggle-group/index.js +1 -1
  516. package/esm/tooltip/Tooltip.js +9 -13
  517. package/esm/tooltip/Tooltip.js.map +1 -1
  518. package/esm/tooltip/index.d.ts +1 -1
  519. package/esm/tooltip/index.js +1 -1
  520. package/esm/typography/BodyLong.d.ts +2 -2
  521. package/esm/typography/BodyLong.js +1 -1
  522. package/esm/typography/BodyShort.d.ts +2 -2
  523. package/esm/typography/BodyShort.js +1 -1
  524. package/esm/typography/Detail.d.ts +2 -2
  525. package/esm/typography/Detail.js +1 -1
  526. package/esm/typography/ErrorMessage.d.ts +2 -2
  527. package/esm/typography/ErrorMessage.js +1 -1
  528. package/esm/typography/Heading.d.ts +2 -2
  529. package/esm/typography/Heading.js +1 -1
  530. package/esm/typography/Ingress.d.ts +1 -1
  531. package/esm/typography/Label.d.ts +2 -2
  532. package/esm/typography/Label.js +1 -1
  533. package/esm/typography/index.d.ts +7 -7
  534. package/esm/typography/index.js +7 -7
  535. package/esm/typography/util.d.ts +1 -1
  536. package/esm/util/Slot.js +6 -3
  537. package/esm/util/Slot.js.map +1 -1
  538. package/esm/util/TextareaAutoSize.js +17 -27
  539. package/esm/util/TextareaAutoSize.js.map +1 -1
  540. package/esm/util/hooks/descendants/descendant.js +1 -1
  541. package/esm/util/hooks/descendants/useDescendant.d.ts +1 -1
  542. package/esm/util/hooks/descendants/useDescendant.js +5 -5
  543. package/esm/util/hooks/index.d.ts +8 -8
  544. package/esm/util/hooks/index.js +8 -8
  545. package/esm/util/hooks/useControllableState.js +1 -1
  546. package/esm/util/index.d.ts +6 -6
  547. package/esm/util/index.js +5 -5
  548. package/esm/util/types/AsChildProps.d.ts +36 -0
  549. package/esm/util/types/AsChildProps.js +2 -0
  550. package/esm/util/types/AsChildProps.js.map +1 -0
  551. package/esm/util/types/index.d.ts +2 -1
  552. package/package.json +9 -8
  553. package/src/alert/alert.stories.tsx +202 -113
  554. package/src/chat/Bubble.tsx +2 -23
  555. package/src/chat/Chat.tsx +1 -18
  556. package/src/chat/chat.stories.tsx +0 -31
  557. package/src/date/context/useSharedMonthContext.tsx +1 -2
  558. package/src/date/datepicker/DatePicker.tsx +1 -3
  559. package/src/date/datepicker/DatePickerStandalone.tsx +1 -3
  560. package/src/date/datepicker/datepicker.stories.tsx +5 -5
  561. package/src/date/datepicker/parts/DayButton.tsx +1 -1
  562. package/src/date/datepicker/parts/DropdownCaption.tsx +1 -4
  563. package/src/date/datepicker/parts/Row.tsx +3 -2
  564. package/src/date/hooks/useDatepicker.tsx +2 -8
  565. package/src/date/hooks/useMonthPicker.tsx +1 -6
  566. package/src/date/hooks/useRangeDatepicker.tsx +5 -3
  567. package/src/date/monthpicker/MonthButton.tsx +7 -5
  568. package/src/date/monthpicker/MonthCaption.tsx +7 -4
  569. package/src/date/monthpicker/MonthPicker.tsx +10 -8
  570. package/src/date/monthpicker/MonthPickerStandalone.tsx +10 -8
  571. package/src/date/monthpicker/MonthSelector.tsx +1 -4
  572. package/src/date/monthpicker/monthpicker.stories.tsx +3 -2
  573. package/src/date/parts/DateInput.tsx +1 -1
  574. package/src/date/utils/__tests__/format-dates.test.ts +1 -1
  575. package/src/date/utils/__tests__/get-initial-year.test.ts +1 -1
  576. package/src/date/utils/__tests__/parse-dates.test.ts +2 -2
  577. package/src/date/utils/check-dates.ts +1 -2
  578. package/src/date/utils/dates-disabled.ts +1 -1
  579. package/src/date/utils/format-date.ts +1 -1
  580. package/src/date/utils/get-dates.ts +7 -5
  581. package/src/date/utils/get-initial-year.ts +1 -1
  582. package/src/date/utils/is-match.ts +6 -4
  583. package/src/date/utils/labels.ts +1 -0
  584. package/src/date/utils/locale.ts +1 -3
  585. package/src/date/utils/navigation.ts +1 -1
  586. package/src/date/utils/parse-date.ts +1 -3
  587. package/src/form/Textarea.tsx +34 -34
  588. package/src/form/combobox/Combobox.tsx +1 -1
  589. package/src/form/combobox/ComboboxProvider.tsx +2 -0
  590. package/src/form/combobox/ComboboxWrapper.tsx +0 -1
  591. package/src/form/combobox/FilteredOptions/FilteredOptions.tsx +131 -92
  592. package/src/form/combobox/FilteredOptions/filtered-options-util.ts +9 -2
  593. package/src/form/combobox/FilteredOptions/filteredOptionsContext.tsx +22 -3
  594. package/src/form/combobox/FilteredOptions/useVirtualFocus.ts +63 -45
  595. package/src/form/combobox/Input/Input.tsx +3 -1
  596. package/src/form/combobox/SelectedOptions/selectedOptionsContext.tsx +11 -1
  597. package/src/form/combobox/combobox.stories.tsx +36 -1
  598. package/src/form/combobox/combobox.test.tsx +1 -3
  599. package/src/form/combobox/types.ts +15 -0
  600. package/src/form/error-summary/ErrorSummary.tsx +15 -11
  601. package/src/form/error-summary/ErrorSummaryItem.tsx +10 -8
  602. package/src/form/error-summary/error-summary.stories.tsx +55 -1
  603. package/src/form/search/Search.tsx +6 -1
  604. package/src/form/stories/textarea.stories.tsx +37 -0
  605. package/src/index.ts +1 -2
  606. package/src/layout/bleed/Bleed.stories.tsx +13 -0
  607. package/src/layout/bleed/Bleed.tsx +2 -2
  608. package/src/layout/box/Box.stories.tsx +1 -1
  609. package/src/layout/sidemal-test/navno-sidemal.stories.tsx +1 -0
  610. package/src/layout/utilities/css.ts +3 -0
  611. package/src/layout/utilities/types.ts +1 -1
  612. package/src/overlays/index.ts +2 -0
  613. package/src/overlays/portal/Portal.stories.tsx +99 -0
  614. package/src/overlays/portal/Portal.tsx +32 -0
  615. package/src/tabs/TabList.tsx +2 -2
  616. package/src/tabs/TabPanel.tsx +2 -2
  617. package/src/timeline/AxisLabels.tsx +1 -1
  618. package/src/tooltip/Tooltip.tsx +4 -8
  619. package/src/util/Slot.tsx +4 -2
  620. package/src/util/TextareaAutoSize.tsx +16 -31
  621. package/src/util/types/AsChildProps.ts +37 -0
  622. package/src/util/types/index.ts +1 -0
  623. package/cjs/grid/Cell.d.ts +0 -30
  624. package/cjs/grid/Cell.js +0 -52
  625. package/cjs/grid/Cell.js.map +0 -1
  626. package/cjs/grid/Grid.d.ts +0 -13
  627. package/cjs/grid/Grid.js.map +0 -1
  628. package/cjs/grid/index.d.ts +0 -2
  629. package/cjs/grid/index.js +0 -11
  630. package/cjs/grid/index.js.map +0 -1
  631. package/cjs/layout/content-container/ContentContainer.d.ts +0 -9
  632. package/cjs/layout/content-container/ContentContainer.js +0 -48
  633. package/cjs/layout/content-container/ContentContainer.js.map +0 -1
  634. package/cjs/layout/content-container/index.d.ts +0 -1
  635. package/cjs/layout/content-container/index.js +0 -9
  636. package/cjs/layout/content-container/index.js.map +0 -1
  637. package/esm/grid/Cell.d.ts +0 -30
  638. package/esm/grid/Cell.js +0 -23
  639. package/esm/grid/Cell.js.map +0 -1
  640. package/esm/grid/Grid.d.ts +0 -13
  641. package/esm/grid/Grid.js +0 -23
  642. package/esm/grid/Grid.js.map +0 -1
  643. package/esm/grid/index.d.ts +0 -2
  644. package/esm/grid/index.js +0 -3
  645. package/esm/grid/index.js.map +0 -1
  646. package/esm/layout/content-container/ContentContainer.d.ts +0 -9
  647. package/esm/layout/content-container/ContentContainer.js +0 -19
  648. package/esm/layout/content-container/ContentContainer.js.map +0 -1
  649. package/esm/layout/content-container/index.d.ts +0 -1
  650. package/esm/layout/content-container/index.js +0 -2
  651. package/esm/layout/content-container/index.js.map +0 -1
  652. package/src/grid/Cell.tsx +0 -53
  653. package/src/grid/Grid.tsx +0 -23
  654. package/src/grid/grid.stories.tsx +0 -67
  655. package/src/grid/index.ts +0 -2
  656. package/src/layout/content-container/ContentContainer.tsx +0 -22
  657. package/src/layout/content-container/index.ts +0 -4
  658. package/src/layout/sidemal-test/navno-sidemal.stories.mdx +0 -29
@@ -1 +1 @@
1
- {"version":3,"file":"selectedOptionsContext.js","sourceRoot":"","sources":["../../../../src/form/combobox/SelectedOptions/selectedOptionsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,q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iB,CAAC,MAAM,CAAC,CAAC;QAC5B,CAAC;QACD,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,UAAU,EAAE,CAAC;IACf,CAAC,EACD;QACE,iBAAiB;QACjB,UAAU;QACV,UAAU;QACV,oBAAoB;QACpB,eAAe;KAChB,CACF,CAAC;IAEF,MAAM,mBAAmB,GAAG,WAAW,CAAW,eAAe,CAAC,CAAC;IAEnE,MAAM,oBAAoB,GAAG;QAC3B,iBAAiB;QACjB,aAAa;QACb,oBAAoB;QACpB,mBAAmB;QACnB,eAAe;QACf,kBAAkB;QAClB,YAAY;KACb,CAAC;IAEF,OAAO,CACL,oBAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,oBAAoB,IACzD,QAAQ,CACuB,CACnC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC5C,MAAM,OAAO,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACnD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
1
+ {"version":3,"file":"selectedOptionsContext.js","sourceRoot":"","sources":["../../../../src/form/combobox/SelectedOptions/selectedOptionsContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,aAAa,EACb,WAAW,EACX,UAAU,EACV,OAAO,EACP,QAAQ,GACT,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAiBlE,MAAM,sBAAsB,GAAG,aAAa,CAC1C,EAAgC,CACjC,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACtC,QAAQ,EAC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CAAW,eAAe,CAAC,CAAC;IAEnE,MAAM,cAAc,GAClB,CAAC,CAAC,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,KAAK,CAAA,IAAI,eAAe,CAAC,MAAM,IAAI,WAAW,CAAC,KAAK,CAAC;IAEtE,MAAM,oBAAoB,GAAG;QAC3B,iBAAiB;QACjB,aAAa;QACb,oBAAoB;QACpB,mBAAmB;QACnB,eAAe;QACf,kBAAkB;QAClB,YAAY;QACZ,WAAW,EAAE,WAAW,oCACnB,WAAW,KACd,cAAc,GACf;KACF,CAAC;IAEF,OAAO,CACL,oBAAC,sBAAsB,CAAC,QAAQ,IAAC,KAAK,EAAE,oBAAoB,IACzD,QAAQ,CACuB,CACnC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC5C,MAAM,OAAO,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACnD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,yEAAyE,CAC1E,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import React, { forwardRef } from "react";
2
2
  import { ChevronDownIcon, ChevronUpIcon } from "@navikt/aksel-icons";
3
- import { useFilteredOptionsContext } from "./FilteredOptions/filteredOptionsContext";
3
+ import { useFilteredOptionsContext } from "./FilteredOptions/filteredOptionsContext.js";
4
4
  export const ToggleListButton = forwardRef(({ toggleListButtonLabel }, ref) => {
5
5
  const { isListOpen, toggleIsListOpen } = useFilteredOptionsContext();
6
6
  return (React.createElement("button", { type: "button", onPointerUp: () => toggleIsListOpen(), onKeyDown: ({ key }) => key === "Enter" && toggleIsListOpen(), className: "navds-combobox__button-toggle-list", "aria-expanded": isListOpen, tabIndex: -1, ref: ref },
@@ -1,5 +1,5 @@
1
1
  import React, { createContext, useCallback, useContext, useState } from "react";
2
- import { useInputContext } from "./Input/inputContext";
2
+ import { useInputContext } from "./Input/inputContext.js";
3
3
  const CustomOptionsContext = createContext({});
4
4
  export const CustomOptionsProvider = ({ children, value, }) => {
5
5
  const [customOptions, setCustomOptions] = useState([]);
@@ -1,2 +1,2 @@
1
- export { default as Combobox } from "./ComboboxProvider";
2
- export { type ComboboxProps } from "./types";
1
+ export { default as Combobox } from "./ComboboxProvider.js";
2
+ export { type ComboboxProps } from "./types.js";
@@ -1,2 +1,2 @@
1
- export { default as Combobox } from "./ComboboxProvider";
1
+ export { default as Combobox } from "./ComboboxProvider.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,15 @@
1
1
  import React, { ChangeEvent, InputHTMLAttributes } from "react";
2
- import { FormFieldProps } from "../useFormField";
2
+ import { FormFieldProps } from "../useFormField.js";
3
+ export type MaxSelected = {
4
+ /**
5
+ * The limit for maximum selected options
6
+ */
7
+ limit: number;
8
+ /**
9
+ * Override the message to display when the limit for maximum selected options has been reached
10
+ */
11
+ message?: string;
12
+ };
3
13
  export interface ComboboxProps extends FormFieldProps, Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "value"> {
4
14
  /**
5
15
  * Combobox label
@@ -87,6 +97,10 @@ export interface ComboboxProps extends FormFieldProps, Omit<InputHTMLAttributes<
87
97
  * e.g. for a filter, where options can be toggled elsewhere/programmatically.
88
98
  */
89
99
  selectedOptions?: string[];
100
+ /**
101
+ * Options for the maximum number of selected options.
102
+ */
103
+ maxSelected?: MaxSelected;
90
104
  /**
91
105
  * Set to "true" to enable inline autocomplete.
92
106
  *
@@ -1,5 +1,5 @@
1
1
  import React, { HTMLAttributes } from "react";
2
- import { ErrorSummaryItemType } from "./ErrorSummaryItem";
2
+ import ErrorSummaryItem from "./ErrorSummaryItem.js";
3
3
  export interface ErrorSummaryProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * Collectipn of ErrorSummary.Item
@@ -13,12 +13,18 @@ export interface ErrorSummaryProps extends HTMLAttributes<HTMLDivElement> {
13
13
  /**
14
14
  * Heading above links
15
15
  */
16
- heading?: React.ReactNode;
16
+ heading: React.ReactNode;
17
17
  /**
18
18
  * Allows setting a different HTML h-tag
19
19
  * @default "h2"
20
20
  */
21
21
  headingTag?: React.ElementType<any>;
22
+ /**
23
+ * When manually setting focus to `<ErrorSummary />` use the
24
+ * `focusTargetRef`-prop and not ref.
25
+ * This directs focus to heading, improving screen reader experience
26
+ */
27
+ focusTargetRef?: React.RefObject<HTMLElement>;
22
28
  }
23
29
  interface ErrorSummaryComponent extends React.ForwardRefExoticComponent<ErrorSummaryProps & React.RefAttributes<HTMLDivElement>> {
24
30
  /**
@@ -33,7 +39,7 @@ interface ErrorSummaryComponent extends React.ForwardRefExoticComponent<ErrorSum
33
39
  * </ErrorSummary.Item>
34
40
  * ```
35
41
  */
36
- Item: ErrorSummaryItemType;
42
+ Item: typeof ErrorSummaryItem;
37
43
  }
38
44
  /**
39
45
  * A component that displays a summary of errors.
@@ -10,10 +10,10 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import cl from "clsx";
13
- import React, { forwardRef, isValidElement } from "react";
14
- import { BodyShort, Heading } from "../../typography";
15
- import { useId } from "../../util/hooks";
16
- import ErrorSummaryItem from "./ErrorSummaryItem";
13
+ import React, { forwardRef } from "react";
14
+ import { BodyShort, Heading } from "../../typography/index.js";
15
+ import { useId } from "../../util/hooks/index.js";
16
+ import ErrorSummaryItem from "./ErrorSummaryItem.js";
17
17
  /**
18
18
  * A component that displays a summary of errors.
19
19
  *
@@ -33,16 +33,11 @@ import ErrorSummaryItem from "./ErrorSummaryItem";
33
33
  * ```
34
34
  */
35
35
  export const ErrorSummary = forwardRef((_a, ref) => {
36
- var { children, className, size = "medium", headingTag = "h2", heading } = _a, rest = __rest(_a, ["children", "className", "size", "headingTag", "heading"]);
36
+ var { children, className, size = "medium", headingTag = "h2", heading, focusTargetRef } = _a, rest = __rest(_a, ["children", "className", "size", "headingTag", "heading", "focusTargetRef"]);
37
37
  const headingId = useId();
38
- return (React.createElement("section", Object.assign({ ref: ref }, rest, { className: cl(className, "navds-error-summary", `navds-error-summary--${size}`), tabIndex: -1, "aria-live": "polite", "aria-relevant": "all", "aria-labelledby": headingId }),
39
- React.createElement(Heading, { className: "navds-error-summary__heading", as: headingTag, size: "small", id: headingId }, heading),
40
- React.createElement(BodyShort, { as: "ul", size: size, className: "navds-error-summary__list" }, React.Children.map(children, (child) => {
41
- if (!isValidElement(child)) {
42
- return null;
43
- }
44
- return React.createElement("li", { key: child.toString() }, child);
45
- }))));
38
+ return (React.createElement("section", Object.assign({ ref: ref }, rest, { className: cl(className, "navds-error-summary", `navds-error-summary--${size}`), tabIndex: ref ? -1 : undefined, "aria-live": "polite", "aria-relevant": "all", "aria-labelledby": headingId }),
39
+ React.createElement(Heading, { className: "navds-error-summary__heading", as: headingTag, size: "small", id: headingId, ref: focusTargetRef, tabIndex: focusTargetRef ? -1 : undefined }, heading),
40
+ React.createElement(BodyShort, { as: "ul", size: size, className: "navds-error-summary__list" }, children)));
46
41
  });
47
42
  ErrorSummary.Item = ErrorSummaryItem;
48
43
  export default ErrorSummary;
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorSummary.js","sourceRoot":"","sources":["../../../src/form/error-summary/ErrorSummary.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAkB,UAAU,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,gBAA0C,MAAM,oBAAoB,CAAC;AA0C5E;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CACpC,CACE,EAOC,EACD,GAAG,EACH,EAAE;QATF,EACE,QAAQ,EACR,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EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAgDlD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CACpC,CACE,EAQC,EACD,GAAG,EACH,EAAE;QAVF,EACE,QAAQ,EACR,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,UAAU,GAAG,IAAI,EACjB,OAAO,EACP,cAAc,OAEf,EADI,IAAI,cAPT,4EAQC,CADQ;IAIT,MAAM,SAAS,GAAG,KAAK,EAAE,CAAC;IAE1B,OAAO,CACL,+CACE,GAAG,EAAE,GAAG,IACJ,IAAI,IACR,SAAS,EAAE,EAAE,CACX,SAAS,EACT,qBAAqB,EACrB,wBAAwB,IAAI,EAAE,CAC/B,EACD,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,eACpB,QAAQ,mBACJ,KAAK,qBACF,SAAS;QAE1B,oBAAC,OAAO,IACN,SAAS,EAAC,8BAA8B,EACxC,EAAE,EAAE,UAAU,EACd,IAAI,EAAC,OAAO,EACZ,EAAE,EAAE,SAAS,EACb,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,IAExC,OAAO,CACA;QACV,oBAAC,SAAS,IAAC,EAAE,EAAC,IAAI,EAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,2BAA2B,IACjE,QAAQ,CACC,CACJ,CACX,CAAC;AACJ,CAAC,CACuB,CAAC;AAE3B,YAAY,CAAC,IAAI,GAAG,gBAAgB,CAAC;AAErC,eAAe,YAAY,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { OverridableComponent } from "../../util/types";
2
+ import { OverridableComponent } from "../../util/types/index.js";
3
3
  export interface ErrorSummaryItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
4
4
  /**
5
5
  * Link text
@@ -10,6 +10,6 @@ export interface ErrorSummaryItemProps extends React.AnchorHTMLAttributes<HTMLAn
10
10
  */
11
11
  href?: string;
12
12
  }
13
- export type ErrorSummaryItemType = OverridableComponent<ErrorSummaryItemProps, HTMLAnchorElement>;
13
+ type ErrorSummaryItemType = OverridableComponent<ErrorSummaryItemProps, HTMLAnchorElement>;
14
14
  export declare const ErrorSummaryItem: ErrorSummaryItemType;
15
15
  export default ErrorSummaryItem;
@@ -13,7 +13,8 @@ import cl from "clsx";
13
13
  import React, { forwardRef } from "react";
14
14
  export const ErrorSummaryItem = forwardRef((_a, ref) => {
15
15
  var { children, as: Component = "a", className } = _a, rest = __rest(_a, ["children", "as", "className"]);
16
- return (React.createElement(Component, Object.assign({}, rest, { ref: ref, className: cl(className, "navds-error-summary__item", "navds-link") }), children));
16
+ return (React.createElement("li", null,
17
+ React.createElement(Component, Object.assign({}, rest, { ref: ref, className: cl(className, "navds-error-summary__item", "navds-link") }), children)));
17
18
  });
18
19
  export default ErrorSummaryItem;
19
20
  //# sourceMappingURL=ErrorSummaryItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorSummaryItem.js","sourceRoot":"","sources":["../../../src/form/error-summary/ErrorSummaryItem.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAoB1C,MAAM,CAAC,MAAM,gBAAgB,GAAyB,UAAU,CAC9D,CAAC,EAAqD,EAAE,GAAG,EAAE,EAAE;QAA9D,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,GAAG,GAAG,EAAE,SAAS,OAAW,EAAN,IAAI,cAAnD,+BAAqD,CAAF;IAClD,OAAO,CACL,oBAAC,SAAS,oBACJ,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,2BAA2B,EAAE,YAAY,CAAC,KAElE,QAAQ,CACC,CACb,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"ErrorSummaryItem.js","sourceRoot":"","sources":["../../../src/form/error-summary/ErrorSummaryItem.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAoB1C,MAAM,CAAC,MAAM,gBAAgB,GAAyB,UAAU,CAC9D,CAAC,EAAqD,EAAE,GAAG,EAAE,EAAE;QAA9D,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,GAAG,GAAG,EAAE,SAAS,OAAW,EAAN,IAAI,cAAnD,+BAAqD,CAAF;IAClD,OAAO,CACL;QACE,oBAAC,SAAS,oBACJ,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,2BAA2B,EAAE,YAAY,CAAC,KAElE,QAAQ,CACC,CACT,CACN,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -1,2 +1,2 @@
1
- export { default as ErrorSummary } from "./ErrorSummary";
2
- export { type ErrorSummaryProps } from "./ErrorSummary";
1
+ export { default as ErrorSummary } from "./ErrorSummary.js";
2
+ export { type ErrorSummaryProps } from "./ErrorSummary.js";
@@ -1,2 +1,2 @@
1
- export { default as ErrorSummary } from "./ErrorSummary";
1
+ export { default as ErrorSummary } from "./ErrorSummary.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,11 +1,11 @@
1
- export { default as ConfirmationPanel, type ConfirmationPanelProps, } from "./ConfirmationPanel";
2
- export { Fieldset, FieldsetContext, type FieldsetProps } from "./Fieldset";
3
- export { default as Select, type SelectProps } from "./Select";
4
- export { default as Switch, type SwitchProps } from "./Switch";
5
- export { default as TextField, type TextFieldProps } from "./TextField";
6
- export { default as Textarea, type TextareaProps } from "./Textarea";
7
- export { Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, } from "./checkbox";
8
- export { Combobox as UNSAFE_Combobox, type ComboboxProps } from "./combobox";
9
- export { ErrorSummary, type ErrorSummaryProps } from "./error-summary";
10
- export { Radio, RadioGroup, type RadioGroupProps, type RadioProps, } from "./radio";
11
- export { Search, type SearchClearEvent, type SearchProps } from "./search";
1
+ export { default as ConfirmationPanel, type ConfirmationPanelProps, } from "./ConfirmationPanel.js";
2
+ export { Fieldset, FieldsetContext, type FieldsetProps } from "./Fieldset/index.js";
3
+ export { default as Select, type SelectProps } from "./Select.js";
4
+ export { default as Switch, type SwitchProps } from "./Switch.js";
5
+ export { default as TextField, type TextFieldProps } from "./TextField.js";
6
+ export { default as Textarea, type TextareaProps } from "./Textarea.js";
7
+ export { Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, } from "./checkbox/index.js";
8
+ export { Combobox as UNSAFE_Combobox, type ComboboxProps } from "./combobox/index.js";
9
+ export { ErrorSummary, type ErrorSummaryProps } from "./error-summary/index.js";
10
+ export { Radio, RadioGroup, type RadioGroupProps, type RadioProps, } from "./radio/index.js";
11
+ export { Search, type SearchClearEvent, type SearchProps } from "./search/index.js";
package/esm/form/index.js CHANGED
@@ -1,12 +1,12 @@
1
- export { default as ConfirmationPanel, } from "./ConfirmationPanel";
2
- export { Fieldset, FieldsetContext } from "./Fieldset";
3
- export { default as Select } from "./Select";
4
- export { default as Switch } from "./Switch";
5
- export { default as TextField } from "./TextField";
6
- export { default as Textarea } from "./Textarea";
7
- export { Checkbox, CheckboxGroup, } from "./checkbox";
8
- export { Combobox as UNSAFE_Combobox } from "./combobox";
9
- export { ErrorSummary } from "./error-summary";
10
- export { Radio, RadioGroup, } from "./radio";
11
- export { Search } from "./search";
1
+ export { default as ConfirmationPanel, } from "./ConfirmationPanel.js";
2
+ export { Fieldset, FieldsetContext } from "./Fieldset/index.js";
3
+ export { default as Select } from "./Select.js";
4
+ export { default as Switch } from "./Switch.js";
5
+ export { default as TextField } from "./TextField.js";
6
+ export { default as Textarea } from "./Textarea.js";
7
+ export { Checkbox, CheckboxGroup, } from "./checkbox/index.js";
8
+ export { Combobox as UNSAFE_Combobox } from "./combobox/index.js";
9
+ export { ErrorSummary } from "./error-summary/index.js";
10
+ export { Radio, RadioGroup, } from "./radio/index.js";
11
+ export { Search } from "./search/index.js";
12
12
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { RadioProps } from "./types";
2
+ import { RadioProps } from "./types.js";
3
3
  export declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
4
4
  export default Radio;
@@ -1,9 +1,9 @@
1
1
  import cl from "clsx";
2
2
  import React, { forwardRef } from "react";
3
- import { BodyShort } from "../../typography";
4
- import { omit } from "../../util";
5
- import { useId } from "../../util/hooks";
6
- import { useRadio } from "./useRadio";
3
+ import { BodyShort } from "../../typography/index.js";
4
+ import { omit } from "../../util/index.js";
5
+ import { useId } from "../../util/hooks/index.js";
6
+ import { useRadio } from "./useRadio.js";
7
7
  export const Radio = forwardRef((props, ref) => {
8
8
  const { inputProps, size, hasError, readOnly } = useRadio(props);
9
9
  const labelId = useId();
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { FieldsetProps } from "../Fieldset";
2
+ import { FieldsetProps } from "../Fieldset/index.js";
3
3
  export interface RadioGroupContextProps {
4
4
  name: string;
5
5
  defaultValue?: any;
@@ -11,8 +11,8 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import cl from "clsx";
13
13
  import React, { forwardRef, useContext } from "react";
14
- import { useId } from "../../util/hooks";
15
- import { Fieldset, FieldsetContext } from "../Fieldset";
14
+ import { useId } from "../../util/hooks/index.js";
15
+ import { Fieldset, FieldsetContext } from "../Fieldset/index.js";
16
16
  export const RadioGroupContext = React.createContext(null);
17
17
  /**
18
18
  * Form radio group
@@ -1,3 +1,3 @@
1
- export { default as Radio } from "./Radio";
2
- export { default as RadioGroup, type RadioGroupProps } from "./RadioGroup";
3
- export { type RadioProps } from "./types";
1
+ export { default as Radio } from "./Radio.js";
2
+ export { default as RadioGroup, type RadioGroupProps } from "./RadioGroup.js";
3
+ export { type RadioProps } from "./types.js";
@@ -1,3 +1,3 @@
1
- export { default as Radio } from "./Radio";
2
- export { default as RadioGroup } from "./RadioGroup";
1
+ export { default as Radio } from "./Radio.js";
2
+ export { default as RadioGroup } from "./RadioGroup.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { InputHTMLAttributes } from "react";
2
- import { FormFieldProps } from "../useFormField";
2
+ import { FormFieldProps } from "../useFormField.js";
3
3
  export interface RadioProps extends Omit<FormFieldProps, "error" | "errorId" | "readOnly">, Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "value"> {
4
4
  /**
5
5
  * Radio label
@@ -1,4 +1,4 @@
1
- import { RadioProps } from "./types";
1
+ import { RadioProps } from "./types.js";
2
2
  /**
3
3
  * Handles props for Radios in context with Fieldset and RadioGroup
4
4
  */
@@ -10,9 +10,9 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { useContext } from "react";
13
- import { omit } from "../../util";
14
- import { useFormField } from "../useFormField";
15
- import { RadioGroupContext } from "./RadioGroup";
13
+ import { omit } from "../../util/index.js";
14
+ import { useFormField } from "../useFormField.js";
15
+ import { RadioGroupContext } from "./RadioGroup.js";
16
16
  /**
17
17
  * Handles props for Radios in context with Fieldset and RadioGroup
18
18
  */
@@ -1,6 +1,6 @@
1
1
  import React, { InputHTMLAttributes } from "react";
2
- import { FormFieldProps } from "../useFormField";
3
- import { SearchButtonType } from "./SearchButton";
2
+ import { FormFieldProps } from "../useFormField.js";
3
+ import { SearchButtonType } from "./SearchButton.js";
4
4
  export type SearchClearEvent = {
5
5
  trigger: "Click";
6
6
  event: React.MouseEvent<HTMLButtonElement, MouseEvent>;
@@ -51,6 +51,7 @@ export interface SearchProps extends Omit<FormFieldProps, "readOnly">, Omit<Inpu
51
51
  * Exposes the HTML size attribute
52
52
  */
53
53
  htmlSize?: number | string;
54
+ role?: string;
54
55
  }
55
56
  interface SearchComponent extends React.ForwardRefExoticComponent<SearchProps & React.RefAttributes<HTMLDivElement>> {
56
57
  Button: SearchButtonType;
@@ -12,12 +12,12 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import cl from "clsx";
13
13
  import React, { forwardRef, useCallback, useRef, useState, } from "react";
14
14
  import { MagnifyingGlassIcon, XMarkIcon } from "@navikt/aksel-icons";
15
- import { BodyShort, ErrorMessage, Label } from "../../typography";
16
- import { omit } from "../../util";
17
- import { useMergeRefs } from "../../util/hooks/useMergeRefs";
18
- import { useFormField } from "../useFormField";
19
- import SearchButton from "./SearchButton";
20
- import { SearchContext } from "./context";
15
+ import { BodyShort, ErrorMessage, Label } from "../../typography/index.js";
16
+ import { omit } from "../../util/index.js";
17
+ import { useMergeRefs } from "../../util/hooks/useMergeRefs.js";
18
+ import { useFormField } from "../useFormField.js";
19
+ import SearchButton from "./SearchButton.js";
20
+ import { SearchContext } from "./context.js";
21
21
  /**
22
22
  * A component that displays a search input field.
23
23
  *
@@ -33,7 +33,7 @@ import { SearchContext } from "./context";
33
33
  */
34
34
  export const Search = forwardRef((props, ref) => {
35
35
  const { inputProps, size = "medium", inputDescriptionId, errorId, showErrorMsg, hasError, } = useFormField(props, "searchfield");
36
- const { className, hideLabel = true, label, description, value, clearButtonLabel, onClear, clearButton = true, children, variant = "primary", defaultValue, onChange, onSearchClick, htmlSize } = props, rest = __rest(props, ["className", "hideLabel", "label", "description", "value", "clearButtonLabel", "onClear", "clearButton", "children", "variant", "defaultValue", "onChange", "onSearchClick", "htmlSize"]);
36
+ const { className, hideLabel = true, label, description, value, clearButtonLabel, onClear, clearButton = true, children, variant = "primary", defaultValue, onChange, onSearchClick, htmlSize, role } = props, rest = __rest(props, ["className", "hideLabel", "label", "description", "value", "clearButtonLabel", "onClear", "clearButton", "children", "variant", "defaultValue", "onChange", "onSearchClick", "htmlSize", "role"]);
37
37
  const searchRef = useRef(null);
38
38
  const mergedRef = useMergeRefs(searchRef, ref);
39
39
  const [internalValue, setInternalValue] = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : "");
@@ -75,7 +75,7 @@ export const Search = forwardRef((props, ref) => {
75
75
  React.createElement("div", { className: "navds-search__wrapper" },
76
76
  React.createElement("div", { className: "navds-search__wrapper-inner" },
77
77
  variant === "simple" && (React.createElement(MagnifyingGlassIcon, { "aria-hidden": true, className: "navds-search__search-icon" })),
78
- React.createElement("input", Object.assign({ ref: mergedRef }, omit(rest, ["error", "errorId", "size", "readOnly"]), inputProps, { value: value !== null && value !== void 0 ? value : internalValue, onChange: (e) => handleChange(e.target.value), type: "search", role: "searchbox", className: cl(className, "navds-search__input", `navds-search__input--${variant}`, "navds-text-field__input", "navds-body-short", `navds-body-short--${size}`) }, (htmlSize ? { size: Number(htmlSize) } : {}))),
78
+ React.createElement("input", Object.assign({ ref: mergedRef }, omit(rest, ["error", "errorId", "size", "readOnly"]), inputProps, { value: value !== null && value !== void 0 ? value : internalValue, onChange: (e) => handleChange(e.target.value), type: "search", role: role !== null && role !== void 0 ? role : 'searchbox', className: cl(className, "navds-search__input", `navds-search__input--${variant}`, "navds-text-field__input", "navds-body-short", `navds-body-short--${size}`) }, (htmlSize ? { size: Number(htmlSize) } : {}))),
79
79
  (value !== null && value !== void 0 ? value : internalValue) && clearButton && (React.createElement("button", { type: "button", onClick: (e) => handleClear({ trigger: "Click", event: e }), className: "navds-search__button-clear" },
80
80
  React.createElement("span", { className: "navds-sr-only" }, clearButtonLabel ? clearButtonLabel : "Tøm"),
81
81
  React.createElement(XMarkIcon, { "aria-hidden": true })))),
@@ -1 +1 @@
1
- {"version":3,"file":"Search.js","sourceRoot":"","sources":["../../../src/form/search/Search.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AAC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CAAC,EAAE,CAAC,EAChD;gBACD,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,aAAa,CAAC,IAAI,WAAW,IAAI,CAC1C,gCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAC3D,SAAS,EAAC,4BAA4B;oBAEtC,8BAAM,SAAS,EAAC,eAAe,IAC5B,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,CACvC;oBACP,oBAAC,SAAS,0BAAe,CAClB,CACV,CACG;YACN,oBAAC,aAAa,CAAC,QAAQ,IACrB,KAAK,EAAE;oBACL,IAAI;oBACJ,QAAQ,EAAE,UAAU,CAAC,QAAQ;oBAC7B,OAAO;oBACP,WAAW;iBACZ,IAEA,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,KAAK,QAAQ,IAAI,oBAAC,YAAY,OAAG,CACxC,CACrB;QACN,6BACE,SAAS,EAAC,yBAAyB,EACnC,EAAE,EAAE,OAAO,mBACG,oBAAoB,eACxB,QAAQ,IAEjB,YAAY,IAAI,CACf,oBAAC,YAAY,IAAC,IAAI,EAAE,IAAI,IAAG,KAAK,CAAC,KAAK,CAAgB,CACvD,CACG,CACF,CACP,CAAC;AACJ,CAAC,CACiB,CAAC;AAErB,MAAM,CAAC,MAAM,GAAG,YAAY,CAAC;AAE7B,eAAe,MAAM,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ButtonProps } from "../../button";
2
+ import { ButtonProps } from "../../button/index.js";
3
3
  export interface SearchButtonProps extends Omit<ButtonProps, "size" | "children" | "variant"> {
4
4
  /**
5
5
  * Text set after <Search/> icon
@@ -12,9 +12,9 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import cl from "clsx";
13
13
  import React, { forwardRef, useContext } from "react";
14
14
  import { MagnifyingGlassIcon } from "@navikt/aksel-icons";
15
- import { Button } from "../../button";
16
- import { composeEventHandlers } from "../../util/composeEventHandlers";
17
- import { SearchContext } from "./context";
15
+ import { Button } from "../../button/index.js";
16
+ import { composeEventHandlers } from "../../util/composeEventHandlers.js";
17
+ import { SearchContext } from "./context.js";
18
18
  const SearchButton = forwardRef((_a, ref) => {
19
19
  var _b;
20
20
  var { className, children, disabled, onClick } = _a, rest = __rest(_a, ["className", "children", "disabled", "onClick"]);
@@ -1 +1 @@
1
- export { default as Search, type SearchProps, type SearchClearEvent, } from "./Search";
1
+ export { default as Search, type SearchProps, type SearchClearEvent, } from "./Search.js";
@@ -1,2 +1,2 @@
1
- export { default as Search, } from "./Search";
1
+ export { default as Search, } from "./Search.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import cl from "clsx";
2
2
  import { useContext } from "react";
3
- import { useId } from "../util/hooks";
4
- import { FieldsetContext } from "./Fieldset/context";
3
+ import { useId } from "../util/hooks/index.js";
4
+ import { FieldsetContext } from "./Fieldset/context.js";
5
5
  /**
6
6
  * Handles props and their state for various form-fields in context with Fieldset
7
7
  */
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import cl from "clsx";
13
13
  import React, { forwardRef } from "react";
14
- import { DefaultIllustration } from "./Illustration";
14
+ import { DefaultIllustration } from "./Illustration.js";
15
15
  /**
16
16
  * A component for guiding users on the website
17
17
  *
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import React from "react";
13
- import { useId } from "../util/hooks";
13
+ import { useId } from "../util/hooks/index.js";
14
14
  export const DefaultIllustration = (_a) => {
15
15
  var { title, titleId: _titleId } = _a, props = __rest(_a, ["title", "titleId"]);
16
16
  let titleId = useId();
@@ -1,2 +1,2 @@
1
- export { default as GuidePanel, type GuidePanelProps } from "./GuidePanel";
2
- export { DefaultIllustration as GuideDefaultIllustration } from "./Illustration";
1
+ export { default as GuidePanel, type GuidePanelProps } from "./GuidePanel.js";
2
+ export { DefaultIllustration as GuideDefaultIllustration } from "./Illustration.js";
@@ -1,3 +1,3 @@
1
- export { default as GuidePanel } from "./GuidePanel";
2
- export { DefaultIllustration as GuideDefaultIllustration } from "./Illustration";
1
+ export { default as GuidePanel } from "./GuidePanel.js";
2
+ export { DefaultIllustration as GuideDefaultIllustration } from "./Illustration.js";
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { PopoverProps } from "../popover";
2
+ import { PopoverProps } from "../popover/index.js";
3
3
  export interface HelpTextProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Pick<PopoverProps, "strategy" | "placement"> {
4
4
  children: React.ReactNode;
5
5
  /**
@@ -11,10 +11,10 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import cl from "clsx";
13
13
  import React, { forwardRef, useRef, useState } from "react";
14
- import { Popover } from "../popover";
15
- import { composeEventHandlers } from "../util/composeEventHandlers";
16
- import { useMergeRefs } from "../util/hooks/useMergeRefs";
17
- import { HelpTextIcon } from "./HelpTextIcon";
14
+ import { Popover } from "../popover/index.js";
15
+ import { composeEventHandlers } from "../util/composeEventHandlers.js";
16
+ import { useMergeRefs } from "../util/hooks/useMergeRefs.js";
17
+ import { HelpTextIcon } from "./HelpTextIcon.js";
18
18
  /**
19
19
  * A component that displays a help text button with a popover.
20
20
  *
@@ -1,6 +1,6 @@
1
1
  import cl from "clsx";
2
2
  import React from "react";
3
- import { useId } from "../util/hooks";
3
+ import { useId } from "../util/hooks/index.js";
4
4
  export const HelpTextIcon = ({ title, filled = false, }) => {
5
5
  let titleId = useId();
6
6
  titleId = title ? `title-${titleId}` : undefined;
@@ -1,2 +1,2 @@
1
- export { default as HelpText } from "./HelpText";
2
- export { type HelpTextProps } from "./HelpText";
1
+ export { default as HelpText } from "./HelpText.js";
2
+ export { type HelpTextProps } from "./HelpText.js";
@@ -1,2 +1,2 @@
1
- export { default as HelpText } from "./HelpText";
1
+ export { default as HelpText } from "./HelpText.js";
2
2
  //# sourceMappingURL=index.js.map