@postenbring/hedwig-react 0.0.51 → 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.
- package/dist/_tsup-dts-rollup.d.mts +1740 -0
- package/dist/_tsup-dts-rollup.d.ts +1740 -0
- package/dist/accordion/accordion-content.d.mts +2 -9
- package/dist/accordion/accordion-content.d.ts +2 -9
- package/dist/accordion/accordion-content.js +1 -0
- package/dist/accordion/accordion-content.js.map +1 -0
- package/dist/accordion/accordion-content.mjs +4 -3
- package/dist/accordion/accordion-content.mjs.map +1 -0
- package/dist/accordion/accordion-header.d.mts +2 -9
- package/dist/accordion/accordion-header.d.ts +2 -9
- package/dist/accordion/accordion-header.js +1 -0
- package/dist/accordion/accordion-header.js.map +1 -0
- package/dist/accordion/accordion-header.mjs +4 -3
- package/dist/accordion/accordion-header.mjs.map +1 -0
- package/dist/accordion/accordion-item.d.mts +3 -27
- package/dist/accordion/accordion-item.d.ts +3 -27
- package/dist/accordion/accordion-item.js +1 -0
- package/dist/accordion/accordion-item.js.map +1 -0
- package/dist/accordion/accordion-item.mjs +4 -3
- package/dist/accordion/accordion-item.mjs.map +1 -0
- package/dist/accordion/accordion.d.mts +2 -20
- package/dist/accordion/accordion.d.ts +2 -20
- package/dist/accordion/accordion.js +1 -0
- package/dist/accordion/accordion.js.map +1 -0
- package/dist/accordion/accordion.mjs +3 -2
- package/dist/accordion/accordion.mjs.map +1 -0
- package/dist/accordion/index.d.mts +9 -22
- package/dist/accordion/index.d.ts +9 -22
- package/dist/accordion/index.js +1 -0
- package/dist/accordion/index.js.map +1 -0
- package/dist/accordion/index.mjs +8 -7
- package/dist/accordion/index.mjs.map +1 -0
- package/dist/badge/badge.d.mts +5 -28
- package/dist/badge/badge.d.ts +5 -28
- package/dist/badge/badge.js +1 -0
- package/dist/badge/badge.js.map +1 -0
- package/dist/badge/badge.mjs +3 -2
- package/dist/badge/badge.mjs.map +1 -0
- package/dist/badge/index.d.mts +5 -3
- package/dist/badge/index.d.ts +5 -3
- package/dist/badge/index.js +1 -0
- package/dist/badge/index.js.map +1 -0
- package/dist/badge/index.mjs +4 -3
- package/dist/badge/index.mjs.map +1 -0
- package/dist/box/box.d.mts +4 -36
- package/dist/box/box.d.ts +4 -36
- package/dist/box/box.js +1 -0
- package/dist/box/box.js.map +1 -0
- package/dist/box/box.mjs +3 -2
- package/dist/box/box.mjs.map +1 -0
- package/dist/box/index.d.mts +4 -15
- package/dist/box/index.d.ts +4 -15
- package/dist/box/index.js +1 -0
- package/dist/box/index.js.map +1 -0
- package/dist/box/index.mjs +4 -3
- package/dist/box/index.mjs.map +1 -0
- package/dist/breadcrumb/breadcrumb.d.mts +2 -39
- package/dist/breadcrumb/breadcrumb.d.ts +2 -39
- package/dist/breadcrumb/breadcrumb.js +1 -0
- package/dist/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/breadcrumb/breadcrumb.mjs +3 -2
- package/dist/breadcrumb/breadcrumb.mjs.map +1 -0
- package/dist/breadcrumb/index.d.mts +2 -3
- package/dist/breadcrumb/index.d.ts +2 -3
- package/dist/breadcrumb/index.js +1 -0
- package/dist/breadcrumb/index.js.map +1 -0
- package/dist/breadcrumb/index.mjs +4 -3
- package/dist/breadcrumb/index.mjs.map +1 -0
- package/dist/button/button.d.mts +4 -44
- package/dist/button/button.d.ts +4 -44
- package/dist/button/button.js +1 -0
- package/dist/button/button.js.map +1 -0
- package/dist/button/button.mjs +3 -2
- package/dist/button/button.mjs.map +1 -0
- package/dist/button/index.d.mts +4 -3
- package/dist/button/index.d.ts +4 -3
- package/dist/button/index.js +1 -0
- package/dist/button/index.js.map +1 -0
- package/dist/button/index.mjs +4 -3
- package/dist/button/index.mjs.map +1 -0
- package/dist/card/card.d.mts +12 -45
- package/dist/card/card.d.ts +12 -45
- package/dist/card/card.js +1 -0
- package/dist/card/card.js.map +1 -0
- package/dist/card/card.mjs +3 -2
- package/dist/card/card.mjs.map +1 -0
- package/dist/card/index.d.mts +12 -54
- package/dist/card/index.d.ts +12 -54
- package/dist/card/index.js +1 -0
- package/dist/card/index.js.map +1 -0
- package/dist/card/index.mjs +4 -3
- package/dist/card/index.mjs.map +1 -0
- package/dist/{chunk-5HF2PDRZ.mjs → chunk-2C6OZWFA.mjs} +2 -1
- package/dist/chunk-2C6OZWFA.mjs.map +1 -0
- package/dist/{chunk-OSCKYUZ3.mjs → chunk-3DOUHFA4.mjs} +3 -2
- package/dist/chunk-3DOUHFA4.mjs.map +1 -0
- package/dist/{chunk-RBOWRO3L.mjs → chunk-3VYJTKR3.mjs} +1 -0
- package/dist/chunk-3VYJTKR3.mjs.map +1 -0
- package/dist/{chunk-IEY4EQ4E.mjs → chunk-47Z7UJK7.mjs} +1 -0
- package/dist/chunk-47Z7UJK7.mjs.map +1 -0
- package/dist/{chunk-4LB35CUY.mjs → chunk-4WJBW37S.mjs} +4 -3
- package/dist/chunk-4WJBW37S.mjs.map +1 -0
- package/dist/{chunk-TEOA6K5L.mjs → chunk-5GRZROYQ.mjs} +2 -1
- package/dist/chunk-5GRZROYQ.mjs.map +1 -0
- package/dist/{chunk-4ZM45P62.mjs → chunk-642AR63O.mjs} +1 -0
- package/dist/chunk-642AR63O.mjs.map +1 -0
- package/dist/{chunk-67OMX7FP.mjs → chunk-6E4N2IN7.mjs} +1 -0
- package/dist/chunk-6E4N2IN7.mjs.map +1 -0
- package/dist/{chunk-VT7SFAQF.mjs → chunk-74JOQ6RA.mjs} +3 -2
- package/dist/chunk-74JOQ6RA.mjs.map +1 -0
- package/dist/{chunk-UGZSXQQQ.mjs → chunk-76XO5GE7.mjs} +2 -1
- package/dist/chunk-76XO5GE7.mjs.map +1 -0
- package/dist/{chunk-7P6MJKWC.mjs → chunk-77KV3LA6.mjs} +2 -1
- package/dist/chunk-77KV3LA6.mjs.map +1 -0
- package/dist/{chunk-S4F2KVFJ.mjs → chunk-7UANCJA2.mjs} +1 -0
- package/dist/chunk-7UANCJA2.mjs.map +1 -0
- package/dist/{chunk-VX6MSLLO.mjs → chunk-A6Y3TQYS.mjs} +1 -0
- package/dist/chunk-A6Y3TQYS.mjs.map +1 -0
- package/dist/{chunk-C2VTAQEP.mjs → chunk-DN5KNI4C.mjs} +3 -2
- package/dist/chunk-DN5KNI4C.mjs.map +1 -0
- package/dist/{chunk-4RAMNETH.mjs → chunk-EF443SG5.mjs} +1 -0
- package/dist/chunk-EF443SG5.mjs.map +1 -0
- package/dist/{chunk-UL2XL6BN.mjs → chunk-EQIGUHKL.mjs} +3 -2
- package/dist/chunk-EQIGUHKL.mjs.map +1 -0
- package/dist/chunk-F4VCCLLF.mjs +1 -0
- package/dist/chunk-F4VCCLLF.mjs.map +1 -0
- package/dist/{chunk-UBQPNSMU.mjs → chunk-FFA6SBK6.mjs} +2 -1
- package/dist/chunk-FFA6SBK6.mjs.map +1 -0
- package/dist/{chunk-ZDZR5FVC.mjs → chunk-FIXRYHV7.mjs} +2 -1
- package/dist/chunk-FIXRYHV7.mjs.map +1 -0
- package/dist/{chunk-FSBY3NKV.mjs → chunk-FMMNEKSR.mjs} +1 -0
- package/dist/chunk-FMMNEKSR.mjs.map +1 -0
- package/dist/{chunk-UOEKLXX4.mjs → chunk-GKWD4EVJ.mjs} +2 -1
- package/dist/chunk-GKWD4EVJ.mjs.map +1 -0
- package/dist/{chunk-RSL23FEW.mjs → chunk-GS3KAIE7.mjs} +3 -2
- package/dist/chunk-GS3KAIE7.mjs.map +1 -0
- package/dist/{chunk-5FM3XK4V.mjs → chunk-H5GI3A3Y.mjs} +2 -1
- package/dist/chunk-H5GI3A3Y.mjs.map +1 -0
- package/dist/{chunk-3Y65IUK4.mjs → chunk-HHZ4Q5WR.mjs} +3 -2
- package/dist/chunk-HHZ4Q5WR.mjs.map +1 -0
- package/dist/{chunk-SDR3TESK.mjs → chunk-HNBNPFJN.mjs} +2 -1
- package/dist/chunk-HNBNPFJN.mjs.map +1 -0
- package/dist/{chunk-SNLXFZB6.mjs → chunk-HYOVIP56.mjs} +2 -1
- package/dist/chunk-HYOVIP56.mjs.map +1 -0
- package/dist/{chunk-WKI6D7BR.mjs → chunk-IDDIXDNV.mjs} +3 -2
- package/dist/chunk-IDDIXDNV.mjs.map +1 -0
- package/dist/{chunk-5OAMKZDX.mjs → chunk-IIMW6QXV.mjs} +1 -0
- package/dist/chunk-IIMW6QXV.mjs.map +1 -0
- package/dist/{chunk-A6HNU42U.mjs → chunk-IZ5YU4K5.mjs} +3 -2
- package/dist/chunk-IZ5YU4K5.mjs.map +1 -0
- package/dist/chunk-JKC4NAFI.mjs +32 -0
- package/dist/chunk-JKC4NAFI.mjs.map +1 -0
- package/dist/{chunk-4M3GIRQZ.mjs → chunk-KJKJXZBT.mjs} +3 -2
- package/dist/chunk-KJKJXZBT.mjs.map +1 -0
- package/dist/{chunk-PTLX7PHW.mjs → chunk-KOO4VQ2N.mjs} +2 -1
- package/dist/chunk-KOO4VQ2N.mjs.map +1 -0
- package/dist/{chunk-BEXOLUXV.mjs → chunk-KTT3R42Z.mjs} +2 -1
- package/dist/chunk-KTT3R42Z.mjs.map +1 -0
- package/dist/{chunk-GP3JFLYZ.mjs → chunk-LK62DXGG.mjs} +6 -41
- package/dist/chunk-LK62DXGG.mjs.map +1 -0
- package/dist/{chunk-HIRUCFWO.mjs → chunk-MGUYIOP2.mjs} +1 -0
- package/dist/chunk-MGUYIOP2.mjs.map +1 -0
- package/dist/{chunk-5NWYVPBZ.mjs → chunk-O5MQCET3.mjs} +1 -0
- package/dist/chunk-O5MQCET3.mjs.map +1 -0
- package/dist/{chunk-FPVGZ4VX.mjs → chunk-OCIM3ZEV.mjs} +2 -1
- package/dist/chunk-OCIM3ZEV.mjs.map +1 -0
- package/dist/{chunk-OEOI74US.mjs → chunk-ODFEKAJO.mjs} +2 -1
- package/dist/chunk-ODFEKAJO.mjs.map +1 -0
- package/dist/{chunk-JTHBBJZW.mjs → chunk-ODJ2XHCM.mjs} +1 -0
- package/dist/chunk-ODJ2XHCM.mjs.map +1 -0
- package/dist/{chunk-YRAMCYSB.mjs → chunk-OMDDUYGE.mjs} +1 -0
- package/dist/chunk-OMDDUYGE.mjs.map +1 -0
- package/dist/{chunk-VO6ZLGZ7.mjs → chunk-ONBXZWHW.mjs} +6 -5
- package/dist/chunk-ONBXZWHW.mjs.map +1 -0
- package/dist/{chunk-JAHBNZTG.mjs → chunk-P4XTJEES.mjs} +3 -2
- package/dist/chunk-P4XTJEES.mjs.map +1 -0
- package/dist/{chunk-OX5NTX6M.mjs → chunk-P6A7LH6M.mjs} +3 -2
- package/dist/chunk-P6A7LH6M.mjs.map +1 -0
- package/dist/{chunk-73MDVYU2.mjs → chunk-PQ6WEGLM.mjs} +4 -3
- package/dist/chunk-PQ6WEGLM.mjs.map +1 -0
- package/dist/{chunk-KBR5N6UB.mjs → chunk-PRQWCNN3.mjs} +5 -4
- package/dist/chunk-PRQWCNN3.mjs.map +1 -0
- package/dist/{chunk-LCFKBPZC.mjs → chunk-QCWENWLF.mjs} +3 -2
- package/dist/chunk-QCWENWLF.mjs.map +1 -0
- package/dist/chunk-R4SQKVDQ.mjs +38 -0
- package/dist/chunk-R4SQKVDQ.mjs.map +1 -0
- package/dist/{chunk-6FKQU7QT.mjs → chunk-R6GRXGDW.mjs} +2 -1
- package/dist/chunk-R6GRXGDW.mjs.map +1 -0
- package/dist/{chunk-3EENBGOV.mjs → chunk-R7WBXNQA.mjs} +2 -1
- package/dist/chunk-R7WBXNQA.mjs.map +1 -0
- package/dist/{chunk-CCNB2ABL.mjs → chunk-RLK2ENCB.mjs} +3 -2
- package/dist/chunk-RLK2ENCB.mjs.map +1 -0
- package/dist/{chunk-OKWNTFU5.mjs → chunk-ROX4JPO3.mjs} +1 -0
- package/dist/chunk-ROX4JPO3.mjs.map +1 -0
- package/dist/{chunk-52YSOWMY.mjs → chunk-RT2VPRZN.mjs} +2 -1
- package/dist/chunk-RT2VPRZN.mjs.map +1 -0
- package/dist/{chunk-CFMCOWLY.mjs → chunk-SLOG3T7V.mjs} +5 -8
- package/dist/chunk-SLOG3T7V.mjs.map +1 -0
- package/dist/{chunk-OPW2JS5I.mjs → chunk-T42X5AZM.mjs} +1 -0
- package/dist/chunk-T42X5AZM.mjs.map +1 -0
- package/dist/{chunk-4RD7KCEO.mjs → chunk-T6YKS5OS.mjs} +2 -1
- package/dist/chunk-T6YKS5OS.mjs.map +1 -0
- package/dist/{chunk-3WKOOAQL.mjs → chunk-UVUIY2WB.mjs} +2 -1
- package/dist/chunk-UVUIY2WB.mjs.map +1 -0
- package/dist/{chunk-PHTGLF6Y.mjs → chunk-VMS2DOQD.mjs} +1 -0
- package/dist/chunk-VMS2DOQD.mjs.map +1 -0
- package/dist/{chunk-K2HIKZ7F.mjs → chunk-WQU3PHD4.mjs} +1 -0
- package/dist/chunk-WQU3PHD4.mjs.map +1 -0
- package/dist/{chunk-VIFCPFRJ.mjs → chunk-X2YMLUE4.mjs} +2 -1
- package/dist/chunk-X2YMLUE4.mjs.map +1 -0
- package/dist/{chunk-7SCOBRDZ.mjs → chunk-XGJBOGZJ.mjs} +1 -0
- package/dist/chunk-XGJBOGZJ.mjs.map +1 -0
- package/dist/{chunk-ERFGFY3Q.mjs → chunk-XVCDHQ7W.mjs} +1 -0
- package/dist/chunk-XVCDHQ7W.mjs.map +1 -0
- package/dist/{chunk-FJQCHTJZ.mjs → chunk-YDWBUHBY.mjs} +1 -0
- package/dist/chunk-YDWBUHBY.mjs.map +1 -0
- package/dist/{chunk-AUK3J77R.mjs → chunk-ZX7AH7XO.mjs} +2 -1
- package/dist/chunk-ZX7AH7XO.mjs.map +1 -0
- package/dist/form/checkbox/checkbox.d.mts +2 -10
- package/dist/form/checkbox/checkbox.d.ts +2 -10
- package/dist/form/checkbox/checkbox.js +1 -0
- package/dist/form/checkbox/checkbox.js.map +1 -0
- package/dist/form/checkbox/checkbox.mjs +3 -2
- package/dist/form/checkbox/checkbox.mjs.map +1 -0
- package/dist/form/checkbox/index.d.mts +2 -2
- package/dist/form/checkbox/index.d.ts +2 -2
- package/dist/form/checkbox/index.js +1 -0
- package/dist/form/checkbox/index.js.map +1 -0
- package/dist/form/checkbox/index.mjs +4 -3
- package/dist/form/checkbox/index.mjs.map +1 -0
- package/dist/form/error-message/error-message.d.mts +2 -11
- package/dist/form/error-message/error-message.d.ts +2 -11
- package/dist/form/error-message/error-message.js +1 -0
- package/dist/form/error-message/error-message.js.map +1 -0
- package/dist/form/error-message/error-message.mjs +3 -2
- package/dist/form/error-message/error-message.mjs.map +1 -0
- package/dist/form/error-message/index.d.mts +2 -3
- package/dist/form/error-message/index.d.ts +2 -3
- package/dist/form/error-message/index.js +1 -0
- package/dist/form/error-message/index.js.map +1 -0
- package/dist/form/error-message/index.mjs +4 -3
- package/dist/form/error-message/index.mjs.map +1 -0
- package/dist/form/fieldset/fieldset.d.mts +2 -19
- package/dist/form/fieldset/fieldset.d.ts +2 -19
- package/dist/form/fieldset/fieldset.js +1 -0
- package/dist/form/fieldset/fieldset.js.map +1 -0
- package/dist/form/fieldset/fieldset.mjs +5 -4
- package/dist/form/fieldset/fieldset.mjs.map +1 -0
- package/dist/form/fieldset/index.d.mts +2 -2
- package/dist/form/fieldset/index.d.ts +2 -2
- package/dist/form/fieldset/index.js +1 -0
- package/dist/form/fieldset/index.js.map +1 -0
- package/dist/form/fieldset/index.mjs +6 -5
- package/dist/form/fieldset/index.mjs.map +1 -0
- package/dist/form/index.d.mts +12 -8
- package/dist/form/index.d.ts +12 -8
- package/dist/form/index.js +1 -0
- package/dist/form/index.js.map +1 -0
- package/dist/form/index.mjs +19 -18
- package/dist/form/index.mjs.map +1 -0
- package/dist/form/input/index.d.mts +2 -3
- package/dist/form/input/index.d.ts +2 -3
- package/dist/form/input/index.js +1 -0
- package/dist/form/input/index.js.map +1 -0
- package/dist/form/input/index.mjs +8 -7
- package/dist/form/input/index.mjs.map +1 -0
- package/dist/form/input/input.d.mts +2 -8
- package/dist/form/input/input.d.ts +2 -8
- package/dist/form/input/input.js +1 -0
- package/dist/form/input/input.js.map +1 -0
- package/dist/form/input/input.mjs +7 -6
- package/dist/form/input/input.mjs.map +1 -0
- package/dist/form/input-group/index.d.mts +2 -2
- package/dist/form/input-group/index.d.ts +2 -2
- package/dist/form/input-group/index.js +1 -0
- package/dist/form/input-group/index.js.map +1 -0
- package/dist/form/input-group/index.mjs +6 -5
- package/dist/form/input-group/index.mjs.map +1 -0
- package/dist/form/input-group/input-group.d.mts +2 -18
- package/dist/form/input-group/input-group.d.ts +2 -18
- package/dist/form/input-group/input-group.js +1 -0
- package/dist/form/input-group/input-group.js.map +1 -0
- package/dist/form/input-group/input-group.mjs +5 -4
- package/dist/form/input-group/input-group.mjs.map +1 -0
- package/dist/form/radiobutton/index.d.mts +2 -2
- package/dist/form/radiobutton/index.d.ts +2 -2
- package/dist/form/radiobutton/index.js +1 -0
- package/dist/form/radiobutton/index.js.map +1 -0
- package/dist/form/radiobutton/index.mjs +4 -3
- package/dist/form/radiobutton/index.mjs.map +1 -0
- package/dist/form/radiobutton/radiobutton.d.mts +2 -10
- package/dist/form/radiobutton/radiobutton.d.ts +2 -10
- package/dist/form/radiobutton/radiobutton.js +1 -0
- package/dist/form/radiobutton/radiobutton.js.map +1 -0
- package/dist/form/radiobutton/radiobutton.mjs +3 -2
- package/dist/form/radiobutton/radiobutton.mjs.map +1 -0
- package/dist/form/select/index.d.mts +2 -3
- package/dist/form/select/index.d.ts +2 -3
- package/dist/form/select/index.js +1 -0
- package/dist/form/select/index.js.map +1 -0
- package/dist/form/select/index.mjs +8 -7
- package/dist/form/select/index.mjs.map +1 -0
- package/dist/form/select/select.d.mts +2 -8
- package/dist/form/select/select.d.ts +2 -8
- package/dist/form/select/select.js +1 -0
- package/dist/form/select/select.js.map +1 -0
- package/dist/form/select/select.mjs +7 -6
- package/dist/form/select/select.mjs.map +1 -0
- package/dist/form/textarea/index.d.mts +2 -3
- package/dist/form/textarea/index.d.ts +2 -3
- package/dist/form/textarea/index.js +1 -0
- package/dist/form/textarea/index.js.map +1 -0
- package/dist/form/textarea/index.mjs +8 -7
- package/dist/form/textarea/index.mjs.map +1 -0
- package/dist/form/textarea/textarea.d.mts +2 -8
- package/dist/form/textarea/textarea.d.ts +2 -8
- package/dist/form/textarea/textarea.js +1 -0
- package/dist/form/textarea/textarea.js.map +1 -0
- package/dist/form/textarea/textarea.mjs +7 -6
- package/dist/form/textarea/textarea.mjs.map +1 -0
- package/dist/index.d.mts +85 -40
- package/dist/index.d.ts +85 -40
- package/dist/index.js +52 -29075
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +69 -59
- package/dist/index.mjs.map +1 -0
- package/dist/layout/container/container.d.mts +2 -14
- package/dist/layout/container/container.d.ts +2 -14
- package/dist/layout/container/container.js +1 -0
- package/dist/layout/container/container.js.map +1 -0
- package/dist/layout/container/container.mjs +3 -2
- package/dist/layout/container/container.mjs.map +1 -0
- package/dist/layout/index.d.mts +2 -3
- package/dist/layout/index.d.ts +2 -3
- package/dist/layout/index.js +1 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/index.mjs +4 -3
- package/dist/layout/index.mjs.map +1 -0
- package/dist/link/index.d.mts +2 -3
- package/dist/link/index.d.ts +2 -3
- package/dist/link/index.js +1 -0
- package/dist/link/index.js.map +1 -0
- package/dist/link/index.mjs +4 -3
- package/dist/link/index.mjs.map +1 -0
- package/dist/link/link.d.mts +2 -18
- package/dist/link/link.d.ts +2 -18
- package/dist/link/link.js +1 -0
- package/dist/link/link.js.map +1 -0
- package/dist/link/link.mjs +3 -2
- package/dist/link/link.mjs.map +1 -0
- package/dist/list/description-list.d.mts +2 -48
- package/dist/list/description-list.d.ts +2 -48
- package/dist/list/description-list.js +1 -0
- package/dist/list/description-list.js.map +1 -0
- package/dist/list/description-list.mjs +3 -2
- package/dist/list/description-list.mjs.map +1 -0
- package/dist/list/index.d.mts +7 -5
- package/dist/list/index.d.ts +7 -5
- package/dist/list/index.js +1 -0
- package/dist/list/index.js.map +1 -0
- package/dist/list/index.mjs +6 -5
- package/dist/list/index.mjs.map +1 -0
- package/dist/list/link-list.d.mts +2 -13
- package/dist/list/link-list.d.ts +2 -13
- package/dist/list/link-list.js +1 -0
- package/dist/list/link-list.js.map +1 -0
- package/dist/list/link-list.mjs +4 -3
- package/dist/list/link-list.mjs.map +1 -0
- package/dist/list/list.d.mts +3 -25
- package/dist/list/list.d.ts +3 -25
- package/dist/list/list.js +1 -0
- package/dist/list/list.js.map +1 -0
- package/dist/list/list.mjs +3 -2
- package/dist/list/list.mjs.map +1 -0
- package/dist/message/index.d.mts +1 -16
- package/dist/message/index.d.ts +1 -16
- package/dist/message/index.js +1 -0
- package/dist/message/index.js.map +1 -0
- package/dist/message/index.mjs +5 -4
- package/dist/message/index.mjs.map +1 -0
- package/dist/message/message.d.mts +4 -18
- package/dist/message/message.d.ts +4 -18
- package/dist/message/message.js +1 -0
- package/dist/message/message.js.map +1 -0
- package/dist/message/message.mjs +4 -3
- package/dist/message/message.mjs.map +1 -0
- package/dist/modal/index.d.mts +6 -12
- package/dist/modal/index.d.ts +6 -12
- package/dist/modal/index.js +1 -0
- package/dist/modal/index.js.map +1 -0
- package/dist/modal/index.mjs +6 -5
- package/dist/modal/index.mjs.map +1 -0
- package/dist/modal/modal.d.mts +6 -31
- package/dist/modal/modal.d.ts +6 -31
- package/dist/modal/modal.js +1 -0
- package/dist/modal/modal.js.map +1 -0
- package/dist/modal/modal.mjs +5 -4
- package/dist/modal/modal.mjs.map +1 -0
- package/dist/navbar/icons.d.mts +2 -6
- package/dist/navbar/icons.d.ts +2 -6
- package/dist/navbar/icons.js +1 -0
- package/dist/navbar/icons.js.map +1 -0
- package/dist/navbar/icons.mjs +3 -2
- package/dist/navbar/icons.mjs.map +1 -0
- package/dist/navbar/index.d.mts +5 -18
- package/dist/navbar/index.d.ts +5 -18
- package/dist/navbar/index.js +14 -29108
- package/dist/navbar/index.js.map +1 -0
- package/dist/navbar/index.mjs +5 -5
- package/dist/navbar/index.mjs.map +1 -0
- package/dist/navbar/navbar-expandable-menu.d.mts +6 -39
- package/dist/navbar/navbar-expandable-menu.d.ts +6 -39
- package/dist/navbar/navbar-expandable-menu.js +14 -29108
- package/dist/navbar/navbar-expandable-menu.js.map +1 -0
- package/dist/navbar/navbar-expandable-menu.mjs +4 -4
- package/dist/navbar/navbar-expandable-menu.mjs.map +1 -0
- package/dist/navbar/navbar.d.mts +5 -25
- package/dist/navbar/navbar.d.ts +5 -25
- package/dist/navbar/navbar.js +1 -0
- package/dist/navbar/navbar.js.map +1 -0
- package/dist/navbar/navbar.mjs +3 -2
- package/dist/navbar/navbar.mjs.map +1 -0
- package/dist/show-more/auto-animate-height.d.mts +1 -30
- package/dist/show-more/auto-animate-height.d.ts +1 -30
- package/dist/show-more/auto-animate-height.js +14 -29077
- package/dist/show-more/auto-animate-height.js.map +1 -0
- package/dist/show-more/auto-animate-height.mjs +3 -3
- package/dist/show-more/auto-animate-height.mjs.map +1 -0
- package/dist/show-more/show-more.d.mts +1 -38
- package/dist/show-more/show-more.d.ts +1 -38
- package/dist/show-more/show-more.js +1 -0
- package/dist/show-more/show-more.js.map +1 -0
- package/dist/show-more/show-more.mjs +3 -2
- package/dist/show-more/show-more.mjs.map +1 -0
- package/dist/skeleton/skeleton.d.mts +2 -0
- package/dist/skeleton/skeleton.d.ts +2 -0
- package/dist/{chunk-FKR5F35B.mjs → skeleton/skeleton.js} +36 -27
- package/dist/skeleton/skeleton.js.map +1 -0
- package/dist/skeleton/skeleton.mjs +8 -0
- package/dist/skeleton/skeleton.mjs.map +1 -0
- package/dist/step-indicator/step-indicator.d.mts +1 -42
- package/dist/step-indicator/step-indicator.d.ts +1 -42
- package/dist/step-indicator/step-indicator.js +1 -0
- package/dist/step-indicator/step-indicator.js.map +1 -0
- package/dist/step-indicator/step-indicator.mjs +3 -2
- package/dist/step-indicator/step-indicator.mjs.map +1 -0
- package/dist/styled-html/styled-html.d.mts +2 -32
- package/dist/styled-html/styled-html.d.ts +2 -32
- package/dist/styled-html/styled-html.js +1 -0
- package/dist/styled-html/styled-html.js.map +1 -0
- package/dist/styled-html/styled-html.mjs +3 -2
- package/dist/styled-html/styled-html.mjs.map +1 -0
- package/dist/tabs/index.d.mts +10 -22
- package/dist/tabs/index.d.ts +10 -22
- package/dist/tabs/index.js +1 -0
- package/dist/tabs/index.js.map +1 -0
- package/dist/tabs/index.mjs +8 -7
- package/dist/tabs/index.mjs.map +1 -0
- package/dist/tabs/tabs-content.d.mts +4 -21
- package/dist/tabs/tabs-content.d.ts +4 -21
- package/dist/tabs/tabs-content.js +1 -0
- package/dist/tabs/tabs-content.js.map +1 -0
- package/dist/tabs/tabs-content.mjs +4 -3
- package/dist/tabs/tabs-content.mjs.map +1 -0
- package/dist/tabs/tabs-list.d.mts +4 -26
- package/dist/tabs/tabs-list.d.ts +4 -26
- package/dist/tabs/tabs-list.js +1 -0
- package/dist/tabs/tabs-list.js.map +1 -0
- package/dist/tabs/tabs-list.mjs +5 -4
- package/dist/tabs/tabs-list.mjs.map +1 -0
- package/dist/tabs/tabs.d.mts +2 -16
- package/dist/tabs/tabs.d.ts +2 -16
- package/dist/tabs/tabs.js +1 -0
- package/dist/tabs/tabs.js.map +1 -0
- package/dist/tabs/tabs.mjs +4 -3
- package/dist/tabs/tabs.mjs.map +1 -0
- package/dist/typography/index.d.mts +42 -69
- package/dist/typography/index.d.ts +42 -69
- package/dist/typography/index.js +1 -0
- package/dist/typography/index.js.map +1 -0
- package/dist/typography/index.mjs +3 -2
- package/dist/typography/index.mjs.map +1 -0
- package/dist/typography/typography.d.mts +2 -18
- package/dist/typography/typography.d.ts +2 -18
- package/dist/typography/typography.js +1 -0
- package/dist/typography/typography.js.map +1 -0
- package/dist/typography/typography.mjs +3 -2
- package/dist/typography/typography.mjs.map +1 -0
- package/dist/warning-banner/index.d.mts +2 -3
- package/dist/warning-banner/index.d.ts +2 -3
- package/dist/warning-banner/index.js +1 -0
- package/dist/warning-banner/index.js.map +1 -0
- package/dist/warning-banner/index.mjs +6 -5
- package/dist/warning-banner/index.mjs.map +1 -0
- package/dist/warning-banner/warning-banner.d.mts +2 -10
- package/dist/warning-banner/warning-banner.d.ts +2 -10
- package/dist/warning-banner/warning-banner.js +1 -0
- package/dist/warning-banner/warning-banner.js.map +1 -0
- package/dist/warning-banner/warning-banner.mjs +5 -4
- package/dist/warning-banner/warning-banner.mjs.map +1 -0
- package/package.json +9 -4
- package/dist/chunk-5OGUAHLN.mjs +0 -0
- package/dist/chunk-BIPWW7NV.mjs +0 -29059
- package/dist/utils-3jLhIyOS.d.mts +0 -17
- package/dist/utils-3jLhIyOS.d.ts +0 -17
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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';
|
|
@@ -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-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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';
|
package/dist/tabs/tabs-list.d.ts
CHANGED
|
@@ -1,26 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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';
|
package/dist/tabs/tabs-list.js
CHANGED
|
@@ -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"]}
|
package/dist/tabs/tabs-list.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tab,
|
|
3
3
|
TabsList
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
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":[]}
|
package/dist/tabs/tabs.d.mts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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';
|
package/dist/tabs/tabs.d.ts
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
@@ -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"]}
|
package/dist/tabs/tabs.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tabs
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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';
|
package/dist/typography/index.js
CHANGED
|
@@ -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-
|
|
3
|
+
} from "../chunk-5GRZROYQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__spreadValues
|
|
6
|
-
} from "../chunk-
|
|
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
|
-
|
|
2
|
-
|
|
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';
|