@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,55 +1,52 @@
1
1
  "use client";
2
2
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
- import React__default from 'react';
3
+ import React, { useRef } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import '@inera/ids-design/components/footer-inera-admin/footer-inera-admin.css';
6
6
 
7
- const IDSFooterIneraAdmin = ({ headline = "", srHeadline = "", subHeadline = "", cols = 3, col1 = [], col2 = [], col3 = [], col1Size, col2Size, col3Size, subFooterLeft, subFooterRight, mobileMenu, mobileLinks, subFooterMobile, children, className, ...props }) => {
8
- const defaultSizes = {
9
- 1: { col1Size: "6", col2Size: "6", col3Size: "6" },
10
- 2: { col1Size: "3", col2Size: "3", col3Size: "3" },
11
- 3: { col1Size: "2", col2Size: "2", col3Size: "2" }
7
+ const IDSFooterIneraAdmin = ({ headline = "", srHeadline = "", cols = 3, col1 = [], col2 = [], col3 = [], subFooterLeft, subFooterRight, mobileMenu, mobileLinks, subFooterMobile, children, className, ...props }) => {
8
+ const ref = useRef(null);
9
+ const renderHeadline = () => {
10
+ if (srHeadline) {
11
+ return (jsxs(Fragment, { children: [jsx("h2", { className: "ids-footer-inera-admin__headline--sr", children: srHeadline }), jsx("h2", { "aria-hidden": "true", className: "ids-footer-inera-admin__headline", children: headline })] }));
12
+ }
13
+ return jsx("h2", { className: "ids-footer-inera-admin__headline", children: headline });
12
14
  };
13
- const resolvedCol1 = col1Size ?? defaultSizes[cols].col1Size;
14
- const resolvedCol2 = col2Size ?? defaultSizes[cols].col2Size;
15
- const resolvedCol3 = col3Size ?? defaultSizes[cols].col3Size;
16
- const getColClass = (size) => `ids-footer-inera-admin__col-size-${size}`;
17
- const renderHeadline = () => srHeadline ? (jsxs(Fragment, { children: [jsxs("h1", { className: "ids-footer-inera-admin__headline--sr", children: [srHeadline, jsx("span", { className: "ids-footer-inera-admin__headline--sub", children: subHeadline })] }), jsxs("h1", { "aria-hidden": "true", className: "ids-footer-inera-admin__headline", children: [headline, jsx("span", { className: "ids-footer-inera-admin__headline--sub", children: subHeadline })] })] })) : (jsxs("h1", { className: "ids-footer-inera-admin__headline", children: [headline, jsx("span", { className: "ids-footer-inera-admin__headline--sub", children: subHeadline })] }));
18
15
  const renderCol = (column) => {
19
16
  return column?.map((link, idx) => {
20
- if (React__default.isValidElement(link)) {
21
- return React__default.cloneElement(link, {
17
+ if (React.isValidElement(link)) {
18
+ return React.cloneElement(link, {
22
19
  key: `footer-link-${idx}`,
23
- colorPreset: 3,
20
+ footer: true,
24
21
  block: true
25
22
  });
26
23
  }
27
24
  return link;
28
25
  });
29
26
  };
30
- const renderColumns = () => {
27
+ const renderCols = () => {
31
28
  if (cols === 1) {
32
- return (jsx("div", { className: clsx("ids-footer-inera-admin__link-col ids-footer-inera-admin__link-col--1", getColClass(resolvedCol1)), children: renderCol(col1) }));
29
+ return (jsx("div", { className: clsx("ids-footer-inera-admin__link-col", "ids-footer-inera-admin__link-col--100"), children: renderCol(col1) }));
33
30
  }
34
- if (cols === 2) {
35
- return (jsxs(Fragment, { children: [jsx("div", { className: clsx("ids-footer-inera-admin__link-col ids-footer-inera-admin__link-col--1", getColClass(resolvedCol1)), children: renderCol(col1) }), jsx("div", { className: clsx("ids-footer-inera-admin__link-col ids-footer-inera-admin__link-col--2", getColClass(resolvedCol2)), children: renderCol(col2) })] }));
31
+ else if (cols === 2) {
32
+ return (jsxs(Fragment, { children: [jsx("div", { className: clsx("ids-footer-inera-admin__link-col", "ids-footer-inera-admin__link-col--50"), children: renderCol(col1) }), jsx("div", { className: clsx("ids-footer-inera-admin__link-col", "ids-footer-inera-admin__link-col--50"), children: renderCol(col2) })] }));
36
33
  }
37
- return (jsxs(Fragment, { children: [jsx("div", { className: clsx("ids-footer-inera-admin__link-col", getColClass(resolvedCol1)), children: renderCol(col1) }), jsx("div", { className: clsx("ids-footer-inera-admin__link-col", getColClass(resolvedCol2)), children: renderCol(col2) }), jsx("div", { className: clsx("ids-footer-inera-admin__link-col", getColClass(resolvedCol3)), children: renderCol(col3) })] }));
34
+ return (jsxs(Fragment, { children: [jsx("div", { className: clsx("ids-footer-inera-admin__link-col", "ids-footer-inera-admin__link-col--33"), children: renderCol(col1) }), jsx("div", { className: clsx("ids-footer-inera-admin__link-col", "ids-footer-inera-admin__link-col--33"), children: renderCol(col2) }), jsx("div", { className: clsx("ids-footer-inera-admin__link-col", "ids-footer-inera-admin__link-col--33"), children: renderCol(col3) })] }));
38
35
  };
39
- const renderCookieLinks = (content) => {
36
+ const renderLinks = (content) => {
40
37
  const applyProps = (node, keyPrefix = "") => {
41
38
  if (!node)
42
39
  return null;
43
40
  if (Array.isArray(node)) {
44
41
  return node.map((child, idx) => applyProps(child, `${keyPrefix}-${idx}`));
45
42
  }
46
- if (React__default.isValidElement(node)) {
47
- if (node.type === React__default.Fragment) {
48
- return (jsx(React__default.Fragment, { children: applyProps(node.props.children, keyPrefix) }, keyPrefix));
43
+ if (React.isValidElement(node)) {
44
+ if (node.type === React.Fragment) {
45
+ return (jsx(React.Fragment, { children: applyProps(node.props.children, keyPrefix) }, keyPrefix));
49
46
  }
50
- return React__default.cloneElement(node, {
47
+ return React.cloneElement(node, {
51
48
  key: `footer-sub-footer-right-link-${keyPrefix}`,
52
- colorPreset: 4,
49
+ colorPreset: 3,
53
50
  small: true,
54
51
  ...node.props
55
52
  });
@@ -58,7 +55,7 @@ const IDSFooterIneraAdmin = ({ headline = "", srHeadline = "", subHeadline = "",
58
55
  };
59
56
  return applyProps(content, "root");
60
57
  };
61
- return (jsxs("footer", { className: clsx("ids-footer-inera-admin", className), ...props, children: [jsx("div", { className: "ids-footer-inera-admin__inner-wrapper", children: jsxs("div", { className: "ids-footer-inera-admin__inner", children: [jsx("div", { className: "ids-footer-inera-admin__headline-row", children: renderHeadline() }), jsxs("div", { className: "ids-footer-inera-admin__content", children: [jsx("div", { className: "ids-footer-inera-admin__text", children: children }), renderColumns()] })] }) }), jsxs("div", { className: "ids-footer-inera-admin__sub-footer", children: [jsx("div", { className: "ids-footer-inera-admin__sub-footer-container", children: jsxs("div", { className: "ids-footer-inera-admin__sub-footer-row", children: [jsx("div", { className: "ids-footer-inera-admin__sub-footer-left", children: subFooterLeft }), jsx("div", { className: "ids-footer-inera-admin__sub-footer-right", children: renderCookieLinks(subFooterRight) }), jsx("div", { className: "ids-footer-inera-admin__mobile-menu", children: mobileMenu }), jsx("div", { className: "ids-footer-inera-admin__mobile-links", children: renderCookieLinks(mobileLinks) })] }) }), jsx("div", { className: "ids-footer-inera-admin__sub-footer-mobile", children: subFooterMobile })] })] }));
58
+ return (jsxs("footer", { className: clsx("ids-footer-inera-admin", className), ref: ref, ...props, children: [jsx("div", { className: "ids-footer-inera-admin__inner-wrapper", children: jsxs("div", { className: "ids-footer-inera-admin__inner", children: [jsx("div", { className: "ids-footer-inera-admin__headline-wrapper", children: renderHeadline() }), jsxs("div", { className: "ids-footer-inera-admin__content", children: [jsx("div", { className: "ids-footer-inera-admin__text", children: children }), jsx("div", { className: "ids-footer-inera-admin__cols", children: renderCols() })] })] }) }), jsx("div", { className: "ids-footer-inera-admin__mobile-menu", children: mobileMenu }), jsxs("div", { className: "ids-footer-inera-admin__sub-footer", children: [jsx("div", { className: "ids-footer-inera-admin__sub-footer-container", children: jsxs("div", { className: "ids-footer-inera-admin__sub-footer-inner", children: [jsx("div", { className: "ids-footer-inera-admin__sub-footer-left", children: renderLinks(subFooterLeft) }), jsx("div", { className: "ids-footer-inera-admin__sub-footer-right", children: subFooterRight }), jsx("div", { className: "ids-footer-inera-admin__mobile-links", children: renderLinks(mobileLinks) })] }) }), jsxs("div", { className: "ids-footer-inera-admin__sub-footer-mobile", children: [jsxs("div", { className: "ids-footer-inera-admin__sub-footer-mobile-headline-wrapper", children: [jsx("div", { className: "ids-footer-inera-admin__sub-footer-mobile-logo" }), jsx("div", { className: "ids-footer-inera-admin__sub-footer-mobile-headline", children: headline })] }), jsx("div", { className: "ids-footer-inera-admin__sub-footer-mobile-text", children: subFooterMobile })] })] })] }));
62
59
  };
63
60
 
64
61
  export { IDSFooterIneraAdmin };
@@ -3,6 +3,7 @@ interface IDSCheckButtonProps extends InputHTMLAttributes<HTMLInputElement> {
3
3
  disabled?: boolean;
4
4
  focusAnchor?: boolean;
5
5
  children?: ReactNode;
6
+ dataTestId?: string;
6
7
  }
7
8
  export declare const IDSCheckButton: import("react").ForwardRefExoticComponent<IDSCheckButtonProps & import("react").RefAttributes<HTMLInputElement>>;
8
9
  export {};
@@ -4,11 +4,11 @@ import { forwardRef, useRef, useImperativeHandle } from 'react';
4
4
  import { useElementId } from '../../utils/hooks/useElementId.js';
5
5
  import clsx from 'clsx';
6
6
 
7
- const IDSCheckButton = forwardRef(({ disabled = false, focusAnchor = false, id, children, className, ...props }, ref) => {
7
+ const IDSCheckButton = forwardRef(({ disabled = false, focusAnchor = false, id, children, dataTestId = "", className, ...props }, ref) => {
8
8
  const fieldId = useElementId(id);
9
9
  const checkButtonRef = useRef(null);
10
10
  useImperativeHandle(ref, () => checkButtonRef.current);
11
- return (jsxs("div", { className: clsx("ids-check-button", { "ids-check-button--disabled": disabled }, className), children: [jsx("input", { id: fieldId, ref: checkButtonRef, className: clsx("ids-check-button__input", {
11
+ return (jsxs("div", { className: clsx("ids-check-button", { "ids-check-button--disabled": disabled }, className), "data-testid": dataTestId, children: [jsx("input", { id: fieldId, ref: checkButtonRef, className: clsx("ids-check-button__input", {
12
12
  "ids-focus-anchor": focusAnchor
13
13
  }), type: "checkbox", disabled: disabled, ...props }), jsx("label", { htmlFor: fieldId, className: "ids-check-button__label", children: children })] }));
14
14
  });
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode, InputHTMLAttributes, SetStateAction, Dispatch } from "react";
2
- interface IDSCheckboxGroupProps extends InputHTMLAttributes<HTMLInputElement> {
2
+ interface IDSCheckboxGroupProps extends InputHTMLAttributes<HTMLFieldSetElement> {
3
3
  legend?: string;
4
4
  errorMsg?: string | ReactNode;
5
5
  compact?: boolean;
@@ -1,12 +1,12 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
- import React__default, { useRef, useEffect } from 'react';
3
+ import React, { useRef, useEffect } from 'react';
4
4
  import { IDSErrorMessage } from '../error-message/error-message.js';
5
5
  import { useElementId } from '../../utils/hooks/useElementId.js';
6
6
  import { useGroupValidity } from '../form-hooks/useGroupValidity.js';
7
7
  import clsx from 'clsx';
8
8
 
9
- const IDSCheckboxGroup = ({ legend = "", errorMsg = "", compact = false, block = false, noValidation = false, tooltip, children, className, onValidityChange, setCheckedBoxesCount }) => {
9
+ const IDSCheckboxGroup = ({ legend = "", errorMsg = "", compact = false, block = false, noValidation = false, tooltip, children, className, onValidityChange, setCheckedBoxesCount, ...props }) => {
10
10
  const groupRef = useRef(null);
11
11
  const isValid = useGroupValidity(groupRef, "checkbox", () => {
12
12
  onValidityChange?.(false);
@@ -19,9 +19,9 @@ const IDSCheckboxGroup = ({ legend = "", errorMsg = "", compact = false, block =
19
19
  useEffect(() => {
20
20
  onValidityChange?.(isValid);
21
21
  }, [isValid, onValidityChange]);
22
- const clonedChildren = React__default.Children.map(children, child => {
23
- if (React__default.isValidElement(child) && child.type.displayName === "IDSCheckbox") {
24
- return React__default.cloneElement(child, {
22
+ const clonedChildren = React.Children.map(children, child => {
23
+ if (React.isValidElement(child) && child.type.displayName === "IDSCheckbox") {
24
+ return React.cloneElement(child, {
25
25
  key: child.props.id,
26
26
  groupErrorMsgId: errorMsg && errorMsgId,
27
27
  block: block,
@@ -37,7 +37,7 @@ const IDSCheckboxGroup = ({ legend = "", errorMsg = "", compact = false, block =
37
37
  });
38
38
  return (jsxs("fieldset", { ref: groupRef, className: clsx("ids-form-group__fieldset", {
39
39
  "ids-form-group__fieldset--compact": compact
40
- }, className), children: [jsxs("legend", { children: [legend, tooltip] }), clonedChildren, !isValid && !!errorMsg && (jsx(IDSErrorMessage, { id: errorMsgId, show: true, compact: true, children: errorMsg }))] }));
40
+ }, className), ...props, children: [jsxs("legend", { children: [legend, tooltip] }), clonedChildren, !isValid && !!errorMsg && (jsx(IDSErrorMessage, { id: errorMsgId, show: true, compact: true, children: errorMsg }))] }));
41
41
  };
42
42
 
43
43
  export { IDSCheckboxGroup };
@@ -14,5 +14,6 @@ export interface IDSCheckboxProps extends InputHTMLAttributes<HTMLInputElement>
14
14
  groupErrorMsgId?: string;
15
15
  tooltip?: ReactNode;
16
16
  children?: ReactNode;
17
+ dataTestId?: string;
17
18
  }
18
19
  export declare const IDSCheckbox: React.ForwardRefExoticComponent<IDSCheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -7,7 +7,7 @@ import { useAriaDescribedBy } from '../form-hooks/useAriaDescribedBy.js';
7
7
  import { useInputValidity } from '../form-hooks/useInputValidity.js';
8
8
  import clsx from 'clsx';
9
9
 
10
- const IDSCheckbox = forwardRef(({ invalid = false, disabled = false, required = false, indeterminate = false, noValidation = false, noLabel = false, light = false, block = false, compact = false, focusAnchor = false, errorMsg = "", groupErrorMsgId = "", tooltip, id, children, className, ...props }, ref) => {
10
+ const IDSCheckbox = forwardRef(({ invalid = false, disabled = false, required = false, indeterminate = false, noValidation = false, noLabel = false, light = false, block = false, compact = false, focusAnchor = false, errorMsg = "", groupErrorMsgId = "", dataTestId = "", tooltip, id, children, className, ...props }, ref) => {
11
11
  const internalRef = useRef(null);
12
12
  const checkboxRef = ref ?? internalRef;
13
13
  const fieldId = useElementId(id);
@@ -38,7 +38,7 @@ const IDSCheckbox = forwardRef(({ invalid = false, disabled = false, required =
38
38
  };
39
39
  }
40
40
  }, [checkboxRef]);
41
- return (jsxs("div", { className: clsx("ids-checkbox-component", className), style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, children: [jsxs("div", { className: clsx("ids-checkbox", {
41
+ return (jsxs("div", { className: clsx("ids-checkbox-component", className), style: { display: "flex", flexDirection: "column", gap: "0.5rem" }, "data-testid": dataTestId, children: [jsxs("div", { className: clsx("ids-checkbox", {
42
42
  "ids-checkbox--light": light,
43
43
  "ids-checkbox--block": block,
44
44
  "ids-checkbox--compact": compact
@@ -9,15 +9,13 @@ interface IDSInputProps extends InputHTMLAttributes<HTMLInputElement> {
9
9
  disabled?: boolean;
10
10
  invalid?: boolean;
11
11
  required?: boolean;
12
- focusAnchor?: boolean;
13
12
  noValidation?: boolean;
14
- autoSize?: boolean;
15
- block?: boolean;
13
+ focusAnchor?: boolean;
16
14
  light?: boolean;
17
15
  readOnly?: boolean;
18
16
  tooltip?: ReactNode;
19
17
  submitButton?: ReactNode;
20
- oldIcon?: ReactNode;
18
+ dataTestId?: string;
21
19
  }
22
20
  export declare const IDSInput: React.ForwardRefExoticComponent<IDSInputProps & React.RefAttributes<HTMLInputElement>>;
23
21
  export {};
@@ -1,17 +1,16 @@
1
1
  "use client";
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
- import React__default, { forwardRef, useRef, useEffect } from 'react';
2
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
+ import { forwardRef, useRef } from 'react';
4
4
  import { useElementId } from '../../utils/hooks/useElementId.js';
5
5
  import { IDSErrorMessage } from '../error-message/error-message.js';
6
6
  import { useInputValidity } from '../form-hooks/useInputValidity.js';
7
7
  import { useAriaDescribedBy } from '../form-hooks/useAriaDescribedBy.js';
8
8
  import clsx from 'clsx';
9
9
 
10
- const IDSInput = forwardRef(({ label = "", type = "text", icon = "", hint = "", showSearchLabel = false, errorMsg = "", disabled = false, invalid = false, required = false, noValidation = false, autoSize = false, block = false, light = false, readOnly = false, focusAnchor = false, id, tooltip, submitButton, oldIcon, className, ...props }, ref) => {
10
+ const IDSInput = forwardRef(({ label = "", type = "text", icon = "", hint = "", showSearchLabel = false, errorMsg = "", dataTestId = "", disabled = false, invalid = false, required = false, noValidation = false, focusAnchor = false, light = false, readOnly = false, id, tooltip, submitButton, className, ...props }, ref) => {
11
11
  const fieldId = useElementId(id);
12
12
  const errorMsgId = useElementId();
13
13
  const hintId = useElementId();
14
- const oldIconRef = useRef(null);
15
14
  const inputRef = useRef(null);
16
15
  const combinedRef = (node) => {
17
16
  inputRef.current = node;
@@ -23,39 +22,19 @@ const IDSInput = forwardRef(({ label = "", type = "text", icon = "", hint = "",
23
22
  const hasValidValue = useInputValidity(inputRef);
24
23
  const isInvalid = (invalid || !hasValidValue) && !noValidation;
25
24
  useAriaDescribedBy(inputRef, errorMsgId, isInvalid, !!errorMsg && !noValidation, !!hint, hintId);
26
- useEffect(() => {
27
- if (oldIconRef.current) {
28
- oldIconRef.current.setAttribute("size", "s");
29
- setOldIconColor(oldIconRef.current);
30
- }
31
- }, [oldIconRef, isInvalid, disabled]);
32
- const setOldIconColor = (iconComponent) => {
33
- let color = "var(--IDS-ICON__COLOR)";
34
- let color2 = "var(--IDS-ICON__COLOR-2)";
35
- if (isInvalid) {
36
- color = "var(--IDS-INPUT--INVALID__ICON-FILL)";
37
- color2 = "var(--IDS-INPUT--INVALID__ICON-FILL)";
38
- }
39
- if (disabled) {
40
- color = "var(--IDS-INPUT--DISABLED__ICON-FILL)";
41
- color2 = "var(--IDS-INPUT--DISABLED__ICON-FILL)";
42
- }
43
- iconComponent.setAttribute("color", color);
44
- iconComponent.setAttribute("color2", color2);
45
- };
46
- const renderOldIcon = oldIcon && React__default.isValidElement(oldIcon) ? React__default.cloneElement(oldIcon, { ref: oldIconRef }) : oldIcon;
47
- return (jsxs("div", { className: clsx("ids-input-component", className), children: [jsxs("div", { className: "ids-label-tooltip-wrapper", children: [jsx("label", { className: clsx("ids-label", {
48
- "ids-label--disabled": disabled || readOnly,
49
- "ids-hidden": type === "search" && !showSearchLabel
50
- }), "aria-hidden": "false", htmlFor: fieldId, children: label }), tooltip] }), jsxs("div", { className: "ids-input__wrapper", children: [jsxs("div", { className: clsx("ids-input__inner-wrapper", {
51
- "ids-input--icon": icon,
52
- "ids-input__inner-wrapper--search": type === "search"
53
- }), children: [jsx("input", { ref: combinedRef, id: fieldId, type: type, readOnly: readOnly, className: clsx("ids-input", {
54
- "ids-input--light": light,
55
- "ids-input--invalid": invalid,
56
- "ids-focus-anchor": focusAnchor
57
- }), "aria-invalid": isInvalid, required: required, "aria-required": required, disabled: disabled, "aria-disabled": disabled, ...props }), type === "search" && jsx("span", { className: "ids-input__search-icon" }), icon && jsx("span", { className: `ids-input__icon ids-icon-${icon}` }), oldIcon && jsx("span", { className: "ids-input__icon", children: renderOldIcon })] }), submitButton] }), hint && (jsx("div", { id: hintId, className: "ids-input__hint", children: hint })), isInvalid && errorMsg && (jsx(IDSErrorMessage, { id: errorMsgId, show: true, children: errorMsg }))] }));
25
+ const inputElement = (jsxs("div", { className: clsx("ids-input__wrapper", {
26
+ "ids-input--icon": icon
27
+ }), "data-testid": dataTestId, children: [type === "search" && jsx("span", { className: "ids-input__search-icon" }), jsx("input", { ref: combinedRef, id: fieldId, type: type, readOnly: readOnly, className: clsx("ids-input__input", {
28
+ "ids-input--light": light,
29
+ "ids-input--invalid": invalid,
30
+ "ids-focus-anchor": focusAnchor
31
+ }), "aria-invalid": isInvalid, required: required, "aria-required": required, disabled: disabled, "aria-disabled": disabled, ...props }), icon && type !== "search" && jsx("span", { className: `ids-input__icon ids-icon-${icon}` })] }));
32
+ const labelElement = (jsxs("div", { className: "ids-label-tooltip-wrapper", children: [jsx("label", { className: clsx("ids-label", {
33
+ "ids-label--disabled": disabled || readOnly,
34
+ "ids-hidden": type === "search" && !showSearchLabel
35
+ }), htmlFor: fieldId, children: label }), tooltip] }));
36
+ return (jsxs("div", { className: clsx("ids-input", { "ids-input--search": type === "search" }, className), children: [type === "search" ? (jsxs(Fragment, { children: [jsxs("div", { className: "ids-input__search-wrapper", children: [labelElement, inputElement] }), submitButton] })) : (jsxs(Fragment, { children: [labelElement, inputElement] })), hint && (jsx("div", { id: hintId, className: "ids-input__hint", children: hint })), isInvalid && errorMsg && (jsx(IDSErrorMessage, { id: errorMsgId, show: true, children: errorMsg }))] }));
58
37
  });
59
- IDSInput.displayName = "IDSInput"; // Needed when using forwardRef
38
+ IDSInput.displayName = "IDSInput";
60
39
 
61
40
  export { IDSInput };
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import React, { ReactNode, ChangeEvent } from "react";
2
2
  interface IDSRadioGroupProps extends React.FieldsetHTMLAttributes<HTMLFieldSetElement> {
3
3
  name: string;
4
4
  legend?: string;
@@ -7,7 +7,7 @@ interface IDSRadioGroupProps extends React.FieldsetHTMLAttributes<HTMLFieldSetEl
7
7
  required?: boolean;
8
8
  tooltip?: ReactNode;
9
9
  children?: ReactNode;
10
- onRadioChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
10
+ onRadioChange?: (e: ChangeEvent<HTMLInputElement>) => void;
11
11
  }
12
12
  export declare const IDSRadioGroup: React.FC<IDSRadioGroupProps>;
13
13
  export {};
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
- import React__default, { useRef } from 'react';
3
+ import React, { useRef } from 'react';
4
4
  import { IDSErrorMessage } from '../error-message/error-message.js';
5
5
  import { useElementId } from '../../utils/hooks/useElementId.js';
6
6
  import { useGroupValidity } from '../form-hooks/useGroupValidity.js';
7
7
  import clsx from 'clsx';
8
8
 
9
- const IDSRadioGroup = ({ name = "options", legend = "", errorMsg = "", compact = false, required = false, onRadioChange, tooltip, className, children }) => {
9
+ const IDSRadioGroup = ({ name = "options", legend = "", errorMsg = "", compact = false, required = false, onRadioChange, tooltip, className, children, ...props }) => {
10
10
  const groupRef = useRef(null);
11
11
  const isValid = useGroupValidity(groupRef, "radio");
12
12
  const errorMsgId = useElementId();
13
- const clonedChildren = React__default.Children.map(children, child => {
14
- if (React__default.isValidElement(child) && child.type.displayName === "IDSRadio") {
15
- return React__default.cloneElement(child, {
13
+ const clonedChildren = React.Children.map(children, child => {
14
+ if (React.isValidElement(child) && child.type.displayName === "IDSRadio") {
15
+ return React.cloneElement(child, {
16
16
  key: child.props.id,
17
17
  name,
18
18
  required,
@@ -25,7 +25,7 @@ const IDSRadioGroup = ({ name = "options", legend = "", errorMsg = "", compact =
25
25
  });
26
26
  return (jsxs("fieldset", { ref: groupRef, "aria-required": required, className: clsx("ids-form-group__fieldset", {
27
27
  "ids-form-group__fieldset--compact": compact
28
- }, className), children: [jsxs("legend", { children: [legend, tooltip] }), clonedChildren, !isValid && !!errorMsg && (jsx(IDSErrorMessage, { id: errorMsgId, show: true, children: errorMsg }))] }));
28
+ }, className), ...props, children: [jsxs("legend", { children: [legend, tooltip] }), clonedChildren, !isValid && !!errorMsg && (jsx(IDSErrorMessage, { id: errorMsgId, show: true, children: errorMsg }))] }));
29
29
  };
30
30
 
31
31
  export { IDSRadioGroup };
@@ -1,4 +1,4 @@
1
- import React, { ReactNode, ChangeEvent, InputHTMLAttributes } from "react";
1
+ import { ReactNode, ChangeEvent, InputHTMLAttributes } from "react";
2
2
  export interface IDSRadioProps extends InputHTMLAttributes<HTMLInputElement> {
3
3
  name?: string;
4
4
  id?: string;
@@ -6,7 +6,6 @@ export interface IDSRadioProps extends InputHTMLAttributes<HTMLInputElement> {
6
6
  invalid?: boolean;
7
7
  groupInvalid?: boolean;
8
8
  disabled?: boolean;
9
- noLabel?: boolean;
10
9
  noValidation?: boolean;
11
10
  light?: boolean;
12
11
  compact?: boolean;
@@ -14,5 +13,6 @@ export interface IDSRadioProps extends InputHTMLAttributes<HTMLInputElement> {
14
13
  tooltip?: ReactNode;
15
14
  children?: ReactNode;
16
15
  onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
16
+ dataTestId?: string;
17
17
  }
18
- export declare const IDSRadio: React.ForwardRefExoticComponent<IDSRadioProps & React.RefAttributes<HTMLInputElement>>;
18
+ export declare const IDSRadio: import("react").ForwardRefExoticComponent<IDSRadioProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -6,7 +6,7 @@ import { useInputValidity } from '../form-hooks/useInputValidity.js';
6
6
  import { useAriaDescribedBy } from '../form-hooks/useAriaDescribedBy.js';
7
7
  import clsx from 'clsx';
8
8
 
9
- const IDSRadio = forwardRef(({ name = "", groupErrorMsgId = "", invalid = false, groupInvalid = false, disabled = false, noValidation = false, light = false, compact = false, focusAnchor = false, tooltip, id, children, className, onChange, ...props }, ref) => {
9
+ const IDSRadio = forwardRef(({ name = "", groupErrorMsgId = "", invalid = false, groupInvalid = false, disabled = false, noValidation = false, light = false, compact = false, focusAnchor = false, dataTestId = "", tooltip, id, children, className, onChange, ...props }, ref) => {
10
10
  const fieldId = useElementId(id);
11
11
  const radioRef = useRef(null);
12
12
  useImperativeHandle(ref, () => radioRef.current);
@@ -15,7 +15,7 @@ const IDSRadio = forwardRef(({ name = "", groupErrorMsgId = "", invalid = false,
15
15
  useAriaDescribedBy(radioRef, groupErrorMsgId, isInvalid, !!groupErrorMsgId);
16
16
  return (jsxs("div", { className: clsx("ids-radio", {
17
17
  "ids-radio--compact": compact
18
- }, className), children: [jsx("input", { id: fieldId, ref: radioRef, type: "radio", className: clsx("ids-radio__input", {
18
+ }, className), "data-testid": dataTestId, children: [jsx("input", { id: fieldId, ref: radioRef, type: "radio", className: clsx("ids-radio__input", {
19
19
  "ids-input--light": light,
20
20
  "ids-focus-anchor": focusAnchor
21
21
  }), disabled: disabled, "aria-disabled": disabled, "aria-invalid": isInvalid, name: name, onChange: onChange, ...props }), jsxs("div", { className: clsx("ids-label-tooltip-wrapper", {
@@ -1,9 +1,9 @@
1
1
  import React, { ReactNode, InputHTMLAttributes } from "react";
2
- interface IDSRadioButtonGroupProps extends InputHTMLAttributes<HTMLInputElement> {
2
+ interface IDSRadioButtonGroupProps extends InputHTMLAttributes<HTMLFieldSetElement> {
3
3
  name: string;
4
4
  legend?: string;
5
5
  children?: ReactNode;
6
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
6
+ onRadioChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
7
7
  }
8
8
  export declare const IDSRadioButtonGroup: React.FC<IDSRadioButtonGroupProps>;
9
9
  export {};
@@ -1,22 +1,22 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
- import React__default, { useRef } from 'react';
3
+ import React, { useRef } from 'react';
4
4
  import clsx from 'clsx';
5
5
 
6
- const IDSRadioButtonGroup = ({ name = "options", legend = "", onChange, className, children }) => {
6
+ const IDSRadioButtonGroup = ({ name = "options", legend = "", onRadioChange, className, children, ...props }) => {
7
7
  const groupRef = useRef(null);
8
- const clonedChildren = React__default.Children.map(children, child => {
9
- if (React__default.isValidElement(child) && child.type.displayName === "IDSRadioButton") {
10
- return React__default.cloneElement(child, {
8
+ const clonedChildren = React.Children.map(children, child => {
9
+ if (React.isValidElement(child) && child.type.displayName === "IDSRadioButton") {
10
+ return React.cloneElement(child, {
11
11
  key: child.props.id,
12
12
  icon: child.props.icon,
13
13
  name,
14
- onChange
14
+ onChange: onRadioChange
15
15
  });
16
16
  }
17
17
  return child;
18
18
  });
19
- return (jsxs("fieldset", { ref: groupRef, className: clsx("ids-form-group__fieldset", className), children: [jsx("legend", { children: legend && legend }), clonedChildren] }));
19
+ return (jsxs("fieldset", { ref: groupRef, className: clsx("ids-form-group__fieldset", className), ...props, children: [jsx("legend", { children: legend && legend }), clonedChildren] }));
20
20
  };
21
21
 
22
22
  export { IDSRadioButtonGroup };
@@ -1,10 +1,11 @@
1
- import React, { ReactNode, InputHTMLAttributes } from "react";
1
+ import { ChangeEvent, ReactNode, InputHTMLAttributes } from "react";
2
2
  export interface IDSRadioButtonProps extends InputHTMLAttributes<HTMLInputElement> {
3
3
  name?: string;
4
4
  id?: string;
5
5
  focusAnchor?: boolean;
6
6
  icon: string;
7
7
  children?: ReactNode;
8
- onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
8
+ dataTestId?: string;
9
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
9
10
  }
10
- export declare const IDSRadioButton: React.ForwardRefExoticComponent<IDSRadioButtonProps & React.RefAttributes<HTMLInputElement>>;
11
+ export declare const IDSRadioButton: import("react").ForwardRefExoticComponent<IDSRadioButtonProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -4,11 +4,11 @@ import { forwardRef, useRef, useImperativeHandle } from 'react';
4
4
  import { useElementId } from '../../utils/hooks/useElementId.js';
5
5
  import clsx from 'clsx';
6
6
 
7
- const IDSRadioButton = forwardRef(({ name = "", icon = "user", focusAnchor = false, id, children, onChange, className, ...props }, ref) => {
7
+ const IDSRadioButton = forwardRef(({ name = "", icon = "user", focusAnchor = false, id, children, onChange, dataTestId = "", className, ...props }, ref) => {
8
8
  const fieldId = useElementId(id);
9
9
  const radioButtonRef = useRef(null);
10
10
  useImperativeHandle(ref, () => radioButtonRef.current);
11
- return (jsxs("div", { className: clsx("ids-radio-button", className), children: [jsx("input", { id: fieldId, ref: radioButtonRef, type: "radio", className: clsx("ids-radio-button__input", {
11
+ return (jsxs("div", { className: clsx("ids-radio-button", className), "data-testid": dataTestId, children: [jsx("input", { id: fieldId, ref: radioButtonRef, type: "radio", className: clsx("ids-radio-button__input", {
12
12
  "ids-focus-anchor": focusAnchor
13
13
  }), name: name, onChange: onChange, ...props }), jsx("label", { htmlFor: fieldId, className: `ids-radio-button__label ids-icon-${icon}`, children: children })] }));
14
14
  });
@@ -10,6 +10,7 @@ interface IDSRangeProps extends InputHTMLAttributes<HTMLInputElement> {
10
10
  step?: number;
11
11
  disabled?: boolean;
12
12
  focusAnchor?: boolean;
13
+ dataTestId?: string;
13
14
  tooltip?: ReactNode;
14
15
  onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
15
16
  }
@@ -5,7 +5,7 @@ import { useElementId } from '../../utils/hooks/useElementId.js';
5
5
  import '@inera/ids-design/components/form/range/range.css';
6
6
  import clsx from 'clsx';
7
7
 
8
- const IDSRange = forwardRef(({ label = "", value = 0, showTicks = false, interval = 0, min = 0, max = 0, step = 0, disabled = false, focusAnchor = false, tooltip, id, onChange, className, ...props }, ref) => {
8
+ const IDSRange = forwardRef(({ label = "", value = 0, showTicks = false, interval = 0, min = 0, max = 0, step = 0, disabled = false, focusAnchor = false, dataTestId = "", tooltip, id, onChange, className, ...props }, ref) => {
9
9
  const [internalValue, setInternalValue] = useState(value);
10
10
  const [ticks, setTicks] = useState([]);
11
11
  const fieldId = useElementId(id);
@@ -27,7 +27,7 @@ const IDSRange = forwardRef(({ label = "", value = 0, showTicks = false, interva
27
27
  onChange(ev);
28
28
  }
29
29
  };
30
- return (jsxs("div", { className: clsx("ids-range", className), children: [jsxs("div", { className: "ids-label-tooltip-wrapper", children: [jsx("label", { htmlFor: fieldId, className: clsx("ids-label", { "ids-label--disabled": disabled }), children: label }), tooltip] }), jsx("input", { id: fieldId, ref: rangeRef, type: "range", className: clsx("ids-range__input", {
30
+ return (jsxs("div", { className: clsx("ids-range", className), "data-testid": dataTestId, children: [jsxs("div", { className: "ids-label-tooltip-wrapper", children: [jsx("label", { htmlFor: fieldId, className: clsx("ids-label", { "ids-label--disabled": disabled }), children: label }), tooltip] }), jsx("input", { id: fieldId, ref: rangeRef, type: "range", className: clsx("ids-range__input", {
31
31
  "ids-focus-anchor": focusAnchor
32
32
  }), min: min, "aria-valuemin": min, max: max, "aria-valuemax": max, step: step, value: internalValue, "aria-valuenow": internalValue, disabled: disabled, style: { backgroundSize: ((internalValue - min) * 100) / (max - min) + "% 100%" }, onChange: handleOnChange, ...props }), showTicks && (jsx("div", { className: clsx("ids-range-ticks", { "ids-range-ticks--disabled": disabled }), children: ticks.map(tick => (jsx("div", { className: "ids-range-tick", children: tick }, tick))) }))] }));
33
33
  });
@@ -1,7 +1,6 @@
1
1
  import React, { ReactNode } from "react";
2
2
  interface IDSSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
3
3
  label?: string;
4
- srOf?: string;
5
4
  errorMsg?: string;
6
5
  disabled?: boolean;
7
6
  required?: boolean;
@@ -11,6 +10,7 @@ interface IDSSelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
11
10
  noValidation?: boolean;
12
11
  tooltip?: ReactNode;
13
12
  children?: ReactNode;
13
+ dataTestId?: string;
14
14
  }
15
15
  export declare const IDSSelect: React.ForwardRefExoticComponent<IDSSelectProps & React.RefAttributes<HTMLSelectElement>>;
16
16
  export {};
@@ -7,7 +7,7 @@ import { useInputValidity } from '../form-hooks/useInputValidity.js';
7
7
  import { useAriaDescribedBy } from '../form-hooks/useAriaDescribedBy.js';
8
8
  import clsx from 'clsx';
9
9
 
10
- const IDSSelect = forwardRef(({ label = "", srOf = "av", errorMsg = "", disabled = false, required = false, invalid = false, light = false, noValidation = false, focusAnchor = false, tooltip, id, children, className, ...props }, ref) => {
10
+ const IDSSelect = forwardRef(({ label = "", errorMsg = "", disabled = false, required = false, invalid = false, light = false, dataTestId = "", noValidation = false, focusAnchor = false, tooltip, id, children, className, ...props }, ref) => {
11
11
  const fieldId = useElementId(id);
12
12
  const errorMsgId = useElementId();
13
13
  const selectRef = useRef(null);
@@ -15,10 +15,12 @@ const IDSSelect = forwardRef(({ label = "", srOf = "av", errorMsg = "", disabled
15
15
  const hasValidValue = useInputValidity(selectRef);
16
16
  const isInvalid = (invalid || !hasValidValue) && !noValidation;
17
17
  useAriaDescribedBy(selectRef, errorMsgId, isInvalid, !!errorMsg);
18
- return (jsxs("div", { className: clsx("ids-select-component", className), children: [jsxs("div", { className: "ids-label-tooltip-wrapper", children: [jsx("label", { htmlFor: fieldId, className: "ids-label", children: label }), tooltip] }), jsx("div", { className: "ids-select-wrapper", children: jsx("select", { id: fieldId, ref: selectRef, className: clsx("ids-select", {
18
+ return (jsxs("div", { className: clsx("ids-select", className), "data-testid": dataTestId, children: [jsxs("div", { className: "ids-label-tooltip-wrapper", children: [jsx("label", { htmlFor: fieldId, className: clsx("ids-label", {
19
+ "ids-label--disabled": disabled
20
+ }), children: label }), tooltip] }), jsx("div", { className: "ids-select__wrapper", children: jsx("select", { id: fieldId, ref: selectRef, className: clsx("ids-select__select", {
19
21
  "ids-input--light": light,
20
22
  "ids-focus-anchor": focusAnchor
21
- }), "aria-invalid": isInvalid, required: required, disabled: disabled, ...props, children: children }) }), isInvalid && errorMsg && (jsx(IDSErrorMessage, { id: errorMsgId, show: true, children: errorMsg }))] }));
23
+ }), "aria-invalid": isInvalid, "aria-disabled": disabled, required: required, disabled: disabled, ...props, children: children }) }), isInvalid && errorMsg && (jsx(IDSErrorMessage, { id: errorMsgId, show: true, children: errorMsg }))] }));
22
24
  });
23
25
  IDSSelect.displayName = "IDSSelect";
24
26
 
@@ -9,11 +9,14 @@ interface IDSSelectMultipleProps extends React.InputHTMLAttributes<HTMLInputElem
9
9
  expanded?: boolean;
10
10
  errorMsg?: string;
11
11
  invalid?: boolean;
12
+ disabled?: boolean;
13
+ ariaDisabled?: boolean;
12
14
  light?: boolean;
13
15
  focusAnchor?: boolean;
14
16
  noValidation?: boolean;
15
17
  tooltip?: ReactNode;
16
18
  children?: ReactNode;
19
+ dataTestId?: string;
17
20
  }
18
21
  export declare const IDSSelectMultiple: React.FC<IDSSelectMultipleProps>;
19
22
  export {};
@@ -7,7 +7,7 @@ import { useAriaDescribedBy } from '../form-hooks/useAriaDescribedBy.js';
7
7
  import '@inera/ids-design/components/form/select-multiple/select-multiple.css';
8
8
  import clsx from 'clsx';
9
9
 
10
- const IDSSelectMultiple = ({ label = "", selectedLabel = "vald", selectedLabelPlural = "valda", placeholder = "", maxHeight = "", expanded = false, errorMsg = "", invalid = false, light = false, noValidation = false, focusAnchor = false, tooltip, id, children, className, ...props }) => {
10
+ const IDSSelectMultiple = ({ label = "", selectedLabel = "vald", selectedLabelPlural = "valda", placeholder = "", maxHeight = "", dataTestId = "", expanded = false, errorMsg = "", invalid = false, disabled = false, ariaDisabled = false, light = false, noValidation = false, focusAnchor = false, tooltip, id, children, className, ...props }) => {
11
11
  const [checkboxListInvalid, setCheckboxListInvalid] = useState(false);
12
12
  const [checkedBoxesCount, setCheckedBoxesCount] = useState(0);
13
13
  const [value, setValue] = useState(placeholder);
@@ -27,11 +27,16 @@ const IDSSelectMultiple = ({ label = "", selectedLabel = "vald", selectedLabelPl
27
27
  }
28
28
  setValue(inputValue);
29
29
  }, [checkedBoxesCount]);
30
+ useEffect(() => {
31
+ if (checkboxListInvalid) {
32
+ setIsExpanded(true);
33
+ }
34
+ }, [checkboxListInvalid]);
30
35
  useEffect(() => {
31
36
  const handleInteractionOutside = (event) => {
32
37
  const target = event.target;
33
38
  if (selectMultipleRef.current) {
34
- const root = selectMultipleRef.current.closest(".ids-select-multiple-component");
39
+ const root = selectMultipleRef.current.closest(".ids-select-multiple");
35
40
  if (root && !root.contains(target)) {
36
41
  setIsExpanded(false);
37
42
  }
@@ -51,12 +56,14 @@ const IDSSelectMultiple = ({ label = "", selectedLabel = "vald", selectedLabelPl
51
56
  document.removeEventListener("keydown", handleKeyDown);
52
57
  };
53
58
  }, [isExpanded]);
54
- return (jsxs("div", { className: clsx("ids-select-multiple-component", className), children: [jsxs("div", { className: "ids-label-tooltip-wrapper", children: [jsx("label", { id: labelId, htmlFor: inputId, className: "ids-label", children: label }), tooltip] }), jsx("div", { className: "ids-select-multiple-wrapper", children: jsx("input", { id: inputId, "aria-labelledby": labelId, ref: selectMultipleRef, type: "button", className: clsx("ids-select-multiple__select", {
59
+ return (jsxs("div", { className: clsx("ids-select-multiple", className), "data-testid": dataTestId, children: [jsxs("div", { className: "ids-label-tooltip-wrapper", children: [jsx("label", { id: labelId, htmlFor: inputId, className: clsx("ids-label", {
60
+ "ids-label--disabled": disabled || ariaDisabled
61
+ }), children: label }), tooltip] }), jsx("div", { className: "ids-select-multiple__select-wrapper", children: jsx("input", { id: inputId, "aria-labelledby": labelId, ref: selectMultipleRef, type: "button", className: clsx("ids-select-multiple__select", {
55
62
  "ids-input--light": light,
56
63
  "ids-focus-anchor": focusAnchor
57
- }), "aria-expanded": isExpanded, "aria-invalid": invalid || checkboxListInvalid, placeholder: placeholder, value: value, onClick: () => setIsExpanded(!isExpanded), ...props }) }), jsx("div", { className: "ids-select-multiple__dropdown__wrapper", children: jsx("div", { className: clsx("ids-select-multiple__dropdown", {
58
- "ids-select-multiple__dropdown--show": isExpanded
59
- }), children: jsx("div", { className: "ids-select-multiple__dropdown__inner", style: { maxHeight: maxHeight }, children: jsx(IDSCheckboxGroup, { block: true, noValidation: noValidation, errorMsg: errorMsg, setCheckedBoxesCount: setCheckedBoxesCount, onValidityChange: (isValid) => {
64
+ }), "aria-expanded": isExpanded, disabled: disabled, "aria-disabled": ariaDisabled, "aria-invalid": invalid || checkboxListInvalid, placeholder: placeholder, value: value, onClick: () => setIsExpanded(!isExpanded), ...props }) }), jsx("div", { className: "ids-select-multiple__dropdown-wrapper", children: jsx("div", { className: clsx("ids-select-multiple__dropdown", {
65
+ "ids-select-multiple__dropdown--expanded": isExpanded
66
+ }), children: jsx("div", { className: "ids-select-multiple__dropdown-scroll-area", style: { maxHeight: maxHeight }, children: jsx(IDSCheckboxGroup, { block: true, noValidation: noValidation, errorMsg: errorMsg, setCheckedBoxesCount: setCheckedBoxesCount, onValidityChange: (isValid) => {
60
67
  if (!isValid) {
61
68
  setIsExpanded(true);
62
69
  }
@@ -14,6 +14,7 @@ interface IDSTextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
14
14
  focusAnchor?: boolean;
15
15
  readOnly?: boolean;
16
16
  tooltip?: ReactNode;
17
+ dataTestId?: string;
17
18
  }
18
19
  export declare const IDSTextarea: import("react").ForwardRefExoticComponent<IDSTextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
19
20
  export {};