@postenbring/hedwig-react 0.0.53 → 0.0.55

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 (447) hide show
  1. package/LICENSE +19 -0
  2. package/dist/_tsup-dts-rollup.d.mts +482 -232
  3. package/dist/_tsup-dts-rollup.d.ts +482 -232
  4. package/dist/accordion/accordion-content.d.mts +2 -2
  5. package/dist/accordion/accordion-content.d.ts +2 -2
  6. package/dist/accordion/accordion-content.mjs +2 -2
  7. package/dist/accordion/accordion-header.d.mts +2 -2
  8. package/dist/accordion/accordion-header.d.ts +2 -2
  9. package/dist/accordion/accordion-header.js +2 -5
  10. package/dist/accordion/accordion-header.js.map +1 -1
  11. package/dist/accordion/accordion-header.mjs +2 -2
  12. package/dist/accordion/accordion-item.d.mts +3 -3
  13. package/dist/accordion/accordion-item.d.ts +3 -3
  14. package/dist/accordion/accordion-item.mjs +2 -2
  15. package/dist/accordion/accordion.d.mts +2 -2
  16. package/dist/accordion/accordion.d.ts +2 -2
  17. package/dist/accordion/context.d.mts +2 -0
  18. package/dist/accordion/context.d.ts +2 -0
  19. package/dist/accordion/context.js +32 -0
  20. package/dist/accordion/context.js.map +1 -0
  21. package/dist/accordion/context.mjs +8 -0
  22. package/dist/accordion/index.d.mts +9 -9
  23. package/dist/accordion/index.d.ts +9 -9
  24. package/dist/accordion/index.js +2 -9
  25. package/dist/accordion/index.js.map +1 -1
  26. package/dist/accordion/index.mjs +5 -5
  27. package/dist/badge/badge.d.mts +5 -5
  28. package/dist/badge/badge.d.ts +5 -5
  29. package/dist/badge/index.d.mts +5 -5
  30. package/dist/badge/index.d.ts +5 -5
  31. package/dist/badge/index.js +0 -4
  32. package/dist/badge/index.js.map +1 -1
  33. package/dist/badge/index.mjs +1 -1
  34. package/dist/box/box.d.mts +4 -4
  35. package/dist/box/box.d.ts +4 -4
  36. package/dist/box/index.d.mts +4 -4
  37. package/dist/box/index.d.ts +4 -4
  38. package/dist/box/index.js +0 -4
  39. package/dist/box/index.js.map +1 -1
  40. package/dist/box/index.mjs +1 -1
  41. package/dist/breadcrumb/breadcrumb.d.mts +2 -2
  42. package/dist/breadcrumb/breadcrumb.d.ts +2 -2
  43. package/dist/breadcrumb/breadcrumb.js.map +1 -1
  44. package/dist/breadcrumb/breadcrumb.mjs +1 -1
  45. package/dist/breadcrumb/index.d.mts +2 -2
  46. package/dist/breadcrumb/index.d.ts +2 -2
  47. package/dist/breadcrumb/index.js +0 -4
  48. package/dist/breadcrumb/index.js.map +1 -1
  49. package/dist/breadcrumb/index.mjs +2 -2
  50. package/dist/button/button.d.mts +4 -4
  51. package/dist/button/button.d.ts +4 -4
  52. package/dist/button/index.d.mts +4 -4
  53. package/dist/button/index.d.ts +4 -4
  54. package/dist/button/index.js +0 -4
  55. package/dist/button/index.js.map +1 -1
  56. package/dist/button/index.mjs +1 -1
  57. package/dist/card/card.d.mts +12 -12
  58. package/dist/card/card.d.ts +12 -12
  59. package/dist/card/index.d.mts +12 -12
  60. package/dist/card/index.d.ts +12 -12
  61. package/dist/card/index.js +0 -4
  62. package/dist/card/index.js.map +1 -1
  63. package/dist/card/index.mjs +1 -1
  64. package/dist/{chunk-RT2VPRZN.mjs → chunk-22GG466D.mjs} +1 -5
  65. package/dist/chunk-22GG466D.mjs.map +1 -0
  66. package/dist/{chunk-X2YMLUE4.mjs → chunk-2XSEQBJ5.mjs} +7 -3
  67. package/dist/chunk-2XSEQBJ5.mjs.map +1 -0
  68. package/dist/{chunk-642AR63O.mjs → chunk-33JD5XDW.mjs} +1 -1
  69. package/dist/{chunk-SLOG3T7V.mjs → chunk-3ADVRQ3D.mjs} +1 -1
  70. package/dist/chunk-3ADVRQ3D.mjs.map +1 -0
  71. package/dist/chunk-3D2MWIEX.mjs +1 -0
  72. package/dist/chunk-3D2MWIEX.mjs.map +1 -0
  73. package/dist/chunk-52XZAPT6.mjs +23 -0
  74. package/dist/chunk-52XZAPT6.mjs.map +1 -0
  75. package/dist/{chunk-PQ6WEGLM.mjs → chunk-5T3VUFL4.mjs} +4 -4
  76. package/dist/{chunk-74JOQ6RA.mjs → chunk-5WUSLDKN.mjs} +2 -2
  77. package/dist/chunk-7LPYJC6S.mjs +1 -0
  78. package/dist/chunk-7LPYJC6S.mjs.map +1 -0
  79. package/dist/chunk-AGZHQDCQ.mjs +1 -0
  80. package/dist/chunk-AGZHQDCQ.mjs.map +1 -0
  81. package/dist/chunk-BYEJZSG5.mjs +1 -0
  82. package/dist/chunk-BYEJZSG5.mjs.map +1 -0
  83. package/dist/{chunk-EQIGUHKL.mjs → chunk-C3HIZBXH.mjs} +2 -2
  84. package/dist/{chunk-HNBNPFJN.mjs → chunk-D2YCZMUP.mjs} +8 -6
  85. package/dist/chunk-D2YCZMUP.mjs.map +1 -0
  86. package/dist/{chunk-DN5KNI4C.mjs → chunk-DVFL3S5W.mjs} +2 -2
  87. package/dist/chunk-E2LKLNGA.mjs +1 -0
  88. package/dist/chunk-E2LKLNGA.mjs.map +1 -0
  89. package/dist/{chunk-JKC4NAFI.mjs → chunk-EJJIKLGC.mjs} +1 -1
  90. package/dist/chunk-EJJIKLGC.mjs.map +1 -0
  91. package/dist/{chunk-FIXRYHV7.mjs → chunk-ELCSEPSM.mjs} +8 -6
  92. package/dist/chunk-ELCSEPSM.mjs.map +1 -0
  93. package/dist/{chunk-PRQWCNN3.mjs → chunk-FL4LCX4F.mjs} +4 -8
  94. package/dist/chunk-FL4LCX4F.mjs.map +1 -0
  95. package/dist/{chunk-HHZ4Q5WR.mjs → chunk-GAKMKOPK.mjs} +4 -17
  96. package/dist/chunk-GAKMKOPK.mjs.map +1 -0
  97. package/dist/{chunk-IZ5YU4K5.mjs → chunk-GPV2IEZD.mjs} +5 -8
  98. package/dist/chunk-GPV2IEZD.mjs.map +1 -0
  99. package/dist/chunk-HT2EIJAD.mjs +1 -0
  100. package/dist/chunk-HT2EIJAD.mjs.map +1 -0
  101. package/dist/chunk-JKCVB5TR.mjs +1 -0
  102. package/dist/chunk-JKCVB5TR.mjs.map +1 -0
  103. package/dist/chunk-JTZPQHKD.mjs +1 -0
  104. package/dist/chunk-JTZPQHKD.mjs.map +1 -0
  105. package/dist/chunk-K6PP3ACJ.mjs +1 -0
  106. package/dist/chunk-K6PP3ACJ.mjs.map +1 -0
  107. package/dist/chunk-KOAR6LZG.mjs +1 -0
  108. package/dist/chunk-KOAR6LZG.mjs.map +1 -0
  109. package/dist/chunk-LMF3QGSF.mjs +1 -0
  110. package/dist/chunk-LMF3QGSF.mjs.map +1 -0
  111. package/dist/chunk-MJ4LA23N.mjs +17 -0
  112. package/dist/chunk-MJ4LA23N.mjs.map +1 -0
  113. package/dist/chunk-MQ3EEUTP.mjs +1 -0
  114. package/dist/chunk-MQ3EEUTP.mjs.map +1 -0
  115. package/dist/chunk-MSFHJVHD.mjs +1 -0
  116. package/dist/chunk-MSFHJVHD.mjs.map +1 -0
  117. package/dist/chunk-NCYRNCGJ.mjs +107 -0
  118. package/dist/chunk-NCYRNCGJ.mjs.map +1 -0
  119. package/dist/chunk-NSLSA7F7.mjs +1 -0
  120. package/dist/chunk-NSLSA7F7.mjs.map +1 -0
  121. package/dist/{chunk-OCIM3ZEV.mjs → chunk-NTCLPQG3.mjs} +1 -1
  122. package/dist/chunk-NTCLPQG3.mjs.map +1 -0
  123. package/dist/chunk-OIQUYB26.mjs +1 -0
  124. package/dist/chunk-OIQUYB26.mjs.map +1 -0
  125. package/dist/{chunk-T6YKS5OS.mjs → chunk-PAVPAIBQ.mjs} +8 -10
  126. package/dist/chunk-PAVPAIBQ.mjs.map +1 -0
  127. package/dist/chunk-QOBS2TS5.mjs +15 -0
  128. package/dist/chunk-QOBS2TS5.mjs.map +1 -0
  129. package/dist/chunk-T24JZIQO.mjs +1 -0
  130. package/dist/chunk-T24JZIQO.mjs.map +1 -0
  131. package/dist/chunk-T3EC54VN.mjs +26 -0
  132. package/dist/chunk-T3EC54VN.mjs.map +1 -0
  133. package/dist/chunk-TJH5QJMS.mjs +1 -0
  134. package/dist/chunk-TJH5QJMS.mjs.map +1 -0
  135. package/dist/{chunk-VMS2DOQD.mjs → chunk-V3PAFMK5.mjs} +1 -1
  136. package/dist/{chunk-KJKJXZBT.mjs → chunk-VUD7AVYO.mjs} +2 -2
  137. package/dist/{chunk-FMMNEKSR.mjs → chunk-WCA2WPFS.mjs} +1 -1
  138. package/dist/{chunk-4WJBW37S.mjs → chunk-WXU2FTGO.mjs} +5 -5
  139. package/dist/chunk-XLLYMQLW.mjs +1 -0
  140. package/dist/chunk-XLLYMQLW.mjs.map +1 -0
  141. package/dist/{chunk-GS3KAIE7.mjs → chunk-XU3GLCG4.mjs} +3 -9
  142. package/dist/chunk-XU3GLCG4.mjs.map +1 -0
  143. package/dist/chunk-Y5SUMFYJ.mjs +1 -0
  144. package/dist/chunk-Y5SUMFYJ.mjs.map +1 -0
  145. package/dist/{chunk-KTT3R42Z.mjs → chunk-YJBADJDW.mjs} +2 -18
  146. package/dist/chunk-YJBADJDW.mjs.map +1 -0
  147. package/dist/chunk-YJOOSTJC.mjs +1 -0
  148. package/dist/chunk-YJOOSTJC.mjs.map +1 -0
  149. package/dist/chunk-ZOCMUEOX.mjs +1 -0
  150. package/dist/chunk-ZOCMUEOX.mjs.map +1 -0
  151. package/dist/chunk-ZOW7HKNV.mjs +13 -0
  152. package/dist/chunk-ZOW7HKNV.mjs.map +1 -0
  153. package/dist/form/checkbox/checkbox.d.mts +2 -2
  154. package/dist/form/checkbox/checkbox.d.ts +2 -2
  155. package/dist/form/checkbox/checkbox.js +7 -5
  156. package/dist/form/checkbox/checkbox.js.map +1 -1
  157. package/dist/form/checkbox/checkbox.mjs +1 -1
  158. package/dist/form/checkbox/index.d.mts +2 -2
  159. package/dist/form/checkbox/index.d.ts +2 -2
  160. package/dist/form/checkbox/index.js +7 -9
  161. package/dist/form/checkbox/index.js.map +1 -1
  162. package/dist/form/checkbox/index.mjs +2 -2
  163. package/dist/form/error-message/error-message.d.mts +2 -2
  164. package/dist/form/error-message/error-message.d.ts +2 -2
  165. package/dist/form/error-message/index.d.mts +2 -2
  166. package/dist/form/error-message/index.d.ts +2 -2
  167. package/dist/form/error-message/index.js +0 -4
  168. package/dist/form/error-message/index.js.map +1 -1
  169. package/dist/form/error-message/index.mjs +1 -1
  170. package/dist/form/fieldset/fieldset.d.mts +2 -2
  171. package/dist/form/fieldset/fieldset.d.ts +2 -2
  172. package/dist/form/fieldset/fieldset.js +0 -6
  173. package/dist/form/fieldset/fieldset.js.map +1 -1
  174. package/dist/form/fieldset/fieldset.mjs +1 -1
  175. package/dist/form/fieldset/index.d.mts +2 -2
  176. package/dist/form/fieldset/index.d.ts +2 -2
  177. package/dist/form/fieldset/index.js +0 -10
  178. package/dist/form/fieldset/index.js.map +1 -1
  179. package/dist/form/fieldset/index.mjs +2 -2
  180. package/dist/form/index.d.mts +14 -12
  181. package/dist/form/index.d.ts +14 -12
  182. package/dist/form/index.js +16 -61
  183. package/dist/form/index.js.map +1 -1
  184. package/dist/form/index.mjs +15 -12
  185. package/dist/form/input/index.d.mts +2 -2
  186. package/dist/form/input/index.d.ts +2 -2
  187. package/dist/form/input/index.js +0 -17
  188. package/dist/form/input/index.js.map +1 -1
  189. package/dist/form/input/index.mjs +3 -3
  190. package/dist/form/input/input.d.mts +2 -2
  191. package/dist/form/input/input.d.ts +2 -2
  192. package/dist/form/input/input.js +0 -12
  193. package/dist/form/input/input.js.map +1 -1
  194. package/dist/form/input/input.mjs +2 -2
  195. package/dist/form/input-group/index.js +0 -10
  196. package/dist/form/input-group/index.js.map +1 -1
  197. package/dist/form/input-group/index.mjs +2 -2
  198. package/dist/form/input-group/input-group.js +0 -6
  199. package/dist/form/input-group/input-group.js.map +1 -1
  200. package/dist/form/input-group/input-group.mjs +1 -1
  201. package/dist/form/radiobutton/index.d.mts +2 -2
  202. package/dist/form/radiobutton/index.d.ts +2 -2
  203. package/dist/form/radiobutton/index.js +7 -9
  204. package/dist/form/radiobutton/index.js.map +1 -1
  205. package/dist/form/radiobutton/index.mjs +2 -2
  206. package/dist/form/radiobutton/radiobutton.d.mts +2 -2
  207. package/dist/form/radiobutton/radiobutton.d.ts +2 -2
  208. package/dist/form/radiobutton/radiobutton.js +7 -5
  209. package/dist/form/radiobutton/radiobutton.js.map +1 -1
  210. package/dist/form/radiobutton/radiobutton.mjs +1 -1
  211. package/dist/form/select/index.d.mts +2 -2
  212. package/dist/form/select/index.d.ts +2 -2
  213. package/dist/form/select/index.js +0 -17
  214. package/dist/form/select/index.js.map +1 -1
  215. package/dist/form/select/index.mjs +3 -3
  216. package/dist/form/select/select.d.mts +2 -2
  217. package/dist/form/select/select.d.ts +2 -2
  218. package/dist/form/select/select.js +0 -12
  219. package/dist/form/select/select.js.map +1 -1
  220. package/dist/form/select/select.mjs +2 -2
  221. package/dist/form/textarea/index.d.mts +2 -2
  222. package/dist/form/textarea/index.d.ts +2 -2
  223. package/dist/form/textarea/index.js +0 -17
  224. package/dist/form/textarea/index.js.map +1 -1
  225. package/dist/form/textarea/index.mjs +3 -3
  226. package/dist/form/textarea/textarea.d.mts +2 -2
  227. package/dist/form/textarea/textarea.d.ts +2 -2
  228. package/dist/form/textarea/textarea.js +0 -12
  229. package/dist/form/textarea/textarea.js.map +1 -1
  230. package/dist/form/textarea/textarea.mjs +2 -2
  231. package/dist/index-no-css.d.mts +136 -0
  232. package/dist/index-no-css.d.ts +136 -0
  233. package/dist/index-no-css.js +2041 -0
  234. package/dist/index-no-css.js.map +1 -0
  235. package/dist/index-no-css.mjs +251 -0
  236. package/dist/index-no-css.mjs.map +1 -0
  237. package/dist/index.d.mts +136 -85
  238. package/dist/index.d.ts +136 -85
  239. package/dist/index.js +685 -446
  240. package/dist/index.js.map +1 -1
  241. package/dist/index.mjs +157 -77
  242. package/dist/index.mjs.map +1 -1
  243. package/dist/layout/container/container.d.mts +2 -2
  244. package/dist/layout/container/container.d.ts +2 -2
  245. package/dist/layout/index.d.mts +2 -2
  246. package/dist/layout/index.d.ts +2 -2
  247. package/dist/layout/index.js +0 -4
  248. package/dist/layout/index.js.map +1 -1
  249. package/dist/layout/index.mjs +1 -1
  250. package/dist/link/index.d.mts +2 -2
  251. package/dist/link/index.d.ts +2 -2
  252. package/dist/link/index.js +0 -4
  253. package/dist/link/index.js.map +1 -1
  254. package/dist/link/index.mjs +1 -1
  255. package/dist/link/link.d.mts +2 -2
  256. package/dist/link/link.d.ts +2 -2
  257. package/dist/list/description-list.d.mts +2 -2
  258. package/dist/list/description-list.d.ts +2 -2
  259. package/dist/list/index.d.mts +7 -7
  260. package/dist/list/index.d.ts +7 -7
  261. package/dist/list/index.js +2 -29
  262. package/dist/list/index.js.map +1 -1
  263. package/dist/list/index.mjs +3 -3
  264. package/dist/list/link-list.d.mts +2 -2
  265. package/dist/list/link-list.d.ts +2 -2
  266. package/dist/list/link-list.js +2 -24
  267. package/dist/list/link-list.js.map +1 -1
  268. package/dist/list/link-list.mjs +2 -2
  269. package/dist/list/list.d.mts +3 -3
  270. package/dist/list/list.d.ts +3 -3
  271. package/dist/list/list.js +1 -17
  272. package/dist/list/list.js.map +1 -1
  273. package/dist/list/list.mjs +1 -1
  274. package/dist/message/index.d.mts +1 -1
  275. package/dist/message/index.d.ts +1 -1
  276. package/dist/message/index.js +0 -5
  277. package/dist/message/index.js.map +1 -1
  278. package/dist/message/index.mjs +1 -1
  279. package/dist/message/message.d.mts +1 -1
  280. package/dist/message/message.d.ts +1 -1
  281. package/dist/modal/index.d.mts +6 -6
  282. package/dist/modal/index.d.ts +6 -6
  283. package/dist/modal/index.js +0 -5
  284. package/dist/modal/index.js.map +1 -1
  285. package/dist/modal/index.mjs +3 -3
  286. package/dist/modal/modal.d.mts +6 -6
  287. package/dist/modal/modal.d.ts +6 -6
  288. package/dist/modal/modal.mjs +2 -2
  289. package/dist/navbar/index.d.mts +5 -5
  290. package/dist/navbar/index.d.ts +5 -5
  291. package/dist/navbar/index.js +0 -4
  292. package/dist/navbar/index.js.map +1 -1
  293. package/dist/navbar/index.mjs +4 -24
  294. package/dist/navbar/index.mjs.map +1 -1
  295. package/dist/navbar/navbar.d.mts +5 -5
  296. package/dist/navbar/navbar.d.ts +5 -5
  297. package/dist/show-more/auto-animate-height.d.mts +2 -1
  298. package/dist/show-more/auto-animate-height.d.ts +2 -1
  299. package/dist/show-more/auto-animate-height.js.map +1 -1
  300. package/dist/show-more/auto-animate-height.mjs +1 -1
  301. package/dist/show-more/index.d.mts +4 -0
  302. package/dist/show-more/index.d.ts +4 -0
  303. package/dist/show-more/index.js +163 -0
  304. package/dist/show-more/index.js.map +1 -0
  305. package/dist/show-more/index.mjs +13 -0
  306. package/dist/show-more/index.mjs.map +1 -0
  307. package/dist/show-more/show-more.d.mts +2 -1
  308. package/dist/show-more/show-more.d.ts +2 -1
  309. package/dist/show-more/show-more.js +6 -2
  310. package/dist/show-more/show-more.js.map +1 -1
  311. package/dist/show-more/show-more.mjs +1 -1
  312. package/dist/skeleton/index.d.mts +2 -0
  313. package/dist/skeleton/index.d.ts +2 -0
  314. package/dist/skeleton/index.js +81 -0
  315. package/dist/skeleton/index.js.map +1 -0
  316. package/dist/skeleton/index.mjs +9 -0
  317. package/dist/skeleton/index.mjs.map +1 -0
  318. package/dist/skeleton/skeleton.d.mts +2 -2
  319. package/dist/skeleton/skeleton.d.ts +2 -2
  320. package/dist/skeleton/skeleton.js.map +1 -1
  321. package/dist/skeleton/skeleton.mjs +1 -1
  322. package/dist/step-indicator/index.d.mts +1 -0
  323. package/dist/step-indicator/index.d.ts +1 -0
  324. package/dist/step-indicator/index.js +112 -0
  325. package/dist/step-indicator/index.js.map +1 -0
  326. package/dist/step-indicator/index.mjs +9 -0
  327. package/dist/step-indicator/index.mjs.map +1 -0
  328. package/dist/step-indicator/step-indicator.d.mts +1 -1
  329. package/dist/step-indicator/step-indicator.d.ts +1 -1
  330. package/dist/step-indicator/step-indicator.js +7 -9
  331. package/dist/step-indicator/step-indicator.js.map +1 -1
  332. package/dist/step-indicator/step-indicator.mjs +1 -1
  333. package/dist/styled-html/index.d.mts +2 -0
  334. package/dist/styled-html/index.d.ts +2 -0
  335. package/dist/styled-html/index.js +84 -0
  336. package/dist/styled-html/index.js.map +1 -0
  337. package/dist/styled-html/index.mjs +9 -0
  338. package/dist/styled-html/index.mjs.map +1 -0
  339. package/dist/styled-html/styled-html.d.mts +2 -2
  340. package/dist/styled-html/styled-html.d.ts +2 -2
  341. package/dist/tabs/context.d.mts +2 -0
  342. package/dist/tabs/context.d.ts +2 -0
  343. package/dist/tabs/context.js +38 -0
  344. package/dist/tabs/context.js.map +1 -0
  345. package/dist/tabs/context.mjs +8 -0
  346. package/dist/tabs/context.mjs.map +1 -0
  347. package/dist/tabs/index.d.mts +10 -10
  348. package/dist/tabs/index.d.ts +10 -10
  349. package/dist/tabs/index.js +0 -4
  350. package/dist/tabs/index.js.map +1 -1
  351. package/dist/tabs/index.mjs +6 -6
  352. package/dist/tabs/tabs-content.d.mts +4 -4
  353. package/dist/tabs/tabs-content.d.ts +4 -4
  354. package/dist/tabs/tabs-content.mjs +2 -2
  355. package/dist/tabs/tabs-list.d.mts +4 -4
  356. package/dist/tabs/tabs-list.d.ts +4 -4
  357. package/dist/tabs/tabs-list.mjs +3 -3
  358. package/dist/tabs/tabs.d.mts +2 -2
  359. package/dist/tabs/tabs.d.ts +2 -2
  360. package/dist/tabs/tabs.mjs +2 -2
  361. package/dist/typography/index.d.mts +42 -42
  362. package/dist/typography/index.d.ts +42 -42
  363. package/dist/typography/index.js +0 -4
  364. package/dist/typography/index.js.map +1 -1
  365. package/dist/typography/index.mjs +43 -64
  366. package/dist/typography/index.mjs.map +1 -1
  367. package/dist/typography/typography.d.mts +2 -2
  368. package/dist/typography/typography.d.ts +2 -2
  369. package/dist/utils.d.mts +3 -0
  370. package/dist/utils.d.ts +3 -0
  371. package/dist/utils.js +83 -0
  372. package/dist/utils.js.map +1 -0
  373. package/dist/utils.mjs +10 -0
  374. package/dist/utils.mjs.map +1 -0
  375. package/dist/warning-banner/index.d.mts +2 -2
  376. package/dist/warning-banner/index.d.ts +2 -2
  377. package/dist/warning-banner/index.js +2 -25
  378. package/dist/warning-banner/index.js.map +1 -1
  379. package/dist/warning-banner/index.mjs +3 -3
  380. package/dist/warning-banner/warning-banner.d.mts +2 -2
  381. package/dist/warning-banner/warning-banner.d.ts +2 -2
  382. package/dist/warning-banner/warning-banner.js +2 -21
  383. package/dist/warning-banner/warning-banner.js.map +1 -1
  384. package/dist/warning-banner/warning-banner.mjs +2 -2
  385. package/package.json +13 -9
  386. package/dist/chunk-47Z7UJK7.mjs +0 -6
  387. package/dist/chunk-47Z7UJK7.mjs.map +0 -1
  388. package/dist/chunk-6E4N2IN7.mjs +0 -6
  389. package/dist/chunk-6E4N2IN7.mjs.map +0 -1
  390. package/dist/chunk-77KV3LA6.mjs +0 -20
  391. package/dist/chunk-77KV3LA6.mjs.map +0 -1
  392. package/dist/chunk-7UANCJA2.mjs +0 -6
  393. package/dist/chunk-7UANCJA2.mjs.map +0 -1
  394. package/dist/chunk-A6Y3TQYS.mjs +0 -6
  395. package/dist/chunk-A6Y3TQYS.mjs.map +0 -1
  396. package/dist/chunk-EF443SG5.mjs +0 -7
  397. package/dist/chunk-EF443SG5.mjs.map +0 -1
  398. package/dist/chunk-F4VCCLLF.mjs +0 -1
  399. package/dist/chunk-FFA6SBK6.mjs +0 -17
  400. package/dist/chunk-FFA6SBK6.mjs.map +0 -1
  401. package/dist/chunk-FIXRYHV7.mjs.map +0 -1
  402. package/dist/chunk-GS3KAIE7.mjs.map +0 -1
  403. package/dist/chunk-H5GI3A3Y.mjs +0 -22
  404. package/dist/chunk-H5GI3A3Y.mjs.map +0 -1
  405. package/dist/chunk-HHZ4Q5WR.mjs.map +0 -1
  406. package/dist/chunk-HNBNPFJN.mjs.map +0 -1
  407. package/dist/chunk-IIMW6QXV.mjs +0 -7
  408. package/dist/chunk-IIMW6QXV.mjs.map +0 -1
  409. package/dist/chunk-IZ5YU4K5.mjs.map +0 -1
  410. package/dist/chunk-JKC4NAFI.mjs.map +0 -1
  411. package/dist/chunk-KTT3R42Z.mjs.map +0 -1
  412. package/dist/chunk-O5MQCET3.mjs +0 -7
  413. package/dist/chunk-O5MQCET3.mjs.map +0 -1
  414. package/dist/chunk-OCIM3ZEV.mjs.map +0 -1
  415. package/dist/chunk-ODJ2XHCM.mjs +0 -6
  416. package/dist/chunk-ODJ2XHCM.mjs.map +0 -1
  417. package/dist/chunk-OMDDUYGE.mjs +0 -6
  418. package/dist/chunk-OMDDUYGE.mjs.map +0 -1
  419. package/dist/chunk-ONBXZWHW.mjs +0 -27
  420. package/dist/chunk-ONBXZWHW.mjs.map +0 -1
  421. package/dist/chunk-PRQWCNN3.mjs.map +0 -1
  422. package/dist/chunk-ROX4JPO3.mjs +0 -6
  423. package/dist/chunk-ROX4JPO3.mjs.map +0 -1
  424. package/dist/chunk-RT2VPRZN.mjs.map +0 -1
  425. package/dist/chunk-SLOG3T7V.mjs.map +0 -1
  426. package/dist/chunk-T42X5AZM.mjs +0 -7
  427. package/dist/chunk-T42X5AZM.mjs.map +0 -1
  428. package/dist/chunk-T6YKS5OS.mjs.map +0 -1
  429. package/dist/chunk-WQU3PHD4.mjs +0 -6
  430. package/dist/chunk-WQU3PHD4.mjs.map +0 -1
  431. package/dist/chunk-X2YMLUE4.mjs.map +0 -1
  432. package/dist/chunk-XGJBOGZJ.mjs +0 -6
  433. package/dist/chunk-XGJBOGZJ.mjs.map +0 -1
  434. package/dist/chunk-XVCDHQ7W.mjs +0 -6
  435. package/dist/chunk-XVCDHQ7W.mjs.map +0 -1
  436. package/dist/chunk-YDWBUHBY.mjs +0 -6
  437. package/dist/chunk-YDWBUHBY.mjs.map +0 -1
  438. /package/dist/{chunk-F4VCCLLF.mjs.map → accordion/context.mjs.map} +0 -0
  439. /package/dist/{chunk-642AR63O.mjs.map → chunk-33JD5XDW.mjs.map} +0 -0
  440. /package/dist/{chunk-PQ6WEGLM.mjs.map → chunk-5T3VUFL4.mjs.map} +0 -0
  441. /package/dist/{chunk-74JOQ6RA.mjs.map → chunk-5WUSLDKN.mjs.map} +0 -0
  442. /package/dist/{chunk-EQIGUHKL.mjs.map → chunk-C3HIZBXH.mjs.map} +0 -0
  443. /package/dist/{chunk-DN5KNI4C.mjs.map → chunk-DVFL3S5W.mjs.map} +0 -0
  444. /package/dist/{chunk-VMS2DOQD.mjs.map → chunk-V3PAFMK5.mjs.map} +0 -0
  445. /package/dist/{chunk-KJKJXZBT.mjs.map → chunk-VUD7AVYO.mjs.map} +0 -0
  446. /package/dist/{chunk-FMMNEKSR.mjs.map → chunk-WCA2WPFS.mjs.map} +0 -0
  447. /package/dist/{chunk-4WJBW37S.mjs.map → chunk-WXU2FTGO.mjs.map} +0 -0
@@ -0,0 +1,2041 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/index-no-css.tsx
60
+ var index_no_css_exports = {};
61
+ __export(index_no_css_exports, {
62
+ Accordion: () => AccordionComponent,
63
+ AutoAnimateHeight: () => AutoAnimateHeight,
64
+ Badge: () => Badge,
65
+ Body: () => Body,
66
+ BodySmall: () => BodySmall,
67
+ BodySmallTitle: () => BodySmallTitle,
68
+ BodyTitle: () => BodyTitle,
69
+ Box: () => BoxComponent,
70
+ Breadcrumbs: () => Breadcrumbs,
71
+ Caption: () => Caption,
72
+ CaptionTitle: () => CaptionTitle,
73
+ Card: () => CardComponent,
74
+ Checkbox: () => Checkbox,
75
+ Container: () => Container,
76
+ DarkBadge: () => DarkBadge,
77
+ DescriptionList: () => DescriptionList,
78
+ ErrorMessage: () => ErrorMessage,
79
+ Fieldset: () => Fieldset,
80
+ H1: () => H1,
81
+ H1Display: () => H1Display,
82
+ H2: () => H2,
83
+ H3: () => H3,
84
+ H3Title: () => H3Title,
85
+ Input: () => Input,
86
+ Link: () => Link,
87
+ LinkList: () => LinkList,
88
+ Message: () => MessageComponent,
89
+ Modal: () => ModalComponent,
90
+ Navbar: () => NavbarComponent,
91
+ OrderedList: () => OrderedList,
92
+ PrimaryButton: () => PrimaryButton,
93
+ Radiobutton: () => Radiobutton,
94
+ SecondaryButton: () => SecondaryButton,
95
+ Select: () => Select,
96
+ ShowMoreButton: () => ShowMoreButton,
97
+ Skeleton: () => Skeleton,
98
+ StepIndicator: () => StepIndicator,
99
+ StyledHtml: () => StyledHtml,
100
+ Tabs: () => TabsComponent,
101
+ Technical: () => Technical,
102
+ TechnicalTitle: () => TechnicalTitle,
103
+ Text: () => Text,
104
+ TextBody: () => TextBody,
105
+ TextBodySmall: () => TextBodySmall,
106
+ TextBodySmallTitle: () => TextBodySmallTitle,
107
+ TextBodyTitle: () => TextBodyTitle,
108
+ TextCaption: () => TextCaption,
109
+ TextCaptionTitle: () => TextCaptionTitle,
110
+ TextH1: () => TextH1,
111
+ TextH1Display: () => TextH1Display,
112
+ TextH2: () => TextH2,
113
+ TextH3: () => TextH3,
114
+ TextH3Title: () => TextH3Title,
115
+ TextTechnical: () => TextTechnical,
116
+ TextTechnicalTitle: () => TextTechnicalTitle,
117
+ Textarea: () => Textarea,
118
+ Typography: () => Typography,
119
+ TypographyBody: () => TypographyBody,
120
+ TypographyBodySmall: () => TypographyBodySmall,
121
+ TypographyBodySmallTitle: () => TypographyBodySmallTitle,
122
+ TypographyBodyTitle: () => TypographyBodyTitle,
123
+ TypographyCaption: () => TypographyCaption,
124
+ TypographyCaptionTitle: () => TypographyCaptionTitle,
125
+ TypographyH1: () => TypographyH1,
126
+ TypographyH1Display: () => TypographyH1Display,
127
+ TypographyH2: () => TypographyH2,
128
+ TypographyH3: () => TypographyH3,
129
+ TypographyH3Title: () => TypographyH3Title,
130
+ TypographyTechnical: () => TypographyTechnical,
131
+ TypographyTechnicalTitle: () => TypographyTechnicalTitle,
132
+ UnorderedList: () => UnorderedList,
133
+ WarningBadge: () => WarningBadge,
134
+ WarningBanner: () => WarningBanner,
135
+ WhiteBadge: () => WhiteBadge
136
+ });
137
+ module.exports = __toCommonJS(index_no_css_exports);
138
+
139
+ // src/accordion/accordion.tsx
140
+ var import_react = require("react");
141
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
142
+ var import_jsx_runtime = require("react/jsx-runtime");
143
+ var Accordion = (0, import_react.forwardRef)(
144
+ (_a, ref) => {
145
+ var _b = _a, { as: Component = "div", children, className, indent = true } = _b, rest = __objRest(_b, ["as", "children", "className", "indent"]);
146
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
147
+ Component,
148
+ __spreadProps(__spreadValues({}, rest), {
149
+ className: (0, import_typed_classname.clsx)(
150
+ "hds-accordion",
151
+ !indent && "hds-accordion--no-indent",
152
+ className
153
+ ),
154
+ ref,
155
+ children
156
+ })
157
+ );
158
+ }
159
+ );
160
+ Accordion.displayName = "Accordion";
161
+
162
+ // src/accordion/accordion-item.tsx
163
+ var import_react3 = require("react");
164
+ var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
165
+
166
+ // src/accordion/context.ts
167
+ var import_react2 = require("react");
168
+ var AccordionItemContext = (0, import_react2.createContext)(null);
169
+
170
+ // src/accordion/accordion-item.tsx
171
+ var import_jsx_runtime2 = require("react/jsx-runtime");
172
+ var AccordionItem = (0, import_react3.forwardRef)(
173
+ (_a, ref) => {
174
+ var _b = _a, {
175
+ as: Component = "div",
176
+ children,
177
+ defaultOpen,
178
+ open: outerOpen,
179
+ onOpenChange,
180
+ className
181
+ } = _b, rest = __objRest(_b, [
182
+ "as",
183
+ "children",
184
+ "defaultOpen",
185
+ "open",
186
+ "onOpenChange",
187
+ "className"
188
+ ]);
189
+ const [innerOpen, setInnerOpen] = (0, import_react3.useState)(defaultOpen != null ? defaultOpen : false);
190
+ const open = outerOpen != null ? outerOpen : innerOpen;
191
+ const handleOpen = () => {
192
+ if (outerOpen !== void 0) {
193
+ onOpenChange && onOpenChange(!open);
194
+ } else {
195
+ setInnerOpen(!open);
196
+ }
197
+ };
198
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
199
+ Component,
200
+ __spreadProps(__spreadValues({}, rest), {
201
+ className: (0, import_typed_classname2.clsx)(
202
+ "hds-accordion-item",
203
+ {
204
+ "hds-accordion-item__expanded": open
205
+ },
206
+ className
207
+ ),
208
+ ref,
209
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AccordionItemContext.Provider, { value: { open, setOpen: handleOpen }, children })
210
+ })
211
+ );
212
+ }
213
+ );
214
+ AccordionItem.displayName = "Accordion.Item";
215
+
216
+ // src/accordion/accordion-header.tsx
217
+ var import_react4 = require("react");
218
+ var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
219
+ var import_jsx_runtime3 = require("react/jsx-runtime");
220
+ var AccordionHeader = (0, import_react4.forwardRef)((_a, ref) => {
221
+ var _b = _a, { as: Component = "button", children, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "className", "onClick"]);
222
+ const itemContext = (0, import_react4.useContext)(AccordionItemContext);
223
+ if (itemContext === null) {
224
+ return null;
225
+ }
226
+ const expandOrCollapse = (e) => {
227
+ itemContext.setOpen(!itemContext.open);
228
+ onClick && onClick(e);
229
+ };
230
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
231
+ Component,
232
+ __spreadProps(__spreadValues({}, rest), {
233
+ "aria-expanded": itemContext.open,
234
+ className: (0, import_typed_classname3.clsx)(
235
+ "hds-accordion-item-header",
236
+ { "hds-accordion-item-header--open": itemContext.open },
237
+ className
238
+ ),
239
+ onClick: expandOrCollapse,
240
+ ref,
241
+ type: "button",
242
+ children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children })
243
+ })
244
+ );
245
+ });
246
+ AccordionHeader.displayName = "Accordion.Header";
247
+
248
+ // src/accordion/accordion-content.tsx
249
+ var import_react5 = require("react");
250
+ var import_typed_classname4 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
251
+ var import_jsx_runtime4 = require("react/jsx-runtime");
252
+ var AccordionContent = (0, import_react5.forwardRef)((_a, ref) => {
253
+ var _b = _a, { as: Component = "div", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
254
+ const context = (0, import_react5.useContext)(AccordionItemContext);
255
+ if (context === null) {
256
+ return null;
257
+ }
258
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
259
+ Component,
260
+ __spreadProps(__spreadValues({
261
+ "aria-hidden": !context.open
262
+ }, rest), {
263
+ className: (0, import_typed_classname4.clsx)(
264
+ "hds-accordion-item-content",
265
+ {
266
+ "hds-accordion-item-content--closed": !context.open
267
+ },
268
+ className
269
+ ),
270
+ ref,
271
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: (0, import_typed_classname4.clsx)("hds-accordion-item-content-inner"), children })
272
+ })
273
+ );
274
+ });
275
+ AccordionContent.displayName = "Accordion.Content";
276
+
277
+ // src/accordion/index.tsx
278
+ var AccordionComponent = Accordion;
279
+ AccordionComponent.Item = AccordionItem;
280
+ AccordionComponent.Header = AccordionHeader;
281
+ AccordionComponent.Content = AccordionContent;
282
+
283
+ // src/badge/badge.tsx
284
+ var import_typed_classname5 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
285
+ var import_jsx_runtime5 = require("react/jsx-runtime");
286
+ function BaseBadge(_a) {
287
+ var _b = _a, {
288
+ children,
289
+ variant,
290
+ size = "small",
291
+ className
292
+ } = _b, rest = __objRest(_b, [
293
+ "children",
294
+ "variant",
295
+ "size",
296
+ "className"
297
+ ]);
298
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
299
+ "span",
300
+ __spreadProps(__spreadValues({
301
+ className: (0, import_typed_classname5.clsx)(
302
+ "hds-badge",
303
+ `hds-badge--${size}`,
304
+ `hds-badge--${variant}`,
305
+ className
306
+ )
307
+ }, rest), {
308
+ children
309
+ })
310
+ );
311
+ }
312
+ BaseBadge.displayName = "BaseBadge";
313
+ function Badge(props) {
314
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "lighter" }));
315
+ }
316
+ Badge.displayName = "Badge";
317
+ function DarkBadge(props) {
318
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "dark" }));
319
+ }
320
+ DarkBadge.displayName = "DarkBadge";
321
+ function WhiteBadge(props) {
322
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "white" }));
323
+ }
324
+ WhiteBadge.displayName = "WhiteBadge";
325
+ function WarningBadge(props) {
326
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BaseBadge, __spreadProps(__spreadValues({}, props), { variant: "warning" }));
327
+ }
328
+ WarningBadge.displayName = "WarningBadge";
329
+
330
+ // src/box/box.tsx
331
+ var import_react6 = require("react");
332
+ var import_typed_classname6 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
333
+ var import_jsx_runtime6 = require("react/jsx-runtime");
334
+ var Box = (0, import_react6.forwardRef)(
335
+ (_a, ref) => {
336
+ var _b = _a, {
337
+ as: Component = "div",
338
+ variant,
339
+ closeable = false,
340
+ onClose: onCloseProp,
341
+ closed: closedProp,
342
+ closeButtonProps,
343
+ children,
344
+ className
345
+ } = _b, rest = __objRest(_b, [
346
+ "as",
347
+ "variant",
348
+ "closeable",
349
+ "onClose",
350
+ "closed",
351
+ "closeButtonProps",
352
+ "children",
353
+ "className"
354
+ ]);
355
+ const [closedState, setClosedState] = (0, import_react6.useState)(false);
356
+ const onClose = (0, import_react6.useCallback)(() => {
357
+ if (onCloseProp) {
358
+ const result = onCloseProp();
359
+ if (result === true) {
360
+ setClosedState(true);
361
+ }
362
+ } else {
363
+ setClosedState(true);
364
+ }
365
+ }, []);
366
+ const closed = closedProp != null ? closedProp : closedState;
367
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
368
+ Component,
369
+ __spreadProps(__spreadValues({
370
+ className: (0, import_typed_classname6.clsx)(
371
+ "hds-box",
372
+ variant && `hds-box--${variant}`,
373
+ { "hds-box--closed": closed },
374
+ className
375
+ ),
376
+ ref
377
+ }, rest), {
378
+ children: [
379
+ closeable ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
380
+ children
381
+ ]
382
+ })
383
+ );
384
+ }
385
+ );
386
+ Box.displayName = "Box";
387
+ var BoxCloseButton = (0, import_react6.forwardRef)(
388
+ (_a, ref) => {
389
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
390
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
391
+ "button",
392
+ __spreadValues({
393
+ className: (0, import_typed_classname6.clsx)("hds-box__close-button", className),
394
+ ref,
395
+ type: "button"
396
+ }, rest)
397
+ );
398
+ }
399
+ );
400
+ BoxCloseButton.displayName = "Box.CloseButton";
401
+
402
+ // src/box/index.tsx
403
+ var BoxComponent = Box;
404
+ BoxComponent.CloseButton = BoxCloseButton;
405
+
406
+ // src/breadcrumb/breadcrumb.tsx
407
+ var import_typed_classname7 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
408
+ var import_jsx_runtime7 = require("react/jsx-runtime");
409
+ function Breadcrumbs(_a) {
410
+ var _b = _a, { olProps, children } = _b, rest = __objRest(_b, ["olProps", "children"]);
411
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("nav", __spreadProps(__spreadValues({}, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("ol", __spreadProps(__spreadValues({}, olProps), { className: (0, import_typed_classname7.clsx)("hds-breadcrumbs", olProps == null ? void 0 : olProps.className), children })) }));
412
+ }
413
+ Breadcrumbs.displayName = "Breadcrumbs";
414
+
415
+ // src/button/button.tsx
416
+ var import_react7 = require("react");
417
+ var import_typed_classname8 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
418
+ var import_jsx_runtime8 = require("react/jsx-runtime");
419
+ var BaseButton = (0, import_react7.forwardRef)(
420
+ (_a, ref) => {
421
+ var _b = _a, {
422
+ as: Component = "button",
423
+ children,
424
+ variant,
425
+ size = "medium",
426
+ fullWidth = false,
427
+ fill = "contained",
428
+ icon,
429
+ className
430
+ } = _b, rest = __objRest(_b, [
431
+ "as",
432
+ "children",
433
+ "variant",
434
+ "size",
435
+ "fullWidth",
436
+ "fill",
437
+ "icon",
438
+ "className"
439
+ ]);
440
+ if (fill === "outlined") {
441
+ console.warn("The `fill` value `outlined` is deprecated, use `fill='outline'` instead");
442
+ }
443
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
444
+ Component,
445
+ __spreadProps(__spreadValues({
446
+ className: (0, import_typed_classname8.clsx)(
447
+ "hds-button",
448
+ `hds-button--${size}`,
449
+ {
450
+ [`hds-button--${variant}`]: fill === "contained",
451
+ [`hds-button--outline-${variant}`]: fill === "outline" || fill === "outlined",
452
+ "hds-button--full": fullWidth,
453
+ "hds-button--mobile-full": fullWidth === "mobile",
454
+ "hds-button--icon-only": icon && !children
455
+ },
456
+ className
457
+ ),
458
+ ref
459
+ }, rest), {
460
+ children: [
461
+ icon && !children ? icon : null,
462
+ children
463
+ ]
464
+ })
465
+ );
466
+ }
467
+ );
468
+ BaseButton.displayName = "BaseButton";
469
+ var PrimaryButton = (0, import_react7.forwardRef)(
470
+ (props, ref) => {
471
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "primary" }));
472
+ }
473
+ );
474
+ PrimaryButton.displayName = "PrimaryButton";
475
+ var SecondaryButton = (0, import_react7.forwardRef)(
476
+ (props, ref) => {
477
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "secondary" }));
478
+ }
479
+ );
480
+ SecondaryButton.displayName = "SecondaryButton";
481
+
482
+ // src/card/card.tsx
483
+ var import_react8 = require("react");
484
+ var import_typed_classname9 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
485
+ var import_jsx_runtime9 = require("react/jsx-runtime");
486
+ var Card = (0, import_react8.forwardRef)((_a, ref) => {
487
+ var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
488
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card", className), ref, children }));
489
+ });
490
+ Card.displayName = "Card";
491
+ var CardMedia = (0, import_react8.forwardRef)(
492
+ (_a, ref) => {
493
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
494
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card__media", className), ref, children }));
495
+ }
496
+ );
497
+ CardMedia.displayName = "Card.Media";
498
+ var CardMediaImg = (0, import_react8.forwardRef)(
499
+ (_a, ref) => {
500
+ var _b = _a, { as: Component = "img", className } = _b, rest = __objRest(_b, ["as", "className"]);
501
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
502
+ Component,
503
+ __spreadProps(__spreadValues({}, rest), {
504
+ className: (0, import_typed_classname9.clsx)("hds-card__media__img", className),
505
+ ref
506
+ })
507
+ );
508
+ }
509
+ );
510
+ CardMediaImg.displayName = "Card.Media.Img";
511
+ var CardBody = (0, import_react8.forwardRef)(
512
+ (_a, ref) => {
513
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
514
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname9.clsx)("hds-card__body", className), ref, children }));
515
+ }
516
+ );
517
+ CardBody.displayName = "Card.Body";
518
+ var CardBodyHeader = (0, import_react8.forwardRef)((_a, ref) => {
519
+ var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
520
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
521
+ Component,
522
+ __spreadProps(__spreadValues({}, rest), {
523
+ className: (0, import_typed_classname9.clsx)("hds-card__body-header", className),
524
+ ref,
525
+ children
526
+ })
527
+ );
528
+ });
529
+ CardBodyHeader.displayName = "Card.Body.Header";
530
+ var CardBodyHeaderOverline = (0, import_react8.forwardRef)((_a, ref) => {
531
+ var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
532
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
533
+ Component,
534
+ __spreadProps(__spreadValues({}, rest), {
535
+ className: (0, import_typed_classname9.clsx)("hds-card__body-header-overline", className),
536
+ ref,
537
+ children
538
+ })
539
+ );
540
+ });
541
+ CardBodyHeaderOverline.displayName = "Card.Body.Header.Overline";
542
+ var CardBodyHeaderTitle = (0, import_react8.forwardRef)((_a, ref) => {
543
+ var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
544
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
545
+ Component,
546
+ __spreadProps(__spreadValues({}, rest), {
547
+ className: (0, import_typed_classname9.clsx)("hds-card__body-header-title", className),
548
+ ref,
549
+ children
550
+ })
551
+ );
552
+ });
553
+ CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
554
+ var CardBodyDescription = (0, import_react8.forwardRef)(
555
+ (_a, ref) => {
556
+ var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
557
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
558
+ Component,
559
+ __spreadProps(__spreadValues({}, rest), {
560
+ className: (0, import_typed_classname9.clsx)("hds-card__body-description", className),
561
+ ref,
562
+ children
563
+ })
564
+ );
565
+ }
566
+ );
567
+ CardBodyDescription.displayName = "Card.Body.Description";
568
+ var CardBodyAction = (0, import_react8.forwardRef)(
569
+ (_a, ref) => {
570
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
571
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
572
+ Component,
573
+ __spreadProps(__spreadValues({}, rest), {
574
+ className: (0, import_typed_classname9.clsx)("hds-card__body-action", className),
575
+ ref,
576
+ children
577
+ })
578
+ );
579
+ }
580
+ );
581
+ CardBodyAction.displayName = "Card.Body.Action";
582
+ var CardBodyActionArrow = (0, import_react8.forwardRef)((_a, ref) => {
583
+ var _b = _a, { as: Component = "span", className } = _b, rest = __objRest(_b, ["as", "className"]);
584
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
585
+ Component,
586
+ __spreadProps(__spreadValues({}, rest), {
587
+ className: (0, import_typed_classname9.clsx)("hds-card__body-action-arrow", className),
588
+ ref
589
+ })
590
+ );
591
+ });
592
+ CardBodyActionArrow.displayName = "Card.Body.Action.Arrow";
593
+
594
+ // src/card/index.tsx
595
+ var CardMediaComponent = CardMedia;
596
+ CardMediaComponent.Img = CardMediaImg;
597
+ var CardBodyHeaderComponent = CardBodyHeader;
598
+ CardBodyHeaderComponent.Overline = CardBodyHeaderOverline;
599
+ CardBodyHeaderComponent.Title = CardBodyHeaderTitle;
600
+ var CardBodyActionComponent = CardBodyAction;
601
+ CardBodyActionComponent.Arrow = CardBodyActionArrow;
602
+ var CardBodyComponent = CardBody;
603
+ CardBodyComponent.Header = CardBodyHeaderComponent;
604
+ CardBodyComponent.Description = CardBodyDescription;
605
+ CardBodyComponent.Action = CardBodyActionComponent;
606
+ var CardComponent = Card;
607
+ CardComponent.Media = CardMediaComponent;
608
+ CardComponent.Body = CardBodyComponent;
609
+
610
+ // src/form/fieldset/fieldset.tsx
611
+ var import_react9 = require("react");
612
+ var import_typed_classname11 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
613
+
614
+ // src/form/error-message/error-message.tsx
615
+ var import_typed_classname10 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
616
+ var import_jsx_runtime10 = require("react/jsx-runtime");
617
+ function ErrorMessage({ children, id, className }) {
618
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
619
+ "div",
620
+ {
621
+ "aria-live": "assertive",
622
+ className: (0, import_typed_classname10.clsx)("hds-error-message", className),
623
+ id,
624
+ children
625
+ }
626
+ );
627
+ }
628
+
629
+ // src/form/fieldset/fieldset.tsx
630
+ var import_jsx_runtime11 = require("react/jsx-runtime");
631
+ var Fieldset = (0, import_react9.forwardRef)(function Fieldset2(_a, ref) {
632
+ var _b = _a, {
633
+ className,
634
+ style,
635
+ errorMessage,
636
+ legendProps: _c = {}
637
+ } = _b, _d = _c, { size: legendSize = "default", className: legendClassName } = _d, legendProps = __objRest(_d, ["size", "className"]), _e = _b, {
638
+ legend,
639
+ children
640
+ } = _e, rest = __objRest(_e, [
641
+ "className",
642
+ "style",
643
+ "errorMessage",
644
+ "legendProps",
645
+ "legend",
646
+ "children"
647
+ ]);
648
+ const errorMessageId = (0, import_react9.useId)();
649
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
650
+ "fieldset",
651
+ __spreadProps(__spreadValues({
652
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
653
+ "aria-invalid": errorMessage ? true : void 0,
654
+ className: (0, import_typed_classname11.clsx)("hds-fieldset", className),
655
+ ref,
656
+ style
657
+ }, rest), {
658
+ children: [
659
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
660
+ "legend",
661
+ __spreadProps(__spreadValues({
662
+ className: (0, import_typed_classname11.clsx)(
663
+ "hds-fieldset__legend",
664
+ { [`hds-fieldset__legend--${legendSize}`]: legendSize },
665
+ legendClassName
666
+ )
667
+ }, legendProps), {
668
+ children: legend
669
+ })
670
+ ),
671
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: (0, import_typed_classname11.clsx)("hds-fieldset__input-wrapper"), children }),
672
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
673
+ ]
674
+ })
675
+ );
676
+ });
677
+
678
+ // src/form/input/input.tsx
679
+ var import_react11 = require("react");
680
+ var import_typed_classname13 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
681
+
682
+ // src/form/input-group/input-group.tsx
683
+ var import_react10 = require("react");
684
+ var import_typed_classname12 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
685
+ var import_jsx_runtime12 = require("react/jsx-runtime");
686
+ var InputGroup = (0, import_react10.forwardRef)(function InputGroup2(_a, ref) {
687
+ var _b = _a, {
688
+ id,
689
+ className,
690
+ style,
691
+ variant = "default",
692
+ errorMessage,
693
+ labelProps: _c = {}
694
+ } = _b, _d = _c, { className: labelClassName } = _d, labelProps = __objRest(_d, ["className"]), _e = _b, {
695
+ label,
696
+ disabled,
697
+ readOnly,
698
+ children
699
+ } = _e, rest = __objRest(_e, [
700
+ "id",
701
+ "className",
702
+ "style",
703
+ "variant",
704
+ "errorMessage",
705
+ "labelProps",
706
+ "label",
707
+ "disabled",
708
+ "readOnly",
709
+ "children"
710
+ ]);
711
+ const errorMessageId = (0, import_react10.useId)();
712
+ const inputId = (0, import_react10.useId)();
713
+ const renderInput = () => {
714
+ const input = import_react10.Children.toArray(children)[0];
715
+ if (!(0, import_react10.isValidElement)(input)) {
716
+ return;
717
+ }
718
+ return (0, import_react10.cloneElement)(input, __spreadProps(__spreadValues({
719
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
720
+ "aria-invalid": errorMessage ? true : void 0,
721
+ id: id != null ? id : inputId
722
+ }, input.props), {
723
+ className: (0, import_typed_classname12.clsx)("hds-input-group__input", input.props.className)
724
+ }));
725
+ };
726
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
727
+ "div",
728
+ __spreadProps(__spreadValues({
729
+ className: (0, import_typed_classname12.clsx)(
730
+ "hds-input-group",
731
+ {
732
+ [`hds-input-group--${variant}`]: variant,
733
+ "hds-input-group--error": errorMessage
734
+ },
735
+ className
736
+ ),
737
+ ref,
738
+ style
739
+ }, rest), {
740
+ children: [
741
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
742
+ "label",
743
+ __spreadProps(__spreadValues({
744
+ className: (0, import_typed_classname12.clsx)("hds-input-group__label", labelClassName)
745
+ }, labelProps), {
746
+ htmlFor: id != null ? id : inputId,
747
+ children: label
748
+ })
749
+ ),
750
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
751
+ "div",
752
+ {
753
+ className: (0, import_typed_classname12.clsx)("hds-input-group__input-wrapper"),
754
+ "data-disabled": disabled,
755
+ "data-readonly": readOnly,
756
+ children: renderInput()
757
+ }
758
+ ),
759
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ErrorMessage, { id: errorMessageId, children: errorMessage })
760
+ ]
761
+ })
762
+ );
763
+ });
764
+
765
+ // src/form/input/input.tsx
766
+ var import_jsx_runtime13 = require("react/jsx-runtime");
767
+ var Input = (0, import_react11.forwardRef)(function Input2(_a, ref) {
768
+ var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
769
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
770
+ InputGroup,
771
+ {
772
+ className: (0, import_typed_classname13.clsx)("hds-input", className),
773
+ disabled,
774
+ errorMessage,
775
+ id,
776
+ label,
777
+ labelProps,
778
+ readOnly,
779
+ style,
780
+ variant,
781
+ children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("input", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
782
+ }
783
+ );
784
+ });
785
+ Input.displayName = "Input";
786
+
787
+ // src/form/select/select.tsx
788
+ var import_react12 = require("react");
789
+ var import_typed_classname14 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
790
+ var import_jsx_runtime14 = require("react/jsx-runtime");
791
+ var Select = (0, import_react12.forwardRef)(function Select2(_a, ref) {
792
+ var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, children } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "children"]);
793
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
794
+ InputGroup,
795
+ {
796
+ className: (0, import_typed_classname14.clsx)("hds-select", className),
797
+ disabled,
798
+ errorMessage,
799
+ id,
800
+ label,
801
+ labelProps,
802
+ style,
803
+ variant,
804
+ children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("select", __spreadProps(__spreadValues({}, rest), { disabled, ref, children }))
805
+ }
806
+ );
807
+ });
808
+ Select.displayName = "Select";
809
+
810
+ // src/form/textarea/textarea.tsx
811
+ var import_react13 = require("react");
812
+ var import_typed_classname15 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
813
+ var import_jsx_runtime15 = require("react/jsx-runtime");
814
+ var Textarea = (0, import_react13.forwardRef)(function Textarea2(_a, ref) {
815
+ var _b = _a, { className, variant, errorMessage, labelProps, label, id, style, disabled, readOnly } = _b, rest = __objRest(_b, ["className", "variant", "errorMessage", "labelProps", "label", "id", "style", "disabled", "readOnly"]);
816
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
817
+ InputGroup,
818
+ {
819
+ className: (0, import_typed_classname15.clsx)("hds-textarea", className),
820
+ disabled,
821
+ errorMessage,
822
+ id,
823
+ label,
824
+ labelProps,
825
+ readOnly,
826
+ style,
827
+ variant,
828
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("textarea", __spreadProps(__spreadValues({}, rest), { disabled, readOnly, ref }))
829
+ }
830
+ );
831
+ });
832
+ Textarea.displayName = "Textarea";
833
+
834
+ // src/form/checkbox/checkbox.tsx
835
+ var import_react14 = require("react");
836
+ var import_typed_classname16 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
837
+ var import_jsx_runtime16 = require("react/jsx-runtime");
838
+ var Checkbox = (0, import_react14.forwardRef)(
839
+ (_a, ref) => {
840
+ var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
841
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
842
+ "div",
843
+ {
844
+ className: (0, import_typed_classname16.clsx)(
845
+ "hds-checkbox",
846
+ {
847
+ [`hds-checkbox--${variant}`]: variant === "bounding-box",
848
+ "hds-checkbox--error": hasError
849
+ },
850
+ className
851
+ ),
852
+ children: [
853
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("label", { children: [
854
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("input", __spreadProps(__spreadValues({}, rest), { "aria-invalid": hasError ? true : void 0, ref, type: "checkbox" })),
855
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { "aria-hidden": true, className: "hds-checkbox__checkmark" }),
856
+ title ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "hds-checkbox__title", children: title }) : children
857
+ ] }),
858
+ title ? children : null
859
+ ]
860
+ }
861
+ );
862
+ }
863
+ );
864
+ Checkbox.displayName = "Checkbox";
865
+
866
+ // src/form/radiobutton/radiobutton.tsx
867
+ var import_react15 = require("react");
868
+ var import_typed_classname17 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
869
+ var import_jsx_runtime17 = require("react/jsx-runtime");
870
+ var Radiobutton = (0, import_react15.forwardRef)(
871
+ (_a, ref) => {
872
+ var _b = _a, { variant = "plain", hasError, title, children, className } = _b, rest = __objRest(_b, ["variant", "hasError", "title", "children", "className"]);
873
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
874
+ "div",
875
+ {
876
+ className: (0, import_typed_classname17.clsx)(
877
+ "hds-radiobutton",
878
+ {
879
+ [`hds-radiobutton--${variant}`]: variant === "bounding-box",
880
+ "hds-radiobutton--error": hasError
881
+ },
882
+ className
883
+ ),
884
+ children: [
885
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("label", { children: [
886
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("input", __spreadProps(__spreadValues({}, rest), { ref, type: "radio" })),
887
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { "aria-hidden": true, className: "hds-radiobutton__checkmark" }),
888
+ title ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "hds-radiobutton__title", children: title }) : children
889
+ ] }),
890
+ title ? children : null
891
+ ]
892
+ }
893
+ );
894
+ }
895
+ );
896
+ Radiobutton.displayName = "Radiobutton";
897
+
898
+ // src/layout/container/container.tsx
899
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
900
+ var import_react16 = require("react");
901
+ var import_jsx_runtime18 = require("react/jsx-runtime");
902
+ var Container = (0, import_react16.forwardRef)(
903
+ (_a, ref) => {
904
+ var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
905
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
906
+ Component,
907
+ __spreadProps(__spreadValues({}, rest), {
908
+ className: (0, import_typed_classname18.clsx)(
909
+ "hds-container",
910
+ { "hds-container--slim": variant === "slim" },
911
+ className
912
+ ),
913
+ ref,
914
+ children
915
+ })
916
+ );
917
+ }
918
+ );
919
+ Container.displayName = "Container";
920
+
921
+ // src/link/link.tsx
922
+ var import_typed_classname19 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
923
+ var import_react17 = require("react");
924
+ var import_jsx_runtime19 = require("react/jsx-runtime");
925
+ var Link = (0, import_react17.forwardRef)(
926
+ (_a, ref) => {
927
+ var _b = _a, { as: Component = "a", children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["as", "children", "variant", "size", "className"]);
928
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
929
+ Component,
930
+ __spreadProps(__spreadValues({
931
+ className: (0, import_typed_classname19.clsx)(
932
+ "hds-link",
933
+ variant !== "underline" && `hds-link--${variant}`,
934
+ size !== "medium" && `hds-link--${size}`,
935
+ className
936
+ ),
937
+ ref
938
+ }, rest), {
939
+ children
940
+ })
941
+ );
942
+ }
943
+ );
944
+ Link.displayName = "Link";
945
+
946
+ // src/list/description-list.tsx
947
+ var import_typed_classname20 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
948
+ var import_jsx_runtime20 = require("react/jsx-runtime");
949
+ function DescriptionList(_a) {
950
+ var _b = _a, {
951
+ variant = "vertical",
952
+ className
953
+ } = _b, rest = __objRest(_b, [
954
+ "variant",
955
+ "className"
956
+ ]);
957
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
958
+ "dl",
959
+ __spreadValues({
960
+ className: (0, import_typed_classname20.clsx)(
961
+ "hds-description-list",
962
+ {
963
+ "hds-description-list--horizontal": variant === "horizontal"
964
+ },
965
+ className
966
+ )
967
+ }, rest)
968
+ );
969
+ }
970
+ DescriptionList.displayName = "DescriptionList";
971
+
972
+ // src/list/list.tsx
973
+ var import_typed_classname21 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
974
+ var import_jsx_runtime21 = require("react/jsx-runtime");
975
+ function BaseList(_a) {
976
+ var _b = _a, {
977
+ as: ListTag = "ul",
978
+ children,
979
+ size = "medium",
980
+ className
981
+ } = _b, rest = __objRest(_b, [
982
+ "as",
983
+ "children",
984
+ "size",
985
+ "className"
986
+ ]);
987
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ListTag, __spreadProps(__spreadValues({ className: (0, import_typed_classname21.clsx)("hds-list", `hds-list--${size}`, className) }, rest), { children }));
988
+ }
989
+ function UnorderedList(props) {
990
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
991
+ }
992
+ function OrderedList(props) {
993
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
994
+ }
995
+ BaseList.displayName = "BaseList";
996
+ OrderedList.displayName = "OrderedList";
997
+ UnorderedList.displayName = "UnorderedList";
998
+
999
+ // src/list/link-list.tsx
1000
+ var import_typed_classname22 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1001
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1002
+ function LinkList(_a) {
1003
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
1004
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(UnorderedList, __spreadValues({ className: (0, import_typed_classname22.clsx)("hds-list--link-list", className) }, rest));
1005
+ }
1006
+ LinkList.displayName = "LinkList";
1007
+
1008
+ // src/message/message.tsx
1009
+ var import_react18 = require("react");
1010
+ var import_typed_classname23 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1011
+ var import_jsx_runtime23 = require("react/jsx-runtime");
1012
+ var Message = (0, import_react18.forwardRef)(
1013
+ (_a, ref) => {
1014
+ var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
1015
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
1016
+ Box,
1017
+ __spreadProps(__spreadValues({
1018
+ className: (0, import_typed_classname23.clsx)(`hds-message`, `hds-message--${variant}`, className),
1019
+ ref
1020
+ }, rest), {
1021
+ children: [
1022
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: (0, import_typed_classname23.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
1023
+ children
1024
+ ]
1025
+ })
1026
+ );
1027
+ }
1028
+ );
1029
+ Message.displayName = "Message";
1030
+ var MessageTitle = (0, import_react18.forwardRef)(
1031
+ (_a, ref) => {
1032
+ var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1033
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1034
+ Component,
1035
+ __spreadValues({
1036
+ className: (0, import_typed_classname23.clsx)("hds-message__title", className),
1037
+ ref
1038
+ }, rest)
1039
+ );
1040
+ }
1041
+ );
1042
+ MessageTitle.displayName = "Message.Title";
1043
+ var MessageDescription = (0, import_react18.forwardRef)(
1044
+ (_a, ref) => {
1045
+ var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1046
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1047
+ Component,
1048
+ __spreadValues({
1049
+ className: (0, import_typed_classname23.clsx)("hds-message__description", className),
1050
+ ref
1051
+ }, rest)
1052
+ );
1053
+ }
1054
+ );
1055
+ MessageDescription.displayName = "Message.Description";
1056
+
1057
+ // src/message/index.tsx
1058
+ var MessageComponent = Message;
1059
+ MessageComponent.Title = MessageTitle;
1060
+ MessageComponent.Description = MessageDescription;
1061
+
1062
+ // src/modal/modal.tsx
1063
+ var import_react20 = require("react");
1064
+ var import_typed_classname24 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1065
+
1066
+ // src/utils.ts
1067
+ var React4 = __toESM(require("react"));
1068
+ var import_react19 = require("react");
1069
+ function useMergeRefs(refs) {
1070
+ return React4.useMemo(() => {
1071
+ if (refs.every((ref) => ref === null)) {
1072
+ return null;
1073
+ }
1074
+ return (value) => {
1075
+ refs.forEach((ref) => {
1076
+ if (typeof ref === "function") {
1077
+ ref(value);
1078
+ } else if (ref !== null) {
1079
+ ref.current = value;
1080
+ }
1081
+ });
1082
+ };
1083
+ }, refs);
1084
+ }
1085
+ function useResize(ref) {
1086
+ const [width, setWidth] = (0, import_react19.useState)(0);
1087
+ const [height, setHeight] = (0, import_react19.useState)(0);
1088
+ const handleResize = (0, import_react19.useCallback)(() => {
1089
+ var _a, _b, _c, _d;
1090
+ if ((ref == null ? void 0 : ref.current) !== null) {
1091
+ setWidth((_b = (_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.offsetWidth) != null ? _b : 0);
1092
+ setHeight((_d = (_c = ref == null ? void 0 : ref.current) == null ? void 0 : _c.offsetHeight) != null ? _d : 0);
1093
+ }
1094
+ }, [ref]);
1095
+ (0, import_react19.useEffect)(() => {
1096
+ window.addEventListener("load", handleResize);
1097
+ window.addEventListener("resize", handleResize);
1098
+ return () => {
1099
+ window.removeEventListener("load", handleResize);
1100
+ window.removeEventListener("resize", handleResize);
1101
+ };
1102
+ }, [ref, handleResize]);
1103
+ (0, import_react19.useEffect)(() => {
1104
+ handleResize();
1105
+ }, []);
1106
+ return { width, height };
1107
+ }
1108
+
1109
+ // src/modal/modal.tsx
1110
+ var import_jsx_runtime24 = require("react/jsx-runtime");
1111
+ var Modal = (0, import_react20.forwardRef)(
1112
+ (_a, ref) => {
1113
+ var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
1114
+ const modalRef = (0, import_react20.useRef)(null);
1115
+ const mergedRef = useMergeRefs([modalRef, ref]);
1116
+ function onCloseButtonClick() {
1117
+ var _a2;
1118
+ (_a2 = modalRef.current) == null ? void 0 : _a2.close();
1119
+ return false;
1120
+ }
1121
+ useScrollLock(modalRef, "hds-modal-scroll-lock");
1122
+ (0, import_react20.useEffect)(() => {
1123
+ if (modalRef.current && open !== void 0) {
1124
+ if (open && !modalRef.current.open) {
1125
+ modalRef.current.showModal();
1126
+ } else if (!open && modalRef.current.open) {
1127
+ modalRef.current.close();
1128
+ }
1129
+ }
1130
+ }, [modalRef, open]);
1131
+ function onDialogClick(e) {
1132
+ if (closeOnBackdropClick && e.target === modalRef.current) {
1133
+ modalRef.current.close();
1134
+ }
1135
+ onClick == null ? void 0 : onClick(e);
1136
+ }
1137
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1138
+ Box,
1139
+ __spreadProps(__spreadValues({
1140
+ as: "dialog",
1141
+ className: (0, import_typed_classname24.clsx)("hds-modal", className),
1142
+ closeable: true,
1143
+ onClick: onDialogClick,
1144
+ onClose: onCloseButtonClick,
1145
+ ref: mergedRef,
1146
+ variant: "white"
1147
+ }, rest), {
1148
+ children
1149
+ })
1150
+ );
1151
+ }
1152
+ );
1153
+ Modal.displayName = "Modal";
1154
+ var ModalHeader = (0, import_react20.forwardRef)(
1155
+ (_a, ref) => {
1156
+ var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
1157
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1158
+ Component,
1159
+ __spreadValues({
1160
+ className: (0, import_typed_classname24.clsx)("hds-modal__header", className),
1161
+ ref
1162
+ }, rest)
1163
+ );
1164
+ }
1165
+ );
1166
+ ModalHeader.displayName = "Modal.Header";
1167
+ var ModalContent = (0, import_react20.forwardRef)(
1168
+ (_a, ref) => {
1169
+ var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1170
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1171
+ Component,
1172
+ __spreadValues({
1173
+ className: (0, import_typed_classname24.clsx)("hds-modal__content", className),
1174
+ ref
1175
+ }, rest)
1176
+ );
1177
+ }
1178
+ );
1179
+ ModalContent.displayName = "Modal.Content";
1180
+ var ModalFooter = (0, import_react20.forwardRef)(
1181
+ (_a, ref) => {
1182
+ var _b = _a, { as: Component = "footer", className } = _b, rest = __objRest(_b, ["as", "className"]);
1183
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1184
+ Component,
1185
+ __spreadValues({
1186
+ className: (0, import_typed_classname24.clsx)("hds-modal__footer", className),
1187
+ ref
1188
+ }, rest)
1189
+ );
1190
+ }
1191
+ );
1192
+ ModalFooter.displayName = "Modal.Footer";
1193
+ function useScrollLock(modalRef, bodyClass) {
1194
+ (0, import_react20.useEffect)(() => {
1195
+ if (!modalRef.current)
1196
+ return;
1197
+ if (modalRef.current.open)
1198
+ document.body.classList.add(bodyClass);
1199
+ const observer = new MutationObserver(() => {
1200
+ var _a;
1201
+ if ((_a = modalRef.current) == null ? void 0 : _a.open)
1202
+ document.body.classList.add(bodyClass);
1203
+ else
1204
+ document.body.classList.remove(bodyClass);
1205
+ });
1206
+ observer.observe(modalRef.current, {
1207
+ attributes: true,
1208
+ attributeFilter: ["open"]
1209
+ });
1210
+ return () => {
1211
+ observer.disconnect();
1212
+ document.body.classList.remove(bodyClass);
1213
+ };
1214
+ }, [bodyClass, modalRef]);
1215
+ }
1216
+
1217
+ // src/modal/index.tsx
1218
+ var ModalComponent = Modal;
1219
+ ModalComponent.Header = ModalHeader;
1220
+ ModalComponent.Content = ModalContent;
1221
+ ModalComponent.Footer = ModalFooter;
1222
+
1223
+ // src/navbar/navbar.tsx
1224
+ var import_react21 = require("react");
1225
+ var import_typed_classname25 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1226
+ var import_jsx_runtime25 = require("react/jsx-runtime");
1227
+ var Navbar = (0, import_react21.forwardRef)(
1228
+ (_a, ref) => {
1229
+ var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
1230
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("header", __spreadProps(__spreadValues({ className: (0, import_typed_classname25.clsx)("hds-navbar", className), ref }, rest), { children }));
1231
+ }
1232
+ );
1233
+ Navbar.displayName = "Navbar";
1234
+ var NavbarLogo = (0, import_react21.forwardRef)(
1235
+ (_a, ref) => {
1236
+ var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1237
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Component, __spreadValues({ className: (0, import_typed_classname25.clsx)("hds-navbar__logo", className), ref }, rest));
1238
+ }
1239
+ );
1240
+ NavbarLogo.displayName = "Navbar.Logo";
1241
+ var NavbarButton = (0, import_react21.forwardRef)(
1242
+ (_a, ref) => {
1243
+ var _b = _a, { as: Component = "button", children, icon, className } = _b, rest = __objRest(_b, ["as", "children", "icon", "className"]);
1244
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname25.clsx)("hds-navbar__button", className), ref }, rest), { children: [
1245
+ children,
1246
+ " ",
1247
+ icon
1248
+ ] }));
1249
+ }
1250
+ );
1251
+ NavbarButton.displayName = "Navbar.Button";
1252
+ var NavbarNavigation = (0, import_react21.forwardRef)((_a, ref) => {
1253
+ var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
1254
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
1255
+ Component,
1256
+ __spreadValues({
1257
+ className: (0, import_typed_classname25.clsx)("hds-navbar__navigation", className),
1258
+ ref
1259
+ }, rest)
1260
+ );
1261
+ });
1262
+ NavbarNavigation.displayName = "Navbar.Navigation";
1263
+
1264
+ // src/navbar/navbar-expandable-menu.tsx
1265
+ var import_react22 = require("react");
1266
+ var import_client = require("react-dom/client");
1267
+ var import_typed_classname26 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1268
+
1269
+ // src/navbar/icons.tsx
1270
+ var import_jsx_runtime26 = require("react/jsx-runtime");
1271
+ function CloseIcon() {
1272
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("svg", { "aria-hidden": true, viewBox: "0 0 384 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1273
+ "path",
1274
+ {
1275
+ d: "M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z",
1276
+ fill: "currentColor"
1277
+ }
1278
+ ) });
1279
+ }
1280
+ function MenuIcon() {
1281
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("svg", { role: "img", viewBox: "0 0 448 512", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1282
+ "path",
1283
+ {
1284
+ d: "M0 88C0 74.7 10.7 64 24 64H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H24C10.7 112 0 101.3 0 88zM0 248c0-13.3 10.7-24 24-24H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24zM448 408c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24H424c13.3 0 24 10.7 24 24z",
1285
+ fill: "currentColor"
1286
+ }
1287
+ ) });
1288
+ }
1289
+
1290
+ // src/navbar/navbar-expandable-menu.tsx
1291
+ var import_jsx_runtime27 = require("react/jsx-runtime");
1292
+ var navbarContext = (0, import_react22.createContext)([
1293
+ false,
1294
+ () => {
1295
+ }
1296
+ ]);
1297
+ function NavbarExpandableMenu({ children }) {
1298
+ const [open, setOpen] = (0, import_react22.useState)(false);
1299
+ const toggleOpen = () => {
1300
+ setOpen((currentOpen) => !currentOpen);
1301
+ };
1302
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(navbarContext.Provider, { value: [open, toggleOpen], children });
1303
+ }
1304
+ NavbarExpandableMenu.displayName = "NavbarExpandableMenu";
1305
+ function RenderButton(_a) {
1306
+ var _b = _a, {
1307
+ className,
1308
+ innerRef,
1309
+ open = false,
1310
+ ref,
1311
+ text,
1312
+ title,
1313
+ toggleOpen,
1314
+ width
1315
+ } = _b, rest = __objRest(_b, [
1316
+ "className",
1317
+ "innerRef",
1318
+ "open",
1319
+ "ref",
1320
+ "text",
1321
+ "title",
1322
+ "toggleOpen",
1323
+ "width"
1324
+ ]);
1325
+ const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(CloseIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(MenuIcon, {});
1326
+ const style = width ? { width } : {};
1327
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
1328
+ "button",
1329
+ __spreadProps(__spreadValues({
1330
+ className: (0, import_typed_classname26.clsx)("hds-navbar__button", className),
1331
+ onClick: toggleOpen,
1332
+ ref: ref != null ? ref : innerRef,
1333
+ style,
1334
+ title,
1335
+ type: "button"
1336
+ }, rest), {
1337
+ children: [
1338
+ text,
1339
+ " ",
1340
+ icon
1341
+ ]
1342
+ })
1343
+ );
1344
+ }
1345
+ var NavbarExpandableMenuTrigger = (0, import_react22.forwardRef)(
1346
+ (_a, ref) => {
1347
+ var _b = _a, {
1348
+ whenClosedText,
1349
+ whenClosedHelperTitle,
1350
+ whenOpenText,
1351
+ whenOpenHelperTitle,
1352
+ className
1353
+ } = _b, rest = __objRest(_b, [
1354
+ "whenClosedText",
1355
+ "whenClosedHelperTitle",
1356
+ "whenOpenText",
1357
+ "whenOpenHelperTitle",
1358
+ "className"
1359
+ ]);
1360
+ const [open, toggleOpen] = (0, import_react22.useContext)(navbarContext);
1361
+ const [width, setWidth] = (0, import_react22.useState)(0);
1362
+ const measureButtonRef = (0, import_react22.useRef)(null);
1363
+ const text = open ? whenOpenText : whenClosedText;
1364
+ const title = open ? whenOpenHelperTitle : whenClosedHelperTitle;
1365
+ const measureButton = (element, callback) => {
1366
+ const container = document.createElement("div");
1367
+ container.style.cssText = "display: inline-block; position: absolute; visibility: hidden";
1368
+ const c = document.getElementsByClassName("hds-navbar__navigation")[0];
1369
+ c.appendChild(container);
1370
+ const root = (0, import_client.createRoot)(container);
1371
+ root.render(element);
1372
+ const getWidth = () => {
1373
+ var _a2, _b2;
1374
+ callback((_b2 = (_a2 = measureButtonRef.current) == null ? void 0 : _a2.offsetWidth) != null ? _b2 : 0);
1375
+ root.unmount();
1376
+ c.removeChild(container);
1377
+ };
1378
+ setTimeout(getWidth, 0);
1379
+ };
1380
+ (0, import_react22.useEffect)(() => {
1381
+ measureButton(
1382
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1383
+ RenderButton,
1384
+ __spreadValues({
1385
+ className: className ? className : "",
1386
+ innerRef: measureButtonRef,
1387
+ text: whenClosedText,
1388
+ title
1389
+ }, rest)
1390
+ ),
1391
+ (closedWidth) => {
1392
+ measureButton(
1393
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1394
+ RenderButton,
1395
+ __spreadValues({
1396
+ className: className ? className : "",
1397
+ innerRef: measureButtonRef,
1398
+ open: true,
1399
+ text: whenOpenText,
1400
+ title
1401
+ }, rest)
1402
+ ),
1403
+ (openWidth) => {
1404
+ setWidth(Math.max(openWidth, closedWidth));
1405
+ }
1406
+ );
1407
+ }
1408
+ );
1409
+ }, [className, rest, title, whenClosedText, whenOpenText]);
1410
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1411
+ RenderButton,
1412
+ __spreadValues({
1413
+ className: className ? className : "",
1414
+ open,
1415
+ ref,
1416
+ text,
1417
+ title,
1418
+ toggleOpen,
1419
+ width
1420
+ }, rest)
1421
+ );
1422
+ }
1423
+ );
1424
+ NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenu.Trigger";
1425
+ var NavbarExpandableMenuContent = (0, import_react22.forwardRef)((_a, ref) => {
1426
+ var _b = _a, { as: Component = "section", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
1427
+ const [open] = (0, import_react22.useContext)(navbarContext);
1428
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1429
+ Component,
1430
+ __spreadProps(__spreadValues({}, rest), {
1431
+ className: (0, import_typed_classname26.clsx)("hds-navbar__expandable-menu-content", className),
1432
+ "data-state": open ? "open" : "closed",
1433
+ ref,
1434
+ children
1435
+ })
1436
+ );
1437
+ });
1438
+ NavbarExpandableMenuContent.displayName = "Navbar.ExpandableMenu.Content";
1439
+
1440
+ // src/navbar/index.tsx
1441
+ var NavbarExpandableMenuComponent = NavbarExpandableMenu;
1442
+ NavbarExpandableMenuComponent.Trigger = NavbarExpandableMenuTrigger;
1443
+ NavbarExpandableMenuComponent.Content = NavbarExpandableMenuContent;
1444
+ var NavbarComponent = Navbar;
1445
+ NavbarComponent.Logo = NavbarLogo;
1446
+ NavbarComponent.ExpandableMenu = NavbarExpandableMenuComponent;
1447
+ NavbarComponent.Button = NavbarButton;
1448
+ NavbarComponent.Navigation = NavbarNavigation;
1449
+
1450
+ // src/show-more/auto-animate-height.tsx
1451
+ var import_react23 = require("react");
1452
+ var import_react_dom = require("react-dom");
1453
+ var import_jsx_runtime28 = require("react/jsx-runtime");
1454
+ var animationDurationToValue = {
1455
+ quick: 100,
1456
+ normal: 300,
1457
+ slow: 700
1458
+ };
1459
+ var AutoAnimateHeight = (0, import_react23.forwardRef)(
1460
+ (_a, ref) => {
1461
+ var _b = _a, {
1462
+ as: Component = "div",
1463
+ children,
1464
+ style,
1465
+ animationDuration = "normal",
1466
+ animationEasing = "normal"
1467
+ } = _b, rest = __objRest(_b, [
1468
+ "as",
1469
+ "children",
1470
+ "style",
1471
+ "animationDuration",
1472
+ "animationEasing"
1473
+ ]);
1474
+ const measurementRef = (0, import_react23.useRef)(null);
1475
+ const [height, setHeight] = (0, import_react23.useState)(void 0);
1476
+ const [clonedChildren, setClonedChildren] = (0, import_react23.useState)(
1477
+ () => (0, import_react23.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, { children }), {})
1478
+ );
1479
+ (0, import_react23.useEffect)(() => {
1480
+ if (measurementRef.current) {
1481
+ const { height: newHeight } = measurementRef.current.getBoundingClientRect();
1482
+ if (newHeight < (height != null ? height : 0)) {
1483
+ (0, import_react_dom.flushSync)(() => {
1484
+ setHeight(newHeight);
1485
+ });
1486
+ setTimeout(() => {
1487
+ setClonedChildren((0, import_react23.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, { children }), {}));
1488
+ }, animationDurationToValue[animationDuration]);
1489
+ } else {
1490
+ setHeight(newHeight);
1491
+ setClonedChildren((0, import_react23.cloneElement)(/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_jsx_runtime28.Fragment, { children }), {}));
1492
+ }
1493
+ }
1494
+ }, [children]);
1495
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
1496
+ Component,
1497
+ __spreadProps(__spreadValues({
1498
+ ref,
1499
+ style: __spreadValues({
1500
+ overflow: "hidden",
1501
+ height,
1502
+ transitionProperty: "height",
1503
+ transitionDuration: `var(--hds-micro-animation-duration-${animationDuration})`,
1504
+ transitionTimingFunction: `var(--hds-micro-animation-easing-${animationEasing})`
1505
+ }, style)
1506
+ }, rest), {
1507
+ children: [
1508
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1509
+ "div",
1510
+ {
1511
+ "aria-hidden": true,
1512
+ ref: measurementRef,
1513
+ style: {
1514
+ position: "absolute",
1515
+ visibility: "hidden"
1516
+ },
1517
+ children
1518
+ }
1519
+ ),
1520
+ clonedChildren
1521
+ ]
1522
+ })
1523
+ );
1524
+ }
1525
+ );
1526
+ AutoAnimateHeight.displayName = "AutoAnimateHeight";
1527
+
1528
+ // src/show-more/show-more.tsx
1529
+ var import_typed_classname27 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1530
+ var import_jsx_runtime29 = require("react/jsx-runtime");
1531
+ function ShowMoreButton(_a) {
1532
+ var _b = _a, { text, variant, expanded, className } = _b, rest = __objRest(_b, ["text", "variant", "expanded", "className"]);
1533
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
1534
+ "button",
1535
+ __spreadProps(__spreadValues({
1536
+ className: (0, import_typed_classname27.clsx)(
1537
+ "hds-show-more",
1538
+ variant === "show-more-show-less" && "hds-show-more--show-less",
1539
+ className
1540
+ ),
1541
+ "data-state": expanded ? "expanded" : void 0,
1542
+ type: "button"
1543
+ }, rest), {
1544
+ children: [
1545
+ text,
1546
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: (0, import_typed_classname27.clsx)("hds-show-more__icon") })
1547
+ ]
1548
+ })
1549
+ );
1550
+ }
1551
+
1552
+ // src/skeleton/skeleton.tsx
1553
+ var import_typed_classname28 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1554
+ var import_react24 = require("react");
1555
+ var import_jsx_runtime30 = require("react/jsx-runtime");
1556
+ var Skeleton = (0, import_react24.forwardRef)(
1557
+ (_a, ref) => {
1558
+ var _b = _a, { as: Component = "div", children, variant = "text", width, height, className, style } = _b, rest = __objRest(_b, ["as", "children", "variant", "width", "height", "className", "style"]);
1559
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
1560
+ Component,
1561
+ __spreadProps(__spreadValues({
1562
+ className: (0, import_typed_classname28.clsx)("hds-skeleton", `hds-skeleton--${variant}`, className),
1563
+ style: __spreadProps(__spreadValues({}, style), { width, height }),
1564
+ ref,
1565
+ "aria-hidden": true
1566
+ }, rest), {
1567
+ children
1568
+ })
1569
+ );
1570
+ }
1571
+ );
1572
+ Skeleton.displayName = "Skeleton";
1573
+
1574
+ // src/step-indicator/step-indicator.tsx
1575
+ var import_typed_classname29 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1576
+ var import_jsx_runtime31 = require("react/jsx-runtime");
1577
+ function StepIndicator(_a) {
1578
+ var _b = _a, {
1579
+ activeStep,
1580
+ totalSteps,
1581
+ className,
1582
+ label,
1583
+ lang = "en",
1584
+ title,
1585
+ titleAs: TitleComponent
1586
+ } = _b, rest = __objRest(_b, [
1587
+ "activeStep",
1588
+ "totalSteps",
1589
+ "className",
1590
+ "label",
1591
+ "lang",
1592
+ "title",
1593
+ "titleAs"
1594
+ ]);
1595
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname29.clsx)("hds-step-indicator", className), lang }, rest), { children: [
1596
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: (0, import_typed_classname29.clsx)("hds-step-indicator__header"), children: [
1597
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: (0, import_typed_classname29.clsx)("hds-step-indicator__left-label"), children: label }),
1598
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: stepLabelTranslations[lang](activeStep, totalSteps) })
1599
+ ] }),
1600
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: (0, import_typed_classname29.clsx)("hds-step-indicator__steps"), children: Array.from({ length: totalSteps }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
1601
+ "div",
1602
+ {
1603
+ className: (0, import_typed_classname29.clsx)("hds-step-indicator__step"),
1604
+ "data-state": getStepState(i + 1, activeStep)
1605
+ },
1606
+ i
1607
+ )) }),
1608
+ title ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TitleComponent, { className: (0, import_typed_classname29.clsx)("hds-step-indicator__title"), children: title }) : null
1609
+ ] }));
1610
+ }
1611
+ var stepLabelTranslations = {
1612
+ no: (activeStep, totalSteps) => `steg ${activeStep} av ${totalSteps}`,
1613
+ en: (activeStep, totalSteps) => `step ${activeStep} of ${totalSteps}`,
1614
+ da: (activeStep, totalSteps) => `trin ${activeStep} af ${totalSteps}`,
1615
+ sv: (activeStep, totalSteps) => `steg ${activeStep} av ${totalSteps}`
1616
+ };
1617
+ function getStepState(renderedStep, activeStep) {
1618
+ if (renderedStep < activeStep) {
1619
+ return "previous";
1620
+ }
1621
+ if (renderedStep === activeStep) {
1622
+ return "active";
1623
+ }
1624
+ return "next";
1625
+ }
1626
+
1627
+ // src/styled-html/styled-html.tsx
1628
+ var import_react25 = require("react");
1629
+ var import_typed_classname30 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1630
+ var import_jsx_runtime32 = require("react/jsx-runtime");
1631
+ var StyledHtml = (0, import_react25.forwardRef)(
1632
+ (_a, ref) => {
1633
+ var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
1634
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
1635
+ Component,
1636
+ __spreadProps(__spreadValues({
1637
+ className: (0, import_typed_classname30.clsx)(
1638
+ `hds-styled-html`,
1639
+ size === "small" && "hds-styled-html--small",
1640
+ darkmode && "hds-styled-html--darkmode",
1641
+ className
1642
+ ),
1643
+ ref
1644
+ }, rest), {
1645
+ children
1646
+ })
1647
+ );
1648
+ }
1649
+ );
1650
+ StyledHtml.displayName = "Prose";
1651
+
1652
+ // src/tabs/tabs.tsx
1653
+ var import_react27 = require("react");
1654
+ var import_typed_classname31 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1655
+
1656
+ // src/tabs/context.ts
1657
+ var import_react26 = require("react");
1658
+ var TabsContext = (0, import_react26.createContext)({
1659
+ mounted: false,
1660
+ activeTabId: void 0,
1661
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling
1662
+ toggleActiveTabId: (tabId) => {
1663
+ }
1664
+ });
1665
+
1666
+ // src/tabs/tabs.tsx
1667
+ var import_jsx_runtime33 = require("react/jsx-runtime");
1668
+ var Tabs = (0, import_react27.forwardRef)(
1669
+ (_a, ref) => {
1670
+ var _b = _a, { as: Component = "div", defaultTab, children } = _b, rest = __objRest(_b, ["as", "defaultTab", "children"]);
1671
+ const [activeTabId, setActiveTabId] = (0, import_react27.useState)(defaultTab);
1672
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname31.clsx)("hds-tabs"), ref }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
1673
+ TabsContext.Provider,
1674
+ {
1675
+ value: { activeTabId, toggleActiveTabId: setActiveTabId, mounted: true },
1676
+ children
1677
+ }
1678
+ ) }));
1679
+ }
1680
+ );
1681
+ Tabs.displayName = "Tabs";
1682
+
1683
+ // src/tabs/tabs-list.tsx
1684
+ var import_react28 = require("react");
1685
+ var import_typed_classname32 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1686
+ var import_jsx_runtime34 = require("react/jsx-runtime");
1687
+ function TabsList(_a) {
1688
+ var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
1689
+ const tabsListRef = (0, import_react28.useRef)(null);
1690
+ const { width: tabsWidth } = useResize(tabsListRef);
1691
+ const { innerWidth } = window;
1692
+ const wideEnough = innerWidth >= tabsWidth;
1693
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1694
+ "div",
1695
+ __spreadProps(__spreadValues({
1696
+ className: (0, import_typed_classname32.clsx)(
1697
+ "hds-tabs--list",
1698
+ direction === "horizontal" ? {
1699
+ [`hds-tabs--list-horizontal`]: wideEnough,
1700
+ "hds-tabs--list-vertical": !wideEnough
1701
+ } : {
1702
+ "hds-tabs--list-vertical": true
1703
+ },
1704
+ className
1705
+ ),
1706
+ ref: tabsListRef,
1707
+ role: "tablist"
1708
+ }, rest), {
1709
+ children
1710
+ })
1711
+ );
1712
+ }
1713
+ TabsList.displayName = "Tabs.List";
1714
+ var Tab = (0, import_react28.forwardRef)(
1715
+ (_a, ref) => {
1716
+ var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
1717
+ const context = (0, import_react28.useContext)(TabsContext);
1718
+ if (!context.mounted) {
1719
+ throw new Error("Context required. Did you use <TabContent/> outside of <Tabs/>?");
1720
+ }
1721
+ const toggleTab = (e) => {
1722
+ e.preventDefault();
1723
+ context.toggleActiveTabId(tabId);
1724
+ onClick && onClick(e);
1725
+ };
1726
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1727
+ Component,
1728
+ __spreadProps(__spreadValues({
1729
+ className: (0, import_typed_classname32.clsx)(
1730
+ "hds-tabs--tab",
1731
+ { "hds-tabs--tab-active": context.activeTabId === tabId },
1732
+ className
1733
+ ),
1734
+ "data-tabid": tabId,
1735
+ onClick: toggleTab,
1736
+ ref,
1737
+ role: "tab"
1738
+ }, rest), {
1739
+ children
1740
+ })
1741
+ );
1742
+ }
1743
+ );
1744
+ Tab.displayName = "Tabs.Tab";
1745
+
1746
+ // src/tabs/tabs-content.tsx
1747
+ var import_react29 = require("react");
1748
+ var import_typed_classname33 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1749
+ var import_jsx_runtime35 = require("react/jsx-runtime");
1750
+ function TabsContents(_a) {
1751
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
1752
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname33.clsx)("hds-tabs--contents") }, rest), { children }));
1753
+ }
1754
+ TabsContents.displayName = "Tabs.Contents";
1755
+ var TabsContent = (0, import_react29.forwardRef)(
1756
+ (_a, ref) => {
1757
+ var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
1758
+ const context = (0, import_react29.useContext)(TabsContext);
1759
+ if (!context.mounted) {
1760
+ throw new Error("Context required. Did you use <Tabs.Content /> outside of <Tabs/>?");
1761
+ }
1762
+ if (context.activeTabId === forTabId) {
1763
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
1764
+ }
1765
+ return null;
1766
+ }
1767
+ );
1768
+ TabsContent.displayName = "Tabs.Content";
1769
+
1770
+ // src/tabs/index.tsx
1771
+ var TabsComponent = Tabs;
1772
+ TabsComponent.List = TabsList;
1773
+ TabsComponent.Tab = Tab;
1774
+ TabsComponent.Contents = TabsContents;
1775
+ TabsComponent.Content = TabsContent;
1776
+
1777
+ // src/typography/typography.tsx
1778
+ var import_react30 = require("react");
1779
+ var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1780
+ var import_jsx_runtime36 = require("react/jsx-runtime");
1781
+ var defaultHTMLTag = {
1782
+ "h1-display": "h1",
1783
+ h1: "h1",
1784
+ h2: "h2",
1785
+ h3: "h3",
1786
+ "h3-title": "h3",
1787
+ body: "p",
1788
+ "body-title": "p",
1789
+ "body-small": "p",
1790
+ "body-small-title": "p",
1791
+ technical: "p",
1792
+ "technical-title": "p",
1793
+ caption: "p",
1794
+ "caption-title": "p"
1795
+ };
1796
+ var Typography = (0, import_react30.forwardRef)(
1797
+ (_a, ref) => {
1798
+ var _b = _a, {
1799
+ as,
1800
+ variant = "body",
1801
+ size = "fluid",
1802
+ _unstableSpacing: spacing,
1803
+ children,
1804
+ className
1805
+ } = _b, rest = __objRest(_b, [
1806
+ "as",
1807
+ "variant",
1808
+ "size",
1809
+ "_unstableSpacing",
1810
+ "children",
1811
+ "className"
1812
+ ]);
1813
+ const Component = as != null ? as : defaultHTMLTag[variant];
1814
+ const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
1815
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
1816
+ Component,
1817
+ __spreadProps(__spreadValues({
1818
+ className: (0, import_typed_classname34.clsx)(
1819
+ `hds-typography-${variant}`,
1820
+ sizeModifier && `hds-typography--${sizeModifier}`,
1821
+ spacing && "hds-typography--spacing",
1822
+ className
1823
+ ),
1824
+ ref
1825
+ }, rest), {
1826
+ children
1827
+ })
1828
+ );
1829
+ }
1830
+ );
1831
+ Typography.displayName = "Typography";
1832
+
1833
+ // src/typography/index.tsx
1834
+ var import_jsx_runtime37 = require("react/jsx-runtime");
1835
+ var Text = Typography;
1836
+ Text.displayName = "Text";
1837
+ var H1Display = typographyVariant("h1-display", "H1Display");
1838
+ var H1 = typographyVariant("h1", "H1");
1839
+ var H2 = typographyVariant("h2", "H2");
1840
+ var H3 = typographyVariant("h3", "H3");
1841
+ var H3Title = typographyVariant("h3-title", "H3Title");
1842
+ var Body = typographyVariant("body", "Body");
1843
+ var BodyTitle = typographyVariant("body-title", "BodyTitle");
1844
+ var BodySmall = typographyVariant("body-small", "BodySmall");
1845
+ var BodySmallTitle = typographyVariant("body-small-title", "BodySmallTitle");
1846
+ var Technical = typographyVariant("technical", "Technical");
1847
+ var TechnicalTitle = typographyVariant("technical-title", "TechnicalTitle");
1848
+ var Caption = typographyVariant("caption", "Caption");
1849
+ var CaptionTitle = typographyVariant("caption-title", "CaptionTitle");
1850
+ var TextH1Display = typographyVariant("h1-display", "TextH1Display");
1851
+ var TextH1 = typographyVariant("h1", "TextH1");
1852
+ var TextH2 = typographyVariant("h2", "TextH2");
1853
+ var TextH3 = typographyVariant("h3", "TextH3");
1854
+ var TextH3Title = typographyVariant("h3-title", "TextH3Title");
1855
+ var TextBody = typographyVariant("body", "TextBody");
1856
+ var TextBodyTitle = typographyVariant("body-title", "TextBodyTitle");
1857
+ var TextBodySmall = typographyVariant("body-small", "TextBodySmall");
1858
+ var TextBodySmallTitle = typographyVariant("body-small-title", "TextBodySmallTitle");
1859
+ var TextTechnical = typographyVariant("technical", "TextTechnical");
1860
+ var TextTechnicalTitle = typographyVariant("technical-title", "TextTechnicalTitle");
1861
+ var TextCaption = typographyVariant("caption", "TextCaption");
1862
+ var TextCaptionTitle = typographyVariant("caption-title", "TextCaptionTitle");
1863
+ var TypographyH1Display = typographyVariant("h1-display", "TypographyH1Display");
1864
+ var TypographyH1 = typographyVariant("h1", "TypographyH1");
1865
+ var TypographyH2 = typographyVariant("h2", "TypographyH2");
1866
+ var TypographyH3 = typographyVariant("h3", "TypographyH3");
1867
+ var TypographyH3Title = typographyVariant("h3-title", "TypographyH3Title");
1868
+ var TypographyBody = typographyVariant("body", "TypographyBody");
1869
+ var TypographyBodyTitle = typographyVariant("body-title", "TypographyBodyTitle");
1870
+ var TypographyBodySmall = typographyVariant("body-small", "TypographyBodySmall");
1871
+ var TypographyBodySmallTitle = typographyVariant(
1872
+ "body-small-title",
1873
+ "TypographyBodySmallTitle"
1874
+ );
1875
+ var TypographyTechnical = typographyVariant("technical", "TypographyTechnical");
1876
+ var TypographyTechnicalTitle = typographyVariant(
1877
+ "technical-title",
1878
+ "TypographyTechnicalTitle"
1879
+ );
1880
+ var TypographyCaption = typographyVariant("caption", "TypographyCaption");
1881
+ var TypographyCaptionTitle = typographyVariant("caption-title", "TypographyCaptionTitle");
1882
+ function typographyVariant(variant, displayName) {
1883
+ function WrappedTypography(props) {
1884
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Typography, __spreadValues({ variant }, props));
1885
+ }
1886
+ WrappedTypography.displayName = displayName;
1887
+ return WrappedTypography;
1888
+ }
1889
+
1890
+ // src/warning-banner/warning-banner.tsx
1891
+ var import_react31 = require("react");
1892
+ var import_typed_classname35 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1893
+ var import_jsx_runtime38 = require("react/jsx-runtime");
1894
+ var WarningBanner = (0, import_react31.forwardRef)(
1895
+ (_a, ref) => {
1896
+ var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
1897
+ const expandable = !!description;
1898
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname35.clsx)("hds-warning-banner", className), ref, children: [
1899
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
1900
+ expandable ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(WarningBannerDescription, { children: description }) : null
1901
+ ] }));
1902
+ }
1903
+ );
1904
+ WarningBanner.displayName = "WarningBanner";
1905
+ var WarningBannerTitle = (0, import_react31.forwardRef)(
1906
+ (_a, ref) => {
1907
+ var _b = _a, {
1908
+ variant,
1909
+ as: Component = variant === "expandable" ? "button" : "p",
1910
+ children,
1911
+ className
1912
+ } = _b, rest = __objRest(_b, [
1913
+ "variant",
1914
+ "as",
1915
+ "children",
1916
+ "className"
1917
+ ]);
1918
+ const [open, setOpen] = (0, import_react31.useState)(false);
1919
+ if (variant === "expandable") {
1920
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1921
+ Component,
1922
+ __spreadProps(__spreadValues({
1923
+ className: (0, import_typed_classname35.clsx)(
1924
+ "hds-warning-banner__title",
1925
+ "hds-warning-banner__title-trigger",
1926
+ { "hds-warning-banner--closed": !open },
1927
+ className
1928
+ ),
1929
+ onClick: () => {
1930
+ setOpen(!open);
1931
+ },
1932
+ ref,
1933
+ type: "button"
1934
+ }, rest), {
1935
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { children })
1936
+ })
1937
+ );
1938
+ }
1939
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1940
+ Component,
1941
+ __spreadProps(__spreadValues({
1942
+ className: (0, import_typed_classname35.clsx)("hds-warning-banner__title", className),
1943
+ ref
1944
+ }, rest), {
1945
+ children
1946
+ })
1947
+ );
1948
+ }
1949
+ );
1950
+ WarningBannerTitle.displayName = "WarningBannerTitle";
1951
+ var WarningBannerDescription = (0, import_react31.forwardRef)(
1952
+ (_a, ref) => {
1953
+ var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
1954
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
1955
+ Component,
1956
+ __spreadValues({
1957
+ className: (0, import_typed_classname35.clsx)("hds-warning-banner__description", className),
1958
+ ref
1959
+ }, rest)
1960
+ );
1961
+ }
1962
+ );
1963
+ WarningBannerDescription.displayName = "WarningBannerDescription";
1964
+ // Annotate the CommonJS export names for ESM import in node:
1965
+ 0 && (module.exports = {
1966
+ Accordion,
1967
+ AutoAnimateHeight,
1968
+ Badge,
1969
+ Body,
1970
+ BodySmall,
1971
+ BodySmallTitle,
1972
+ BodyTitle,
1973
+ Box,
1974
+ Breadcrumbs,
1975
+ Caption,
1976
+ CaptionTitle,
1977
+ Card,
1978
+ Checkbox,
1979
+ Container,
1980
+ DarkBadge,
1981
+ DescriptionList,
1982
+ ErrorMessage,
1983
+ Fieldset,
1984
+ H1,
1985
+ H1Display,
1986
+ H2,
1987
+ H3,
1988
+ H3Title,
1989
+ Input,
1990
+ Link,
1991
+ LinkList,
1992
+ Message,
1993
+ Modal,
1994
+ Navbar,
1995
+ OrderedList,
1996
+ PrimaryButton,
1997
+ Radiobutton,
1998
+ SecondaryButton,
1999
+ Select,
2000
+ ShowMoreButton,
2001
+ Skeleton,
2002
+ StepIndicator,
2003
+ StyledHtml,
2004
+ Tabs,
2005
+ Technical,
2006
+ TechnicalTitle,
2007
+ Text,
2008
+ TextBody,
2009
+ TextBodySmall,
2010
+ TextBodySmallTitle,
2011
+ TextBodyTitle,
2012
+ TextCaption,
2013
+ TextCaptionTitle,
2014
+ TextH1,
2015
+ TextH1Display,
2016
+ TextH2,
2017
+ TextH3,
2018
+ TextH3Title,
2019
+ TextTechnical,
2020
+ TextTechnicalTitle,
2021
+ Textarea,
2022
+ Typography,
2023
+ TypographyBody,
2024
+ TypographyBodySmall,
2025
+ TypographyBodySmallTitle,
2026
+ TypographyBodyTitle,
2027
+ TypographyCaption,
2028
+ TypographyCaptionTitle,
2029
+ TypographyH1,
2030
+ TypographyH1Display,
2031
+ TypographyH2,
2032
+ TypographyH3,
2033
+ TypographyH3Title,
2034
+ TypographyTechnical,
2035
+ TypographyTechnicalTitle,
2036
+ UnorderedList,
2037
+ WarningBadge,
2038
+ WarningBanner,
2039
+ WhiteBadge
2040
+ });
2041
+ //# sourceMappingURL=index-no-css.js.map