@postenbring/hedwig-react 0.0.57 → 0.0.59

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 (344) hide show
  1. package/dist/_tsup-dts-rollup.d.mts +78 -81
  2. package/dist/_tsup-dts-rollup.d.ts +78 -81
  3. package/dist/accordion/accordion-content.js +1 -1
  4. package/dist/accordion/accordion-content.js.map +1 -1
  5. package/dist/accordion/accordion-content.mjs +1 -1
  6. package/dist/accordion/accordion-header.js +1 -1
  7. package/dist/accordion/accordion-header.js.map +1 -1
  8. package/dist/accordion/accordion-header.mjs +1 -1
  9. package/dist/accordion/accordion-item.js +1 -1
  10. package/dist/accordion/accordion-item.js.map +1 -1
  11. package/dist/accordion/accordion-item.mjs +1 -1
  12. package/dist/accordion/accordion.js +1 -1
  13. package/dist/accordion/accordion.js.map +1 -1
  14. package/dist/accordion/accordion.mjs +1 -1
  15. package/dist/accordion/index.js +4 -4
  16. package/dist/accordion/index.js.map +1 -1
  17. package/dist/accordion/index.mjs +5 -5
  18. package/dist/badge/badge.js +1 -1
  19. package/dist/badge/badge.js.map +1 -1
  20. package/dist/badge/badge.mjs +1 -1
  21. package/dist/badge/index.js +1 -1
  22. package/dist/badge/index.js.map +1 -1
  23. package/dist/badge/index.mjs +1 -1
  24. package/dist/box/box.js +1 -1
  25. package/dist/box/box.js.map +1 -1
  26. package/dist/box/box.mjs +1 -1
  27. package/dist/box/index.js +1 -1
  28. package/dist/box/index.js.map +1 -1
  29. package/dist/box/index.mjs +2 -2
  30. package/dist/breadcrumb/breadcrumb.js +1 -1
  31. package/dist/breadcrumb/breadcrumb.js.map +1 -1
  32. package/dist/breadcrumb/breadcrumb.mjs +1 -1
  33. package/dist/breadcrumb/index.js +1 -1
  34. package/dist/breadcrumb/index.js.map +1 -1
  35. package/dist/breadcrumb/index.mjs +1 -1
  36. package/dist/button/button.js +1 -1
  37. package/dist/button/button.js.map +1 -1
  38. package/dist/button/button.mjs +1 -1
  39. package/dist/button/index.js +1 -1
  40. package/dist/button/index.js.map +1 -1
  41. package/dist/button/index.mjs +1 -1
  42. package/dist/card/card.js +1 -1
  43. package/dist/card/card.js.map +1 -1
  44. package/dist/card/card.mjs +1 -1
  45. package/dist/card/index.js +1 -1
  46. package/dist/card/index.js.map +1 -1
  47. package/dist/card/index.mjs +2 -2
  48. package/dist/chunk-2YL2MVWN.mjs +1 -0
  49. package/dist/{chunk-P4XTJEES.mjs → chunk-37WVYY6X.mjs} +3 -3
  50. package/dist/chunk-37WVYY6X.mjs.map +1 -0
  51. package/dist/{chunk-EJJIKLGC.mjs → chunk-44X6U32G.mjs} +2 -2
  52. package/dist/chunk-44X6U32G.mjs.map +1 -0
  53. package/dist/{chunk-LYRXA4WS.mjs → chunk-57SSGJ4X.mjs} +2 -2
  54. package/dist/chunk-57SSGJ4X.mjs.map +1 -0
  55. package/dist/{chunk-52XZAPT6.mjs → chunk-5MDJP43L.mjs} +7 -7
  56. package/dist/chunk-6QV3OV66.mjs +1 -0
  57. package/dist/{chunk-P6A7LH6M.mjs → chunk-6TI7ACBR.mjs} +3 -3
  58. package/dist/chunk-6TI7ACBR.mjs.map +1 -0
  59. package/dist/{chunk-QOBS2TS5.mjs → chunk-AR2NOI4U.mjs} +2 -2
  60. package/dist/{chunk-ZOW7HKNV.mjs → chunk-BZNDK3KJ.mjs} +2 -2
  61. package/dist/{chunk-FL4LCX4F.mjs → chunk-DJRMXOCP.mjs} +5 -5
  62. package/dist/chunk-DY7LD3X3.mjs +1 -0
  63. package/dist/{chunk-R7WBXNQA.mjs → chunk-EGXM575K.mjs} +2 -2
  64. package/dist/chunk-EGXM575K.mjs.map +1 -0
  65. package/dist/{chunk-C3HIZBXH.mjs → chunk-EJADADIY.mjs} +2 -2
  66. package/dist/chunk-EJADADIY.mjs.map +1 -0
  67. package/dist/{chunk-GPV2IEZD.mjs → chunk-FT5CX2W5.mjs} +2 -2
  68. package/dist/chunk-FT5CX2W5.mjs.map +1 -0
  69. package/dist/{chunk-V4NGQVBQ.mjs → chunk-FYNTNGIY.mjs} +2 -2
  70. package/dist/{chunk-GKWD4EVJ.mjs → chunk-I6GDRDYD.mjs} +2 -2
  71. package/dist/chunk-I6GDRDYD.mjs.map +1 -0
  72. package/dist/{chunk-GAKMKOPK.mjs → chunk-IAS3E2S3.mjs} +3 -3
  73. package/dist/chunk-IAS3E2S3.mjs.map +1 -0
  74. package/dist/{chunk-3VYJTKR3.mjs → chunk-IL7576PP.mjs} +2 -2
  75. package/dist/chunk-IL7576PP.mjs.map +1 -0
  76. package/dist/{chunk-22GG466D.mjs → chunk-JC6DBIFE.mjs} +2 -2
  77. package/dist/{chunk-R6GRXGDW.mjs → chunk-JDJQFQQ6.mjs} +2 -2
  78. package/dist/chunk-JDJQFQQ6.mjs.map +1 -0
  79. package/dist/{chunk-76XO5GE7.mjs → chunk-JMDXW2ML.mjs} +2 -2
  80. package/dist/chunk-JMDXW2ML.mjs.map +1 -0
  81. package/dist/{chunk-VUD7AVYO.mjs → chunk-KRGKVH5J.mjs} +2 -2
  82. package/dist/chunk-KRGKVH5J.mjs.map +1 -0
  83. package/dist/{chunk-DVFL3S5W.mjs → chunk-MBBFU4IR.mjs} +2 -2
  84. package/dist/chunk-MBBFU4IR.mjs.map +1 -0
  85. package/dist/{chunk-HYOVIP56.mjs → chunk-MDA3MMNA.mjs} +2 -2
  86. package/dist/chunk-MDA3MMNA.mjs.map +1 -0
  87. package/dist/{chunk-IDDIXDNV.mjs → chunk-ME66RUR6.mjs} +3 -3
  88. package/dist/chunk-ME66RUR6.mjs.map +1 -0
  89. package/dist/{chunk-PAVPAIBQ.mjs → chunk-NIRIPLQ5.mjs} +2 -2
  90. package/dist/chunk-NIRIPLQ5.mjs.map +1 -0
  91. package/dist/{chunk-OJ42PRYY.mjs → chunk-OUHO4LGN.mjs} +2 -2
  92. package/dist/chunk-OUHO4LGN.mjs.map +1 -0
  93. package/dist/{chunk-GVSLN5KE.mjs → chunk-POJTVNEO.mjs} +3 -3
  94. package/dist/chunk-POJTVNEO.mjs.map +1 -0
  95. package/dist/{chunk-YJBADJDW.mjs → chunk-PTANXZW6.mjs} +2 -2
  96. package/dist/chunk-PTANXZW6.mjs.map +1 -0
  97. package/dist/{chunk-D2YCZMUP.mjs → chunk-PXHYOQPB.mjs} +2 -2
  98. package/dist/chunk-PXHYOQPB.mjs.map +1 -0
  99. package/dist/{chunk-BDA6STW2.mjs → chunk-QSYU64U4.mjs} +2 -2
  100. package/dist/{chunk-3DOUHFA4.mjs → chunk-RK6BB3HH.mjs} +3 -3
  101. package/dist/chunk-RK6BB3HH.mjs.map +1 -0
  102. package/dist/{chunk-QCWENWLF.mjs → chunk-RVJD2UZF.mjs} +3 -3
  103. package/dist/chunk-RVJD2UZF.mjs.map +1 -0
  104. package/dist/{chunk-J6ES2LO5.mjs → chunk-S5RB7KLJ.mjs} +2 -2
  105. package/dist/chunk-S5RB7KLJ.mjs.map +1 -0
  106. package/dist/{chunk-5WUSLDKN.mjs → chunk-SAGJ5W7M.mjs} +2 -2
  107. package/dist/chunk-SAGJ5W7M.mjs.map +1 -0
  108. package/dist/{chunk-PUFFEK6I.mjs → chunk-SBJBQUKE.mjs} +7 -7
  109. package/dist/{chunk-ELCSEPSM.mjs → chunk-SEKRICE4.mjs} +2 -2
  110. package/dist/chunk-SEKRICE4.mjs.map +1 -0
  111. package/dist/{chunk-RLK2ENCB.mjs → chunk-SKI2APSK.mjs} +3 -3
  112. package/dist/chunk-SKI2APSK.mjs.map +1 -0
  113. package/dist/{chunk-2C6OZWFA.mjs → chunk-VRIY65P5.mjs} +2 -2
  114. package/dist/chunk-VRIY65P5.mjs.map +1 -0
  115. package/dist/{chunk-5IIBIO3Y.mjs → chunk-W47NV442.mjs} +2 -2
  116. package/dist/chunk-W47NV442.mjs.map +1 -0
  117. package/dist/{chunk-ZSLWZUBI.mjs → chunk-WDD7QJP6.mjs} +2 -2
  118. package/dist/chunk-WDD7QJP6.mjs.map +1 -0
  119. package/dist/{chunk-ODFEKAJO.mjs → chunk-X5JERDDU.mjs} +2 -2
  120. package/dist/chunk-X5JERDDU.mjs.map +1 -0
  121. package/dist/{chunk-ZX7AH7XO.mjs → chunk-XMB45ILT.mjs} +3 -3
  122. package/dist/chunk-XMB45ILT.mjs.map +1 -0
  123. package/dist/{chunk-WXU2FTGO.mjs → chunk-XVZ44NGD.mjs} +2 -2
  124. package/dist/chunk-XVZ44NGD.mjs.map +1 -0
  125. package/dist/{chunk-NTCLPQG3.mjs → chunk-YKDKFWP2.mjs} +2 -2
  126. package/dist/chunk-YKDKFWP2.mjs.map +1 -0
  127. package/dist/{chunk-XU3GLCG4.mjs → chunk-ZUKLWHUR.mjs} +3 -3
  128. package/dist/chunk-ZUKLWHUR.mjs.map +1 -0
  129. package/dist/{list → description-list}/description-list.js +2 -2
  130. package/dist/description-list/description-list.js.map +1 -0
  131. package/dist/{list → description-list}/description-list.mjs +1 -1
  132. package/dist/description-list/description-list.mjs.map +1 -0
  133. package/dist/description-list/index.d.mts +2 -0
  134. package/dist/description-list/index.d.ts +2 -0
  135. package/dist/description-list/index.js +82 -0
  136. package/dist/description-list/index.js.map +1 -0
  137. package/dist/description-list/index.mjs +9 -0
  138. package/dist/description-list/index.mjs.map +1 -0
  139. package/dist/form/checkbox/checkbox.js +1 -1
  140. package/dist/form/checkbox/checkbox.js.map +1 -1
  141. package/dist/form/checkbox/checkbox.mjs +1 -1
  142. package/dist/form/checkbox/index.js +1 -1
  143. package/dist/form/checkbox/index.js.map +1 -1
  144. package/dist/form/checkbox/index.mjs +1 -1
  145. package/dist/form/error-message/error-message.js +1 -1
  146. package/dist/form/error-message/error-message.js.map +1 -1
  147. package/dist/form/error-message/error-message.mjs +1 -1
  148. package/dist/form/error-message/index.js +1 -1
  149. package/dist/form/error-message/index.js.map +1 -1
  150. package/dist/form/error-message/index.mjs +1 -1
  151. package/dist/form/fieldset/fieldset.js +2 -2
  152. package/dist/form/fieldset/fieldset.js.map +1 -1
  153. package/dist/form/fieldset/fieldset.mjs +2 -2
  154. package/dist/form/fieldset/index.js +2 -2
  155. package/dist/form/fieldset/index.js.map +1 -1
  156. package/dist/form/fieldset/index.mjs +2 -2
  157. package/dist/form/index.js +8 -8
  158. package/dist/form/index.js.map +1 -1
  159. package/dist/form/index.mjs +12 -12
  160. package/dist/form/input/index.js +3 -3
  161. package/dist/form/input/index.js.map +1 -1
  162. package/dist/form/input/index.mjs +3 -3
  163. package/dist/form/input/input.js +3 -3
  164. package/dist/form/input/input.js.map +1 -1
  165. package/dist/form/input/input.mjs +3 -3
  166. package/dist/form/input-group/index.js +2 -2
  167. package/dist/form/input-group/index.js.map +1 -1
  168. package/dist/form/input-group/index.mjs +2 -2
  169. package/dist/form/input-group/input-group.js +2 -2
  170. package/dist/form/input-group/input-group.js.map +1 -1
  171. package/dist/form/input-group/input-group.mjs +2 -2
  172. package/dist/form/radiobutton/index.js +1 -1
  173. package/dist/form/radiobutton/index.js.map +1 -1
  174. package/dist/form/radiobutton/index.mjs +1 -1
  175. package/dist/form/radiobutton/radiobutton.js +1 -1
  176. package/dist/form/radiobutton/radiobutton.js.map +1 -1
  177. package/dist/form/radiobutton/radiobutton.mjs +1 -1
  178. package/dist/form/select/index.js +3 -3
  179. package/dist/form/select/index.js.map +1 -1
  180. package/dist/form/select/index.mjs +3 -3
  181. package/dist/form/select/select.js +3 -3
  182. package/dist/form/select/select.js.map +1 -1
  183. package/dist/form/select/select.mjs +3 -3
  184. package/dist/form/textarea/index.js +3 -3
  185. package/dist/form/textarea/index.js.map +1 -1
  186. package/dist/form/textarea/index.mjs +3 -3
  187. package/dist/form/textarea/textarea.js +3 -3
  188. package/dist/form/textarea/textarea.js.map +1 -1
  189. package/dist/form/textarea/textarea.mjs +3 -3
  190. package/dist/index-no-css.d.mts +2 -2
  191. package/dist/index-no-css.d.ts +2 -2
  192. package/dist/index-no-css.js +111 -111
  193. package/dist/index-no-css.js.map +1 -1
  194. package/dist/index-no-css.mjs +54 -53
  195. package/dist/index.d.mts +2 -2
  196. package/dist/index.d.ts +2 -2
  197. package/dist/index.js +111 -111
  198. package/dist/index.js.map +1 -1
  199. package/dist/index.mjs +54 -53
  200. package/dist/index.mjs.map +1 -1
  201. package/dist/layout/container/container.js +1 -1
  202. package/dist/layout/container/container.js.map +1 -1
  203. package/dist/layout/container/container.mjs +1 -1
  204. package/dist/layout/index.js +1 -1
  205. package/dist/layout/index.js.map +1 -1
  206. package/dist/layout/index.mjs +1 -1
  207. package/dist/link/index.js +1 -1
  208. package/dist/link/index.js.map +1 -1
  209. package/dist/link/index.mjs +1 -1
  210. package/dist/link/link.js +1 -1
  211. package/dist/link/link.js.map +1 -1
  212. package/dist/link/link.mjs +1 -1
  213. package/dist/list/index.d.mts +0 -2
  214. package/dist/list/index.d.ts +0 -2
  215. package/dist/list/index.js +8 -36
  216. package/dist/list/index.js.map +1 -1
  217. package/dist/list/index.mjs +3 -7
  218. package/dist/list/link-list.js +2 -2
  219. package/dist/list/link-list.js.map +1 -1
  220. package/dist/list/link-list.mjs +2 -2
  221. package/dist/list/list.js +1 -1
  222. package/dist/list/list.js.map +1 -1
  223. package/dist/list/list.mjs +1 -1
  224. package/dist/message/index.js +2 -2
  225. package/dist/message/index.js.map +1 -1
  226. package/dist/message/index.mjs +3 -3
  227. package/dist/message/message.js +2 -2
  228. package/dist/message/message.js.map +1 -1
  229. package/dist/message/message.mjs +2 -2
  230. package/dist/modal/index.js +2 -2
  231. package/dist/modal/index.js.map +1 -1
  232. package/dist/modal/index.mjs +3 -3
  233. package/dist/modal/modal.js +2 -2
  234. package/dist/modal/modal.js.map +1 -1
  235. package/dist/modal/modal.mjs +2 -2
  236. package/dist/navbar/index.js +2 -2
  237. package/dist/navbar/index.js.map +1 -1
  238. package/dist/navbar/index.mjs +3 -3
  239. package/dist/navbar/navbar-expandable-menu.js +1 -1
  240. package/dist/navbar/navbar-expandable-menu.js.map +1 -1
  241. package/dist/navbar/navbar-expandable-menu.mjs +1 -1
  242. package/dist/navbar/navbar.js +1 -1
  243. package/dist/navbar/navbar.js.map +1 -1
  244. package/dist/navbar/navbar.mjs +1 -1
  245. package/dist/show-more/index.js +1 -1
  246. package/dist/show-more/index.js.map +1 -1
  247. package/dist/show-more/index.mjs +1 -1
  248. package/dist/show-more/show-more.js +1 -1
  249. package/dist/show-more/show-more.js.map +1 -1
  250. package/dist/show-more/show-more.mjs +1 -1
  251. package/dist/skeleton/index.js +1 -1
  252. package/dist/skeleton/index.js.map +1 -1
  253. package/dist/skeleton/index.mjs +1 -1
  254. package/dist/skeleton/skeleton.js +1 -1
  255. package/dist/skeleton/skeleton.js.map +1 -1
  256. package/dist/skeleton/skeleton.mjs +1 -1
  257. package/dist/step-indicator/index.js +1 -1
  258. package/dist/step-indicator/index.js.map +1 -1
  259. package/dist/step-indicator/index.mjs +1 -1
  260. package/dist/step-indicator/step-indicator.js +1 -1
  261. package/dist/step-indicator/step-indicator.js.map +1 -1
  262. package/dist/step-indicator/step-indicator.mjs +1 -1
  263. package/dist/styled-html/index.js +1 -1
  264. package/dist/styled-html/index.js.map +1 -1
  265. package/dist/styled-html/index.mjs +1 -1
  266. package/dist/styled-html/styled-html.js +1 -1
  267. package/dist/styled-html/styled-html.js.map +1 -1
  268. package/dist/styled-html/styled-html.mjs +1 -1
  269. package/dist/tabs/index.js +3 -3
  270. package/dist/tabs/index.js.map +1 -1
  271. package/dist/tabs/index.mjs +4 -4
  272. package/dist/tabs/tabs-content.js +1 -1
  273. package/dist/tabs/tabs-content.js.map +1 -1
  274. package/dist/tabs/tabs-content.mjs +1 -1
  275. package/dist/tabs/tabs-list.js +1 -1
  276. package/dist/tabs/tabs-list.js.map +1 -1
  277. package/dist/tabs/tabs-list.mjs +1 -1
  278. package/dist/tabs/tabs.js +1 -1
  279. package/dist/tabs/tabs.js.map +1 -1
  280. package/dist/tabs/tabs.mjs +1 -1
  281. package/dist/text/index.js +1 -1
  282. package/dist/text/index.js.map +1 -1
  283. package/dist/text/index.mjs +2 -2
  284. package/dist/text/text.js +1 -1
  285. package/dist/text/text.js.map +1 -1
  286. package/dist/text/text.mjs +1 -1
  287. package/dist/warning-banner/index.js +2 -2
  288. package/dist/warning-banner/index.js.map +1 -1
  289. package/dist/warning-banner/index.mjs +3 -3
  290. package/dist/warning-banner/warning-banner.js +2 -2
  291. package/dist/warning-banner/warning-banner.js.map +1 -1
  292. package/dist/warning-banner/warning-banner.mjs +3 -3
  293. package/package.json +2 -2
  294. package/dist/chunk-2C6OZWFA.mjs.map +0 -1
  295. package/dist/chunk-3DOUHFA4.mjs.map +0 -1
  296. package/dist/chunk-3VYJTKR3.mjs.map +0 -1
  297. package/dist/chunk-5IIBIO3Y.mjs.map +0 -1
  298. package/dist/chunk-5WUSLDKN.mjs.map +0 -1
  299. package/dist/chunk-76XO5GE7.mjs.map +0 -1
  300. package/dist/chunk-C3HIZBXH.mjs.map +0 -1
  301. package/dist/chunk-D2YCZMUP.mjs.map +0 -1
  302. package/dist/chunk-DVFL3S5W.mjs.map +0 -1
  303. package/dist/chunk-E2LKLNGA.mjs +0 -1
  304. package/dist/chunk-EJJIKLGC.mjs.map +0 -1
  305. package/dist/chunk-ELCSEPSM.mjs.map +0 -1
  306. package/dist/chunk-GAKMKOPK.mjs.map +0 -1
  307. package/dist/chunk-GKWD4EVJ.mjs.map +0 -1
  308. package/dist/chunk-GPV2IEZD.mjs.map +0 -1
  309. package/dist/chunk-GVSLN5KE.mjs.map +0 -1
  310. package/dist/chunk-HYOVIP56.mjs.map +0 -1
  311. package/dist/chunk-IDDIXDNV.mjs.map +0 -1
  312. package/dist/chunk-J6ES2LO5.mjs.map +0 -1
  313. package/dist/chunk-KOAR6LZG.mjs +0 -1
  314. package/dist/chunk-LYRXA4WS.mjs.map +0 -1
  315. package/dist/chunk-NTCLPQG3.mjs.map +0 -1
  316. package/dist/chunk-ODFEKAJO.mjs.map +0 -1
  317. package/dist/chunk-OJ42PRYY.mjs.map +0 -1
  318. package/dist/chunk-P4XTJEES.mjs.map +0 -1
  319. package/dist/chunk-P6A7LH6M.mjs.map +0 -1
  320. package/dist/chunk-PAVPAIBQ.mjs.map +0 -1
  321. package/dist/chunk-QCWENWLF.mjs.map +0 -1
  322. package/dist/chunk-R6GRXGDW.mjs.map +0 -1
  323. package/dist/chunk-R7WBXNQA.mjs.map +0 -1
  324. package/dist/chunk-RLK2ENCB.mjs.map +0 -1
  325. package/dist/chunk-VUD7AVYO.mjs.map +0 -1
  326. package/dist/chunk-WXU2FTGO.mjs.map +0 -1
  327. package/dist/chunk-XU3GLCG4.mjs.map +0 -1
  328. package/dist/chunk-YJBADJDW.mjs.map +0 -1
  329. package/dist/chunk-ZSLWZUBI.mjs.map +0 -1
  330. package/dist/chunk-ZX7AH7XO.mjs.map +0 -1
  331. package/dist/list/description-list.js.map +0 -1
  332. /package/dist/{chunk-E2LKLNGA.mjs.map → chunk-2YL2MVWN.mjs.map} +0 -0
  333. /package/dist/{chunk-52XZAPT6.mjs.map → chunk-5MDJP43L.mjs.map} +0 -0
  334. /package/dist/{chunk-KOAR6LZG.mjs.map → chunk-6QV3OV66.mjs.map} +0 -0
  335. /package/dist/{chunk-QOBS2TS5.mjs.map → chunk-AR2NOI4U.mjs.map} +0 -0
  336. /package/dist/{chunk-ZOW7HKNV.mjs.map → chunk-BZNDK3KJ.mjs.map} +0 -0
  337. /package/dist/{chunk-FL4LCX4F.mjs.map → chunk-DJRMXOCP.mjs.map} +0 -0
  338. /package/dist/{list/description-list.mjs.map → chunk-DY7LD3X3.mjs.map} +0 -0
  339. /package/dist/{chunk-V4NGQVBQ.mjs.map → chunk-FYNTNGIY.mjs.map} +0 -0
  340. /package/dist/{chunk-22GG466D.mjs.map → chunk-JC6DBIFE.mjs.map} +0 -0
  341. /package/dist/{chunk-BDA6STW2.mjs.map → chunk-QSYU64U4.mjs.map} +0 -0
  342. /package/dist/{chunk-PUFFEK6I.mjs.map → chunk-SBJBQUKE.mjs.map} +0 -0
  343. /package/dist/{list → description-list}/description-list.d.mts +0 -0
  344. /package/dist/{list → description-list}/description-list.d.ts +0 -0
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import "./chunk-E2LKLNGA.mjs";
1
+ import "./chunk-DY7LD3X3.mjs";
2
2
  import {
3
3
  TextBody,
4
4
  TextBodySmall,
@@ -13,115 +13,116 @@ import {
13
13
  TextH3Title,
14
14
  TextTechnical,
15
15
  TextTechnicalTitle
16
- } from "./chunk-V4NGQVBQ.mjs";
16
+ } from "./chunk-FYNTNGIY.mjs";
17
17
  import {
18
18
  Text
19
- } from "./chunk-LYRXA4WS.mjs";
19
+ } from "./chunk-57SSGJ4X.mjs";
20
20
  import "./chunk-3D2MWIEX.mjs";
21
21
  import {
22
22
  WarningBanner
23
- } from "./chunk-GAKMKOPK.mjs";
23
+ } from "./chunk-IAS3E2S3.mjs";
24
24
  import {
25
25
  TabsComponent
26
- } from "./chunk-52XZAPT6.mjs";
27
- import "./chunk-DVFL3S5W.mjs";
28
- import "./chunk-C3HIZBXH.mjs";
29
- import "./chunk-WXU2FTGO.mjs";
26
+ } from "./chunk-5MDJP43L.mjs";
27
+ import "./chunk-XVZ44NGD.mjs";
28
+ import "./chunk-MBBFU4IR.mjs";
29
+ import "./chunk-EJADADIY.mjs";
30
30
  import {
31
31
  MessageComponent
32
- } from "./chunk-QOBS2TS5.mjs";
33
- import "./chunk-IDDIXDNV.mjs";
32
+ } from "./chunk-AR2NOI4U.mjs";
33
+ import "./chunk-ME66RUR6.mjs";
34
34
  import {
35
35
  ModalComponent
36
- } from "./chunk-BDA6STW2.mjs";
37
- import "./chunk-GVSLN5KE.mjs";
36
+ } from "./chunk-QSYU64U4.mjs";
37
+ import "./chunk-POJTVNEO.mjs";
38
38
  import {
39
39
  NavbarComponent
40
- } from "./chunk-PUFFEK6I.mjs";
41
- import "./chunk-ZSLWZUBI.mjs";
40
+ } from "./chunk-SBJBQUKE.mjs";
41
+ import "./chunk-JMDXW2ML.mjs";
42
+ import "./chunk-WDD7QJP6.mjs";
42
43
  import "./chunk-MGUYIOP2.mjs";
43
- import "./chunk-76XO5GE7.mjs";
44
+ import "./chunk-2YL2MVWN.mjs";
45
+ import {
46
+ DescriptionList
47
+ } from "./chunk-XMB45ILT.mjs";
44
48
  import "./chunk-T24JZIQO.mjs";
49
+ import "./chunk-MQ3EEUTP.mjs";
50
+ import {
51
+ Radiobutton
52
+ } from "./chunk-SEKRICE4.mjs";
45
53
  import "./chunk-BYEJZSG5.mjs";
46
54
  import {
47
55
  Select
48
- } from "./chunk-QCWENWLF.mjs";
56
+ } from "./chunk-RVJD2UZF.mjs";
49
57
  import "./chunk-AGZHQDCQ.mjs";
50
58
  import {
51
59
  Textarea
52
- } from "./chunk-3DOUHFA4.mjs";
60
+ } from "./chunk-RK6BB3HH.mjs";
53
61
  import "./chunk-LMF3QGSF.mjs";
54
62
  import {
55
63
  Fieldset
56
- } from "./chunk-P4XTJEES.mjs";
64
+ } from "./chunk-37WVYY6X.mjs";
57
65
  import "./chunk-7LPYJC6S.mjs";
58
66
  import {
59
67
  Input
60
- } from "./chunk-P6A7LH6M.mjs";
68
+ } from "./chunk-6TI7ACBR.mjs";
61
69
  import "./chunk-Y5SUMFYJ.mjs";
62
- import "./chunk-RLK2ENCB.mjs";
70
+ import "./chunk-SKI2APSK.mjs";
63
71
  import "./chunk-NSLSA7F7.mjs";
64
- import "./chunk-MQ3EEUTP.mjs";
65
72
  import {
66
- Radiobutton
67
- } from "./chunk-ELCSEPSM.mjs";
73
+ ErrorMessage
74
+ } from "./chunk-IL7576PP.mjs";
68
75
  import "./chunk-YJOOSTJC.mjs";
69
76
  import {
70
77
  Checkbox
71
- } from "./chunk-D2YCZMUP.mjs";
72
- import {
73
- ErrorMessage
74
- } from "./chunk-3VYJTKR3.mjs";
78
+ } from "./chunk-PXHYOQPB.mjs";
75
79
  import "./chunk-OIQUYB26.mjs";
76
80
  import {
77
81
  Container
78
- } from "./chunk-GKWD4EVJ.mjs";
82
+ } from "./chunk-I6GDRDYD.mjs";
79
83
  import "./chunk-XLLYMQLW.mjs";
80
84
  import {
81
85
  Link
82
- } from "./chunk-HYOVIP56.mjs";
83
- import "./chunk-KOAR6LZG.mjs";
84
- import {
85
- DescriptionList
86
- } from "./chunk-ZX7AH7XO.mjs";
86
+ } from "./chunk-MDA3MMNA.mjs";
87
+ import "./chunk-6QV3OV66.mjs";
87
88
  import {
88
89
  LinkList
89
- } from "./chunk-XU3GLCG4.mjs";
90
+ } from "./chunk-ZUKLWHUR.mjs";
90
91
  import {
91
92
  OrderedList,
92
93
  UnorderedList
93
- } from "./chunk-YJBADJDW.mjs";
94
+ } from "./chunk-PTANXZW6.mjs";
94
95
  import {
95
96
  BoxComponent
96
- } from "./chunk-ZOW7HKNV.mjs";
97
- import "./chunk-R7WBXNQA.mjs";
97
+ } from "./chunk-BZNDK3KJ.mjs";
98
+ import "./chunk-EGXM575K.mjs";
98
99
  import "./chunk-ZOCMUEOX.mjs";
99
100
  import {
100
101
  Breadcrumbs
101
- } from "./chunk-NTCLPQG3.mjs";
102
+ } from "./chunk-YKDKFWP2.mjs";
102
103
  import "./chunk-HT2EIJAD.mjs";
103
104
  import {
104
105
  PrimaryButton,
105
106
  SecondaryButton
106
- } from "./chunk-OJ42PRYY.mjs";
107
+ } from "./chunk-OUHO4LGN.mjs";
107
108
  import {
108
109
  CardComponent
109
- } from "./chunk-22GG466D.mjs";
110
- import "./chunk-ODFEKAJO.mjs";
111
- import {
112
- AccordionComponent
113
- } from "./chunk-FL4LCX4F.mjs";
114
- import "./chunk-VUD7AVYO.mjs";
115
- import "./chunk-GPV2IEZD.mjs";
116
- import "./chunk-5WUSLDKN.mjs";
117
- import "./chunk-2C6OZWFA.mjs";
110
+ } from "./chunk-JC6DBIFE.mjs";
111
+ import "./chunk-X5JERDDU.mjs";
118
112
  import "./chunk-K6PP3ACJ.mjs";
119
113
  import {
120
114
  Badge,
121
115
  DarkBadge,
122
116
  WarningBadge,
123
117
  WhiteBadge
124
- } from "./chunk-R6GRXGDW.mjs";
118
+ } from "./chunk-JDJQFQQ6.mjs";
119
+ import {
120
+ AccordionComponent
121
+ } from "./chunk-DJRMXOCP.mjs";
122
+ import "./chunk-KRGKVH5J.mjs";
123
+ import "./chunk-FT5CX2W5.mjs";
124
+ import "./chunk-SAGJ5W7M.mjs";
125
+ import "./chunk-VRIY65P5.mjs";
125
126
  import "./chunk-WCA2WPFS.mjs";
126
127
  import "./chunk-V3PAFMK5.mjs";
127
128
  import "./chunk-MSFHJVHD.mjs";
@@ -130,19 +131,19 @@ import {
130
131
  } from "./chunk-3ADVRQ3D.mjs";
131
132
  import {
132
133
  ShowMoreButton
133
- } from "./chunk-5IIBIO3Y.mjs";
134
+ } from "./chunk-W47NV442.mjs";
134
135
  import "./chunk-JTZPQHKD.mjs";
135
136
  import {
136
137
  Skeleton
137
- } from "./chunk-EJJIKLGC.mjs";
138
+ } from "./chunk-44X6U32G.mjs";
138
139
  import "./chunk-TJH5QJMS.mjs";
139
140
  import {
140
141
  StepIndicator
141
- } from "./chunk-PAVPAIBQ.mjs";
142
+ } from "./chunk-NIRIPLQ5.mjs";
142
143
  import "./chunk-JKCVB5TR.mjs";
143
144
  import {
144
145
  StyledHtml
145
- } from "./chunk-J6ES2LO5.mjs";
146
+ } from "./chunk-S5RB7KLJ.mjs";
146
147
  import "./chunk-33JD5XDW.mjs";
147
148
  import "./chunk-R4SQKVDQ.mjs";
148
149
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.tsx"],"sourcesContent":["/**\n * Import the hedwig css file, so the consumers don't have to. Plug and play.\n *\n * NOTE: Importing the full path, not just the package name.\n * For some reason vite did not include the css during development when this file only imported the package name.\n *\n * Consumers using the `@postenbring/hedwig-css` package directly should only need to import the package without a path.\n */\nimport \"@postenbring/hedwig-css/dist/index.css\";\n\nexport * from \"./index-no-css\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,OAAO;","names":[]}
1
+ {"version":3,"sources":["../src/index.tsx"],"sourcesContent":["/**\n * Import the hedwig css file, so the consumers don't have to. Plug and play.\n *\n * NOTE: Importing the full path, not just the package name.\n * For some reason vite did not include the css during development when this file only imported the package name.\n *\n * Consumers using the `@postenbring/hedwig-css` package directly should only need to import the package without a path.\n */\nimport \"@postenbring/hedwig-css/dist/index.css\";\n\nexport * from \"./index-no-css\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,OAAO;","names":[]}
@@ -52,7 +52,7 @@ __export(container_exports, {
52
52
  Container: () => Container
53
53
  });
54
54
  module.exports = __toCommonJS(container_exports);
55
- var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
55
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
56
56
  var import_react = require("react");
57
57
  var import_jsx_runtime = require("react/jsx-runtime");
58
58
  var Container = (0, import_react.forwardRef)(
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/layout/container/container.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { forwardRef } from \"react\";\nimport type { OverridableComponent } from \"../../utils\";\n\nexport interface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n variant?: \"default\" | \"slim\";\n children: ReactNode;\n}\n\n/**\n * Container is a layout component that is used to wrap content.\n * It ensures a max-width and minimum spacing on the sides.\n */\nexport const Container: OverridableComponent<ContainerProps, HTMLDivElement> = forwardRef(\n ({ as: Component = \"div\", className, children, variant, ...rest }, ref) => {\n return (\n <Component\n {...rest}\n className={clsx(\n \"hds-container\",\n { \"hds-container--slim\": variant === \"slim\" },\n className as undefined,\n )}\n ref={ref}\n >\n {children}\n </Component>\n );\n },\n);\nContainer.displayName = \"Container\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAqB;AAErB,mBAA2B;AAerB;AAHC,IAAM,gBAAkE;AAAA,EAC7E,CAAC,IAAkE,QAAQ;AAA1E,iBAAE,MAAI,YAAY,OAAO,WAAW,UAAU,QAfjD,IAeG,IAA0D,iBAA1D,IAA0D,CAAxD,MAAuB,aAAW,YAAU;AAC7C,WACE;AAAA,MAAC;AAAA,uCACK,OADL;AAAA,QAEC,eAAW;AAAA,UACT;AAAA,UACA,EAAE,uBAAuB,YAAY,OAAO;AAAA,UAC5C;AAAA,QACF;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,UAAU,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../../src/layout/container/container.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { forwardRef } from \"react\";\nimport type { OverridableComponent } from \"../../utils\";\n\nexport interface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n variant?: \"default\" | \"slim\";\n children: ReactNode;\n}\n\n/**\n * Container is a layout component that is used to wrap content.\n * It ensures a max-width and minimum spacing on the sides.\n */\nexport const Container: OverridableComponent<ContainerProps, HTMLDivElement> = forwardRef(\n ({ as: Component = \"div\", className, children, variant, ...rest }, ref) => {\n return (\n <Component\n {...rest}\n className={clsx(\n \"hds-container\",\n { \"hds-container--slim\": variant === \"slim\" },\n className as undefined,\n )}\n ref={ref}\n >\n {children}\n </Component>\n );\n },\n);\nContainer.displayName = \"Container\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAqB;AAErB,mBAA2B;AAerB;AAHC,IAAM,gBAAkE;AAAA,EAC7E,CAAC,IAAkE,QAAQ;AAA1E,iBAAE,MAAI,YAAY,OAAO,WAAW,UAAU,QAfjD,IAeG,IAA0D,iBAA1D,IAA0D,CAAxD,MAAuB,aAAW,YAAU;AAC7C,WACE;AAAA,MAAC;AAAA,uCACK,OADL;AAAA,QAEC,eAAW;AAAA,UACT;AAAA,UACA,EAAE,uBAAuB,YAAY,OAAO;AAAA,UAC5C;AAAA,QACF;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,UAAU,cAAc;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Container
3
- } from "../../chunk-GKWD4EVJ.mjs";
3
+ } from "../../chunk-I6GDRDYD.mjs";
4
4
  import "../../chunk-R4SQKVDQ.mjs";
5
5
  export {
6
6
  Container
@@ -54,7 +54,7 @@ __export(layout_exports, {
54
54
  module.exports = __toCommonJS(layout_exports);
55
55
 
56
56
  // src/layout/container/container.tsx
57
- var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
57
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
58
58
  var import_react = require("react");
59
59
  var import_jsx_runtime = require("react/jsx-runtime");
60
60
  var Container = (0, import_react.forwardRef)(
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/layout/index.tsx","../../src/layout/container/container.tsx"],"sourcesContent":["export { Container } from \"./container/container\";\n\nexport type * from \"./container/container\";\n","import { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { forwardRef } from \"react\";\nimport type { OverridableComponent } from \"../../utils\";\n\nexport interface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n variant?: \"default\" | \"slim\";\n children: ReactNode;\n}\n\n/**\n * Container is a layout component that is used to wrap content.\n * It ensures a max-width and minimum spacing on the sides.\n */\nexport const Container: OverridableComponent<ContainerProps, HTMLDivElement> = forwardRef(\n ({ as: Component = \"div\", className, children, variant, ...rest }, ref) => {\n return (\n <Component\n {...rest}\n className={clsx(\n \"hds-container\",\n { \"hds-container--slim\": variant === \"slim\" },\n className as undefined,\n )}\n ref={ref}\n >\n {children}\n </Component>\n );\n },\n);\nContainer.displayName = \"Container\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,6BAAqB;AAErB,mBAA2B;AAerB;AAHC,IAAM,gBAAkE;AAAA,EAC7E,CAAC,IAAkE,QAAQ;AAA1E,iBAAE,MAAI,YAAY,OAAO,WAAW,UAAU,QAfjD,IAeG,IAA0D,iBAA1D,IAA0D,CAAxD,MAAuB,aAAW,YAAU;AAC7C,WACE;AAAA,MAAC;AAAA,uCACK,OADL;AAAA,QAEC,eAAW;AAAA,UACT;AAAA,UACA,EAAE,uBAAuB,YAAY,OAAO;AAAA,UAC5C;AAAA,QACF;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,UAAU,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/layout/index.tsx","../../src/layout/container/container.tsx"],"sourcesContent":["export { Container } from \"./container/container\";\n\nexport type * from \"./container/container\";\n","import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { forwardRef } from \"react\";\nimport type { OverridableComponent } from \"../../utils\";\n\nexport interface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n variant?: \"default\" | \"slim\";\n children: ReactNode;\n}\n\n/**\n * Container is a layout component that is used to wrap content.\n * It ensures a max-width and minimum spacing on the sides.\n */\nexport const Container: OverridableComponent<ContainerProps, HTMLDivElement> = forwardRef(\n ({ as: Component = \"div\", className, children, variant, ...rest }, ref) => {\n return (\n <Component\n {...rest}\n className={clsx(\n \"hds-container\",\n { \"hds-container--slim\": variant === \"slim\" },\n className as undefined,\n )}\n ref={ref}\n >\n {children}\n </Component>\n );\n },\n);\nContainer.displayName = \"Container\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,6BAAqB;AAErB,mBAA2B;AAerB;AAHC,IAAM,gBAAkE;AAAA,EAC7E,CAAC,IAAkE,QAAQ;AAA1E,iBAAE,MAAI,YAAY,OAAO,WAAW,UAAU,QAfjD,IAeG,IAA0D,iBAA1D,IAA0D,CAAxD,MAAuB,aAAW,YAAU;AAC7C,WACE;AAAA,MAAC;AAAA,uCACK,OADL;AAAA,QAEC,eAAW;AAAA,UACT;AAAA,UACA,EAAE,uBAAuB,YAAY,OAAO;AAAA,UAC5C;AAAA,QACF;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,UAAU,cAAc;","names":[]}
@@ -1,7 +1,7 @@
1
1
  import "../chunk-OIQUYB26.mjs";
2
2
  import {
3
3
  Container
4
- } from "../chunk-GKWD4EVJ.mjs";
4
+ } from "../chunk-I6GDRDYD.mjs";
5
5
  import "../chunk-R4SQKVDQ.mjs";
6
6
  export {
7
7
  Container
@@ -54,7 +54,7 @@ __export(link_exports, {
54
54
  module.exports = __toCommonJS(link_exports);
55
55
 
56
56
  // src/link/link.tsx
57
- var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
57
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
58
58
  var import_react = require("react");
59
59
  var import_jsx_runtime = require("react/jsx-runtime");
60
60
  var Link = (0, import_react.forwardRef)(
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/link/index.tsx","../../src/link/link.tsx"],"sourcesContent":["export { Link } from \"./link\";\n\nexport type * from \"./link\";\n","import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport { forwardRef } from \"react\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n /**\n * The visual style of the link\n */\n variant?: \"underline\" | \"solid\" | \"inverted\" | \"no-underline\";\n\n /**\n * Font size of the link\n */\n size?: \"small\" | \"medium\" | \"large\";\n\n children: React.ReactNode;\n}\n\nexport const Link: OverridableComponent<LinkProps, HTMLAnchorElement> = forwardRef(\n (\n { as: Component = \"a\", children, variant = \"underline\", size = \"medium\", className, ...rest },\n ref,\n ) => {\n return (\n <Component\n className={clsx(\n \"hds-link\",\n variant !== \"underline\" && `hds-link--${variant}`,\n size !== \"medium\" && `hds-link--${size}`,\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nLink.displayName = \"Link\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,6BAAqB;AACrB,mBAA2B;AAuBrB;AANC,IAAM,WAA2D;AAAA,EACtE,CACE,IACA,QACG;AAFH,iBAAE,MAAI,YAAY,KAAK,UAAU,UAAU,aAAa,OAAO,UAAU,UArB7E,IAqBI,IAAuF,iBAAvF,IAAuF,CAArF,MAAqB,YAAU,WAAuB,QAAiB;AAGzE,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,YAAY,eAAe,aAAa,OAAO;AAAA,UAC/C,SAAS,YAAY,aAAa,IAAI;AAAA,UACtC;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/link/index.tsx","../../src/link/link.tsx"],"sourcesContent":["export { Link } from \"./link\";\n\nexport type * from \"./link\";\n","import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n /**\n * The visual style of the link\n */\n variant?: \"underline\" | \"solid\" | \"inverted\" | \"no-underline\";\n\n /**\n * Font size of the link\n */\n size?: \"small\" | \"medium\" | \"large\";\n\n children: React.ReactNode;\n}\n\nexport const Link: OverridableComponent<LinkProps, HTMLAnchorElement> = forwardRef(\n (\n { as: Component = \"a\", children, variant = \"underline\", size = \"medium\", className, ...rest },\n ref,\n ) => {\n return (\n <Component\n className={clsx(\n \"hds-link\",\n variant !== \"underline\" && `hds-link--${variant}`,\n size !== \"medium\" && `hds-link--${size}`,\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nLink.displayName = \"Link\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,6BAAqB;AACrB,mBAA2B;AAuBrB;AANC,IAAM,WAA2D;AAAA,EACtE,CACE,IACA,QACG;AAFH,iBAAE,MAAI,YAAY,KAAK,UAAU,UAAU,aAAa,OAAO,UAAU,UArB7E,IAqBI,IAAuF,iBAAvF,IAAuF,CAArF,MAAqB,YAAU,WAAuB,QAAiB;AAGzE,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,YAAY,eAAe,aAAa,OAAO;AAAA,UAC/C,SAAS,YAAY,aAAa,IAAI;AAAA,UACtC;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;","names":[]}
@@ -1,7 +1,7 @@
1
1
  import "../chunk-XLLYMQLW.mjs";
2
2
  import {
3
3
  Link
4
- } from "../chunk-HYOVIP56.mjs";
4
+ } from "../chunk-MDA3MMNA.mjs";
5
5
  import "../chunk-R4SQKVDQ.mjs";
6
6
  export {
7
7
  Link
package/dist/link/link.js CHANGED
@@ -52,7 +52,7 @@ __export(link_exports, {
52
52
  Link: () => Link
53
53
  });
54
54
  module.exports = __toCommonJS(link_exports);
55
- var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
55
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
56
56
  var import_react = require("react");
57
57
  var import_jsx_runtime = require("react/jsx-runtime");
58
58
  var Link = (0, import_react.forwardRef)(
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/link/link.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport { forwardRef } from \"react\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n /**\n * The visual style of the link\n */\n variant?: \"underline\" | \"solid\" | \"inverted\" | \"no-underline\";\n\n /**\n * Font size of the link\n */\n size?: \"small\" | \"medium\" | \"large\";\n\n children: React.ReactNode;\n}\n\nexport const Link: OverridableComponent<LinkProps, HTMLAnchorElement> = forwardRef(\n (\n { as: Component = \"a\", children, variant = \"underline\", size = \"medium\", className, ...rest },\n ref,\n ) => {\n return (\n <Component\n className={clsx(\n \"hds-link\",\n variant !== \"underline\" && `hds-link--${variant}`,\n size !== \"medium\" && `hds-link--${size}`,\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nLink.displayName = \"Link\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,6BAAqB;AACrB,mBAA2B;AAuBrB;AANC,IAAM,WAA2D;AAAA,EACtE,CACE,IACA,QACG;AAFH,iBAAE,MAAI,YAAY,KAAK,UAAU,UAAU,aAAa,OAAO,UAAU,UArB7E,IAqBI,IAAuF,iBAAvF,IAAuF,CAArF,MAAqB,YAAU,WAAuB,QAAiB;AAGzE,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,YAAY,eAAe,aAAa,OAAO;AAAA,UAC/C,SAAS,YAAY,aAAa,IAAI;AAAA,UACtC;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/link/link.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n /**\n * The visual style of the link\n */\n variant?: \"underline\" | \"solid\" | \"inverted\" | \"no-underline\";\n\n /**\n * Font size of the link\n */\n size?: \"small\" | \"medium\" | \"large\";\n\n children: React.ReactNode;\n}\n\nexport const Link: OverridableComponent<LinkProps, HTMLAnchorElement> = forwardRef(\n (\n { as: Component = \"a\", children, variant = \"underline\", size = \"medium\", className, ...rest },\n ref,\n ) => {\n return (\n <Component\n className={clsx(\n \"hds-link\",\n variant !== \"underline\" && `hds-link--${variant}`,\n size !== \"medium\" && `hds-link--${size}`,\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nLink.displayName = \"Link\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,6BAAqB;AACrB,mBAA2B;AAuBrB;AANC,IAAM,WAA2D;AAAA,EACtE,CACE,IACA,QACG;AAFH,iBAAE,MAAI,YAAY,KAAK,UAAU,UAAU,aAAa,OAAO,UAAU,UArB7E,IAqBI,IAAuF,iBAAvF,IAAuF,CAArF,MAAqB,YAAU,WAAuB,QAAiB;AAGzE,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,YAAY,eAAe,aAAa,OAAO;AAAA,UAC/C,SAAS,YAAY,aAAa,IAAI;AAAA,UACtC;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Link
3
- } from "../chunk-HYOVIP56.mjs";
3
+ } from "../chunk-MDA3MMNA.mjs";
4
4
  import "../chunk-R4SQKVDQ.mjs";
5
5
  export {
6
6
  Link
@@ -1,7 +1,5 @@
1
- export { DescriptionList_alias_3 as DescriptionList } from '../_tsup-dts-rollup';
2
1
  export { UnorderedList_alias_2 as UnorderedList } from '../_tsup-dts-rollup';
3
2
  export { OrderedList_alias_2 as OrderedList } from '../_tsup-dts-rollup';
4
3
  export { LinkList_alias_2 as LinkList } from '../_tsup-dts-rollup';
5
- export { DescriptionListProps_alias_3 as DescriptionListProps } from '../_tsup-dts-rollup';
6
4
  export { ListProps_alias_2 as ListProps } from '../_tsup-dts-rollup';
7
5
  export { LinkListProps_alias_2 as LinkListProps } from '../_tsup-dts-rollup';
@@ -1,7 +1,5 @@
1
- export { DescriptionList_alias_3 as DescriptionList } from '../_tsup-dts-rollup';
2
1
  export { UnorderedList_alias_2 as UnorderedList } from '../_tsup-dts-rollup';
3
2
  export { OrderedList_alias_2 as OrderedList } from '../_tsup-dts-rollup';
4
3
  export { LinkList_alias_2 as LinkList } from '../_tsup-dts-rollup';
5
- export { DescriptionListProps_alias_3 as DescriptionListProps } from '../_tsup-dts-rollup';
6
4
  export { ListProps_alias_2 as ListProps } from '../_tsup-dts-rollup';
7
5
  export { LinkListProps_alias_2 as LinkListProps } from '../_tsup-dts-rollup';
@@ -49,42 +49,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
49
49
  // src/list/index.tsx
50
50
  var list_exports = {};
51
51
  __export(list_exports, {
52
- DescriptionList: () => DescriptionList,
53
52
  LinkList: () => LinkList,
54
53
  OrderedList: () => OrderedList,
55
54
  UnorderedList: () => UnorderedList
56
55
  });
57
56
  module.exports = __toCommonJS(list_exports);
58
57
 
59
- // src/list/description-list.tsx
60
- var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
61
- var import_jsx_runtime = require("react/jsx-runtime");
62
- function DescriptionList(_a) {
63
- var _b = _a, {
64
- variant = "vertical",
65
- className
66
- } = _b, rest = __objRest(_b, [
67
- "variant",
68
- "className"
69
- ]);
70
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
- "dl",
72
- __spreadValues({
73
- className: (0, import_typed_classname.clsx)(
74
- "hds-description-list",
75
- {
76
- "hds-description-list--horizontal": variant === "horizontal"
77
- },
78
- className
79
- )
80
- }, rest)
81
- );
82
- }
83
- DescriptionList.displayName = "DescriptionList";
84
-
85
58
  // src/list/list.tsx
86
- var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
87
- var import_jsx_runtime2 = require("react/jsx-runtime");
59
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
60
+ var import_jsx_runtime = require("react/jsx-runtime");
88
61
  function BaseList(_a) {
89
62
  var _b = _a, {
90
63
  as: ListTag = "ul",
@@ -97,29 +70,28 @@ function BaseList(_a) {
97
70
  "size",
98
71
  "className"
99
72
  ]);
100
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ListTag, __spreadProps(__spreadValues({ className: (0, import_typed_classname2.clsx)("hds-list", `hds-list--${size}`, className) }, rest), { children }));
73
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ListTag, __spreadProps(__spreadValues({ className: (0, import_typed_classname.clsx)("hds-list", `hds-list--${size}`, className) }, rest), { children }));
101
74
  }
102
75
  function UnorderedList(props) {
103
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
76
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ul" }, props), { children: props.children }));
104
77
  }
105
78
  function OrderedList(props) {
106
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
79
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseList, __spreadProps(__spreadValues({ as: "ol" }, props), { children: props.children }));
107
80
  }
108
81
  BaseList.displayName = "BaseList";
109
82
  OrderedList.displayName = "OrderedList";
110
83
  UnorderedList.displayName = "UnorderedList";
111
84
 
112
85
  // src/list/link-list.tsx
113
- var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
114
- var import_jsx_runtime3 = require("react/jsx-runtime");
86
+ var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname");
87
+ var import_jsx_runtime2 = require("react/jsx-runtime");
115
88
  function LinkList(_a) {
116
89
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
117
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(UnorderedList, __spreadValues({ className: (0, import_typed_classname3.clsx)("hds-list--link-list", className) }, rest));
90
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(UnorderedList, __spreadValues({ className: (0, import_typed_classname2.clsx)("hds-list--link-list", className) }, rest));
118
91
  }
119
92
  LinkList.displayName = "LinkList";
120
93
  // Annotate the CommonJS export names for ESM import in node:
121
94
  0 && (module.exports = {
122
- DescriptionList,
123
95
  LinkList,
124
96
  OrderedList,
125
97
  UnorderedList
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/list/index.tsx","../../src/list/description-list.tsx","../../src/list/list.tsx","../../src/list/link-list.tsx"],"sourcesContent":["export { DescriptionList } from \"./description-list\";\nexport type * from \"./description-list\";\n\nexport { UnorderedList, OrderedList } from \"./list\";\nexport type * from \"./list\";\n\nexport { LinkList } from \"./link-list\";\nexport type * from \"./link-list\";\n","import type { HTMLAttributes, ReactNode } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\n\nexport interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {\n /**\n * Either `DescriptionDetails` or `DescriptionTerm` elements\n */\n children?: ReactNode;\n /**\n * Direction of the description list\n */\n variant?: \"vertical\" | \"horizontal\";\n}\n\n/**\n * Uses the HTML5 `<dl>` element\n *\n * Pass in corresponding `<dt>` and `<dd>` elements as children\n *\n * ```tsx\n * <DescriptionList>\n * <dt>Vekt</dt>\n * <dd>12 kg</dd>\n * <dt>Antall kolli</dt>\n * <dd>2</dd>\n * </DescriptionList>\n * ```\n *\n * Optionally wrap them in `<div>` elements as allowed by the HTML5 spec\n *\n * ```tsx\n * <DescriptionList>\n * <div>\n * <dt>Vekt</dt>\n * <dd>12 kg</dd>\n * </div>\n * <div>\n * <dt>Antall kolli</dt>\n * <dd>2</dd>\n * </div>\n * </DescriptionList>\n * ```\n */\nexport function DescriptionList({\n variant = \"vertical\",\n className,\n ...rest\n}: DescriptionListProps) {\n return (\n <dl\n className={clsx(\n \"hds-description-list\",\n {\n \"hds-description-list--horizontal\": variant === \"horizontal\",\n },\n className as undefined,\n )}\n {...rest}\n />\n );\n}\nDescriptionList.displayName = \"DescriptionList\";\n","import type { HTMLAttributes } from \"react\";\nimport * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n /**\n * Sets the size of the items (font)\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\nfunction BaseList({\n as: ListTag = \"ul\",\n children,\n size = \"medium\",\n className,\n ...rest\n}: ListProps & { as?: \"ul\" | \"ol\" }) {\n return (\n <ListTag className={clsx(\"hds-list\", `hds-list--${size}`, className as undefined)} {...rest}>\n {children}\n </ListTag>\n );\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function UnorderedList(props: ListProps) {\n return (\n <BaseList as=\"ul\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function OrderedList(props: ListProps) {\n return (\n <BaseList as=\"ol\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\nBaseList.displayName = \"BaseList\";\nOrderedList.displayName = \"OrderedList\";\nUnorderedList.displayName = \"UnorderedList\";\n","import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { ListProps } from \"./list\";\nimport { UnorderedList } from \"./list\";\n\nexport interface LinkListProps extends Omit<ListProps, \"listStyle\"> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n}\n\n/**\n * Show a list of links\n *\n * For other list types use `UnorderedList` and `OrderedList`, or use your own list component using the semantic `ul` and `ol` tags.\n */\nexport function LinkList({ className, ...rest }: LinkListProps) {\n return (\n <UnorderedList className={clsx(\"hds-list--link-list\", className as undefined)} {...rest} />\n );\n}\n\nLinkList.displayName = \"LinkList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACCA,6BAAqB;AAgDjB;AANG,SAAS,gBAAgB,IAIP;AAJO,eAC9B;AAAA,cAAU;AAAA,IACV;AAAA,EA7CF,IA2CgC,IAG3B,iBAH2B,IAG3B;AAAA,IAFH;AAAA,IACA;AAAA;AAGA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT;AAAA,QACA;AAAA,UACE,oCAAoC,YAAY;AAAA,QAClD;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,EACN;AAEJ;AACA,gBAAgB,cAAc;;;AC3D9B,IAAAA,0BAAqB;AAkBjB,IAAAC,sBAAA;AARJ,SAAS,SAAS,IAMmB;AANnB,eAChB;AAAA,QAAI,UAAU;AAAA,IACd;AAAA,IACA,OAAO;AAAA,IACP;AAAA,EAhBF,IAYkB,IAKb,iBALa,IAKb;AAAA,IAJH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,SACE,6CAAC,wCAAQ,eAAW,8BAAK,YAAY,aAAa,IAAI,IAAI,SAAsB,KAAO,OAAtF,EACE,WACH;AAEJ;AAOO,SAAS,cAAc,OAAkB;AAC9C,SACE,6CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAOO,SAAS,YAAY,OAAkB;AAC5C,SACE,6CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAEA,SAAS,cAAc;AACvB,YAAY,cAAc;AAC1B,cAAc,cAAc;;;ACrD5B,IAAAC,0BAAqB;AAejB,IAAAC,sBAAA;AAFG,SAAS,SAAS,IAAuC;AAAvC,eAAE,YAd3B,IAcyB,IAAgB,iBAAhB,IAAgB,CAAd;AACzB,SACE,6CAAC,gCAAc,eAAW,8BAAK,uBAAuB,SAAsB,KAAO,KAAM;AAE7F;AAEA,SAAS,cAAc;","names":["import_typed_classname","import_jsx_runtime","import_typed_classname","import_jsx_runtime"]}
1
+ {"version":3,"sources":["../../src/list/index.tsx","../../src/list/list.tsx","../../src/list/link-list.tsx"],"sourcesContent":["export { UnorderedList, OrderedList } from \"./list\";\nexport type * from \"./list\";\n\nexport { LinkList } from \"./link-list\";\nexport type * from \"./link-list\";\n","import type { HTMLAttributes } from \"react\";\nimport * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n /**\n * Sets the size of the items (font)\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\nfunction BaseList({\n as: ListTag = \"ul\",\n children,\n size = \"medium\",\n className,\n ...rest\n}: ListProps & { as?: \"ul\" | \"ol\" }) {\n return (\n <ListTag className={clsx(\"hds-list\", `hds-list--${size}`, className as undefined)} {...rest}>\n {children}\n </ListTag>\n );\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function UnorderedList(props: ListProps) {\n return (\n <BaseList as=\"ul\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function OrderedList(props: ListProps) {\n return (\n <BaseList as=\"ol\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\nBaseList.displayName = \"BaseList\";\nOrderedList.displayName = \"OrderedList\";\nUnorderedList.displayName = \"UnorderedList\";\n","import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport type { ListProps } from \"./list\";\nimport { UnorderedList } from \"./list\";\n\nexport interface LinkListProps extends Omit<ListProps, \"listStyle\"> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n}\n\n/**\n * Show a list of links\n *\n * For other list types use `UnorderedList` and `OrderedList`, or use your own list component using the semantic `ul` and `ol` tags.\n */\nexport function LinkList({ className, ...rest }: LinkListProps) {\n return (\n <UnorderedList className={clsx(\"hds-list--link-list\", className as undefined)} {...rest} />\n );\n}\n\nLinkList.displayName = \"LinkList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,6BAAqB;AAkBjB;AARJ,SAAS,SAAS,IAMmB;AANnB,eAChB;AAAA,QAAI,UAAU;AAAA,IACd;AAAA,IACA,OAAO;AAAA,IACP;AAAA,EAhBF,IAYkB,IAKb,iBALa,IAKb;AAAA,IAJH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,SACE,4CAAC,wCAAQ,eAAW,6BAAK,YAAY,aAAa,IAAI,IAAI,SAAsB,KAAO,OAAtF,EACE,WACH;AAEJ;AAOO,SAAS,cAAc,OAAkB;AAC9C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAOO,SAAS,YAAY,OAAkB;AAC5C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAEA,SAAS,cAAc;AACvB,YAAY,cAAc;AAC1B,cAAc,cAAc;;;ACrD5B,IAAAA,0BAAqB;AAejB,IAAAC,sBAAA;AAFG,SAAS,SAAS,IAAuC;AAAvC,eAAE,YAd3B,IAcyB,IAAgB,iBAAhB,IAAgB,CAAd;AACzB,SACE,6CAAC,gCAAc,eAAW,8BAAK,uBAAuB,SAAsB,KAAO,KAAM;AAE7F;AAEA,SAAS,cAAc;","names":["import_typed_classname","import_jsx_runtime"]}
@@ -1,17 +1,13 @@
1
- import "../chunk-KOAR6LZG.mjs";
2
- import {
3
- DescriptionList
4
- } from "../chunk-ZX7AH7XO.mjs";
1
+ import "../chunk-6QV3OV66.mjs";
5
2
  import {
6
3
  LinkList
7
- } from "../chunk-XU3GLCG4.mjs";
4
+ } from "../chunk-ZUKLWHUR.mjs";
8
5
  import {
9
6
  OrderedList,
10
7
  UnorderedList
11
- } from "../chunk-YJBADJDW.mjs";
8
+ } from "../chunk-PTANXZW6.mjs";
12
9
  import "../chunk-R4SQKVDQ.mjs";
13
10
  export {
14
- DescriptionList,
15
11
  LinkList,
16
12
  OrderedList,
17
13
  UnorderedList
@@ -52,10 +52,10 @@ __export(link_list_exports, {
52
52
  LinkList: () => LinkList
53
53
  });
54
54
  module.exports = __toCommonJS(link_list_exports);
55
- var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
55
+ var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname");
56
56
 
57
57
  // src/list/list.tsx
58
- var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
58
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
59
59
  var import_jsx_runtime = require("react/jsx-runtime");
60
60
  function BaseList(_a) {
61
61
  var _b = _a, {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/list/link-list.tsx","../../src/list/list.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { ListProps } from \"./list\";\nimport { UnorderedList } from \"./list\";\n\nexport interface LinkListProps extends Omit<ListProps, \"listStyle\"> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n}\n\n/**\n * Show a list of links\n *\n * For other list types use `UnorderedList` and `OrderedList`, or use your own list component using the semantic `ul` and `ol` tags.\n */\nexport function LinkList({ className, ...rest }: LinkListProps) {\n return (\n <UnorderedList className={clsx(\"hds-list--link-list\", className as undefined)} {...rest} />\n );\n}\n\nLinkList.displayName = \"LinkList\";\n","import type { HTMLAttributes } from \"react\";\nimport * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n /**\n * Sets the size of the items (font)\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\nfunction BaseList({\n as: ListTag = \"ul\",\n children,\n size = \"medium\",\n className,\n ...rest\n}: ListProps & { as?: \"ul\" | \"ol\" }) {\n return (\n <ListTag className={clsx(\"hds-list\", `hds-list--${size}`, className as undefined)} {...rest}>\n {children}\n </ListTag>\n );\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function UnorderedList(props: ListProps) {\n return (\n <BaseList as=\"ul\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function OrderedList(props: ListProps) {\n return (\n <BaseList as=\"ol\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\nBaseList.displayName = \"BaseList\";\nOrderedList.displayName = \"OrderedList\";\nUnorderedList.displayName = \"UnorderedList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,IAAAA,0BAAqB;;;ACCrB,6BAAqB;AAkBjB;AARJ,SAAS,SAAS,IAMmB;AANnB,eAChB;AAAA,QAAI,UAAU;AAAA,IACd;AAAA,IACA,OAAO;AAAA,IACP;AAAA,EAhBF,IAYkB,IAKb,iBALa,IAKb;AAAA,IAJH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,SACE,4CAAC,wCAAQ,eAAW,6BAAK,YAAY,aAAa,IAAI,IAAI,SAAsB,KAAO,OAAtF,EACE,WACH;AAEJ;AAOO,SAAS,cAAc,OAAkB;AAC9C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAOO,SAAS,YAAY,OAAkB;AAC5C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAEA,SAAS,cAAc;AACvB,YAAY,cAAc;AAC1B,cAAc,cAAc;;;ADtCxB,IAAAC,sBAAA;AAFG,SAAS,SAAS,IAAuC;AAAvC,eAAE,YAd3B,IAcyB,IAAgB,iBAAhB,IAAgB,CAAd;AACzB,SACE,6CAAC,gCAAc,eAAW,8BAAK,uBAAuB,SAAsB,KAAO,KAAM;AAE7F;AAEA,SAAS,cAAc;","names":["import_typed_classname","import_jsx_runtime"]}
1
+ {"version":3,"sources":["../../src/list/link-list.tsx","../../src/list/list.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport type { ListProps } from \"./list\";\nimport { UnorderedList } from \"./list\";\n\nexport interface LinkListProps extends Omit<ListProps, \"listStyle\"> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n}\n\n/**\n * Show a list of links\n *\n * For other list types use `UnorderedList` and `OrderedList`, or use your own list component using the semantic `ul` and `ol` tags.\n */\nexport function LinkList({ className, ...rest }: LinkListProps) {\n return (\n <UnorderedList className={clsx(\"hds-list--link-list\", className as undefined)} {...rest} />\n );\n}\n\nLinkList.displayName = \"LinkList\";\n","import type { HTMLAttributes } from \"react\";\nimport * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n /**\n * Sets the size of the items (font)\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\nfunction BaseList({\n as: ListTag = \"ul\",\n children,\n size = \"medium\",\n className,\n ...rest\n}: ListProps & { as?: \"ul\" | \"ol\" }) {\n return (\n <ListTag className={clsx(\"hds-list\", `hds-list--${size}`, className as undefined)} {...rest}>\n {children}\n </ListTag>\n );\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function UnorderedList(props: ListProps) {\n return (\n <BaseList as=\"ul\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function OrderedList(props: ListProps) {\n return (\n <BaseList as=\"ol\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\nBaseList.displayName = \"BaseList\";\nOrderedList.displayName = \"OrderedList\";\nUnorderedList.displayName = \"UnorderedList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,IAAAA,0BAAqB;;;ACCrB,6BAAqB;AAkBjB;AARJ,SAAS,SAAS,IAMmB;AANnB,eAChB;AAAA,QAAI,UAAU;AAAA,IACd;AAAA,IACA,OAAO;AAAA,IACP;AAAA,EAhBF,IAYkB,IAKb,iBALa,IAKb;AAAA,IAJH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,SACE,4CAAC,wCAAQ,eAAW,6BAAK,YAAY,aAAa,IAAI,IAAI,SAAsB,KAAO,OAAtF,EACE,WACH;AAEJ;AAOO,SAAS,cAAc,OAAkB;AAC9C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAOO,SAAS,YAAY,OAAkB;AAC5C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAEA,SAAS,cAAc;AACvB,YAAY,cAAc;AAC1B,cAAc,cAAc;;;ADtCxB,IAAAC,sBAAA;AAFG,SAAS,SAAS,IAAuC;AAAvC,eAAE,YAd3B,IAcyB,IAAgB,iBAAhB,IAAgB,CAAd;AACzB,SACE,6CAAC,gCAAc,eAAW,8BAAK,uBAAuB,SAAsB,KAAO,KAAM;AAE7F;AAEA,SAAS,cAAc;","names":["import_typed_classname","import_jsx_runtime"]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  LinkList
3
- } from "../chunk-XU3GLCG4.mjs";
4
- import "../chunk-YJBADJDW.mjs";
3
+ } from "../chunk-ZUKLWHUR.mjs";
4
+ import "../chunk-PTANXZW6.mjs";
5
5
  import "../chunk-R4SQKVDQ.mjs";
6
6
  export {
7
7
  LinkList
package/dist/list/list.js CHANGED
@@ -53,7 +53,7 @@ __export(list_exports, {
53
53
  UnorderedList: () => UnorderedList
54
54
  });
55
55
  module.exports = __toCommonJS(list_exports);
56
- var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
56
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
57
57
  var import_jsx_runtime = require("react/jsx-runtime");
58
58
  function BaseList(_a) {
59
59
  var _b = _a, {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/list/list.tsx"],"sourcesContent":["import type { HTMLAttributes } from \"react\";\nimport * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n /**\n * Sets the size of the items (font)\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\nfunction BaseList({\n as: ListTag = \"ul\",\n children,\n size = \"medium\",\n className,\n ...rest\n}: ListProps & { as?: \"ul\" | \"ol\" }) {\n return (\n <ListTag className={clsx(\"hds-list\", `hds-list--${size}`, className as undefined)} {...rest}>\n {children}\n </ListTag>\n );\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function UnorderedList(props: ListProps) {\n return (\n <BaseList as=\"ul\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function OrderedList(props: ListProps) {\n return (\n <BaseList as=\"ol\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\nBaseList.displayName = \"BaseList\";\nOrderedList.displayName = \"OrderedList\";\nUnorderedList.displayName = \"UnorderedList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,6BAAqB;AAkBjB;AARJ,SAAS,SAAS,IAMmB;AANnB,eAChB;AAAA,QAAI,UAAU;AAAA,IACd;AAAA,IACA,OAAO;AAAA,IACP;AAAA,EAhBF,IAYkB,IAKb,iBALa,IAKb;AAAA,IAJH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,SACE,4CAAC,wCAAQ,eAAW,6BAAK,YAAY,aAAa,IAAI,IAAI,SAAsB,KAAO,OAAtF,EACE,WACH;AAEJ;AAOO,SAAS,cAAc,OAAkB;AAC9C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAOO,SAAS,YAAY,OAAkB;AAC5C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAEA,SAAS,cAAc;AACvB,YAAY,cAAc;AAC1B,cAAc,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/list/list.tsx"],"sourcesContent":["import type { HTMLAttributes } from \"react\";\nimport * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {\n children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];\n /**\n * Sets the size of the items (font)\n */\n size?: \"small\" | \"medium\" | \"large\";\n}\n\nfunction BaseList({\n as: ListTag = \"ul\",\n children,\n size = \"medium\",\n className,\n ...rest\n}: ListProps & { as?: \"ul\" | \"ol\" }) {\n return (\n <ListTag className={clsx(\"hds-list\", `hds-list--${size}`, className as undefined)} {...rest}>\n {children}\n </ListTag>\n );\n}\n\n/**\n * An unordered list of simple items, often text. You can nest other lists inside this component.\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function UnorderedList(props: ListProps) {\n return (\n <BaseList as=\"ul\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\n/**\n * An ordered list of simple items\n *\n * If you have other list needs build your own using the semantic `ul` and `ol` tags.\n */\nexport function OrderedList(props: ListProps) {\n return (\n <BaseList as=\"ol\" {...props}>\n {props.children}\n </BaseList>\n );\n}\n\nBaseList.displayName = \"BaseList\";\nOrderedList.displayName = \"OrderedList\";\nUnorderedList.displayName = \"UnorderedList\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,6BAAqB;AAkBjB;AARJ,SAAS,SAAS,IAMmB;AANnB,eAChB;AAAA,QAAI,UAAU;AAAA,IACd;AAAA,IACA,OAAO;AAAA,IACP;AAAA,EAhBF,IAYkB,IAKb,iBALa,IAKb;AAAA,IAJH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGA,SACE,4CAAC,wCAAQ,eAAW,6BAAK,YAAY,aAAa,IAAI,IAAI,SAAsB,KAAO,OAAtF,EACE,WACH;AAEJ;AAOO,SAAS,cAAc,OAAkB;AAC9C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAOO,SAAS,YAAY,OAAkB;AAC5C,SACE,4CAAC,yCAAS,IAAG,QAAS,QAArB,EACE,gBAAM,WACT;AAEJ;AAEA,SAAS,cAAc;AACvB,YAAY,cAAc;AAC1B,cAAc,cAAc;","names":[]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OrderedList,
3
3
  UnorderedList
4
- } from "../chunk-YJBADJDW.mjs";
4
+ } from "../chunk-PTANXZW6.mjs";
5
5
  import "../chunk-R4SQKVDQ.mjs";
6
6
  export {
7
7
  OrderedList,
@@ -55,11 +55,11 @@ module.exports = __toCommonJS(message_exports);
55
55
 
56
56
  // src/message/message.tsx
57
57
  var import_react2 = require("react");
58
- var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
58
+ var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname");
59
59
 
60
60
  // src/box/box.tsx
61
61
  var import_react = require("react");
62
- var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
62
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname");
63
63
  var import_jsx_runtime = require("react/jsx-runtime");
64
64
  var Box = (0, import_react.forwardRef)(
65
65
  (_a, ref) => {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/message/index.tsx","../../src/message/message.tsx","../../src/box/box.tsx"],"sourcesContent":["import { Message, MessageTitle, MessageDescription } from \"./message\";\n\nconst MessageComponent = Message as typeof Message & {\n Title: typeof MessageTitle;\n Description: typeof MessageDescription;\n};\n\nMessageComponent.Title = MessageTitle;\nMessageComponent.Description = MessageDescription;\n\nexport { MessageComponent as Message };\n","import React, { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\nimport { Box, type BoxProps } from \"../box/box\";\n\nexport type MessageProps = (\n | {\n variant?: \"success\" | \"attention\" | \"warning\";\n icon?: never;\n iconClassName?: never;\n }\n | {\n variant: \"neutral\";\n icon?: React.ReactNode;\n iconClassName?: string;\n }\n) &\n Omit<BoxProps, \"variant\">;\n\nexport const Message: OverridableComponent<MessageProps, HTMLDivElement> = forwardRef(\n ({ children, className, variant = \"success\", icon, iconClassName, ...rest }, ref) => {\n return (\n <Box\n className={clsx(`hds-message`, `hds-message--${variant}`, className as undefined)}\n ref={ref}\n {...rest}\n >\n {variant === \"neutral\" && (\n <div className={clsx(\"hds-message--neutral__icon\", iconClassName as undefined)}>\n {icon}\n </div>\n )}\n {children}\n </Box>\n );\n },\n);\nMessage.displayName = \"Message\";\n\nexport const MessageTitle: OverridableComponent<object, HTMLParagraphElement> = forwardRef(\n ({ as: Component = \"p\", className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\"hds-message__title\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageTitle.displayName = \"Message.Title\";\n\nexport const MessageDescription: OverridableComponent<object, HTMLParagraphElement> = forwardRef(\n ({ as: Component = \"p\", className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\"hds-message__description\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageDescription.displayName = \"Message.Description\";\n","import { forwardRef, useCallback, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n variant?: \"light-grey\" | \"lighter\" | \"white\" | \"warning\";\n children?: React.ReactNode;\n\n /**\n * If `true`, a close button will be shown.\n * Use when you want to control the close button using the BoxCloseButton component.\n */\n closeable?: boolean;\n\n /**\n * Callback fired when the component requests to be closed.\n * If not set, the component will be closed without any user interaction.\n *\n * If set, and the handler returns non-true value, the component will not be closed.\n * Use this if you want to control the closing of the component, using the `closed` prop\n *\n * If set, and the handler returns the true, the component will be closed.\n * Use this with `window.confirm()` to ask the user to confirm closing the component.\n */\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- It's fine, I want to have the boolean in the type\n onClose?: () => boolean | unknown;\n\n /**\n * If `true`, the box will be closed and hidden from view\n */\n closed?: boolean;\n\n /**\n * Props applied to the close button element.\n */\n closeButtonProps?: BoxCloseButtonProps;\n}\n\nexport const Box: OverridableComponent<BoxProps, HTMLDivElement> = forwardRef(\n (\n {\n as: Component = \"div\",\n variant,\n closeable = false,\n onClose: onCloseProp,\n closed: closedProp,\n closeButtonProps,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [closedState, setClosedState] = useState(false);\n const onClose = useCallback(() => {\n if (onCloseProp) {\n const result = onCloseProp();\n if (result === true) {\n setClosedState(true);\n }\n } else {\n setClosedState(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- I know better\n }, []);\n const closed = closedProp ?? closedState;\n\n return (\n <Component\n className={clsx(\n \"hds-box\",\n variant && `hds-box--${variant}`,\n { \"hds-box--closed\": closed },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {closeable ? <BoxCloseButton onClick={onClose} {...closeButtonProps} /> : null}\n {children}\n </Component>\n );\n },\n);\nBox.displayName = \"Box\";\n\nexport type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, \"children\">;\nexport const BoxCloseButton = forwardRef<HTMLButtonElement, BoxCloseButtonProps>(\n ({ className, ...rest }, ref) => {\n return (\n <button\n className={clsx(\"hds-box__close-button\", className as undefined)}\n ref={ref}\n type=\"button\"\n {...rest}\n />\n );\n },\n);\nBoxCloseButton.displayName = \"Box.CloseButton\";\n"],"mappings":"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","names":["import_react","import_typed_classname","import_jsx_runtime"]}
1
+ {"version":3,"sources":["../../src/message/index.tsx","../../src/message/message.tsx","../../src/box/box.tsx"],"sourcesContent":["import { Message, MessageTitle, MessageDescription } from \"./message\";\n\nconst MessageComponent = Message as typeof Message & {\n Title: typeof MessageTitle;\n Description: typeof MessageDescription;\n};\n\nMessageComponent.Title = MessageTitle;\nMessageComponent.Description = MessageDescription;\n\nexport { MessageComponent as Message };\n","import React, { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport type { OverridableComponent } from \"../utils\";\nimport { Box, type BoxProps } from \"../box/box\";\n\nexport type MessageProps = (\n | {\n variant?: \"success\" | \"attention\" | \"warning\";\n icon?: never;\n iconClassName?: never;\n }\n | {\n variant: \"neutral\";\n icon?: React.ReactNode;\n iconClassName?: string;\n }\n) &\n Omit<BoxProps, \"variant\">;\n\nexport const Message: OverridableComponent<MessageProps, HTMLDivElement> = forwardRef(\n ({ children, className, variant = \"success\", icon, iconClassName, ...rest }, ref) => {\n return (\n <Box\n className={clsx(`hds-message`, `hds-message--${variant}`, className as undefined)}\n ref={ref}\n {...rest}\n >\n {variant === \"neutral\" && (\n <div className={clsx(\"hds-message--neutral__icon\", iconClassName as undefined)}>\n {icon}\n </div>\n )}\n {children}\n </Box>\n );\n },\n);\nMessage.displayName = \"Message\";\n\nexport const MessageTitle: OverridableComponent<object, HTMLParagraphElement> = forwardRef(\n ({ as: Component = \"p\", className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\"hds-message__title\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageTitle.displayName = \"Message.Title\";\n\nexport const MessageDescription: OverridableComponent<object, HTMLParagraphElement> = forwardRef(\n ({ as: Component = \"p\", className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\"hds-message__description\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageDescription.displayName = \"Message.Description\";\n","import { forwardRef, useCallback, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n variant?: \"light-grey\" | \"lighter\" | \"white\" | \"warning\";\n children?: React.ReactNode;\n\n /**\n * If `true`, a close button will be shown.\n * Use when you want to control the close button using the BoxCloseButton component.\n */\n closeable?: boolean;\n\n /**\n * Callback fired when the component requests to be closed.\n * If not set, the component will be closed without any user interaction.\n *\n * If set, and the handler returns non-true value, the component will not be closed.\n * Use this if you want to control the closing of the component, using the `closed` prop\n *\n * If set, and the handler returns the true, the component will be closed.\n * Use this with `window.confirm()` to ask the user to confirm closing the component.\n */\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- It's fine, I want to have the boolean in the type\n onClose?: () => boolean | unknown;\n\n /**\n * If `true`, the box will be closed and hidden from view\n */\n closed?: boolean;\n\n /**\n * Props applied to the close button element.\n */\n closeButtonProps?: BoxCloseButtonProps;\n}\n\nexport const Box: OverridableComponent<BoxProps, HTMLDivElement> = forwardRef(\n (\n {\n as: Component = \"div\",\n variant,\n closeable = false,\n onClose: onCloseProp,\n closed: closedProp,\n closeButtonProps,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [closedState, setClosedState] = useState(false);\n const onClose = useCallback(() => {\n if (onCloseProp) {\n const result = onCloseProp();\n if (result === true) {\n setClosedState(true);\n }\n } else {\n setClosedState(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- I know better\n }, []);\n const closed = closedProp ?? closedState;\n\n return (\n <Component\n className={clsx(\n \"hds-box\",\n variant && `hds-box--${variant}`,\n { \"hds-box--closed\": closed },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {closeable ? <BoxCloseButton onClick={onClose} {...closeButtonProps} /> : null}\n {children}\n </Component>\n );\n },\n);\nBox.displayName = \"Box\";\n\nexport type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, \"children\">;\nexport const BoxCloseButton = forwardRef<HTMLButtonElement, BoxCloseButtonProps>(\n ({ className, ...rest }, ref) => {\n return (\n <button\n className={clsx(\"hds-box__close-button\", className as undefined)}\n ref={ref}\n type=\"button\"\n {...rest}\n />\n );\n },\n);\nBoxCloseButton.displayName = \"Box.CloseButton\";\n"],"mappings":"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","names":["import_react","import_typed_classname","import_jsx_runtime"]}
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  MessageComponent
3
- } from "../chunk-QOBS2TS5.mjs";
4
- import "../chunk-IDDIXDNV.mjs";
5
- import "../chunk-R7WBXNQA.mjs";
3
+ } from "../chunk-AR2NOI4U.mjs";
4
+ import "../chunk-ME66RUR6.mjs";
5
+ import "../chunk-EGXM575K.mjs";
6
6
  import "../chunk-R4SQKVDQ.mjs";
7
7
  export {
8
8
  MessageComponent as Message