@postenbring/hedwig-react 0.0.50 → 0.0.52

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 (505) hide show
  1. package/dist/_tsup-dts-rollup.d.mts +1740 -0
  2. package/dist/_tsup-dts-rollup.d.ts +1740 -0
  3. package/dist/accordion/accordion-content.d.mts +2 -9
  4. package/dist/accordion/accordion-content.d.ts +2 -9
  5. package/dist/accordion/accordion-content.js +1 -0
  6. package/dist/accordion/accordion-content.js.map +1 -0
  7. package/dist/accordion/accordion-content.mjs +4 -3
  8. package/dist/accordion/accordion-content.mjs.map +1 -0
  9. package/dist/accordion/accordion-header.d.mts +2 -9
  10. package/dist/accordion/accordion-header.d.ts +2 -9
  11. package/dist/accordion/accordion-header.js +1 -0
  12. package/dist/accordion/accordion-header.js.map +1 -0
  13. package/dist/accordion/accordion-header.mjs +4 -3
  14. package/dist/accordion/accordion-header.mjs.map +1 -0
  15. package/dist/accordion/accordion-item.d.mts +3 -27
  16. package/dist/accordion/accordion-item.d.ts +3 -27
  17. package/dist/accordion/accordion-item.js +1 -0
  18. package/dist/accordion/accordion-item.js.map +1 -0
  19. package/dist/accordion/accordion-item.mjs +4 -3
  20. package/dist/accordion/accordion-item.mjs.map +1 -0
  21. package/dist/accordion/accordion.d.mts +2 -20
  22. package/dist/accordion/accordion.d.ts +2 -20
  23. package/dist/accordion/accordion.js +1 -0
  24. package/dist/accordion/accordion.js.map +1 -0
  25. package/dist/accordion/accordion.mjs +3 -2
  26. package/dist/accordion/accordion.mjs.map +1 -0
  27. package/dist/accordion/index.d.mts +9 -22
  28. package/dist/accordion/index.d.ts +9 -22
  29. package/dist/accordion/index.js +1 -0
  30. package/dist/accordion/index.js.map +1 -0
  31. package/dist/accordion/index.mjs +8 -7
  32. package/dist/accordion/index.mjs.map +1 -0
  33. package/dist/badge/badge.d.mts +5 -28
  34. package/dist/badge/badge.d.ts +5 -28
  35. package/dist/badge/badge.js +1 -0
  36. package/dist/badge/badge.js.map +1 -0
  37. package/dist/badge/badge.mjs +3 -2
  38. package/dist/badge/badge.mjs.map +1 -0
  39. package/dist/badge/index.d.mts +5 -3
  40. package/dist/badge/index.d.ts +5 -3
  41. package/dist/badge/index.js +1 -0
  42. package/dist/badge/index.js.map +1 -0
  43. package/dist/badge/index.mjs +4 -3
  44. package/dist/badge/index.mjs.map +1 -0
  45. package/dist/box/box.d.mts +4 -36
  46. package/dist/box/box.d.ts +4 -36
  47. package/dist/box/box.js +1 -0
  48. package/dist/box/box.js.map +1 -0
  49. package/dist/box/box.mjs +3 -2
  50. package/dist/box/box.mjs.map +1 -0
  51. package/dist/box/index.d.mts +4 -15
  52. package/dist/box/index.d.ts +4 -15
  53. package/dist/box/index.js +1 -0
  54. package/dist/box/index.js.map +1 -0
  55. package/dist/box/index.mjs +4 -3
  56. package/dist/box/index.mjs.map +1 -0
  57. package/dist/breadcrumb/breadcrumb.d.mts +2 -39
  58. package/dist/breadcrumb/breadcrumb.d.ts +2 -39
  59. package/dist/breadcrumb/breadcrumb.js +1 -0
  60. package/dist/breadcrumb/breadcrumb.js.map +1 -0
  61. package/dist/breadcrumb/breadcrumb.mjs +3 -2
  62. package/dist/breadcrumb/breadcrumb.mjs.map +1 -0
  63. package/dist/breadcrumb/index.d.mts +2 -3
  64. package/dist/breadcrumb/index.d.ts +2 -3
  65. package/dist/breadcrumb/index.js +1 -0
  66. package/dist/breadcrumb/index.js.map +1 -0
  67. package/dist/breadcrumb/index.mjs +4 -3
  68. package/dist/breadcrumb/index.mjs.map +1 -0
  69. package/dist/button/button.d.mts +4 -44
  70. package/dist/button/button.d.ts +4 -44
  71. package/dist/button/button.js +1 -0
  72. package/dist/button/button.js.map +1 -0
  73. package/dist/button/button.mjs +3 -2
  74. package/dist/button/button.mjs.map +1 -0
  75. package/dist/button/index.d.mts +4 -3
  76. package/dist/button/index.d.ts +4 -3
  77. package/dist/button/index.js +1 -0
  78. package/dist/button/index.js.map +1 -0
  79. package/dist/button/index.mjs +4 -3
  80. package/dist/button/index.mjs.map +1 -0
  81. package/dist/card/card.d.mts +12 -45
  82. package/dist/card/card.d.ts +12 -45
  83. package/dist/card/card.js +1 -0
  84. package/dist/card/card.js.map +1 -0
  85. package/dist/card/card.mjs +3 -2
  86. package/dist/card/card.mjs.map +1 -0
  87. package/dist/card/index.d.mts +12 -54
  88. package/dist/card/index.d.ts +12 -54
  89. package/dist/card/index.js +1 -0
  90. package/dist/card/index.js.map +1 -0
  91. package/dist/card/index.mjs +4 -3
  92. package/dist/card/index.mjs.map +1 -0
  93. package/dist/{chunk-5HF2PDRZ.mjs → chunk-2C6OZWFA.mjs} +2 -1
  94. package/dist/chunk-2C6OZWFA.mjs.map +1 -0
  95. package/dist/{chunk-OSCKYUZ3.mjs → chunk-3DOUHFA4.mjs} +3 -2
  96. package/dist/chunk-3DOUHFA4.mjs.map +1 -0
  97. package/dist/{chunk-RBOWRO3L.mjs → chunk-3VYJTKR3.mjs} +1 -0
  98. package/dist/chunk-3VYJTKR3.mjs.map +1 -0
  99. package/dist/{chunk-IEY4EQ4E.mjs → chunk-47Z7UJK7.mjs} +1 -0
  100. package/dist/chunk-47Z7UJK7.mjs.map +1 -0
  101. package/dist/{chunk-4LB35CUY.mjs → chunk-4WJBW37S.mjs} +4 -3
  102. package/dist/chunk-4WJBW37S.mjs.map +1 -0
  103. package/dist/{chunk-TEOA6K5L.mjs → chunk-5GRZROYQ.mjs} +2 -1
  104. package/dist/chunk-5GRZROYQ.mjs.map +1 -0
  105. package/dist/{chunk-4ZM45P62.mjs → chunk-642AR63O.mjs} +1 -0
  106. package/dist/chunk-642AR63O.mjs.map +1 -0
  107. package/dist/{chunk-67OMX7FP.mjs → chunk-6E4N2IN7.mjs} +1 -0
  108. package/dist/chunk-6E4N2IN7.mjs.map +1 -0
  109. package/dist/{chunk-VT7SFAQF.mjs → chunk-74JOQ6RA.mjs} +3 -2
  110. package/dist/chunk-74JOQ6RA.mjs.map +1 -0
  111. package/dist/{chunk-UGZSXQQQ.mjs → chunk-76XO5GE7.mjs} +2 -1
  112. package/dist/chunk-76XO5GE7.mjs.map +1 -0
  113. package/dist/{chunk-7P6MJKWC.mjs → chunk-77KV3LA6.mjs} +2 -1
  114. package/dist/chunk-77KV3LA6.mjs.map +1 -0
  115. package/dist/{chunk-S4F2KVFJ.mjs → chunk-7UANCJA2.mjs} +1 -0
  116. package/dist/chunk-7UANCJA2.mjs.map +1 -0
  117. package/dist/{chunk-VX6MSLLO.mjs → chunk-A6Y3TQYS.mjs} +1 -0
  118. package/dist/chunk-A6Y3TQYS.mjs.map +1 -0
  119. package/dist/{chunk-C2VTAQEP.mjs → chunk-DN5KNI4C.mjs} +3 -2
  120. package/dist/chunk-DN5KNI4C.mjs.map +1 -0
  121. package/dist/{chunk-4RAMNETH.mjs → chunk-EF443SG5.mjs} +1 -0
  122. package/dist/chunk-EF443SG5.mjs.map +1 -0
  123. package/dist/{chunk-UL2XL6BN.mjs → chunk-EQIGUHKL.mjs} +3 -2
  124. package/dist/chunk-EQIGUHKL.mjs.map +1 -0
  125. package/dist/chunk-F4VCCLLF.mjs +1 -0
  126. package/dist/chunk-F4VCCLLF.mjs.map +1 -0
  127. package/dist/{chunk-UBQPNSMU.mjs → chunk-FFA6SBK6.mjs} +2 -1
  128. package/dist/chunk-FFA6SBK6.mjs.map +1 -0
  129. package/dist/{chunk-ZDZR5FVC.mjs → chunk-FIXRYHV7.mjs} +2 -1
  130. package/dist/chunk-FIXRYHV7.mjs.map +1 -0
  131. package/dist/{chunk-FSBY3NKV.mjs → chunk-FMMNEKSR.mjs} +1 -0
  132. package/dist/chunk-FMMNEKSR.mjs.map +1 -0
  133. package/dist/{chunk-UOEKLXX4.mjs → chunk-GKWD4EVJ.mjs} +2 -1
  134. package/dist/chunk-GKWD4EVJ.mjs.map +1 -0
  135. package/dist/{chunk-RSL23FEW.mjs → chunk-GS3KAIE7.mjs} +3 -2
  136. package/dist/chunk-GS3KAIE7.mjs.map +1 -0
  137. package/dist/{chunk-5FM3XK4V.mjs → chunk-H5GI3A3Y.mjs} +2 -1
  138. package/dist/chunk-H5GI3A3Y.mjs.map +1 -0
  139. package/dist/{chunk-3Y65IUK4.mjs → chunk-HHZ4Q5WR.mjs} +3 -2
  140. package/dist/chunk-HHZ4Q5WR.mjs.map +1 -0
  141. package/dist/{chunk-SDR3TESK.mjs → chunk-HNBNPFJN.mjs} +2 -1
  142. package/dist/chunk-HNBNPFJN.mjs.map +1 -0
  143. package/dist/{chunk-SNLXFZB6.mjs → chunk-HYOVIP56.mjs} +2 -1
  144. package/dist/chunk-HYOVIP56.mjs.map +1 -0
  145. package/dist/{chunk-WKI6D7BR.mjs → chunk-IDDIXDNV.mjs} +3 -2
  146. package/dist/chunk-IDDIXDNV.mjs.map +1 -0
  147. package/dist/{chunk-5OAMKZDX.mjs → chunk-IIMW6QXV.mjs} +1 -0
  148. package/dist/chunk-IIMW6QXV.mjs.map +1 -0
  149. package/dist/{chunk-A6HNU42U.mjs → chunk-IZ5YU4K5.mjs} +3 -2
  150. package/dist/chunk-IZ5YU4K5.mjs.map +1 -0
  151. package/dist/chunk-JKC4NAFI.mjs +32 -0
  152. package/dist/chunk-JKC4NAFI.mjs.map +1 -0
  153. package/dist/{chunk-4M3GIRQZ.mjs → chunk-KJKJXZBT.mjs} +3 -2
  154. package/dist/chunk-KJKJXZBT.mjs.map +1 -0
  155. package/dist/{chunk-PTLX7PHW.mjs → chunk-KOO4VQ2N.mjs} +2 -1
  156. package/dist/chunk-KOO4VQ2N.mjs.map +1 -0
  157. package/dist/{chunk-BEXOLUXV.mjs → chunk-KTT3R42Z.mjs} +2 -1
  158. package/dist/chunk-KTT3R42Z.mjs.map +1 -0
  159. package/dist/chunk-LK62DXGG.mjs +169 -0
  160. package/dist/chunk-LK62DXGG.mjs.map +1 -0
  161. package/dist/{chunk-HIRUCFWO.mjs → chunk-MGUYIOP2.mjs} +1 -0
  162. package/dist/chunk-MGUYIOP2.mjs.map +1 -0
  163. package/dist/{chunk-5NWYVPBZ.mjs → chunk-O5MQCET3.mjs} +1 -0
  164. package/dist/chunk-O5MQCET3.mjs.map +1 -0
  165. package/dist/{chunk-FPVGZ4VX.mjs → chunk-OCIM3ZEV.mjs} +2 -1
  166. package/dist/chunk-OCIM3ZEV.mjs.map +1 -0
  167. package/dist/{chunk-OEOI74US.mjs → chunk-ODFEKAJO.mjs} +2 -1
  168. package/dist/chunk-ODFEKAJO.mjs.map +1 -0
  169. package/dist/{chunk-JTHBBJZW.mjs → chunk-ODJ2XHCM.mjs} +1 -0
  170. package/dist/chunk-ODJ2XHCM.mjs.map +1 -0
  171. package/dist/{chunk-YRAMCYSB.mjs → chunk-OMDDUYGE.mjs} +1 -0
  172. package/dist/chunk-OMDDUYGE.mjs.map +1 -0
  173. package/dist/{chunk-VO6ZLGZ7.mjs → chunk-ONBXZWHW.mjs} +6 -5
  174. package/dist/chunk-ONBXZWHW.mjs.map +1 -0
  175. package/dist/{chunk-JAHBNZTG.mjs → chunk-P4XTJEES.mjs} +3 -2
  176. package/dist/chunk-P4XTJEES.mjs.map +1 -0
  177. package/dist/{chunk-OX5NTX6M.mjs → chunk-P6A7LH6M.mjs} +3 -2
  178. package/dist/chunk-P6A7LH6M.mjs.map +1 -0
  179. package/dist/{chunk-73MDVYU2.mjs → chunk-PQ6WEGLM.mjs} +4 -3
  180. package/dist/chunk-PQ6WEGLM.mjs.map +1 -0
  181. package/dist/{chunk-KBR5N6UB.mjs → chunk-PRQWCNN3.mjs} +5 -4
  182. package/dist/chunk-PRQWCNN3.mjs.map +1 -0
  183. package/dist/{chunk-LCFKBPZC.mjs → chunk-QCWENWLF.mjs} +3 -2
  184. package/dist/chunk-QCWENWLF.mjs.map +1 -0
  185. package/dist/chunk-R4SQKVDQ.mjs +38 -0
  186. package/dist/chunk-R4SQKVDQ.mjs.map +1 -0
  187. package/dist/{chunk-6FKQU7QT.mjs → chunk-R6GRXGDW.mjs} +2 -1
  188. package/dist/chunk-R6GRXGDW.mjs.map +1 -0
  189. package/dist/{chunk-3EENBGOV.mjs → chunk-R7WBXNQA.mjs} +2 -1
  190. package/dist/chunk-R7WBXNQA.mjs.map +1 -0
  191. package/dist/{chunk-CCNB2ABL.mjs → chunk-RLK2ENCB.mjs} +3 -2
  192. package/dist/chunk-RLK2ENCB.mjs.map +1 -0
  193. package/dist/{chunk-OKWNTFU5.mjs → chunk-ROX4JPO3.mjs} +1 -0
  194. package/dist/chunk-ROX4JPO3.mjs.map +1 -0
  195. package/dist/{chunk-52YSOWMY.mjs → chunk-RT2VPRZN.mjs} +2 -1
  196. package/dist/chunk-RT2VPRZN.mjs.map +1 -0
  197. package/dist/chunk-SLOG3T7V.mjs +88 -0
  198. package/dist/chunk-SLOG3T7V.mjs.map +1 -0
  199. package/dist/{chunk-OPW2JS5I.mjs → chunk-T42X5AZM.mjs} +1 -0
  200. package/dist/chunk-T42X5AZM.mjs.map +1 -0
  201. package/dist/chunk-T6YKS5OS.mjs +65 -0
  202. package/dist/chunk-T6YKS5OS.mjs.map +1 -0
  203. package/dist/{chunk-3WKOOAQL.mjs → chunk-UVUIY2WB.mjs} +2 -1
  204. package/dist/chunk-UVUIY2WB.mjs.map +1 -0
  205. package/dist/{chunk-PHTGLF6Y.mjs → chunk-VMS2DOQD.mjs} +1 -0
  206. package/dist/chunk-VMS2DOQD.mjs.map +1 -0
  207. package/dist/{chunk-K2HIKZ7F.mjs → chunk-WQU3PHD4.mjs} +1 -0
  208. package/dist/chunk-WQU3PHD4.mjs.map +1 -0
  209. package/dist/chunk-X2YMLUE4.mjs +30 -0
  210. package/dist/chunk-X2YMLUE4.mjs.map +1 -0
  211. package/dist/{chunk-7SCOBRDZ.mjs → chunk-XGJBOGZJ.mjs} +1 -0
  212. package/dist/chunk-XGJBOGZJ.mjs.map +1 -0
  213. package/dist/{chunk-ERFGFY3Q.mjs → chunk-XVCDHQ7W.mjs} +1 -0
  214. package/dist/chunk-XVCDHQ7W.mjs.map +1 -0
  215. package/dist/{chunk-FJQCHTJZ.mjs → chunk-YDWBUHBY.mjs} +1 -0
  216. package/dist/chunk-YDWBUHBY.mjs.map +1 -0
  217. package/dist/{chunk-AUK3J77R.mjs → chunk-ZX7AH7XO.mjs} +2 -1
  218. package/dist/chunk-ZX7AH7XO.mjs.map +1 -0
  219. package/dist/form/checkbox/checkbox.d.mts +2 -10
  220. package/dist/form/checkbox/checkbox.d.ts +2 -10
  221. package/dist/form/checkbox/checkbox.js +1 -0
  222. package/dist/form/checkbox/checkbox.js.map +1 -0
  223. package/dist/form/checkbox/checkbox.mjs +3 -2
  224. package/dist/form/checkbox/checkbox.mjs.map +1 -0
  225. package/dist/form/checkbox/index.d.mts +2 -2
  226. package/dist/form/checkbox/index.d.ts +2 -2
  227. package/dist/form/checkbox/index.js +1 -0
  228. package/dist/form/checkbox/index.js.map +1 -0
  229. package/dist/form/checkbox/index.mjs +4 -3
  230. package/dist/form/checkbox/index.mjs.map +1 -0
  231. package/dist/form/error-message/error-message.d.mts +2 -11
  232. package/dist/form/error-message/error-message.d.ts +2 -11
  233. package/dist/form/error-message/error-message.js +1 -0
  234. package/dist/form/error-message/error-message.js.map +1 -0
  235. package/dist/form/error-message/error-message.mjs +3 -2
  236. package/dist/form/error-message/error-message.mjs.map +1 -0
  237. package/dist/form/error-message/index.d.mts +2 -3
  238. package/dist/form/error-message/index.d.ts +2 -3
  239. package/dist/form/error-message/index.js +1 -0
  240. package/dist/form/error-message/index.js.map +1 -0
  241. package/dist/form/error-message/index.mjs +4 -3
  242. package/dist/form/error-message/index.mjs.map +1 -0
  243. package/dist/form/fieldset/fieldset.d.mts +2 -19
  244. package/dist/form/fieldset/fieldset.d.ts +2 -19
  245. package/dist/form/fieldset/fieldset.js +1 -0
  246. package/dist/form/fieldset/fieldset.js.map +1 -0
  247. package/dist/form/fieldset/fieldset.mjs +5 -4
  248. package/dist/form/fieldset/fieldset.mjs.map +1 -0
  249. package/dist/form/fieldset/index.d.mts +2 -2
  250. package/dist/form/fieldset/index.d.ts +2 -2
  251. package/dist/form/fieldset/index.js +1 -0
  252. package/dist/form/fieldset/index.js.map +1 -0
  253. package/dist/form/fieldset/index.mjs +6 -5
  254. package/dist/form/fieldset/index.mjs.map +1 -0
  255. package/dist/form/index.d.mts +12 -8
  256. package/dist/form/index.d.ts +12 -8
  257. package/dist/form/index.js +1 -0
  258. package/dist/form/index.js.map +1 -0
  259. package/dist/form/index.mjs +23 -22
  260. package/dist/form/index.mjs.map +1 -0
  261. package/dist/form/input/index.d.mts +2 -3
  262. package/dist/form/input/index.d.ts +2 -3
  263. package/dist/form/input/index.js +1 -0
  264. package/dist/form/input/index.js.map +1 -0
  265. package/dist/form/input/index.mjs +8 -7
  266. package/dist/form/input/index.mjs.map +1 -0
  267. package/dist/form/input/input.d.mts +2 -8
  268. package/dist/form/input/input.d.ts +2 -8
  269. package/dist/form/input/input.js +1 -0
  270. package/dist/form/input/input.js.map +1 -0
  271. package/dist/form/input/input.mjs +7 -6
  272. package/dist/form/input/input.mjs.map +1 -0
  273. package/dist/form/input-group/index.d.mts +2 -2
  274. package/dist/form/input-group/index.d.ts +2 -2
  275. package/dist/form/input-group/index.js +1 -0
  276. package/dist/form/input-group/index.js.map +1 -0
  277. package/dist/form/input-group/index.mjs +6 -5
  278. package/dist/form/input-group/index.mjs.map +1 -0
  279. package/dist/form/input-group/input-group.d.mts +2 -18
  280. package/dist/form/input-group/input-group.d.ts +2 -18
  281. package/dist/form/input-group/input-group.js +1 -0
  282. package/dist/form/input-group/input-group.js.map +1 -0
  283. package/dist/form/input-group/input-group.mjs +5 -4
  284. package/dist/form/input-group/input-group.mjs.map +1 -0
  285. package/dist/form/radiobutton/index.d.mts +2 -2
  286. package/dist/form/radiobutton/index.d.ts +2 -2
  287. package/dist/form/radiobutton/index.js +1 -0
  288. package/dist/form/radiobutton/index.js.map +1 -0
  289. package/dist/form/radiobutton/index.mjs +4 -3
  290. package/dist/form/radiobutton/index.mjs.map +1 -0
  291. package/dist/form/radiobutton/radiobutton.d.mts +2 -10
  292. package/dist/form/radiobutton/radiobutton.d.ts +2 -10
  293. package/dist/form/radiobutton/radiobutton.js +1 -0
  294. package/dist/form/radiobutton/radiobutton.js.map +1 -0
  295. package/dist/form/radiobutton/radiobutton.mjs +3 -2
  296. package/dist/form/radiobutton/radiobutton.mjs.map +1 -0
  297. package/dist/form/select/index.d.mts +2 -3
  298. package/dist/form/select/index.d.ts +2 -3
  299. package/dist/form/select/index.js +1 -0
  300. package/dist/form/select/index.js.map +1 -0
  301. package/dist/form/select/index.mjs +8 -7
  302. package/dist/form/select/index.mjs.map +1 -0
  303. package/dist/form/select/select.d.mts +2 -8
  304. package/dist/form/select/select.d.ts +2 -8
  305. package/dist/form/select/select.js +1 -0
  306. package/dist/form/select/select.js.map +1 -0
  307. package/dist/form/select/select.mjs +7 -6
  308. package/dist/form/select/select.mjs.map +1 -0
  309. package/dist/form/textarea/index.d.mts +2 -3
  310. package/dist/form/textarea/index.d.ts +2 -3
  311. package/dist/form/textarea/index.js +1 -0
  312. package/dist/form/textarea/index.js.map +1 -0
  313. package/dist/form/textarea/index.mjs +8 -7
  314. package/dist/form/textarea/index.mjs.map +1 -0
  315. package/dist/form/textarea/textarea.d.mts +2 -8
  316. package/dist/form/textarea/textarea.d.ts +2 -8
  317. package/dist/form/textarea/textarea.js +1 -0
  318. package/dist/form/textarea/textarea.js.map +1 -0
  319. package/dist/form/textarea/textarea.mjs +7 -6
  320. package/dist/form/textarea/textarea.mjs.map +1 -0
  321. package/dist/index.d.mts +85 -37
  322. package/dist/index.d.ts +85 -37
  323. package/dist/index.js +202 -0
  324. package/dist/index.js.map +1 -0
  325. package/dist/index.mjs +96 -61
  326. package/dist/index.mjs.map +1 -0
  327. package/dist/layout/container/container.d.mts +2 -14
  328. package/dist/layout/container/container.d.ts +2 -14
  329. package/dist/layout/container/container.js +1 -0
  330. package/dist/layout/container/container.js.map +1 -0
  331. package/dist/layout/container/container.mjs +3 -2
  332. package/dist/layout/container/container.mjs.map +1 -0
  333. package/dist/layout/index.d.mts +2 -3
  334. package/dist/layout/index.d.ts +2 -3
  335. package/dist/layout/index.js +1 -0
  336. package/dist/layout/index.js.map +1 -0
  337. package/dist/layout/index.mjs +4 -3
  338. package/dist/layout/index.mjs.map +1 -0
  339. package/dist/link/index.d.mts +2 -3
  340. package/dist/link/index.d.ts +2 -3
  341. package/dist/link/index.js +1 -0
  342. package/dist/link/index.js.map +1 -0
  343. package/dist/link/index.mjs +4 -3
  344. package/dist/link/index.mjs.map +1 -0
  345. package/dist/link/link.d.mts +2 -18
  346. package/dist/link/link.d.ts +2 -18
  347. package/dist/link/link.js +1 -0
  348. package/dist/link/link.js.map +1 -0
  349. package/dist/link/link.mjs +3 -2
  350. package/dist/link/link.mjs.map +1 -0
  351. package/dist/list/description-list.d.mts +2 -48
  352. package/dist/list/description-list.d.ts +2 -48
  353. package/dist/list/description-list.js +1 -0
  354. package/dist/list/description-list.js.map +1 -0
  355. package/dist/list/description-list.mjs +3 -2
  356. package/dist/list/description-list.mjs.map +1 -0
  357. package/dist/list/index.d.mts +7 -5
  358. package/dist/list/index.d.ts +7 -5
  359. package/dist/list/index.js +1 -0
  360. package/dist/list/index.js.map +1 -0
  361. package/dist/list/index.mjs +6 -5
  362. package/dist/list/index.mjs.map +1 -0
  363. package/dist/list/link-list.d.mts +2 -13
  364. package/dist/list/link-list.d.ts +2 -13
  365. package/dist/list/link-list.js +1 -0
  366. package/dist/list/link-list.js.map +1 -0
  367. package/dist/list/link-list.mjs +4 -3
  368. package/dist/list/link-list.mjs.map +1 -0
  369. package/dist/list/list.d.mts +3 -25
  370. package/dist/list/list.d.ts +3 -25
  371. package/dist/list/list.js +1 -0
  372. package/dist/list/list.js.map +1 -0
  373. package/dist/list/list.mjs +3 -2
  374. package/dist/list/list.mjs.map +1 -0
  375. package/dist/message/index.d.mts +1 -16
  376. package/dist/message/index.d.ts +1 -16
  377. package/dist/message/index.js +1 -0
  378. package/dist/message/index.js.map +1 -0
  379. package/dist/message/index.mjs +5 -4
  380. package/dist/message/index.mjs.map +1 -0
  381. package/dist/message/message.d.mts +4 -18
  382. package/dist/message/message.d.ts +4 -18
  383. package/dist/message/message.js +1 -0
  384. package/dist/message/message.js.map +1 -0
  385. package/dist/message/message.mjs +4 -3
  386. package/dist/message/message.mjs.map +1 -0
  387. package/dist/modal/index.d.mts +6 -12
  388. package/dist/modal/index.d.ts +6 -12
  389. package/dist/modal/index.js +1 -0
  390. package/dist/modal/index.js.map +1 -0
  391. package/dist/modal/index.mjs +6 -5
  392. package/dist/modal/index.mjs.map +1 -0
  393. package/dist/modal/modal.d.mts +6 -31
  394. package/dist/modal/modal.d.ts +6 -31
  395. package/dist/modal/modal.js +1 -0
  396. package/dist/modal/modal.js.map +1 -0
  397. package/dist/modal/modal.mjs +5 -4
  398. package/dist/modal/modal.mjs.map +1 -0
  399. package/dist/navbar/icons.d.mts +2 -6
  400. package/dist/navbar/icons.d.ts +2 -6
  401. package/dist/navbar/icons.js +1 -0
  402. package/dist/navbar/icons.js.map +1 -0
  403. package/dist/navbar/icons.mjs +3 -2
  404. package/dist/navbar/icons.mjs.map +1 -0
  405. package/dist/navbar/index.d.mts +5 -18
  406. package/dist/navbar/index.d.ts +5 -18
  407. package/dist/navbar/index.js +14 -29108
  408. package/dist/navbar/index.js.map +1 -0
  409. package/dist/navbar/index.mjs +5 -4
  410. package/dist/navbar/index.mjs.map +1 -0
  411. package/dist/navbar/navbar-expandable-menu.d.mts +6 -39
  412. package/dist/navbar/navbar-expandable-menu.d.ts +6 -39
  413. package/dist/navbar/navbar-expandable-menu.js +14 -29108
  414. package/dist/navbar/navbar-expandable-menu.js.map +1 -0
  415. package/dist/navbar/navbar-expandable-menu.mjs +4 -3
  416. package/dist/navbar/navbar-expandable-menu.mjs.map +1 -0
  417. package/dist/navbar/navbar.d.mts +5 -25
  418. package/dist/navbar/navbar.d.ts +5 -25
  419. package/dist/navbar/navbar.js +1 -0
  420. package/dist/navbar/navbar.js.map +1 -0
  421. package/dist/navbar/navbar.mjs +3 -2
  422. package/dist/navbar/navbar.mjs.map +1 -0
  423. package/dist/show-more/auto-animate-height.d.mts +1 -0
  424. package/dist/show-more/auto-animate-height.d.ts +1 -0
  425. package/dist/show-more/auto-animate-height.js +135 -0
  426. package/dist/show-more/auto-animate-height.js.map +1 -0
  427. package/dist/show-more/auto-animate-height.mjs +8 -0
  428. package/dist/show-more/auto-animate-height.mjs.map +1 -0
  429. package/dist/show-more/show-more.d.mts +1 -0
  430. package/dist/show-more/show-more.d.ts +1 -0
  431. package/dist/{chunk-FKR5F35B.mjs → show-more/show-more.js} +34 -27
  432. package/dist/show-more/show-more.js.map +1 -0
  433. package/dist/show-more/show-more.mjs +8 -0
  434. package/dist/show-more/show-more.mjs.map +1 -0
  435. package/dist/skeleton/skeleton.d.mts +2 -0
  436. package/dist/skeleton/skeleton.d.ts +2 -0
  437. package/dist/skeleton/skeleton.js +79 -0
  438. package/dist/skeleton/skeleton.js.map +1 -0
  439. package/dist/skeleton/skeleton.mjs +8 -0
  440. package/dist/skeleton/skeleton.mjs.map +1 -0
  441. package/dist/step-indicator/step-indicator.d.mts +1 -0
  442. package/dist/step-indicator/step-indicator.d.ts +1 -0
  443. package/dist/step-indicator/step-indicator.js +112 -0
  444. package/dist/step-indicator/step-indicator.js.map +1 -0
  445. package/dist/step-indicator/step-indicator.mjs +8 -0
  446. package/dist/step-indicator/step-indicator.mjs.map +1 -0
  447. package/dist/styled-html/styled-html.d.mts +2 -32
  448. package/dist/styled-html/styled-html.d.ts +2 -32
  449. package/dist/styled-html/styled-html.js +1 -0
  450. package/dist/styled-html/styled-html.js.map +1 -0
  451. package/dist/styled-html/styled-html.mjs +3 -2
  452. package/dist/styled-html/styled-html.mjs.map +1 -0
  453. package/dist/tabs/index.d.mts +10 -22
  454. package/dist/tabs/index.d.ts +10 -22
  455. package/dist/tabs/index.js +1 -0
  456. package/dist/tabs/index.js.map +1 -0
  457. package/dist/tabs/index.mjs +8 -7
  458. package/dist/tabs/index.mjs.map +1 -0
  459. package/dist/tabs/tabs-content.d.mts +4 -21
  460. package/dist/tabs/tabs-content.d.ts +4 -21
  461. package/dist/tabs/tabs-content.js +1 -0
  462. package/dist/tabs/tabs-content.js.map +1 -0
  463. package/dist/tabs/tabs-content.mjs +4 -3
  464. package/dist/tabs/tabs-content.mjs.map +1 -0
  465. package/dist/tabs/tabs-list.d.mts +4 -26
  466. package/dist/tabs/tabs-list.d.ts +4 -26
  467. package/dist/tabs/tabs-list.js +1 -0
  468. package/dist/tabs/tabs-list.js.map +1 -0
  469. package/dist/tabs/tabs-list.mjs +5 -4
  470. package/dist/tabs/tabs-list.mjs.map +1 -0
  471. package/dist/tabs/tabs.d.mts +2 -16
  472. package/dist/tabs/tabs.d.ts +2 -16
  473. package/dist/tabs/tabs.js +1 -0
  474. package/dist/tabs/tabs.js.map +1 -0
  475. package/dist/tabs/tabs.mjs +4 -3
  476. package/dist/tabs/tabs.mjs.map +1 -0
  477. package/dist/typography/index.d.mts +42 -69
  478. package/dist/typography/index.d.ts +42 -69
  479. package/dist/typography/index.js +1 -0
  480. package/dist/typography/index.js.map +1 -0
  481. package/dist/typography/index.mjs +3 -2
  482. package/dist/typography/index.mjs.map +1 -0
  483. package/dist/typography/typography.d.mts +2 -18
  484. package/dist/typography/typography.d.ts +2 -18
  485. package/dist/typography/typography.js +1 -0
  486. package/dist/typography/typography.js.map +1 -0
  487. package/dist/typography/typography.mjs +3 -2
  488. package/dist/typography/typography.mjs.map +1 -0
  489. package/dist/warning-banner/index.d.mts +2 -3
  490. package/dist/warning-banner/index.d.ts +2 -3
  491. package/dist/warning-banner/index.js +1 -0
  492. package/dist/warning-banner/index.js.map +1 -0
  493. package/dist/warning-banner/index.mjs +6 -5
  494. package/dist/warning-banner/index.mjs.map +1 -0
  495. package/dist/warning-banner/warning-banner.d.mts +2 -10
  496. package/dist/warning-banner/warning-banner.d.ts +2 -10
  497. package/dist/warning-banner/warning-banner.js +1 -0
  498. package/dist/warning-banner/warning-banner.js.map +1 -0
  499. package/dist/warning-banner/warning-banner.mjs +5 -4
  500. package/dist/warning-banner/warning-banner.mjs.map +1 -0
  501. package/package.json +9 -4
  502. package/dist/chunk-5OGUAHLN.mjs +0 -0
  503. package/dist/chunk-JOKO7Y7O.mjs +0 -29253
  504. package/dist/utils-3jLhIyOS.d.mts +0 -17
  505. package/dist/utils-3jLhIyOS.d.ts +0 -17
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/tabs/tabs.tsx","../../src/tabs/context.ts"],"sourcesContent":["import type { HTMLAttributes, ReactElement } from \"react\";\nimport { forwardRef, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\nimport { TabsContext } from \"./context\";\nimport type { TabContentsProps } from \"./tabs-content\";\nimport type { TabListProps } from \"./tabs-list\";\n\nexport interface TabsProps extends HTMLAttributes<HTMLElement> {\n children: ReactElement<TabListProps | TabContentsProps>[] | ReactElement;\n\n /**\n * Define which tab to use as default. Must be one of the <Tab/>s identifier.\n */\n defaultTab: string;\n}\n\nexport const Tabs: OverridableComponent<TabsProps, HTMLDivElement> = forwardRef(\n ({ as: Component = \"div\", defaultTab, children, ...rest }, ref) => {\n const [activeTabId, setActiveTabId] = useState<string>(defaultTab);\n return (\n <Component className={clsx(\"hds-tabs\")} ref={ref} {...rest}>\n <TabsContext.Provider\n value={{ activeTabId, toggleActiveTabId: setActiveTabId, mounted: true }}\n >\n {children}\n </TabsContext.Provider>\n </Component>\n );\n },\n);\n\nTabs.displayName = \"Tabs\";\n","import { createContext } from \"react\";\n\nexport interface TabsContextProps {\n mounted: boolean;\n activeTabId?: string;\n toggleActiveTabId: (tabId: string) => void;\n}\n\nexport const TabsContext = createContext<TabsContextProps>({\n mounted: false,\n activeTabId: undefined,\n // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Added default section, without handling\n toggleActiveTabId: (tabId: string) => {\n // default\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,IAAAA,gBAAqC;AACrC,6BAAqB;;;ACFrB,mBAA8B;AAQvB,IAAM,kBAAc,4BAAgC;AAAA,EACzD,SAAS;AAAA,EACT,aAAa;AAAA;AAAA,EAEb,mBAAmB,CAAC,UAAkB;AAAA,EAEtC;AACF,CAAC;;;ADOO;AALD,IAAM,WAAwD;AAAA,EACnE,CAAC,IAA0D,QAAQ;AAAlE,iBAAE,MAAI,YAAY,OAAO,YAAY,SAlBxC,IAkBG,IAAkD,iBAAlD,IAAkD,CAAhD,MAAuB,cAAY;AACpC,UAAM,CAAC,aAAa,cAAc,QAAI,wBAAiB,UAAU;AACjE,WACE,4CAAC,0CAAU,eAAW,6BAAK,UAAU,GAAG,OAAc,OAArD,EACC;AAAA,MAAC,YAAY;AAAA,MAAZ;AAAA,QACC,OAAO,EAAE,aAAa,mBAAmB,gBAAgB,SAAS,KAAK;AAAA,QAEtE;AAAA;AAAA,IACH,IACF;AAAA,EAEJ;AACF;AAEA,KAAK,cAAc;","names":["import_react"]}
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  Tabs
3
- } from "../chunk-C2VTAQEP.mjs";
4
- import "../chunk-4ZM45P62.mjs";
5
- import "../chunk-FKR5F35B.mjs";
3
+ } from "../chunk-DN5KNI4C.mjs";
4
+ import "../chunk-642AR63O.mjs";
5
+ import "../chunk-R4SQKVDQ.mjs";
6
6
  export {
7
7
  Tabs
8
8
  };
9
+ //# sourceMappingURL=tabs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,69 +1,42 @@
1
- import * as react from 'react';
2
- import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
- import { TypographyProps } from './typography.mjs';
4
- export { Typography } from './typography.mjs';
5
-
6
- /**
7
- * Alternative: Named `Text`
8
- *
9
- * ## Alias to @see Typography
10
- *
11
- * Only one component will remain
12
- */
13
- declare const Text: OverridableComponent<TypographyProps, HTMLDivElement>;
14
- /**
15
- * Alternative: Named as the different typography levels
16
- *
17
- * ## Alias to @see Typography
18
- */
19
- declare const H1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
20
- declare const H1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
21
- declare const H2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
22
- declare const H3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
23
- declare const H3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
24
- declare const Body: react.FunctionComponent<Omit<TypographyProps, "variant">>;
25
- declare const BodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
26
- declare const BodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
27
- declare const BodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
28
- declare const Technical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
29
- declare const TechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
30
- declare const Caption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
31
- declare const CaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
32
- /**
33
- * Alternative: Named as the different typography levels with Text prefix
34
- *
35
- * ## Alias to @see Typography
36
- */
37
- declare const TextH1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
38
- declare const TextH1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
39
- declare const TextH2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
40
- declare const TextH3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
41
- declare const TextH3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
42
- declare const TextBody: react.FunctionComponent<Omit<TypographyProps, "variant">>;
43
- declare const TextBodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
44
- declare const TextBodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
45
- declare const TextBodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
46
- declare const TextTechnical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
47
- declare const TextTechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
48
- declare const TextCaption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
49
- declare const TextCaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
50
- /**
51
- * Alternative: Named as the different typography levels with Typography prefix
52
- *
53
- * ## Alias to @see Typography
54
- */
55
- declare const TypographyH1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
56
- declare const TypographyH1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
57
- declare const TypographyH2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
58
- declare const TypographyH3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
59
- declare const TypographyH3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
60
- declare const TypographyBody: react.FunctionComponent<Omit<TypographyProps, "variant">>;
61
- declare const TypographyBodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
62
- declare const TypographyBodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
63
- declare const TypographyBodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
64
- declare const TypographyTechnical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
65
- declare const TypographyTechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
66
- declare const TypographyCaption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
67
- declare const TypographyCaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
68
-
69
- export { Body, BodySmall, BodySmallTitle, BodyTitle, Caption, CaptionTitle, H1, H1Display, H2, H3, H3Title, Technical, TechnicalTitle, Text, TextBody, TextBodySmall, TextBodySmallTitle, TextBodyTitle, TextCaption, TextCaptionTitle, TextH1, TextH1Display, TextH2, TextH3, TextH3Title, TextTechnical, TextTechnicalTitle, TypographyBody, TypographyBodySmall, TypographyBodySmallTitle, TypographyBodyTitle, TypographyCaption, TypographyCaptionTitle, TypographyH1, TypographyH1Display, TypographyH2, TypographyH3, TypographyH3Title, TypographyProps, TypographyTechnical, TypographyTechnicalTitle };
1
+ export { Typography } from '../_tsup-dts-rollup';
2
+ export { Text } from '../_tsup-dts-rollup';
3
+ export { H1Display } from '../_tsup-dts-rollup';
4
+ export { H1 } from '../_tsup-dts-rollup';
5
+ export { H2 } from '../_tsup-dts-rollup';
6
+ export { H3 } from '../_tsup-dts-rollup';
7
+ export { H3Title } from '../_tsup-dts-rollup';
8
+ export { Body } from '../_tsup-dts-rollup';
9
+ export { BodyTitle } from '../_tsup-dts-rollup';
10
+ export { BodySmall } from '../_tsup-dts-rollup';
11
+ export { BodySmallTitle } from '../_tsup-dts-rollup';
12
+ export { Technical } from '../_tsup-dts-rollup';
13
+ export { TechnicalTitle } from '../_tsup-dts-rollup';
14
+ export { Caption } from '../_tsup-dts-rollup';
15
+ export { CaptionTitle } from '../_tsup-dts-rollup';
16
+ export { TextH1Display } from '../_tsup-dts-rollup';
17
+ export { TextH1 } from '../_tsup-dts-rollup';
18
+ export { TextH2 } from '../_tsup-dts-rollup';
19
+ export { TextH3 } from '../_tsup-dts-rollup';
20
+ export { TextH3Title } from '../_tsup-dts-rollup';
21
+ export { TextBody } from '../_tsup-dts-rollup';
22
+ export { TextBodyTitle } from '../_tsup-dts-rollup';
23
+ export { TextBodySmall } from '../_tsup-dts-rollup';
24
+ export { TextBodySmallTitle } from '../_tsup-dts-rollup';
25
+ export { TextTechnical } from '../_tsup-dts-rollup';
26
+ export { TextTechnicalTitle } from '../_tsup-dts-rollup';
27
+ export { TextCaption } from '../_tsup-dts-rollup';
28
+ export { TextCaptionTitle } from '../_tsup-dts-rollup';
29
+ export { TypographyH1Display } from '../_tsup-dts-rollup';
30
+ export { TypographyH1 } from '../_tsup-dts-rollup';
31
+ export { TypographyH2 } from '../_tsup-dts-rollup';
32
+ export { TypographyH3 } from '../_tsup-dts-rollup';
33
+ export { TypographyH3Title } from '../_tsup-dts-rollup';
34
+ export { TypographyBody } from '../_tsup-dts-rollup';
35
+ export { TypographyBodyTitle } from '../_tsup-dts-rollup';
36
+ export { TypographyBodySmall } from '../_tsup-dts-rollup';
37
+ export { TypographyBodySmallTitle } from '../_tsup-dts-rollup';
38
+ export { TypographyTechnical } from '../_tsup-dts-rollup';
39
+ export { TypographyTechnicalTitle } from '../_tsup-dts-rollup';
40
+ export { TypographyCaption } from '../_tsup-dts-rollup';
41
+ export { TypographyCaptionTitle } from '../_tsup-dts-rollup';
42
+ export { TypographyProps } from '../_tsup-dts-rollup';
@@ -1,69 +1,42 @@
1
- import * as react from 'react';
2
- import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
- import { TypographyProps } from './typography.js';
4
- export { Typography } from './typography.js';
5
-
6
- /**
7
- * Alternative: Named `Text`
8
- *
9
- * ## Alias to @see Typography
10
- *
11
- * Only one component will remain
12
- */
13
- declare const Text: OverridableComponent<TypographyProps, HTMLDivElement>;
14
- /**
15
- * Alternative: Named as the different typography levels
16
- *
17
- * ## Alias to @see Typography
18
- */
19
- declare const H1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
20
- declare const H1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
21
- declare const H2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
22
- declare const H3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
23
- declare const H3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
24
- declare const Body: react.FunctionComponent<Omit<TypographyProps, "variant">>;
25
- declare const BodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
26
- declare const BodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
27
- declare const BodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
28
- declare const Technical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
29
- declare const TechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
30
- declare const Caption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
31
- declare const CaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
32
- /**
33
- * Alternative: Named as the different typography levels with Text prefix
34
- *
35
- * ## Alias to @see Typography
36
- */
37
- declare const TextH1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
38
- declare const TextH1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
39
- declare const TextH2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
40
- declare const TextH3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
41
- declare const TextH3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
42
- declare const TextBody: react.FunctionComponent<Omit<TypographyProps, "variant">>;
43
- declare const TextBodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
44
- declare const TextBodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
45
- declare const TextBodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
46
- declare const TextTechnical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
47
- declare const TextTechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
48
- declare const TextCaption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
49
- declare const TextCaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
50
- /**
51
- * Alternative: Named as the different typography levels with Typography prefix
52
- *
53
- * ## Alias to @see Typography
54
- */
55
- declare const TypographyH1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
56
- declare const TypographyH1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
57
- declare const TypographyH2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
58
- declare const TypographyH3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
59
- declare const TypographyH3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
60
- declare const TypographyBody: react.FunctionComponent<Omit<TypographyProps, "variant">>;
61
- declare const TypographyBodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
62
- declare const TypographyBodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
63
- declare const TypographyBodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
64
- declare const TypographyTechnical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
65
- declare const TypographyTechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
66
- declare const TypographyCaption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
67
- declare const TypographyCaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
68
-
69
- export { Body, BodySmall, BodySmallTitle, BodyTitle, Caption, CaptionTitle, H1, H1Display, H2, H3, H3Title, Technical, TechnicalTitle, Text, TextBody, TextBodySmall, TextBodySmallTitle, TextBodyTitle, TextCaption, TextCaptionTitle, TextH1, TextH1Display, TextH2, TextH3, TextH3Title, TextTechnical, TextTechnicalTitle, TypographyBody, TypographyBodySmall, TypographyBodySmallTitle, TypographyBodyTitle, TypographyCaption, TypographyCaptionTitle, TypographyH1, TypographyH1Display, TypographyH2, TypographyH3, TypographyH3Title, TypographyProps, TypographyTechnical, TypographyTechnicalTitle };
1
+ export { Typography } from '../_tsup-dts-rollup';
2
+ export { Text } from '../_tsup-dts-rollup';
3
+ export { H1Display } from '../_tsup-dts-rollup';
4
+ export { H1 } from '../_tsup-dts-rollup';
5
+ export { H2 } from '../_tsup-dts-rollup';
6
+ export { H3 } from '../_tsup-dts-rollup';
7
+ export { H3Title } from '../_tsup-dts-rollup';
8
+ export { Body } from '../_tsup-dts-rollup';
9
+ export { BodyTitle } from '../_tsup-dts-rollup';
10
+ export { BodySmall } from '../_tsup-dts-rollup';
11
+ export { BodySmallTitle } from '../_tsup-dts-rollup';
12
+ export { Technical } from '../_tsup-dts-rollup';
13
+ export { TechnicalTitle } from '../_tsup-dts-rollup';
14
+ export { Caption } from '../_tsup-dts-rollup';
15
+ export { CaptionTitle } from '../_tsup-dts-rollup';
16
+ export { TextH1Display } from '../_tsup-dts-rollup';
17
+ export { TextH1 } from '../_tsup-dts-rollup';
18
+ export { TextH2 } from '../_tsup-dts-rollup';
19
+ export { TextH3 } from '../_tsup-dts-rollup';
20
+ export { TextH3Title } from '../_tsup-dts-rollup';
21
+ export { TextBody } from '../_tsup-dts-rollup';
22
+ export { TextBodyTitle } from '../_tsup-dts-rollup';
23
+ export { TextBodySmall } from '../_tsup-dts-rollup';
24
+ export { TextBodySmallTitle } from '../_tsup-dts-rollup';
25
+ export { TextTechnical } from '../_tsup-dts-rollup';
26
+ export { TextTechnicalTitle } from '../_tsup-dts-rollup';
27
+ export { TextCaption } from '../_tsup-dts-rollup';
28
+ export { TextCaptionTitle } from '../_tsup-dts-rollup';
29
+ export { TypographyH1Display } from '../_tsup-dts-rollup';
30
+ export { TypographyH1 } from '../_tsup-dts-rollup';
31
+ export { TypographyH2 } from '../_tsup-dts-rollup';
32
+ export { TypographyH3 } from '../_tsup-dts-rollup';
33
+ export { TypographyH3Title } from '../_tsup-dts-rollup';
34
+ export { TypographyBody } from '../_tsup-dts-rollup';
35
+ export { TypographyBodyTitle } from '../_tsup-dts-rollup';
36
+ export { TypographyBodySmall } from '../_tsup-dts-rollup';
37
+ export { TypographyBodySmallTitle } from '../_tsup-dts-rollup';
38
+ export { TypographyTechnical } from '../_tsup-dts-rollup';
39
+ export { TypographyTechnicalTitle } from '../_tsup-dts-rollup';
40
+ export { TypographyCaption } from '../_tsup-dts-rollup';
41
+ export { TypographyCaptionTitle } from '../_tsup-dts-rollup';
42
+ export { TypographyProps } from '../_tsup-dts-rollup';
@@ -253,3 +253,4 @@ function typographyVariant(variant, displayName) {
253
253
  TypographyTechnical,
254
254
  TypographyTechnicalTitle
255
255
  });
256
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/typography/index.tsx","../../src/typography/typography.tsx"],"sourcesContent":["import \"@postenbring/hedwig-css/dist/fonts.css\";\nimport \"@postenbring/hedwig-css/dist/tokens.css\";\nimport \"@postenbring/hedwig-css/dist/body.css\";\n\nimport \"@postenbring/hedwig-css/dist/typography.css\";\n\nimport type { TypographyProps } from \"./typography\";\nimport { Typography } from \"./typography\";\n\nexport { Typography };\nexport type * from \"./typography\";\n\n/**\n * Alternative: Named `Text`\n *\n * ## Alias to @see Typography\n *\n * Only one component will remain\n */\nexport const Text = Typography;\nText.displayName = \"Text\";\n\n/**\n * Alternative: Named as the different typography levels\n *\n * ## Alias to @see Typography\n */\nexport const H1Display = typographyVariant(\"h1-display\", \"H1Display\");\nexport const H1 = typographyVariant(\"h1\", \"H1\");\nexport const H2 = typographyVariant(\"h2\", \"H2\");\nexport const H3 = typographyVariant(\"h3\", \"H3\");\nexport const H3Title = typographyVariant(\"h3-title\", \"H3Title\");\nexport const Body = typographyVariant(\"body\", \"Body\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const BodyTitle = typographyVariant(\"body-title\", \"BodyTitle\");\nexport const BodySmall = typographyVariant(\"body-small\", \"BodySmall\");\nexport const BodySmallTitle = typographyVariant(\"body-small-title\", \"BodySmallTitle\");\nexport const Technical = typographyVariant(\"technical\", \"Technical\");\nexport const TechnicalTitle = typographyVariant(\"technical-title\", \"TechnicalTitle\");\nexport const Caption = typographyVariant(\"caption\", \"Caption\");\nexport const CaptionTitle = typographyVariant(\"caption-title\", \"CaptionTitle\");\n\n/**\n * Alternative: Named as the different typography levels with Text prefix\n *\n * ## Alias to @see Typography\n */\nexport const TextH1Display = typographyVariant(\"h1-display\", \"TextH1Display\");\nexport const TextH1 = typographyVariant(\"h1\", \"TextH1\");\nexport const TextH2 = typographyVariant(\"h2\", \"TextH2\");\nexport const TextH3 = typographyVariant(\"h3\", \"TextH3\");\nexport const TextH3Title = typographyVariant(\"h3-title\", \"TextH3Title\");\nexport const TextBody = typographyVariant(\"body\", \"TextBody\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const TextBodyTitle = typographyVariant(\"body-title\", \"TextBodyTitle\");\nexport const TextBodySmall = typographyVariant(\"body-small\", \"TextBodySmall\");\nexport const TextBodySmallTitle = typographyVariant(\"body-small-title\", \"TextBodySmallTitle\");\nexport const TextTechnical = typographyVariant(\"technical\", \"TextTechnical\");\nexport const TextTechnicalTitle = typographyVariant(\"technical-title\", \"TextTechnicalTitle\");\nexport const TextCaption = typographyVariant(\"caption\", \"TextCaption\");\nexport const TextCaptionTitle = typographyVariant(\"caption-title\", \"TextCaptionTitle\");\n\n/**\n * Alternative: Named as the different typography levels with Typography prefix\n *\n * ## Alias to @see Typography\n */\nexport const TypographyH1Display = typographyVariant(\"h1-display\", \"TypographyH1Display\");\nexport const TypographyH1 = typographyVariant(\"h1\", \"TypographyH1\");\nexport const TypographyH2 = typographyVariant(\"h2\", \"TypographyH2\");\nexport const TypographyH3 = typographyVariant(\"h3\", \"TypographyH3\");\nexport const TypographyH3Title = typographyVariant(\"h3-title\", \"TypographyH3Title\");\nexport const TypographyBody = typographyVariant(\"body\", \"TypographyBody\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const TypographyBodyTitle = typographyVariant(\"body-title\", \"TypographyBodyTitle\");\nexport const TypographyBodySmall = typographyVariant(\"body-small\", \"TypographyBodySmall\");\nexport const TypographyBodySmallTitle = typographyVariant(\n \"body-small-title\",\n \"TypographyBodySmallTitle\",\n);\nexport const TypographyTechnical = typographyVariant(\"technical\", \"TypographyTechnical\");\nexport const TypographyTechnicalTitle = typographyVariant(\n \"technical-title\",\n \"TypographyTechnicalTitle\",\n);\nexport const TypographyCaption = typographyVariant(\"caption\", \"TypographyCaption\");\nexport const TypographyCaptionTitle = typographyVariant(\"caption-title\", \"TypographyCaptionTitle\");\n\nfunction typographyVariant(\n variant: TypographyProps[\"variant\"],\n displayName: string,\n): React.FunctionComponent<Omit<TypographyProps, \"variant\">> {\n function WrappedTypography(props: Omit<TypographyProps, \"variant\">) {\n return <Typography variant={variant} {...props} />;\n }\n WrappedTypography.displayName = displayName;\n\n return WrappedTypography;\n}\n","import React, { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface TypographyProps {\n children: React.ReactNode;\n variant?:\n | \"h1-display\"\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h3-title\"\n | \"body\"\n | \"body-title\"\n | \"body-small\"\n | \"body-small-title\"\n | \"technical\"\n | \"technical-title\"\n | \"caption\"\n | \"caption-title\";\n size?: \"min\" | \"max\" | \"fluid\";\n\n /**\n * 🚧 Experimental spacing\n */\n _unstableSpacing?: boolean;\n}\n\nconst defaultHTMLTag: Record<NonNullable<TypographyProps[\"variant\"]>, `h${1 | 2 | 3}` | \"p\"> = {\n \"h1-display\": \"h1\",\n h1: \"h1\",\n h2: \"h2\",\n h3: \"h3\",\n \"h3-title\": \"h3\",\n body: \"p\",\n \"body-title\": \"p\",\n \"body-small\": \"p\",\n \"body-small-title\": \"p\",\n technical: \"p\",\n \"technical-title\": \"p\",\n caption: \"p\",\n \"caption-title\": \"p\",\n};\n\n/**\n * ## 🚨 WORK IN PROGRESS 🚨\n */\nexport const Typography: OverridableComponent<TypographyProps, HTMLDivElement> = forwardRef(\n (\n {\n as,\n variant = \"body\",\n size = \"fluid\",\n _unstableSpacing: spacing,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const Component = as ?? defaultHTMLTag[variant];\n const sizeModifier =\n size !== \"fluid\" && variant !== \"caption\" && variant !== \"caption-title\" && size;\n return (\n <Component\n className={clsx(\n `hds-typography-${variant}`,\n sizeModifier && `hds-typography--${sizeModifier}`,\n spacing && \"hds-typography--spacing\",\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nTypography.displayName = \"Typography\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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,IAAM,sBAAsB,kBAAkB,cAAc,qBAAqB;AACjF,IAAM,2BAA2B;AAAA,EACtC;AAAA,EACA;AACF;AACO,IAAM,sBAAsB,kBAAkB,aAAa,qBAAqB;AAChF,IAAM,2BAA2B;AAAA,EACtC;AAAA,EACA;AACF;AACO,IAAM,oBAAoB,kBAAkB,WAAW,mBAAmB;AAC1E,IAAM,yBAAyB,kBAAkB,iBAAiB,wBAAwB;AAEjG,SAAS,kBACP,SACA,aAC2D;AAC3D,WAAS,kBAAkB,OAAyC;AAClE,WAAO,6CAAC,6BAAW,WAAsB,MAAO;AAAA,EAClD;AACA,oBAAkB,cAAc;AAEhC,SAAO;AACT;","names":["import_jsx_runtime"]}
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Typography
3
- } from "../chunk-TEOA6K5L.mjs";
3
+ } from "../chunk-5GRZROYQ.mjs";
4
4
  import {
5
5
  __spreadValues
6
- } from "../chunk-FKR5F35B.mjs";
6
+ } from "../chunk-R4SQKVDQ.mjs";
7
7
 
8
8
  // src/typography/index.tsx
9
9
  import "@postenbring/hedwig-css/dist/fonts.css";
@@ -108,3 +108,4 @@ export {
108
108
  TypographyTechnical,
109
109
  TypographyTechnicalTitle
110
110
  };
111
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/typography/index.tsx"],"sourcesContent":["import \"@postenbring/hedwig-css/dist/fonts.css\";\nimport \"@postenbring/hedwig-css/dist/tokens.css\";\nimport \"@postenbring/hedwig-css/dist/body.css\";\n\nimport \"@postenbring/hedwig-css/dist/typography.css\";\n\nimport type { TypographyProps } from \"./typography\";\nimport { Typography } from \"./typography\";\n\nexport { Typography };\nexport type * from \"./typography\";\n\n/**\n * Alternative: Named `Text`\n *\n * ## Alias to @see Typography\n *\n * Only one component will remain\n */\nexport const Text = Typography;\nText.displayName = \"Text\";\n\n/**\n * Alternative: Named as the different typography levels\n *\n * ## Alias to @see Typography\n */\nexport const H1Display = typographyVariant(\"h1-display\", \"H1Display\");\nexport const H1 = typographyVariant(\"h1\", \"H1\");\nexport const H2 = typographyVariant(\"h2\", \"H2\");\nexport const H3 = typographyVariant(\"h3\", \"H3\");\nexport const H3Title = typographyVariant(\"h3-title\", \"H3Title\");\nexport const Body = typographyVariant(\"body\", \"Body\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const BodyTitle = typographyVariant(\"body-title\", \"BodyTitle\");\nexport const BodySmall = typographyVariant(\"body-small\", \"BodySmall\");\nexport const BodySmallTitle = typographyVariant(\"body-small-title\", \"BodySmallTitle\");\nexport const Technical = typographyVariant(\"technical\", \"Technical\");\nexport const TechnicalTitle = typographyVariant(\"technical-title\", \"TechnicalTitle\");\nexport const Caption = typographyVariant(\"caption\", \"Caption\");\nexport const CaptionTitle = typographyVariant(\"caption-title\", \"CaptionTitle\");\n\n/**\n * Alternative: Named as the different typography levels with Text prefix\n *\n * ## Alias to @see Typography\n */\nexport const TextH1Display = typographyVariant(\"h1-display\", \"TextH1Display\");\nexport const TextH1 = typographyVariant(\"h1\", \"TextH1\");\nexport const TextH2 = typographyVariant(\"h2\", \"TextH2\");\nexport const TextH3 = typographyVariant(\"h3\", \"TextH3\");\nexport const TextH3Title = typographyVariant(\"h3-title\", \"TextH3Title\");\nexport const TextBody = typographyVariant(\"body\", \"TextBody\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const TextBodyTitle = typographyVariant(\"body-title\", \"TextBodyTitle\");\nexport const TextBodySmall = typographyVariant(\"body-small\", \"TextBodySmall\");\nexport const TextBodySmallTitle = typographyVariant(\"body-small-title\", \"TextBodySmallTitle\");\nexport const TextTechnical = typographyVariant(\"technical\", \"TextTechnical\");\nexport const TextTechnicalTitle = typographyVariant(\"technical-title\", \"TextTechnicalTitle\");\nexport const TextCaption = typographyVariant(\"caption\", \"TextCaption\");\nexport const TextCaptionTitle = typographyVariant(\"caption-title\", \"TextCaptionTitle\");\n\n/**\n * Alternative: Named as the different typography levels with Typography prefix\n *\n * ## Alias to @see Typography\n */\nexport const TypographyH1Display = typographyVariant(\"h1-display\", \"TypographyH1Display\");\nexport const TypographyH1 = typographyVariant(\"h1\", \"TypographyH1\");\nexport const TypographyH2 = typographyVariant(\"h2\", \"TypographyH2\");\nexport const TypographyH3 = typographyVariant(\"h3\", \"TypographyH3\");\nexport const TypographyH3Title = typographyVariant(\"h3-title\", \"TypographyH3Title\");\nexport const TypographyBody = typographyVariant(\"body\", \"TypographyBody\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const TypographyBodyTitle = typographyVariant(\"body-title\", \"TypographyBodyTitle\");\nexport const TypographyBodySmall = typographyVariant(\"body-small\", \"TypographyBodySmall\");\nexport const TypographyBodySmallTitle = typographyVariant(\n \"body-small-title\",\n \"TypographyBodySmallTitle\",\n);\nexport const TypographyTechnical = typographyVariant(\"technical\", \"TypographyTechnical\");\nexport const TypographyTechnicalTitle = typographyVariant(\n \"technical-title\",\n \"TypographyTechnicalTitle\",\n);\nexport const TypographyCaption = typographyVariant(\"caption\", \"TypographyCaption\");\nexport const TypographyCaptionTitle = typographyVariant(\"caption-title\", \"TypographyCaptionTitle\");\n\nfunction typographyVariant(\n variant: TypographyProps[\"variant\"],\n displayName: string,\n): React.FunctionComponent<Omit<TypographyProps, \"variant\">> {\n function WrappedTypography(props: Omit<TypographyProps, \"variant\">) {\n return <Typography variant={variant} {...props} />;\n }\n WrappedTypography.displayName = displayName;\n\n return WrappedTypography;\n}\n"],"mappings":";;;;;;;;AAAA,OAAO;AACP,OAAO;AACP,OAAO;AAEP,OAAO;AAsFI;AAvEJ,IAAM,OAAO;AACpB,KAAK,cAAc;AAOZ,IAAM,YAAY,kBAAkB,cAAc,WAAW;AAC7D,IAAM,KAAK,kBAAkB,MAAM,IAAI;AACvC,IAAM,KAAK,kBAAkB,MAAM,IAAI;AACvC,IAAM,KAAK,kBAAkB,MAAM,IAAI;AACvC,IAAM,UAAU,kBAAkB,YAAY,SAAS;AACvD,IAAM,OAAO,kBAAkB,QAAQ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AACO,IAAM,sBAAsB,kBAAkB,aAAa,qBAAqB;AAChF,IAAM,2BAA2B;AAAA,EACtC;AAAA,EACA;AACF;AACO,IAAM,oBAAoB,kBAAkB,WAAW,mBAAmB;AAC1E,IAAM,yBAAyB,kBAAkB,iBAAiB,wBAAwB;AAEjG,SAAS,kBACP,SACA,aAC2D;AAC3D,WAAS,kBAAkB,OAAyC;AAClE,WAAO,oBAAC,6BAAW,WAAsB,MAAO;AAAA,EAClD;AACA,oBAAkB,cAAc;AAEhC,SAAO;AACT;","names":[]}
@@ -1,18 +1,2 @@
1
- import react__default from 'react';
2
- import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
-
4
- interface TypographyProps {
5
- children: react__default.ReactNode;
6
- variant?: "h1-display" | "h1" | "h2" | "h3" | "h3-title" | "body" | "body-title" | "body-small" | "body-small-title" | "technical" | "technical-title" | "caption" | "caption-title";
7
- size?: "min" | "max" | "fluid";
8
- /**
9
- * 🚧 Experimental spacing
10
- */
11
- _unstableSpacing?: boolean;
12
- }
13
- /**
14
- * ## 🚨 WORK IN PROGRESS 🚨
15
- */
16
- declare const Typography: OverridableComponent<TypographyProps, HTMLDivElement>;
17
-
18
- export { Typography, type TypographyProps };
1
+ export { TypographyProps_alias_1 as TypographyProps } from '../_tsup-dts-rollup';
2
+ export { Typography_alias_1 as Typography } from '../_tsup-dts-rollup';
@@ -1,18 +1,2 @@
1
- import react__default from 'react';
2
- import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
-
4
- interface TypographyProps {
5
- children: react__default.ReactNode;
6
- variant?: "h1-display" | "h1" | "h2" | "h3" | "h3-title" | "body" | "body-title" | "body-small" | "body-small-title" | "technical" | "technical-title" | "caption" | "caption-title";
7
- size?: "min" | "max" | "fluid";
8
- /**
9
- * 🚧 Experimental spacing
10
- */
11
- _unstableSpacing?: boolean;
12
- }
13
- /**
14
- * ## 🚨 WORK IN PROGRESS 🚨
15
- */
16
- declare const Typography: OverridableComponent<TypographyProps, HTMLDivElement>;
17
-
18
- export { Typography, type TypographyProps };
1
+ export { TypographyProps_alias_1 as TypographyProps } from '../_tsup-dts-rollup';
2
+ export { Typography_alias_1 as Typography } from '../_tsup-dts-rollup';
@@ -110,3 +110,4 @@ Typography.displayName = "Typography";
110
110
  0 && (module.exports = {
111
111
  Typography
112
112
  });
113
+ //# sourceMappingURL=typography.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/typography/typography.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface TypographyProps {\n children: React.ReactNode;\n variant?:\n | \"h1-display\"\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h3-title\"\n | \"body\"\n | \"body-title\"\n | \"body-small\"\n | \"body-small-title\"\n | \"technical\"\n | \"technical-title\"\n | \"caption\"\n | \"caption-title\";\n size?: \"min\" | \"max\" | \"fluid\";\n\n /**\n * 🚧 Experimental spacing\n */\n _unstableSpacing?: boolean;\n}\n\nconst defaultHTMLTag: Record<NonNullable<TypographyProps[\"variant\"]>, `h${1 | 2 | 3}` | \"p\"> = {\n \"h1-display\": \"h1\",\n h1: \"h1\",\n h2: \"h2\",\n h3: \"h3\",\n \"h3-title\": \"h3\",\n body: \"p\",\n \"body-title\": \"p\",\n \"body-small\": \"p\",\n \"body-small-title\": \"p\",\n technical: \"p\",\n \"technical-title\": \"p\",\n caption: \"p\",\n \"caption-title\": \"p\",\n};\n\n/**\n * ## 🚨 WORK IN PROGRESS 🚨\n */\nexport const Typography: OverridableComponent<TypographyProps, HTMLDivElement> = forwardRef(\n (\n {\n as,\n variant = \"body\",\n size = \"fluid\",\n _unstableSpacing: spacing,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const Component = as ?? defaultHTMLTag[variant];\n const sizeModifier =\n size !== \"fluid\" && variant !== \"caption\" && variant !== \"caption-title\" && size;\n return (\n <Component\n className={clsx(\n `hds-typography-${variant}`,\n sizeModifier && `hds-typography--${sizeModifier}`,\n spacing && \"hds-typography--spacing\",\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nTypography.displayName = \"Typography\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkC;AAClC,6BAAqB;AA+Df;AApCN,IAAM,iBAAyF;AAAA,EAC7F,cAAc;AAAA,EACd,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,cAAc;AAAA,EACd,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT,iBAAiB;AACnB;AAKO,IAAM,iBAAoE;AAAA,EAC/E,CACE,IASA,QACG;AAVH,iBACE;AAAA;AAAA,MACA,UAAU;AAAA,MACV,OAAO;AAAA,MACP,kBAAkB;AAAA,MAClB;AAAA,MACA;AAAA,IAvDN,IAiDI,IAOK,iBAPL,IAOK;AAAA,MANH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAKF,UAAM,YAAY,kBAAM,eAAe,OAAO;AAC9C,UAAM,eACJ,SAAS,WAAW,YAAY,aAAa,YAAY,mBAAmB;AAC9E,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT,kBAAkB,OAAO;AAAA,UACzB,gBAAgB,mBAAmB,YAAY;AAAA,UAC/C,WAAW;AAAA,UACX;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,WAAW,cAAc;","names":[]}
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  Typography
3
- } from "../chunk-TEOA6K5L.mjs";
4
- import "../chunk-FKR5F35B.mjs";
3
+ } from "../chunk-5GRZROYQ.mjs";
4
+ import "../chunk-R4SQKVDQ.mjs";
5
5
  export {
6
6
  Typography
7
7
  };
8
+ //# sourceMappingURL=typography.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,3 +1,2 @@
1
- export { WarningBanner, WarningBannerProps } from './warning-banner.mjs';
2
- import 'react';
3
- import '../utils-3jLhIyOS.mjs';
1
+ export { WarningBanner_alias_1 as WarningBanner } from '../_tsup-dts-rollup';
2
+ export { WarningBannerProps_alias_1 as WarningBannerProps } from '../_tsup-dts-rollup';
@@ -1,3 +1,2 @@
1
- export { WarningBanner, WarningBannerProps } from './warning-banner.js';
2
- import 'react';
3
- import '../utils-3jLhIyOS.js';
1
+ export { WarningBanner_alias_1 as WarningBanner } from '../_tsup-dts-rollup';
2
+ export { WarningBannerProps_alias_1 as WarningBannerProps } from '../_tsup-dts-rollup';
@@ -232,3 +232,4 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
232
232
  0 && (module.exports = {
233
233
  WarningBanner
234
234
  });
235
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/warning-banner/index.tsx","../../src/warning-banner/warning-banner.tsx","../../src/box/index.tsx","../../src/box/box.tsx"],"sourcesContent":["import \"@postenbring/hedwig-css/dist/fonts.css\";\nimport \"@postenbring/hedwig-css/dist/tokens.css\";\nimport \"@postenbring/hedwig-css/dist/body.css\";\n\nimport \"@postenbring/hedwig-css/dist/warning-banner.css\";\n\nexport { WarningBanner } from \"./warning-banner\";\nexport type * from \"./warning-banner\";\n","import type { ReactNode } from \"react\";\nimport { forwardRef, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\nimport { Box } from \"../box\";\n\nexport interface WarningBannerProps {\n title: ReactNode;\n description?: ReactNode;\n}\n\nexport const WarningBanner: OverridableComponent<WarningBannerProps, HTMLDivElement> = forwardRef(\n ({ title, description, className, ...rest }, ref) => {\n const expandable = !!description;\n return (\n <Box {...rest} className={clsx(\"hds-warning-banner\", className as undefined)} ref={ref}>\n <WarningBannerTitle variant={expandable ? \"expandable\" : \"default\"}>\n {title}\n </WarningBannerTitle>\n {expandable ? <WarningBannerDescription>{description}</WarningBannerDescription> : null}\n </Box>\n );\n },\n);\nWarningBanner.displayName = \"WarningBanner\";\n\ninterface WarningBannerTitleProps {\n variant: \"expandable\" | \"default\";\n children: ReactNode;\n}\n\nconst WarningBannerTitle: OverridableComponent<WarningBannerTitleProps, HTMLDivElement> =\n forwardRef(\n (\n {\n variant,\n as: Component = variant === \"expandable\" ? \"button\" : \"p\",\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [open, setOpen] = useState<boolean>(false);\n if (variant === \"expandable\") {\n return (\n <Component\n className={clsx(\n \"hds-warning-banner__title\",\n \"hds-warning-banner__title-trigger\",\n { \"hds-warning-banner--closed\": !open },\n className as undefined,\n )}\n onClick={() => {\n setOpen(!open);\n }}\n ref={ref}\n type=\"button\"\n {...rest}\n >\n <span>{children}</span>\n <span className={clsx(\"hds-warning-banner__title-trigger--icon\")}>\n <svg\n fill=\"none\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n width=\"24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g className=\"hds-warning-banner__title-trigger--icon-chevron\">\n <path d=\"M19.6289 9.15625L18.9609 8.45312C18.7852 8.27734 18.5039 8.27734 18.3633 8.45312L12 14.8164L5.60156 8.45312C5.46094 8.27734 5.17969 8.27734 5.00391 8.45312L4.33594 9.15625C4.16016 9.29688 4.16016 9.57812 4.33594 9.75391L11.6836 17.1016C11.8594 17.2773 12.1055 17.2773 12.2812 17.1016L19.6289 9.75391C19.8047 9.57812 19.8047 9.29688 19.6289 9.15625Z\" />\n </g>\n </svg>\n </span>\n </Component>\n );\n }\n return (\n <Component\n className={clsx(\"hds-warning-banner__title\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n );\nWarningBannerTitle.displayName = \"WarningBannerTitle\";\n\nconst WarningBannerDescription: OverridableComponent<object, HTMLParagraphElement> = forwardRef(\n ({ as: Component = \"p\", className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\"hds-warning-banner__description\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nWarningBannerDescription.displayName = \"WarningBannerDescription\";\n","import \"@postenbring/hedwig-css/dist/fonts.css\";\nimport \"@postenbring/hedwig-css/dist/tokens.css\";\nimport \"@postenbring/hedwig-css/dist/body.css\";\n\nimport \"@postenbring/hedwig-css/dist/box.css\";\n\nimport { Box, BoxCloseButton } from \"./box\";\n\nconst BoxComponent = Box as typeof Box & {\n CloseButton: typeof BoxCloseButton;\n};\nBoxComponent.CloseButton = BoxCloseButton;\n\nexport { BoxComponent as Box };\n\nexport type * from \"./box\";\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAAAA,gBAAO;AACP,IAAAC,iBAAO;AACP,IAAAC,eAAO;AAEP,4BAAO;;;ACHP,IAAAC,gBAAqC;AACrC,IAAAC,0BAAqB;;;ACFrB,mBAAO;AACP,oBAAO;AACP,kBAAO;AAEP,iBAAO;;;ACJP,mBAAkD;AAClD,6BAAqB;AAmEf;AA9BC,IAAM,UAAsD;AAAA,EACjE,CACE,IAWA,QACG;AAZH,iBACE;AAAA,UAAI,YAAY;AAAA,MAChB;AAAA,MACA,YAAY;AAAA,MACZ,SAAS;AAAA,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A,EAEJ;AACF;AACF,mBAAmB,cAAc;AAEjC,IAAM,+BAA+E;AAAA,EACnF,CAAC,IAA6C,QAAQ;AAArD,iBAAE,MAAI,YAAY,KAAK,UA3F1B,IA2FG,IAAqC,iBAArC,IAAqC,CAAnC,MAAqB;AACtB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,8BAAK,mCAAmC,SAAsB;AAAA,QACzE;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,yBAAyB,cAAc;","names":["import_fonts","import_tokens","import_body","import_react","import_typed_classname","import_jsx_runtime"]}
@@ -1,10 +1,11 @@
1
- import "../chunk-K2HIKZ7F.mjs";
1
+ import "../chunk-WQU3PHD4.mjs";
2
2
  import {
3
3
  WarningBanner
4
- } from "../chunk-3Y65IUK4.mjs";
5
- import "../chunk-UBQPNSMU.mjs";
6
- import "../chunk-3EENBGOV.mjs";
7
- import "../chunk-FKR5F35B.mjs";
4
+ } from "../chunk-HHZ4Q5WR.mjs";
5
+ import "../chunk-FFA6SBK6.mjs";
6
+ import "../chunk-R7WBXNQA.mjs";
7
+ import "../chunk-R4SQKVDQ.mjs";
8
8
  export {
9
9
  WarningBanner
10
10
  };
11
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,10 +1,2 @@
1
- import { ReactNode } from 'react';
2
- import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
-
4
- interface WarningBannerProps {
5
- title: ReactNode;
6
- description?: ReactNode;
7
- }
8
- declare const WarningBanner: OverridableComponent<WarningBannerProps, HTMLDivElement>;
9
-
10
- export { WarningBanner, type WarningBannerProps };
1
+ export { WarningBannerProps_alias_2 as WarningBannerProps } from '../_tsup-dts-rollup';
2
+ export { WarningBanner_alias_2 as WarningBanner } from '../_tsup-dts-rollup';
@@ -1,10 +1,2 @@
1
- import { ReactNode } from 'react';
2
- import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
-
4
- interface WarningBannerProps {
5
- title: ReactNode;
6
- description?: ReactNode;
7
- }
8
- declare const WarningBanner: OverridableComponent<WarningBannerProps, HTMLDivElement>;
9
-
10
- export { WarningBanner, type WarningBannerProps };
1
+ export { WarningBannerProps_alias_2 as WarningBannerProps } from '../_tsup-dts-rollup';
2
+ export { WarningBanner_alias_2 as WarningBanner } from '../_tsup-dts-rollup';
@@ -226,3 +226,4 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
226
226
  0 && (module.exports = {
227
227
  WarningBanner
228
228
  });
229
+ //# sourceMappingURL=warning-banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/warning-banner/warning-banner.tsx","../../src/box/index.tsx","../../src/box/box.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { forwardRef, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\nimport { Box } from \"../box\";\n\nexport interface WarningBannerProps {\n title: ReactNode;\n description?: ReactNode;\n}\n\nexport const WarningBanner: OverridableComponent<WarningBannerProps, HTMLDivElement> = forwardRef(\n ({ title, description, className, ...rest }, ref) => {\n const expandable = !!description;\n return (\n <Box {...rest} className={clsx(\"hds-warning-banner\", className as undefined)} ref={ref}>\n <WarningBannerTitle variant={expandable ? \"expandable\" : \"default\"}>\n {title}\n </WarningBannerTitle>\n {expandable ? <WarningBannerDescription>{description}</WarningBannerDescription> : null}\n </Box>\n );\n },\n);\nWarningBanner.displayName = \"WarningBanner\";\n\ninterface WarningBannerTitleProps {\n variant: \"expandable\" | \"default\";\n children: ReactNode;\n}\n\nconst WarningBannerTitle: OverridableComponent<WarningBannerTitleProps, HTMLDivElement> =\n forwardRef(\n (\n {\n variant,\n as: Component = variant === \"expandable\" ? \"button\" : \"p\",\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [open, setOpen] = useState<boolean>(false);\n if (variant === \"expandable\") {\n return (\n <Component\n className={clsx(\n \"hds-warning-banner__title\",\n \"hds-warning-banner__title-trigger\",\n { \"hds-warning-banner--closed\": !open },\n className as undefined,\n )}\n onClick={() => {\n setOpen(!open);\n }}\n ref={ref}\n type=\"button\"\n {...rest}\n >\n <span>{children}</span>\n <span className={clsx(\"hds-warning-banner__title-trigger--icon\")}>\n <svg\n fill=\"none\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n width=\"24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g className=\"hds-warning-banner__title-trigger--icon-chevron\">\n <path d=\"M19.6289 9.15625L18.9609 8.45312C18.7852 8.27734 18.5039 8.27734 18.3633 8.45312L12 14.8164L5.60156 8.45312C5.46094 8.27734 5.17969 8.27734 5.00391 8.45312L4.33594 9.15625C4.16016 9.29688 4.16016 9.57812 4.33594 9.75391L11.6836 17.1016C11.8594 17.2773 12.1055 17.2773 12.2812 17.1016L19.6289 9.75391C19.8047 9.57812 19.8047 9.29688 19.6289 9.15625Z\" />\n </g>\n </svg>\n </span>\n </Component>\n );\n }\n return (\n <Component\n className={clsx(\"hds-warning-banner__title\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n );\nWarningBannerTitle.displayName = \"WarningBannerTitle\";\n\nconst WarningBannerDescription: OverridableComponent<object, HTMLParagraphElement> = forwardRef(\n ({ as: Component = \"p\", className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\"hds-warning-banner__description\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nWarningBannerDescription.displayName = \"WarningBannerDescription\";\n","import \"@postenbring/hedwig-css/dist/fonts.css\";\nimport \"@postenbring/hedwig-css/dist/tokens.css\";\nimport \"@postenbring/hedwig-css/dist/body.css\";\n\nimport \"@postenbring/hedwig-css/dist/box.css\";\n\nimport { Box, BoxCloseButton } from \"./box\";\n\nconst BoxComponent = Box as typeof Box & {\n CloseButton: typeof BoxCloseButton;\n};\nBoxComponent.CloseButton = BoxCloseButton;\n\nexport { BoxComponent as Box };\n\nexport type * from \"./box\";\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,IAAAA,gBAAqC;AACrC,IAAAC,0BAAqB;;;ACFrB,mBAAO;AACP,oBAAO;AACP,kBAAO;AAEP,iBAAO;;;ACJP,mBAAkD;AAClD,6BAAqB;AAmEf;AA9BC,IAAM,UAAsD;AAAA,EACjE,CACE,IAWA,QACG;AAZH,iBACE;AAAA,UAAI,YAAY;AAAA,MAChB;AAAA,MACA,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,IAhDN,IAwCI,IASK,iBATL,IASK;AAAA,MARH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAKF,UAAM,CAAC,aAAa,cAAc,QAAI,uBAAS,KAAK;AACpD,UAAM,cAAU,0BAAY,MAAM;AAChC,UAAI,aAAa;AACf,cAAM,SAAS,YAAY;AAC3B,YAAI,WAAW,MAAM;AACnB,yBAAe,IAAI;AAAA,QACrB;AAAA,MACF,OAAO;AACL,uBAAe,IAAI;AAAA,MACrB;AAAA,IAEF,GAAG,CAAC,CAAC;AACL,UAAM,SAAS,kCAAc;AAE7B,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,WAAW,YAAY,OAAO;AAAA,UAC9B,EAAE,mBAAmB,OAAO;AAAA,UAC5B;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL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AE,8BAA8B,CAAC,KAAK;AAAA,YACtC;AAAA,UACF;AAAA,UACA,SAAS,MAAM;AACb,oBAAQ,CAAC,IAAI;AAAA,UACf;AAAA,UACA;AAAA,UACA,MAAK;AAAA,WACD,OAZL;AAAA,UAcC;AAAA,yDAAC,UAAM,UAAS;AAAA,YAChB,6CAAC,UAAK,eAAW,8BAAK,yCAAyC,GAC7D;AAAA,cAAC;AAAA;AAAA,gBACC,MAAK;AAAA,gBACL,QAAO;AAAA,gBACP,SAAQ;AAAA,gBACR,OAAM;AAAA,gBACN,OAAM;AAAA,gBAEN,uDAAC,OAAE,WAAU,mDACX,uDAAC,UAAK,GAAE,gWAA+V,GACzW;AAAA;AAAA,YACF,GACF;AAAA;AAAA;AAAA,MACF;AAAA,IAEJ;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,8BAAK,6BAA6B,SAAsB;AAAA,QACnE;AAAA,SACI,OAHL;AAAA,QAKE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACF,mBAAmB,cAAc;AAEjC,IAAM,+BAA+E;AAAA,EACnF,CAAC,IAA6C,QAAQ;AAArD,iBAAE,MAAI,YAAY,KAAK,UA3F1B,IA2FG,IAAqC,iBAArC,IAAqC,CAAnC,MAAqB;AACtB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,8BAAK,mCAAmC,SAAsB;AAAA,QACzE;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,yBAAyB,cAAc;","names":["import_react","import_typed_classname","import_jsx_runtime"]}
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  WarningBanner
3
- } from "../chunk-3Y65IUK4.mjs";
4
- import "../chunk-UBQPNSMU.mjs";
5
- import "../chunk-3EENBGOV.mjs";
6
- import "../chunk-FKR5F35B.mjs";
3
+ } from "../chunk-HHZ4Q5WR.mjs";
4
+ import "../chunk-FFA6SBK6.mjs";
5
+ import "../chunk-R7WBXNQA.mjs";
6
+ import "../chunk-R4SQKVDQ.mjs";
7
7
  export {
8
8
  WarningBanner
9
9
  };
10
+ //# sourceMappingURL=warning-banner.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -10,6 +10,7 @@
10
10
  "dist/**"
11
11
  ],
12
12
  "devDependencies": {
13
+ "@microsoft/api-extractor": "7.42.3",
13
14
  "@types/react": "^18.2.64",
14
15
  "@types/react-dom": "^18.2.21",
15
16
  "react": "^18.2.0",
@@ -19,8 +20,12 @@
19
20
  "eslint-config-custom": "0.0.1",
20
21
  "hedwig-tsconfig": "0.0.0"
21
22
  },
23
+ "peerDependencies": {
24
+ "react": "^18.2.0",
25
+ "react-dom": "^18.2.0"
26
+ },
22
27
  "dependencies": {
23
- "@postenbring/hedwig-css": "0.0.45"
28
+ "@postenbring/hedwig-css": "0.0.47"
24
29
  },
25
30
  "publishConfig": {
26
31
  "access": "public"
@@ -37,8 +42,8 @@
37
42
  "react"
38
43
  ],
39
44
  "scripts": {
40
- "build": "tsup --format esm,cjs --dts --external react",
41
- "dev": "tsup --format esm,cjs --watch --dts --external react",
45
+ "build": "tsup",
46
+ "dev": "tsup --watch",
42
47
  "lint": "eslint src/",
43
48
  "typecheck": "tsc --noEmit",
44
49
  "clean": "rm -rf .turbo node_modules dist"
File without changes