@inera/ids-react 9.3.0 → 9.4.1

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 (309) hide show
  1. package/components/accordion/accordion-base.d.ts +1 -1
  2. package/components/accordion/accordion.d.ts +1 -1
  3. package/components/alert/alert-base.d.ts +1 -1
  4. package/components/alert/alert.d.ts +1 -1
  5. package/components/badge/badge.js +1 -1
  6. package/components/breadcrumbs/breadcrumbs.d.ts +1 -1
  7. package/components/breadcrumbs/breadcrumbs.js +4 -5
  8. package/components/button/button-group.d.ts +1 -1
  9. package/components/button/button.js +6 -1
  10. package/components/button/control-button.js +2 -1
  11. package/components/card/card.d.ts +1 -1
  12. package/components/carousel/carousel-item.d.ts +1 -1
  13. package/components/carousel/carousel.d.ts +1 -1
  14. package/components/carousel/carousel.js +7 -5
  15. package/components/date-label/date-label.d.ts +3 -2
  16. package/components/date-label/date-label.js +4 -2
  17. package/components/dialog/dialog.d.ts +1 -1
  18. package/components/dialog/dialog.js +1 -1
  19. package/components/district-selector/district-selector.d.ts +10 -0
  20. package/components/district-selector/district-selector.js +11 -0
  21. package/components/dropdown/dropdown-base.d.ts +2 -2
  22. package/components/dropdown/dropdown-base.js +1 -1
  23. package/components/dropdown/dropdown.d.ts +2 -1
  24. package/components/dropdown/dropdown.js +2 -0
  25. package/components/footer-1177/footer-1177-columns.d.ts +10 -0
  26. package/components/footer-1177/footer-1177-columns.js +18 -0
  27. package/components/footer-1177/footer-1177-headline.d.ts +10 -0
  28. package/components/footer-1177/footer-1177-headline.js +11 -0
  29. package/components/footer-1177/footer-1177.d.ts +1 -1
  30. package/components/footer-1177/footer-1177.js +4 -20
  31. package/components/footer-1177-admin/footer-1177-admin-columns.d.ts +10 -0
  32. package/components/footer-1177-admin/footer-1177-admin-columns.js +18 -0
  33. package/components/footer-1177-admin/footer-1177-admin-headline.d.ts +9 -0
  34. package/components/footer-1177-admin/footer-1177-admin-headline.js +11 -0
  35. package/components/footer-1177-admin/footer-1177-admin.d.ts +1 -1
  36. package/components/footer-1177-admin/footer-1177-admin.js +4 -20
  37. package/components/footer-1177-pro/footer-1177-pro-columns.d.ts +13 -0
  38. package/components/footer-1177-pro/footer-1177-pro-columns.js +18 -0
  39. package/components/footer-1177-pro/footer-1177-pro-headline.d.ts +9 -0
  40. package/components/footer-1177-pro/footer-1177-pro-headline.js +11 -0
  41. package/components/footer-1177-pro/footer-1177-pro.d.ts +1 -1
  42. package/components/footer-1177-pro/footer-1177-pro.js +4 -20
  43. package/components/footer-inera/footer-inera-columns.d.ts +10 -0
  44. package/components/footer-inera/footer-inera-columns.js +18 -0
  45. package/components/footer-inera/footer-inera-headline.d.ts +9 -0
  46. package/components/footer-inera/footer-inera-headline.js +11 -0
  47. package/components/footer-inera/footer-inera.d.ts +1 -1
  48. package/components/footer-inera/footer-inera.js +4 -20
  49. package/components/footer-inera-admin/footer-inera-admin-columns.d.ts +10 -0
  50. package/components/footer-inera-admin/footer-inera-admin-columns.js +18 -0
  51. package/components/footer-inera-admin/footer-inera-admin-headline.d.ts +9 -0
  52. package/components/footer-inera-admin/footer-inera-admin-headline.js +11 -0
  53. package/components/footer-inera-admin/footer-inera-admin.d.ts +1 -1
  54. package/components/footer-inera-admin/footer-inera-admin.js +4 -20
  55. package/components/footer-inera-general/footer-inera-general-columns.d.ts +10 -0
  56. package/components/footer-inera-general/footer-inera-general-columns.js +18 -0
  57. package/components/footer-inera-general/footer-inera-general-headline.d.ts +9 -0
  58. package/components/footer-inera-general/footer-inera-general-headline.js +11 -0
  59. package/components/footer-inera-general/footer-inera-general.d.ts +1 -1
  60. package/components/footer-inera-general/footer-inera-general.js +4 -20
  61. package/components/form/checkbox/checkbox-group-base.d.ts +1 -1
  62. package/components/form/checkbox/checkbox-group.d.ts +2 -2
  63. package/components/form/datepicker/datepicker.d.ts +1 -1
  64. package/components/form/datepicker/datepicker.js +1 -1
  65. package/components/form/error-message/error-message.d.ts +1 -1
  66. package/components/form/form-hooks/useAriaDescribedBy.js +1 -4
  67. package/components/form/input/input-base.d.ts +1 -1
  68. package/components/form/input/input-base.js +1 -1
  69. package/components/form/radio/radio-base.d.ts +1 -1
  70. package/components/form/radio/radio-group-base.d.ts +1 -1
  71. package/components/form/radio/radio-group.d.ts +2 -2
  72. package/components/form/radio-button/radio-button-group-base.d.ts +1 -1
  73. package/components/form/radio-button/radio-button-group.d.ts +2 -1
  74. package/components/form/range/range-base.d.ts +1 -1
  75. package/components/form/select/select-base.d.ts +1 -1
  76. package/components/form/select-multiple/select-multiple-base.d.ts +2 -2
  77. package/components/form/select-multiple/select-multiple-base.js +2 -2
  78. package/components/form/select-multiple/select-multiple.d.ts +2 -2
  79. package/components/form/select-multiple/select-multiple.js +1 -1
  80. package/components/form/spinner/spinner.d.ts +1 -1
  81. package/components/form/textarea/textarea-base.d.ts +1 -1
  82. package/components/form/time/time-base.d.ts +1 -1
  83. package/components/global-alert/global-alert-base.d.ts +1 -1
  84. package/components/global-alert/global-alert.d.ts +1 -1
  85. package/components/header-1177/header-1177-avatar-base.d.ts +1 -1
  86. package/components/header-1177/header-1177-avatar.d.ts +1 -1
  87. package/components/header-1177/header-1177-base.d.ts +2 -2
  88. package/components/header-1177/header-1177-base.js +3 -5
  89. package/components/header-1177/header-1177-item-base.d.ts +1 -1
  90. package/components/header-1177/header-1177-item-base.js +1 -2
  91. package/components/header-1177/header-1177-item.d.ts +1 -1
  92. package/components/header-1177/header-1177-logo.d.ts +12 -0
  93. package/components/header-1177/header-1177-logo.js +8 -0
  94. package/components/header-1177/header-1177-menu-mobile-base.d.ts +1 -1
  95. package/components/header-1177/header-1177-menu-mobile.d.ts +1 -1
  96. package/components/header-1177/header-1177-nav-base.d.ts +2 -4
  97. package/components/header-1177/header-1177-nav-base.js +3 -3
  98. package/components/header-1177/header-1177-nav-item-base.d.ts +1 -1
  99. package/components/header-1177/header-1177-nav-item-base.js +3 -12
  100. package/components/header-1177/header-1177-nav-item-link.d.ts +10 -0
  101. package/components/header-1177/header-1177-nav-item-link.js +19 -0
  102. package/components/header-1177/header-1177-nav-item-mobile-base.d.ts +1 -1
  103. package/components/header-1177/header-1177-nav-item-mobile.d.ts +1 -1
  104. package/components/header-1177/header-1177-nav-item.d.ts +1 -1
  105. package/components/header-1177/header-1177-nav.d.ts +2 -4
  106. package/components/header-1177/header-1177-nav.js +2 -2
  107. package/components/header-1177/header-1177-region-picker-base.d.ts +2 -2
  108. package/components/header-1177/header-1177-region-picker-mobile-base.d.ts +2 -2
  109. package/components/header-1177/header-1177-region-picker-mobile.d.ts +1 -1
  110. package/components/header-1177/header-1177-region-picker.d.ts +1 -1
  111. package/components/header-1177/header-1177.d.ts +2 -1
  112. package/components/header-1177/header-1177.js +2 -2
  113. package/components/header-1177-admin/header-1177-admin-avatar-base.d.ts +1 -1
  114. package/components/header-1177-admin/header-1177-admin-avatar-mobile-base.d.ts +1 -1
  115. package/components/header-1177-admin/header-1177-admin-avatar-mobile.d.ts +1 -1
  116. package/components/header-1177-admin/header-1177-admin-avatar.d.ts +1 -1
  117. package/components/header-1177-admin/header-1177-admin-base.d.ts +2 -2
  118. package/components/header-1177-admin/header-1177-admin-base.js +3 -5
  119. package/components/header-1177-admin/header-1177-admin-item-base.d.ts +1 -1
  120. package/components/header-1177-admin/header-1177-admin-item-base.js +1 -2
  121. package/components/header-1177-admin/header-1177-admin-item.d.ts +1 -1
  122. package/components/header-1177-admin/header-1177-admin-logo.d.ts +12 -0
  123. package/components/header-1177-admin/header-1177-admin-logo.js +8 -0
  124. package/components/header-1177-admin/header-1177-admin-menu-mobile-base.d.ts +1 -1
  125. package/components/header-1177-admin/header-1177-admin-menu-mobile.d.ts +1 -1
  126. package/components/header-1177-admin/header-1177-admin-nav-base.d.ts +2 -1
  127. package/components/header-1177-admin/header-1177-admin-nav-base.js +4 -3
  128. package/components/header-1177-admin/header-1177-admin-nav-item-base.d.ts +1 -1
  129. package/components/header-1177-admin/header-1177-admin-nav-item-base.js +3 -12
  130. package/components/header-1177-admin/header-1177-admin-nav-item-link.d.ts +10 -0
  131. package/components/header-1177-admin/header-1177-admin-nav-item-link.js +19 -0
  132. package/components/header-1177-admin/header-1177-admin-nav-item-mobile-base.d.ts +1 -1
  133. package/components/header-1177-admin/header-1177-admin-nav-item-mobile.d.ts +1 -1
  134. package/components/header-1177-admin/header-1177-admin-nav-item.d.ts +1 -1
  135. package/components/header-1177-admin/header-1177-admin-nav.d.ts +2 -1
  136. package/components/header-1177-admin/header-1177-admin-nav.js +2 -2
  137. package/components/header-1177-admin/header-1177-admin.d.ts +2 -1
  138. package/components/header-1177-admin/header-1177-admin.js +2 -2
  139. package/components/header-1177-pro/header-1177-pro-avatar-base.d.ts +1 -1
  140. package/components/header-1177-pro/header-1177-pro-avatar-mobile-base.d.ts +1 -1
  141. package/components/header-1177-pro/header-1177-pro-avatar-mobile-base.js +0 -1
  142. package/components/header-1177-pro/header-1177-pro-avatar-mobile.d.ts +1 -1
  143. package/components/header-1177-pro/header-1177-pro-avatar.d.ts +1 -1
  144. package/components/header-1177-pro/header-1177-pro-base.d.ts +1 -1
  145. package/components/header-1177-pro/header-1177-pro-base.js +2 -1
  146. package/components/header-1177-pro/header-1177-pro-item-base.d.ts +1 -1
  147. package/components/header-1177-pro/header-1177-pro-item-base.js +1 -2
  148. package/components/header-1177-pro/header-1177-pro-item.d.ts +1 -1
  149. package/components/header-1177-pro/header-1177-pro-logo.d.ts +12 -0
  150. package/components/header-1177-pro/header-1177-pro-logo.js +8 -0
  151. package/components/header-1177-pro/header-1177-pro-menu-mobile-base.d.ts +1 -1
  152. package/components/header-1177-pro/header-1177-pro-menu-mobile.d.ts +1 -1
  153. package/components/header-1177-pro/header-1177-pro-nav-base.d.ts +2 -1
  154. package/components/header-1177-pro/header-1177-pro-nav-base.js +3 -2
  155. package/components/header-1177-pro/header-1177-pro-nav-item-base.d.ts +1 -1
  156. package/components/header-1177-pro/header-1177-pro-nav-item-base.js +3 -12
  157. package/components/header-1177-pro/header-1177-pro-nav-item-link.d.ts +10 -0
  158. package/components/header-1177-pro/header-1177-pro-nav-item-link.js +19 -0
  159. package/components/header-1177-pro/header-1177-pro-nav-item-mobile-base.d.ts +1 -1
  160. package/components/header-1177-pro/header-1177-pro-nav-item-mobile.d.ts +1 -1
  161. package/components/header-1177-pro/header-1177-pro-nav-item.d.ts +1 -1
  162. package/components/header-1177-pro/header-1177-pro-nav.d.ts +2 -1
  163. package/components/header-1177-pro/header-1177-pro-nav.js +2 -2
  164. package/components/header-1177-pro/header-1177-pro-region-picker-base.d.ts +1 -1
  165. package/components/header-1177-pro/header-1177-pro-region-picker-mobile-base.d.ts +1 -1
  166. package/components/header-1177-pro/header-1177-pro-region-picker-mobile.d.ts +1 -1
  167. package/components/header-1177-pro/header-1177-pro-region-picker.d.ts +1 -1
  168. package/components/header-1177-pro/header-1177-pro.d.ts +1 -1
  169. package/components/header-inera/header-inera-base.d.ts +2 -2
  170. package/components/header-inera/header-inera-base.js +3 -2
  171. package/components/header-inera/header-inera-item-base.d.ts +1 -1
  172. package/components/header-inera/header-inera-item-base.js +1 -2
  173. package/components/header-inera/header-inera-item.d.ts +1 -1
  174. package/components/header-inera/header-inera-logo.d.ts +12 -0
  175. package/components/header-inera/header-inera-logo.js +8 -0
  176. package/components/header-inera/header-inera-menu-mobile-base.d.ts +1 -1
  177. package/components/header-inera/header-inera-menu-mobile.d.ts +1 -1
  178. package/components/header-inera/header-inera-nav-base.d.ts +1 -1
  179. package/components/header-inera/header-inera-nav-base.js +1 -1
  180. package/components/header-inera/header-inera-nav-item-base.d.ts +1 -1
  181. package/components/header-inera/header-inera-nav-item-base.js +4 -13
  182. package/components/header-inera/header-inera-nav-item-link.d.ts +10 -0
  183. package/components/header-inera/header-inera-nav-item-link.js +19 -0
  184. package/components/header-inera/header-inera-nav-item.d.ts +1 -1
  185. package/components/header-inera/header-inera-nav.d.ts +1 -1
  186. package/components/header-inera/header-inera.d.ts +2 -1
  187. package/components/header-inera/header-inera.js +2 -2
  188. package/components/header-inera-admin/header-inera-admin-avatar-base.d.ts +1 -1
  189. package/components/header-inera-admin/header-inera-admin-avatar-mobile-base.d.ts +1 -1
  190. package/components/header-inera-admin/header-inera-admin-avatar-mobile.d.ts +1 -1
  191. package/components/header-inera-admin/header-inera-admin-avatar.d.ts +1 -1
  192. package/components/header-inera-admin/header-inera-admin-base.d.ts +1 -1
  193. package/components/header-inera-admin/header-inera-admin-base.js +1 -10
  194. package/components/header-inera-admin/header-inera-admin-item-base.d.ts +1 -1
  195. package/components/header-inera-admin/header-inera-admin-item-base.js +2 -3
  196. package/components/header-inera-admin/header-inera-admin-item.d.ts +1 -1
  197. package/components/header-inera-admin/header-inera-admin-menu-mobile-base.d.ts +1 -1
  198. package/components/header-inera-admin/header-inera-admin-menu-mobile.d.ts +1 -1
  199. package/components/header-inera-admin/header-inera-admin-nav-base.d.ts +2 -1
  200. package/components/header-inera-admin/header-inera-admin-nav-base.js +4 -3
  201. package/components/header-inera-admin/header-inera-admin-nav-item-base.d.ts +1 -1
  202. package/components/header-inera-admin/header-inera-admin-nav-item-base.js +3 -12
  203. package/components/header-inera-admin/header-inera-admin-nav-item-link.d.ts +10 -0
  204. package/components/header-inera-admin/header-inera-admin-nav-item-link.js +19 -0
  205. package/components/header-inera-admin/header-inera-admin-nav-item-mobile-base.d.ts +1 -1
  206. package/components/header-inera-admin/header-inera-admin-nav-item-mobile.d.ts +1 -1
  207. package/components/header-inera-admin/header-inera-admin-nav-item.d.ts +1 -1
  208. package/components/header-inera-admin/header-inera-admin-nav.d.ts +2 -1
  209. package/components/header-inera-admin/header-inera-admin-nav.js +2 -2
  210. package/components/header-inera-admin/header-inera-admin.d.ts +1 -1
  211. package/components/header-inera-general/header-inera-general-avatar-base.d.ts +18 -0
  212. package/components/header-inera-general/header-inera-general-avatar-base.js +24 -0
  213. package/components/header-inera-general/header-inera-general-avatar-mobile-base.d.ts +17 -0
  214. package/components/header-inera-general/header-inera-general-avatar-mobile-base.js +24 -0
  215. package/components/header-inera-general/header-inera-general-avatar-mobile.d.ts +12 -0
  216. package/components/header-inera-general/header-inera-general-avatar-mobile.js +28 -0
  217. package/components/header-inera-general/header-inera-general-avatar.d.ts +12 -0
  218. package/components/header-inera-general/header-inera-general-avatar.js +29 -0
  219. package/components/header-inera-general/header-inera-general-base.d.ts +2 -1
  220. package/components/header-inera-general/header-inera-general-base.js +2 -2
  221. package/components/header-inera-general/header-inera-general-item-base.d.ts +1 -1
  222. package/components/header-inera-general/header-inera-general-item-base.js +2 -2
  223. package/components/header-inera-general/header-inera-general-item.d.ts +1 -1
  224. package/components/header-inera-general/header-inera-general-item.js +1 -1
  225. package/components/header-inera-general/header-inera-general-menu-mobile-base.d.ts +1 -1
  226. package/components/header-inera-general/header-inera-general-menu-mobile.d.ts +1 -1
  227. package/components/header-inera-general/header-inera-general-nav-base.d.ts +1 -1
  228. package/components/header-inera-general/header-inera-general-nav-base.js +1 -1
  229. package/components/header-inera-general/header-inera-general-nav-item-base.d.ts +1 -1
  230. package/components/header-inera-general/header-inera-general-nav-item-base.js +4 -13
  231. package/components/header-inera-general/header-inera-general-nav-item-link.d.ts +10 -0
  232. package/components/header-inera-general/header-inera-general-nav-item-link.js +19 -0
  233. package/components/header-inera-general/header-inera-general-nav-item-mobile-base.d.ts +10 -0
  234. package/components/header-inera-general/header-inera-general-nav-item-mobile-base.js +11 -0
  235. package/components/header-inera-general/header-inera-general-nav-item-mobile.d.ts +10 -0
  236. package/components/header-inera-general/header-inera-general-nav-item-mobile.js +12 -0
  237. package/components/header-inera-general/header-inera-general-nav-item.d.ts +1 -1
  238. package/components/header-inera-general/header-inera-general-nav-mobile.d.ts +10 -0
  239. package/components/header-inera-general/header-inera-general-nav-mobile.js +8 -0
  240. package/components/header-inera-general/header-inera-general-nav.d.ts +1 -1
  241. package/components/header-inera-general/header-inera-general.d.ts +3 -1
  242. package/components/header-inera-general/header-inera-general.js +2 -2
  243. package/components/header-patient/header-patient.d.ts +1 -1
  244. package/components/link/action-link.d.ts +1 -1
  245. package/components/link/box-link.d.ts +1 -1
  246. package/components/list-pagination/list-pagination-links.d.ts +3 -2
  247. package/components/list-pagination/list-pagination-links.js +3 -20
  248. package/components/list-pagination/list-pagination-summary.d.ts +13 -0
  249. package/components/list-pagination/list-pagination-summary.js +9 -0
  250. package/components/list-pagination/list-pagination.d.ts +3 -2
  251. package/components/list-pagination/list-pagination.js +3 -20
  252. package/components/message-avatar/message-avatar.d.ts +12 -0
  253. package/components/message-avatar/message-avatar.js +10 -0
  254. package/components/mobile-menu/mobile-item-base.d.ts +1 -1
  255. package/components/mobile-menu/mobile-item-base.js +4 -24
  256. package/components/mobile-menu/mobile-item-link.d.ts +16 -0
  257. package/components/mobile-menu/mobile-item-link.js +27 -0
  258. package/components/mobile-menu/mobile-item.d.ts +1 -1
  259. package/components/mobile-menu/mobile-menu.d.ts +1 -1
  260. package/components/navigation-content/navigation-content-item-base.d.ts +12 -0
  261. package/components/navigation-content/navigation-content-item-base.js +17 -0
  262. package/components/navigation-content/navigation-content-item.d.ts +11 -0
  263. package/components/navigation-content/navigation-content-item.js +25 -0
  264. package/components/navigation-content/navigation-content.d.ts +1 -1
  265. package/components/navigation-content/navigation-content.js +10 -6
  266. package/components/navigation-local/navigation-local.d.ts +1 -1
  267. package/components/notification-badge/notification-badge.js +1 -1
  268. package/components/popover/popover-base.d.ts +1 -1
  269. package/components/popover/popover-caret.d.ts +9 -0
  270. package/components/popover/popover-caret.js +8 -0
  271. package/components/popover/popover-content.d.ts +1 -1
  272. package/components/popover/popover-content.js +2 -2
  273. package/components/popover/popover.d.ts +1 -1
  274. package/components/progressbar/progressbar.d.ts +1 -1
  275. package/components/puff-list/puff-list-item-date.d.ts +1 -1
  276. package/components/puff-list/puff-list-item-header.d.ts +1 -1
  277. package/components/puff-list/puff-list-item-info.d.ts +1 -1
  278. package/components/puff-list/puff-list-item.d.ts +1 -1
  279. package/components/puff-list/puff-list.d.ts +1 -1
  280. package/components/region-icon/region-icon.d.ts +5 -2
  281. package/components/region-icon/region-icon.js +6 -3
  282. package/components/side-menu/side-menu-base.d.ts +1 -1
  283. package/components/side-menu/side-menu-base.js +6 -24
  284. package/components/side-menu/side-menu-label.d.ts +17 -0
  285. package/components/side-menu/side-menu-label.js +14 -0
  286. package/components/side-menu/side-menu-toggle.d.ts +15 -0
  287. package/components/side-menu/side-menu-toggle.js +14 -0
  288. package/components/side-menu/side-menu.d.ts +1 -1
  289. package/components/side-panel/side-panel-base.js +2 -8
  290. package/components/side-panel/side-panel-footer.d.ts +10 -0
  291. package/components/side-panel/side-panel-footer.js +8 -0
  292. package/components/side-panel/side-panel-provider.d.ts +1 -1
  293. package/components/side-panel/side-panel.d.ts +1 -1
  294. package/components/side-panel/side-panel.js +2 -18
  295. package/components/stepper/step-base.js +6 -9
  296. package/components/stepper/step-indicator.d.ts +11 -0
  297. package/components/stepper/step-indicator.js +8 -0
  298. package/components/stepper/stepper.d.ts +1 -1
  299. package/components/tabs/tab-link.js +1 -1
  300. package/components/tabs/tab.js +1 -1
  301. package/components/tabs/tabs-base.d.ts +1 -1
  302. package/components/tabs/tabs.d.ts +1 -1
  303. package/components/tag/tag.js +1 -0
  304. package/components/tooltip/tooltip-base.d.ts +1 -1
  305. package/components/tooltip/tooltip.d.ts +1 -1
  306. package/components/utils/utils.js +0 -1
  307. package/index.d.ts +11 -0
  308. package/index.js +11 -0
  309. package/package.json +2 -2
@@ -0,0 +1,17 @@
1
+ import { HTMLAttributes } from "react";
2
+ interface IDSHeaderIneraGeneralAvatarMobileBaseProps extends HTMLAttributes<HTMLDivElement> {
3
+ username?: string;
4
+ unit?: string;
5
+ expanded?: boolean;
6
+ hide?: boolean;
7
+ unresponsive?: boolean;
8
+ onToggleMenu?: () => void;
9
+ componentRef?: React.RefObject<HTMLDivElement>;
10
+ buttonRef?: React.RefObject<HTMLButtonElement>;
11
+ client?: boolean;
12
+ }
13
+ export declare function IDSHeaderIneraGeneralAvatarMobileBase({ username, unit, expanded, hide, unresponsive, componentRef, buttonRef, children, onToggleMenu, client, ...props }: IDSHeaderIneraGeneralAvatarMobileBaseProps): import("react").JSX.Element;
14
+ export declare namespace IDSHeaderIneraGeneralAvatarMobileBase {
15
+ var displayName: string;
16
+ }
17
+ export {};
@@ -0,0 +1,24 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { useId } from 'react';
3
+ import clsx from 'clsx';
4
+
5
+ function IDSHeaderIneraGeneralAvatarMobileBase({ username = "", unit = "", expanded, hide, unresponsive, componentRef, buttonRef, children, onToggleMenu, client = false, ...props }) {
6
+ if (hide)
7
+ return null;
8
+ const menuId = `header-inera-general-menu-${useId()}`;
9
+ const toggleHandler = client && onToggleMenu
10
+ ? {
11
+ onClick: onToggleMenu
12
+ }
13
+ : {};
14
+ return (jsx("div", { ...props, ref: componentRef, className: clsx("ids-header-inera-general-avatar-mobile", {
15
+ "ids-header-inera-general-avatar-mobile--unresponsive": unresponsive
16
+ }), children: jsxs("div", { className: "ids-header-inera-general-avatar-mobile__menu-wrapper", children: [jsx("button", { type: "button", ...toggleHandler, ref: buttonRef, className: clsx("ids-header-inera-general-avatar-mobile__button", {
17
+ "ids-header-inera-general-avatar-mobile__button--expanded": expanded
18
+ }), "aria-controls": menuId, "aria-expanded": expanded, children: jsx("div", { className: "ids-header-inera-general-avatar-mobile-content__name", title: username, children: username }) }), jsxs("div", { id: menuId, className: clsx("ids-header-inera-general-avatar-mobile__menu", {
19
+ "ids-header-inera-general-avatar-mobile__menu--expanded": expanded
20
+ }), children: [unit && jsx("div", { className: "ids-header-inera-general-avatar-mobile__unit", children: unit }), jsx("div", { className: "ids-header-inera-general-avatar-mobile__menu-links", children: children })] })] }) }));
21
+ }
22
+ IDSHeaderIneraGeneralAvatarMobileBase.displayName = "IDSHeaderIneraGeneralAvatarMobileBase";
23
+
24
+ export { IDSHeaderIneraGeneralAvatarMobileBase };
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes } from "react";
2
+ interface IDSHeaderIneraGeneralAvatarMobileProps extends HTMLAttributes<HTMLDivElement> {
3
+ username?: string;
4
+ unit?: string;
5
+ expanded?: boolean;
6
+ persistent?: boolean;
7
+ }
8
+ export declare function IDSHeaderIneraGeneralAvatarMobile({ username, unit, expanded, persistent, children, ...props }: IDSHeaderIneraGeneralAvatarMobileProps): import("react").JSX.Element;
9
+ export declare namespace IDSHeaderIneraGeneralAvatarMobile {
10
+ var displayName: string;
11
+ }
12
+ export {};
@@ -0,0 +1,28 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { useState, useRef } from 'react';
4
+ import { IDSHeaderIneraGeneralAvatarMobileBase } from './header-inera-general-avatar-mobile-base.js';
5
+ import { useHeaderContext } from '../utils/contexts/HeaderContext.js';
6
+ import { useFocusTrap } from '../utils/hooks/useFocusTrap.js';
7
+ import { useClickOutside } from '../utils/hooks/useClickOutside.js';
8
+ import { useEsc } from '../utils/hooks/useEsc.js';
9
+ import { useLinkClick } from '../utils/hooks/useLinkClick.js';
10
+
11
+ function IDSHeaderIneraGeneralAvatarMobile({ username = "", unit = "", expanded = false, persistent = false, children, ...props }) {
12
+ const headerContext = useHeaderContext();
13
+ if (headerContext?.hideAvatar)
14
+ return null;
15
+ const [isExpanded, setIsExpanded] = useState(expanded);
16
+ const componentRef = useRef(null);
17
+ const buttonRef = useRef(null);
18
+ useFocusTrap(componentRef.current, isExpanded && !persistent);
19
+ const closeMenu = () => setIsExpanded(false);
20
+ useClickOutside(closeMenu, componentRef, buttonRef, !persistent && isExpanded);
21
+ useEsc(closeMenu, buttonRef, componentRef, !persistent && isExpanded);
22
+ useLinkClick(closeMenu, componentRef, buttonRef, !persistent && isExpanded);
23
+ const toggleAvatar = () => setIsExpanded(prev => !prev);
24
+ return (jsx(IDSHeaderIneraGeneralAvatarMobileBase, { ...props, client: true, username: username, unit: unit, expanded: isExpanded, componentRef: componentRef, buttonRef: buttonRef, onToggleMenu: username ? toggleAvatar : undefined, unresponsive: headerContext?.unresponsive ?? false, children: children }));
25
+ }
26
+ IDSHeaderIneraGeneralAvatarMobile.displayName = "IDSHeaderIneraGeneralAvatarMobile";
27
+
28
+ export { IDSHeaderIneraGeneralAvatarMobile };
@@ -0,0 +1,12 @@
1
+ import { HTMLAttributes } from "react";
2
+ interface IDSHeaderIneraGeneralAvatarProps extends HTMLAttributes<HTMLDivElement> {
3
+ username?: string;
4
+ unit?: string;
5
+ expanded?: boolean;
6
+ persistent?: boolean;
7
+ }
8
+ export declare function IDSHeaderIneraGeneralAvatar({ username, unit, expanded, children, persistent, ...props }: IDSHeaderIneraGeneralAvatarProps): import("react").JSX.Element;
9
+ export declare namespace IDSHeaderIneraGeneralAvatar {
10
+ var displayName: string;
11
+ }
12
+ export {};
@@ -0,0 +1,29 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { useState, useRef } from 'react';
4
+ import { IDSHeaderIneraGeneralAvatarBase } from './header-inera-general-avatar-base.js';
5
+ import { useHeaderContext } from '../utils/contexts/HeaderContext.js';
6
+ import { useFocusTrap } from '../utils/hooks/useFocusTrap.js';
7
+ import { useClickOutside } from '../utils/hooks/useClickOutside.js';
8
+ import { useEsc } from '../utils/hooks/useEsc.js';
9
+ import { useLinkClick } from '../utils/hooks/useLinkClick.js';
10
+
11
+ function IDSHeaderIneraGeneralAvatar({ username, unit, expanded = false, children, persistent = false, ...props }) {
12
+ const headerContext = useHeaderContext();
13
+ if (headerContext?.hideAvatar)
14
+ return null;
15
+ const [isExpanded, setIsExpanded] = useState(expanded);
16
+ const componentRef = useRef(null);
17
+ const menuRef = useRef(null);
18
+ const buttonRef = useRef(null);
19
+ useFocusTrap(componentRef.current, isExpanded && !persistent);
20
+ const closeMenu = () => setIsExpanded(false);
21
+ useClickOutside(closeMenu, componentRef, buttonRef, !persistent && isExpanded);
22
+ useEsc(closeMenu, buttonRef, componentRef, !persistent && isExpanded);
23
+ useLinkClick(closeMenu, componentRef, buttonRef, !persistent && isExpanded);
24
+ const toggleAvatar = () => setIsExpanded(prev => !prev);
25
+ return (jsx(IDSHeaderIneraGeneralAvatarBase, { ...props, client: true, username: username, unit: unit, children: children, componentRef: componentRef, menuRef: menuRef, buttonRef: buttonRef, expanded: isExpanded, onToggleAvatar: toggleAvatar, unresponsive: headerContext?.unresponsive ?? false }));
26
+ }
27
+ IDSHeaderIneraGeneralAvatar.displayName = "IDSHeaderIneraGeneralAvatar";
28
+
29
+ export { IDSHeaderIneraGeneralAvatar };
@@ -8,8 +8,9 @@ interface IDSHeaderIneraGeneralBaseProps extends React.HTMLAttributes<HTMLDivEle
8
8
  mobileMenu?: ReactNode;
9
9
  skipToContent?: ReactNode;
10
10
  logo?: ReactNode;
11
+ avatar?: ReactNode;
11
12
  }
12
- export declare function IDSHeaderIneraGeneralBase({ brandLink, brandText, unresponsive, items, mobileMenu, skipToContent, className, children, ...props }: IDSHeaderIneraGeneralBaseProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function IDSHeaderIneraGeneralBase({ brandLink, brandText, unresponsive, items, avatar, mobileMenu, skipToContent, className, children, ...props }: IDSHeaderIneraGeneralBaseProps): React.JSX.Element;
13
14
  export declare namespace IDSHeaderIneraGeneralBase {
14
15
  var displayName: string;
15
16
  }
@@ -2,10 +2,10 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import '@inera/ids-design/components/header-inera-general/composite-header-inera-general.css';
4
4
 
5
- function IDSHeaderIneraGeneralBase({ brandLink, brandText = "Logotyp inera", unresponsive = false, items, mobileMenu, skipToContent, className, children, ...props }) {
5
+ function IDSHeaderIneraGeneralBase({ brandLink, brandText = "Logotyp inera", unresponsive = false, items, avatar, mobileMenu, skipToContent, className, children, ...props }) {
6
6
  return (jsxs("header", { ...props, className: clsx("ids-header-inera-general", {
7
7
  "ids-header-inera-general--unresponsive": unresponsive
8
- }, className), children: [skipToContent && jsx("div", { className: "ids-header-inera-general__skip-to-content", children: skipToContent }), jsxs("div", { className: "ids-header-inera-general__inner", children: [jsxs("div", { className: "ids-header-inera-general__main", children: [jsx("div", { className: "ids-header-inera-general__brand", children: brandLink ? (jsxs(Fragment, { children: [jsx("span", { className: "ids-header-inera-general__brand-text", children: brandText }), jsx("span", { className: "ids-header-inera-general__brand-link", children: brandLink })] })) : (jsx("h1", { className: "ids-header-inera-general__brand-text", children: brandText })) }), jsxs("div", { className: "ids-header-inera-general__items", children: [items, " ", mobileMenu] })] }), children] })] }));
8
+ }, className), children: [skipToContent && jsx("div", { className: "ids-header-inera-general__skip-to-content", children: skipToContent }), jsxs("div", { className: "ids-header-inera-general__inner", children: [jsxs("div", { className: "ids-header-inera-general__main", children: [jsx("div", { className: "ids-header-inera-general__brand", children: brandLink ? (jsxs(Fragment, { children: [jsx("span", { className: "ids-header-inera-general__brand-text", children: brandText }), jsx("span", { className: "ids-header-inera-general__brand-link", children: brandLink })] })) : (jsx("h1", { className: "ids-header-inera-general__brand-text", children: brandText })) }), jsxs("div", { className: "ids-header-inera-general__items", children: [items, " ", avatar, " ", mobileMenu && jsx("div", { className: "ids-header-inera-general__mobile-menu", children: mobileMenu })] })] }), children] })] }));
9
9
  }
10
10
  IDSHeaderIneraGeneralBase.displayName = "IDSHeaderIneraGeneralBase";
11
11
 
@@ -5,7 +5,7 @@ export interface IDSHeaderIneraGeneralItemBaseProps extends HTMLAttributes<HTMLE
5
5
  separatorLeft?: boolean;
6
6
  icon?: string;
7
7
  }
8
- export declare function IDSHeaderIneraGeneralItemBase({ mobile, unresponsive, separatorLeft, icon, children, ...props }: IDSHeaderIneraGeneralItemBaseProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function IDSHeaderIneraGeneralItemBase({ mobile, unresponsive, separatorLeft, icon, children, ...props }: IDSHeaderIneraGeneralItemBaseProps): import("react").JSX.Element;
9
9
  export declare namespace IDSHeaderIneraGeneralItemBase {
10
10
  var displayName: string;
11
11
  }
@@ -2,11 +2,11 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
 
4
4
  function IDSHeaderIneraGeneralItemBase({ mobile = false, unresponsive = false, separatorLeft = false, icon = "", children, ...props }) {
5
- const renderContent = () => (jsx("div", { className: "ids-header-inera-general-item__icon", "aria-hidden": "true", children: jsx("span", { className: `ids-icon-${icon}` }) }));
6
5
  return (jsxs("div", { className: clsx("ids-header-inera-general-item", {
7
6
  "ids-header-inera-general-item--mobile": mobile,
7
+ "ids-header-inera-general-item--separator": separatorLeft,
8
8
  "ids-header-inera-general-item--unresponsive": unresponsive
9
- }), ...props, children: [renderContent(), children] }));
9
+ }), ...props, children: [jsx("div", { className: "ids-header-inera-general-item__icon", "aria-hidden": "true", children: jsx("span", { className: `ids-icon-${icon}` }) }), children] }));
10
10
  }
11
11
  IDSHeaderIneraGeneralItemBase.displayName = "IDSHeaderIneraItemBase";
12
12
 
@@ -4,7 +4,7 @@ export interface IDSHeaderIneraGeneralItemProps extends HTMLAttributes<HTMLEleme
4
4
  separatorLeft?: boolean;
5
5
  icon?: string;
6
6
  }
7
- export declare function IDSHeaderIneraGeneralItem({ mobile, separatorLeft, icon, children, ...props }: IDSHeaderIneraGeneralItemProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function IDSHeaderIneraGeneralItem({ mobile, separatorLeft, icon, children, ...props }: IDSHeaderIneraGeneralItemProps): import("react").JSX.Element;
8
8
  export declare namespace IDSHeaderIneraGeneralItem {
9
9
  var displayName: string;
10
10
  }
@@ -5,7 +5,7 @@ import { useHeaderContext } from '../utils/contexts/HeaderContext.js';
5
5
 
6
6
  function IDSHeaderIneraGeneralItem({ mobile, separatorLeft, icon, children, ...props }) {
7
7
  const headerContext = useHeaderContext() || { unresponsive: false };
8
- return (jsx(IDSHeaderIneraGeneralItemBase, { ...props, mobile: mobile, icon: icon, unresponsive: headerContext.unresponsive, children: children }));
8
+ return (jsx(IDSHeaderIneraGeneralItemBase, { ...props, separatorLeft: separatorLeft, mobile: mobile, icon: icon, unresponsive: headerContext.unresponsive, children: children }));
9
9
  }
10
10
  IDSHeaderIneraGeneralItem.displayName = "IDSHeaderIneraGeneralItem";
11
11
 
@@ -8,7 +8,7 @@ interface IDSHeaderIneraGeneralMenuMobileBaseProps extends HTMLAttributes<HTMLEl
8
8
  buttonRef?: React.RefObject<HTMLButtonElement>;
9
9
  client?: boolean;
10
10
  }
11
- export declare function IDSHeaderIneraGeneralMenuMobileBase({ srLabel, expanded, unresponsive, children, componentRef, buttonRef, onToggleMenu, client, ...props }: IDSHeaderIneraGeneralMenuMobileBaseProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function IDSHeaderIneraGeneralMenuMobileBase({ srLabel, expanded, unresponsive, children, componentRef, buttonRef, onToggleMenu, client, ...props }: IDSHeaderIneraGeneralMenuMobileBaseProps): import("react").JSX.Element;
12
12
  export declare namespace IDSHeaderIneraGeneralMenuMobileBase {
13
13
  var displayName: string;
14
14
  }
@@ -6,7 +6,7 @@ interface IDSHeaderIneraGeneralMenuMobileProps extends HTMLAttributes<HTMLElemen
6
6
  onExpanded?: () => void;
7
7
  onClosed?: () => void;
8
8
  }
9
- export declare function IDSHeaderIneraGeneralMenuMobile({ srLabel, expanded, persistent, children, onExpanded, onClosed, ...props }: IDSHeaderIneraGeneralMenuMobileProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function IDSHeaderIneraGeneralMenuMobile({ srLabel, expanded, persistent, children, onExpanded, onClosed, ...props }: IDSHeaderIneraGeneralMenuMobileProps): import("react").JSX.Element;
10
10
  export declare namespace IDSHeaderIneraGeneralMenuMobile {
11
11
  var displayName: string;
12
12
  }
@@ -3,7 +3,7 @@ interface IDSHeaderIneraGeneralNavBaseProps {
3
3
  children?: ReactNode;
4
4
  unresponsive?: boolean;
5
5
  }
6
- export declare function IDSHeaderIneraGeneralNavBase({ children, unresponsive, ...props }: IDSHeaderIneraGeneralNavBaseProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function IDSHeaderIneraGeneralNavBase({ children, unresponsive, ...props }: IDSHeaderIneraGeneralNavBaseProps): import("react").JSX.Element;
7
7
  export declare namespace IDSHeaderIneraGeneralNavBase {
8
8
  var displayName: string;
9
9
  }
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  function IDSHeaderIneraGeneralNavBase({ children, unresponsive = false, ...props }) {
5
5
  return (jsx("nav", { className: clsx("ids-header-inera-general-nav", {
6
6
  "ids-header-inera-general-nav--unresponsive": unresponsive
7
- }), "aria-label": "Huvudmeny", ...props, children: jsx("div", { className: "ids-header-inera-general-nav__nav-items", children: children }) }));
7
+ }), "aria-label": "Huvudmeny", ...props, children: jsx("div", { className: "ids-header-inera-general-nav__inner", children: children }) }));
8
8
  }
9
9
  IDSHeaderIneraGeneralNavBase.displayName = "IDSHeaderIneraGeneralNavBase";
10
10
 
@@ -15,7 +15,7 @@ export interface IDSHeaderIneraGeneralNavItemBaseProps extends HTMLAttributes<HT
15
15
  onToggleItem?: () => void;
16
16
  unresponsive?: boolean;
17
17
  }
18
- export declare function IDSHeaderIneraGeneralNavItemBase({ label, active, expanded, children, col1, col2, col3, col4, componentRef, menuRef, buttonRef, onToggleItem, unresponsive, ...props }: IDSHeaderIneraGeneralNavItemBaseProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function IDSHeaderIneraGeneralNavItemBase({ label, active, expanded, children, col1, col2, col3, col4, componentRef, menuRef, buttonRef, onToggleItem, unresponsive, ...props }: IDSHeaderIneraGeneralNavItemBaseProps): React.JSX.Element;
19
19
  export declare namespace IDSHeaderIneraGeneralNavItemBase {
20
20
  var displayName: string;
21
21
  }
@@ -1,24 +1,15 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import React, { useId } from 'react';
2
+ import { useId } from 'react';
3
3
  import clsx from 'clsx';
4
+ import { IDSHeaderIneraGeneralNavItemLink } from './header-inera-general-nav-item-link.js';
4
5
 
5
6
  function IDSHeaderIneraGeneralNavItemBase({ label, active, expanded, children, col1, col2, col3, col4, componentRef, menuRef, buttonRef, onToggleItem, unresponsive, ...props }) {
6
7
  const itemId = `header-inera-item-${useId()}`;
7
- return (jsxs("div", { ...props, ref: componentRef, className: clsx("ids-header-inera-general-nav-item", {
8
+ return (jsxs("div", { ref: componentRef, className: clsx("ids-header-inera-general-nav-item", {
8
9
  "ids-header-inera-general-nav-item--unresponsive": unresponsive,
9
10
  "ids-header-inera-general-nav-item--expanded": expanded,
10
11
  "ids-header-inera-general-nav-item--active": active
11
- }), children: [!!label && (jsx("button", { type: "button", ref: buttonRef, "aria-controls": itemId, "aria-expanded": expanded, className: "ids-header-inera-general-nav-item__button", onClick: onToggleItem, children: label })), !label && (jsx("span", { className: "ids-header-inera-general-nav-item__link", children: React.Children.map(children, child => {
12
- if (!React.isValidElement(child))
13
- return child;
14
- const element = child;
15
- if (active && !element.props["aria-current"]) {
16
- return React.cloneElement(element, {
17
- "aria-current": "page"
18
- });
19
- }
20
- return element;
21
- }) })), jsx("div", { ref: menuRef, id: itemId, className: clsx("ids-header-inera-general-nav-item__menu", {
12
+ }), ...props, children: [!label && jsx(IDSHeaderIneraGeneralNavItemLink, { active: active, children: children }), !!label && (jsx("button", { type: "button", ref: buttonRef, "aria-controls": itemId, "aria-expanded": expanded, className: "ids-header-inera-general-nav-item__button", onClick: onToggleItem, children: label })), jsx("div", { ref: menuRef, id: itemId, className: clsx("ids-header-inera-general-nav-item__menu", {
22
13
  "ids-header-inera-general-nav-item__menu--expanded": expanded
23
14
  }), children: jsxs("div", { className: "ids-header-inera-general-nav-item__menu-content", children: [jsx("div", { className: "ids-header-inera-general-nav-item__menu-col-1", children: col1?.map((link, idx) => (jsx("div", { className: "ids-header-inera-general-nav__menu-item-wrapper", children: link }, idx))) }), jsx("div", { className: "ids-header-inera-general-nav-item__menu-col-2", children: col2?.map((link, idx) => (jsx("div", { className: "ids-header-inera-general-nav__menu-item-wrapper", children: link }, idx))) }), jsx("div", { className: "ids-header-inera-general-nav-item__menu-col-3", children: col3?.map((link, idx) => (jsx("div", { className: "ids-header-inera-general-nav__menu-item-wrapper", children: link }, idx))) }), jsx("div", { className: "ids-header-inera-general-nav-item__menu-col-4", children: col4 })] }) })] }));
24
15
  }
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ interface IDSHeaderIneraGeneralNavItemLinkProps {
3
+ active?: boolean;
4
+ children?: React.ReactNode;
5
+ }
6
+ export declare function IDSHeaderIneraGeneralNavItemLink({ active, children }: IDSHeaderIneraGeneralNavItemLinkProps): React.JSX.Element;
7
+ export declare namespace IDSHeaderIneraGeneralNavItemLink {
8
+ var displayName: string;
9
+ }
10
+ export {};
@@ -0,0 +1,19 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
4
+ function IDSHeaderIneraGeneralNavItemLink({ active, children }) {
5
+ return (jsx("span", { className: "ids-header-inera-general-nav-item__link", children: React.Children.map(children, child => {
6
+ if (!React.isValidElement(child))
7
+ return child;
8
+ const element = child;
9
+ if (active && !element.props["aria-current"]) {
10
+ return React.cloneElement(element, {
11
+ "aria-current": "page"
12
+ });
13
+ }
14
+ return element;
15
+ }) }));
16
+ }
17
+ IDSHeaderIneraGeneralNavItemLink.displayName = "IDSHeaderIneraGeneralNavItemLink";
18
+
19
+ export { IDSHeaderIneraGeneralNavItemLink };
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from "react";
2
+ interface IDSHeaderIneraGeneralNavItemMobileBaseProps extends HTMLAttributes<HTMLElement> {
3
+ icon?: string;
4
+ unresponsive?: boolean;
5
+ }
6
+ export declare function IDSHeaderIneraGeneralNavItemMobileBase({ icon, unresponsive, children, ...props }: IDSHeaderIneraGeneralNavItemMobileBaseProps): import("react").JSX.Element;
7
+ export declare namespace IDSHeaderIneraGeneralNavItemMobileBase {
8
+ var displayName: string;
9
+ }
10
+ export {};
@@ -0,0 +1,11 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import clsx from 'clsx';
3
+
4
+ function IDSHeaderIneraGeneralNavItemMobileBase({ icon = "", unresponsive = false, children, ...props }) {
5
+ return (jsxs("div", { ...props, className: clsx("ids-header-inera-general-nav-item-mobile", {
6
+ "ids-header-inera-general-nav-item-mobile--unresponsive": unresponsive
7
+ }), children: [icon && (jsx("span", { className: "ids-header-inera-general-nav-item-mobile__icon", children: jsx("span", { className: `ids-icon-${icon}` }) })), children] }));
8
+ }
9
+ IDSHeaderIneraGeneralNavItemMobileBase.displayName = "IDSHeaderIneraGeneralNavItemMobileBase";
10
+
11
+ export { IDSHeaderIneraGeneralNavItemMobileBase };
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from "react";
2
+ interface IDSHeaderIneraGeneralNavItemMobileProps extends HTMLAttributes<HTMLElement> {
3
+ icon?: string;
4
+ unresponsive?: boolean;
5
+ }
6
+ export declare function IDSHeaderIneraGeneralNavItemMobile({ icon, unresponsive, children, ...props }: IDSHeaderIneraGeneralNavItemMobileProps): import("react").JSX.Element;
7
+ export declare namespace IDSHeaderIneraGeneralNavItemMobile {
8
+ var displayName: string;
9
+ }
10
+ export {};
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { jsx } from 'react/jsx-runtime';
3
+ import { useHeaderContext } from '../utils/contexts/HeaderContext.js';
4
+ import { IDSHeaderIneraGeneralNavItemMobileBase } from './header-inera-general-nav-item-mobile-base.js';
5
+
6
+ function IDSHeaderIneraGeneralNavItemMobile({ icon, unresponsive, children, ...props }) {
7
+ const headerContext = useHeaderContext();
8
+ return (jsx(IDSHeaderIneraGeneralNavItemMobileBase, { ...props, unresponsive: headerContext?.unresponsive, icon: icon, children: children }));
9
+ }
10
+ IDSHeaderIneraGeneralNavItemMobile.displayName = "IDSHeaderIneraGeneralNavItemMobile";
11
+
12
+ export { IDSHeaderIneraGeneralNavItemMobile };
@@ -12,7 +12,7 @@ export interface IDSHeaderIneraGeneralNavItemProps extends HTMLAttributes<HTMLEl
12
12
  itemId?: string;
13
13
  unresponsive?: boolean;
14
14
  }
15
- export declare function IDSHeaderIneraGeneralNavItem({ expanded, ...props }: IDSHeaderIneraGeneralNavItemProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare function IDSHeaderIneraGeneralNavItem({ expanded, ...props }: IDSHeaderIneraGeneralNavItemProps): import("react").JSX.Element;
16
16
  export declare namespace IDSHeaderIneraGeneralNavItem {
17
17
  var displayName: string;
18
18
  }
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ interface IDSHeaderIneraGeneralNavMobileProps {
3
+ children?: ReactNode;
4
+ srLabel?: string;
5
+ }
6
+ export declare function IDSHeaderIneraGeneralNavMobile({ children, srLabel, ...props }: IDSHeaderIneraGeneralNavMobileProps): import("react").JSX.Element;
7
+ export declare namespace IDSHeaderIneraGeneralNavMobile {
8
+ var displayName: string;
9
+ }
10
+ export {};
@@ -0,0 +1,8 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+
3
+ function IDSHeaderIneraGeneralNavMobile({ children, srLabel = "Huvudmeny", ...props }) {
4
+ return (!!children && (jsx("nav", { className: "ids-header-inera-general-nav-mobile", "aria-label": srLabel, ...props, children: children })));
5
+ }
6
+ IDSHeaderIneraGeneralNavMobile.displayName = "IDSHeaderIneraGeneralNavMobile";
7
+
8
+ export { IDSHeaderIneraGeneralNavMobile };
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes } from "react";
2
2
  interface IDSHeaderIneraGeneralNavProps extends HTMLAttributes<HTMLElement> {
3
3
  }
4
- export declare function IDSHeaderIneraGeneralNav({ children, ...props }: IDSHeaderIneraGeneralNavProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function IDSHeaderIneraGeneralNav({ children, ...props }: IDSHeaderIneraGeneralNavProps): import("react").JSX.Element;
5
5
  export declare namespace IDSHeaderIneraGeneralNav {
6
6
  var displayName: string;
7
7
  }
@@ -7,8 +7,10 @@ interface IDSHeaderIneraGeneralProps extends React.HTMLAttributes<HTMLDivElement
7
7
  mobileMenu?: ReactNode;
8
8
  skipToContent?: ReactNode;
9
9
  logo?: ReactNode;
10
+ avatar?: ReactNode;
11
+ hideAvatar?: boolean;
10
12
  }
11
- export declare function IDSHeaderIneraGeneral({ unresponsive, children, ...props }: IDSHeaderIneraGeneralProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function IDSHeaderIneraGeneral({ unresponsive, hideAvatar, children, ...props }: IDSHeaderIneraGeneralProps): React.JSX.Element;
12
14
  export declare namespace IDSHeaderIneraGeneral {
13
15
  var displayName: string;
14
16
  }
@@ -3,8 +3,8 @@ import { jsx } from 'react/jsx-runtime';
3
3
  import { HeaderProvider } from '../utils/contexts/HeaderContext.js';
4
4
  import { IDSHeaderIneraGeneralBase } from './header-inera-general-base.js';
5
5
 
6
- function IDSHeaderIneraGeneral({ unresponsive = false, children, ...props }) {
7
- return (jsx(HeaderProvider, { value: { unresponsive, hideRegionPicker: true, hideAvatar: true }, children: jsx(IDSHeaderIneraGeneralBase, { ...props, unresponsive: unresponsive, children: children }) }));
6
+ function IDSHeaderIneraGeneral({ unresponsive = false, hideAvatar, children, ...props }) {
7
+ return (jsx(HeaderProvider, { value: { unresponsive, hideRegionPicker: true, hideAvatar }, children: jsx(IDSHeaderIneraGeneralBase, { ...props, unresponsive: unresponsive, children: children }) }));
8
8
  }
9
9
  IDSHeaderIneraGeneral.displayName = "IDSHeaderIneraGeneral";
10
10
 
@@ -7,7 +7,7 @@ interface IDSHeaderPatientProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  ssn?: string;
8
8
  stack?: boolean;
9
9
  }
10
- export declare function IDSHeaderPatient({ srLabel, name, ssn, collapse, stack, buttons, className, children, ...props }: IDSHeaderPatientProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function IDSHeaderPatient({ srLabel, name, ssn, collapse, stack, buttons, className, children, ...props }: IDSHeaderPatientProps): import("react").JSX.Element;
11
11
  export declare namespace IDSHeaderPatient {
12
12
  var displayName: string;
13
13
  }
@@ -3,7 +3,7 @@ import "@inera/ids-design/components/action-link/action-link.css";
3
3
  export interface IDSActionLinkProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  image?: ReactNode;
5
5
  }
6
- export declare function IDSActionLink({ image, children, className, ...props }: IDSActionLinkProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function IDSActionLink({ image, children, className, ...props }: IDSActionLinkProps): React.JSX.Element;
7
7
  export declare namespace IDSActionLink {
8
8
  var displayName: string;
9
9
  }
@@ -3,7 +3,7 @@ import "@inera/ids-design/components/box-link/box-link.css";
3
3
  export interface IDSBoxLinkProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  button?: ReactNode;
5
5
  }
6
- export declare function IDSBoxLink({ button, children, className, ...props }: IDSBoxLinkProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function IDSBoxLink({ button, children, className, ...props }: IDSBoxLinkProps): React.JSX.Element;
7
7
  export declare namespace IDSBoxLink {
8
8
  var displayName: string;
9
9
  }
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { JSX } from "react";
2
2
  import "@inera/ids-design/components/list-pagination/list-pagination.css";
3
3
  export interface IDSListPaginationLinksProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  showing?: string;
@@ -15,8 +15,9 @@ export interface IDSListPaginationLinksProps extends React.HTMLAttributes<HTMLDi
15
15
  linkPrefix?: string;
16
16
  prevHref?: string;
17
17
  nextHref?: string;
18
+ noSummary?: boolean;
18
19
  }
19
- export declare function IDSListPaginationLinks({ showing, from, to, of, total, current, pages, srCurrentPage, srGoToPage, srPrevious, srNext, linkPrefix, prevHref, nextHref, className, ...props }: IDSListPaginationLinksProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function IDSListPaginationLinks({ showing, from, to, of, total, current, pages, srCurrentPage, srGoToPage, srPrevious, srNext, linkPrefix, prevHref, nextHref, noSummary, className, ...props }: IDSListPaginationLinksProps): JSX.Element;
20
21
  export declare namespace IDSListPaginationLinks {
21
22
  var displayName: string;
22
23
  }
@@ -1,26 +1,9 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import '@inera/ids-design/components/list-pagination/list-pagination.css';
4
+ import { IDSListPaginationSummary } from './list-pagination-summary.js';
4
5
 
5
- function IDSListPaginationLinks({ showing = "Visar", from = 0, to = 0, of = "av", total = 0, current = 1, pages = 1, srCurrentPage = "Aktuell sida", srGoToPage = "Gå till sida", srPrevious = "Föregående sida", srNext = "Nästa sida", linkPrefix, prevHref, nextHref, className, ...props }) {
6
- const renderSummary = () => {
7
- if (from && to && total) {
8
- return jsx("div", { className: "ids-list-pagination__summary", children: `${showing} ${from} - ${to} ${of} ${total}` });
9
- }
10
- return null;
11
- };
12
- const renderPrevLink = () => {
13
- if (current > 1) {
14
- return jsx("a", { "aria-label": srPrevious, href: linkPrefix + (current - 1), id: "prev-link" });
15
- }
16
- return null;
17
- };
18
- const renderNextLink = () => {
19
- if (current < pages) {
20
- return jsx("a", { "aria-label": srNext, href: linkPrefix + (current + 1), id: "next-link" });
21
- }
22
- return null;
23
- };
6
+ function IDSListPaginationLinks({ showing = "Visar", from = 0, to = 0, of = "av", total = 0, current = 1, pages = 1, srCurrentPage = "Aktuell sida", srGoToPage = "Gå till sida", srPrevious = "Föregående sida", srNext = "Nästa sida", linkPrefix, prevHref, nextHref, noSummary = false, className, ...props }) {
24
7
  const renderLinks = () => {
25
8
  const linkArray = [];
26
9
  for (let i = 1; i <= pages; i++) {
@@ -42,7 +25,7 @@ function IDSListPaginationLinks({ showing = "Visar", from = 0, to = 0, of = "av"
42
25
  }
43
26
  return (jsx("nav", { children: jsx("ul", { className: "ids-list-pagination__list", children: linkArray }) }));
44
27
  };
45
- return (jsxs("div", { className: clsx("ids-list-pagination", className), ...props, children: [renderSummary(), jsxs("div", { className: "ids-list-pagination__content", children: [jsx("div", { className: "ids-list-pagination__prev-link", children: renderPrevLink() }), jsx("div", { className: "ids-list-pagination__nav-links", children: renderLinks() }), jsx("div", { className: "ids-list-pagination__next-link", children: renderNextLink() })] })] }));
28
+ return (jsxs("div", { className: clsx("ids-list-pagination", className), ...props, children: [!!total && !noSummary && jsx(IDSListPaginationSummary, { showing: showing, from: from, to: to, of: of, total: total }), jsxs("div", { className: "ids-list-pagination__content", children: [current > 1 && (jsx("div", { className: "ids-list-pagination__prev-link", children: jsx("a", { "aria-label": srPrevious, href: linkPrefix + (current - 1), id: "prev-link" }) })), jsx("div", { className: "ids-list-pagination__nav-links", children: renderLinks() }), current < pages && (jsx("div", { className: "ids-list-pagination__next-link", children: jsx("a", { "aria-label": srNext, href: linkPrefix + (current + 1), id: "next-link" }) }))] })] }));
46
29
  }
47
30
  IDSListPaginationLinks.displayName = "IDSListPaginationLinks";
48
31
 
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import "@inera/ids-design/components/list-pagination/list-pagination.css";
3
+ export interface IDSListPaginationSummaryProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ showing?: string;
5
+ from?: number;
6
+ to?: number;
7
+ of?: string;
8
+ total?: number;
9
+ }
10
+ export declare function IDSListPaginationSummary({ showing, from, to, of, total, className, ...props }: IDSListPaginationSummaryProps): React.JSX.Element;
11
+ export declare namespace IDSListPaginationSummary {
12
+ var displayName: string;
13
+ }
@@ -0,0 +1,9 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import '@inera/ids-design/components/list-pagination/list-pagination.css';
3
+
4
+ function IDSListPaginationSummary({ showing = "Visar", from = 0, to = 0, of = "av", total = 0, className, ...props }) {
5
+ return jsx("div", { className: "ids-list-pagination__summary", ...props, children: `${showing} ${from} - ${to} ${of} ${total}` });
6
+ }
7
+ IDSListPaginationSummary.displayName = "IDSListPaginationSummary";
8
+
9
+ export { IDSListPaginationSummary };
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { JSX } from "react";
2
2
  import "@inera/ids-design/components/list-pagination/list-pagination.css";
3
3
  export interface IDSListPaginationProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  showing?: string;
@@ -13,11 +13,12 @@ export interface IDSListPaginationProps extends React.HTMLAttributes<HTMLDivElem
13
13
  srPrevious?: string;
14
14
  srNext?: string;
15
15
  srNav?: string;
16
+ noSummary?: boolean;
16
17
  onChangePage?: (page: number) => void;
17
18
  onPrevPage?: (page: number) => void;
18
19
  onNextPage?: (page: number) => void;
19
20
  }
20
- export declare function IDSListPagination({ showing, from, to, of, total, current, pages, srCurrentPage, srGoToPage, srPrevious, srNext, srNav, onChangePage, onPrevPage, onNextPage, className, ...props }: IDSListPaginationProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function IDSListPagination({ showing, from, to, of, total, current, pages, srCurrentPage, srGoToPage, srPrevious, srNext, srNav, noSummary, onChangePage, onPrevPage, onNextPage, className, ...props }: IDSListPaginationProps): JSX.Element;
21
22
  export declare namespace IDSListPagination {
22
23
  var displayName: string;
23
24
  }