@inera/ids-react 7.1.1 → 8.0.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 (435) hide show
  1. package/components/accordion/accordion.js +4 -4
  2. package/components/alert/alert.d.ts +3 -3
  3. package/components/alert/alert.js +8 -5
  4. package/components/badge/badge.d.ts +0 -1
  5. package/components/badge/badge.js +2 -2
  6. package/components/box-link/box-link.js +2 -2
  7. package/components/breadcrumbs/breadcrumbs.js +3 -3
  8. package/components/button/button.d.ts +6 -7
  9. package/components/button/button.js +5 -79
  10. package/components/card/card.d.ts +4 -4
  11. package/components/card/card.js +5 -4
  12. package/components/carousel/carousel-item.js +5 -5
  13. package/components/carousel/carousel.d.ts +0 -2
  14. package/components/carousel/carousel.js +22 -42
  15. package/components/date-label/date-label.d.ts +6 -0
  16. package/components/date-label/date-label.js +18 -3
  17. package/components/dialog/dialog.d.ts +12 -12
  18. package/components/dialog/dialog.js +5 -7
  19. package/components/dropdown/dropdown-content-button.d.ts +7 -0
  20. package/components/dropdown/dropdown-content-button.js +11 -0
  21. package/components/dropdown/dropdown-content-link.js +2 -1
  22. package/components/dropdown/dropdown.d.ts +5 -4
  23. package/components/dropdown/dropdown.js +11 -10
  24. package/components/footer-1177/footer-1177.d.ts +0 -3
  25. package/components/footer-1177/footer-1177.js +17 -23
  26. package/components/footer-1177-admin/footer-1177-admin.d.ts +5 -7
  27. package/components/footer-1177-admin/footer-1177-admin.js +21 -26
  28. package/components/footer-1177-pro/footer-1177-pro.d.ts +15 -10
  29. package/components/footer-1177-pro/footer-1177-pro.js +41 -22
  30. package/components/footer-inera/footer-inera.d.ts +2 -6
  31. package/components/footer-inera/footer-inera.js +21 -27
  32. package/components/footer-inera-admin/footer-inera-admin.d.ts +2 -6
  33. package/components/footer-inera-admin/footer-inera-admin.js +23 -26
  34. package/components/form/check-button/check-button.d.ts +1 -0
  35. package/components/form/check-button/check-button.js +2 -2
  36. package/components/form/checkbox/checkbox-group.d.ts +1 -1
  37. package/components/form/checkbox/checkbox-group.js +6 -6
  38. package/components/form/checkbox/checkbox.d.ts +1 -0
  39. package/components/form/checkbox/checkbox.js +2 -2
  40. package/components/form/input/input.d.ts +2 -4
  41. package/components/form/input/input.js +16 -37
  42. package/components/form/radio/radio-group.d.ts +2 -2
  43. package/components/form/radio/radio-group.js +6 -6
  44. package/components/form/radio/radio.d.ts +3 -3
  45. package/components/form/radio/radio.js +2 -2
  46. package/components/form/radio-button/radio-button-group.d.ts +2 -2
  47. package/components/form/radio-button/radio-button-group.js +7 -7
  48. package/components/form/radio-button/radio-button.d.ts +4 -3
  49. package/components/form/radio-button/radio-button.js +2 -2
  50. package/components/form/range/range.d.ts +1 -0
  51. package/components/form/range/range.js +2 -2
  52. package/components/form/select/select.d.ts +1 -1
  53. package/components/form/select/select.js +5 -3
  54. package/components/form/select-multiple/select-multiple.d.ts +3 -0
  55. package/components/form/select-multiple/select-multiple.js +13 -6
  56. package/components/form/textarea/textarea.d.ts +1 -0
  57. package/components/form/textarea/textarea.js +2 -2
  58. package/components/form/time/time.d.ts +1 -0
  59. package/components/form/time/time.js +6 -6
  60. package/components/form/toggle/toggle.d.ts +1 -0
  61. package/components/form/toggle/toggle.js +5 -5
  62. package/components/global-alert/global-alert.d.ts +16 -0
  63. package/components/global-alert/global-alert.js +26 -0
  64. package/components/grid/container.d.ts +0 -1
  65. package/components/grid/container.js +4 -4
  66. package/components/header-1177/header-1177-avatar.d.ts +5 -2
  67. package/components/header-1177/header-1177-avatar.js +21 -10
  68. package/components/header-1177/header-1177-item.d.ts +1 -0
  69. package/components/header-1177/header-1177-item.js +6 -5
  70. package/components/header-1177/header-1177-menu-mobile.d.ts +1 -1
  71. package/components/header-1177/header-1177-menu-mobile.js +29 -18
  72. package/components/header-1177/header-1177-nav-item-mobile.js +4 -4
  73. package/components/header-1177/header-1177-nav-item.js +6 -7
  74. package/components/header-1177/header-1177-nav.d.ts +2 -0
  75. package/components/header-1177/header-1177-nav.js +3 -4
  76. package/components/header-1177/header-1177-region-picker-mobile.d.ts +9 -0
  77. package/components/header-1177/header-1177-region-picker-mobile.js +36 -0
  78. package/components/header-1177/header-1177-region-picker.d.ts +9 -0
  79. package/components/header-1177/header-1177-region-picker.js +34 -0
  80. package/components/header-1177/header-1177.d.ts +2 -6
  81. package/components/header-1177/header-1177.js +6 -22
  82. package/components/header-1177-admin/header-1177-admin-avatar-mobile.d.ts +3 -0
  83. package/components/header-1177-admin/header-1177-admin-avatar-mobile.js +28 -3
  84. package/components/header-1177-admin/header-1177-admin-avatar.d.ts +3 -2
  85. package/components/header-1177-admin/header-1177-admin-avatar.js +31 -18
  86. package/components/header-1177-admin/header-1177-admin-item.js +4 -4
  87. package/components/header-1177-admin/header-1177-admin-menu-mobile.d.ts +11 -0
  88. package/components/header-1177-admin/header-1177-admin-menu-mobile.js +53 -0
  89. package/components/header-1177-admin/header-1177-admin-nav-item.js +10 -11
  90. package/components/header-1177-admin/header-1177-admin-nav.js +4 -5
  91. package/components/header-1177-admin/header-1177-admin.d.ts +1 -4
  92. package/components/header-1177-admin/header-1177-admin.js +5 -18
  93. package/components/header-1177-pro/header-1177-pro-avatar-mobile.d.ts +3 -0
  94. package/components/header-1177-pro/header-1177-pro-avatar-mobile.js +28 -3
  95. package/components/header-1177-pro/header-1177-pro-avatar.d.ts +3 -2
  96. package/components/header-1177-pro/header-1177-pro-avatar.js +31 -18
  97. package/components/header-1177-pro/header-1177-pro-item.js +5 -5
  98. package/components/header-1177-pro/{header-1177-pro-nav-menu-mobile.d.ts → header-1177-pro-menu-mobile.d.ts} +3 -3
  99. package/components/header-1177-pro/header-1177-pro-menu-mobile.js +53 -0
  100. package/components/header-1177-pro/header-1177-pro-nav-item.js +11 -11
  101. package/components/header-1177-pro/header-1177-pro-nav.d.ts +2 -2
  102. package/components/header-1177-pro/header-1177-pro-nav.js +5 -20
  103. package/components/header-1177-pro/header-1177-pro-region-picker-mobile.d.ts +9 -0
  104. package/components/header-1177-pro/header-1177-pro-region-picker-mobile.js +36 -0
  105. package/components/header-1177-pro/header-1177-pro-region-picker.d.ts +9 -0
  106. package/components/header-1177-pro/header-1177-pro-region-picker.js +34 -0
  107. package/components/header-1177-pro/header-1177-pro.d.ts +4 -7
  108. package/components/header-1177-pro/header-1177-pro.js +4 -28
  109. package/components/header-inera/header-inera-item.js +1 -2
  110. package/components/header-inera/header-inera-menu-mobile.d.ts +11 -0
  111. package/components/header-inera/header-inera-menu-mobile.js +54 -0
  112. package/components/header-inera/header-inera-nav-item.js +6 -9
  113. package/components/header-inera/header-inera-nav.js +2 -3
  114. package/components/header-inera/header-inera.d.ts +1 -2
  115. package/components/header-inera/header-inera.js +4 -7
  116. package/components/header-inera-admin/header-inera-admin-avatar-mobile.d.ts +5 -2
  117. package/components/header-inera-admin/header-inera-admin-avatar-mobile.js +23 -3
  118. package/components/header-inera-admin/header-inera-admin-avatar.d.ts +3 -4
  119. package/components/header-inera-admin/header-inera-admin-avatar.js +34 -22
  120. package/components/header-inera-admin/header-inera-admin-item.js +1 -1
  121. package/components/header-inera-admin/header-inera-admin-menu-mobile.d.ts +11 -0
  122. package/components/header-inera-admin/header-inera-admin-menu-mobile.js +53 -0
  123. package/components/header-inera-admin/header-inera-admin-nav-item.js +6 -9
  124. package/components/header-inera-admin/header-inera-admin-nav.js +2 -3
  125. package/components/header-inera-admin/header-inera-admin.d.ts +2 -1
  126. package/components/header-inera-admin/header-inera-admin.js +6 -11
  127. package/components/header-patient/header-patient.d.ts +3 -3
  128. package/components/header-patient/header-patient.js +2 -2
  129. package/components/link/link.d.ts +3 -3
  130. package/components/link/link.js +3 -3
  131. package/components/mobile/menu/item/mobile-item.js +4 -4
  132. package/components/navigation/content/navigation-content.d.ts +1 -0
  133. package/components/navigation/content/navigation-content.js +7 -6
  134. package/components/pagination/data-pagination/data-pagination.d.ts +7 -11
  135. package/components/pagination/data-pagination/data-pagination.js +7 -7
  136. package/components/pagination/list-pagination/list-pagination.js +6 -11
  137. package/components/popover/popover.js +9 -9
  138. package/components/progressbar/progressbar.js +2 -2
  139. package/components/puff-list/puff-list-item/puff-list-item-info.d.ts +1 -0
  140. package/components/puff-list/puff-list-item/puff-list-item-info.js +5 -2
  141. package/components/puff-list/puff-list-item/puff-list-item.d.ts +8 -0
  142. package/components/puff-list/puff-list-item/puff-list-item.js +47 -13
  143. package/components/puff-list/puff-list.js +2 -2
  144. package/components/region-icon/region-icon.js +1 -2
  145. package/components/side-menu/side-menu.d.ts +1 -1
  146. package/components/side-menu/side-menu.js +6 -6
  147. package/components/side-panel/side-panel.d.ts +2 -0
  148. package/components/side-panel/side-panel.js +5 -5
  149. package/components/stepper/step.js +2 -2
  150. package/components/stepper/stepper.js +4 -4
  151. package/components/tabs/tab-panel.js +2 -2
  152. package/components/tabs/tab.js +2 -2
  153. package/components/tabs/tabs.d.ts +1 -0
  154. package/components/tabs/tabs.js +26 -12
  155. package/components/tooltip/tooltip.js +2 -2
  156. package/components/utils/contexts/HeaderContext.d.ts +0 -2
  157. package/index.d.ts +16 -144
  158. package/index.js +16 -144
  159. package/package.json +2 -3
  160. package/components/agent/agent.d.ts +0 -12
  161. package/components/agent/agent.js +0 -18
  162. package/components/alert-global/alert-global.d.ts +0 -16
  163. package/components/alert-global/alert-global.js +0 -28
  164. package/components/header-1177-pro/header-1177-pro-nav-menu-mobile.js +0 -35
  165. package/components/header-inera/header-inera-nav-mobile.d.ts +0 -11
  166. package/components/header-inera/header-inera-nav-mobile.js +0 -47
  167. package/components/header-inera-admin/header-inera-admin-nav-mobile.d.ts +0 -12
  168. package/components/header-inera-admin/header-inera-admin-nav-mobile.js +0 -35
  169. package/components/icons/icon-1177.d.ts +0 -3
  170. package/components/icons/icon-1177.js +0 -12
  171. package/components/icons/icon-activity.d.ts +0 -3
  172. package/components/icons/icon-activity.js +0 -12
  173. package/components/icons/icon-agent.d.ts +0 -3
  174. package/components/icons/icon-agent.js +0 -12
  175. package/components/icons/icon-alarm-clock-inactivity.d.ts +0 -3
  176. package/components/icons/icon-alarm-clock-inactivity.js +0 -12
  177. package/components/icons/icon-alarm-clock-neutral.d.ts +0 -3
  178. package/components/icons/icon-alarm-clock-neutral.js +0 -12
  179. package/components/icons/icon-archive.d.ts +0 -3
  180. package/components/icons/icon-archive.js +0 -12
  181. package/components/icons/icon-arrow.d.ts +0 -3
  182. package/components/icons/icon-arrow.js +0 -12
  183. package/components/icons/icon-attention.d.ts +0 -3
  184. package/components/icons/icon-attention.js +0 -12
  185. package/components/icons/icon-blekinge.d.ts +0 -3
  186. package/components/icons/icon-blekinge.js +0 -12
  187. package/components/icons/icon-bookmark.d.ts +0 -3
  188. package/components/icons/icon-bookmark.js +0 -12
  189. package/components/icons/icon-calendar.d.ts +0 -3
  190. package/components/icons/icon-calendar.js +0 -12
  191. package/components/icons/icon-call-active.d.ts +0 -3
  192. package/components/icons/icon-call-active.js +0 -12
  193. package/components/icons/icon-call.d.ts +0 -3
  194. package/components/icons/icon-call.js +0 -12
  195. package/components/icons/icon-camera-off.d.ts +0 -3
  196. package/components/icons/icon-camera-off.js +0 -12
  197. package/components/icons/icon-camera-on.d.ts +0 -3
  198. package/components/icons/icon-camera-on.js +0 -12
  199. package/components/icons/icon-camera-switch.d.ts +0 -3
  200. package/components/icons/icon-camera-switch.js +0 -12
  201. package/components/icons/icon-chart-bar.d.ts +0 -3
  202. package/components/icons/icon-chart-bar.js +0 -12
  203. package/components/icons/icon-chart-line.d.ts +0 -3
  204. package/components/icons/icon-chart-line.js +0 -12
  205. package/components/icons/icon-chat.d.ts +0 -3
  206. package/components/icons/icon-chat.js +0 -12
  207. package/components/icons/icon-check.d.ts +0 -3
  208. package/components/icons/icon-check.js +0 -12
  209. package/components/icons/icon-chevron-bold.d.ts +0 -3
  210. package/components/icons/icon-chevron-bold.js +0 -12
  211. package/components/icons/icon-chevron.d.ts +0 -3
  212. package/components/icons/icon-chevron.js +0 -12
  213. package/components/icons/icon-clipboard-cross.d.ts +0 -3
  214. package/components/icons/icon-clipboard-cross.js +0 -12
  215. package/components/icons/icon-clipboard-text.d.ts +0 -3
  216. package/components/icons/icon-clipboard-text.js +0 -12
  217. package/components/icons/icon-clipboard.d.ts +0 -3
  218. package/components/icons/icon-clipboard.js +0 -12
  219. package/components/icons/icon-clock.d.ts +0 -3
  220. package/components/icons/icon-clock.js +0 -12
  221. package/components/icons/icon-close-bold.d.ts +0 -3
  222. package/components/icons/icon-close-bold.js +0 -12
  223. package/components/icons/icon-close.d.ts +0 -3
  224. package/components/icons/icon-close.js +0 -12
  225. package/components/icons/icon-cog.d.ts +0 -3
  226. package/components/icons/icon-cog.js +0 -12
  227. package/components/icons/icon-computer-inera.d.ts +0 -3
  228. package/components/icons/icon-computer-inera.js +0 -12
  229. package/components/icons/icon-computer.d.ts +0 -3
  230. package/components/icons/icon-computer.js +0 -12
  231. package/components/icons/icon-copy-file.d.ts +0 -3
  232. package/components/icons/icon-copy-file.js +0 -12
  233. package/components/icons/icon-copy-link.d.ts +0 -3
  234. package/components/icons/icon-copy-link.js +0 -12
  235. package/components/icons/icon-dalarna.d.ts +0 -3
  236. package/components/icons/icon-dalarna.js +0 -12
  237. package/components/icons/icon-denied.d.ts +0 -3
  238. package/components/icons/icon-denied.js +0 -12
  239. package/components/icons/icon-doctors-bag.d.ts +0 -3
  240. package/components/icons/icon-doctors-bag.js +0 -12
  241. package/components/icons/icon-document.d.ts +0 -3
  242. package/components/icons/icon-document.js +0 -12
  243. package/components/icons/icon-download.d.ts +0 -3
  244. package/components/icons/icon-download.js +0 -12
  245. package/components/icons/icon-drag-n-drop.d.ts +0 -3
  246. package/components/icons/icon-drag-n-drop.js +0 -12
  247. package/components/icons/icon-ear-hearing.d.ts +0 -3
  248. package/components/icons/icon-ear-hearing.js +0 -12
  249. package/components/icons/icon-edit.d.ts +0 -3
  250. package/components/icons/icon-edit.js +0 -12
  251. package/components/icons/icon-email-sent.d.ts +0 -3
  252. package/components/icons/icon-email-sent.js +0 -12
  253. package/components/icons/icon-email-unread.d.ts +0 -3
  254. package/components/icons/icon-email-unread.js +0 -12
  255. package/components/icons/icon-email.d.ts +0 -3
  256. package/components/icons/icon-email.js +0 -12
  257. package/components/icons/icon-expand.d.ts +0 -3
  258. package/components/icons/icon-expand.js +0 -12
  259. package/components/icons/icon-external.d.ts +0 -3
  260. package/components/icons/icon-external.js +0 -12
  261. package/components/icons/icon-facebook.d.ts +0 -3
  262. package/components/icons/icon-facebook.js +0 -12
  263. package/components/icons/icon-file-csv.d.ts +0 -3
  264. package/components/icons/icon-file-csv.js +0 -12
  265. package/components/icons/icon-file-excel.d.ts +0 -3
  266. package/components/icons/icon-file-excel.js +0 -12
  267. package/components/icons/icon-file-other.d.ts +0 -3
  268. package/components/icons/icon-file-other.js +0 -12
  269. package/components/icons/icon-file-pdf.d.ts +0 -3
  270. package/components/icons/icon-file-pdf.js +0 -12
  271. package/components/icons/icon-file-picture.d.ts +0 -3
  272. package/components/icons/icon-file-picture.js +0 -12
  273. package/components/icons/icon-file-powerpoint.d.ts +0 -3
  274. package/components/icons/icon-file-powerpoint.js +0 -12
  275. package/components/icons/icon-file-word.d.ts +0 -3
  276. package/components/icons/icon-file-word.js +0 -12
  277. package/components/icons/icon-find-care.d.ts +0 -3
  278. package/components/icons/icon-find-care.js +0 -12
  279. package/components/icons/icon-find-region.d.ts +0 -3
  280. package/components/icons/icon-find-region.js +0 -12
  281. package/components/icons/icon-flag.d.ts +0 -3
  282. package/components/icons/icon-flag.js +0 -12
  283. package/components/icons/icon-form-numbered-reocurring.d.ts +0 -3
  284. package/components/icons/icon-form-numbered-reocurring.js +0 -12
  285. package/components/icons/icon-form-numbered.d.ts +0 -3
  286. package/components/icons/icon-form-numbered.js +0 -12
  287. package/components/icons/icon-gavleborg.d.ts +0 -3
  288. package/components/icons/icon-gavleborg.js +0 -12
  289. package/components/icons/icon-gotland.d.ts +0 -3
  290. package/components/icons/icon-gotland.js +0 -12
  291. package/components/icons/icon-halland.d.ts +0 -3
  292. package/components/icons/icon-halland.js +0 -12
  293. package/components/icons/icon-headphones.d.ts +0 -3
  294. package/components/icons/icon-headphones.js +0 -12
  295. package/components/icons/icon-hourglass-end.d.ts +0 -3
  296. package/components/icons/icon-hourglass-end.js +0 -12
  297. package/components/icons/icon-hourglass-start.d.ts +0 -3
  298. package/components/icons/icon-hourglass-start.js +0 -12
  299. package/components/icons/icon-hourglass.d.ts +0 -3
  300. package/components/icons/icon-hourglass.js +0 -12
  301. package/components/icons/icon-house.d.ts +0 -3
  302. package/components/icons/icon-house.js +0 -12
  303. package/components/icons/icon-id-card-locked.d.ts +0 -3
  304. package/components/icons/icon-id-card-locked.js +0 -12
  305. package/components/icons/icon-id-card.d.ts +0 -3
  306. package/components/icons/icon-id-card.js +0 -12
  307. package/components/icons/icon-image.d.ts +0 -3
  308. package/components/icons/icon-image.js +0 -12
  309. package/components/icons/icon-inera-legacy.d.ts +0 -3
  310. package/components/icons/icon-inera-legacy.js +0 -12
  311. package/components/icons/icon-inera.d.ts +0 -3
  312. package/components/icons/icon-inera.js +0 -12
  313. package/components/icons/icon-information.d.ts +0 -3
  314. package/components/icons/icon-information.js +0 -12
  315. package/components/icons/icon-jamtland-harjedalen.d.ts +0 -3
  316. package/components/icons/icon-jamtland-harjedalen.js +0 -12
  317. package/components/icons/icon-jonkoping.d.ts +0 -3
  318. package/components/icons/icon-jonkoping.js +0 -12
  319. package/components/icons/icon-kalmar.d.ts +0 -3
  320. package/components/icons/icon-kalmar.js +0 -12
  321. package/components/icons/icon-kronoberg.d.ts +0 -3
  322. package/components/icons/icon-kronoberg.js +0 -12
  323. package/components/icons/icon-lightbulb.d.ts +0 -3
  324. package/components/icons/icon-lightbulb.js +0 -12
  325. package/components/icons/icon-linkedin.d.ts +0 -3
  326. package/components/icons/icon-linkedin.js +0 -12
  327. package/components/icons/icon-list.d.ts +0 -3
  328. package/components/icons/icon-list.js +0 -12
  329. package/components/icons/icon-lock-open.d.ts +0 -3
  330. package/components/icons/icon-lock-open.js +0 -12
  331. package/components/icons/icon-lock.d.ts +0 -3
  332. package/components/icons/icon-lock.js +0 -12
  333. package/components/icons/icon-log-locked.d.ts +0 -3
  334. package/components/icons/icon-log-locked.js +0 -12
  335. package/components/icons/icon-log.d.ts +0 -3
  336. package/components/icons/icon-log.js +0 -12
  337. package/components/icons/icon-menu.d.ts +0 -3
  338. package/components/icons/icon-menu.js +0 -12
  339. package/components/icons/icon-minus.d.ts +0 -3
  340. package/components/icons/icon-minus.js +0 -12
  341. package/components/icons/icon-moment-start.d.ts +0 -3
  342. package/components/icons/icon-moment-start.js +0 -12
  343. package/components/icons/icon-moment-stop.d.ts +0 -3
  344. package/components/icons/icon-moment-stop.js +0 -12
  345. package/components/icons/icon-norrbotten.d.ts +0 -3
  346. package/components/icons/icon-norrbotten.js +0 -12
  347. package/components/icons/icon-office-building.d.ts +0 -3
  348. package/components/icons/icon-office-building.js +0 -12
  349. package/components/icons/icon-orebro.d.ts +0 -3
  350. package/components/icons/icon-orebro.js +0 -12
  351. package/components/icons/icon-organization.d.ts +0 -3
  352. package/components/icons/icon-organization.js +0 -12
  353. package/components/icons/icon-ostergotland.d.ts +0 -3
  354. package/components/icons/icon-ostergotland.js +0 -12
  355. package/components/icons/icon-plus.d.ts +0 -3
  356. package/components/icons/icon-plus.js +0 -12
  357. package/components/icons/icon-prescription.d.ts +0 -3
  358. package/components/icons/icon-prescription.js +0 -12
  359. package/components/icons/icon-print.d.ts +0 -3
  360. package/components/icons/icon-print.js +0 -12
  361. package/components/icons/icon-question.d.ts +0 -3
  362. package/components/icons/icon-question.js +0 -12
  363. package/components/icons/icon-reload.d.ts +0 -3
  364. package/components/icons/icon-reload.js +0 -12
  365. package/components/icons/icon-reply.d.ts +0 -3
  366. package/components/icons/icon-reply.js +0 -12
  367. package/components/icons/icon-search-inera.d.ts +0 -3
  368. package/components/icons/icon-search-inera.js +0 -12
  369. package/components/icons/icon-search.d.ts +0 -3
  370. package/components/icons/icon-search.js +0 -12
  371. package/components/icons/icon-share.d.ts +0 -3
  372. package/components/icons/icon-share.js +0 -12
  373. package/components/icons/icon-shield-locked-primary.d.ts +0 -3
  374. package/components/icons/icon-shield-locked-primary.js +0 -12
  375. package/components/icons/icon-shield-locked.d.ts +0 -3
  376. package/components/icons/icon-shield-locked.js +0 -12
  377. package/components/icons/icon-skane.d.ts +0 -3
  378. package/components/icons/icon-skane.js +0 -12
  379. package/components/icons/icon-sormland.d.ts +0 -3
  380. package/components/icons/icon-sormland.js +0 -12
  381. package/components/icons/icon-star-filled.d.ts +0 -3
  382. package/components/icons/icon-star-filled.js +0 -12
  383. package/components/icons/icon-star.d.ts +0 -3
  384. package/components/icons/icon-star.js +0 -12
  385. package/components/icons/icon-stockholm.d.ts +0 -3
  386. package/components/icons/icon-stockholm.js +0 -12
  387. package/components/icons/icon-success.d.ts +0 -3
  388. package/components/icons/icon-success.js +0 -12
  389. package/components/icons/icon-swap.d.ts +0 -3
  390. package/components/icons/icon-swap.js +0 -12
  391. package/components/icons/icon-switch-person.d.ts +0 -3
  392. package/components/icons/icon-switch-person.js +0 -12
  393. package/components/icons/icon-telephone.d.ts +0 -3
  394. package/components/icons/icon-telephone.js +0 -12
  395. package/components/icons/icon-test-tube-analyze.d.ts +0 -3
  396. package/components/icons/icon-test-tube-analyze.js +0 -12
  397. package/components/icons/icon-test-tube-empty.d.ts +0 -3
  398. package/components/icons/icon-test-tube-empty.js +0 -12
  399. package/components/icons/icon-test-tube.d.ts +0 -3
  400. package/components/icons/icon-test-tube.js +0 -12
  401. package/components/icons/icon-toggle-card.d.ts +0 -3
  402. package/components/icons/icon-toggle-card.js +0 -12
  403. package/components/icons/icon-toggle-list.d.ts +0 -3
  404. package/components/icons/icon-toggle-list.js +0 -12
  405. package/components/icons/icon-trash.d.ts +0 -3
  406. package/components/icons/icon-trash.js +0 -12
  407. package/components/icons/icon-twitter.d.ts +0 -3
  408. package/components/icons/icon-twitter.js +0 -12
  409. package/components/icons/icon-uppsala.d.ts +0 -3
  410. package/components/icons/icon-uppsala.js +0 -12
  411. package/components/icons/icon-user.d.ts +0 -3
  412. package/components/icons/icon-user.js +0 -12
  413. package/components/icons/icon-varmland.d.ts +0 -3
  414. package/components/icons/icon-varmland.js +0 -12
  415. package/components/icons/icon-vasterbotten.d.ts +0 -3
  416. package/components/icons/icon-vasterbotten.js +0 -12
  417. package/components/icons/icon-vasternorrland.d.ts +0 -3
  418. package/components/icons/icon-vasternorrland.js +0 -12
  419. package/components/icons/icon-vastmanland.d.ts +0 -3
  420. package/components/icons/icon-vastmanland.js +0 -12
  421. package/components/icons/icon-vastra-gotaland.d.ts +0 -3
  422. package/components/icons/icon-vastra-gotaland.js +0 -12
  423. package/components/icons/icon-video-off.d.ts +0 -3
  424. package/components/icons/icon-video-off.js +0 -12
  425. package/components/icons/icon-video-on.d.ts +0 -3
  426. package/components/icons/icon-video-on.js +0 -12
  427. package/components/icons/icon-video-switch.d.ts +0 -3
  428. package/components/icons/icon-video-switch.js +0 -12
  429. package/components/icons/icon-visibility-off.d.ts +0 -3
  430. package/components/icons/icon-visibility-off.js +0 -12
  431. package/components/icons/icon-visibility.d.ts +0 -3
  432. package/components/icons/icon-visibility.js +0 -12
  433. package/components/icons/icon-warning.d.ts +0 -3
  434. package/components/icons/icon-warning.js +0 -12
  435. package/components/icons/icon-x.d.ts +0 -3
@@ -1,8 +1,11 @@
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 });
5
+ const IDSPuffListItemInfo = ({ bottom, children, ...props }) => {
6
+ return (jsx("div", { className: clsx("ids-puff-list-item__info", {
7
+ "ids-puff-list-item__info--bottom": bottom
8
+ }), ...props, children: children }));
6
9
  };
7
10
 
8
11
  export { IDSPuffListItemInfo };
@@ -11,8 +11,16 @@ interface IDSPuffListItemProps extends React.HTMLAttributes<HTMLDivElement> {
11
11
  monthLabel?: string;
12
12
  day?: number;
13
13
  time?: string;
14
+ dateTo?: Date | null;
15
+ yearTo?: string;
16
+ monthTo?: number;
17
+ monthToLabel?: string;
18
+ dayTo?: number;
19
+ timeTo?: string;
14
20
  noContent?: boolean;
21
+ lean?: boolean;
15
22
  noMargin?: boolean;
23
+ noListItem?: boolean;
16
24
  dateLabel?: ReactNode;
17
25
  children?: ReactNode;
18
26
  }
@@ -1,22 +1,45 @@
1
1
  "use client";
2
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
- import React__default, { useState, useEffect, isValidElement, cloneElement } from 'react';
3
+ import React, { useState, useEffect, isValidElement, cloneElement } from 'react';
4
4
  import '@inera/ids-design/components/puff-list/puff-list.css';
5
- import { getMonthAsSweText, getDayAsText } from '../../utils/utils.js';
5
+ import { getDayAsText, getMonthAsSweText } from '../../utils/utils.js';
6
6
  import clsx from 'clsx';
7
7
 
8
- const IDSPuffListItem = ({ headline = "", headlineLevel = 2, headlineLink, itemLink, date = null, year = "", month = -1, monthLabel = "", day = -1, time = "", noContent = false, noMargin = false, dateLabel, className, children }) => {
9
- const [presentedDate, setPresentedDate] = useState(date);
8
+ const IDSPuffListItem = ({ headline = "", headlineLevel = 2, headlineLink, itemLink, date = null, year = "", month = -1, monthLabel = "", day = -1, time = "", dateTo = null, yearTo = "", monthTo = -1, monthToLabel = "", dayTo = -1, timeTo = "", noContent = false, noMargin = false, noListItem = false, lean = false, dateLabel, className, children, ...props }) => {
9
+ const [presentedDate, setPresentedDate] = useState(date ? new Date(date) : null);
10
+ const [presentedToDate, setPresentedToDate] = useState(dateTo ? new Date(dateTo) : null);
10
11
  useEffect(() => {
11
12
  if (date) {
12
13
  setPresentedDate(new Date(date));
13
14
  }
14
15
  }, [date]);
15
- const hasDate = () => date || year || month !== -1 || day !== -1;
16
- const getYear = () => presentedDate?.getFullYear() || year;
16
+ useEffect(() => {
17
+ if (dateTo) {
18
+ setPresentedToDate(new Date(dateTo));
19
+ }
20
+ }, [dateTo]);
21
+ const hasDate = () => date !== null ||
22
+ (year !== "" && year !== undefined) ||
23
+ (month !== null && month !== undefined && month > 0) ||
24
+ (day !== null && day !== undefined && day > 0);
25
+ const hasToDate = () => dateTo !== null ||
26
+ (yearTo !== "" && yearTo !== undefined) ||
27
+ (monthTo !== null && monthTo !== undefined && monthTo > 0) ||
28
+ (dayTo !== null && dayTo !== undefined && dayTo > 0);
29
+ const getYear = () => (presentedDate ? presentedDate.getFullYear() : year);
30
+ const getYearTo = () => (presentedToDate ? presentedToDate.getFullYear() : yearTo);
17
31
  const getMonth = () => (presentedDate ? presentedDate.getMonth() + 1 : month);
32
+ const getMonthTo = () => (presentedToDate ? presentedToDate.getMonth() + 1 : monthTo);
33
+ const getDay = () => {
34
+ const dayNumber = presentedDate ? presentedDate.getDate() : day;
35
+ return getDayAsText(dayNumber);
36
+ };
37
+ const getDayTo = () => {
38
+ const dayNumber = presentedToDate ? presentedToDate.getDate() : dayTo;
39
+ return getDayAsText(dayNumber);
40
+ };
18
41
  const getMonthText = () => (monthLabel ? monthLabel : getMonthAsSweText(getMonth() - 1, 3));
19
- const getDay = () => getDayAsText(presentedDate?.getDate() || day);
42
+ const getMonthToText = () => (monthToLabel ? monthToLabel : getMonthAsSweText(getMonthTo() - 1, 3));
20
43
  const getTime = () => {
21
44
  if (time)
22
45
  return time;
@@ -27,20 +50,30 @@ const IDSPuffListItem = ({ headline = "", headlineLevel = 2, headlineLink, itemL
27
50
  }
28
51
  return "";
29
52
  };
53
+ const getTimeTo = () => {
54
+ if (timeTo)
55
+ return timeTo;
56
+ if (presentedToDate) {
57
+ const hour = presentedToDate.getHours();
58
+ const min = presentedToDate.getMinutes();
59
+ return `${hour.toString().padStart(2, "0")}:${min.toString().padStart(2, "0")}`;
60
+ }
61
+ return "";
62
+ };
30
63
  const getHeaderClass = (noMargin) => clsx("ids-puff-list-item__header", {
31
- "ids-puff-list-item--no-margin": noMargin
64
+ "ids-puff-list-item__header--no-margin": noMargin
32
65
  });
33
66
  const renderHeadline = () => {
34
67
  const level = [2, 3, 4, 5].includes(headlineLevel) ? headlineLevel : 2;
35
68
  const Tag = `h${level}`;
36
69
  const headlineContent = jsx(Fragment, { children: headline });
37
70
  if (headlineLink && isValidElement(headlineLink)) {
38
- return React__default.createElement(Tag, { className: getHeaderClass(noMargin) }, cloneElement(headlineLink, {
71
+ return React.createElement(Tag, { className: getHeaderClass(noMargin) }, cloneElement(headlineLink, {
39
72
  ...headlineLink.props,
40
73
  children: headlineContent
41
74
  }));
42
75
  }
43
- return React__default.createElement(Tag, { className: getHeaderClass(noMargin) }, headline);
76
+ return React.createElement(Tag, { className: getHeaderClass(noMargin) }, headline);
44
77
  };
45
78
  const renderBody = () => {
46
79
  const content = (jsxs(Fragment, { children: [renderHeadline(), !noContent && jsx("div", { className: "ids-puff-list-item__body", children: children })] }));
@@ -53,9 +86,10 @@ const IDSPuffListItem = ({ headline = "", headlineLevel = 2, headlineLink, itemL
53
86
  }
54
87
  return content;
55
88
  };
56
- return (jsx("li", { className: clsx("ids-puff-list-item", {
57
- "ids-puff-list-item--interactive": !!itemLink
58
- }, className), children: jsxs("div", { className: "ids-puff-list-item__inner", children: [dateLabel && jsx("div", { className: "ids-puff-list-item__date-label", children: dateLabel }), jsxs("div", { className: "ids-puff-list-item__content", children: [hasDate() && (jsxs("div", { className: "ids-puff-list-item__date", children: [`${getDay()} ${getMonthText()} ${getYear()}`, !!getTime() && jsx("span", { className: "ids-puff-list-item__time", children: getTime() })] })), renderBody()] })] }) }));
89
+ return (jsx("div", { className: clsx("ids-puff-list-item", {
90
+ "ids-puff-list-item--interactive": !!itemLink,
91
+ "ids-puff-list-item--lean": !!lean
92
+ }, className), ...props, children: jsxs("div", { className: "ids-puff-list-item__inner", children: [dateLabel && jsx("div", { className: "ids-puff-list-item__date-label", children: dateLabel }), jsxs("div", { className: "ids-puff-list-item__content", children: [hasDate() && (jsxs("span", { className: "ids-puff-list-item__date", children: [`${getDay()} ${getMonthText()} ${getYear()}`, !!getTime() && jsx("span", { className: "ids-puff-list-item__time", children: getTime() })] })), hasDate() && hasToDate() && (jsxs("span", { className: "ids-puff-list-item__date", children: [jsx("span", { className: "ids-puff-list-item__date-spacer", children: "\u2015" }), `${getDayTo()} ${getMonthToText()} ${getYearTo()}`, !!getTimeTo() && jsx("span", { className: "ids-puff-list-item__time", children: getTimeTo() })] })), renderBody()] })] }) }));
59
93
  };
60
94
 
61
95
  export { IDSPuffListItem };
@@ -2,8 +2,8 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import '@inera/ids-design/components/puff-list/puff-list.css';
3
3
  import clsx from 'clsx';
4
4
 
5
- const IDSPuffList = ({ children, className }) => {
6
- return jsx("ul", { className: clsx("ids-puff-list", className), children: children });
5
+ const IDSPuffList = ({ children, className, ...props }) => {
6
+ return (jsx("div", { className: clsx("ids-puff-list", className), ...props, children: children }));
7
7
  };
8
8
 
9
9
  export { IDSPuffList };
@@ -18,8 +18,7 @@ const IDSRegionIcon = ({ name, size = "m", colorPreset = 1, light = false, inlin
18
18
  return "2.5rem";
19
19
  }
20
20
  };
21
- const classNames = clsx("ids-region-icon", `ids-region-icon--${name}`, `ids-region-icon--color-preset-${light ? 4 : colorPreset}`, { "ids-region-icon--inline": inline }, className);
22
- return jsx("span", { className: classNames, style: { fontSize: getSize() }, ...props });
21
+ return (jsx("span", { className: clsx("ids-region-icon", `ids-region-icon--${name}`, `ids-region-icon--color-preset-${light ? 3 : colorPreset}`, { "ids-region-icon--inline": inline }, className), style: { fontSize: getSize() }, ...props }));
23
22
  };
24
23
 
25
24
  export { IDSRegionIcon };
@@ -10,7 +10,7 @@ interface IDSSideMenuProps extends React.HTMLAttributes<HTMLDivElement> {
10
10
  labelNotification?: ReactNode;
11
11
  link?: ReactNode;
12
12
  children?: ReactNode;
13
- onExpandedChange?: (expanded: boolean) => void;
13
+ onExpandedChange?: (isExpanded: boolean) => void;
14
14
  }
15
15
  export declare const IDSSideMenu: React.FC<IDSSideMenuProps>;
16
16
  export {};
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
- import React__default, { useState } from 'react';
3
+ import React, { useState } from 'react';
4
4
  import '@inera/ids-design/components/side-menu/side-menu.css';
5
5
  import clsx from 'clsx';
6
6
 
7
- const IDSSideMenu = ({ label = "", srToggleText = "Sektion", expanded = false, active = false, level = 1, icon = "", labelNotification, link, children, className, onExpandedChange }) => {
7
+ const IDSSideMenu = ({ label = "", srToggleText = "Sektion", expanded = false, active = false, level = 1, icon = "", labelNotification, link, children, className, onExpandedChange, ...props }) => {
8
8
  const [isExpanded, setIsExpanded] = useState(expanded);
9
- const hasChildren = React__default.Children.toArray(children).some(child => React__default.isValidElement(child) && child.type === IDSSideMenu);
9
+ const hasChildren = React.Children.toArray(children).some(child => React.isValidElement(child) && child.type === IDSSideMenu);
10
10
  const toggleExpanded = (e) => {
11
11
  e.stopPropagation();
12
12
  if (hasChildren) {
@@ -30,7 +30,7 @@ const IDSSideMenu = ({ label = "", srToggleText = "Sektion", expanded = false, a
30
30
  "ids-side-menu__chevron-button--expanded": isExpanded
31
31
  }), onClick: toggleExpanded, onKeyDown: handleKeyDown, "aria-expanded": isExpanded, "aria-label": srToggleText }));
32
32
  }
33
- return icon ? (jsx("div", { className: "ids-side-menu__leaf-icon", children: jsx("span", { className: `ids-icon-${icon}` }) })) : (jsx("div", { className: "ids-side-menu__leaf-icon--empty" }));
33
+ return icon ? (jsx("div", { className: "ids-side-menu__leaf-icon", "aria-hidden": "true", children: jsx("span", { className: `ids-icon-${icon}` }) })) : (jsx("div", { className: "ids-side-menu__leaf-icon--empty" }));
34
34
  };
35
35
  const renderLabel = () => {
36
36
  if (hasChildren) {
@@ -38,7 +38,7 @@ const IDSSideMenu = ({ label = "", srToggleText = "Sektion", expanded = false, a
38
38
  "ids-side-menu__label-chevron--expanded": isExpanded
39
39
  }) }), jsxs("div", { className: "ids-side-menu__label", children: [label, labelNotification] })] }));
40
40
  }
41
- return (jsxs(Fragment, { children: [icon ? (jsx("div", { className: "ids-side-menu__leaf-icon", children: jsx("span", { className: `ids-icon-${icon}` }) })) : (jsx("div", { className: "ids-side-menu__leaf-icon--empty" })), jsxs("div", { className: "ids-side-menu__label", children: [jsx("span", { className: "ids-side-menu__label-text", children: label }), labelNotification] })] }));
41
+ return (jsxs(Fragment, { children: [icon ? (jsx("div", { className: "ids-side-menu__leaf-icon", "aria-hidden": "true", children: jsx("span", { className: `ids-icon-${icon}` }) })) : (jsx("div", { className: "ids-side-menu__leaf-icon--empty" })), jsxs("div", { className: "ids-side-menu__label", children: [jsx("span", { className: "ids-side-menu__label-text", children: label }), labelNotification] })] }));
42
42
  };
43
43
  const renderMenuPost = () => {
44
44
  if (label) {
@@ -46,7 +46,7 @@ const IDSSideMenu = ({ label = "", srToggleText = "Sektion", expanded = false, a
46
46
  }
47
47
  return (jsxs(Fragment, { children: [renderExpandButton(), jsx("div", { className: "ids-side-menu__link", onClick: e => e.stopPropagation(), onKeyDown: e => e.code !== "Escape" && e.stopPropagation(), children: link })] }));
48
48
  };
49
- return (jsxs("div", { className: clsx("ids-side-menu", className), children: [jsx("div", { className: clsx("ids-side-menu__header", `ids-side-menu--level-${level}`, {
49
+ return (jsxs("div", { className: clsx("ids-side-menu", className), ...props, children: [jsx("div", { className: clsx("ids-side-menu__header", `ids-side-menu--level-${level}`, {
50
50
  "ids-side-menu--active": active,
51
51
  "ids-side-menu--node-label": hasChildren && label
52
52
  }), children: jsx("div", { className: "ids-side-menu__header-inner", children: renderMenuPost() }) }), isExpanded && jsx("div", { className: "ids-side-menu__children", children: children })] }));
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import "@inera/ids-design/components/side-panel/side-panel.css";
3
+ type PanelSize = "s" | "m" | "l";
3
4
  interface IDSSidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
4
5
  show?: boolean;
5
6
  left?: boolean;
@@ -9,6 +10,7 @@ interface IDSSidePanelProps extends React.HTMLAttributes<HTMLDivElement> {
9
10
  srLabel?: string;
10
11
  srClose?: string;
11
12
  srOpen?: string;
13
+ size?: PanelSize;
12
14
  onVisibilityChange?: (visible: boolean) => void;
13
15
  onOpen?: () => void;
14
16
  onClose?: () => void;
@@ -4,11 +4,11 @@ import { useState, useRef, useEffect } from 'react';
4
4
  import '@inera/ids-design/components/side-panel/side-panel.css';
5
5
  import clsx from 'clsx';
6
6
 
7
- const IDSSidePanel = ({ show = false, left = false, elevated = false, menu = false, footer = false, srLabel = "Sidopanel", srClose = "Stäng", srOpen = "Öppna", onVisibilityChange, onOpen, onClose, footerLinks, footerText, headline, className, children, ...props }) => {
7
+ const IDSSidePanel = ({ show = false, left = false, elevated = false, menu = false, footer = false, size = "m", srLabel = "Sidopanel", srClose = "Stäng", srOpen = "Öppna", onVisibilityChange, onOpen, onClose, footerLinks, footerText, headline, className, children, ...props }) => {
8
8
  const [isVisible, setIsVisible] = useState(show);
9
9
  const hamburgerRef = useRef(null);
10
10
  const panelRef = useRef(null);
11
- const classNames = clsx("ids-side-panel", "ids-focus-trap--tablet", menu ? "ids-side-panel--menu" : "ids-side-panel--regular", {
11
+ const classNames = clsx("ids-side-panel", "ids-focus-trap--tablet", size && !menu && `ids-side-panel--${size}`, menu ? "ids-side-panel--menu" : "ids-side-panel--regular", {
12
12
  "ids-side-panel--show": isVisible,
13
13
  "ids-side-panel--elevated": elevated,
14
14
  "ids-side-panel--left": !menu && left
@@ -48,9 +48,9 @@ const IDSSidePanel = ({ show = false, left = false, elevated = false, menu = fal
48
48
  onVisibilityChange?.(isVisible);
49
49
  if (isVisible) {
50
50
  onOpen?.();
51
- // Set focus to headline if available
52
- const headlineSlot = panelRef.current?.querySelector("[slot=headline]");
53
- headlineSlot?.focus();
51
+ const heading = panelRef.current?.querySelector("h1, h2, h3, h4, h5, h6");
52
+ heading?.setAttribute("tabindex", "-1");
53
+ heading?.focus();
54
54
  }
55
55
  else {
56
56
  onClose?.();
@@ -4,7 +4,7 @@ import { useState, useEffect } from 'react';
4
4
  import '@inera/ids-design/components/stepper/stepper.css';
5
5
  import clsx from 'clsx';
6
6
 
7
- const IDSStep = ({ state = "", headline, label = "", stepNumber = "", srIndicatorText = "", last = "false", expanded: expandedProp = false, disabled = false, onToggleExpansion, onExpanded, onClosed, className, children }) => {
7
+ const IDSStep = ({ state = "", headline, label = "", stepNumber = "", srIndicatorText = "", last = "false", expanded: expandedProp = false, disabled = false, onToggleExpansion, onExpanded, onClosed, className, children, ...props }) => {
8
8
  const [expanded, setExpanded] = useState(expandedProp);
9
9
  useEffect(() => {
10
10
  setExpanded(expandedProp);
@@ -29,7 +29,7 @@ const IDSStep = ({ state = "", headline, label = "", stepNumber = "", srIndicato
29
29
  return null;
30
30
  return stepNumber;
31
31
  };
32
- return (jsxs("div", { className: clsx("ids-step", className), ...(last ? { last } : {}), children: [jsx("div", { role: "button", tabIndex: disabled ? -1 : 0, className: clsx("ids-step__button", {
32
+ return (jsxs("div", { className: clsx("ids-step", className), ...(last ? { last } : {}), ...props, children: [jsx("div", { role: "button", tabIndex: disabled ? -1 : 0, className: clsx("ids-step__button", {
33
33
  "ids-step__button--disabled": disabled
34
34
  }), "aria-expanded": expanded, onClick: toggleExpansion, onKeyDown: handleKeyPress, children: jsxs("div", { className: "ids-step__button-inner", children: [jsx("div", { className: "ids-step__indicator-wrapper", children: jsx("div", { "aria-label": srIndicatorText || stepNumber, role: "img", className: `ids-step__indicator ids-step__indicator--${state}`, children: renderStepIndicator() }) }), jsxs("div", { className: "ids-step__button-text", children: [jsxs("div", { className: "ids-step__headline-label", children: [label && jsx("div", { className: "ids-step__label", children: label }), headline && jsx("div", { className: "ids-step__headline", children: headline })] }), jsx("div", { className: clsx("ids-step__chevron", {
35
35
  "ids-step__chevron--expanded": expanded
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import React__default, { isValidElement, cloneElement } from 'react';
3
+ import React, { isValidElement, cloneElement } from 'react';
4
4
  import '@inera/ids-design/components/stepper/stepper.css';
5
5
  import clsx from 'clsx';
6
6
 
7
- const IDSStepper = ({ children, onToggleExpansion, className }) => {
8
- const stepsArray = React__default.Children.toArray(children).filter(isValidElement);
7
+ const IDSStepper = ({ children, onToggleExpansion, className, ...props }) => {
8
+ const stepsArray = React.Children.toArray(children).filter(isValidElement);
9
9
  const handleExpansion = (step, expanded) => {
10
10
  onToggleExpansion?.(step, expanded);
11
11
  };
@@ -17,7 +17,7 @@ const IDSStepper = ({ children, onToggleExpansion, className }) => {
17
17
  onToggleExpansion: handleExpansion
18
18
  });
19
19
  });
20
- return jsx("div", { className: clsx("ids-stepper", className), children: enhancedSteps });
20
+ return (jsx("div", { className: clsx("ids-stepper", className), ...props, children: enhancedSteps }));
21
21
  };
22
22
 
23
23
  export { IDSStepper };
@@ -4,7 +4,7 @@ import { useRef, useEffect } from 'react';
4
4
  import '@inera/ids-design/components/tabs/tab-panel.css';
5
5
  import clsx from 'clsx';
6
6
 
7
- const IDSTabPanel = ({ compact = false, noFocus = false, selected = false, id = "", tabId = "", children, className }) => {
7
+ const IDSTabPanel = ({ compact = false, noFocus = false, selected = false, id = "", tabId = "", children, className, ...props }) => {
8
8
  const panelRef = useRef(null);
9
9
  useEffect(() => {
10
10
  if (panelRef.current && !noFocus) {
@@ -14,7 +14,7 @@ const IDSTabPanel = ({ compact = false, noFocus = false, selected = false, id =
14
14
  return (jsx("div", { ref: panelRef, role: "tabpanel", id: id, "aria-hidden": !selected, "aria-labelledby": tabId, hidden: !selected, className: clsx("ids-tab-panel", {
15
15
  "ids-tab-panel--selected": selected,
16
16
  "ids-tab-panel--compact": compact
17
- }, className), children: children }));
17
+ }, className), ...props, children: children }));
18
18
  };
19
19
 
20
20
  export { IDSTabPanel };
@@ -4,7 +4,7 @@ import { useRef } from 'react';
4
4
  import '@inera/ids-design/components/tabs/tab.css';
5
5
  import clsx from 'clsx';
6
6
 
7
- const IDSTab = ({ label, index, id = "", panelId = "", selected = false, icon = "", notification, className, onTabClick, onKeyDown }) => {
7
+ const IDSTab = ({ label, index, id = "", panelId = "", selected = false, icon = "", notification, className, onTabClick, onKeyDown, ...props }) => {
8
8
  const tabRef = useRef(null);
9
9
  const handleClick = () => {
10
10
  if (!selected) {
@@ -13,7 +13,7 @@ const IDSTab = ({ label, index, id = "", panelId = "", selected = false, icon =
13
13
  };
14
14
  return (jsx("div", { id: id, ref: tabRef, role: "tab", tabIndex: 0, onClick: handleClick, onKeyDown: onKeyDown, className: clsx("ids-tab", {
15
15
  "ids-tab--selected": selected
16
- }, className), "aria-selected": selected, "aria-controls": panelId, children: jsxs("div", { className: "ids-tab__label", children: [icon && jsx("span", { className: `ids-icon-${icon} ids-icon--m` }), label, notification] }) }));
16
+ }, className), "aria-selected": selected, "aria-controls": panelId, ...props, children: jsxs("div", { className: "ids-tab__label", children: [icon && jsx("span", { className: `ids-icon-${icon} ids-icon--m`, "aria-hidden": "true" }), label, notification] }) }));
17
17
  };
18
18
 
19
19
  export { IDSTab };
@@ -3,6 +3,7 @@ import "@inera/ids-design/components/tabs/tabs.css";
3
3
  import { IDSTabProps } from "./tab";
4
4
  interface IDSTabsProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  unresponsive?: boolean;
6
+ light?: boolean;
6
7
  compact?: boolean;
7
8
  breakpoint?: "m" | "s";
8
9
  selectLabel?: string;
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
- import React__default, { useState } from 'react';
3
+ import React, { useState } from 'react';
4
4
  import { IDSSelect } from '../form/select/select.js';
5
5
  import '@inera/ids-design/components/tabs/tabs.css';
6
6
  import { useElementId } from '../utils/hooks/useElementId.js';
7
7
  import clsx from 'clsx';
8
8
 
9
- const IDSTabs = ({ unresponsive = false, compact = false, breakpoint = "m", selectLabel = "", tabs = [], children, className, onTabChange }) => {
9
+ const IDSTabs = ({ unresponsive = false, light = false, compact = false, breakpoint = "m", selectLabel = "", tabs = [], children, className, onTabChange, ...props }) => {
10
10
  const tabsId = useElementId();
11
- const initialSelectedIndex = tabs.findIndex(tab => React__default.isValidElement(tab) && tab.props.selected === true);
11
+ const initialSelectedIndex = tabs.findIndex(tab => React.isValidElement(tab) && tab.props.selected === true);
12
12
  const [activeTab, setActiveTab] = useState(initialSelectedIndex !== -1 ? initialSelectedIndex : 0);
13
13
  const responsiveOnM = breakpoint === "m" && !unresponsive;
14
14
  const responsiveOnS = breakpoint === "s" && !unresponsive;
@@ -36,10 +36,10 @@ const IDSTabs = ({ unresponsive = false, compact = false, breakpoint = "m", sele
36
36
  const getTabPanelId = (index) => {
37
37
  return `${tabsId}-tab-panel-${index}`;
38
38
  };
39
- const enhancedTabs = React__default.Children.map(tabs, (tab, idx) => {
40
- if (!React__default.isValidElement(tab))
39
+ const enhancedTabs = React.Children.map(tabs, (tab, idx) => {
40
+ if (!React.isValidElement(tab))
41
41
  return tab;
42
- return React__default.cloneElement(tab, {
42
+ return React.cloneElement(tab, {
43
43
  key: `tab-key-${idx}`,
44
44
  id: getTabId(idx),
45
45
  panelId: getTabPanelId(idx),
@@ -50,10 +50,10 @@ const IDSTabs = ({ unresponsive = false, compact = false, breakpoint = "m", sele
50
50
  onKeyDown: (e) => handleKeydown(e, idx)
51
51
  });
52
52
  });
53
- const enhancedTabPanels = React__default.Children.map(children, (panel, idx) => {
54
- if (!React__default.isValidElement(panel))
53
+ const enhancedTabPanels = React.Children.map(children, (panel, idx) => {
54
+ if (!React.isValidElement(panel))
55
55
  return panel;
56
- return React__default.cloneElement(panel, {
56
+ return React.cloneElement(panel, {
57
57
  key: `tab-panel-key-${idx}`,
58
58
  id: getTabPanelId(idx),
59
59
  tabId: getTabId(idx),
@@ -68,14 +68,28 @@ const IDSTabs = ({ unresponsive = false, compact = false, breakpoint = "m", sele
68
68
  handleSelect(index);
69
69
  };
70
70
  const renderTabOptions = () => tabs?.map((tab, i) => {
71
- const label = React__default.isValidElement(tab) ? tab.props.label || `Tab ${i + 1}` : `Tab ${i + 1}`;
72
- return (jsx("option", { value: i, children: label }, i));
71
+ if (!React.isValidElement(tab))
72
+ return null;
73
+ const { label, notification } = tab.props;
74
+ let notificationText = "";
75
+ if (typeof notification === "string" || typeof notification === "number") {
76
+ notificationText = String(notification);
77
+ }
78
+ else if (React.isValidElement(notification)) {
79
+ const badge = notification;
80
+ const childTexts = React.Children.toArray(badge.props.children)
81
+ .map(child => (typeof child === "string" || typeof child === "number" ? child : ""))
82
+ .join("");
83
+ notificationText = childTexts.trim();
84
+ }
85
+ const optionLabel = notificationText ? `${label} (${notificationText})` : label;
86
+ return (jsx("option", { value: i, children: optionLabel }, i));
73
87
  });
74
88
  return (jsxs("div", { className: clsx("ids-tabs", {
75
89
  "ids-tabs--unresponsive": unresponsive,
76
90
  "ids-tabs--responsive-on-m": responsiveOnM,
77
91
  "ids-tabs--responsive-on-s": responsiveOnS
78
- }, className), children: [jsx("div", { className: "ids-tabs__select", children: jsx(IDSSelect, { label: selectLabel, onChange: tabChangedFromSelect, value: activeTab, children: renderTabOptions() }) }), jsx("div", { className: "ids-tabs__tabs", role: "tablist", children: enhancedTabs }), jsx("div", { className: "ids-tabs__panels", children: enhancedTabPanels })] }));
92
+ }, className), ...props, children: [jsx("div", { className: "ids-tabs__select", children: jsx(IDSSelect, { label: selectLabel, onChange: tabChangedFromSelect, value: activeTab, light: light, children: renderTabOptions() }) }), jsx("div", { className: "ids-tabs__tabs", role: "tablist", children: enhancedTabs }), jsx("div", { className: "ids-tabs__panels", children: enhancedTabPanels })] }));
79
93
  };
80
94
 
81
95
  export { IDSTabs };
@@ -5,7 +5,7 @@ import '@inera/ids-design/components/tooltip/tooltip.css';
5
5
  import { useElementId } from '../utils/hooks/useElementId.js';
6
6
  import clsx from 'clsx';
7
7
 
8
- const IDSTooltip = ({ position = "top", trigger, children, className }) => {
8
+ const IDSTooltip = ({ position = "top", trigger, children, className, ...props }) => {
9
9
  const [translateX, setTranslateX] = useState(position === "top" || position === "bottom" ? "-50%" : "0");
10
10
  const [translateY, setTranslateY] = useState(position.includes("top") ? "-100%" : "100%");
11
11
  const tooltipContentRef = useRef(null);
@@ -76,7 +76,7 @@ const IDSTooltip = ({ position = "top", trigger, children, className }) => {
76
76
  triggerWrapper.removeEventListener("focusin", handleOverflow);
77
77
  };
78
78
  }, [triggerRef]);
79
- return (jsxs("span", { className: clsx("ids-tooltip", className), children: [jsx("span", { className: "ids-tooltip__trigger", ref: triggerRef, children: trigger }), jsx("span", { className: clsx("ids-tooltip__content", `ids-tooltip__content--${position}`), ref: tooltipContentRef, id: tooltipId, style: { transform: `translate(${translateX}, ${translateY})` }, children: children })] }));
79
+ return (jsxs("span", { className: clsx("ids-tooltip", className), ...props, children: [jsx("span", { className: "ids-tooltip__trigger", ref: triggerRef, children: trigger }), jsx("span", { className: clsx("ids-tooltip__content", `ids-tooltip__content--${position}`), ref: tooltipContentRef, id: tooltipId, style: { transform: `translate(${translateX}, ${translateY})` }, children: children })] }));
80
80
  };
81
81
 
82
82
  export { IDSTooltip };
@@ -1,8 +1,6 @@
1
1
  export interface IDSHeaderConfig {
2
2
  unresponsive: boolean;
3
- fluid: boolean;
4
3
  hideRegionPicker?: boolean;
5
- regionPickerText?: string;
6
4
  }
7
5
  export declare const HeaderContext: import("react").Context<IDSHeaderConfig>;
8
6
  export declare const useHeaderContext: () => IDSHeaderConfig;