@postenbring/hedwig-react 0.0.76 → 0.0.77
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 +498 -492
- package/dist/_tsup-dts-rollup.d.ts +498 -492
- package/dist/accordion/accordion-content.js +20 -18
- package/dist/accordion/accordion-content.js.map +1 -1
- package/dist/accordion/accordion-content.mjs +1 -1
- package/dist/accordion/accordion-header.js +24 -22
- package/dist/accordion/accordion-header.js.map +1 -1
- package/dist/accordion/accordion-header.mjs +1 -1
- package/dist/accordion/accordion-item.js +2 -16
- package/dist/accordion/accordion-item.js.map +1 -1
- package/dist/accordion/accordion-item.mjs +1 -1
- package/dist/accordion/accordion.js +2 -2
- package/dist/accordion/accordion.js.map +1 -1
- package/dist/accordion/accordion.mjs +1 -1
- package/dist/accordion/index.js +48 -58
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +7 -7
- package/dist/badge/badge.d.mts +2 -2
- package/dist/badge/badge.d.ts +2 -2
- package/dist/badge/badge.js +23 -30
- package/dist/badge/badge.js.map +1 -1
- package/dist/badge/badge.mjs +3 -3
- package/dist/badge/index.d.mts +2 -1
- package/dist/badge/index.d.ts +2 -1
- package/dist/badge/index.js +22 -29
- package/dist/badge/index.js.map +1 -1
- package/dist/badge/index.mjs +3 -3
- package/dist/box/box.js +5 -3
- package/dist/box/box.js.map +1 -1
- package/dist/box/box.mjs +1 -1
- package/dist/box/index.js +5 -3
- package/dist/box/index.js.map +1 -1
- package/dist/box/index.mjs +2 -2
- package/dist/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/breadcrumbs/breadcrumbs.mjs +1 -1
- package/dist/breadcrumbs/index.js.map +1 -1
- package/dist/breadcrumbs/index.mjs +1 -1
- package/dist/button/button.d.mts +0 -1
- package/dist/button/button.d.ts +0 -1
- package/dist/button/button.js +15 -22
- package/dist/button/button.js.map +1 -1
- package/dist/button/button.mjs +1 -3
- package/dist/button/index.d.mts +0 -1
- package/dist/button/index.d.ts +0 -1
- package/dist/button/index.js +15 -20
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +1 -1
- package/dist/card/card.d.mts +1 -1
- package/dist/card/card.d.ts +1 -1
- package/dist/card/card.js +63 -46
- package/dist/card/card.js.map +1 -1
- package/dist/card/card.mjs +1 -1
- package/dist/card/index.d.mts +3 -3
- package/dist/card/index.d.ts +3 -3
- package/dist/card/index.js +80 -59
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +10 -2
- package/dist/chunk-2UWPZNXC.mjs +40 -0
- package/dist/chunk-2UWPZNXC.mjs.map +1 -0
- package/dist/chunk-3EFAPJ3H.mjs +44 -0
- package/dist/chunk-3EFAPJ3H.mjs.map +1 -0
- package/dist/{chunk-XVFQWVHO.mjs → chunk-3MQKXNZ6.mjs} +4 -2
- package/dist/chunk-3MQKXNZ6.mjs.map +1 -0
- package/dist/{chunk-NMMFIRLZ.mjs → chunk-3NL3TOZF.mjs} +2 -2
- package/dist/{chunk-DM4PJFLG.mjs → chunk-6N4TGRZB.mjs} +2 -2
- package/dist/{chunk-JDXYRFLJ.mjs → chunk-722MZPXO.mjs} +2 -2
- package/dist/chunk-7JDEN3T6.mjs +109 -0
- package/dist/chunk-7JDEN3T6.mjs.map +1 -0
- package/dist/{chunk-HMB4TY2F.mjs → chunk-7W4HONVO.mjs} +3 -3
- package/dist/{chunk-62F4I3MQ.mjs → chunk-A2H2LAII.mjs} +3 -17
- package/dist/chunk-A2H2LAII.mjs.map +1 -0
- package/dist/{chunk-YC7MT6SO.mjs → chunk-A4ME3VXV.mjs} +2 -2
- package/dist/chunk-ACEYO4LN.mjs +33 -0
- package/dist/chunk-ACEYO4LN.mjs.map +1 -0
- package/dist/{chunk-VVPJOVFP.mjs → chunk-AXKJB47E.mjs} +1 -1
- package/dist/chunk-AXKJB47E.mjs.map +1 -0
- package/dist/{chunk-UWTGHSWT.mjs → chunk-CCVZAHYA.mjs} +11 -6
- package/dist/chunk-CCVZAHYA.mjs.map +1 -0
- package/dist/chunk-CIHZDFSQ.mjs +148 -0
- package/dist/chunk-CIHZDFSQ.mjs.map +1 -0
- package/dist/chunk-COEZA7WA.mjs +30 -0
- package/dist/chunk-COEZA7WA.mjs.map +1 -0
- package/dist/chunk-CSXSUQ2M.mjs +1 -0
- package/dist/chunk-CSXSUQ2M.mjs.map +1 -0
- package/dist/{chunk-4GSNPCNT.mjs → chunk-CYEYGPRH.mjs} +2 -2
- package/dist/{chunk-E2AG5TUR.mjs → chunk-DCCQXWD6.mjs} +4 -4
- package/dist/{chunk-JXA3B33M.mjs → chunk-DEX36MFK.mjs} +1 -1
- package/dist/chunk-DEX36MFK.mjs.map +1 -0
- package/dist/chunk-DFU2THGC.mjs +31 -0
- package/dist/chunk-DFU2THGC.mjs.map +1 -0
- package/dist/{chunk-EGXM575K.mjs → chunk-ENKVTAJB.mjs} +6 -4
- package/dist/chunk-ENKVTAJB.mjs.map +1 -0
- package/dist/{chunk-25R7DBK6.mjs → chunk-ES6ISHOV.mjs} +1 -1
- package/dist/chunk-ES6ISHOV.mjs.map +1 -0
- package/dist/{chunk-PYR6QEIS.mjs → chunk-FCPQXZQV.mjs} +12 -12
- package/dist/chunk-FCPQXZQV.mjs.map +1 -0
- package/dist/{chunk-57SSGJ4X.mjs → chunk-GGQB2WWD.mjs} +6 -3
- package/dist/chunk-GGQB2WWD.mjs.map +1 -0
- package/dist/chunk-GSJPTZT3.mjs +121 -0
- package/dist/chunk-GSJPTZT3.mjs.map +1 -0
- package/dist/{chunk-S3BGPCLK.mjs → chunk-HFXVRPBA.mjs} +13 -26
- package/dist/chunk-HFXVRPBA.mjs.map +1 -0
- package/dist/{chunk-Z753E3XF.mjs → chunk-HMATZX4A.mjs} +1 -1
- package/dist/chunk-HMATZX4A.mjs.map +1 -0
- package/dist/{chunk-S5RB7KLJ.mjs → chunk-I3ZIMS72.mjs} +4 -2
- package/dist/chunk-I3ZIMS72.mjs.map +1 -0
- package/dist/{chunk-EJ7ANN7M.mjs → chunk-IKJJWKXM.mjs} +2 -2
- package/dist/{chunk-A47QULAK.mjs → chunk-JF3HBGAA.mjs} +10 -6
- package/dist/chunk-JF3HBGAA.mjs.map +1 -0
- package/dist/{chunk-KTRIVJM3.mjs → chunk-JL4PLDXN.mjs} +2 -2
- package/dist/{chunk-UXJIK76H.mjs → chunk-K3CBNVXC.mjs} +3 -5
- package/dist/chunk-K3CBNVXC.mjs.map +1 -0
- package/dist/{chunk-BWFFP6BB.mjs → chunk-KEKPEN2C.mjs} +17 -23
- package/dist/chunk-KEKPEN2C.mjs.map +1 -0
- package/dist/{chunk-VRIY65P5.mjs → chunk-KPGSRU4I.mjs} +3 -3
- package/dist/chunk-KPGSRU4I.mjs.map +1 -0
- package/dist/{chunk-CSAEHQ4R.mjs → chunk-LTTJWLS7.mjs} +2 -2
- package/dist/{chunk-5QL53TR2.mjs → chunk-MJ2DZH3N.mjs} +4 -2
- package/dist/chunk-MJ2DZH3N.mjs.map +1 -0
- package/dist/{chunk-DFH4YKQA.mjs → chunk-NAIBK23T.mjs} +2 -2
- package/dist/chunk-P6KBFRF4.mjs +54 -0
- package/dist/chunk-P6KBFRF4.mjs.map +1 -0
- package/dist/{chunk-TNU64NUN.mjs → chunk-P6WIBHQH.mjs} +2 -2
- package/dist/{chunk-E2RTLHMZ.mjs → chunk-PLXB3TNA.mjs} +2 -2
- package/dist/chunk-PLXB3TNA.mjs.map +1 -0
- package/dist/chunk-PT5H3QV6.mjs +29 -0
- package/dist/chunk-PT5H3QV6.mjs.map +1 -0
- package/dist/{chunk-5YMUST7H.mjs → chunk-QY2K3GWU.mjs} +3 -3
- package/dist/{chunk-6NGF7FFY.mjs → chunk-RYM3LM7K.mjs} +2 -2
- package/dist/{chunk-ME66RUR6.mjs → chunk-TQDUBRCZ.mjs} +7 -4
- package/dist/chunk-TQDUBRCZ.mjs.map +1 -0
- package/dist/{chunk-ZDPU3N54.mjs → chunk-UB2R7TCG.mjs} +1 -1
- package/dist/chunk-UB2R7TCG.mjs.map +1 -0
- package/dist/{chunk-RHCMBJOT.mjs → chunk-UMYOYHUI.mjs} +3 -3
- package/dist/{chunk-I6GDRDYD.mjs → chunk-USXU6ULZ.mjs} +4 -2
- package/dist/chunk-USXU6ULZ.mjs.map +1 -0
- package/dist/{chunk-MGUYIOP2.mjs → chunk-W2MRIP5P.mjs} +1 -1
- package/dist/chunk-W2MRIP5P.mjs.map +1 -0
- package/dist/chunk-WHMIHTPC.mjs +41 -0
- package/dist/chunk-WHMIHTPC.mjs.map +1 -0
- package/dist/{chunk-PUESATBQ.mjs → chunk-XC3UHH2U.mjs} +31 -45
- package/dist/chunk-XC3UHH2U.mjs.map +1 -0
- package/dist/{chunk-MKC7HZCM.mjs → chunk-XUWZ4HGD.mjs} +16 -15
- package/dist/chunk-XUWZ4HGD.mjs.map +1 -0
- package/dist/{chunk-GGEQEVZ4.mjs → chunk-YSFZCRWS.mjs} +1 -1
- package/dist/chunk-YSFZCRWS.mjs.map +1 -0
- package/dist/{chunk-XYIY6FHW.mjs → chunk-ZMLHJZQK.mjs} +9 -9
- package/dist/description-list/description-list.js.map +1 -1
- package/dist/description-list/description-list.mjs +1 -1
- package/dist/description-list/index.js.map +1 -1
- package/dist/description-list/index.mjs +1 -1
- package/dist/footer/footer.d.mts +1 -1
- package/dist/footer/footer.d.ts +1 -1
- package/dist/footer/footer.js +117 -134
- package/dist/footer/footer.js.map +1 -1
- package/dist/footer/footer.mjs +9 -9
- package/dist/footer/index.js +117 -134
- package/dist/footer/index.js.map +1 -1
- package/dist/footer/index.mjs +10 -10
- package/dist/form/checkbox/checkbox.js +25 -19
- package/dist/form/checkbox/checkbox.js.map +1 -1
- package/dist/form/checkbox/checkbox.mjs +3 -3
- package/dist/form/checkbox/index.js +25 -19
- package/dist/form/checkbox/index.js.map +1 -1
- package/dist/form/checkbox/index.mjs +3 -3
- package/dist/form/date-picker/date-picker.js +28 -22
- package/dist/form/date-picker/date-picker.js.map +1 -1
- package/dist/form/date-picker/date-picker.mjs +4 -4
- package/dist/form/date-picker/index.js +28 -22
- package/dist/form/date-picker/index.js.map +1 -1
- package/dist/form/date-picker/index.mjs +4 -4
- package/dist/form/error-message/error-message.d.mts +1 -1
- package/dist/form/error-message/error-message.d.ts +1 -1
- package/dist/form/error-message/error-message.js +46 -11
- package/dist/form/error-message/error-message.js.map +1 -1
- package/dist/form/error-message/error-message.mjs +1 -1
- package/dist/form/error-message/index.js +46 -11
- package/dist/form/error-message/index.js.map +1 -1
- package/dist/form/error-message/index.mjs +1 -1
- package/dist/form/fieldset/fieldset.js +22 -16
- package/dist/form/fieldset/fieldset.js.map +1 -1
- package/dist/form/fieldset/fieldset.mjs +2 -2
- package/dist/form/fieldset/index.js +22 -16
- package/dist/form/fieldset/index.js.map +1 -1
- package/dist/form/fieldset/index.mjs +2 -2
- package/dist/form/index.js +48 -42
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +11 -11
- package/dist/form/input/index.js +26 -20
- package/dist/form/input/index.js.map +1 -1
- package/dist/form/input/index.mjs +3 -3
- package/dist/form/input/input.js +26 -20
- package/dist/form/input/input.js.map +1 -1
- package/dist/form/input/input.mjs +3 -3
- package/dist/form/input-group/index.js +24 -18
- package/dist/form/input-group/index.js.map +1 -1
- package/dist/form/input-group/index.mjs +2 -2
- package/dist/form/input-group/input-group.js +24 -18
- package/dist/form/input-group/input-group.js.map +1 -1
- package/dist/form/input-group/input-group.mjs +2 -2
- package/dist/form/radiobutton/index.js +28 -22
- package/dist/form/radiobutton/index.js.map +1 -1
- package/dist/form/radiobutton/index.mjs +4 -4
- package/dist/form/radiobutton/radiobutton.js +28 -22
- package/dist/form/radiobutton/radiobutton.js.map +1 -1
- package/dist/form/radiobutton/radiobutton.mjs +4 -4
- package/dist/form/radiobutton/radiogroup.js +25 -19
- package/dist/form/radiobutton/radiogroup.js.map +1 -1
- package/dist/form/radiobutton/radiogroup.mjs +3 -3
- package/dist/form/select/index.js +26 -20
- package/dist/form/select/index.js.map +1 -1
- package/dist/form/select/index.mjs +3 -3
- package/dist/form/select/select.js +26 -20
- package/dist/form/select/select.js.map +1 -1
- package/dist/form/select/select.mjs +3 -3
- package/dist/form/textarea/index.js +26 -20
- package/dist/form/textarea/index.js.map +1 -1
- package/dist/form/textarea/index.mjs +3 -3
- package/dist/form/textarea/textarea.js +26 -20
- package/dist/form/textarea/textarea.js.map +1 -1
- package/dist/form/textarea/textarea.mjs +3 -3
- package/dist/help-text/help-text.js +5 -3
- package/dist/help-text/help-text.js.map +1 -1
- package/dist/help-text/help-text.mjs +3 -3
- package/dist/help-text/index.js +5 -3
- package/dist/help-text/index.js.map +1 -1
- package/dist/help-text/index.mjs +3 -3
- package/dist/index-no-css.d.mts +12 -20
- package/dist/index-no-css.d.ts +12 -20
- package/dist/index-no-css.js +615 -614
- package/dist/index-no-css.js.map +1 -1
- package/dist/index-no-css.mjs +85 -92
- package/dist/index.d.mts +12 -20
- package/dist/index.d.ts +12 -20
- package/dist/index.js +615 -614
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +85 -92
- package/dist/index.mjs.map +1 -1
- package/dist/layout/container/container.js +3 -1
- package/dist/layout/container/container.js.map +1 -1
- package/dist/layout/container/container.mjs +1 -1
- package/dist/layout/grid/grid.js.map +1 -1
- package/dist/layout/grid/grid.mjs +1 -1
- package/dist/layout/grid/index.js.map +1 -1
- package/dist/layout/grid/index.mjs +2 -2
- package/dist/layout/index.js +8 -6
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/index.mjs +4 -4
- package/dist/layout/stack/index.js.map +1 -1
- package/dist/layout/stack/index.mjs +1 -1
- package/dist/layout/stack/stack.js.map +1 -1
- package/dist/layout/stack/stack.mjs +1 -1
- package/dist/link/index.js +3 -1
- package/dist/link/index.js.map +1 -1
- package/dist/link/index.mjs +1 -1
- package/dist/link/link.js +3 -1
- package/dist/link/link.js.map +1 -1
- package/dist/link/link.mjs +1 -1
- package/dist/list/index.js +39 -31
- package/dist/list/index.js.map +1 -1
- package/dist/list/index.mjs +2 -2
- package/dist/list/link-list.d.mts +1 -1
- package/dist/list/link-list.d.ts +1 -1
- package/dist/list/link-list.js +39 -31
- package/dist/list/link-list.js.map +1 -1
- package/dist/list/link-list.mjs +2 -2
- package/dist/list/list.d.mts +1 -1
- package/dist/list/list.d.ts +1 -1
- package/dist/list/list.js +26 -26
- package/dist/list/list.js.map +1 -1
- package/dist/list/list.mjs +1 -1
- package/dist/message/index.js +10 -5
- package/dist/message/index.js.map +1 -1
- package/dist/message/index.mjs +3 -3
- package/dist/message/message.js +10 -5
- package/dist/message/message.js.map +1 -1
- package/dist/message/message.mjs +2 -2
- package/dist/modal/index.d.mts +0 -1
- package/dist/modal/index.d.ts +0 -1
- package/dist/modal/index.js +17 -13
- package/dist/modal/index.js.map +1 -1
- package/dist/modal/index.mjs +4 -4
- package/dist/modal/modal.d.mts +0 -1
- package/dist/modal/modal.d.ts +0 -1
- package/dist/modal/modal.js +19 -17
- package/dist/modal/modal.js.map +1 -1
- package/dist/modal/modal.mjs +5 -7
- package/dist/navbar/icons.js.map +1 -1
- package/dist/navbar/icons.mjs +1 -1
- package/dist/navbar/index.d.mts +7 -1
- package/dist/navbar/index.d.ts +7 -1
- package/dist/navbar/index.js +87 -39
- package/dist/navbar/index.js.map +1 -1
- package/dist/navbar/index.mjs +19 -7
- package/dist/navbar/navbar-expandable-menu.d.mts +3 -3
- package/dist/navbar/navbar-expandable-menu.d.ts +3 -3
- package/dist/navbar/navbar-expandable-menu.js +9 -9
- package/dist/navbar/navbar-expandable-menu.js.map +1 -1
- package/dist/navbar/navbar-expandable-menu.mjs +3 -3
- package/dist/navbar/navbar.d.mts +4 -1
- package/dist/navbar/navbar.d.ts +4 -1
- package/dist/navbar/navbar.js +64 -24
- package/dist/navbar/navbar.js.map +1 -1
- package/dist/navbar/navbar.mjs +9 -3
- package/dist/show-more/index.js +1 -3
- package/dist/show-more/index.js.map +1 -1
- package/dist/show-more/index.mjs +3 -3
- package/dist/show-more/show-more.js.map +1 -1
- package/dist/show-more/show-more.mjs +1 -1
- package/dist/skeleton/index.js +9 -5
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs +1 -1
- package/dist/skeleton/skeleton.js +9 -5
- package/dist/skeleton/skeleton.js.map +1 -1
- package/dist/skeleton/skeleton.mjs +1 -1
- package/dist/styled-html/index.js +3 -1
- package/dist/styled-html/index.js.map +1 -1
- package/dist/styled-html/index.mjs +1 -1
- package/dist/styled-html/styled-html.js +3 -1
- package/dist/styled-html/styled-html.js.map +1 -1
- package/dist/styled-html/styled-html.mjs +1 -1
- package/dist/tabs/index.d.mts +2 -2
- package/dist/tabs/index.d.ts +2 -2
- package/dist/tabs/index.js +73 -63
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +5 -5
- package/dist/tabs/tabs-content.d.mts +1 -1
- package/dist/tabs/tabs-content.d.ts +1 -1
- package/dist/tabs/tabs-content.js +10 -5
- package/dist/tabs/tabs-content.js.map +1 -1
- package/dist/tabs/tabs-content.mjs +1 -1
- package/dist/tabs/tabs-list.d.mts +1 -1
- package/dist/tabs/tabs-list.d.ts +1 -1
- package/dist/tabs/tabs-list.js +60 -57
- package/dist/tabs/tabs-list.js.map +1 -1
- package/dist/tabs/tabs-list.mjs +2 -2
- package/dist/tabs/tabs.js +3 -1
- package/dist/tabs/tabs.js.map +1 -1
- package/dist/tabs/tabs.mjs +1 -1
- package/dist/text/index.d.mts +0 -13
- package/dist/text/index.d.ts +0 -13
- package/dist/text/index.js +7 -68
- package/dist/text/index.js.map +1 -1
- package/dist/text/index.mjs +3 -30
- package/dist/text/text.js +5 -2
- package/dist/text/text.js.map +1 -1
- package/dist/text/text.mjs +1 -1
- package/dist/utilities/auto-animate-height.js +1 -3
- package/dist/utilities/auto-animate-height.js.map +1 -1
- package/dist/utilities/auto-animate-height.mjs +2 -2
- package/dist/utilities/index.js +1 -3
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/index.mjs +2 -2
- package/dist/utils.d.mts +0 -1
- package/dist/utils.d.ts +0 -1
- package/dist/utils.js.map +1 -1
- package/dist/utils.mjs +1 -1
- package/dist/warning-banner/index.js +34 -46
- package/dist/warning-banner/index.js.map +1 -1
- package/dist/warning-banner/index.mjs +3 -3
- package/dist/warning-banner/warning-banner.js +34 -46
- package/dist/warning-banner/warning-banner.js.map +1 -1
- package/dist/warning-banner/warning-banner.mjs +3 -3
- package/package.json +5 -5
- package/dist/chunk-25R7DBK6.mjs.map +0 -1
- package/dist/chunk-57SSGJ4X.mjs.map +0 -1
- package/dist/chunk-5QL53TR2.mjs.map +0 -1
- package/dist/chunk-625SVQEP.mjs +0 -84
- package/dist/chunk-625SVQEP.mjs.map +0 -1
- package/dist/chunk-62F4I3MQ.mjs.map +0 -1
- package/dist/chunk-A47QULAK.mjs.map +0 -1
- package/dist/chunk-BWFFP6BB.mjs.map +0 -1
- package/dist/chunk-E2RTLHMZ.mjs.map +0 -1
- package/dist/chunk-EGXM575K.mjs.map +0 -1
- package/dist/chunk-FYNTNGIY.mjs +0 -61
- package/dist/chunk-FYNTNGIY.mjs.map +0 -1
- package/dist/chunk-GGEQEVZ4.mjs.map +0 -1
- package/dist/chunk-GJDRW6PA.mjs +0 -22
- package/dist/chunk-GJDRW6PA.mjs.map +0 -1
- package/dist/chunk-GUB3UCXO.mjs +0 -38
- package/dist/chunk-GUB3UCXO.mjs.map +0 -1
- package/dist/chunk-I6GDRDYD.mjs.map +0 -1
- package/dist/chunk-IL7576PP.mjs +0 -19
- package/dist/chunk-IL7576PP.mjs.map +0 -1
- package/dist/chunk-JXA3B33M.mjs.map +0 -1
- package/dist/chunk-ME66RUR6.mjs.map +0 -1
- package/dist/chunk-MF2AREPQ.mjs +0 -28
- package/dist/chunk-MF2AREPQ.mjs.map +0 -1
- package/dist/chunk-MGUYIOP2.mjs.map +0 -1
- package/dist/chunk-MKC7HZCM.mjs.map +0 -1
- package/dist/chunk-PMLDK3VC.mjs +0 -39
- package/dist/chunk-PMLDK3VC.mjs.map +0 -1
- package/dist/chunk-PUESATBQ.mjs.map +0 -1
- package/dist/chunk-PYR6QEIS.mjs.map +0 -1
- package/dist/chunk-S3BGPCLK.mjs.map +0 -1
- package/dist/chunk-S5RB7KLJ.mjs.map +0 -1
- package/dist/chunk-SRLRTLHS.mjs +0 -106
- package/dist/chunk-SRLRTLHS.mjs.map +0 -1
- package/dist/chunk-UWTGHSWT.mjs.map +0 -1
- package/dist/chunk-UXJIK76H.mjs.map +0 -1
- package/dist/chunk-VRIY65P5.mjs.map +0 -1
- package/dist/chunk-VVPJOVFP.mjs.map +0 -1
- package/dist/chunk-W3D4VR4Y.mjs +0 -61
- package/dist/chunk-W3D4VR4Y.mjs.map +0 -1
- package/dist/chunk-X5JERDDU.mjs +0 -131
- package/dist/chunk-X5JERDDU.mjs.map +0 -1
- package/dist/chunk-XE4UZBL2.mjs +0 -33
- package/dist/chunk-XE4UZBL2.mjs.map +0 -1
- package/dist/chunk-XVFQWVHO.mjs.map +0 -1
- package/dist/chunk-YXHXRUFX.mjs +0 -42
- package/dist/chunk-YXHXRUFX.mjs.map +0 -1
- package/dist/chunk-Z753E3XF.mjs.map +0 -1
- package/dist/chunk-ZDPU3N54.mjs.map +0 -1
- /package/dist/{chunk-NMMFIRLZ.mjs.map → chunk-3NL3TOZF.mjs.map} +0 -0
- /package/dist/{chunk-DM4PJFLG.mjs.map → chunk-6N4TGRZB.mjs.map} +0 -0
- /package/dist/{chunk-JDXYRFLJ.mjs.map → chunk-722MZPXO.mjs.map} +0 -0
- /package/dist/{chunk-HMB4TY2F.mjs.map → chunk-7W4HONVO.mjs.map} +0 -0
- /package/dist/{chunk-YC7MT6SO.mjs.map → chunk-A4ME3VXV.mjs.map} +0 -0
- /package/dist/{chunk-4GSNPCNT.mjs.map → chunk-CYEYGPRH.mjs.map} +0 -0
- /package/dist/{chunk-E2AG5TUR.mjs.map → chunk-DCCQXWD6.mjs.map} +0 -0
- /package/dist/{chunk-EJ7ANN7M.mjs.map → chunk-IKJJWKXM.mjs.map} +0 -0
- /package/dist/{chunk-KTRIVJM3.mjs.map → chunk-JL4PLDXN.mjs.map} +0 -0
- /package/dist/{chunk-CSAEHQ4R.mjs.map → chunk-LTTJWLS7.mjs.map} +0 -0
- /package/dist/{chunk-DFH4YKQA.mjs.map → chunk-NAIBK23T.mjs.map} +0 -0
- /package/dist/{chunk-TNU64NUN.mjs.map → chunk-P6WIBHQH.mjs.map} +0 -0
- /package/dist/{chunk-5YMUST7H.mjs.map → chunk-QY2K3GWU.mjs.map} +0 -0
- /package/dist/{chunk-6NGF7FFY.mjs.map → chunk-RYM3LM7K.mjs.map} +0 -0
- /package/dist/{chunk-RHCMBJOT.mjs.map → chunk-UMYOYHUI.mjs.map} +0 -0
- /package/dist/{chunk-XYIY6FHW.mjs.map → chunk-ZMLHJZQK.mjs.map} +0 -0
|
@@ -5,14 +5,15 @@ import {
|
|
|
5
5
|
} from "./chunk-R4SQKVDQ.mjs";
|
|
6
6
|
|
|
7
7
|
// src/skeleton/skeleton.tsx
|
|
8
|
-
import "react";
|
|
9
8
|
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
9
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
10
10
|
import { forwardRef } from "react";
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
12
|
var Skeleton = forwardRef(
|
|
13
13
|
(_a, ref) => {
|
|
14
14
|
var _b = _a, {
|
|
15
|
-
as:
|
|
15
|
+
as: Tag = "div",
|
|
16
|
+
asChild,
|
|
16
17
|
children,
|
|
17
18
|
animation = true,
|
|
18
19
|
variant = "text",
|
|
@@ -22,6 +23,7 @@ var Skeleton = forwardRef(
|
|
|
22
23
|
style
|
|
23
24
|
} = _b, rest = __objRest(_b, [
|
|
24
25
|
"as",
|
|
26
|
+
"asChild",
|
|
25
27
|
"children",
|
|
26
28
|
"animation",
|
|
27
29
|
"variant",
|
|
@@ -30,9 +32,10 @@ var Skeleton = forwardRef(
|
|
|
30
32
|
"className",
|
|
31
33
|
"style"
|
|
32
34
|
]);
|
|
35
|
+
const Component = asChild ? Slot : Tag;
|
|
33
36
|
return /* @__PURE__ */ jsx(
|
|
34
37
|
Component,
|
|
35
|
-
__spreadProps(__spreadValues({
|
|
38
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
36
39
|
className: clsx(
|
|
37
40
|
"hds-skeleton",
|
|
38
41
|
`hds-skeleton--${variant}`,
|
|
@@ -40,9 +43,10 @@ var Skeleton = forwardRef(
|
|
|
40
43
|
className
|
|
41
44
|
),
|
|
42
45
|
style: __spreadProps(__spreadValues({}, style), { width, height }),
|
|
43
|
-
ref,
|
|
44
46
|
"aria-hidden": true
|
|
45
|
-
},
|
|
47
|
+
}, { inert: "true" }), {
|
|
48
|
+
ref
|
|
49
|
+
}), rest), {
|
|
46
50
|
children
|
|
47
51
|
})
|
|
48
52
|
);
|
|
@@ -53,4 +57,4 @@ Skeleton.displayName = "Skeleton";
|
|
|
53
57
|
export {
|
|
54
58
|
Skeleton
|
|
55
59
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
60
|
+
//# sourceMappingURL=chunk-JF3HBGAA.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/skeleton/skeleton.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unsafe-assignment -- Typings for the differnt html elements */\n/* eslint-disable @typescript-eslint/no-explicit-any -- Typings for the differnt html elements */\n\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { forwardRef } from \"react\";\n\ninterface DimensionsFromWidthAndHeight {\n height?: number | string;\n width?: number | string;\n}\n\ninterface SkeletonPropsInner extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * The visual style of the Skeleton\n */\n variant?: \"text\" | \"circle\" | \"rectangle\" | \"rounded\";\n\n /**\n * Whether to show animation or not\n * In the future the animation effect might become configurable\n *\n * default true\n */\n animation?: boolean;\n\n children?: React.ReactNode;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n\n /**\n * Convienence prop to change the rendered element.\n *\n * Use {@link SkeletonProps.asChild} if you need more control of the rendered element.\n */\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"span\" | \"div\" | \"label\" | \"p\";\n}\n\nexport type SkeletonProps = SkeletonPropsInner & DimensionsFromWidthAndHeight;\n\n/**\n * Make skeleton loading states as placeholders for your content while waiting for data to load.\n *\n * **Note**\n *\n * Consider if this is really needed. The best experience is to avoid loading states altogether.\n * If your loading takes under 1 second, it better to not show anything at all.\n *\n * - Make your backend faster\n * - Preload/prefetch data\n * - Avoid data loading waterfalls\n * - Use optimistic ui when doing mutations\n *\n * **Usage**\n *\n * ```tsx\n * <Skeleton variant=\"circle\" width=\"2rem\" height=\"2rem\" />\n * <Skeleton variant=\"text\" />\n * <Skeleton variant=\"text\" width=\"80%\" />\n * <Skeleton variant=\"text\">Uses content to determine width</Skeleton>\n * <Skeleton variant=\"rectangle\" width=\"300px\" height=\"400px\" />\n * ```\n *\n * Remember to set `aria-hidden` on top level components you use that are not the `Skeleton` component.\n *\n * The `Skeleton` component does this for it self, but if you are using other components higher up in the tree, it might cause problems with screen readers\n *\n * **References**\n * - https://aksel.nav.no/komponenter/core/skeleton\n * - https://chakra-ui.com/docs/components/skeleton\n * - https://mui.com/material-ui/react-skeleton/\n */\nexport const Skeleton = forwardRef<HTMLDivElement, SkeletonProps>(\n (\n {\n as: Tag = \"div\",\n asChild,\n children,\n animation = true,\n variant = \"text\",\n width,\n height,\n className,\n style,\n ...rest\n },\n ref,\n ) => {\n const Component = asChild ? Slot : Tag;\n return (\n <Component\n className={clsx(\n \"hds-skeleton\",\n `hds-skeleton--${variant}`,\n !animation && `hds-skeleton--no-animation`,\n className as undefined,\n )}\n style={{ ...style, width, height }}\n aria-hidden\n {...{ inert: \"true\" }}\n ref={ref as any}\n {...(rest as any)}\n >\n {children}\n </Component>\n );\n },\n);\nSkeleton.displayName = \"Skeleton\";\n"],"mappings":";;;;;;;AAGA,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AA0FrB;AAlBC,IAAM,WAAW;AAAA,EACtB,CACE,IAYA,QACG;AAbH,iBACE;AAAA,UAAI,MAAM;AAAA,MACV;AAAA,MACA;AAAA,MACA,YAAY;AAAA,MACZ,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IAxFN,IA+EI,IAUK,iBAVL,IAUK;AAAA,MATH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAKF,UAAM,YAAY,UAAU,OAAO;AACnC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,UACT;AAAA,UACA,iBAAiB,OAAO;AAAA,UACxB,CAAC,aAAa;AAAA,UACd;AAAA,QACF;AAAA,QACA,OAAO,iCAAK,QAAL,EAAY,OAAO,OAAO;AAAA,QACjC,eAAW;AAAA,SACP,EAAE,OAAO,OAAO,IATrB;AAAA,QAUC;AAAA,UACK,OAXN;AAAA,QAaE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InputGroup
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P6WIBHQH.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -34,4 +34,4 @@ Textarea.displayName = "Textarea";
|
|
|
34
34
|
export {
|
|
35
35
|
Textarea
|
|
36
36
|
};
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-JL4PLDXN.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useMergeRefs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DEX36MFK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -13,14 +13,12 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
13
13
|
var AutoAnimateHeight = forwardRef(
|
|
14
14
|
(_a, ref) => {
|
|
15
15
|
var _b = _a, {
|
|
16
|
-
as: Component = "div",
|
|
17
16
|
children,
|
|
18
17
|
style,
|
|
19
18
|
animationDuration = "quick",
|
|
20
19
|
animationEasing = "normal",
|
|
21
20
|
onTransitionEnd
|
|
22
21
|
} = _b, rest = __objRest(_b, [
|
|
23
|
-
"as",
|
|
24
22
|
"children",
|
|
25
23
|
"style",
|
|
26
24
|
"animationDuration",
|
|
@@ -77,7 +75,7 @@ var AutoAnimateHeight = forwardRef(
|
|
|
77
75
|
};
|
|
78
76
|
}, [children]);
|
|
79
77
|
return /* @__PURE__ */ jsxs(
|
|
80
|
-
|
|
78
|
+
"div",
|
|
81
79
|
__spreadProps(__spreadValues({
|
|
82
80
|
ref: mergedRef,
|
|
83
81
|
onTransitionEnd,
|
|
@@ -115,4 +113,4 @@ AutoAnimateHeight.displayName = "AutoAnimateHeight";
|
|
|
115
113
|
export {
|
|
116
114
|
AutoAnimateHeight
|
|
117
115
|
};
|
|
118
|
-
//# sourceMappingURL=chunk-
|
|
116
|
+
//# sourceMappingURL=chunk-K3CBNVXC.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utilities/auto-animate-height.tsx"],"sourcesContent":["import { cloneElement, forwardRef, useEffect, useRef, useState } from \"react\";\nimport { useMergeRefs } from \"../utils\";\n\nexport interface AutoAnimateHeightProps extends React.HTMLAttributes<HTMLDivElement> {\n /**\n * Time of the animation, using the hedwig animation tokens\n * quick: 0.1s\n * normal: 0.3s\n * slow: 0.7s\n *\n * default is \"quick\"\n */\n animationDuration?: \"quick\" | \"normal\" | \"slow\";\n\n /**\n * Callback fired when animiation transition ends\n * Use this to do effects after resizing is done, e.g. scrolling to the element\n * using `element.scrollIntoView()`\n */\n onTransitionEnd?: () => void;\n\n /**\n * Which hedwig easing function to use, default is \"normal\"\n */\n animationEasing?: \"in\" | \"out\" | \"normal\";\n children: React.ReactNode;\n style?: React.CSSProperties;\n}\n\n/**\n * Helper component to animate the height of the children when they change\n * It's done by rendering two versions of the passed children,\n * one hidden to measure the height and one visible to only changes after the height is measured.\n *\n * **IMPORTANT** Do not pass any components with effects (like data fetching), as they will trigger twice.\n */\nexport const AutoAnimateHeight = forwardRef<HTMLDivElement, AutoAnimateHeightProps>(\n (\n {\n children,\n style,\n animationDuration = \"quick\",\n animationEasing = \"normal\",\n onTransitionEnd,\n ...rest\n },\n ref,\n ) => {\n const rootRef = useRef<HTMLDivElement>(null);\n const mergedRef = useMergeRefs([rootRef, ref]);\n const measurementRef = useRef<HTMLDivElement>(null);\n const [height, setHeight] = useState<{ height: number; shouldAnimate: boolean } | undefined>(\n undefined,\n );\n const [clonedChildren, setClonedChildren] = useState<React.ReactNode>(() =>\n cloneElement(<>{children}</>, {}),\n );\n\n useEffect(() => {\n if (!rootRef.current) return;\n if (!measurementRef.current) return;\n if (document.body.scrollHeight === 0) return;\n const currentMeasurement = measurementRef.current;\n const { height: newHeight } = currentMeasurement.getBoundingClientRect();\n\n // Listen for resize events on the measurement element\n // Keep the children in sync with the height\n // But don't animate it.\n let previouslyObservedHeight = newHeight;\n const resizeObserver = new ResizeObserver(() => {\n const { height: resizedHeight } = currentMeasurement.getBoundingClientRect();\n if (resizedHeight === previouslyObservedHeight) return;\n previouslyObservedHeight = resizedHeight;\n setHeight({ height: resizedHeight, shouldAnimate: false });\n });\n resizeObserver.observe(currentMeasurement); // This is cleaned up down below in the return functions\n\n // Set the new height when children changes\n setHeight({ height: newHeight, shouldAnimate: true });\n\n // Update children\n const nextClonedChildren = cloneElement(<>{children}</>, {});\n\n // When increasing in height update immediately so the new content is shown during the animation\n if (newHeight >= (height?.height ?? 0)) {\n setClonedChildren(nextClonedChildren);\n return () => {\n resizeObserver.disconnect();\n };\n }\n\n // When decreasing in height, wait until the animation is done so that we don't get a sudden flash of empty content\n const currentRoot = rootRef.current;\n function onTransitionEndHandler(e: TransitionEvent) {\n if (e.propertyName !== \"height\") return;\n setClonedChildren(nextClonedChildren);\n }\n currentRoot.addEventListener(\"transitionend\", onTransitionEndHandler);\n return () => {\n resizeObserver.disconnect();\n currentRoot.removeEventListener(\"transitionend\", onTransitionEndHandler);\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps -- I know better\n }, [children]);\n\n return (\n <div\n ref={mergedRef}\n onTransitionEnd={onTransitionEnd}\n style={{\n position: \"relative\",\n overflow: \"hidden\",\n height: height?.height ?? measurementRef.current?.getBoundingClientRect().height,\n transitionProperty: height?.shouldAnimate ? \"height\" : \"none\",\n transitionDuration: `var(--hds-micro-animation-duration-${animationDuration})`,\n transitionTimingFunction: `var(--hds-micro-animation-easing-${animationEasing})`,\n willChange: \"height\",\n ...style,\n }}\n {...rest}\n >\n <div\n aria-hidden\n ref={measurementRef}\n style={{\n position: \"absolute\",\n visibility: \"hidden\",\n }}\n >\n {children}\n </div>\n {clonedChildren}\n </div>\n );\n },\n);\nAutoAnimateHeight.displayName = \"AutoAnimateHeight\";\n"],"mappings":";;;;;;;;;;AAAA,SAAS,cAAc,YAAY,WAAW,QAAQ,gBAAgB;AAuDnD,wBAoDb,YApDa;AAnBZ,IAAM,oBAAoB;AAAA,EAC/B,CACE,IAQA,QACG;AATH,iBACE;AAAA;AAAA,MACA;AAAA,MACA,oBAAoB;AAAA,MACpB,kBAAkB;AAAA,MAClB;AAAA,IA3CN,IAsCI,IAMK,iBANL,IAMK;AAAA,MALH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AA3CN,QAAAA,KAAAC;AAgDI,UAAM,UAAU,OAAuB,IAAI;AAC3C,UAAM,YAAY,aAAa,CAAC,SAAS,GAAG,CAAC;AAC7C,UAAM,iBAAiB,OAAuB,IAAI;AAClD,UAAM,CAAC,QAAQ,SAAS,IAAI;AAAA,MAC1B;AAAA,IACF;AACA,UAAM,CAAC,gBAAgB,iBAAiB,IAAI;AAAA,MAA0B,MACpE,aAAa,gCAAG,UAAS,GAAK,CAAC,CAAC;AAAA,IAClC;AAEA,cAAU,MAAM;AA1DpB,UAAAD;AA2DM,UAAI,CAAC,QAAQ;AAAS;AACtB,UAAI,CAAC,eAAe;AAAS;AAC7B,UAAI,SAAS,KAAK,iBAAiB;AAAG;AACtC,YAAM,qBAAqB,eAAe;AAC1C,YAAM,EAAE,QAAQ,UAAU,IAAI,mBAAmB,sBAAsB;AAKvE,UAAI,2BAA2B;AAC/B,YAAM,iBAAiB,IAAI,eAAe,MAAM;AAC9C,cAAM,EAAE,QAAQ,cAAc,IAAI,mBAAmB,sBAAsB;AAC3E,YAAI,kBAAkB;AAA0B;AAChD,mCAA2B;AAC3B,kBAAU,EAAE,QAAQ,eAAe,eAAe,MAAM,CAAC;AAAA,MAC3D,CAAC;AACD,qBAAe,QAAQ,kBAAkB;AAGzC,gBAAU,EAAE,QAAQ,WAAW,eAAe,KAAK,CAAC;AAGpD,YAAM,qBAAqB,aAAa,gCAAG,UAAS,GAAK,CAAC,CAAC;AAG3D,UAAI,eAAcA,MAAA,iCAAQ,WAAR,OAAAA,MAAkB,IAAI;AACtC,0BAAkB,kBAAkB;AACpC,eAAO,MAAM;AACX,yBAAe,WAAW;AAAA,QAC5B;AAAA,MACF;AAGA,YAAM,cAAc,QAAQ;AAC5B,eAAS,uBAAuB,GAAoB;AAClD,YAAI,EAAE,iBAAiB;AAAU;AACjC,0BAAkB,kBAAkB;AAAA,MACtC;AACA,kBAAY,iBAAiB,iBAAiB,sBAAsB;AACpE,aAAO,MAAM;AACX,uBAAe,WAAW;AAC1B,oBAAY,oBAAoB,iBAAiB,sBAAsB;AAAA,MACzE;AAAA,IAGF,GAAG,CAAC,QAAQ,CAAC;AAEb,WACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL;AAAA,QACA,OAAO;AAAA,UACL,UAAU;AAAA,UACV,UAAU;AAAA,UACV,SAAQC,MAAA,iCAAQ,WAAR,OAAAA,OAAkBD,MAAA,eAAe,YAAf,gBAAAA,IAAwB,wBAAwB;AAAA,UAC1E,qBAAoB,iCAAQ,iBAAgB,WAAW;AAAA,UACvD,oBAAoB,sCAAsC,iBAAiB;AAAA,UAC3E,0BAA0B,oCAAoC,eAAe;AAAA,UAC7E,YAAY;AAAA,WACT;AAAA,SAED,OAbL;AAAA,QAeC;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,eAAW;AAAA,cACX,KAAK;AAAA,cACL,OAAO;AAAA,gBACL,UAAU;AAAA,gBACV,YAAY;AAAA,cACd;AAAA,cAEC;AAAA;AAAA,UACH;AAAA,UACC;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,kBAAkB,cAAc;","names":["_a","_b"]}
|
|
@@ -7,11 +7,12 @@ import {
|
|
|
7
7
|
// src/button/button.tsx
|
|
8
8
|
import { forwardRef } from "react";
|
|
9
9
|
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
10
|
-
import {
|
|
11
|
-
|
|
10
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
var Button = forwardRef(
|
|
12
13
|
(_a, ref) => {
|
|
13
14
|
var _b = _a, {
|
|
14
|
-
|
|
15
|
+
asChild,
|
|
15
16
|
children,
|
|
16
17
|
variant,
|
|
17
18
|
size = "medium",
|
|
@@ -20,7 +21,7 @@ var BaseButton = forwardRef(
|
|
|
20
21
|
icon,
|
|
21
22
|
className
|
|
22
23
|
} = _b, rest = __objRest(_b, [
|
|
23
|
-
"
|
|
24
|
+
"asChild",
|
|
24
25
|
"children",
|
|
25
26
|
"variant",
|
|
26
27
|
"size",
|
|
@@ -29,7 +30,8 @@ var BaseButton = forwardRef(
|
|
|
29
30
|
"icon",
|
|
30
31
|
"className"
|
|
31
32
|
]);
|
|
32
|
-
|
|
33
|
+
const Component = asChild ? Slot : "button";
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
33
35
|
Component,
|
|
34
36
|
__spreadProps(__spreadValues({
|
|
35
37
|
className: clsx(
|
|
@@ -40,37 +42,29 @@ var BaseButton = forwardRef(
|
|
|
40
42
|
[`hds-button--outline-${variant}`]: fill === "outline",
|
|
41
43
|
"hds-button--full": fullWidth === true,
|
|
42
44
|
"hds-button--mobile-full": fullWidth === "mobile",
|
|
43
|
-
"hds-button--icon-only": icon
|
|
45
|
+
"hds-button--icon-only": icon
|
|
44
46
|
},
|
|
45
47
|
className
|
|
46
48
|
),
|
|
47
49
|
ref
|
|
48
50
|
}, rest), {
|
|
49
|
-
children
|
|
50
|
-
icon && !children ? icon : null,
|
|
51
|
-
children
|
|
52
|
-
]
|
|
51
|
+
children
|
|
53
52
|
})
|
|
54
53
|
);
|
|
55
54
|
}
|
|
56
55
|
);
|
|
57
|
-
|
|
58
|
-
var PrimaryButton = forwardRef(
|
|
59
|
-
(props, ref
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
);
|
|
56
|
+
Button.displayName = "Button";
|
|
57
|
+
var PrimaryButton = forwardRef((props, ref) => {
|
|
58
|
+
return /* @__PURE__ */ jsx(Button, __spreadProps(__spreadValues({}, props), { ref, variant: "primary" }));
|
|
59
|
+
});
|
|
63
60
|
PrimaryButton.displayName = "PrimaryButton";
|
|
64
|
-
var SecondaryButton = forwardRef(
|
|
65
|
-
(props, ref
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
);
|
|
61
|
+
var SecondaryButton = forwardRef((props, ref) => {
|
|
62
|
+
return /* @__PURE__ */ jsx(Button, __spreadProps(__spreadValues({}, props), { ref, variant: "secondary" }));
|
|
63
|
+
});
|
|
69
64
|
SecondaryButton.displayName = "SecondaryButton";
|
|
70
65
|
|
|
71
66
|
export {
|
|
72
|
-
BaseButton,
|
|
73
67
|
PrimaryButton,
|
|
74
68
|
SecondaryButton
|
|
75
69
|
};
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
70
|
+
//# sourceMappingURL=chunk-KEKPEN2C.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/button/button.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nexport interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /**\n * The height, font size and padding of the button\n */\n size?: \"small\" | \"medium\" | \"large\";\n\n /**\n * The background fill of the button\n *\n * @default \"contained\"\n */\n fill?: \"contained\" | \"outline\";\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 the button as an icon button\n *\n * Render the icon in `children`\n */\n icon?: boolean;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\n\nconst Button = forwardRef<HTMLButtonElement, ButtonProps & { variant: \"primary\" | \"secondary\" }>(\n (\n {\n asChild,\n children,\n variant,\n size = \"medium\",\n fullWidth = false,\n fill = \"contained\",\n icon,\n className,\n ...rest\n },\n ref,\n ) => {\n const Component = asChild ? Slot : \"button\";\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\",\n \"hds-button--full\": fullWidth === true,\n \"hds-button--mobile-full\": fullWidth === \"mobile\",\n \"hds-button--icon-only\": icon,\n },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nButton.displayName = \"Button\";\n\nexport const PrimaryButton = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {\n return <Button {...props} ref={ref} variant=\"primary\" />;\n});\nPrimaryButton.displayName = \"PrimaryButton\";\n\nexport const SecondaryButton = forwardRef<HTMLButtonElement, ButtonProps>((props, ref) => {\n return <Button {...props} ref={ref} variant=\"secondary\" />;\n});\nSecondaryButton.displayName = \"SecondaryButton\";\n"],"mappings":";;;;;;;AAAA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,YAAY;AAqDf;AAjBN,IAAM,SAAS;AAAA,EACb,CACE,IAWA,QACG;AAZH,iBACE;AAAA;AAAA,MACA;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,OAAO;AAAA,MACP;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,YAAY,UAAU,OAAO;AACnC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;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,YAC7C,oBAAoB,cAAc;AAAA,YAClC,2BAA2B,cAAc;AAAA,YACzC,yBAAyB;AAAA,UAC3B;AAAA,UACA;AAAA,QACF;AAAA,QACA;AAAA,SACI,OAdL;AAAA,QAgBE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,OAAO,cAAc;AAEd,IAAM,gBAAgB,WAA2C,CAAC,OAAO,QAAQ;AACtF,SAAO,oBAAC,yCAAW,QAAX,EAAkB,KAAU,SAAQ,YAAU;AACxD,CAAC;AACD,cAAc,cAAc;AAErB,IAAM,kBAAkB,WAA2C,CAAC,OAAO,QAAQ;AACxF,SAAO,oBAAC,yCAAW,QAAX,EAAkB,KAAU,SAAQ,cAAY;AAC1D,CAAC;AACD,gBAAgB,cAAc;","names":[]}
|
|
@@ -10,9 +10,9 @@ import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
var Accordion = forwardRef(
|
|
12
12
|
(_a, ref) => {
|
|
13
|
-
var _b = _a, {
|
|
13
|
+
var _b = _a, { children, className, indent = true } = _b, rest = __objRest(_b, ["children", "className", "indent"]);
|
|
14
14
|
return /* @__PURE__ */ jsx(
|
|
15
|
-
|
|
15
|
+
"div",
|
|
16
16
|
__spreadProps(__spreadValues({}, rest), {
|
|
17
17
|
className: clsx(
|
|
18
18
|
"hds-accordion",
|
|
@@ -30,4 +30,4 @@ Accordion.displayName = "Accordion";
|
|
|
30
30
|
export {
|
|
31
31
|
Accordion
|
|
32
32
|
};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
33
|
+
//# sourceMappingURL=chunk-KPGSRU4I.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/accordion/accordion.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactElement } from \"react\";\nimport { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport type { AccordionItemProps } from \"./accordion-item\";\n\nexport interface AccordionProps extends HTMLAttributes<HTMLDivElement> {\n /**\n * Accepts type of <AccordionItem/>\n */\n children: ReactElement<AccordionItemProps> | ReactElement<AccordionItemProps>[];\n\n /**\n * Adds padding to the left of the accordion\n */\n indent?: boolean;\n}\n\nexport const Accordion = forwardRef<HTMLDivElement, AccordionProps>(\n ({ children, className, indent = true, ...rest }, ref) => {\n return (\n <div\n {...rest}\n className={clsx(\n \"hds-accordion\",\n !indent && \"hds-accordion--no-indent\",\n className as undefined,\n )}\n ref={ref}\n >\n {children}\n </div>\n );\n },\n);\n\nAccordion.displayName = \"Accordion\";\n"],"mappings":";;;;;;;AACA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AAkBf;AAHC,IAAM,YAAY;AAAA,EACvB,CAAC,IAAiD,QAAQ;AAAzD,iBAAE,YAAU,WAAW,SAAS,KAlBnC,IAkBG,IAAyC,iBAAzC,IAAyC,CAAvC,YAAU,aAAW;AACtB,WACE;AAAA,MAAC;AAAA,uCACK,OADL;AAAA,QAEC,WAAW;AAAA,UACT;AAAA,UACA,CAAC,UAAU;AAAA,UACX;AAAA,QACF;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,UAAU,cAAc;","names":[]}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
FooterLinkSection,
|
|
5
5
|
FooterLinkSections,
|
|
6
6
|
FooterLogo
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HFXVRPBA.mjs";
|
|
8
8
|
|
|
9
9
|
// src/footer/index.tsx
|
|
10
10
|
var FooterComponent = Footer;
|
|
@@ -16,4 +16,4 @@ FooterComponent.LinkSection = FooterLinkSection;
|
|
|
16
16
|
export {
|
|
17
17
|
FooterComponent
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# sourceMappingURL=chunk-LTTJWLS7.mjs.map
|
|
@@ -8,10 +8,12 @@ import {
|
|
|
8
8
|
import "react";
|
|
9
9
|
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
10
10
|
import { forwardRef } from "react";
|
|
11
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
11
12
|
import { jsx } from "react/jsx-runtime";
|
|
12
13
|
var Link = forwardRef(
|
|
13
14
|
(_a, ref) => {
|
|
14
|
-
var _b = _a, {
|
|
15
|
+
var _b = _a, { asChild, children, variant = "underline", size = "medium", className } = _b, rest = __objRest(_b, ["asChild", "children", "variant", "size", "className"]);
|
|
16
|
+
const Component = asChild ? Slot : "a";
|
|
15
17
|
return /* @__PURE__ */ jsx(
|
|
16
18
|
Component,
|
|
17
19
|
__spreadProps(__spreadValues({
|
|
@@ -33,4 +35,4 @@ Link.displayName = "Link";
|
|
|
33
35
|
export {
|
|
34
36
|
Link
|
|
35
37
|
};
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-MJ2DZH3N.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/link/link.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\nimport { Slot } from \"@radix-ui/react-slot\";\n\nexport interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {\n /**\n * The visual style of the link\n */\n variant?: \"underline\" | \"solid\" | \"inverted\" | \"no-underline\";\n\n /**\n * Font size of the link\n */\n size?: \"small\" | \"medium\" | \"large\";\n\n children: React.ReactNode;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\n\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(\n ({ asChild, children, variant = \"underline\", size = \"medium\", className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"a\";\n return (\n <Component\n className={clsx(\n \"hds-link\",\n variant !== \"underline\" && `hds-link--${variant}`,\n size !== \"medium\" && `hds-link--${size}`,\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nLink.displayName = \"Link\";\n"],"mappings":";;;;;;;AAAA,OAAuB;AACvB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AA2Bf;AAJC,IAAM,OAAO;AAAA,EAClB,CAAC,IAAmF,QAAQ;AAA3F,iBAAE,WAAS,UAAU,UAAU,aAAa,OAAO,UAAU,UA3BhE,IA2BG,IAA2E,iBAA3E,IAA2E,CAAzE,WAAS,YAAU,WAAuB,QAAiB;AAC5D,UAAM,YAAY,UAAU,OAAO;AACnC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,UACT;AAAA,UACA,YAAY,eAAe,aAAa,OAAO;AAAA,UAC/C,SAAS,YAAY,aAAa,IAAI;AAAA,UACtC;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InputGroup
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P6WIBHQH.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -33,4 +33,4 @@ Select.displayName = "Select";
|
|
|
33
33
|
export {
|
|
34
34
|
Select
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
36
|
+
//# sourceMappingURL=chunk-NAIBK23T.mjs.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-R4SQKVDQ.mjs";
|
|
6
|
+
|
|
7
|
+
// src/badge/badge.tsx
|
|
8
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
9
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
10
|
+
import { forwardRef } from "react";
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
var Badge = forwardRef((_a, ref) => {
|
|
13
|
+
var _b = _a, { children, asChild, variant, size = "small", className } = _b, rest = __objRest(_b, ["children", "asChild", "variant", "size", "className"]);
|
|
14
|
+
const Component = asChild ? Slot : "span";
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
Component,
|
|
17
|
+
__spreadProps(__spreadValues({
|
|
18
|
+
ref,
|
|
19
|
+
className: clsx(
|
|
20
|
+
"hds-badge",
|
|
21
|
+
`hds-badge--${size}`,
|
|
22
|
+
`hds-badge--${variant}`,
|
|
23
|
+
className
|
|
24
|
+
)
|
|
25
|
+
}, rest), {
|
|
26
|
+
children
|
|
27
|
+
})
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
Badge.displayName = "Badge";
|
|
31
|
+
var LighterBadge = forwardRef((props, ref) => {
|
|
32
|
+
return /* @__PURE__ */ jsx(Badge, __spreadProps(__spreadValues({}, props), { ref, variant: "lighter" }));
|
|
33
|
+
});
|
|
34
|
+
LighterBadge.displayName = "LighterBadge";
|
|
35
|
+
var DarkBadge = forwardRef((props, ref) => {
|
|
36
|
+
return /* @__PURE__ */ jsx(Badge, __spreadProps(__spreadValues({}, props), { ref, variant: "dark" }));
|
|
37
|
+
});
|
|
38
|
+
DarkBadge.displayName = "DarkBadge";
|
|
39
|
+
var WhiteBadge = forwardRef((props, ref) => {
|
|
40
|
+
return /* @__PURE__ */ jsx(Badge, __spreadProps(__spreadValues({}, props), { ref, variant: "white" }));
|
|
41
|
+
});
|
|
42
|
+
WhiteBadge.displayName = "WhiteBadge";
|
|
43
|
+
var WarningBadge = forwardRef((props, ref) => {
|
|
44
|
+
return /* @__PURE__ */ jsx(Badge, __spreadProps(__spreadValues({}, props), { ref, variant: "warning" }));
|
|
45
|
+
});
|
|
46
|
+
WarningBadge.displayName = "WarningBadge";
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
LighterBadge,
|
|
50
|
+
DarkBadge,
|
|
51
|
+
WhiteBadge,
|
|
52
|
+
WarningBadge
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=chunk-P6KBFRF4.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/badge/badge.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { forwardRef } from \"react\";\n\nexport interface BadgeProps extends React.AnchorHTMLAttributes<HTMLSpanElement> {\n children: React.ReactNode;\n\n /**\n * Font size of the badge\n *\n * @default \"small\"\n */\n size?: \"small\" | \"smaller\";\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\n\nconst Badge = forwardRef<\n HTMLSpanElement,\n BadgeProps & { variant: \"lighter\" | \"dark\" | \"white\" | \"warning\" }\n>(({ children, asChild, variant, size = \"small\", className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"span\";\n return (\n <Component\n ref={ref}\n className={clsx(\n \"hds-badge\",\n `hds-badge--${size}`,\n `hds-badge--${variant}`,\n className as undefined,\n )}\n {...rest}\n >\n {children}\n </Component>\n );\n});\nBadge.displayName = \"Badge\";\n\nexport const LighterBadge = forwardRef<HTMLSpanElement, BadgeProps>((props, ref) => {\n return <Badge {...props} ref={ref} variant=\"lighter\" />;\n});\nLighterBadge.displayName = \"LighterBadge\";\n\nexport const DarkBadge = forwardRef<HTMLSpanElement, BadgeProps>((props, ref) => {\n return <Badge {...props} ref={ref} variant=\"dark\" />;\n});\nDarkBadge.displayName = \"DarkBadge\";\n\nexport const WhiteBadge = forwardRef<HTMLSpanElement, BadgeProps>((props, ref) => {\n return <Badge {...props} ref={ref} variant=\"white\" />;\n});\nWhiteBadge.displayName = \"WhiteBadge\";\n\nexport const WarningBadge = forwardRef<HTMLSpanElement, BadgeProps>((props, ref) => {\n return <Badge {...props} ref={ref} variant=\"warning\" />;\n});\nWarningBadge.displayName = \"WarningBadge\";\n"],"mappings":";;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AA0BvB;AANJ,IAAM,QAAQ,WAGZ,CAAC,IAAoE,QAAQ;AAA5E,eAAE,YAAU,SAAS,SAAS,OAAO,SAAS,UAzBjD,IAyBG,IAA4D,iBAA5D,IAA4D,CAA1D,YAAU,WAAS,WAAS,QAAgB;AAC/C,QAAM,YAAY,UAAU,OAAO;AACnC,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA,cAAc,IAAI;AAAA,QAClB,cAAc,OAAO;AAAA,QACrB;AAAA,MACF;AAAA,OACI,OARL;AAAA,MAUE;AAAA;AAAA,EACH;AAEJ,CAAC;AACD,MAAM,cAAc;AAEb,IAAM,eAAe,WAAwC,CAAC,OAAO,QAAQ;AAClF,SAAO,oBAAC,wCAAU,QAAV,EAAiB,KAAU,SAAQ,YAAU;AACvD,CAAC;AACD,aAAa,cAAc;AAEpB,IAAM,YAAY,WAAwC,CAAC,OAAO,QAAQ;AAC/E,SAAO,oBAAC,wCAAU,QAAV,EAAiB,KAAU,SAAQ,SAAO;AACpD,CAAC;AACD,UAAU,cAAc;AAEjB,IAAM,aAAa,WAAwC,CAAC,OAAO,QAAQ;AAChF,SAAO,oBAAC,wCAAU,QAAV,EAAiB,KAAU,SAAQ,UAAQ;AACrD,CAAC;AACD,WAAW,cAAc;AAElB,IAAM,eAAe,WAAwC,CAAC,OAAO,QAAQ;AAClF,SAAO,oBAAC,wCAAU,QAAV,EAAiB,KAAU,SAAQ,YAAU;AACvD,CAAC;AACD,aAAa,cAAc;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ErrorMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DFU2THGC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -99,4 +99,4 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
|
|
|
99
99
|
export {
|
|
100
100
|
InputGroup
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
102
|
+
//# sourceMappingURL=chunk-P6WIBHQH.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BoxComponent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3NL3TOZF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -51,4 +51,4 @@ HelpText.displayName = "HelpText";
|
|
|
51
51
|
export {
|
|
52
52
|
HelpText
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=chunk-
|
|
54
|
+
//# sourceMappingURL=chunk-PLXB3TNA.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/help-text/help-text.tsx"],"sourcesContent":["import * as Popover from \"@radix-ui/react-popover\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\nimport { Box } from \"../box\";\n\ninterface HelpTextProps extends React.HTMLAttributes<HTMLButtonElement> {\n className?: string;\n\n /**\n * The content of the help text, often a word or phrase that could use some explanation\n */\n children: React.ReactNode;\n\n /**\n * The help text that will be shown when the user clicks the trigger\n */\n helpText: React.ReactNode;\n\n /**\n * The title of the help text. Used by screen readers and if the user hover over the help text\n */\n title?: string;\n\n /**\n * Props for the `Box` that contains the help text\n */\n boxProps?: React.ComponentProps<typeof Box>;\n\n /**\n * The side of the trigger the popover should be attached to\n *\n * @default \"top\"\n */\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n\n /**\n * The alignment of the popover content\n *\n * @default \"start\"\n */\n align?: \"center\" | \"end\" | \"start\";\n}\n\n/**\n * Show a help text for a word or phrase when clicked\n *\n * Useful for providing explanations for domain-specific terms, acronyms or phrases that could do with further elaboration\n *\n * @example\n * ```tsx\n * <p>\n * En annen avgjørende faktor for avgifter er om nettbutikken er registrert i{\" \"}\n * <HelpText helpText={`VOEC er en forkortelse for \"VAT on E-commerce\" (mva. på e-handel).`}>\n * VOEC\n * </HelpText>\n * </p>\n * ```\n */\nexport const HelpText = forwardRef<HTMLButtonElement, HelpTextProps>(\n (\n { children, className, helpText, title, side = \"top\", align = \"start\", boxProps, ...rest },\n ref,\n ) => {\n return (\n // NOTE: Using radix's [Popover component](https://www.radix-ui.com/primitives/docs/components/popover)\n // In the future we can use the native popover api, but as of writing, though all browsers support it\n // it's not far enough back to be used in production\n // https://caniuse.com/mdn-html_elements_input_popovertarget\n <Popover.Root>\n <Popover.Trigger asChild>\n <button\n ref={ref}\n className={clsx(\"hds-help-text-button\", className as undefined)}\n title={title}\n type=\"button\"\n {...rest}\n >\n {children}\n </button>\n </Popover.Trigger>\n <Popover.Portal>\n <Popover.Content asChild side={side} align={align}>\n <Box\n {...boxProps}\n className={clsx(\"hds-help-text-box\", boxProps?.className as undefined)}\n >\n <Popover.Close asChild>\n <Box.CloseButton />\n </Popover.Close>\n {helpText}\n </Box>\n </Popover.Content>\n </Popover.Portal>\n </Popover.Root>\n );\n },\n);\nHelpText.displayName = \"HelpText\";\n"],"mappings":";;;;;;;;;;AAAA,YAAY,aAAa;AACzB,SAAS,YAAY;AACrB,SAAS,kBAAkB;AAoEjB,cAYE,YAZF;AAZH,IAAM,WAAW;AAAA,EACtB,CACE,IACA,QACG;AAFH,iBAAE,YAAU,WAAW,UAAU,OAAO,OAAO,OAAO,QAAQ,SAAS,SA5D3E,IA4DI,IAAoF,iBAApF,IAAoF,CAAlF,YAAU,aAAW,YAAU,SAAO,QAAc,SAAiB;AAGvE;AAAA;AAAA;AAAA;AAAA;AAAA,MAKE,qBAAS,cAAR,EACC;AAAA,4BAAS,iBAAR,EAAgB,SAAO,MACtB;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YACA,WAAW,KAAK,wBAAwB,SAAsB;AAAA,YAC9D;AAAA,YACA,MAAK;AAAA,aACD,OALL;AAAA,YAOE;AAAA;AAAA,QACH,GACF;AAAA,QACA,oBAAS,gBAAR,EACC,8BAAS,iBAAR,EAAgB,SAAO,MAAC,MAAY,OACnC;AAAA,UAAC;AAAA,2CACK,WADL;AAAA,YAEC,WAAW,KAAK,qBAAqB,qCAAU,SAAsB;AAAA,YAErE;AAAA,kCAAS,eAAR,EAAc,SAAO,MACpB,8BAAC,aAAI,aAAJ,EAAgB,GACnB;AAAA,cACC;AAAA;AAAA;AAAA,QACH,GACF,GACF;AAAA,SACF;AAAA;AAAA,EAEJ;AACF;AACA,SAAS,cAAc;","names":[]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Card,
|
|
3
|
+
CardBody,
|
|
4
|
+
CardBodyAction,
|
|
5
|
+
CardBodyActionArrow,
|
|
6
|
+
CardBodyDescription,
|
|
7
|
+
CardBodyHeader,
|
|
8
|
+
CardBodyHeaderOverline,
|
|
9
|
+
CardBodyHeaderTitle,
|
|
10
|
+
CardMedia,
|
|
11
|
+
CardMediaImg
|
|
12
|
+
} from "./chunk-CIHZDFSQ.mjs";
|
|
13
|
+
|
|
14
|
+
// src/card/index.tsx
|
|
15
|
+
var CardComponent = Card;
|
|
16
|
+
CardComponent.Media = CardMedia;
|
|
17
|
+
CardComponent.MediaImg = CardMediaImg;
|
|
18
|
+
CardComponent.Body = CardBody;
|
|
19
|
+
CardComponent.BodyHeader = CardBodyHeader;
|
|
20
|
+
CardComponent.BodyHeaderOverline = CardBodyHeaderOverline;
|
|
21
|
+
CardComponent.BodyHeaderTitle = CardBodyHeaderTitle;
|
|
22
|
+
CardComponent.BodyDescription = CardBodyDescription;
|
|
23
|
+
CardComponent.BodyAction = CardBodyAction;
|
|
24
|
+
CardComponent.BodyActionArrow = CardBodyActionArrow;
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
CardComponent
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=chunk-PT5H3QV6.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/card/index.tsx"],"sourcesContent":["import {\n Card,\n CardMedia,\n CardMediaImg,\n CardBody,\n CardBodyHeader,\n CardBodyHeaderOverline,\n CardBodyHeaderTitle,\n CardBodyDescription,\n CardBodyAction,\n CardBodyActionArrow,\n} from \"./card\";\n\nconst CardComponent = Card as typeof Card & {\n Media: typeof CardMedia;\n MediaImg: typeof CardMediaImg;\n Body: typeof CardBody;\n BodyHeader: typeof CardBodyHeader;\n BodyHeaderOverline: typeof CardBodyHeaderOverline;\n BodyHeaderTitle: typeof CardBodyHeaderTitle;\n BodyDescription: typeof CardBodyDescription;\n BodyAction: typeof CardBodyAction;\n BodyActionArrow: typeof CardBodyActionArrow;\n};\nCardComponent.Media = CardMedia;\nCardComponent.MediaImg = CardMediaImg;\nCardComponent.Body = CardBody;\nCardComponent.BodyHeader = CardBodyHeader;\nCardComponent.BodyHeaderOverline = CardBodyHeaderOverline;\nCardComponent.BodyHeaderTitle = CardBodyHeaderTitle;\nCardComponent.BodyDescription = CardBodyDescription;\nCardComponent.BodyAction = CardBodyAction;\nCardComponent.BodyActionArrow = CardBodyActionArrow;\n\nexport {\n CardComponent as Card,\n CardMedia,\n CardMediaImg,\n CardBody,\n CardBodyHeader,\n CardBodyHeaderOverline,\n CardBodyHeaderTitle,\n CardBodyDescription,\n CardBodyAction,\n CardBodyActionArrow,\n};\n\nexport type * from \"./card\";\n"],"mappings":";;;;;;;;;;;;;;AAaA,IAAM,gBAAgB;AAWtB,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,OAAO;AACrB,cAAc,aAAa;AAC3B,cAAc,qBAAqB;AACnC,cAAc,kBAAkB;AAChC,cAAc,kBAAkB;AAChC,cAAc,aAAa;AAC3B,cAAc,kBAAkB;","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InputGroup
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P6WIBHQH.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useMergeRefs
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DEX36MFK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__objRest,
|
|
9
9
|
__spreadProps,
|
|
@@ -83,4 +83,4 @@ DatePicker.displayName = "DatePicker";
|
|
|
83
83
|
export {
|
|
84
84
|
DatePicker
|
|
85
85
|
};
|
|
86
|
-
//# sourceMappingURL=chunk-
|
|
86
|
+
//# sourceMappingURL=chunk-QY2K3GWU.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Fieldset
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6N4TGRZB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -31,4 +31,4 @@ export {
|
|
|
31
31
|
useRadioGroupContext,
|
|
32
32
|
RadioGroup
|
|
33
33
|
};
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-RYM3LM7K.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Box
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ENKVTAJB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
// src/message/message.tsx
|
|
11
11
|
import { forwardRef } from "react";
|
|
12
12
|
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
13
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
13
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
15
|
var Message = forwardRef(
|
|
15
16
|
(_a, ref) => {
|
|
@@ -31,7 +32,8 @@ var Message = forwardRef(
|
|
|
31
32
|
Message.displayName = "Message";
|
|
32
33
|
var MessageTitle = forwardRef(
|
|
33
34
|
(_a, ref) => {
|
|
34
|
-
var _b = _a, {
|
|
35
|
+
var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
|
|
36
|
+
const Component = asChild ? Slot : "div";
|
|
35
37
|
return /* @__PURE__ */ jsx(
|
|
36
38
|
Component,
|
|
37
39
|
__spreadValues({
|
|
@@ -44,7 +46,8 @@ var MessageTitle = forwardRef(
|
|
|
44
46
|
MessageTitle.displayName = "Message.Title";
|
|
45
47
|
var MessageDescription = forwardRef(
|
|
46
48
|
(_a, ref) => {
|
|
47
|
-
var _b = _a, {
|
|
49
|
+
var _b = _a, { asChild, className } = _b, rest = __objRest(_b, ["asChild", "className"]);
|
|
50
|
+
const Component = asChild ? Slot : "div";
|
|
48
51
|
return /* @__PURE__ */ jsx(
|
|
49
52
|
Component,
|
|
50
53
|
__spreadValues({
|
|
@@ -61,4 +64,4 @@ export {
|
|
|
61
64
|
MessageTitle,
|
|
62
65
|
MessageDescription
|
|
63
66
|
};
|
|
64
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-TQDUBRCZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/message/message.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { Box, type BoxProps } from \"../box/box\";\n\nexport type MessageProps = (\n | {\n variant?: \"success\" | \"attention\" | \"warning\";\n icon?: never;\n iconClassName?: never;\n }\n | {\n variant: \"neutral\";\n icon?: React.ReactNode;\n iconClassName?: string;\n }\n) &\n Omit<BoxProps, \"variant\" | \"asChild\">;\n\nexport const Message = forwardRef<HTMLDivElement, MessageProps>(\n ({ children, className, variant = \"success\", icon, iconClassName, ...rest }, ref) => {\n return (\n <Box\n className={clsx(`hds-message`, `hds-message--${variant}`, className as undefined)}\n ref={ref}\n {...rest}\n >\n {variant === \"neutral\" && (\n <div className={clsx(\"hds-message--neutral__icon\", iconClassName as undefined)}>\n {icon}\n </div>\n )}\n {children}\n </Box>\n );\n },\n);\nMessage.displayName = \"Message\";\n\ninterface MessageTitleProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\nexport const MessageTitle = forwardRef<HTMLParagraphElement, MessageTitleProps>(\n ({ asChild, className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n return (\n <Component\n className={clsx(\"hds-message__title\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageTitle.displayName = \"Message.Title\";\n\ninterface MessageDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n}\nexport const MessageDescription = forwardRef<HTMLParagraphElement, MessageDescriptionProps>(\n ({ asChild, className, ...rest }, ref) => {\n const Component = asChild ? Slot : \"div\";\n return (\n <Component\n className={clsx(\"hds-message__description\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nMessageDescription.displayName = \"Message.Description\";\n"],"mappings":";;;;;;;;;;AAAA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,YAAY;AAoBf,SAMI,KANJ;AAHC,IAAM,UAAU;AAAA,EACrB,CAAC,IAA4E,QAAQ;AAApF,iBAAE,YAAU,WAAW,UAAU,WAAW,MAAM,cApBrD,IAoBG,IAAoE,iBAApE,IAAoE,CAAlE,YAAU,aAAW,WAAqB,QAAM;AACjD,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,KAAK,eAAe,gBAAgB,OAAO,IAAI,SAAsB;AAAA,QAChF;AAAA,SACI,OAHL;AAAA,QAKE;AAAA,sBAAY,aACX,oBAAC,SAAI,WAAW,KAAK,8BAA8B,aAA0B,GAC1E,gBACH;AAAA,UAED;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,QAAQ,cAAc;AAUf,IAAM,eAAe;AAAA,EAC1B,CAAC,IAAiC,QAAQ;AAAzC,iBAAE,WAAS,UAhDd,IAgDG,IAAyB,iBAAzB,IAAyB,CAAvB,WAAS;AACV,UAAM,YAAY,UAAU,OAAO;AACnC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,KAAK,sBAAsB,SAAsB;AAAA,QAC5D;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,aAAa,cAAc;AAUpB,IAAM,qBAAqB;AAAA,EAChC,CAAC,IAAiC,QAAQ;AAAzC,iBAAE,WAAS,UAtEd,IAsEG,IAAyB,iBAAzB,IAAyB,CAAvB,WAAS;AACV,UAAM,YAAY,UAAU,OAAO;AACnC,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,KAAK,4BAA4B,SAAsB;AAAA,QAClE;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,mBAAmB,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/show-more/show-more.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef } from \"react\";\n\ntype Variant =\n | {\n variant?: \"show-more\";\n expanded?: never;\n }\n | {\n variant: \"show-more-show-less\";\n expanded: boolean;\n };\n\nexport type ShowMoreProps = React.HTMLAttributes<HTMLButtonElement> & {\n text: React.ReactNode;\n} & Variant;\n\n/**\n * Simple button for triggering more content.\n *\n * You have to add the logic for what happens when the button is clicked yourself.\n *\n * @example\n * ```tsx\n * function Content() {\n * const [items, fetchMoreItems, moreItemsAvailable] = useYourData();\n * function onShowMoreItems() {\n * fetchMoreItems();\n * }\n * return (\n * <>\n * <ul>\n * {items.map((item) => (\n * <li key={item.id}>{item.text}</li>\n * ))}\n * </ul>\n * {moreItemsAvailable ?\n * <ShowMoreButton className=\"mt-8\" onClick={onShowMoreItems} lang=\"en\" /> :\n * null\n * }\n * </>\n * )\n * }\n * ```\n */\nexport const ShowMoreButton = forwardRef<HTMLButtonElement, ShowMoreProps>(\n ({ text, variant, expanded, className, ...rest }, ref) => {\n return (\n <button\n ref={ref}\n className={clsx(\n \"hds-show-more\",\n variant === \"show-more-show-less\" && \"hds-show-more--show-less\",\n className as undefined,\n )}\n data-state={expanded ? \"expanded\" : undefined}\n type=\"button\"\n {...rest}\n >\n {text}\n <span className={clsx(\"hds-show-more__icon\")} />\n </button>\n );\n },\n);\nShowMoreButton.displayName = \"ShowMoreButton\";\n"],"mappings":";;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,kBAAkB;AA+CrB,SAYE,KAZF;AAHC,IAAM,iBAAiB;AAAA,EAC5B,CAAC,IAAiD,QAAQ;AAAzD,iBAAE,QAAM,SAAS,UAAU,UA9C9B,IA8CG,IAAyC,iBAAzC,IAAyC,CAAvC,QAAM,WAAS,YAAU;AAC1B,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT;AAAA,UACA,YAAY,yBAAyB;AAAA,UACrC;AAAA,QACF;AAAA,QACA,cAAY,WAAW,aAAa;AAAA,QACpC,MAAK;AAAA,SACD,OATL;AAAA,QAWE;AAAA;AAAA,UACD,oBAAC,UAAK,WAAW,KAAK,qBAAqB,GAAG;AAAA;AAAA;AAAA,IAChD;AAAA,EAEJ;AACF;AACA,eAAe,cAAc;","names":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useFieldsetContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6N4TGRZB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ErrorMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DFU2THGC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__objRest,
|
|
9
9
|
__spreadProps,
|
|
@@ -73,4 +73,4 @@ Checkbox.displayName = "Checkbox";
|
|
|
73
73
|
export {
|
|
74
74
|
Checkbox
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-UMYOYHUI.mjs.map
|
|
@@ -6,11 +6,13 @@ import {
|
|
|
6
6
|
|
|
7
7
|
// src/layout/container/container.tsx
|
|
8
8
|
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
9
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
9
10
|
import { forwardRef } from "react";
|
|
10
11
|
import { jsx } from "react/jsx-runtime";
|
|
11
12
|
var Container = forwardRef(
|
|
12
13
|
(_a, ref) => {
|
|
13
|
-
var _b = _a, { as:
|
|
14
|
+
var _b = _a, { as: Tag = "div", asChild, className, children, variant } = _b, rest = __objRest(_b, ["as", "asChild", "className", "children", "variant"]);
|
|
15
|
+
const Component = asChild ? Slot : Tag;
|
|
14
16
|
return /* @__PURE__ */ jsx(
|
|
15
17
|
Component,
|
|
16
18
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -30,4 +32,4 @@ Container.displayName = "Container";
|
|
|
30
32
|
export {
|
|
31
33
|
Container
|
|
32
34
|
};
|
|
33
|
-
//# sourceMappingURL=chunk-
|
|
35
|
+
//# sourceMappingURL=chunk-USXU6ULZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/layout/container/container.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport type { HTMLAttributes, ReactNode } from \"react\";\nimport { forwardRef } from \"react\";\n\nexport interface ContainerProps extends HTMLAttributes<HTMLDivElement> {\n variant?: \"default\" | \"slim\";\n children: ReactNode;\n\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n *\n * @default false\n */\n asChild?: boolean;\n\n /**\n * Convienence prop to change the rendered element.\n *\n * Use {@link ContainerProps.asChild} if you need more control of the rendered element.\n */\n as?: \"div\" | \"section\" | \"aside\" | \"main\" | \"article\" | \"header\" | \"footer\";\n}\n\n/**\n * Container is a layout component that is used to wrap content.\n * It ensures a max-width and minimum spacing on the sides.\n */\nexport const Container = forwardRef<HTMLDivElement, ContainerProps>(\n ({ as: Tag = \"div\", asChild, className, children, variant, ...rest }, ref) => {\n const Component = asChild ? Slot : Tag;\n return (\n <Component\n {...rest}\n className={clsx(\n \"hds-container\",\n { \"hds-container--slim\": variant === \"slim\" },\n className as undefined,\n )}\n ref={ref}\n >\n {children}\n </Component>\n );\n },\n);\nContainer.displayName = \"Container\";\n"],"mappings":";;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,YAAY;AAErB,SAAS,kBAAkB;AA6BrB;AAJC,IAAM,YAAY;AAAA,EACvB,CAAC,IAAqE,QAAQ;AAA7E,iBAAE,MAAI,MAAM,OAAO,SAAS,WAAW,UAAU,QA7BpD,IA6BG,IAA6D,iBAA7D,IAA6D,CAA3D,MAAiB,WAAS,aAAW,YAAU;AAChD,UAAM,YAAY,UAAU,OAAO;AACnC,WACE;AAAA,MAAC;AAAA,uCACK,OADL;AAAA,QAEC,WAAW;AAAA,UACT;AAAA,UACA,EAAE,uBAAuB,YAAY,OAAO;AAAA,UAC5C;AAAA,QACF;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,UAAU,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/navbar/icons.tsx"],"sourcesContent":["export function CloseIcon() {\n return (\n <svg aria-hidden viewBox=\"0 0 384 512\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n}\n\nexport function MenuIcon() {\n return (\n <svg role=\"img\" viewBox=\"0 0 448 512\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M0 88C0 74.7 10.7 64 24 64H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H24C10.7 112 0 101.3 0 88zM0 248c0-13.3 10.7-24 24-24H424c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24zM448 408c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24H424c13.3 0 24 10.7 24 24z\"\n fill=\"currentColor\"\n />\n </svg>\n );\n}\n"],"mappings":";AAGM;AAHC,SAAS,YAAY;AAC1B,SACE,oBAAC,SAAI,eAAW,MAAC,SAAQ,eAAc,OAAM,8BAC3C;AAAA,IAAC;AAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA;AAAA,EACP,GACF;AAEJ;AAEO,SAAS,WAAW;AACzB,SACE,oBAAC,SAAI,MAAK,OAAM,SAAQ,eAAc,OAAM,8BAC1C;AAAA,IAAC;AAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA;AAAA,EACP,GACF;AAEJ;","names":[]}
|