@navikt/ds-react 6.0.0-alpha.1 → 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 +13 -12
  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
package/_docs.json CHANGED
@@ -2086,60 +2086,6 @@
2086
2086
  "name": "string"
2087
2087
  }
2088
2088
  },
2089
- "aria-label": {
2090
- "defaultValue": null,
2091
- "description": "Defines a string value that labels the current element.\nShould be set if not using 'aria-labelledby'\n@see aria-labelledby.",
2092
- "name": "aria-label",
2093
- "parent": {
2094
- "fileName": "Aksel/node_modules/@types/react/index.d.ts",
2095
- "name": "AriaAttributes"
2096
- },
2097
- "declarations": [
2098
- {
2099
- "fileName": "Aksel/node_modules/@types/react/index.d.ts",
2100
- "name": "AriaAttributes"
2101
- },
2102
- {
2103
- "fileName": "src/expansion-card/ExpansionCard.tsx",
2104
- "name": "TypeLiteral"
2105
- },
2106
- {
2107
- "fileName": "Aksel/node_modules/@types/react/index.d.ts",
2108
- "name": "AriaAttributes"
2109
- }
2110
- ],
2111
- "required": false,
2112
- "type": {
2113
- "name": "string"
2114
- }
2115
- },
2116
- "aria-labelledby": {
2117
- "defaultValue": null,
2118
- "description": "Identifies the element (or elements) that labels the current element.\nShould be set if not using 'aria-label'\n@see aria-describedby.",
2119
- "name": "aria-labelledby",
2120
- "parent": {
2121
- "fileName": "Aksel/node_modules/@types/react/index.d.ts",
2122
- "name": "AriaAttributes"
2123
- },
2124
- "declarations": [
2125
- {
2126
- "fileName": "Aksel/node_modules/@types/react/index.d.ts",
2127
- "name": "AriaAttributes"
2128
- },
2129
- {
2130
- "fileName": "Aksel/node_modules/@types/react/index.d.ts",
2131
- "name": "AriaAttributes"
2132
- },
2133
- {
2134
- "fileName": "src/expansion-card/ExpansionCard.tsx",
2135
- "name": "TypeLiteral"
2136
- }
2137
- ],
2138
- "required": false,
2139
- "type": {
2140
- "name": "string"
2141
- }
2142
- },
2143
2089
  "ref": {
2144
2090
  "defaultValue": null,
2145
2091
  "description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref).\n@see https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom",
@@ -11082,6 +11028,82 @@
11082
11028
  "name": "\"absolute\" | \"fixed\""
11083
11029
  }
11084
11030
  },
11031
+ "month": {
11032
+ "defaultValue": null,
11033
+ "description": "The month displayed in the calendar.\n\nAs opposed to {@link DayPickerBase.defaultMonth}, use this prop with {@link DayPickerBase.onMonthChange} to\nchange the month programmatically.",
11034
+ "name": "month",
11035
+ "parent": {
11036
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11037
+ "name": "DayPickerBase"
11038
+ },
11039
+ "declarations": [
11040
+ {
11041
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11042
+ "name": "DayPickerBase"
11043
+ }
11044
+ ],
11045
+ "required": false,
11046
+ "type": {
11047
+ "name": "Date"
11048
+ }
11049
+ },
11050
+ "onMonthChange": {
11051
+ "defaultValue": null,
11052
+ "description": "Event fired when the user navigates between months.",
11053
+ "name": "onMonthChange",
11054
+ "parent": {
11055
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11056
+ "name": "DayPickerBase"
11057
+ },
11058
+ "declarations": [
11059
+ {
11060
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11061
+ "name": "DayPickerBase"
11062
+ }
11063
+ ],
11064
+ "required": false,
11065
+ "type": {
11066
+ "name": "MonthChangeEventHandler"
11067
+ }
11068
+ },
11069
+ "today": {
11070
+ "defaultValue": null,
11071
+ "description": "The today’s date. Default is the current date. This Date will get the\n`today` modifier to style the day.",
11072
+ "name": "today",
11073
+ "parent": {
11074
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11075
+ "name": "DayPickerBase"
11076
+ },
11077
+ "declarations": [
11078
+ {
11079
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11080
+ "name": "DayPickerBase"
11081
+ }
11082
+ ],
11083
+ "required": false,
11084
+ "type": {
11085
+ "name": "Date"
11086
+ }
11087
+ },
11088
+ "onDayClick": {
11089
+ "defaultValue": null,
11090
+ "description": "",
11091
+ "name": "onDayClick",
11092
+ "parent": {
11093
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11094
+ "name": "DayPickerBase"
11095
+ },
11096
+ "declarations": [
11097
+ {
11098
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11099
+ "name": "DayPickerBase"
11100
+ }
11101
+ ],
11102
+ "required": false,
11103
+ "type": {
11104
+ "name": "DayClickEventHandler"
11105
+ }
11106
+ },
11085
11107
  "mode": {
11086
11108
  "defaultValue": null,
11087
11109
  "description": "",
@@ -11300,6 +11322,82 @@
11300
11322
  "name": "ReactNode"
11301
11323
  }
11302
11324
  },
11325
+ "month": {
11326
+ "defaultValue": null,
11327
+ "description": "The month displayed in the calendar.\n\nAs opposed to {@link DayPickerBase.defaultMonth}, use this prop with {@link DayPickerBase.onMonthChange} to\nchange the month programmatically.",
11328
+ "name": "month",
11329
+ "parent": {
11330
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11331
+ "name": "DayPickerBase"
11332
+ },
11333
+ "declarations": [
11334
+ {
11335
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11336
+ "name": "DayPickerBase"
11337
+ }
11338
+ ],
11339
+ "required": false,
11340
+ "type": {
11341
+ "name": "Date"
11342
+ }
11343
+ },
11344
+ "onMonthChange": {
11345
+ "defaultValue": null,
11346
+ "description": "Event fired when the user navigates between months.",
11347
+ "name": "onMonthChange",
11348
+ "parent": {
11349
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11350
+ "name": "DayPickerBase"
11351
+ },
11352
+ "declarations": [
11353
+ {
11354
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11355
+ "name": "DayPickerBase"
11356
+ }
11357
+ ],
11358
+ "required": false,
11359
+ "type": {
11360
+ "name": "MonthChangeEventHandler"
11361
+ }
11362
+ },
11363
+ "today": {
11364
+ "defaultValue": null,
11365
+ "description": "The today’s date. Default is the current date. This Date will get the\n`today` modifier to style the day.",
11366
+ "name": "today",
11367
+ "parent": {
11368
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11369
+ "name": "DayPickerBase"
11370
+ },
11371
+ "declarations": [
11372
+ {
11373
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11374
+ "name": "DayPickerBase"
11375
+ }
11376
+ ],
11377
+ "required": false,
11378
+ "type": {
11379
+ "name": "Date"
11380
+ }
11381
+ },
11382
+ "onDayClick": {
11383
+ "defaultValue": null,
11384
+ "description": "",
11385
+ "name": "onDayClick",
11386
+ "parent": {
11387
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11388
+ "name": "DayPickerBase"
11389
+ },
11390
+ "declarations": [
11391
+ {
11392
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11393
+ "name": "DayPickerBase"
11394
+ }
11395
+ ],
11396
+ "required": false,
11397
+ "type": {
11398
+ "name": "DayClickEventHandler"
11399
+ }
11400
+ },
11303
11401
  "locale": {
11304
11402
  "defaultValue": {
11305
11403
  "value": "nb"
@@ -11836,6 +11934,25 @@
11836
11934
  "name": "Date"
11837
11935
  }
11838
11936
  },
11937
+ "today": {
11938
+ "defaultValue": null,
11939
+ "description": "The today’s date. Default is the current date. This Date will get the\n`today` modifier to style the day.",
11940
+ "name": "today",
11941
+ "parent": {
11942
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11943
+ "name": "DayPickerBase"
11944
+ },
11945
+ "declarations": [
11946
+ {
11947
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
11948
+ "name": "DayPickerBase"
11949
+ }
11950
+ ],
11951
+ "required": false,
11952
+ "type": {
11953
+ "name": "Date"
11954
+ }
11955
+ },
11839
11956
  "disabled": {
11840
11957
  "defaultValue": null,
11841
11958
  "description": "Apply the disabled modifier to the matching days.\nhttps://react-day-picker.js.org/api/types/Matcher",
@@ -12238,6 +12355,25 @@
12238
12355
  "name": "Date"
12239
12356
  }
12240
12357
  },
12358
+ "today": {
12359
+ "defaultValue": null,
12360
+ "description": "The today’s date. Default is the current date. This Date will get the\n`today` modifier to style the day.",
12361
+ "name": "today",
12362
+ "parent": {
12363
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
12364
+ "name": "DayPickerBase"
12365
+ },
12366
+ "declarations": [
12367
+ {
12368
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
12369
+ "name": "DayPickerBase"
12370
+ }
12371
+ ],
12372
+ "required": false,
12373
+ "type": {
12374
+ "name": "Date"
12375
+ }
12376
+ },
12241
12377
  "disabled": {
12242
12378
  "defaultValue": null,
12243
12379
  "description": "Apply the disabled modifier to the matching days.\nhttps://react-day-picker.js.org/api/types/Matcher",
@@ -15085,6 +15221,25 @@
15085
15221
  "name": "string[]"
15086
15222
  }
15087
15223
  },
15224
+ "maxSelected": {
15225
+ "defaultValue": null,
15226
+ "description": "Options for the maximum number of selected options.",
15227
+ "name": "maxSelected",
15228
+ "parent": {
15229
+ "fileName": "react/src/form/combobox/types.ts",
15230
+ "name": "ComboboxProps"
15231
+ },
15232
+ "declarations": [
15233
+ {
15234
+ "fileName": "react/src/form/combobox/types.ts",
15235
+ "name": "ComboboxProps"
15236
+ }
15237
+ ],
15238
+ "required": false,
15239
+ "type": {
15240
+ "name": "MaxSelected"
15241
+ }
15242
+ },
15088
15243
  "shouldAutocomplete": {
15089
15244
  "defaultValue": {
15090
15245
  "value": "false"
@@ -15538,6 +15693,25 @@
15538
15693
  "name": "string[]"
15539
15694
  }
15540
15695
  },
15696
+ "maxSelected": {
15697
+ "defaultValue": null,
15698
+ "description": "Options for the maximum number of selected options.",
15699
+ "name": "maxSelected",
15700
+ "parent": {
15701
+ "fileName": "react/src/form/combobox/types.ts",
15702
+ "name": "ComboboxProps"
15703
+ },
15704
+ "declarations": [
15705
+ {
15706
+ "fileName": "react/src/form/combobox/types.ts",
15707
+ "name": "ComboboxProps"
15708
+ }
15709
+ ],
15710
+ "required": false,
15711
+ "type": {
15712
+ "name": "MaxSelected"
15713
+ }
15714
+ },
15541
15715
  "shouldAutocomplete": {
15542
15716
  "defaultValue": {
15543
15717
  "value": "false"
@@ -16872,6 +17046,25 @@
16872
17046
  "name": "string | number"
16873
17047
  }
16874
17048
  },
17049
+ "role": {
17050
+ "defaultValue": null,
17051
+ "description": "",
17052
+ "name": "role",
17053
+ "parent": {
17054
+ "fileName": "src/form/search/Search.tsx",
17055
+ "name": "SearchProps"
17056
+ },
17057
+ "declarations": [
17058
+ {
17059
+ "fileName": "src/form/search/Search.tsx",
17060
+ "name": "SearchProps"
17061
+ }
17062
+ ],
17063
+ "required": false,
17064
+ "type": {
17065
+ "name": "string"
17066
+ }
17067
+ },
16875
17068
  "error": {
16876
17069
  "defaultValue": null,
16877
17070
  "description": "Error message for element",
@@ -18954,22 +19147,178 @@
18954
19147
  {
18955
19148
  "filePath": "src/date/datepicker/parts/Caption.tsx",
18956
19149
  "displayName": "DatePickerCaption",
18957
- "props": {}
19150
+ "props": {
19151
+ "id": {
19152
+ "defaultValue": null,
19153
+ "description": "The ID for the heading element. Must be the same as the labelled-by in Table.",
19154
+ "name": "id",
19155
+ "parent": {
19156
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19157
+ "name": "CaptionProps"
19158
+ },
19159
+ "declarations": [
19160
+ {
19161
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19162
+ "name": "CaptionProps"
19163
+ }
19164
+ ],
19165
+ "required": false,
19166
+ "type": {
19167
+ "name": "string"
19168
+ }
19169
+ },
19170
+ "displayMonth": {
19171
+ "defaultValue": null,
19172
+ "description": "The month where the caption is displayed.",
19173
+ "name": "displayMonth",
19174
+ "parent": {
19175
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19176
+ "name": "CaptionProps"
19177
+ },
19178
+ "declarations": [
19179
+ {
19180
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19181
+ "name": "CaptionProps"
19182
+ }
19183
+ ],
19184
+ "required": true,
19185
+ "type": {
19186
+ "name": "Date"
19187
+ }
19188
+ }
19189
+ }
18958
19190
  },
18959
19191
  {
18960
19192
  "filePath": "src/date/datepicker/parts/Caption.tsx",
18961
19193
  "displayName": "Caption",
18962
- "props": {}
19194
+ "props": {
19195
+ "id": {
19196
+ "defaultValue": null,
19197
+ "description": "The ID for the heading element. Must be the same as the labelled-by in Table.",
19198
+ "name": "id",
19199
+ "parent": {
19200
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19201
+ "name": "CaptionProps"
19202
+ },
19203
+ "declarations": [
19204
+ {
19205
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19206
+ "name": "CaptionProps"
19207
+ }
19208
+ ],
19209
+ "required": false,
19210
+ "type": {
19211
+ "name": "string"
19212
+ }
19213
+ },
19214
+ "displayMonth": {
19215
+ "defaultValue": null,
19216
+ "description": "The month where the caption is displayed.",
19217
+ "name": "displayMonth",
19218
+ "parent": {
19219
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19220
+ "name": "CaptionProps"
19221
+ },
19222
+ "declarations": [
19223
+ {
19224
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19225
+ "name": "CaptionProps"
19226
+ }
19227
+ ],
19228
+ "required": true,
19229
+ "type": {
19230
+ "name": "Date"
19231
+ }
19232
+ }
19233
+ }
18963
19234
  },
18964
19235
  {
18965
19236
  "filePath": "src/date/datepicker/parts/DayButton.tsx",
18966
19237
  "displayName": "DayButton",
18967
- "props": {}
19238
+ "props": {
19239
+ "displayMonth": {
19240
+ "defaultValue": null,
19241
+ "description": "The month where the date is displayed.",
19242
+ "name": "displayMonth",
19243
+ "parent": {
19244
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19245
+ "name": "DayProps"
19246
+ },
19247
+ "declarations": [
19248
+ {
19249
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19250
+ "name": "DayProps"
19251
+ }
19252
+ ],
19253
+ "required": true,
19254
+ "type": {
19255
+ "name": "Date"
19256
+ }
19257
+ },
19258
+ "date": {
19259
+ "defaultValue": null,
19260
+ "description": "The date to render.",
19261
+ "name": "date",
19262
+ "parent": {
19263
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19264
+ "name": "DayProps"
19265
+ },
19266
+ "declarations": [
19267
+ {
19268
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19269
+ "name": "DayProps"
19270
+ }
19271
+ ],
19272
+ "required": true,
19273
+ "type": {
19274
+ "name": "Date"
19275
+ }
19276
+ }
19277
+ }
18968
19278
  },
18969
19279
  {
18970
19280
  "filePath": "src/date/datepicker/parts/DropdownCaption.tsx",
18971
19281
  "displayName": "DropdownCaption",
18972
- "props": {}
19282
+ "props": {
19283
+ "id": {
19284
+ "defaultValue": null,
19285
+ "description": "The ID for the heading element. Must be the same as the labelled-by in Table.",
19286
+ "name": "id",
19287
+ "parent": {
19288
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19289
+ "name": "CaptionProps"
19290
+ },
19291
+ "declarations": [
19292
+ {
19293
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19294
+ "name": "CaptionProps"
19295
+ }
19296
+ ],
19297
+ "required": false,
19298
+ "type": {
19299
+ "name": "string"
19300
+ }
19301
+ },
19302
+ "displayMonth": {
19303
+ "defaultValue": null,
19304
+ "description": "The month where the caption is displayed.",
19305
+ "name": "displayMonth",
19306
+ "parent": {
19307
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19308
+ "name": "CaptionProps"
19309
+ },
19310
+ "declarations": [
19311
+ {
19312
+ "fileName": "Aksel/node_modules/react-day-picker/dist/index.d.ts",
19313
+ "name": "CaptionProps"
19314
+ }
19315
+ ],
19316
+ "required": true,
19317
+ "type": {
19318
+ "name": "Date"
19319
+ }
19320
+ }
19321
+ }
18973
19322
  },
18974
19323
  {
18975
19324
  "filePath": "src/date/datepicker/parts/HeadRow.tsx",
@@ -18979,7 +19328,113 @@
18979
19328
  {
18980
19329
  "filePath": "src/date/datepicker/parts/HeadRow.tsx",
18981
19330
  "displayName": "getWeekdays",
18982
- "props": {}
19331
+ "props": {
19332
+ "code": {
19333
+ "defaultValue": null,
19334
+ "description": "",
19335
+ "name": "code",
19336
+ "declarations": [
19337
+ {
19338
+ "fileName": "Aksel/node_modules/date-fns/typings.d.ts",
19339
+ "name": "TypeLiteral"
19340
+ }
19341
+ ],
19342
+ "required": false,
19343
+ "type": {
19344
+ "name": "string"
19345
+ }
19346
+ },
19347
+ "formatDistance": {
19348
+ "defaultValue": null,
19349
+ "description": "",
19350
+ "name": "formatDistance",
19351
+ "declarations": [
19352
+ {
19353
+ "fileName": "Aksel/node_modules/date-fns/typings.d.ts",
19354
+ "name": "TypeLiteral"
19355
+ }
19356
+ ],
19357
+ "required": false,
19358
+ "type": {
19359
+ "name": "((...args: any[]) => any)"
19360
+ }
19361
+ },
19362
+ "formatRelative": {
19363
+ "defaultValue": null,
19364
+ "description": "",
19365
+ "name": "formatRelative",
19366
+ "declarations": [
19367
+ {
19368
+ "fileName": "Aksel/node_modules/date-fns/typings.d.ts",
19369
+ "name": "TypeLiteral"
19370
+ }
19371
+ ],
19372
+ "required": false,
19373
+ "type": {
19374
+ "name": "((...args: any[]) => any)"
19375
+ }
19376
+ },
19377
+ "localize": {
19378
+ "defaultValue": null,
19379
+ "description": "",
19380
+ "name": "localize",
19381
+ "declarations": [
19382
+ {
19383
+ "fileName": "Aksel/node_modules/date-fns/typings.d.ts",
19384
+ "name": "TypeLiteral"
19385
+ }
19386
+ ],
19387
+ "required": false,
19388
+ "type": {
19389
+ "name": "{ ordinalNumber: (...args: any[]) => any; era: (...args: any[]) => any; quarter: (...args: any[]) => any; month: (...args: any[]) => any; day: (...args: any[]) => any; dayPeriod: (...args: any[]) => any; }"
19390
+ }
19391
+ },
19392
+ "formatLong": {
19393
+ "defaultValue": null,
19394
+ "description": "",
19395
+ "name": "formatLong",
19396
+ "declarations": [
19397
+ {
19398
+ "fileName": "Aksel/node_modules/date-fns/typings.d.ts",
19399
+ "name": "TypeLiteral"
19400
+ }
19401
+ ],
19402
+ "required": false,
19403
+ "type": {
19404
+ "name": "{ date: (...args: any[]) => any; time: (...args: any[]) => any; dateTime: (...args: any[]) => any; }"
19405
+ }
19406
+ },
19407
+ "match": {
19408
+ "defaultValue": null,
19409
+ "description": "",
19410
+ "name": "match",
19411
+ "declarations": [
19412
+ {
19413
+ "fileName": "Aksel/node_modules/date-fns/typings.d.ts",
19414
+ "name": "TypeLiteral"
19415
+ }
19416
+ ],
19417
+ "required": false,
19418
+ "type": {
19419
+ "name": "{ ordinalNumber: (...args: any[]) => any; era: (...args: any[]) => any; quarter: (...args: any[]) => any; month: (...args: any[]) => any; day: (...args: any[]) => any; dayPeriod: (...args: any[]) => any; }"
19420
+ }
19421
+ },
19422
+ "options": {
19423
+ "defaultValue": null,
19424
+ "description": "",
19425
+ "name": "options",
19426
+ "declarations": [
19427
+ {
19428
+ "fileName": "Aksel/node_modules/date-fns/typings.d.ts",
19429
+ "name": "TypeLiteral"
19430
+ }
19431
+ ],
19432
+ "required": false,
19433
+ "type": {
19434
+ "name": "{ weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6; firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7; } | undefined"
19435
+ }
19436
+ }
19437
+ }
18983
19438
  },
18984
19439
  {
18985
19440
  "filePath": "src/date/datepicker/parts/Row.tsx",
@@ -19628,7 +20083,7 @@
19628
20083
  ],
19629
20084
  "required": true,
19630
20085
  "type": {
19631
- "name": "Pick<ComboboxProps, \"allowNewValues\" | \"isMultiSelect\" | \"options\" | \"selectedOptions\" | \"onToggleSelected\">"
20086
+ "name": "Pick<ComboboxProps, \"allowNewValues\" | \"isMultiSelect\" | \"options\" | \"selectedOptions\" | \"onToggleSelected\" | \"maxSelected\">"
19632
20087
  }
19633
20088
  }
19634
20089
  }
@@ -19783,5 +20238,10 @@
19783
20238
  }
19784
20239
  }
19785
20240
  }
20241
+ },
20242
+ {
20243
+ "filePath": "src/util/hooks/descendants/useDescendant.tsx",
20244
+ "displayName": "createDescendantContext",
20245
+ "props": {}
19786
20246
  }
19787
20247
  ]
@@ -12,11 +12,6 @@ export interface BubbleProps extends HTMLAttributes<HTMLDivElement> {
12
12
  * Timestamp for sent message
13
13
  */
14
14
  timestamp?: string;
15
- /**
16
- * Background color on bubble
17
- * @deprecated Use `variant` on Chat instead
18
- */
19
- backgroundColor?: string;
20
15
  /**
21
16
  * Overrides hoizontal position of toptext
22
17
  */
@@ -41,8 +41,8 @@ const clsx_1 = __importDefault(require("clsx"));
41
41
  const react_1 = __importStar(require("react"));
42
42
  const typography_1 = require("../typography");
43
43
  const Bubble = (0, react_1.forwardRef)((_a, ref) => {
44
- var { children, className, name, timestamp, backgroundColor, toptextPosition } = _a, rest = __rest(_a, ["children", "className", "name", "timestamp", "backgroundColor", "toptextPosition"]);
45
- return (react_1.default.createElement("div", Object.assign({ ref: ref, className: (0, clsx_1.default)("navds-chat__bubble", className), style: { backgroundColor } }, rest),
44
+ var { children, className, name, timestamp, toptextPosition } = _a, rest = __rest(_a, ["children", "className", "name", "timestamp", "toptextPosition"]);
45
+ return (react_1.default.createElement("div", Object.assign({ ref: ref, className: (0, clsx_1.default)("navds-chat__bubble", className) }, rest),
46
46
  (timestamp || name) && (react_1.default.createElement("h3", { className: (0, clsx_1.default)(`navds-chat__top-text`, toptextPosition && `navds-chat__top-text--${toptextPosition}`) },
47
47
  name && react_1.default.createElement(typography_1.Detail, { as: "span" }, name),
48
48
  name && timestamp && (react_1.default.createElement(typography_1.Detail, { as: "span", "aria-hidden": true }, "\u2022")),