@postenbring/hedwig-react 0.0.51 → 0.0.53

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-GP3JFLYZ.mjs → chunk-LK62DXGG.mjs} +6 -41
  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-CFMCOWLY.mjs → chunk-SLOG3T7V.mjs} +5 -8
  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-4RD7KCEO.mjs → chunk-T6YKS5OS.mjs} +2 -1
  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-VIFCPFRJ.mjs → chunk-X2YMLUE4.mjs} +2 -1
  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 +19 -18
  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 -40
  322. package/dist/index.d.ts +85 -40
  323. package/dist/index.js +52 -29075
  324. package/dist/index.js.map +1 -0
  325. package/dist/index.mjs +69 -59
  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 -5
  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 -4
  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 -30
  424. package/dist/show-more/auto-animate-height.d.ts +1 -30
  425. package/dist/show-more/auto-animate-height.js +14 -29077
  426. package/dist/show-more/auto-animate-height.js.map +1 -0
  427. package/dist/show-more/auto-animate-height.mjs +3 -3
  428. package/dist/show-more/auto-animate-height.mjs.map +1 -0
  429. package/dist/show-more/show-more.d.mts +1 -38
  430. package/dist/show-more/show-more.d.ts +1 -38
  431. package/dist/show-more/show-more.js +1 -0
  432. package/dist/show-more/show-more.js.map +1 -0
  433. package/dist/show-more/show-more.mjs +3 -2
  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/{chunk-FKR5F35B.mjs → skeleton/skeleton.js} +36 -27
  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 -42
  442. package/dist/step-indicator/step-indicator.d.ts +1 -42
  443. package/dist/step-indicator/step-indicator.js +1 -0
  444. package/dist/step-indicator/step-indicator.js.map +1 -0
  445. package/dist/step-indicator/step-indicator.mjs +3 -2
  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-BIPWW7NV.mjs +0 -29059
  504. package/dist/utils-3jLhIyOS.d.mts +0 -17
  505. package/dist/utils-3jLhIyOS.d.ts +0 -17
@@ -1,21 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { HTMLAttributes, ReactElement } from 'react';
3
- import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
4
-
5
- interface TabContentsProps extends HTMLAttributes<HTMLDivElement> {
6
- children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];
7
- }
8
- declare function TabsContents({ children, ...rest }: TabContentsProps): react_jsx_runtime.JSX.Element;
9
- declare namespace TabsContents {
10
- var displayName: string;
11
- }
12
- interface TabsContentProps extends HTMLAttributes<HTMLElement> {
13
- children: ReactElement<HTMLElement> | ReactElement<HTMLElement>[] | string;
14
- /**
15
- * Content for the referenced tabId
16
- */
17
- forTabId: string;
18
- }
19
- declare const TabsContent: OverridableComponent<TabsContentProps, HTMLElement>;
20
-
21
- export { type TabContentsProps, TabsContent, type TabsContentProps, TabsContents };
1
+ export { TabsContents_alias_2 as TabsContents } from '../_tsup-dts-rollup';
2
+ export { TabContentsProps_alias_2 as TabContentsProps } from '../_tsup-dts-rollup';
3
+ export { TabsContentProps_alias_2 as TabsContentProps } from '../_tsup-dts-rollup';
4
+ export { TabsContent_alias_2 as TabsContent } from '../_tsup-dts-rollup';
@@ -1,21 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { HTMLAttributes, ReactElement } from 'react';
3
- import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
4
-
5
- interface TabContentsProps extends HTMLAttributes<HTMLDivElement> {
6
- children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];
7
- }
8
- declare function TabsContents({ children, ...rest }: TabContentsProps): react_jsx_runtime.JSX.Element;
9
- declare namespace TabsContents {
10
- var displayName: string;
11
- }
12
- interface TabsContentProps extends HTMLAttributes<HTMLElement> {
13
- children: ReactElement<HTMLElement> | ReactElement<HTMLElement>[] | string;
14
- /**
15
- * Content for the referenced tabId
16
- */
17
- forTabId: string;
18
- }
19
- declare const TabsContent: OverridableComponent<TabsContentProps, HTMLElement>;
20
-
21
- export { type TabContentsProps, TabsContent, type TabsContentProps, TabsContents };
1
+ export { TabsContents_alias_2 as TabsContents } from '../_tsup-dts-rollup';
2
+ export { TabContentsProps_alias_2 as TabContentsProps } from '../_tsup-dts-rollup';
3
+ export { TabsContentProps_alias_2 as TabsContentProps } from '../_tsup-dts-rollup';
4
+ export { TabsContent_alias_2 as TabsContent } from '../_tsup-dts-rollup';
@@ -92,3 +92,4 @@ TabsContent.displayName = "Tabs.Content";
92
92
  TabsContent,
93
93
  TabsContents
94
94
  });
95
+ //# sourceMappingURL=tabs-content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/tabs/tabs-content.tsx","../../src/tabs/context.ts"],"sourcesContent":["import type { HTMLAttributes, ReactElement } from \"react\";\nimport { forwardRef, useContext } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\nimport { TabsContext } from \"./context\";\n\nexport interface TabContentsProps extends HTMLAttributes<HTMLDivElement> {\n children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];\n}\n\nexport function TabsContents({ children, ...rest }: TabContentsProps) {\n return (\n <div className={clsx(\"hds-tabs--contents\")} {...rest}>\n {children}\n </div>\n );\n}\nTabsContents.displayName = \"Tabs.Contents\";\n\nexport interface TabsContentProps extends HTMLAttributes<HTMLElement> {\n children: ReactElement<HTMLElement> | ReactElement<HTMLElement>[] | string;\n\n /**\n * Content for the referenced tabId\n */\n forTabId: string;\n}\n\nexport const TabsContent: OverridableComponent<TabsContentProps, HTMLElement> = forwardRef(\n ({ as: Component = \"div\", forTabId, children, ...rest }, ref) => {\n const context = useContext(TabsContext);\n if (!context.mounted) {\n throw new Error(\"Context required. Did you use <Tabs.Content /> outside of <Tabs/>?\");\n }\n if (context.activeTabId === forTabId) {\n return (\n <Component {...rest} ref={ref}>\n {children}\n </Component>\n );\n }\n return null;\n },\n);\n\nTabsContent.displayName = \"Tabs.Content\";\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;AAAA;AACA,IAAAA,gBAAuC;AACvC,6BAAqB;;;ACFrB,mBAA8B;AAQvB,IAAM,kBAAc,4BAAgC;AAAA,EACzD,SAAS;AAAA,EACT,aAAa;AAAA;AAAA,EAEb,mBAAmB,CAAC,UAAkB;AAAA,EAEtC;AACF,CAAC;;;ADHG;AAFG,SAAS,aAAa,IAAyC;AAAzC,eAAE,WAV/B,IAU6B,IAAe,iBAAf,IAAe,CAAb;AAC7B,SACE,4CAAC,sCAAI,eAAW,6BAAK,oBAAoB,KAAO,OAA/C,EACE,WACH;AAEJ;AACA,aAAa,cAAc;AAWpB,IAAM,kBAAmE;AAAA,EAC9E,CAAC,IAAwD,QAAQ;AAAhE,iBAAE,MAAI,YAAY,OAAO,UAAU,SA7BtC,IA6BG,IAAgD,iBAAhD,IAAgD,CAA9C,MAAuB,YAAU;AAClC,UAAM,cAAU,0BAAW,WAAW;AACtC,QAAI,CAAC,QAAQ,SAAS;AACpB,YAAM,IAAI,MAAM,oEAAoE;AAAA,IACtF;AACA,QAAI,QAAQ,gBAAgB,UAAU;AACpC,aACE,4CAAC,4CAAc,OAAd,EAAoB,KAClB,WACH;AAAA,IAEJ;AACA,WAAO;AAAA,EACT;AACF;AAEA,YAAY,cAAc;","names":["import_react"]}
@@ -1,10 +1,11 @@
1
1
  import {
2
2
  TabsContent,
3
3
  TabsContents
4
- } from "../chunk-UL2XL6BN.mjs";
5
- import "../chunk-4ZM45P62.mjs";
6
- import "../chunk-FKR5F35B.mjs";
4
+ } from "../chunk-EQIGUHKL.mjs";
5
+ import "../chunk-642AR63O.mjs";
6
+ import "../chunk-R4SQKVDQ.mjs";
7
7
  export {
8
8
  TabsContent,
9
9
  TabsContents
10
10
  };
11
+ //# sourceMappingURL=tabs-content.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,26 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { HTMLAttributes, ReactElement } from 'react';
3
- import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
4
-
5
- interface TabListProps extends HTMLAttributes<HTMLDivElement> {
6
- children: ReactElement<TabProps> | ReactElement<TabProps>[];
7
- /**
8
- * Direction of the tabs. Can either be vertical or horizontal.
9
- * Horizontal breaks on window width with fallback back to vertical
10
- */
11
- direction?: "vertical" | "horizontal";
12
- }
13
- declare function TabsList({ children, direction, className, ...rest }: TabListProps): react_jsx_runtime.JSX.Element;
14
- declare namespace TabsList {
15
- var displayName: string;
16
- }
17
- interface TabProps extends HTMLAttributes<HTMLButtonElement> {
18
- children: ReactElement<HTMLElement> | string;
19
- /**
20
- * Identifier for the tab
21
- */
22
- tabId: string;
23
- }
24
- declare const Tab: OverridableComponent<TabProps, HTMLButtonElement>;
25
-
26
- export { Tab, type TabListProps, type TabProps, TabsList };
1
+ export { TabsList_alias_2 as TabsList } from '../_tsup-dts-rollup';
2
+ export { TabListProps_alias_2 as TabListProps } from '../_tsup-dts-rollup';
3
+ export { TabProps_alias_2 as TabProps } from '../_tsup-dts-rollup';
4
+ export { Tab_alias_2 as Tab } from '../_tsup-dts-rollup';
@@ -1,26 +1,4 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { HTMLAttributes, ReactElement } from 'react';
3
- import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
4
-
5
- interface TabListProps extends HTMLAttributes<HTMLDivElement> {
6
- children: ReactElement<TabProps> | ReactElement<TabProps>[];
7
- /**
8
- * Direction of the tabs. Can either be vertical or horizontal.
9
- * Horizontal breaks on window width with fallback back to vertical
10
- */
11
- direction?: "vertical" | "horizontal";
12
- }
13
- declare function TabsList({ children, direction, className, ...rest }: TabListProps): react_jsx_runtime.JSX.Element;
14
- declare namespace TabsList {
15
- var displayName: string;
16
- }
17
- interface TabProps extends HTMLAttributes<HTMLButtonElement> {
18
- children: ReactElement<HTMLElement> | string;
19
- /**
20
- * Identifier for the tab
21
- */
22
- tabId: string;
23
- }
24
- declare const Tab: OverridableComponent<TabProps, HTMLButtonElement>;
25
-
26
- export { Tab, type TabListProps, type TabProps, TabsList };
1
+ export { TabsList_alias_2 as TabsList } from '../_tsup-dts-rollup';
2
+ export { TabListProps_alias_2 as TabListProps } from '../_tsup-dts-rollup';
3
+ export { TabProps_alias_2 as TabProps } from '../_tsup-dts-rollup';
4
+ export { Tab_alias_2 as Tab } from '../_tsup-dts-rollup';
@@ -168,3 +168,4 @@ Tab.displayName = "Tabs.Tab";
168
168
  Tab,
169
169
  TabsList
170
170
  });
171
+ //# sourceMappingURL=tabs-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/tabs/tabs-list.tsx","../../src/utils.ts","../../src/tabs/context.ts"],"sourcesContent":["import type { HTMLAttributes, ReactElement, MouseEvent } from \"react\";\nimport { forwardRef, useContext, useRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport { type OverridableComponent, useResize } from \"../utils\";\nimport { TabsContext } from \"./context\";\n\nexport interface TabListProps extends HTMLAttributes<HTMLDivElement> {\n children: ReactElement<TabProps> | ReactElement<TabProps>[];\n\n /**\n * Direction of the tabs. Can either be vertical or horizontal.\n * Horizontal breaks on window width with fallback back to vertical\n */\n direction?: \"vertical\" | \"horizontal\";\n}\n\nexport function TabsList({ children, direction = \"horizontal\", className, ...rest }: TabListProps) {\n const tabsListRef = useRef<HTMLDivElement>(null);\n const { width: tabsWidth } = useResize(tabsListRef);\n const { innerWidth } = window;\n const wideEnough = innerWidth >= tabsWidth;\n return (\n <div\n className={clsx(\n \"hds-tabs--list\",\n direction === \"horizontal\"\n ? {\n [`hds-tabs--list-horizontal`]: wideEnough,\n \"hds-tabs--list-vertical\": !wideEnough,\n }\n : {\n \"hds-tabs--list-vertical\": true,\n },\n className as undefined,\n )}\n ref={tabsListRef}\n role=\"tablist\"\n {...rest}\n >\n {children}\n </div>\n );\n}\n\nTabsList.displayName = \"Tabs.List\";\n\nexport interface TabProps extends HTMLAttributes<HTMLButtonElement> {\n children: ReactElement<HTMLElement> | string;\n\n /**\n * Identifier for the tab\n */\n tabId: string;\n}\n\nexport const Tab: OverridableComponent<TabProps, HTMLButtonElement> = forwardRef(\n ({ as: Component = \"button\", children, tabId, className, onClick, ...rest }, ref) => {\n const context = useContext(TabsContext);\n if (!context.mounted) {\n throw new Error(\"Context required. Did you use <TabContent/> outside of <Tabs/>?\");\n }\n const toggleTab = (e: MouseEvent<HTMLButtonElement>) => {\n e.preventDefault();\n context.toggleActiveTabId(tabId);\n onClick && onClick(e);\n };\n return (\n <Component\n className={clsx(\n \"hds-tabs--tab\",\n { \"hds-tabs--tab-active\": context.activeTabId === tabId },\n className as undefined,\n )}\n data-tabid={tabId}\n onClick={toggleTab}\n ref={ref}\n role=\"tab\"\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\n\nTab.displayName = \"Tabs.Tab\";\n","import type { ComponentPropsWithRef, ElementType, FC, RefAttributes } from \"react\";\nimport * as React from \"react\";\nimport { useCallback, useEffect, useState } from \"react\";\n\n/**\n * OverridableComponent makes the `as` prop available,\n * to be used to override the html element being used for a component\n *\n * Taken from digdir design system: https://github.com/digdir/designsystem/blob/main/packages/react/src/types/OverridableComponent.ts\n */\nexport type OverridableComponent<ComponentProps, Element extends HTMLElement> = {\n (props: ComponentProps & RefAttributes<Element>): ReturnType<FC>;\n\n <As extends ElementType>(\n props: {\n /** Override html element */\n as?: As;\n } & ComponentProps &\n Omit<ComponentPropsWithRef<As>, keyof ComponentProps>,\n ): ReturnType<FC>;\n} & Pick<FC, \"displayName\">;\n\n/**\n * Merges an array of refs into a single memoized callback ref or `null`.\n * @see https://floating-ui.com/docs/useMergeRefs\n */\nexport function useMergeRefs<Instance>(\n refs: (React.Ref<Instance> | undefined)[],\n): React.RefCallback<Instance> | null {\n return React.useMemo(() => {\n if (refs.every((ref) => ref === null)) {\n return null;\n }\n\n return (value) => {\n refs.forEach((ref) => {\n if (typeof ref === \"function\") {\n ref(value);\n } else if (ref !== null) {\n (ref as React.MutableRefObject<Instance | null>).current = value;\n }\n });\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- It's ok\n }, refs);\n}\n\nexport function useResize<Instance extends HTMLElement>(\n ref: React.RefObject<Instance> | undefined | null,\n): { width: number; height: number } {\n const [width, setWidth] = useState<number>(0);\n const [height, setHeight] = useState<number>(0);\n const handleResize = useCallback(() => {\n if (ref?.current !== null) {\n setWidth(ref?.current?.offsetWidth ?? 0);\n setHeight(ref?.current?.offsetHeight ?? 0);\n }\n }, [ref]);\n useEffect(() => {\n window.addEventListener(\"load\", handleResize);\n window.addEventListener(\"resize\", handleResize);\n return () => {\n window.removeEventListener(\"load\", handleResize);\n window.removeEventListener(\"resize\", handleResize);\n };\n }, [ref, handleResize]);\n useEffect(() => {\n handleResize();\n // eslint-disable-next-line react-hooks/exhaustive-deps -- It's ok\n }, []);\n return { width, height };\n}\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;AAAA;AACA,IAAAA,gBAA+C;AAC/C,6BAAqB;;;ACDrB,YAAuB;AACvB,mBAAiD;AA6C1C,SAAS,UACd,KACmC;AACnC,QAAM,CAAC,OAAO,QAAQ,QAAI,uBAAiB,CAAC;AAC5C,QAAM,CAAC,QAAQ,SAAS,QAAI,uBAAiB,CAAC;AAC9C,QAAM,mBAAe,0BAAY,MAAM;AApDzC;AAqDI,SAAI,2BAAK,aAAY,MAAM;AACzB,gBAAS,sCAAK,YAAL,mBAAc,gBAAd,YAA6B,CAAC;AACvC,iBAAU,sCAAK,YAAL,mBAAc,iBAAd,YAA8B,CAAC;AAAA,IAC3C;AAAA,EACF,GAAG,CAAC,GAAG,CAAC;AACR,8BAAU,MAAM;AACd,WAAO,iBAAiB,QAAQ,YAAY;AAC5C,WAAO,iBAAiB,UAAU,YAAY;AAC9C,WAAO,MAAM;AACX,aAAO,oBAAoB,QAAQ,YAAY;AAC/C,aAAO,oBAAoB,UAAU,YAAY;AAAA,IACnD;AAAA,EACF,GAAG,CAAC,KAAK,YAAY,CAAC;AACtB,8BAAU,MAAM;AACd,iBAAa;AAAA,EAEf,GAAG,CAAC,CAAC;AACL,SAAO,EAAE,OAAO,OAAO;AACzB;;;ACvEA,IAAAC,gBAA8B;AAQvB,IAAM,kBAAc,6BAAgC;AAAA,EACzD,SAAS;AAAA,EACT,aAAa;AAAA;AAAA,EAEb,mBAAmB,CAAC,UAAkB;AAAA,EAEtC;AACF,CAAC;;;AFOG;AANG,SAAS,SAAS,IAA0E;AAA1E,eAAE,YAAU,YAAY,cAAc,UAhB/D,IAgByB,IAAoD,iBAApD,IAAoD,CAAlD,YAAU,aAA0B;AAC7D,QAAM,kBAAc,sBAAuB,IAAI;AAC/C,QAAM,EAAE,OAAO,UAAU,IAAI,UAAU,WAAW;AAClD,QAAM,EAAE,WAAW,IAAI;AACvB,QAAM,aAAa,cAAc;AACjC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT;AAAA,QACA,cAAc,eACV;AAAA,UACE,CAAC,2BAA2B,GAAG;AAAA,UAC/B,2BAA2B,CAAC;AAAA,QAC9B,IACA;AAAA,UACE,2BAA2B;AAAA,QAC7B;AAAA,QACJ;AAAA,MACF;AAAA,MACA,KAAK;AAAA,MACL,MAAK;AAAA,OACD,OAfL;AAAA,MAiBE;AAAA;AAAA,EACH;AAEJ;AAEA,SAAS,cAAc;AAWhB,IAAM,UAAyD;AAAA,EACpE,CAAC,IAA4E,QAAQ;AAApF,iBAAE,MAAI,YAAY,UAAU,UAAU,OAAO,WAAW,QAxD3D,IAwDG,IAAoE,iBAApE,IAAoE,CAAlE,MAA0B,YAAU,SAAO,aAAW;AACvD,UAAM,cAAU,0BAAW,WAAW;AACtC,QAAI,CAAC,QAAQ,SAAS;AACpB,YAAM,IAAI,MAAM,iEAAiE;AAAA,IACnF;AACA,UAAM,YAAY,CAAC,MAAqC;AACtD,QAAE,eAAe;AACjB,cAAQ,kBAAkB,KAAK;AAC/B,iBAAW,QAAQ,CAAC;AAAA,IACtB;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,EAAE,wBAAwB,QAAQ,gBAAgB,MAAM;AAAA,UACxD;AAAA,QACF;AAAA,QACA,cAAY;AAAA,QACZ,SAAS;AAAA,QACT;AAAA,QACA,MAAK;AAAA,SACD,OAVL;AAAA,QAYE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,IAAI,cAAc;","names":["import_react","import_react"]}
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  Tab,
3
3
  TabsList
4
- } from "../chunk-4LB35CUY.mjs";
5
- import "../chunk-4ZM45P62.mjs";
6
- import "../chunk-FSBY3NKV.mjs";
7
- import "../chunk-FKR5F35B.mjs";
4
+ } from "../chunk-4WJBW37S.mjs";
5
+ import "../chunk-642AR63O.mjs";
6
+ import "../chunk-FMMNEKSR.mjs";
7
+ import "../chunk-R4SQKVDQ.mjs";
8
8
  export {
9
9
  Tab,
10
10
  TabsList
11
11
  };
12
+ //# sourceMappingURL=tabs-list.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,16 +1,2 @@
1
- import { HTMLAttributes, ReactElement } from 'react';
2
- import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
- import { TabContentsProps } from './tabs-content.mjs';
4
- import { TabListProps } from './tabs-list.mjs';
5
- import 'react/jsx-runtime';
6
-
7
- interface TabsProps extends HTMLAttributes<HTMLElement> {
8
- children: ReactElement<TabListProps | TabContentsProps>[] | ReactElement;
9
- /**
10
- * Define which tab to use as default. Must be one of the <Tab/>s identifier.
11
- */
12
- defaultTab: string;
13
- }
14
- declare const Tabs: OverridableComponent<TabsProps, HTMLDivElement>;
15
-
16
- export { Tabs, type TabsProps };
1
+ export { TabsProps_alias_2 as TabsProps } from '../_tsup-dts-rollup';
2
+ export { Tabs_alias_2 as Tabs } from '../_tsup-dts-rollup';
@@ -1,16 +1,2 @@
1
- import { HTMLAttributes, ReactElement } from 'react';
2
- import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
- import { TabContentsProps } from './tabs-content.js';
4
- import { TabListProps } from './tabs-list.js';
5
- import 'react/jsx-runtime';
6
-
7
- interface TabsProps extends HTMLAttributes<HTMLElement> {
8
- children: ReactElement<TabListProps | TabContentsProps>[] | ReactElement;
9
- /**
10
- * Define which tab to use as default. Must be one of the <Tab/>s identifier.
11
- */
12
- defaultTab: string;
13
- }
14
- declare const Tabs: OverridableComponent<TabsProps, HTMLDivElement>;
15
-
16
- export { Tabs, type TabsProps };
1
+ export { TabsProps_alias_2 as TabsProps } from '../_tsup-dts-rollup';
2
+ export { Tabs_alias_2 as Tabs } from '../_tsup-dts-rollup';
package/dist/tabs/tabs.js CHANGED
@@ -85,3 +85,4 @@ Tabs.displayName = "Tabs";
85
85
  0 && (module.exports = {
86
86
  Tabs
87
87
  });
88
+ //# sourceMappingURL=tabs.js.map
@@ -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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAO;AACP,oBAAO;AACP,kBAAO;AAEP,wBAAO;;;ACJP,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;;;ADWd,IAAAA,sBAAA;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,MAAM;AAC7C,IAAM,YAAY,kBAAkB,cAAc,WAAW;AAC7D,IAAM,YAAY,kBAAkB,cAAc,WAAW;AAC7D,IAAM,iBAAiB,kBAAkB,oBAAoB,gBAAgB;AAC7E,IAAM,YAAY,kBAAkB,aAAa,WAAW;AAC5D,IAAM,iBAAiB,kBAAkB,mBAAmB,gBAAgB;AAC5E,IAAM,UAAU,kBAAkB,WAAW,SAAS;AACtD,IAAM,eAAe,kBAAkB,iBAAiB,cAAc;AAOtE,IAAM,gBAAgB,kBAAkB,cAAc,eAAe;AACrE,IAAM,SAAS,kBAAkB,MAAM,QAAQ;AAC/C,IAAM,SAAS,kBAAkB,MAAM,QAAQ;AAC/C,IAAM,SAAS,kBAAkB,MAAM,QAAQ;AAC/C,IAAM,cAAc,kBAAkB,YAAY,aAAa;AAC/D,IAAM,WAAW,kBAAkB,QAAQ,UAAU;AACrD,IAAM,gBAAgB,kBAAkB,cAAc,eAAe;AACrE,IAAM,gBAAgB,kBAAkB,cAAc,eAAe;AACrE,IAAM,qBAAqB,kBAAkB,oBAAoB,oBAAoB;AACrF,IAAM,gBAAgB,kBAAkB,aAAa,eAAe;AACpE,IAAM,qBAAqB,kBAAkB,mBAAmB,oBAAoB;AACpF,IAAM,cAAc,kBAAkB,WAAW,aAAa;AAC9D,IAAM,mBAAmB,kBAAkB,iBAAiB,kBAAkB;AAO9E,IAAM,sBAAsB,kBAAkB,cAAc,qBAAqB;AACjF,IAAM,eAAe,kBAAkB,MAAM,cAAc;AAC3D,IAAM,eAAe,kBAAkB,MAAM,cAAc;AAC3D,IAAM,eAAe,kBAAkB,MAAM,cAAc;AAC3D,IAAM,oBAAoB,kBAAkB,YAAY,mBAAmB;AAC3E,IAAM,iBAAiB,kBAAkB,QAAQ,gBAAgB;AACjE,IAAM,sBAAsB,kBAAkB,cAAc,qBAAqB;AACjF,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,MAAM;AAC7C,IAAM,YAAY,kBAAkB,cAAc,WAAW;AAC7D,IAAM,YAAY,kBAAkB,cAAc,WAAW;AAC7D,IAAM,iBAAiB,kBAAkB,oBAAoB,gBAAgB;AAC7E,IAAM,YAAY,kBAAkB,aAAa,WAAW;AAC5D,IAAM,iBAAiB,kBAAkB,mBAAmB,gBAAgB;AAC5E,IAAM,UAAU,kBAAkB,WAAW,SAAS;AACtD,IAAM,eAAe,kBAAkB,iBAAiB,cAAc;AAOtE,IAAM,gBAAgB,kBAAkB,cAAc,eAAe;AACrE,IAAM,SAAS,kBAAkB,MAAM,QAAQ;AAC/C,IAAM,SAAS,kBAAkB,MAAM,QAAQ;AAC/C,IAAM,SAAS,kBAAkB,MAAM,QAAQ;AAC/C,IAAM,cAAc,kBAAkB,YAAY,aAAa;AAC/D,IAAM,WAAW,kBAAkB,QAAQ,UAAU;AACrD,IAAM,gBAAgB,kBAAkB,cAAc,eAAe;AACrE,IAAM,gBAAgB,kBAAkB,cAAc,eAAe;AACrE,IAAM,qBAAqB,kBAAkB,oBAAoB,oBAAoB;AACrF,IAAM,gBAAgB,kBAAkB,aAAa,eAAe;AACpE,IAAM,qBAAqB,kBAAkB,mBAAmB,oBAAoB;AACpF,IAAM,cAAc,kBAAkB,WAAW,aAAa;AAC9D,IAAM,mBAAmB,kBAAkB,iBAAiB,kBAAkB;AAO9E,IAAM,sBAAsB,kBAAkB,cAAc,qBAAqB;AACjF,IAAM,eAAe,kBAAkB,MAAM,cAAc;AAC3D,IAAM,eAAe,kBAAkB,MAAM,cAAc;AAC3D,IAAM,eAAe,kBAAkB,MAAM,cAAc;AAC3D,IAAM,oBAAoB,kBAAkB,YAAY,mBAAmB;AAC3E,IAAM,iBAAiB,kBAAkB,QAAQ,gBAAgB;AACjE,IAAM,sBAAsB,kBAAkB,cAAc,qBAAqB;AACjF,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,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';