@inera/ids-react 7.2.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (472) hide show
  1. package/components/accordion/accordion.d.ts +1 -0
  2. package/components/accordion/accordion.js +5 -43
  3. package/components/alert/alert.d.ts +3 -3
  4. package/components/alert/alert.js +8 -5
  5. package/components/badge/badge.d.ts +3 -6
  6. package/components/badge/badge.js +3 -3
  7. package/components/box-link/box-link.d.ts +3 -5
  8. package/components/box-link/box-link.js +3 -4
  9. package/components/breadcrumbs/breadcrumbs.d.ts +2 -3
  10. package/components/breadcrumbs/breadcrumbs.js +5 -6
  11. package/components/button/button.d.ts +6 -8
  12. package/components/button/button.js +5 -79
  13. package/components/button-group/button-group.d.ts +2 -3
  14. package/components/button-group/button-group.js +2 -2
  15. package/components/card/card.d.ts +6 -7
  16. package/components/card/card.js +16 -10
  17. package/components/carousel/carousel-item.js +5 -5
  18. package/components/carousel/carousel.d.ts +0 -2
  19. package/components/carousel/carousel.js +22 -42
  20. package/components/date-label/date-label.d.ts +8 -2
  21. package/components/date-label/date-label.js +10 -17
  22. package/components/dialog/dialog.d.ts +13 -13
  23. package/components/dialog/dialog.js +10 -13
  24. package/components/dropdown/dropdown-content-button.d.ts +7 -0
  25. package/components/dropdown/dropdown-content-button.js +11 -0
  26. package/components/dropdown/dropdown-content-link.d.ts +1 -1
  27. package/components/dropdown/dropdown-content-link.js +4 -3
  28. package/components/dropdown/dropdown.d.ts +6 -5
  29. package/components/dropdown/dropdown.js +12 -11
  30. package/components/footer-1177/footer-1177.d.ts +3 -7
  31. package/components/footer-1177/footer-1177.js +9 -52
  32. package/components/footer-1177-admin/footer-1177-admin.d.ts +6 -8
  33. package/components/footer-1177-admin/footer-1177-admin.js +11 -53
  34. package/components/footer-1177-pro/footer-1177-pro.d.ts +16 -11
  35. package/components/footer-1177-pro/footer-1177-pro.js +13 -31
  36. package/components/footer-inera/footer-inera.d.ts +3 -7
  37. package/components/footer-inera/footer-inera.js +10 -53
  38. package/components/footer-inera-admin/footer-inera-admin.d.ts +3 -7
  39. package/components/footer-inera-admin/footer-inera-admin.js +12 -52
  40. package/components/form/check-button/check-button.d.ts +1 -0
  41. package/components/form/check-button/check-button.js +2 -2
  42. package/components/form/checkbox/checkbox-group.d.ts +1 -1
  43. package/components/form/checkbox/checkbox-group.js +6 -6
  44. package/components/form/checkbox/checkbox.d.ts +1 -0
  45. package/components/form/checkbox/checkbox.js +3 -3
  46. package/components/form/input/input.d.ts +2 -4
  47. package/components/form/input/input.js +16 -37
  48. package/components/form/radio/radio-group.d.ts +2 -2
  49. package/components/form/radio/radio-group.js +6 -6
  50. package/components/form/radio/radio.d.ts +3 -3
  51. package/components/form/radio/radio.js +2 -2
  52. package/components/form/radio-button/radio-button-group.d.ts +2 -2
  53. package/components/form/radio-button/radio-button-group.js +7 -7
  54. package/components/form/radio-button/radio-button.d.ts +4 -3
  55. package/components/form/radio-button/radio-button.js +2 -2
  56. package/components/form/range/range.d.ts +1 -0
  57. package/components/form/range/range.js +2 -2
  58. package/components/form/select/select.d.ts +1 -1
  59. package/components/form/select/select.js +5 -3
  60. package/components/form/select-multiple/select-multiple.d.ts +3 -0
  61. package/components/form/select-multiple/select-multiple.js +13 -6
  62. package/components/form/textarea/textarea.d.ts +1 -0
  63. package/components/form/textarea/textarea.js +2 -2
  64. package/components/form/time/time.d.ts +1 -0
  65. package/components/form/time/time.js +6 -6
  66. package/components/form/toggle/toggle.d.ts +1 -0
  67. package/components/form/toggle/toggle.js +5 -5
  68. package/components/global-alert/global-alert.d.ts +16 -0
  69. package/components/global-alert/global-alert.js +26 -0
  70. package/components/grid/column.d.ts +3 -4
  71. package/components/grid/column.js +2 -3
  72. package/components/grid/container.d.ts +4 -4
  73. package/components/grid/container.js +7 -18
  74. package/components/grid/row.d.ts +4 -4
  75. package/components/grid/row.js +6 -11
  76. package/components/header-1177/header-1177-avatar.d.ts +5 -2
  77. package/components/header-1177/header-1177-avatar.js +21 -10
  78. package/components/header-1177/header-1177-item.d.ts +3 -2
  79. package/components/header-1177/header-1177-item.js +22 -16
  80. package/components/header-1177/header-1177-menu-mobile.d.ts +1 -1
  81. package/components/header-1177/header-1177-menu-mobile.js +29 -18
  82. package/components/header-1177/header-1177-nav-item-mobile.js +7 -12
  83. package/components/header-1177/header-1177-nav-item.d.ts +4 -4
  84. package/components/header-1177/header-1177-nav-item.js +23 -18
  85. package/components/header-1177/header-1177-nav.d.ts +4 -2
  86. package/components/header-1177/header-1177-nav.js +6 -8
  87. package/components/header-1177/header-1177-region-picker-mobile.d.ts +9 -0
  88. package/components/header-1177/header-1177-region-picker-mobile.js +36 -0
  89. package/components/header-1177/header-1177-region-picker.d.ts +9 -0
  90. package/components/header-1177/header-1177-region-picker.js +34 -0
  91. package/components/header-1177/header-1177.d.ts +3 -7
  92. package/components/header-1177/header-1177.js +7 -36
  93. package/components/header-1177-admin/header-1177-admin-avatar-mobile.d.ts +3 -0
  94. package/components/header-1177-admin/header-1177-admin-avatar-mobile.js +28 -3
  95. package/components/header-1177-admin/header-1177-admin-avatar.d.ts +3 -2
  96. package/components/header-1177-admin/header-1177-admin-avatar.js +31 -18
  97. package/components/header-1177-admin/header-1177-admin-item.d.ts +2 -2
  98. package/components/header-1177-admin/header-1177-admin-item.js +23 -19
  99. package/components/header-1177-admin/header-1177-admin-menu-mobile.d.ts +11 -0
  100. package/components/header-1177-admin/header-1177-admin-menu-mobile.js +53 -0
  101. package/components/header-1177-admin/header-1177-admin-nav-item.d.ts +4 -4
  102. package/components/header-1177-admin/header-1177-admin-nav-item.js +22 -17
  103. package/components/header-1177-admin/header-1177-admin-nav.d.ts +2 -2
  104. package/components/header-1177-admin/header-1177-admin-nav.js +7 -9
  105. package/components/header-1177-admin/header-1177-admin.d.ts +3 -6
  106. package/components/header-1177-admin/header-1177-admin.js +7 -21
  107. package/components/header-1177-pro/header-1177-pro-avatar-mobile.d.ts +3 -0
  108. package/components/header-1177-pro/header-1177-pro-avatar-mobile.js +28 -3
  109. package/components/header-1177-pro/header-1177-pro-avatar.d.ts +3 -2
  110. package/components/header-1177-pro/header-1177-pro-avatar.js +31 -18
  111. package/components/header-1177-pro/header-1177-pro-item.d.ts +2 -2
  112. package/components/header-1177-pro/header-1177-pro-item.js +23 -16
  113. package/components/header-1177-pro/{header-1177-pro-nav-menu-mobile.d.ts → header-1177-pro-menu-mobile.d.ts} +3 -3
  114. package/components/header-1177-pro/header-1177-pro-menu-mobile.js +53 -0
  115. package/components/header-1177-pro/header-1177-pro-nav-item.d.ts +5 -5
  116. package/components/header-1177-pro/header-1177-pro-nav-item.js +17 -21
  117. package/components/header-1177-pro/header-1177-pro-nav.d.ts +4 -5
  118. package/components/header-1177-pro/header-1177-pro-nav.js +8 -25
  119. package/components/header-1177-pro/header-1177-pro-region-picker-mobile.d.ts +9 -0
  120. package/components/header-1177-pro/header-1177-pro-region-picker-mobile.js +36 -0
  121. package/components/header-1177-pro/header-1177-pro-region-picker.d.ts +9 -0
  122. package/components/header-1177-pro/header-1177-pro-region-picker.js +34 -0
  123. package/components/header-1177-pro/header-1177-pro.d.ts +6 -9
  124. package/components/header-1177-pro/header-1177-pro.js +6 -34
  125. package/components/header-inera/header-inera-item.d.ts +3 -4
  126. package/components/header-inera/header-inera-item.js +30 -15
  127. package/components/header-inera/header-inera-menu-mobile.d.ts +11 -0
  128. package/components/header-inera/header-inera-menu-mobile.js +54 -0
  129. package/components/header-inera/header-inera-nav-item.js +9 -25
  130. package/components/header-inera/header-inera-nav.d.ts +1 -1
  131. package/components/header-inera/header-inera-nav.js +6 -8
  132. package/components/header-inera/header-inera.d.ts +3 -4
  133. package/components/header-inera/header-inera.js +6 -13
  134. package/components/header-inera-admin/header-inera-admin-avatar-mobile.d.ts +5 -2
  135. package/components/header-inera-admin/header-inera-admin-avatar-mobile.js +23 -3
  136. package/components/header-inera-admin/header-inera-admin-avatar.d.ts +3 -4
  137. package/components/header-inera-admin/header-inera-admin-avatar.js +34 -22
  138. package/components/header-inera-admin/header-inera-admin-item.d.ts +3 -4
  139. package/components/header-inera-admin/header-inera-admin-item.js +17 -13
  140. package/components/header-inera-admin/header-inera-admin-menu-mobile.d.ts +11 -0
  141. package/components/header-inera-admin/header-inera-admin-menu-mobile.js +53 -0
  142. package/components/header-inera-admin/header-inera-admin-nav-item.d.ts +1 -3
  143. package/components/header-inera-admin/header-inera-admin-nav-item.js +15 -31
  144. package/components/header-inera-admin/header-inera-admin-nav.d.ts +2 -3
  145. package/components/header-inera-admin/header-inera-admin-nav.js +4 -6
  146. package/components/header-inera-admin/header-inera-admin.d.ts +2 -2
  147. package/components/header-inera-admin/header-inera-admin.js +6 -8
  148. package/components/header-patient/header-patient.d.ts +3 -3
  149. package/components/header-patient/header-patient.js +2 -2
  150. package/components/link/link.d.ts +4 -4
  151. package/components/link/link.js +17 -15
  152. package/components/mobile/menu/item/mobile-item.js +4 -4
  153. package/components/navigation/content/navigation-content.d.ts +3 -3
  154. package/components/navigation/content/navigation-content.js +7 -13
  155. package/components/navigation/local/navigation-local.d.ts +2 -3
  156. package/components/navigation/local/navigation-local.js +2 -2
  157. package/components/notification/badge/notification-badge.d.ts +2 -3
  158. package/components/notification/badge/notification-badge.js +2 -2
  159. package/components/pagination/data-pagination/data-pagination.d.ts +8 -13
  160. package/components/pagination/data-pagination/data-pagination.js +7 -8
  161. package/components/pagination/list-pagination/list-pagination.d.ts +1 -1
  162. package/components/pagination/list-pagination/list-pagination.js +7 -13
  163. package/components/popover/popover.js +9 -9
  164. package/components/progressbar/progressbar.d.ts +5 -3
  165. package/components/progressbar/progressbar.js +4 -4
  166. package/components/puff-list/puff-list-item/puff-list-item-date.d.ts +13 -0
  167. package/components/puff-list/puff-list-item/puff-list-item-date.js +23 -0
  168. package/components/puff-list/puff-list-item/puff-list-item-header.d.ts +10 -0
  169. package/components/puff-list/puff-list-item/puff-list-item-header.js +11 -0
  170. package/components/puff-list/puff-list-item/puff-list-item-info.d.ts +4 -5
  171. package/components/puff-list/puff-list-item/puff-list-item-info.js +5 -3
  172. package/components/puff-list/puff-list-item/puff-list-item.d.ts +10 -13
  173. package/components/puff-list/puff-list-item/puff-list-item.js +10 -46
  174. package/components/puff-list/puff-list.d.ts +1 -1
  175. package/components/puff-list/puff-list.js +4 -3
  176. package/components/region-icon/region-icon.d.ts +2 -2
  177. package/components/region-icon/region-icon.js +6 -6
  178. package/components/side-menu/side-menu.d.ts +1 -1
  179. package/components/side-menu/side-menu.js +7 -7
  180. package/components/side-panel/side-panel.d.ts +2 -0
  181. package/components/side-panel/side-panel.js +5 -5
  182. package/components/stepper/step.js +2 -2
  183. package/components/stepper/stepper.d.ts +1 -1
  184. package/components/stepper/stepper.js +5 -5
  185. package/components/tabs/tab-panel.js +2 -2
  186. package/components/tabs/tab.js +2 -2
  187. package/components/tabs/tabs.js +13 -13
  188. package/components/tag/tag.d.ts +11 -4
  189. package/components/tag/tag.js +7 -7
  190. package/components/tooltip/tooltip.d.ts +1 -0
  191. package/components/tooltip/tooltip.js +8 -7
  192. package/components/utils/contexts/HeaderContext.d.ts +0 -2
  193. package/components/utils/hooks/useFocusTrap.js +2 -1
  194. package/index.d.ts +18 -144
  195. package/index.js +18 -144
  196. package/package.json +2 -3
  197. package/components/agent/agent.d.ts +0 -12
  198. package/components/agent/agent.js +0 -18
  199. package/components/alert-global/alert-global.d.ts +0 -16
  200. package/components/alert-global/alert-global.js +0 -28
  201. package/components/header-1177-pro/header-1177-pro-nav-menu-mobile.js +0 -35
  202. package/components/header-inera/header-inera-nav-mobile.d.ts +0 -11
  203. package/components/header-inera/header-inera-nav-mobile.js +0 -47
  204. package/components/header-inera-admin/header-inera-admin-nav-mobile.d.ts +0 -12
  205. package/components/header-inera-admin/header-inera-admin-nav-mobile.js +0 -35
  206. package/components/icons/icon-1177.d.ts +0 -3
  207. package/components/icons/icon-1177.js +0 -12
  208. package/components/icons/icon-activity.d.ts +0 -3
  209. package/components/icons/icon-activity.js +0 -12
  210. package/components/icons/icon-agent.d.ts +0 -3
  211. package/components/icons/icon-agent.js +0 -12
  212. package/components/icons/icon-alarm-clock-inactivity.d.ts +0 -3
  213. package/components/icons/icon-alarm-clock-inactivity.js +0 -12
  214. package/components/icons/icon-alarm-clock-neutral.d.ts +0 -3
  215. package/components/icons/icon-alarm-clock-neutral.js +0 -12
  216. package/components/icons/icon-archive.d.ts +0 -3
  217. package/components/icons/icon-archive.js +0 -12
  218. package/components/icons/icon-arrow.d.ts +0 -3
  219. package/components/icons/icon-arrow.js +0 -12
  220. package/components/icons/icon-attention.d.ts +0 -3
  221. package/components/icons/icon-attention.js +0 -12
  222. package/components/icons/icon-blekinge.d.ts +0 -3
  223. package/components/icons/icon-blekinge.js +0 -12
  224. package/components/icons/icon-bookmark.d.ts +0 -3
  225. package/components/icons/icon-bookmark.js +0 -12
  226. package/components/icons/icon-calendar.d.ts +0 -3
  227. package/components/icons/icon-calendar.js +0 -12
  228. package/components/icons/icon-call-active.d.ts +0 -3
  229. package/components/icons/icon-call-active.js +0 -12
  230. package/components/icons/icon-call.d.ts +0 -3
  231. package/components/icons/icon-call.js +0 -12
  232. package/components/icons/icon-camera-off.d.ts +0 -3
  233. package/components/icons/icon-camera-off.js +0 -12
  234. package/components/icons/icon-camera-on.d.ts +0 -3
  235. package/components/icons/icon-camera-on.js +0 -12
  236. package/components/icons/icon-camera-switch.d.ts +0 -3
  237. package/components/icons/icon-camera-switch.js +0 -12
  238. package/components/icons/icon-chart-bar.d.ts +0 -3
  239. package/components/icons/icon-chart-bar.js +0 -12
  240. package/components/icons/icon-chart-line.d.ts +0 -3
  241. package/components/icons/icon-chart-line.js +0 -12
  242. package/components/icons/icon-chat.d.ts +0 -3
  243. package/components/icons/icon-chat.js +0 -12
  244. package/components/icons/icon-check.d.ts +0 -3
  245. package/components/icons/icon-check.js +0 -12
  246. package/components/icons/icon-chevron-bold.d.ts +0 -3
  247. package/components/icons/icon-chevron-bold.js +0 -12
  248. package/components/icons/icon-chevron.d.ts +0 -3
  249. package/components/icons/icon-chevron.js +0 -12
  250. package/components/icons/icon-clipboard-cross.d.ts +0 -3
  251. package/components/icons/icon-clipboard-cross.js +0 -12
  252. package/components/icons/icon-clipboard-text.d.ts +0 -3
  253. package/components/icons/icon-clipboard-text.js +0 -12
  254. package/components/icons/icon-clipboard.d.ts +0 -3
  255. package/components/icons/icon-clipboard.js +0 -12
  256. package/components/icons/icon-clock.d.ts +0 -3
  257. package/components/icons/icon-clock.js +0 -12
  258. package/components/icons/icon-close-bold.d.ts +0 -3
  259. package/components/icons/icon-close-bold.js +0 -12
  260. package/components/icons/icon-close.d.ts +0 -3
  261. package/components/icons/icon-close.js +0 -12
  262. package/components/icons/icon-cog.d.ts +0 -3
  263. package/components/icons/icon-cog.js +0 -12
  264. package/components/icons/icon-computer-inera.d.ts +0 -3
  265. package/components/icons/icon-computer-inera.js +0 -12
  266. package/components/icons/icon-computer.d.ts +0 -3
  267. package/components/icons/icon-computer.js +0 -12
  268. package/components/icons/icon-copy-file.d.ts +0 -3
  269. package/components/icons/icon-copy-file.js +0 -12
  270. package/components/icons/icon-copy-link.d.ts +0 -3
  271. package/components/icons/icon-copy-link.js +0 -12
  272. package/components/icons/icon-dalarna.d.ts +0 -3
  273. package/components/icons/icon-dalarna.js +0 -12
  274. package/components/icons/icon-denied.d.ts +0 -3
  275. package/components/icons/icon-denied.js +0 -12
  276. package/components/icons/icon-doctors-bag.d.ts +0 -3
  277. package/components/icons/icon-doctors-bag.js +0 -12
  278. package/components/icons/icon-document.d.ts +0 -3
  279. package/components/icons/icon-document.js +0 -12
  280. package/components/icons/icon-download.d.ts +0 -3
  281. package/components/icons/icon-download.js +0 -12
  282. package/components/icons/icon-drag-n-drop.d.ts +0 -3
  283. package/components/icons/icon-drag-n-drop.js +0 -12
  284. package/components/icons/icon-ear-hearing.d.ts +0 -3
  285. package/components/icons/icon-ear-hearing.js +0 -12
  286. package/components/icons/icon-edit.d.ts +0 -3
  287. package/components/icons/icon-edit.js +0 -12
  288. package/components/icons/icon-email-sent.d.ts +0 -3
  289. package/components/icons/icon-email-sent.js +0 -12
  290. package/components/icons/icon-email-unread.d.ts +0 -3
  291. package/components/icons/icon-email-unread.js +0 -12
  292. package/components/icons/icon-email.d.ts +0 -3
  293. package/components/icons/icon-email.js +0 -12
  294. package/components/icons/icon-expand.d.ts +0 -3
  295. package/components/icons/icon-expand.js +0 -12
  296. package/components/icons/icon-external.d.ts +0 -3
  297. package/components/icons/icon-external.js +0 -12
  298. package/components/icons/icon-facebook.d.ts +0 -3
  299. package/components/icons/icon-facebook.js +0 -12
  300. package/components/icons/icon-file-csv.d.ts +0 -3
  301. package/components/icons/icon-file-csv.js +0 -12
  302. package/components/icons/icon-file-excel.d.ts +0 -3
  303. package/components/icons/icon-file-excel.js +0 -12
  304. package/components/icons/icon-file-other.d.ts +0 -3
  305. package/components/icons/icon-file-other.js +0 -12
  306. package/components/icons/icon-file-pdf.d.ts +0 -3
  307. package/components/icons/icon-file-pdf.js +0 -12
  308. package/components/icons/icon-file-picture.d.ts +0 -3
  309. package/components/icons/icon-file-picture.js +0 -12
  310. package/components/icons/icon-file-powerpoint.d.ts +0 -3
  311. package/components/icons/icon-file-powerpoint.js +0 -12
  312. package/components/icons/icon-file-word.d.ts +0 -3
  313. package/components/icons/icon-file-word.js +0 -12
  314. package/components/icons/icon-find-care.d.ts +0 -3
  315. package/components/icons/icon-find-care.js +0 -12
  316. package/components/icons/icon-find-region.d.ts +0 -3
  317. package/components/icons/icon-find-region.js +0 -12
  318. package/components/icons/icon-flag.d.ts +0 -3
  319. package/components/icons/icon-flag.js +0 -12
  320. package/components/icons/icon-form-numbered-reocurring.d.ts +0 -3
  321. package/components/icons/icon-form-numbered-reocurring.js +0 -12
  322. package/components/icons/icon-form-numbered.d.ts +0 -3
  323. package/components/icons/icon-form-numbered.js +0 -12
  324. package/components/icons/icon-gavleborg.d.ts +0 -3
  325. package/components/icons/icon-gavleborg.js +0 -12
  326. package/components/icons/icon-gotland.d.ts +0 -3
  327. package/components/icons/icon-gotland.js +0 -12
  328. package/components/icons/icon-halland.d.ts +0 -3
  329. package/components/icons/icon-halland.js +0 -12
  330. package/components/icons/icon-headphones.d.ts +0 -3
  331. package/components/icons/icon-headphones.js +0 -12
  332. package/components/icons/icon-hourglass-end.d.ts +0 -3
  333. package/components/icons/icon-hourglass-end.js +0 -12
  334. package/components/icons/icon-hourglass-start.d.ts +0 -3
  335. package/components/icons/icon-hourglass-start.js +0 -12
  336. package/components/icons/icon-hourglass.d.ts +0 -3
  337. package/components/icons/icon-hourglass.js +0 -12
  338. package/components/icons/icon-house.d.ts +0 -3
  339. package/components/icons/icon-house.js +0 -12
  340. package/components/icons/icon-id-card-locked.d.ts +0 -3
  341. package/components/icons/icon-id-card-locked.js +0 -12
  342. package/components/icons/icon-id-card.d.ts +0 -3
  343. package/components/icons/icon-id-card.js +0 -12
  344. package/components/icons/icon-image.d.ts +0 -3
  345. package/components/icons/icon-image.js +0 -12
  346. package/components/icons/icon-inera-legacy.d.ts +0 -3
  347. package/components/icons/icon-inera-legacy.js +0 -12
  348. package/components/icons/icon-inera.d.ts +0 -3
  349. package/components/icons/icon-inera.js +0 -12
  350. package/components/icons/icon-information.d.ts +0 -3
  351. package/components/icons/icon-information.js +0 -12
  352. package/components/icons/icon-jamtland-harjedalen.d.ts +0 -3
  353. package/components/icons/icon-jamtland-harjedalen.js +0 -12
  354. package/components/icons/icon-jonkoping.d.ts +0 -3
  355. package/components/icons/icon-jonkoping.js +0 -12
  356. package/components/icons/icon-kalmar.d.ts +0 -3
  357. package/components/icons/icon-kalmar.js +0 -12
  358. package/components/icons/icon-kronoberg.d.ts +0 -3
  359. package/components/icons/icon-kronoberg.js +0 -12
  360. package/components/icons/icon-lightbulb.d.ts +0 -3
  361. package/components/icons/icon-lightbulb.js +0 -12
  362. package/components/icons/icon-linkedin.d.ts +0 -3
  363. package/components/icons/icon-linkedin.js +0 -12
  364. package/components/icons/icon-list.d.ts +0 -3
  365. package/components/icons/icon-list.js +0 -12
  366. package/components/icons/icon-lock-open.d.ts +0 -3
  367. package/components/icons/icon-lock-open.js +0 -12
  368. package/components/icons/icon-lock.d.ts +0 -3
  369. package/components/icons/icon-lock.js +0 -12
  370. package/components/icons/icon-log-locked.d.ts +0 -3
  371. package/components/icons/icon-log-locked.js +0 -12
  372. package/components/icons/icon-log.d.ts +0 -3
  373. package/components/icons/icon-log.js +0 -12
  374. package/components/icons/icon-menu.d.ts +0 -3
  375. package/components/icons/icon-menu.js +0 -12
  376. package/components/icons/icon-minus.d.ts +0 -3
  377. package/components/icons/icon-minus.js +0 -12
  378. package/components/icons/icon-moment-start.d.ts +0 -3
  379. package/components/icons/icon-moment-start.js +0 -12
  380. package/components/icons/icon-moment-stop.d.ts +0 -3
  381. package/components/icons/icon-moment-stop.js +0 -12
  382. package/components/icons/icon-norrbotten.d.ts +0 -3
  383. package/components/icons/icon-norrbotten.js +0 -12
  384. package/components/icons/icon-office-building.d.ts +0 -3
  385. package/components/icons/icon-office-building.js +0 -12
  386. package/components/icons/icon-orebro.d.ts +0 -3
  387. package/components/icons/icon-orebro.js +0 -12
  388. package/components/icons/icon-organization.d.ts +0 -3
  389. package/components/icons/icon-organization.js +0 -12
  390. package/components/icons/icon-ostergotland.d.ts +0 -3
  391. package/components/icons/icon-ostergotland.js +0 -12
  392. package/components/icons/icon-plus.d.ts +0 -3
  393. package/components/icons/icon-plus.js +0 -12
  394. package/components/icons/icon-prescription.d.ts +0 -3
  395. package/components/icons/icon-prescription.js +0 -12
  396. package/components/icons/icon-print.d.ts +0 -3
  397. package/components/icons/icon-print.js +0 -12
  398. package/components/icons/icon-question.d.ts +0 -3
  399. package/components/icons/icon-question.js +0 -12
  400. package/components/icons/icon-reload.d.ts +0 -3
  401. package/components/icons/icon-reload.js +0 -12
  402. package/components/icons/icon-reply.d.ts +0 -3
  403. package/components/icons/icon-reply.js +0 -12
  404. package/components/icons/icon-search-inera.d.ts +0 -3
  405. package/components/icons/icon-search-inera.js +0 -12
  406. package/components/icons/icon-search.d.ts +0 -3
  407. package/components/icons/icon-search.js +0 -12
  408. package/components/icons/icon-share.d.ts +0 -3
  409. package/components/icons/icon-share.js +0 -12
  410. package/components/icons/icon-shield-locked-primary.d.ts +0 -3
  411. package/components/icons/icon-shield-locked-primary.js +0 -12
  412. package/components/icons/icon-shield-locked.d.ts +0 -3
  413. package/components/icons/icon-shield-locked.js +0 -12
  414. package/components/icons/icon-skane.d.ts +0 -3
  415. package/components/icons/icon-skane.js +0 -12
  416. package/components/icons/icon-sormland.d.ts +0 -3
  417. package/components/icons/icon-sormland.js +0 -12
  418. package/components/icons/icon-star-filled.d.ts +0 -3
  419. package/components/icons/icon-star-filled.js +0 -12
  420. package/components/icons/icon-star.d.ts +0 -3
  421. package/components/icons/icon-star.js +0 -12
  422. package/components/icons/icon-stockholm.d.ts +0 -3
  423. package/components/icons/icon-stockholm.js +0 -12
  424. package/components/icons/icon-success.d.ts +0 -3
  425. package/components/icons/icon-success.js +0 -12
  426. package/components/icons/icon-swap.d.ts +0 -3
  427. package/components/icons/icon-swap.js +0 -12
  428. package/components/icons/icon-switch-person.d.ts +0 -3
  429. package/components/icons/icon-switch-person.js +0 -12
  430. package/components/icons/icon-telephone.d.ts +0 -3
  431. package/components/icons/icon-telephone.js +0 -12
  432. package/components/icons/icon-test-tube-analyze.d.ts +0 -3
  433. package/components/icons/icon-test-tube-analyze.js +0 -12
  434. package/components/icons/icon-test-tube-empty.d.ts +0 -3
  435. package/components/icons/icon-test-tube-empty.js +0 -12
  436. package/components/icons/icon-test-tube.d.ts +0 -3
  437. package/components/icons/icon-test-tube.js +0 -12
  438. package/components/icons/icon-toggle-card.d.ts +0 -3
  439. package/components/icons/icon-toggle-card.js +0 -12
  440. package/components/icons/icon-toggle-list.d.ts +0 -3
  441. package/components/icons/icon-toggle-list.js +0 -12
  442. package/components/icons/icon-trash.d.ts +0 -3
  443. package/components/icons/icon-trash.js +0 -12
  444. package/components/icons/icon-twitter.d.ts +0 -3
  445. package/components/icons/icon-twitter.js +0 -12
  446. package/components/icons/icon-uppsala.d.ts +0 -3
  447. package/components/icons/icon-uppsala.js +0 -12
  448. package/components/icons/icon-user.d.ts +0 -3
  449. package/components/icons/icon-user.js +0 -12
  450. package/components/icons/icon-varmland.d.ts +0 -3
  451. package/components/icons/icon-varmland.js +0 -12
  452. package/components/icons/icon-vasterbotten.d.ts +0 -3
  453. package/components/icons/icon-vasterbotten.js +0 -12
  454. package/components/icons/icon-vasternorrland.d.ts +0 -3
  455. package/components/icons/icon-vasternorrland.js +0 -12
  456. package/components/icons/icon-vastmanland.d.ts +0 -3
  457. package/components/icons/icon-vastmanland.js +0 -12
  458. package/components/icons/icon-vastra-gotaland.d.ts +0 -3
  459. package/components/icons/icon-vastra-gotaland.js +0 -12
  460. package/components/icons/icon-video-off.d.ts +0 -3
  461. package/components/icons/icon-video-off.js +0 -12
  462. package/components/icons/icon-video-on.d.ts +0 -3
  463. package/components/icons/icon-video-on.js +0 -12
  464. package/components/icons/icon-video-switch.d.ts +0 -3
  465. package/components/icons/icon-video-switch.js +0 -12
  466. package/components/icons/icon-visibility-off.d.ts +0 -3
  467. package/components/icons/icon-visibility-off.js +0 -12
  468. package/components/icons/icon-visibility.d.ts +0 -3
  469. package/components/icons/icon-visibility.js +0 -12
  470. package/components/icons/icon-warning.d.ts +0 -3
  471. package/components/icons/icon-warning.js +0 -12
  472. package/components/icons/icon-x.d.ts +0 -3
@@ -3,7 +3,7 @@ import "@inera/ids-design/components/header-inera-admin/header-inera-admin.css";
3
3
  export interface IDSHeaderIneraAdminProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  brandText?: string;
5
5
  serviceName?: string;
6
- fluid?: boolean;
6
+ srLogoText?: string;
7
7
  unresponsive?: boolean;
8
8
  showLogo?: boolean;
9
9
  items?: ReactNode;
@@ -13,4 +13,4 @@ export interface IDSHeaderIneraAdminProps extends React.HTMLAttributes<HTMLDivEl
13
13
  mobileMenu?: ReactNode;
14
14
  children?: ReactNode;
15
15
  }
16
- export declare const IDSHeaderIneraAdmin: React.FC<IDSHeaderIneraAdminProps>;
16
+ export declare function IDSHeaderIneraAdmin({ brandText, unresponsive, showLogo, items, avatar, skipToContent, brandLink, srLogoText, serviceName, mobileMenu, className, children, ...props }: IDSHeaderIneraAdminProps): import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,10 @@
1
- "use client";
2
1
  import { jsx, jsxs } from 'react/jsx-runtime';
3
2
  import { isValidElement, cloneElement } from 'react';
4
- import '@inera/ids-design/components/header-inera-admin/header-inera-admin.css';
5
3
  import clsx from 'clsx';
6
4
  import { HeaderProvider } from '../utils/contexts/HeaderContext.js';
5
+ import '@inera/ids-design/components/header-inera-admin/header-inera-admin.css';
7
6
 
8
- const IDSHeaderIneraAdmin = ({ brandText = "", fluid = false, unresponsive = false, showLogo = false, items, avatar, skipToContent, brandLink, serviceName = "EN TJÄNST FRÅN INERA", mobileMenu, className, children }) => {
7
+ function IDSHeaderIneraAdmin({ brandText = "", unresponsive = false, showLogo = false, items, avatar, skipToContent, brandLink, srLogoText = "Logotyp inera", serviceName = "EN TJÄNST FRÅN INERA", mobileMenu, className, children, ...props }) {
9
8
  const renderBrandText = () => {
10
9
  if (brandLink && isValidElement(brandLink)) {
11
10
  return (jsx("span", { className: "ids-header-inera-admin__brand-link", children: cloneElement(brandLink, {
@@ -14,10 +13,9 @@ const IDSHeaderIneraAdmin = ({ brandText = "", fluid = false, unresponsive = fal
14
13
  }
15
14
  return null;
16
15
  };
17
- return (jsx(HeaderProvider, { value: { unresponsive, fluid, hideRegionPicker: true, regionPickerText: "" }, children: jsxs("header", { className: clsx("ids-header-inera-admin", {
18
- "ids-header-inera-admin--unresponsive": unresponsive,
19
- "ids-header-inera-admin--fluid": fluid
20
- }, className), children: [skipToContent && jsx("div", { className: "ids-header-inera-admin__skip-to-content", children: skipToContent }), jsxs("div", { className: "ids-header-inera-admin__inner", children: [jsx("div", { className: "ids-header-inera-admin__service-wrapper", children: jsxs("div", { className: "ids-header-inera-admin__brand", children: [showLogo && jsx("div", { className: "ids-header-inera-admin__logo", "aria-label": "Logotyp inera" }), jsxs("div", { className: "ids-header-inera-admin__brand-inner", children: [renderBrandText(), jsx("h1", { className: "ids-header-inera-admin__brand-text", children: brandText }), jsx("h2", { className: "ids-header-inera-admin__service-name", children: serviceName })] })] }) }), jsxs("div", { className: "ids-header-inera-admin__items", children: [items, " ", avatar, " ", mobileMenu] })] }), children] }) }));
21
- };
16
+ return (jsx(HeaderProvider, { value: { unresponsive, hideRegionPicker: true }, children: jsxs("header", { className: clsx("ids-header-inera-admin", {
17
+ "ids-header-inera-admin--unresponsive": unresponsive
18
+ }, className), ...props, children: [skipToContent && jsx("div", { className: "ids-header-inera-admin__skip-to-content", children: skipToContent }), jsxs("div", { className: "ids-header-inera-admin__inner", children: [jsxs("div", { className: "ids-header-inera-admin__main", children: [jsx("div", { className: "ids-header-inera-admin__service-wrapper", children: jsxs("div", { className: "ids-header-inera-admin__brand", children: [showLogo && jsx("div", { className: "ids-header-inera-admin__logo", role: "img", "aria-label": srLogoText }), jsxs("div", { className: "ids-header-inera-admin__brand-inner", children: [renderBrandText(), jsx("h1", { className: "ids-header-inera-admin__brand-text", children: brandText }), jsx("h2", { className: "ids-header-inera-admin__service-name", children: serviceName })] })] }) }), jsxs("div", { className: "ids-header-inera-admin__items", children: [items, " ", avatar, " ", mobileMenu && jsx("div", { className: "ids-header-inera-admin__mobile-menu", children: mobileMenu })] })] }), children] })] }) }));
19
+ }
22
20
 
23
21
  export { IDSHeaderIneraAdmin };
@@ -1,12 +1,12 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import "@inera/ids-design/components/header-patient/header-patient.css";
3
3
  interface IDSHeaderPatientProps extends React.HTMLAttributes<HTMLDivElement> {
4
- srLabel?: string;
4
+ buttons?: ReactNode;
5
+ collapse?: boolean;
5
6
  name?: string;
7
+ srLabel?: string;
6
8
  ssn?: string;
7
- collapse?: boolean;
8
9
  stack?: boolean;
9
- buttons?: ReactNode;
10
10
  children?: ReactNode;
11
11
  }
12
12
  export declare const IDSHeaderPatient: React.FC<IDSHeaderPatientProps>;
@@ -4,7 +4,7 @@ import { useMemo } from 'react';
4
4
  import '@inera/ids-design/components/header-patient/header-patient.css';
5
5
  import { clsx } from 'clsx';
6
6
 
7
- const IDSHeaderPatient = ({ srLabel = "", name = "", ssn = "", collapse = false, stack = false, buttons, className, children }) => {
7
+ const IDSHeaderPatient = ({ srLabel = "", name = "", ssn = "", collapse = false, stack = false, buttons, className, children, ...props }) => {
8
8
  const isLong = useMemo(() => {
9
9
  const trimmed = name.trim();
10
10
  const whitespaceCount = (trimmed.match(/\s/g) || []).length;
@@ -15,7 +15,7 @@ const IDSHeaderPatient = ({ srLabel = "", name = "", ssn = "", collapse = false,
15
15
  "ids-header-patient--collapse": collapse,
16
16
  "ids-header-patient--long-name": isLong
17
17
  }, className);
18
- return (jsx("section", { className: classNames, "aria-label": srLabel, children: jsxs("div", { className: "ids-patient-header__inner", children: [jsxs("div", { className: "ids-header-patient__content", children: [jsxs("div", { className: "ids-header-patient__id", children: [jsx("span", { className: "ids-header-patient__name", children: name }), jsx("span", { className: "ids-header-patient__ssn", children: ssn })] }), jsx("div", { className: "ids-header-patient__info", children: children })] }), buttons && jsx("div", { className: "ids-header-patient__buttons", children: buttons })] }) }));
18
+ return (jsx("section", { className: classNames, "aria-label": srLabel, ...props, children: jsxs("div", { className: "ids-patient-header__inner", children: [jsxs("div", { className: "ids-header-patient__content", children: [jsxs("div", { className: "ids-header-patient__id", children: [jsx("span", { className: "ids-header-patient__name", children: name }), jsx("span", { className: "ids-header-patient__ssn", children: ssn })] }), jsx("div", { className: "ids-header-patient__info", children: children })] }), buttons && jsx("div", { className: "ids-header-patient__buttons", children: buttons })] }) }));
19
19
  };
20
20
 
21
21
  export { IDSHeaderPatient };
@@ -1,17 +1,17 @@
1
1
  import React, { ReactNode, ReactElement, AnchorHTMLAttributes } from "react";
2
- export type ColorPreset = 0 | 1 | 2 | 3 | 4;
2
+ export type ColorPreset = 0 | 1 | 2 | 3;
3
3
  export interface IDSLinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children"> {
4
4
  colorPreset?: ColorPreset;
5
- light?: boolean;
6
5
  active?: boolean;
7
6
  activeIcon?: boolean;
8
7
  block?: boolean;
8
+ footer?: boolean;
9
+ menu?: boolean;
9
10
  underlined?: boolean;
10
11
  noUnderline?: boolean;
11
12
  small?: boolean;
12
- large?: boolean;
13
13
  focusAnchor?: boolean;
14
14
  endItem?: ReactNode;
15
15
  children?: ReactElement;
16
16
  }
17
- export declare const IDSLink: React.FC<IDSLinkProps>;
17
+ export declare function IDSLink({ colorPreset, menu, footer, active, activeIcon, block, underlined, noUnderline, small, focusAnchor, endItem, children, ...props }: IDSLinkProps): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
@@ -1,6 +1,5 @@
1
- "use client";
2
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
- import { useRef, isValidElement, cloneElement } from 'react';
2
+ import { isValidElement, cloneElement } from 'react';
4
3
  import clsx from 'clsx';
5
4
 
6
5
  const containsIcon = (node) => {
@@ -14,32 +13,35 @@ const containsIcon = (node) => {
14
13
  }
15
14
  return false;
16
15
  };
17
- const IDSLink = ({ colorPreset = 0, light = false, active = false, activeIcon = false, block = false, underlined = false, noUnderline = false, small = false, large = false, focusAnchor = false, endItem, children, className, ...props }) => {
18
- const ref = useRef(null);
16
+ function IDSLink({ colorPreset = 0, menu = false, footer = false, active = false, activeIcon = false, block = false, underlined = false, noUnderline = false, small = false, focusAnchor = false, endItem, children, ...props }) {
17
+ // Ensure valid child
19
18
  if (!isValidElement(children)) {
20
- console.error("IDSLink requires a single valid React element (e.g., <a> or <Link>) as a child.");
19
+ if (process.env.NODE_ENV !== "production") {
20
+ console.error("IDSLink requires a single valid React element (e.g., <a> or <Link>) as a child.");
21
+ }
21
22
  return null;
22
23
  }
23
- const hasIcon = containsIcon(children.props.children);
24
- const classNames = clsx("ids-link", colorPreset > 0 && `ids-link--color-${colorPreset}`, {
24
+ const innerChildren = children.props.children;
25
+ const hasIcon = containsIcon(innerChildren);
26
+ const mergedClasses = clsx("ids-link", colorPreset > 0 && `ids-link--color-${colorPreset}`, {
25
27
  "ids-link--icon": hasIcon,
26
28
  "ids-link--active-icon": activeIcon,
27
- "ids-link--light": light || colorPreset === 4,
28
29
  "ids-link--block": block,
30
+ "ids-link--menu": menu,
31
+ "ids-link--footer": footer,
29
32
  "ids-link--small": small,
30
- "ids-link--large": large,
31
33
  "ids-link--active": active,
32
34
  "ids-link--underlined": underlined,
33
35
  "ids-link--no-underline": noUnderline,
34
36
  "ids-focus-anchor": focusAnchor
35
- }, children.props.className, className);
36
- const linkContent = (jsxs(Fragment, { children: [children.props.children, endItem && jsx("span", { style: { marginLeft: "0.5rem" }, children: endItem })] }));
37
+ }, children.props.className, props.className);
38
+ const wrappedContent = (jsxs(Fragment, { children: [innerChildren, endItem && jsx("span", { style: { marginLeft: "0.5rem" }, children: endItem })] }));
37
39
  return cloneElement(children, {
40
+ ...children.props,
38
41
  ...props,
39
- className: classNames,
40
- ref,
41
- children: linkContent
42
+ className: mergedClasses,
43
+ children: wrappedContent
42
44
  });
43
- };
45
+ }
44
46
 
45
47
  export { IDSLink };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
- import React__default, { useState, useRef, useEffect } from 'react';
3
+ import React, { useState, useRef, useEffect } from 'react';
4
4
  import '@inera/ids-design/components/mobile-menu/mobile-menu.css';
5
5
  import clsx from 'clsx';
6
6
  import { useElementId } from '../../../utils/hooks/useElementId.js';
7
7
 
8
- const IDSMobileMenuItem = ({ level = 1, secondary = false, expanded = false, headline = "", link, active = false, showText = "Visa meddelande", hideText = "Dölj meddelande", children, onToggleExpansion, ...props }) => {
8
+ const IDSMobileMenuItem = ({ level = 1, secondary = false, expanded = false, headline = "", link, active = false, showText = "Expandera", hideText = "Minimera", children, onToggleExpansion, ...props }) => {
9
9
  const [isExpanded, setIsExpanded] = useState(expanded);
10
10
  const subItemId = useRef(useElementId());
11
11
  const contentRef = useRef(null);
@@ -50,8 +50,8 @@ const IDSMobileMenuItem = ({ level = 1, secondary = false, expanded = false, hea
50
50
  return link;
51
51
  }
52
52
  };
53
- return (jsxs("div", { ref: contentRef, className: clsx(getItemLevelClass(), isExpanded && "ids-mobile-menu-item--expanded", active && "ids-mobile-menu-item--active", secondary && "ids-mobile-menu-item--secondary"), ...props, children: [jsx("div", { className: `ids-mobile-menu-item__inner ${level && "ids-mobile-menu-item__inner--level-" + level}`, children: renderItem() }), jsx("div", { id: subItemId.current, className: "ids-mobile-menu-item__sub-items", children: React__default.Children.map(children, child => React__default.isValidElement(child)
54
- ? React__default.cloneElement(child, {
53
+ return (jsxs("div", { ref: contentRef, className: clsx(getItemLevelClass(), isExpanded && "ids-mobile-menu-item--expanded", active && "ids-mobile-menu-item--active", secondary && "ids-mobile-menu-item--secondary"), ...props, children: [jsx("div", { className: `ids-mobile-menu-item__inner ${level && "ids-mobile-menu-item__inner--level-" + level}`, children: renderItem() }), jsx("div", { id: subItemId.current, className: "ids-mobile-menu-item__sub-items", children: React.Children.map(children, child => React.isValidElement(child)
54
+ ? React.cloneElement(child, {
55
55
  "data-ids-sub-item": true,
56
56
  level: level + 1
57
57
  })
@@ -1,7 +1,7 @@
1
- import React, { ReactNode } from "react";
1
+ import React from "react";
2
2
  import "@inera/ids-design/components/navigation/content/navigation-content.css";
3
3
  export interface IDSNavigationContentProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  headline?: string;
5
- children?: ReactNode;
5
+ maxHeight?: string;
6
6
  }
7
- export declare const IDSNavigationContent: React.FC<IDSNavigationContentProps>;
7
+ export declare function IDSNavigationContent({ headline, maxHeight, className, children, ...props }: IDSNavigationContentProps): import("react/jsx-runtime").JSX.Element;
@@ -1,21 +1,15 @@
1
- "use client";
2
1
  import { jsx, jsxs } from 'react/jsx-runtime';
3
- import React__default from 'react';
2
+ import React from 'react';
4
3
  import '@inera/ids-design/components/navigation/content/navigation-content.css';
5
4
  import clsx from 'clsx';
6
5
 
7
- const IDSNavigationContent = ({ headline = "", children, className, ...props }) => {
8
- const enhancedLinks = React__default.Children.map(children, (link, i) => {
9
- if (!React__default.isValidElement(link))
6
+ function IDSNavigationContent({ headline = "", maxHeight = "", className, children, ...props }) {
7
+ const linkWrappers = React.Children.map(children, (link, i) => {
8
+ if (!React.isValidElement(link))
10
9
  return link;
11
- const cloned = React__default.cloneElement(link, {
12
- key: `navigation-content-link-${i}`,
13
- block: true,
14
- noUnderline: true
15
- });
16
- return (jsx("div", { className: "ids-navigation-content__link-wrapper", children: cloned }, `link-wrapper-${i}`));
10
+ return (jsx("div", { className: "ids-navigation-content__link-wrapper", children: link }, i));
17
11
  });
18
- return (jsxs("div", { className: clsx("ids-navigation-content", className), ...props, children: [jsx("div", { className: "ids-navigation-content__border-top", children: jsx("div", { className: "ids-navigation-content__border-top-content" }) }), jsxs("nav", { className: "ids-navigation-content__inner", "aria-labelledby": "content-navigation-headline", id: "content-navigation-inner", children: [jsx("h2", { className: "ids-navigation-content__inner__headline", id: "content-navigation-headline", children: headline }), jsx("div", { className: "ids-navigation-content__links", children: enhancedLinks })] })] }));
19
- };
12
+ return (jsxs("div", { className: clsx("ids-navigation-content", { "ids-navigation-content--scrollable": maxHeight }, className), ...props, children: [jsx("div", { className: "ids-navigation-content__border-top", children: jsx("div", { className: "ids-navigation-content__border-top-content" }) }), jsxs("nav", { className: "ids-navigation-content__inner", "aria-labelledby": "content-navigation-headline", id: "content-navigation-inner", children: [headline && (jsx("h2", { className: "ids-navigation-content__inner__headline", id: "content-navigation-headline", children: headline })), jsx("div", { className: "ids-navigation-content__links", style: { maxHeight: maxHeight || "auto" }, children: linkWrappers })] })] }));
13
+ }
20
14
 
21
15
  export { IDSNavigationContent };
@@ -1,7 +1,6 @@
1
- import React, { ReactNode } from "react";
1
+ import React from "react";
2
2
  import "@inera/ids-design/components/navigation/local/navigation-local.css";
3
3
  export interface IDSNavigationLocalProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  headline?: string;
5
- children?: ReactNode;
6
5
  }
7
- export declare const IDSNavigationLocal: React.FC<IDSNavigationLocalProps>;
6
+ export declare function IDSNavigationLocal({ headline, className, children, ...props }: IDSNavigationLocalProps): import("react/jsx-runtime").JSX.Element;
@@ -2,8 +2,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import '@inera/ids-design/components/navigation/local/navigation-local.css';
3
3
  import clsx from 'clsx';
4
4
 
5
- const IDSNavigationLocal = ({ headline = "", children, className, ...props }) => {
5
+ function IDSNavigationLocal({ headline = "", className, children, ...props }) {
6
6
  return (jsxs("div", { className: clsx("ids-navigation-local", className), ...props, children: [jsx("h2", { className: "ids-navigation-local__headline", children: headline }), jsx("div", { className: "ids-navigation-local__links", children: children })] }));
7
- };
7
+ }
8
8
 
9
9
  export { IDSNavigationLocal };
@@ -1,10 +1,9 @@
1
- import React, { ReactNode } from "react";
1
+ import React from "react";
2
2
  import "@inera/ids-design/components/notification-badge/notification-badge.css";
3
3
  interface IDSNotificationBadgeProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  type?: "primary" | "secondary" | "neutral" | "info" | "attention" | "success" | "error";
5
5
  icon?: string;
6
6
  onClick?: () => void;
7
- children?: ReactNode;
8
7
  }
9
- export declare const IDSNotificationBadge: React.FC<IDSNotificationBadgeProps>;
8
+ export declare function IDSNotificationBadge({ type, icon, onClick, className, children, ...props }: IDSNotificationBadgeProps): import("react/jsx-runtime").JSX.Element;
10
9
  export {};
@@ -2,8 +2,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import '@inera/ids-design/components/notification-badge/notification-badge.css';
3
3
  import clsx from 'clsx';
4
4
 
5
- const IDSNotificationBadge = ({ type = "primary", icon = "", onClick, children, className, ...props }) => {
5
+ function IDSNotificationBadge({ type = "primary", icon = "", onClick, className, children, ...props }) {
6
6
  return (jsxs("div", { className: clsx("ids-notification-badge", `ids-notification-badge--${type}`, className), onClick: onClick, ...props, children: [icon && jsx("span", { className: `ids-icon-${icon}` }), children] }));
7
- };
7
+ }
8
8
 
9
9
  export { IDSNotificationBadge };
@@ -1,24 +1,19 @@
1
- import React, { ReactNode } from "react";
1
+ import React, { ReactNode, ChangeEvent } from "react";
2
2
  import "@inera/ids-design/components/pagination/data-pagination/data-pagination.css";
3
3
  export interface IDSDataPaginationProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  label?: string;
5
5
  from: number;
6
6
  to: number;
7
7
  of?: string;
8
- total: number;
8
+ total: number | string;
9
9
  defaultValue?: string;
10
10
  selectId?: string;
11
- prevId?: string;
12
- nextId?: string;
13
11
  light?: boolean;
14
12
  noSelect?: boolean;
15
- prevDisabled?: boolean;
16
- nextDisabled?: boolean;
17
- srPrevious?: string;
18
- srNext?: string;
19
- onNext?: (event: React.MouseEvent<HTMLButtonElement>) => void;
20
- onPrevious?: (event: React.MouseEvent<HTMLButtonElement>) => void;
21
- onSelectChange?: (event: React.ChangeEvent<HTMLSelectElement>) => void;
22
- children?: ReactNode;
13
+ firstPageButton?: ReactNode;
14
+ previousButton?: ReactNode;
15
+ nextButton?: ReactNode;
16
+ lastPageButton?: ReactNode;
17
+ onSelectChange?: (event: ChangeEvent<HTMLSelectElement>) => void;
23
18
  }
24
- export declare const IDSDataPagination: React.FC<IDSDataPaginationProps>;
19
+ export declare const IDSDataPagination: React.ForwardRefExoticComponent<IDSDataPaginationProps & React.RefAttributes<HTMLSelectElement>>;
@@ -1,17 +1,16 @@
1
- "use client";
2
1
  import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { useRef } from 'react';
2
+ import { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import '@inera/ids-design/components/pagination/data-pagination/data-pagination.css';
5
4
  import clsx from 'clsx';
6
5
  import { useElementId } from '../../utils/hooks/useElementId.js';
7
6
 
8
- const IDSDataPagination = ({ label = "Rader per sida", from, to, of = "av", total, defaultValue = "", selectId = "", prevId = "", nextId = "", light = false, noSelect = false, prevDisabled = false, nextDisabled = false, srPrevious = "Föregående sida", srNext = "Nästa sida", onNext, onPrevious, onSelectChange, className, children }) => {
7
+ const IDSDataPagination = forwardRef(({ label = "Rader per sida", from, to, of = "av", total, defaultValue = "", selectId = "", firstPageButton, previousButton, nextButton, lastPageButton, light = false, noSelect = false, onSelectChange, className, children, ...props }, ref) => {
9
8
  const summaryText = `${from} - ${to} ${of} ${total}`;
10
9
  const selectElementId = useElementId(selectId);
11
- const prevRef = useRef(null);
12
- const nextRef = useRef(null);
13
- const selectRef = useRef(null);
14
- return (jsxs("div", { className: clsx("ids-data-pagination", { "ids-data-pagination--light": light }, className), children: [!noSelect && (jsxs("div", { className: "ids-data-pagination__select", children: [jsx("label", { slot: "pagination-select", htmlFor: selectElementId, children: label }), jsx("select", { id: selectElementId, ref: selectRef, name: "data-pagination-select-options", defaultValue: defaultValue, onChange: onSelectChange, children: children })] })), jsx("div", { className: "ids-data-pagination__summary", children: summaryText }), jsxs("div", { className: "ids-data-pagination__buttons", children: [jsx("div", { className: "ids-data-pagination__prev-button", children: jsx("button", { ref: prevRef, "aria-label": srPrevious, disabled: prevDisabled, id: prevId, onClick: onPrevious }) }), jsx("div", { className: "ids-data-pagination__next-button", children: jsx("button", { ref: nextRef, "aria-label": srNext, disabled: nextDisabled, id: nextId, onClick: onNext }) })] })] }));
15
- };
10
+ const internalSelectRef = useRef(null);
11
+ useImperativeHandle(ref, () => internalSelectRef.current);
12
+ return (jsxs("div", { className: clsx("ids-data-pagination", { "ids-data-pagination--light": light }, className), ...props, children: [!noSelect && (jsxs("div", { className: "ids-data-pagination__select", children: [jsx("label", { htmlFor: selectElementId, children: label }), jsx("select", { id: selectElementId, ref: internalSelectRef, name: "data-pagination-select-options", defaultValue: defaultValue, onChange: onSelectChange, children: children })] })), jsx("div", { className: "ids-data-pagination__summary", children: summaryText }), jsxs("div", { className: "ids-data-pagination__buttons", children: [firstPageButton && jsx("div", { className: "ids-data-pagination__first-page-button", children: firstPageButton }), previousButton && jsx("div", { className: "ids-data-pagination__prev-button", children: previousButton }), nextButton && jsx("div", { className: "ids-data-pagination__next-button", children: nextButton }), lastPageButton && jsx("div", { className: "ids-data-pagination__last-page-button", children: lastPageButton })] })] }));
13
+ });
14
+ IDSDataPagination.displayName = "IDSDataPagination";
16
15
 
17
16
  export { IDSDataPagination };
@@ -16,4 +16,4 @@ export interface IDSListPaginationProps extends React.HTMLAttributes<HTMLDivElem
16
16
  onPrevPage?: (page: number) => void;
17
17
  onNextPage?: (page: number) => void;
18
18
  }
19
- export declare const IDSListPagination: React.FC<IDSListPaginationProps>;
19
+ export declare function IDSListPagination({ showing, from, to, of, total, current, pages, srCurrentPage, srGoToPage, srPrevious, srNext, onChangePage, onPrevPage, onNextPage, className, ...props }: IDSListPaginationProps): import("react/jsx-runtime").JSX.Element;
@@ -1,24 +1,23 @@
1
- "use client";
2
1
  import { jsxs, jsx } from 'react/jsx-runtime';
3
2
  import '@inera/ids-design/components/pagination/list-pagination/list-pagination.css';
4
3
  import clsx from 'clsx';
5
4
 
6
- const IDSListPagination = ({ showing = "Visar", from = 0, to = 0, of = "av", total = 0, current = 1, pages = 1, srCurrentPage = "Aktuell sida", srGoToPage = "Gå till sida", srPrevious = "Föregående sida", srNext = "Nästa sida", className, onChangePage, onPrevPage, onNextPage }) => {
5
+ function IDSListPagination({ showing = "Visar", from = 0, to = 0, of = "av", total = 0, current = 1, pages = 1, srCurrentPage = "Aktuell sida", srGoToPage = "Gå till sida", srPrevious = "Föregående sida", srNext = "Nästa sida", onChangePage, onPrevPage, onNextPage, className, ...props }) {
7
6
  const renderSummary = () => {
8
7
  if (from && to && total) {
9
- return (jsx("div", { className: "ids-list-pagination__summary", children: `${showing} ${from} - ${to} ${of} ${total}` }));
8
+ return jsx("div", { className: "ids-list-pagination__summary", children: `${showing} ${from} - ${to} ${of} ${total}` });
10
9
  }
11
10
  return null;
12
11
  };
13
12
  const renderPrevButton = () => {
14
13
  if (current > 1) {
15
- return (jsx("button", { "aria-label": srPrevious, onClick: () => onPrevPage?.(current - 1), id: "prev-button" }));
14
+ return jsx("button", { "aria-label": srPrevious, onClick: () => onPrevPage?.(current - 1), id: "prev-button" });
16
15
  }
17
16
  return null;
18
17
  };
19
18
  const renderNextButton = () => {
20
19
  if (current < pages) {
21
- return (jsx("button", { "aria-label": srNext, onClick: () => onNextPage?.(current + 1), id: "next-button" }));
20
+ return jsx("button", { "aria-label": srNext, onClick: () => onNextPage?.(current + 1), id: "next-button" });
22
21
  }
23
22
  return null;
24
23
  };
@@ -37,18 +36,13 @@ const IDSListPagination = ({ showing = "Visar", from = 0, to = 0, of = "av", tot
37
36
  current + 1,
38
37
  ...(current < 4 ? [2, 3, 4] : []),
39
38
  ...(current > pages - 3 ? [pages - 1, pages - 2, pages - 3] : [])
40
- ].includes(i), "data-hidden-before": pages > 7 &&
41
- i > 1 &&
42
- buttonArray[i - 2]?.props.hidden &&
43
- !buttonArray[i - 1]?.props.hidden
44
- ? true
45
- : undefined, children: jsx("button", { className: clsx("ids-list-pagination__button", {
39
+ ].includes(i), "data-hidden-before": pages > 7 && i > 1 && buttonArray[i - 2]?.props.hidden && !buttonArray[i - 1]?.props.hidden ? true : undefined, children: jsx("button", { className: clsx("ids-list-pagination__button", {
46
40
  "ids-list-pagination__button--current": isCurrent
47
41
  }), "aria-label": isCurrent ? srCurrentPage : `${srGoToPage} ${i}`, onClick: () => !isCurrent && onChangePage?.(i), disabled: isCurrent, children: i }) }, i));
48
42
  }
49
43
  return (jsx("nav", { children: jsx("ul", { className: "ids-list-pagination__list", children: buttonArray }) }));
50
44
  };
51
- return (jsxs("div", { className: clsx("ids-list-pagination", className), children: [renderSummary(), jsxs("div", { className: "ids-list-pagination__content", children: [jsx("div", { className: "ids-list-pagination__prev-button", children: renderPrevButton() }), jsx("div", { className: "ids-list-pagination__nav-buttons", children: renderButtons() }), jsx("div", { className: "ids-list-pagination__next-button", children: renderNextButton() })] })] }));
52
- };
45
+ return (jsxs("div", { className: clsx("ids-list-pagination", className), ...props, children: [renderSummary(), jsxs("div", { className: "ids-list-pagination__content", children: [jsx("div", { className: "ids-list-pagination__prev-button", children: renderPrevButton() }), jsx("div", { className: "ids-list-pagination__nav-buttons", children: renderButtons() }), jsx("div", { className: "ids-list-pagination__next-button", children: renderNextButton() })] })] }));
46
+ }
53
47
 
54
48
  export { IDSListPagination };
@@ -5,8 +5,10 @@ import '@inera/ids-design/components/popover/popover.css';
5
5
  import '@inera/ids-design/components/popover/popover-content.css';
6
6
  import { useFocusTrap } from '../utils/hooks/useFocusTrap.js';
7
7
  import clsx from 'clsx';
8
+ import { useElementId } from '../utils/hooks/useElementId.js';
8
9
 
9
- const IDSPopover = ({ position = "bottom", category = "", trigger, maxWidth = 260, maxHeight = 260, show = false, noFocusTrap = false, autoFocus = false, srCloseText = "Stäng", headline, children, className, onVisibilityChange }) => {
10
+ const IDSPopover = ({ position = "bottom", category = "", trigger, maxWidth = 260, maxHeight = 260, show = false, noFocusTrap = false, autoFocus = false, srCloseText = "Stäng", headline, children, className, onVisibilityChange, ...props }) => {
11
+ const contentId = useElementId();
10
12
  const [isVisible, setIsVisible] = useState(show);
11
13
  const [popoverContentStyle, setPopoverContentStyle] = useState({
12
14
  position: "absolute",
@@ -19,7 +21,6 @@ const IDSPopover = ({ position = "bottom", category = "", trigger, maxWidth = 26
19
21
  });
20
22
  const popoverRef = useRef(null);
21
23
  const triggerRef = useRef(null);
22
- const topBarRef = useRef(null);
23
24
  const contentWrapperRef = useRef(null);
24
25
  const popoverContentRef = useRef(null);
25
26
  useFocusTrap(popoverContentRef.current, isVisible && !noFocusTrap);
@@ -103,12 +104,11 @@ const IDSPopover = ({ position = "bottom", category = "", trigger, maxWidth = 26
103
104
  return () => document.removeEventListener("keydown", handleEsc);
104
105
  }, [isVisible]);
105
106
  useEffect(() => {
106
- if (topBarRef.current && contentWrapperRef.current) {
107
- const topBarHeight = topBarRef.current.getBoundingClientRect().height;
107
+ if (contentWrapperRef.current) {
108
108
  const contentWrapperHeight = contentWrapperRef.current.getBoundingClientRect().height;
109
- if (contentWrapperHeight >= maxHeight - topBarHeight) {
109
+ if (contentWrapperHeight >= maxHeight - 40) {
110
110
  setPopoverContentWrapperStyle({
111
- height: `${maxHeight - topBarHeight}px`,
111
+ height: `${maxHeight - 40}px`,
112
112
  paddingRight: "1rem"
113
113
  });
114
114
  }
@@ -119,7 +119,7 @@ const IDSPopover = ({ position = "bottom", category = "", trigger, maxWidth = 26
119
119
  });
120
120
  }
121
121
  }
122
- }, [topBarRef, contentWrapperRef, isVisible]);
122
+ }, [contentWrapperRef, isVisible]);
123
123
  useEffect(() => {
124
124
  const content = popoverContentRef?.current;
125
125
  if (!content)
@@ -186,9 +186,9 @@ const IDSPopover = ({ position = "bottom", category = "", trigger, maxWidth = 26
186
186
  }));
187
187
  }, [position, isVisible]);
188
188
  const renderCaret = (pos) => {
189
- return (jsxs("div", { className: `ids-popover-content__caret ids-popover-content--${pos}`, children: [jsx("span", { className: `ids-popover-content__caret-body ids-popover-content--${pos}` }), jsx("span", { className: `ids-popover-content__caret-border ids-popover-content--${pos}` }), jsx("span", { className: `ids-popover-content__caret-shadow ids-popover-content--${pos}` })] }));
189
+ return (jsxs("div", { className: `ids-popover-content__caret ids-popover-content__caret--${pos}`, children: [jsx("span", { className: `ids-popover-content__caret-body ids-popover-content__caret--${pos}` }), jsx("span", { className: `ids-popover-content__caret-border ids-popover-content__caret--${pos}` }), jsx("span", { className: `ids-popover-content__caret-shadow ids-popover-content__caret--${pos}` })] }));
190
190
  };
191
- return (jsxs("span", { className: clsx("ids-popover", className), ref: popoverRef, "data-popover-category": category, ...(isVisible ? { "data-show": "true" } : {}), children: [jsx("span", { className: "ids-popover-trigger", onClick: togglePopover, onKeyDown: handleTriggerKeyDown, ref: triggerRef, children: trigger }), isVisible && (jsxs("div", { className: `ids-popover-content ${!noFocusTrap && "ids-focus-trap"}`, ref: popoverContentRef, style: popoverContentStyle, "data-position": position, children: [renderCaret(position), jsxs("div", { className: "ids-popover-content__top-bar", ref: topBarRef, children: [jsx("div", { className: "ids-popover-content__headline", children: headline }), jsx("div", { className: "ids-popover-content__close-btn-wrapper", children: jsx("button", { "aria-label": srCloseText, className: "ids-popover-content__close-btn", onClick: closePopover }) })] }), jsx("div", { className: "ids-popover-content__content-wrapper", tabIndex: 0, ref: contentWrapperRef, style: popoverContentWrapperStyle, children: jsx("div", { className: "ids-popover-content__content-wrapper-inner", children: children }) })] }))] }));
191
+ return (jsxs("span", { className: clsx("ids-popover", className), ref: popoverRef, "data-popover-category": category, ...(isVisible ? { "data-show": "true" } : {}), ...props, children: [jsx("span", { className: "ids-popover-trigger", "aria-haspopup": "dialog", onClick: togglePopover, onKeyDown: handleTriggerKeyDown, ref: triggerRef, children: trigger }), isVisible && (jsxs("div", { className: `ids-popover-content ${!noFocusTrap && "ids-focus-trap"}`, role: "tooltip", id: contentId, ref: popoverContentRef, style: popoverContentStyle, "data-position": position, children: [renderCaret(position), jsx("div", { className: "ids-popover-content__close-btn-wrapper", children: jsx("button", { "aria-label": srCloseText, className: "ids-popover-content__close-btn", onClick: closePopover }) }), jsx("div", { className: "ids-popover-content__content-wrapper", tabIndex: 0, ref: contentWrapperRef, style: popoverContentWrapperStyle, children: jsxs("div", { className: "ids-popover-content__content-wrapper-inner", children: [headline && jsx("div", { className: "ids-popover-content__headline", children: headline }), children] }) })] }))] }));
192
192
  };
193
193
 
194
194
  export { IDSPopover };
@@ -1,10 +1,12 @@
1
1
  import React from "react";
2
2
  import "@inera/ids-design/components/progressbar/progressbar.css";
3
- interface IDSProgressbarProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ export interface IDSProgressbarProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  label: string;
5
5
  hideLabel?: boolean;
6
6
  value?: number;
7
7
  srLabel: string;
8
8
  }
9
- export declare const IDSProgressbar: React.FC<IDSProgressbarProps>;
10
- export {};
9
+ export declare function IDSProgressbar({ label, hideLabel, value, srLabel, className, ...props }: IDSProgressbarProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare namespace IDSProgressbar {
11
+ var displayName: string;
12
+ }
@@ -1,10 +1,10 @@
1
- "use client";
2
1
  import { jsxs, jsx } from 'react/jsx-runtime';
3
2
  import '@inera/ids-design/components/progressbar/progressbar.css';
4
3
  import clsx from 'clsx';
5
4
 
6
- const IDSProgressbar = ({ label = "", hideLabel = false, value = 0, srLabel = "", className }) => {
7
- return (jsxs("div", { className: clsx("ids-progressbar", className), children: [hideLabel ? null : (jsxs("div", { className: "ids-progressbar__label", children: [label, " ", value, "%"] })), jsx("div", { className: "ids-progressbar__bar", role: "progressbar", "aria-label": srLabel, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": value, children: value > 0 ? (jsx("div", { className: "ids-progressbar__progress", style: { width: `calc(${value}% + 0.125rem)` } })) : null })] }));
8
- };
5
+ function IDSProgressbar({ label = "", hideLabel = false, value = 0, srLabel = "", className, ...props }) {
6
+ return (jsxs("div", { className: clsx("ids-progressbar", className), ...props, children: [!hideLabel && (jsxs("div", { className: "ids-progressbar__label", children: [label, " ", value, "%"] })), jsx("div", { className: "ids-progressbar__bar", role: "progressbar", "aria-label": srLabel, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": value, children: value > 0 && jsx("div", { className: "ids-progressbar__progress", style: { width: `calc(${value}% + 0.125rem)` } }) })] }));
7
+ }
8
+ IDSProgressbar.displayName = "IDSProgressbar";
9
9
 
10
10
  export { IDSProgressbar };
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import "@inera/ids-design/components/puff-list/puff-list.css";
3
+ interface IDSPuffListItemDateProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ date?: Date | null;
5
+ showTime?: boolean;
6
+ day?: number;
7
+ year?: number;
8
+ month?: number;
9
+ monthLabel?: string;
10
+ time?: string;
11
+ }
12
+ export declare function IDSPuffListItemDate({ date, showTime, day, year, month, monthLabel, time, ...props }: IDSPuffListItemDateProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,23 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import '@inera/ids-design/components/puff-list/puff-list.css';
3
+ import { getDayAsText, getMonthAsSweText } from '../../utils/utils.js';
4
+
5
+ function IDSPuffListItemDate({ date, showTime = false, day = 0, year = 0, month = 0, monthLabel = "", time = "", ...props }) {
6
+ const getDay = () => getDayAsText(date ? date.getDate() : day);
7
+ const getMonth = () => (date ? date.getMonth() + 1 : month);
8
+ const getYear = () => (date ? date.getFullYear() : year);
9
+ const getMonthText = () => monthLabel || getMonthAsSweText(getMonth() - 1, 3);
10
+ const getTime = () => {
11
+ if (time)
12
+ return time;
13
+ if (showTime && date) {
14
+ const h = date.getHours();
15
+ const m = date.getMinutes();
16
+ return `${h.toString().padStart(2, "0")}:${m.toString().padStart(2, "0")}`;
17
+ }
18
+ return "";
19
+ };
20
+ return (jsxs("span", { className: "ids-puff-list-item__date", ...props, children: [`${getDay()} ${getMonthText()} ${getYear()}`, !!getTime() && jsx("span", { className: "ids-puff-list-item__time", children: getTime() })] }));
21
+ }
22
+
23
+ export { IDSPuffListItemDate };
@@ -0,0 +1,10 @@
1
+ import React, { ReactNode } from "react";
2
+ export interface IDSPuffListItemHeaderProps extends React.HTMLAttributes<HTMLHeadingElement> {
3
+ headlineLevel?: 2 | 3 | 4 | 5;
4
+ headlineExtra?: ReactNode;
5
+ noMargin?: boolean;
6
+ }
7
+ export declare function IDSPuffListItemHeader({ headlineLevel, headlineExtra, noMargin, className, children, ...props }: IDSPuffListItemHeaderProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare namespace IDSPuffListItemHeader {
9
+ var displayName: string;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import clsx from 'clsx';
3
+
4
+ function IDSPuffListItemHeader({ headlineLevel = 2, headlineExtra, noMargin = false, className, children, ...props }) {
5
+ const Tag = `h${headlineLevel}`;
6
+ const headerClass = clsx("ids-puff-list-item-header__headline", { "ids-puff-list-item-header__headline--no-margin": noMargin }, className);
7
+ return (jsxs(Tag, { className: headerClass, ...props, children: [children, headlineExtra && jsx("span", { className: "ids-puff-list-item-header__extra-content", children: headlineExtra })] }));
8
+ }
9
+ IDSPuffListItemHeader.displayName = "IDSPuffListItemHeader";
10
+
11
+ export { IDSPuffListItemHeader };
@@ -1,7 +1,6 @@
1
- import React, { ReactNode } from "react";
1
+ import React from "react";
2
2
  import "@inera/ids-design/components/puff-list/puff-list.css";
3
- interface IDSPuffListItemInfoProps extends React.HTMLAttributes<HTMLDivElement> {
4
- children?: ReactNode;
3
+ export interface IDSPuffListItemInfoProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ bottom?: boolean;
5
5
  }
6
- export declare const IDSPuffListItemInfo: React.FC<IDSPuffListItemInfoProps>;
7
- export {};
6
+ export declare function IDSPuffListItemInfo({ bottom, children, className, ...props }: IDSPuffListItemInfoProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,10 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import '@inera/ids-design/components/puff-list/puff-list.css';
3
+ import clsx from 'clsx';
3
4
 
4
- const IDSPuffListItemInfo = ({ children }) => {
5
- return jsx("div", { className: "ids-puff-list-item__info", children: children });
6
- };
5
+ function IDSPuffListItemInfo({ bottom = false, children, className, ...props }) {
6
+ const classes = clsx("ids-puff-list-item__info", { "ids-puff-list-item__info--bottom": bottom }, className);
7
+ return (jsx("div", { className: classes, ...props, children: children }));
8
+ }
7
9
 
8
10
  export { IDSPuffListItemInfo };