@postenbring/hedwig-react 0.0.50 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-LK62DXGG.mjs +169 -0
- 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-SLOG3T7V.mjs +88 -0
- 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-T6YKS5OS.mjs +65 -0
- 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-X2YMLUE4.mjs +30 -0
- 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 +23 -22
- 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 -37
- package/dist/index.d.ts +85 -37
- package/dist/index.js +202 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +96 -61
- 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 -4
- 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 -3
- 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 -0
- package/dist/show-more/auto-animate-height.d.ts +1 -0
- package/dist/show-more/auto-animate-height.js +135 -0
- package/dist/show-more/auto-animate-height.js.map +1 -0
- package/dist/show-more/auto-animate-height.mjs +8 -0
- package/dist/show-more/auto-animate-height.mjs.map +1 -0
- package/dist/show-more/show-more.d.mts +1 -0
- package/dist/show-more/show-more.d.ts +1 -0
- package/dist/{chunk-FKR5F35B.mjs → show-more/show-more.js} +34 -27
- package/dist/show-more/show-more.js.map +1 -0
- package/dist/show-more/show-more.mjs +8 -0
- 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/skeleton/skeleton.js +79 -0
- 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 -0
- package/dist/step-indicator/step-indicator.d.ts +1 -0
- package/dist/step-indicator/step-indicator.js +112 -0
- package/dist/step-indicator/step-indicator.js.map +1 -0
- package/dist/step-indicator/step-indicator.mjs +8 -0
- 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-JOKO7Y7O.mjs +0 -29253
- package/dist/utils-3jLhIyOS.d.mts +0 -17
- package/dist/utils-3jLhIyOS.d.ts +0 -17
package/dist/box/box.d.mts
CHANGED
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
variant?: "light-grey" | "lighter" | "white" | "warning";
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* If `true`, a close button will be shown.
|
|
9
|
-
* Use when you want to control the close button using the BoxCloseButton component.
|
|
10
|
-
*/
|
|
11
|
-
closeable?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Callback fired when the component requests to be closed.
|
|
14
|
-
* If not set, the component will be closed without any user interaction.
|
|
15
|
-
*
|
|
16
|
-
* If set, and the handler returns non-true value, the component will not be closed.
|
|
17
|
-
* Use this if you want to control the closing of the component, using the `closed` prop
|
|
18
|
-
*
|
|
19
|
-
* If set, and the handler returns the true, the component will be closed.
|
|
20
|
-
* Use this with `window.confirm()` to ask the user to confirm closing the component.
|
|
21
|
-
*/
|
|
22
|
-
onClose?: () => boolean | unknown;
|
|
23
|
-
/**
|
|
24
|
-
* If `true`, the box will be closed and hidden from view
|
|
25
|
-
*/
|
|
26
|
-
closed?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Props applied to the close button element.
|
|
29
|
-
*/
|
|
30
|
-
closeButtonProps?: BoxCloseButtonProps;
|
|
31
|
-
}
|
|
32
|
-
declare const Box: OverridableComponent<BoxProps, HTMLDivElement>;
|
|
33
|
-
type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, "children">;
|
|
34
|
-
declare const BoxCloseButton: react.ForwardRefExoticComponent<BoxCloseButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
35
|
-
|
|
36
|
-
export { Box, BoxCloseButton, type BoxCloseButtonProps, type BoxProps };
|
|
1
|
+
export { BoxProps_alias_1 as BoxProps } from '../_tsup-dts-rollup';
|
|
2
|
+
export { Box_alias_1 as Box } from '../_tsup-dts-rollup';
|
|
3
|
+
export { BoxCloseButtonProps_alias_1 as BoxCloseButtonProps } from '../_tsup-dts-rollup';
|
|
4
|
+
export { BoxCloseButton_alias_1 as BoxCloseButton } from '../_tsup-dts-rollup';
|
package/dist/box/box.d.ts
CHANGED
|
@@ -1,36 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
variant?: "light-grey" | "lighter" | "white" | "warning";
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* If `true`, a close button will be shown.
|
|
9
|
-
* Use when you want to control the close button using the BoxCloseButton component.
|
|
10
|
-
*/
|
|
11
|
-
closeable?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Callback fired when the component requests to be closed.
|
|
14
|
-
* If not set, the component will be closed without any user interaction.
|
|
15
|
-
*
|
|
16
|
-
* If set, and the handler returns non-true value, the component will not be closed.
|
|
17
|
-
* Use this if you want to control the closing of the component, using the `closed` prop
|
|
18
|
-
*
|
|
19
|
-
* If set, and the handler returns the true, the component will be closed.
|
|
20
|
-
* Use this with `window.confirm()` to ask the user to confirm closing the component.
|
|
21
|
-
*/
|
|
22
|
-
onClose?: () => boolean | unknown;
|
|
23
|
-
/**
|
|
24
|
-
* If `true`, the box will be closed and hidden from view
|
|
25
|
-
*/
|
|
26
|
-
closed?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Props applied to the close button element.
|
|
29
|
-
*/
|
|
30
|
-
closeButtonProps?: BoxCloseButtonProps;
|
|
31
|
-
}
|
|
32
|
-
declare const Box: OverridableComponent<BoxProps, HTMLDivElement>;
|
|
33
|
-
type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, "children">;
|
|
34
|
-
declare const BoxCloseButton: react.ForwardRefExoticComponent<BoxCloseButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
35
|
-
|
|
36
|
-
export { Box, BoxCloseButton, type BoxCloseButtonProps, type BoxProps };
|
|
1
|
+
export { BoxProps_alias_1 as BoxProps } from '../_tsup-dts-rollup';
|
|
2
|
+
export { Box_alias_1 as Box } from '../_tsup-dts-rollup';
|
|
3
|
+
export { BoxCloseButtonProps_alias_1 as BoxCloseButtonProps } from '../_tsup-dts-rollup';
|
|
4
|
+
export { BoxCloseButton_alias_1 as BoxCloseButton } from '../_tsup-dts-rollup';
|
package/dist/box/box.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/box/box.tsx"],"sourcesContent":["import { forwardRef, useCallback, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n variant?: \"light-grey\" | \"lighter\" | \"white\" | \"warning\";\n children?: React.ReactNode;\n\n /**\n * If `true`, a close button will be shown.\n * Use when you want to control the close button using the BoxCloseButton component.\n */\n closeable?: boolean;\n\n /**\n * Callback fired when the component requests to be closed.\n * If not set, the component will be closed without any user interaction.\n *\n * If set, and the handler returns non-true value, the component will not be closed.\n * Use this if you want to control the closing of the component, using the `closed` prop\n *\n * If set, and the handler returns the true, the component will be closed.\n * Use this with `window.confirm()` to ask the user to confirm closing the component.\n */\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- It's fine, I want to have the boolean in the type\n onClose?: () => boolean | unknown;\n\n /**\n * If `true`, the box will be closed and hidden from view\n */\n closed?: boolean;\n\n /**\n * Props applied to the close button element.\n */\n closeButtonProps?: BoxCloseButtonProps;\n}\n\nexport const Box: OverridableComponent<BoxProps, HTMLDivElement> = forwardRef(\n (\n {\n as: Component = \"div\",\n variant,\n closeable = false,\n onClose: onCloseProp,\n closed: closedProp,\n closeButtonProps,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [closedState, setClosedState] = useState(false);\n const onClose = useCallback(() => {\n if (onCloseProp) {\n const result = onCloseProp();\n if (result === true) {\n setClosedState(true);\n }\n } else {\n setClosedState(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- I know better\n }, []);\n const closed = closedProp ?? closedState;\n\n return (\n <Component\n className={clsx(\n \"hds-box\",\n variant && `hds-box--${variant}`,\n { \"hds-box--closed\": closed },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {closeable ? <BoxCloseButton onClick={onClose} {...closeButtonProps} /> : null}\n {children}\n </Component>\n );\n },\n);\nBox.displayName = \"Box\";\n\nexport type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, \"children\">;\nexport const BoxCloseButton = forwardRef<HTMLButtonElement, BoxCloseButtonProps>(\n ({ className, ...rest }, ref) => {\n return (\n <button\n className={clsx(\"hds-box__close-button\", className as undefined)}\n ref={ref}\n type=\"button\"\n {...rest}\n />\n );\n },\n);\nBoxCloseButton.displayName = \"Box.CloseButton\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkD;AAClD,6BAAqB;AAmEf;AA9BC,IAAM,UAAsD;AAAA,EACjE,CACE,IAWA,QACG;AAZH,iBACE;AAAA,UAAI,YAAY;AAAA,MAChB;AAAA,MACA,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,IAhDN,IAwCI,IASK,iBATL,IASK;AAAA,MARH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAKF,UAAM,CAAC,aAAa,cAAc,QAAI,uBAAS,KAAK;AACpD,UAAM,cAAU,0BAAY,MAAM;AAChC,UAAI,aAAa;AACf,cAAM,SAAS,YAAY;AAC3B,YAAI,WAAW,MAAM;AACnB,yBAAe,IAAI;AAAA,QACrB;AAAA,MACF,OAAO;AACL,uBAAe,IAAI;AAAA,MACrB;AAAA,IAEF,GAAG,CAAC,CAAC;AACL,UAAM,SAAS,kCAAc;AAE7B,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,WAAW,YAAY,OAAO;AAAA,UAC9B,EAAE,mBAAmB,OAAO;AAAA,UAC5B;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA,sBAAY,4CAAC,iCAAe,SAAS,WAAa,iBAAkB,IAAK;AAAA,UACzE;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,IAAI,cAAc;AAGX,IAAM,qBAAiB;AAAA,EAC5B,CAAC,IAAwB,QAAQ;AAAhC,iBAAE,YAxFL,IAwFG,IAAgB,iBAAhB,IAAgB,CAAd;AACD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,6BAAK,yBAAyB,SAAsB;AAAA,QAC/D;AAAA,QACA,MAAK;AAAA,SACD;AAAA,IACN;AAAA,EAEJ;AACF;AACA,eAAe,cAAc;","names":[]}
|
package/dist/box/box.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/box/index.d.mts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { BoxCloseButtonProps } from '
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const BoxComponent: {
|
|
7
|
-
(props: BoxProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
|
|
8
|
-
<As extends react.ElementType>(props: {
|
|
9
|
-
as?: As | undefined;
|
|
10
|
-
} & BoxProps & Omit<react.ComponentPropsWithRef<As>, keyof BoxProps>): react.ReactNode;
|
|
11
|
-
} & Pick<react.FC, "displayName"> & {
|
|
12
|
-
CloseButton: typeof BoxCloseButton;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { BoxComponent as Box, BoxCloseButton, BoxProps };
|
|
1
|
+
export { Box_alias_2 as Box } from '../_tsup-dts-rollup';
|
|
2
|
+
export { BoxProps_alias_2 as BoxProps } from '../_tsup-dts-rollup';
|
|
3
|
+
export { BoxCloseButtonProps_alias_2 as BoxCloseButtonProps } from '../_tsup-dts-rollup';
|
|
4
|
+
export { BoxCloseButton_alias_2 as BoxCloseButton } from '../_tsup-dts-rollup';
|
package/dist/box/index.d.ts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { BoxCloseButtonProps } from '
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const BoxComponent: {
|
|
7
|
-
(props: BoxProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
|
|
8
|
-
<As extends react.ElementType>(props: {
|
|
9
|
-
as?: As | undefined;
|
|
10
|
-
} & BoxProps & Omit<react.ComponentPropsWithRef<As>, keyof BoxProps>): react.ReactNode;
|
|
11
|
-
} & Pick<react.FC, "displayName"> & {
|
|
12
|
-
CloseButton: typeof BoxCloseButton;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { BoxComponent as Box, BoxCloseButton, BoxProps };
|
|
1
|
+
export { Box_alias_2 as Box } from '../_tsup-dts-rollup';
|
|
2
|
+
export { BoxProps_alias_2 as BoxProps } from '../_tsup-dts-rollup';
|
|
3
|
+
export { BoxCloseButtonProps_alias_2 as BoxCloseButtonProps } from '../_tsup-dts-rollup';
|
|
4
|
+
export { BoxCloseButton_alias_2 as BoxCloseButton } from '../_tsup-dts-rollup';
|
package/dist/box/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/box/index.tsx","../../src/box/box.tsx"],"sourcesContent":["import \"@postenbring/hedwig-css/dist/fonts.css\";\nimport \"@postenbring/hedwig-css/dist/tokens.css\";\nimport \"@postenbring/hedwig-css/dist/body.css\";\n\nimport \"@postenbring/hedwig-css/dist/box.css\";\n\nimport { Box, BoxCloseButton } from \"./box\";\n\nconst BoxComponent = Box as typeof Box & {\n CloseButton: typeof BoxCloseButton;\n};\nBoxComponent.CloseButton = BoxCloseButton;\n\nexport { BoxComponent as Box };\n\nexport type * from \"./box\";\n","import { forwardRef, useCallback, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {\n variant?: \"light-grey\" | \"lighter\" | \"white\" | \"warning\";\n children?: React.ReactNode;\n\n /**\n * If `true`, a close button will be shown.\n * Use when you want to control the close button using the BoxCloseButton component.\n */\n closeable?: boolean;\n\n /**\n * Callback fired when the component requests to be closed.\n * If not set, the component will be closed without any user interaction.\n *\n * If set, and the handler returns non-true value, the component will not be closed.\n * Use this if you want to control the closing of the component, using the `closed` prop\n *\n * If set, and the handler returns the true, the component will be closed.\n * Use this with `window.confirm()` to ask the user to confirm closing the component.\n */\n // eslint-disable-next-line @typescript-eslint/no-redundant-type-constituents -- It's fine, I want to have the boolean in the type\n onClose?: () => boolean | unknown;\n\n /**\n * If `true`, the box will be closed and hidden from view\n */\n closed?: boolean;\n\n /**\n * Props applied to the close button element.\n */\n closeButtonProps?: BoxCloseButtonProps;\n}\n\nexport const Box: OverridableComponent<BoxProps, HTMLDivElement> = forwardRef(\n (\n {\n as: Component = \"div\",\n variant,\n closeable = false,\n onClose: onCloseProp,\n closed: closedProp,\n closeButtonProps,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [closedState, setClosedState] = useState(false);\n const onClose = useCallback(() => {\n if (onCloseProp) {\n const result = onCloseProp();\n if (result === true) {\n setClosedState(true);\n }\n } else {\n setClosedState(true);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- I know better\n }, []);\n const closed = closedProp ?? closedState;\n\n return (\n <Component\n className={clsx(\n \"hds-box\",\n variant && `hds-box--${variant}`,\n { \"hds-box--closed\": closed },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {closeable ? <BoxCloseButton onClick={onClose} {...closeButtonProps} /> : null}\n {children}\n </Component>\n );\n },\n);\nBox.displayName = \"Box\";\n\nexport type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, \"children\">;\nexport const BoxCloseButton = forwardRef<HTMLButtonElement, BoxCloseButtonProps>(\n ({ className, ...rest }, ref) => {\n return (\n <button\n className={clsx(\"hds-box__close-button\", className as undefined)}\n ref={ref}\n type=\"button\"\n {...rest}\n />\n );\n },\n);\nBoxCloseButton.displayName = \"Box.CloseButton\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAO;AACP,oBAAO;AACP,kBAAO;AAEP,iBAAO;;;ACJP,mBAAkD;AAClD,6BAAqB;AAmEf;AA9BC,IAAM,UAAsD;AAAA,EACjE,CACE,IAWA,QACG;AAZH,iBACE;AAAA,UAAI,YAAY;AAAA,MAChB;AAAA,MACA,YAAY;AAAA,MACZ,SAAS;AAAA,MACT,QAAQ;AAAA,MACR;AAAA,MACA;AAAA,MACA;AAAA,IAhDN,IAwCI,IASK,iBATL,IASK;AAAA,MARH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAKF,UAAM,CAAC,aAAa,cAAc,QAAI,uBAAS,KAAK;AACpD,UAAM,cAAU,0BAAY,MAAM;AAChC,UAAI,aAAa;AACf,cAAM,SAAS,YAAY;AAC3B,YAAI,WAAW,MAAM;AACnB,yBAAe,IAAI;AAAA,QACrB;AAAA,MACF,OAAO;AACL,uBAAe,IAAI;AAAA,MACrB;AAAA,IAEF,GAAG,CAAC,CAAC;AACL,UAAM,SAAS,kCAAc;AAE7B,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,WAAW,YAAY,OAAO;AAAA,UAC9B,EAAE,mBAAmB,OAAO;AAAA,UAC5B;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA,sBAAY,4CAAC,iCAAe,SAAS,WAAa,iBAAkB,IAAK;AAAA,UACzE;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,IAAI,cAAc;AAGX,IAAM,qBAAiB;AAAA,EAC5B,CAAC,IAAwB,QAAQ;AAAhC,iBAAE,YAxFL,IAwFG,IAAgB,iBAAhB,IAAgB,CAAd;AACD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,6BAAK,yBAAyB,SAAsB;AAAA,QAC/D;AAAA,QACA,MAAK;AAAA,SACD;AAAA,IACN;AAAA,EAEJ;AACF;AACA,eAAe,cAAc;;;AD3F7B,IAAM,eAAe;AAGrB,aAAa,cAAc;","names":[]}
|
package/dist/box/index.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BoxComponent
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-FFA6SBK6.mjs";
|
|
4
|
+
import "../chunk-R7WBXNQA.mjs";
|
|
5
|
+
import "../chunk-R4SQKVDQ.mjs";
|
|
6
6
|
export {
|
|
7
7
|
BoxComponent as Box
|
|
8
8
|
};
|
|
9
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface BreadcrumbsProps extends HTMLAttributes<HTMLOListElement> {
|
|
5
|
-
children: ReactElement<HTMLLIElement> | ReactElement<HTMLLIElement>[];
|
|
6
|
-
/**
|
|
7
|
-
* Props passed to the `ol` html element
|
|
8
|
-
*/
|
|
9
|
-
olProps?: HTMLAttributes<HTMLElement>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A breadcrumbs navigation menu
|
|
13
|
-
*
|
|
14
|
-
* **Usage**
|
|
15
|
-
*
|
|
16
|
-
* ```tsx
|
|
17
|
-
* <Breadcrumbs data-testid="breadcrumbs">
|
|
18
|
-
* <li><Link href="../">Previous page</Link></li>
|
|
19
|
-
* <li>Current page</li>
|
|
20
|
-
* </Breadcrumbs>
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* Outputs this html structure
|
|
24
|
-
*
|
|
25
|
-
* ```html
|
|
26
|
-
* <nav data-testid="breadcrumbs">
|
|
27
|
-
* <ol>
|
|
28
|
-
* <li><a href="../">Previous page</a></li>
|
|
29
|
-
* <li>Current page</li>
|
|
30
|
-
* </ol>
|
|
31
|
-
* </nav>
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
declare function Breadcrumbs({ olProps, children, ...rest }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
|
|
35
|
-
declare namespace Breadcrumbs {
|
|
36
|
-
var displayName: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { Breadcrumbs, type BreadcrumbsProps };
|
|
1
|
+
export { Breadcrumbs_alias_1 as Breadcrumbs } from '../_tsup-dts-rollup';
|
|
2
|
+
export { BreadcrumbsProps_alias_1 as BreadcrumbsProps } from '../_tsup-dts-rollup';
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
interface BreadcrumbsProps extends HTMLAttributes<HTMLOListElement> {
|
|
5
|
-
children: ReactElement<HTMLLIElement> | ReactElement<HTMLLIElement>[];
|
|
6
|
-
/**
|
|
7
|
-
* Props passed to the `ol` html element
|
|
8
|
-
*/
|
|
9
|
-
olProps?: HTMLAttributes<HTMLElement>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* A breadcrumbs navigation menu
|
|
13
|
-
*
|
|
14
|
-
* **Usage**
|
|
15
|
-
*
|
|
16
|
-
* ```tsx
|
|
17
|
-
* <Breadcrumbs data-testid="breadcrumbs">
|
|
18
|
-
* <li><Link href="../">Previous page</Link></li>
|
|
19
|
-
* <li>Current page</li>
|
|
20
|
-
* </Breadcrumbs>
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* Outputs this html structure
|
|
24
|
-
*
|
|
25
|
-
* ```html
|
|
26
|
-
* <nav data-testid="breadcrumbs">
|
|
27
|
-
* <ol>
|
|
28
|
-
* <li><a href="../">Previous page</a></li>
|
|
29
|
-
* <li>Current page</li>
|
|
30
|
-
* </ol>
|
|
31
|
-
* </nav>
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
declare function Breadcrumbs({ olProps, children, ...rest }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
|
|
35
|
-
declare namespace Breadcrumbs {
|
|
36
|
-
var displayName: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { Breadcrumbs, type BreadcrumbsProps };
|
|
1
|
+
export { Breadcrumbs_alias_1 as Breadcrumbs } from '../_tsup-dts-rollup';
|
|
2
|
+
export { BreadcrumbsProps_alias_1 as BreadcrumbsProps } from '../_tsup-dts-rollup';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/breadcrumb/breadcrumb.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactElement } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\n\nexport interface BreadcrumbsProps extends HTMLAttributes<HTMLOListElement> {\n children: ReactElement<HTMLLIElement> | ReactElement<HTMLLIElement>[];\n\n /**\n * Props passed to the `ol` html element\n */\n olProps?: HTMLAttributes<HTMLElement>;\n}\n\n/**\n * A breadcrumbs navigation menu\n *\n * **Usage**\n *\n * ```tsx\n * <Breadcrumbs data-testid=\"breadcrumbs\">\n * <li><Link href=\"../\">Previous page</Link></li>\n * <li>Current page</li>\n * </Breadcrumbs>\n * ```\n *\n * Outputs this html structure\n *\n * ```html\n * <nav data-testid=\"breadcrumbs\">\n * <ol>\n * <li><a href=\"../\">Previous page</a></li>\n * <li>Current page</li>\n * </ol>\n * </nav>\n * ```\n */\nexport function Breadcrumbs({ olProps, children, ...rest }: BreadcrumbsProps) {\n return (\n <nav {...rest}>\n <ol {...olProps} className={clsx(\"hds-breadcrumbs\", olProps?.className as undefined)}>\n {children}\n </ol>\n </nav>\n );\n}\n\nBreadcrumbs.displayName = \"Breadcrumbs\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,6BAAqB;AAqCf;AAHC,SAAS,YAAY,IAAkD;AAAlD,eAAE,WAAS,SAnCvC,IAmC4B,IAAwB,iBAAxB,IAAwB,CAAtB,WAAS;AACrC,SACE,4CAAC,wCAAQ,OAAR,EACC,sDAAC,uCAAO,UAAP,EAAgB,eAAW,6BAAK,mBAAmB,mCAAS,SAAsB,GAChF,WACH,IACF;AAEJ;AAEA,YAAY,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { Breadcrumbs
|
|
2
|
-
|
|
3
|
-
import 'react';
|
|
1
|
+
export { Breadcrumbs_alias_2 as Breadcrumbs } from '../_tsup-dts-rollup';
|
|
2
|
+
export { BreadcrumbsProps_alias_2 as BreadcrumbsProps } from '../_tsup-dts-rollup';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { Breadcrumbs
|
|
2
|
-
|
|
3
|
-
import 'react';
|
|
1
|
+
export { Breadcrumbs_alias_2 as Breadcrumbs } from '../_tsup-dts-rollup';
|
|
2
|
+
export { BreadcrumbsProps_alias_2 as BreadcrumbsProps } from '../_tsup-dts-rollup';
|
package/dist/breadcrumb/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/breadcrumb/index.tsx","../../src/breadcrumb/breadcrumb.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/breadcrumb.css\";\n\nexport { Breadcrumbs } from \"./breadcrumb\";\n\nexport type * from \"./breadcrumb\";\n","import type { HTMLAttributes, ReactElement } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\n\nexport interface BreadcrumbsProps extends HTMLAttributes<HTMLOListElement> {\n children: ReactElement<HTMLLIElement> | ReactElement<HTMLLIElement>[];\n\n /**\n * Props passed to the `ol` html element\n */\n olProps?: HTMLAttributes<HTMLElement>;\n}\n\n/**\n * A breadcrumbs navigation menu\n *\n * **Usage**\n *\n * ```tsx\n * <Breadcrumbs data-testid=\"breadcrumbs\">\n * <li><Link href=\"../\">Previous page</Link></li>\n * <li>Current page</li>\n * </Breadcrumbs>\n * ```\n *\n * Outputs this html structure\n *\n * ```html\n * <nav data-testid=\"breadcrumbs\">\n * <ol>\n * <li><a href=\"../\">Previous page</a></li>\n * <li>Current page</li>\n * </ol>\n * </nav>\n * ```\n */\nexport function Breadcrumbs({ olProps, children, ...rest }: BreadcrumbsProps) {\n return (\n <nav {...rest}>\n <ol {...olProps} className={clsx(\"hds-breadcrumbs\", olProps?.className as undefined)}>\n {children}\n </ol>\n </nav>\n );\n}\n\nBreadcrumbs.displayName = \"Breadcrumbs\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAO;AACP,oBAAO;AACP,kBAAO;AAEP,wBAAO;;;ACHP,6BAAqB;AAqCf;AAHC,SAAS,YAAY,IAAkD;AAAlD,eAAE,WAAS,SAnCvC,IAmC4B,IAAwB,iBAAxB,IAAwB,CAAtB,WAAS;AACrC,SACE,4CAAC,wCAAQ,OAAR,EACC,sDAAC,uCAAO,UAAP,EAAgB,eAAW,6BAAK,mBAAmB,mCAAS,SAAsB,GAChF,WACH,IACF;AAEJ;AAEA,YAAY,cAAc;","names":[]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-OMDDUYGE.mjs";
|
|
2
2
|
import {
|
|
3
3
|
Breadcrumbs
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-OCIM3ZEV.mjs";
|
|
5
|
+
import "../chunk-R4SQKVDQ.mjs";
|
|
6
6
|
export {
|
|
7
7
|
Breadcrumbs
|
|
8
8
|
};
|
|
9
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/button/button.d.mts
CHANGED
|
@@ -1,44 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The height, font size and padding of the button
|
|
7
|
-
*/
|
|
8
|
-
size?: "small" | "medium" | "large";
|
|
9
|
-
/**
|
|
10
|
-
* Make the button use 100% width available.
|
|
11
|
-
* Using the "mobile" it only stretch to full width on smaller screens
|
|
12
|
-
*/
|
|
13
|
-
fullWidth?: boolean | "mobile";
|
|
14
|
-
/**
|
|
15
|
-
* Use an icon inside the button
|
|
16
|
-
*/
|
|
17
|
-
icon?: React.ReactNode;
|
|
18
|
-
children?: React.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
type ButtonProps = ButtonPropsInternal & ({
|
|
21
|
-
/**
|
|
22
|
-
* The background fill of the button
|
|
23
|
-
*/
|
|
24
|
-
fill?: "contained" | "outline";
|
|
25
|
-
} | {
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated use `fill='outline'` instead
|
|
28
|
-
*/
|
|
29
|
-
fill?: "outlined";
|
|
30
|
-
});
|
|
31
|
-
declare const BaseButton: OverridableComponent<ButtonProps & {
|
|
32
|
-
variant: "primary" | "secondary";
|
|
33
|
-
}, HTMLButtonElement>;
|
|
34
|
-
/**
|
|
35
|
-
* ## TODO
|
|
36
|
-
*
|
|
37
|
-
* - [x] Handle links that looks like buttons
|
|
38
|
-
* - [ ] Revisit how to handle outline
|
|
39
|
-
* - [ ] Figure out outline-white
|
|
40
|
-
*/
|
|
41
|
-
declare const PrimaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
42
|
-
declare const SecondaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
43
|
-
|
|
44
|
-
export { BaseButton, type ButtonProps, PrimaryButton, SecondaryButton };
|
|
1
|
+
export { ButtonProps_alias_1 as ButtonProps } from '../_tsup-dts-rollup';
|
|
2
|
+
export { BaseButton_alias_1 as BaseButton } from '../_tsup-dts-rollup';
|
|
3
|
+
export { PrimaryButton_alias_1 as PrimaryButton } from '../_tsup-dts-rollup';
|
|
4
|
+
export { SecondaryButton_alias_1 as SecondaryButton } from '../_tsup-dts-rollup';
|
package/dist/button/button.d.ts
CHANGED
|
@@ -1,44 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* The height, font size and padding of the button
|
|
7
|
-
*/
|
|
8
|
-
size?: "small" | "medium" | "large";
|
|
9
|
-
/**
|
|
10
|
-
* Make the button use 100% width available.
|
|
11
|
-
* Using the "mobile" it only stretch to full width on smaller screens
|
|
12
|
-
*/
|
|
13
|
-
fullWidth?: boolean | "mobile";
|
|
14
|
-
/**
|
|
15
|
-
* Use an icon inside the button
|
|
16
|
-
*/
|
|
17
|
-
icon?: React.ReactNode;
|
|
18
|
-
children?: React.ReactNode;
|
|
19
|
-
}
|
|
20
|
-
type ButtonProps = ButtonPropsInternal & ({
|
|
21
|
-
/**
|
|
22
|
-
* The background fill of the button
|
|
23
|
-
*/
|
|
24
|
-
fill?: "contained" | "outline";
|
|
25
|
-
} | {
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated use `fill='outline'` instead
|
|
28
|
-
*/
|
|
29
|
-
fill?: "outlined";
|
|
30
|
-
});
|
|
31
|
-
declare const BaseButton: OverridableComponent<ButtonProps & {
|
|
32
|
-
variant: "primary" | "secondary";
|
|
33
|
-
}, HTMLButtonElement>;
|
|
34
|
-
/**
|
|
35
|
-
* ## TODO
|
|
36
|
-
*
|
|
37
|
-
* - [x] Handle links that looks like buttons
|
|
38
|
-
* - [ ] Revisit how to handle outline
|
|
39
|
-
* - [ ] Figure out outline-white
|
|
40
|
-
*/
|
|
41
|
-
declare const PrimaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
42
|
-
declare const SecondaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
43
|
-
|
|
44
|
-
export { BaseButton, type ButtonProps, PrimaryButton, SecondaryButton };
|
|
1
|
+
export { ButtonProps_alias_1 as ButtonProps } from '../_tsup-dts-rollup';
|
|
2
|
+
export { BaseButton_alias_1 as BaseButton } from '../_tsup-dts-rollup';
|
|
3
|
+
export { PrimaryButton_alias_1 as PrimaryButton } from '../_tsup-dts-rollup';
|
|
4
|
+
export { SecondaryButton_alias_1 as SecondaryButton } from '../_tsup-dts-rollup';
|
package/dist/button/button.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/button/button.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\ninterface ButtonPropsInternal extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /**\n * The height, font size and padding of the button\n */\n size?: \"small\" | \"medium\" | \"large\";\n\n /**\n * Make the button use 100% width available.\n * Using the \"mobile\" it only stretch to full width on smaller screens\n */\n fullWidth?: boolean | \"mobile\";\n\n /**\n * Use an icon inside the button\n */\n icon?: React.ReactNode;\n\n children?: React.ReactNode;\n}\n\nexport type ButtonProps = ButtonPropsInternal &\n (\n | {\n /**\n * The background fill of the button\n */\n fill?: \"contained\" | \"outline\";\n }\n | {\n /**\n * @deprecated use `fill='outline'` instead\n */\n fill?: \"outlined\";\n }\n );\n\nexport const BaseButton: OverridableComponent<\n ButtonProps & { variant: \"primary\" | \"secondary\" },\n HTMLButtonElement\n> = forwardRef(\n (\n {\n as: Component = \"button\",\n children,\n variant,\n size = \"medium\",\n fullWidth = false,\n fill = \"contained\",\n icon,\n className,\n ...rest\n },\n ref,\n ) => {\n // TODO: Remove deprecated fill value name at some point\n // Deprecated at 10. march 2024\n if (fill === \"outlined\") {\n // eslint-disable-next-line no-console -- Deprecation warning\n console.warn(\"The `fill` value `outlined` is deprecated, use `fill='outline'` instead\");\n }\n return (\n <Component\n className={clsx(\n \"hds-button\",\n `hds-button--${size}`,\n {\n [`hds-button--${variant}`]: fill === \"contained\",\n [`hds-button--outline-${variant}`]: fill === \"outline\" || fill === \"outlined\",\n \"hds-button--full\": fullWidth,\n \"hds-button--mobile-full\": fullWidth === \"mobile\",\n \"hds-button--icon-only\": icon && !children,\n },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {icon && !children ? icon : null}\n {children}\n </Component>\n );\n },\n);\nBaseButton.displayName = \"BaseButton\";\n\n/**\n * ## TODO\n *\n * - [x] Handle links that looks like buttons\n * - [ ] Revisit how to handle outline\n * - [ ] Figure out outline-white\n */\n\nexport const PrimaryButton: OverridableComponent<ButtonProps, HTMLButtonElement> = forwardRef(\n (props, ref) => {\n return <BaseButton {...props} ref={ref} variant=\"primary\" />;\n },\n);\n\nPrimaryButton.displayName = \"PrimaryButton\";\n\nexport const SecondaryButton: OverridableComponent<ButtonProps, HTMLButtonElement> = forwardRef(\n (props, ref) => {\n return <BaseButton {...props} ref={ref} variant=\"secondary\" />;\n },\n);\n\nSecondaryButton.displayName = \"SecondaryButton\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B;AAC3B,6BAAqB;AAgEf;AAzBC,IAAM,iBAGT;AAAA,EACF,CACE,IAWA,QACG;AAZH,iBACE;AAAA,UAAI,YAAY;AAAA,MAChB;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,OAAO;AAAA,MACP;AAAA,MACA;AAAA,IArDN,IA6CI,IASK,iBATL,IASK;AAAA,MARH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAOF,QAAI,SAAS,YAAY;AAEvB,cAAQ,KAAK,yEAAyE;AAAA,IACxF;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,eAAe,IAAI;AAAA,UACnB;AAAA,YACE,CAAC,eAAe,OAAO,EAAE,GAAG,SAAS;AAAA,YACrC,CAAC,uBAAuB,OAAO,EAAE,GAAG,SAAS,aAAa,SAAS;AAAA,YACnE,oBAAoB;AAAA,YACpB,2BAA2B,cAAc;AAAA,YACzC,yBAAyB,QAAQ,CAAC;AAAA,UACpC;AAAA,UACA;AAAA,QACF;AAAA,QACA;AAAA,SACI,OAdL;AAAA,QAgBE;AAAA,kBAAQ,CAAC,WAAW,OAAO;AAAA,UAC3B;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,WAAW,cAAc;AAUlB,IAAM,oBAAsE;AAAA,EACjF,CAAC,OAAO,QAAQ;AACd,WAAO,4CAAC,6CAAe,QAAf,EAAsB,KAAU,SAAQ,YAAU;AAAA,EAC5D;AACF;AAEA,cAAc,cAAc;AAErB,IAAM,sBAAwE;AAAA,EACnF,CAAC,OAAO,QAAQ;AACd,WAAO,4CAAC,6CAAe,QAAf,EAAsB,KAAU,SAAQ,cAAY;AAAA,EAC9D;AACF;AAEA,gBAAgB,cAAc;","names":[]}
|
package/dist/button/button.mjs
CHANGED
|
@@ -2,10 +2,11 @@ import {
|
|
|
2
2
|
BaseButton,
|
|
3
3
|
PrimaryButton,
|
|
4
4
|
SecondaryButton
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-KOO4VQ2N.mjs";
|
|
6
|
+
import "../chunk-R4SQKVDQ.mjs";
|
|
7
7
|
export {
|
|
8
8
|
BaseButton,
|
|
9
9
|
PrimaryButton,
|
|
10
10
|
SecondaryButton
|
|
11
11
|
};
|
|
12
|
+
//# sourceMappingURL=button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/button/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { PrimaryButton_alias_2 as PrimaryButton } from '../_tsup-dts-rollup';
|
|
2
|
+
export { SecondaryButton_alias_2 as SecondaryButton } from '../_tsup-dts-rollup';
|
|
3
|
+
export { ButtonProps_alias_2 as ButtonProps } from '../_tsup-dts-rollup';
|
|
4
|
+
export { BaseButton_alias_2 as BaseButton } from '../_tsup-dts-rollup';
|
package/dist/button/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { PrimaryButton_alias_2 as PrimaryButton } from '../_tsup-dts-rollup';
|
|
2
|
+
export { SecondaryButton_alias_2 as SecondaryButton } from '../_tsup-dts-rollup';
|
|
3
|
+
export { ButtonProps_alias_2 as ButtonProps } from '../_tsup-dts-rollup';
|
|
4
|
+
export { BaseButton_alias_2 as BaseButton } from '../_tsup-dts-rollup';
|
package/dist/button/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/button/index.tsx","../../src/button/button.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/button.css\";\n\nexport { PrimaryButton, SecondaryButton } from \"./button\";\n\nexport type * from \"./button\";\n","import { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\ninterface ButtonPropsInternal extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /**\n * The height, font size and padding of the button\n */\n size?: \"small\" | \"medium\" | \"large\";\n\n /**\n * Make the button use 100% width available.\n * Using the \"mobile\" it only stretch to full width on smaller screens\n */\n fullWidth?: boolean | \"mobile\";\n\n /**\n * Use an icon inside the button\n */\n icon?: React.ReactNode;\n\n children?: React.ReactNode;\n}\n\nexport type ButtonProps = ButtonPropsInternal &\n (\n | {\n /**\n * The background fill of the button\n */\n fill?: \"contained\" | \"outline\";\n }\n | {\n /**\n * @deprecated use `fill='outline'` instead\n */\n fill?: \"outlined\";\n }\n );\n\nexport const BaseButton: OverridableComponent<\n ButtonProps & { variant: \"primary\" | \"secondary\" },\n HTMLButtonElement\n> = forwardRef(\n (\n {\n as: Component = \"button\",\n children,\n variant,\n size = \"medium\",\n fullWidth = false,\n fill = \"contained\",\n icon,\n className,\n ...rest\n },\n ref,\n ) => {\n // TODO: Remove deprecated fill value name at some point\n // Deprecated at 10. march 2024\n if (fill === \"outlined\") {\n // eslint-disable-next-line no-console -- Deprecation warning\n console.warn(\"The `fill` value `outlined` is deprecated, use `fill='outline'` instead\");\n }\n return (\n <Component\n className={clsx(\n \"hds-button\",\n `hds-button--${size}`,\n {\n [`hds-button--${variant}`]: fill === \"contained\",\n [`hds-button--outline-${variant}`]: fill === \"outline\" || fill === \"outlined\",\n \"hds-button--full\": fullWidth,\n \"hds-button--mobile-full\": fullWidth === \"mobile\",\n \"hds-button--icon-only\": icon && !children,\n },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {icon && !children ? icon : null}\n {children}\n </Component>\n );\n },\n);\nBaseButton.displayName = \"BaseButton\";\n\n/**\n * ## TODO\n *\n * - [x] Handle links that looks like buttons\n * - [ ] Revisit how to handle outline\n * - [ ] Figure out outline-white\n */\n\nexport const PrimaryButton: OverridableComponent<ButtonProps, HTMLButtonElement> = forwardRef(\n (props, ref) => {\n return <BaseButton {...props} ref={ref} variant=\"primary\" />;\n },\n);\n\nPrimaryButton.displayName = \"PrimaryButton\";\n\nexport const SecondaryButton: OverridableComponent<ButtonProps, HTMLButtonElement> = forwardRef(\n (props, ref) => {\n return <BaseButton {...props} ref={ref} variant=\"secondary\" />;\n },\n);\n\nSecondaryButton.displayName = \"SecondaryButton\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAO;AACP,oBAAO;AACP,kBAAO;AAEP,oBAAO;;;ACJP,mBAA2B;AAC3B,6BAAqB;AAgEf;AAzBC,IAAM,iBAGT;AAAA,EACF,CACE,IAWA,QACG;AAZH,iBACE;AAAA,UAAI,YAAY;AAAA,MAChB;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,OAAO;AAAA,MACP;AAAA,MACA;AAAA,IArDN,IA6CI,IASK,iBATL,IASK;AAAA,MARH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAOF,QAAI,SAAS,YAAY;AAEvB,cAAQ,KAAK,yEAAyE;AAAA,IACxF;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW;AAAA,UACT;AAAA,UACA,eAAe,IAAI;AAAA,UACnB;AAAA,YACE,CAAC,eAAe,OAAO,EAAE,GAAG,SAAS;AAAA,YACrC,CAAC,uBAAuB,OAAO,EAAE,GAAG,SAAS,aAAa,SAAS;AAAA,YACnE,oBAAoB;AAAA,YACpB,2BAA2B,cAAc;AAAA,YACzC,yBAAyB,QAAQ,CAAC;AAAA,UACpC;AAAA,UACA;AAAA,QACF;AAAA,QACA;AAAA,SACI,OAdL;AAAA,QAgBE;AAAA,kBAAQ,CAAC,WAAW,OAAO;AAAA,UAC3B;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,WAAW,cAAc;AAUlB,IAAM,oBAAsE;AAAA,EACjF,CAAC,OAAO,QAAQ;AACd,WAAO,4CAAC,6CAAe,QAAf,EAAsB,KAAU,SAAQ,YAAU;AAAA,EAC5D;AACF;AAEA,cAAc,cAAc;AAErB,IAAM,sBAAwE;AAAA,EACnF,CAAC,OAAO,QAAQ;AACd,WAAO,4CAAC,6CAAe,QAAf,EAAsB,KAAU,SAAQ,cAAY;AAAA,EAC9D;AACF;AAEA,gBAAgB,cAAc;","names":[]}
|
package/dist/button/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-A6Y3TQYS.mjs";
|
|
2
2
|
import {
|
|
3
3
|
PrimaryButton,
|
|
4
4
|
SecondaryButton
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-KOO4VQ2N.mjs";
|
|
6
|
+
import "../chunk-R4SQKVDQ.mjs";
|
|
7
7
|
export {
|
|
8
8
|
PrimaryButton,
|
|
9
9
|
SecondaryButton
|
|
10
10
|
};
|
|
11
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/card/card.d.mts
CHANGED
|
@@ -1,45 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* the entire card a link, as that would cause the entire card to be read
|
|
14
|
-
* as a link to the user. That would be perceived as information overload.
|
|
15
|
-
*/
|
|
16
|
-
as?: Exclude<ElementType, "a">;
|
|
17
|
-
}, HTMLDivElement>;
|
|
18
|
-
declare const CardMedia: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
19
|
-
interface CardImageMediaProps extends HTMLAttributes<HTMLDivElement> {
|
|
20
|
-
aspectRatio?: string;
|
|
21
|
-
}
|
|
22
|
-
declare const CardMediaImg: OverridableComponent<CardImageMediaProps, HTMLImageElement>;
|
|
23
|
-
declare const CardBody: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
24
|
-
declare const CardBodyHeader: react.ForwardRefExoticComponent<CardBaseProps & {
|
|
25
|
-
/**
|
|
26
|
-
* Heading level of the card heading
|
|
27
|
-
*/
|
|
28
|
-
as: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
29
|
-
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
30
|
-
declare const CardBodyHeaderOverline: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
31
|
-
declare const CardBodyHeaderTitle: OverridableComponent<CardBaseProps & {
|
|
32
|
-
/**
|
|
33
|
-
* A Card should in most cases appear as a big link,
|
|
34
|
-
* but the actual link should just be this header title.
|
|
35
|
-
* To make life better for those with screen readers we should not make
|
|
36
|
-
* the entire card a link, as that would cause the entire card to be read
|
|
37
|
-
* as a link to the user. That would be perceived as information overload.
|
|
38
|
-
*/
|
|
39
|
-
as: ElementType;
|
|
40
|
-
}, HTMLDivElement>;
|
|
41
|
-
declare const CardBodyDescription: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
42
|
-
declare const CardBodyAction: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
43
|
-
declare const CardBodyActionArrow: OverridableComponent<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
|
|
44
|
-
|
|
45
|
-
export { Card, type CardBaseProps, CardBody, CardBodyAction, CardBodyActionArrow, CardBodyDescription, CardBodyHeader, CardBodyHeaderOverline, CardBodyHeaderTitle, type CardImageMediaProps, CardMedia, CardMediaImg };
|
|
1
|
+
export { CardBaseProps_alias_1 as CardBaseProps } from '../_tsup-dts-rollup';
|
|
2
|
+
export { Card_alias_2 as Card } from '../_tsup-dts-rollup';
|
|
3
|
+
export { CardMedia_alias_1 as CardMedia } from '../_tsup-dts-rollup';
|
|
4
|
+
export { CardImageMediaProps_alias_1 as CardImageMediaProps } from '../_tsup-dts-rollup';
|
|
5
|
+
export { CardMediaImg_alias_1 as CardMediaImg } from '../_tsup-dts-rollup';
|
|
6
|
+
export { CardBody_alias_1 as CardBody } from '../_tsup-dts-rollup';
|
|
7
|
+
export { CardBodyHeader_alias_1 as CardBodyHeader } from '../_tsup-dts-rollup';
|
|
8
|
+
export { CardBodyHeaderOverline_alias_1 as CardBodyHeaderOverline } from '../_tsup-dts-rollup';
|
|
9
|
+
export { CardBodyHeaderTitle_alias_1 as CardBodyHeaderTitle } from '../_tsup-dts-rollup';
|
|
10
|
+
export { CardBodyDescription_alias_1 as CardBodyDescription } from '../_tsup-dts-rollup';
|
|
11
|
+
export { CardBodyAction_alias_1 as CardBodyAction } from '../_tsup-dts-rollup';
|
|
12
|
+
export { CardBodyActionArrow_alias_1 as CardBodyActionArrow } from '../_tsup-dts-rollup';
|