@postenbring/hedwig-react 0.0.76 → 0.0.78
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 +503 -497
- package/dist/_tsup-dts-rollup.d.ts +503 -497
- 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-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-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-PYR6QEIS.mjs → chunk-MPHMD4LO.mjs} +38 -53
- package/dist/chunk-MPHMD4LO.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-XDYXNQDV.mjs +33 -0
- package/dist/chunk-XDYXNQDV.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 +641 -655
- 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 +641 -655
- 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 +113 -80
- 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 +35 -50
- 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 +3 -3
- 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
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
|
|
3
|
-
import type { ButtonHTMLAttributes } from 'react';
|
|
4
3
|
import { ChangeEventHandler } from 'react';
|
|
5
|
-
import { ComponentPropsWithRef } from 'react';
|
|
6
|
-
import { ComponentType } from 'react';
|
|
7
4
|
import { Context } from 'react';
|
|
8
5
|
import type { CSSProperties } from 'react';
|
|
9
|
-
import { ElementType } from 'react';
|
|
10
|
-
import { FC } from 'react';
|
|
11
6
|
import type { FieldsetHTMLAttributes } from 'react';
|
|
12
7
|
import { ForwardRefExoticComponent } from 'react';
|
|
13
|
-
import { FunctionComponent } from 'react';
|
|
14
8
|
import { HTMLAttributes } from 'react';
|
|
15
9
|
import { InputHTMLAttributes } from 'react';
|
|
16
10
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -26,14 +20,9 @@ import { SelectHTMLAttributes } from 'react';
|
|
|
26
20
|
import type { StoryObj } from '@storybook/react';
|
|
27
21
|
import type { TextareaHTMLAttributes } from 'react';
|
|
28
22
|
|
|
29
|
-
export declare const Accordion_alias_2:
|
|
23
|
+
export declare const Accordion_alias_2: ForwardRefExoticComponent<AccordionProps & RefAttributes<HTMLDivElement>>;
|
|
30
24
|
|
|
31
|
-
declare const AccordionComponent: {
|
|
32
|
-
(props: AccordionProps & RefAttributes<HTMLDivElement>): ReactNode;
|
|
33
|
-
<As extends ElementType>(props: {
|
|
34
|
-
as?: As | undefined;
|
|
35
|
-
} & AccordionProps & Omit<ComponentPropsWithRef<As>, keyof AccordionProps>): ReactNode;
|
|
36
|
-
} & Pick<FC, "displayName"> & {
|
|
25
|
+
declare const AccordionComponent: ForwardRefExoticComponent<AccordionProps & RefAttributes<HTMLDivElement>> & {
|
|
37
26
|
Item: typeof AccordionItem;
|
|
38
27
|
Header: typeof AccordionHeader;
|
|
39
28
|
Content: typeof AccordionContent;
|
|
@@ -42,13 +31,13 @@ export { AccordionComponent as Accordion }
|
|
|
42
31
|
export { AccordionComponent as Accordion_alias_1 }
|
|
43
32
|
export { AccordionComponent as Accordion_alias_3 }
|
|
44
33
|
|
|
45
|
-
declare const AccordionContent:
|
|
34
|
+
declare const AccordionContent: ForwardRefExoticComponent<AccordionContentProps & RefAttributes<HTMLDivElement>>;
|
|
46
35
|
export { AccordionContent }
|
|
47
36
|
export { AccordionContent as AccordionContent_alias_1 }
|
|
48
37
|
export { AccordionContent as AccordionContent_alias_2 }
|
|
49
38
|
export { AccordionContent as AccordionContent_alias_3 }
|
|
50
39
|
|
|
51
|
-
declare interface AccordionContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
40
|
+
declare interface AccordionContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
52
41
|
children: ReactNode;
|
|
53
42
|
}
|
|
54
43
|
export { AccordionContentProps }
|
|
@@ -56,13 +45,13 @@ export { AccordionContentProps as AccordionContentProps_alias_1 }
|
|
|
56
45
|
export { AccordionContentProps as AccordionContentProps_alias_2 }
|
|
57
46
|
export { AccordionContentProps as AccordionContentProps_alias_3 }
|
|
58
47
|
|
|
59
|
-
declare const AccordionHeader:
|
|
48
|
+
declare const AccordionHeader: ForwardRefExoticComponent<AccordionHeaderProps & RefAttributes<HTMLButtonElement>>;
|
|
60
49
|
export { AccordionHeader }
|
|
61
50
|
export { AccordionHeader as AccordionHeader_alias_1 }
|
|
62
51
|
export { AccordionHeader as AccordionHeader_alias_2 }
|
|
63
52
|
export { AccordionHeader as AccordionHeader_alias_3 }
|
|
64
53
|
|
|
65
|
-
declare interface AccordionHeaderProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
54
|
+
declare interface AccordionHeaderProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
66
55
|
children: ReactNode;
|
|
67
56
|
}
|
|
68
57
|
export { AccordionHeaderProps }
|
|
@@ -70,7 +59,7 @@ export { AccordionHeaderProps as AccordionHeaderProps_alias_1 }
|
|
|
70
59
|
export { AccordionHeaderProps as AccordionHeaderProps_alias_2 }
|
|
71
60
|
export { AccordionHeaderProps as AccordionHeaderProps_alias_3 }
|
|
72
61
|
|
|
73
|
-
declare const AccordionItem:
|
|
62
|
+
declare const AccordionItem: ForwardRefExoticComponent<AccordionItemProps & RefAttributes<HTMLDivElement>>;
|
|
74
63
|
export { AccordionItem }
|
|
75
64
|
export { AccordionItem as AccordionItem_alias_1 }
|
|
76
65
|
export { AccordionItem as AccordionItem_alias_2 }
|
|
@@ -89,7 +78,7 @@ export declare interface AccordionItemContextProps {
|
|
|
89
78
|
setOpen: (open: boolean) => void;
|
|
90
79
|
}
|
|
91
80
|
|
|
92
|
-
declare interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
81
|
+
declare interface AccordionItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
93
82
|
/**
|
|
94
83
|
* Control the open state of the accordion manually
|
|
95
84
|
*/
|
|
@@ -121,7 +110,6 @@ declare interface AccordionProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
121
110
|
* Adds padding to the left of the accordion
|
|
122
111
|
*/
|
|
123
112
|
indent?: boolean;
|
|
124
|
-
className?: string;
|
|
125
113
|
}
|
|
126
114
|
export { AccordionProps }
|
|
127
115
|
export { AccordionProps as AccordionProps_alias_1 }
|
|
@@ -147,14 +135,14 @@ export declare const Attention: Story_21;
|
|
|
147
135
|
*
|
|
148
136
|
* **IMPORTANT** Do not pass any components with effects (like data fetching), as they will trigger twice.
|
|
149
137
|
*/
|
|
150
|
-
declare const AutoAnimateHeight:
|
|
138
|
+
declare const AutoAnimateHeight: ForwardRefExoticComponent<AutoAnimateHeightProps & RefAttributes<HTMLDivElement>>;
|
|
151
139
|
export { AutoAnimateHeight }
|
|
152
140
|
export { AutoAnimateHeight as AutoAnimateHeight_alias_1 }
|
|
153
141
|
export { AutoAnimateHeight as AutoAnimateHeight_alias_2 }
|
|
154
142
|
export { AutoAnimateHeight as AutoAnimateHeight_alias_3 }
|
|
155
143
|
export { AutoAnimateHeight as AutoAnimateHeight_alias_4 }
|
|
156
144
|
|
|
157
|
-
declare interface AutoAnimateHeightProps {
|
|
145
|
+
declare interface AutoAnimateHeightProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
158
146
|
/**
|
|
159
147
|
* Time of the animation, using the hedwig animation tokens
|
|
160
148
|
* quick: 0.1s
|
|
@@ -183,41 +171,31 @@ export { AutoAnimateHeightProps as AutoAnimateHeightProps_alias_2 }
|
|
|
183
171
|
export { AutoAnimateHeightProps as AutoAnimateHeightProps_alias_3 }
|
|
184
172
|
export { AutoAnimateHeightProps as AutoAnimateHeightProps_alias_4 }
|
|
185
173
|
|
|
186
|
-
declare
|
|
187
|
-
|
|
188
|
-
declare namespace Badge {
|
|
189
|
-
var displayName: string;
|
|
190
|
-
}
|
|
191
|
-
export { Badge }
|
|
192
|
-
export { Badge as Badge_alias_1 }
|
|
193
|
-
export { Badge as Badge_alias_2 }
|
|
194
|
-
export { Badge as Badge_alias_3 }
|
|
195
|
-
|
|
196
|
-
declare interface BadgeProps extends React_2.AnchorHTMLAttributes<HTMLSpanElement> {
|
|
174
|
+
declare interface BadgeProps extends React.AnchorHTMLAttributes<HTMLSpanElement> {
|
|
175
|
+
children: React.ReactNode;
|
|
197
176
|
/**
|
|
198
177
|
* Font size of the badge
|
|
178
|
+
*
|
|
179
|
+
* @default "small"
|
|
199
180
|
*/
|
|
200
181
|
size?: "small" | "smaller";
|
|
201
|
-
|
|
182
|
+
/**
|
|
183
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
184
|
+
*
|
|
185
|
+
* @default false
|
|
186
|
+
*/
|
|
187
|
+
asChild?: boolean;
|
|
202
188
|
}
|
|
203
189
|
export { BadgeProps }
|
|
204
190
|
export { BadgeProps as BadgeProps_alias_1 }
|
|
205
191
|
export { BadgeProps as BadgeProps_alias_2 }
|
|
206
192
|
export { BadgeProps as BadgeProps_alias_3 }
|
|
207
193
|
|
|
208
|
-
declare const BaseButton: OverridableComponent<ButtonProps & {
|
|
209
|
-
variant: "primary" | "secondary";
|
|
210
|
-
}, HTMLButtonElement>;
|
|
211
|
-
export { BaseButton }
|
|
212
|
-
export { BaseButton as BaseButton_alias_1 }
|
|
213
|
-
export { BaseButton as BaseButton_alias_2 }
|
|
214
|
-
export { BaseButton as BaseButton_alias_3 }
|
|
215
|
-
|
|
216
194
|
export declare const BoundedCheckbox: Story_8;
|
|
217
195
|
|
|
218
196
|
export declare const BoundedRadiobutton: Story_13;
|
|
219
197
|
|
|
220
|
-
export declare const Box_alias_2:
|
|
198
|
+
export declare const Box_alias_2: ForwardRefExoticComponent<BoxProps & RefAttributes<HTMLDivElement>>;
|
|
221
199
|
|
|
222
200
|
declare const BoxCloseButton: ForwardRefExoticComponent<BoxCloseButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
223
201
|
export { BoxCloseButton }
|
|
@@ -231,12 +209,7 @@ export { BoxCloseButtonProps as BoxCloseButtonProps_alias_1 }
|
|
|
231
209
|
export { BoxCloseButtonProps as BoxCloseButtonProps_alias_2 }
|
|
232
210
|
export { BoxCloseButtonProps as BoxCloseButtonProps_alias_3 }
|
|
233
211
|
|
|
234
|
-
declare const BoxComponent: {
|
|
235
|
-
(props: BoxProps & RefAttributes<HTMLDivElement>): ReactNode;
|
|
236
|
-
<As extends ElementType>(props: {
|
|
237
|
-
as?: As | undefined;
|
|
238
|
-
} & BoxProps & Omit<ComponentPropsWithRef<As>, keyof BoxProps>): ReactNode;
|
|
239
|
-
} & Pick<FC, "displayName"> & {
|
|
212
|
+
declare const BoxComponent: ForwardRefExoticComponent<BoxProps & RefAttributes<HTMLDivElement>> & {
|
|
240
213
|
CloseButton: typeof BoxCloseButton;
|
|
241
214
|
};
|
|
242
215
|
export { BoxComponent as Box }
|
|
@@ -244,11 +217,18 @@ export { BoxComponent as Box_alias_1 }
|
|
|
244
217
|
export { BoxComponent as Box_alias_3 }
|
|
245
218
|
|
|
246
219
|
declare interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
247
|
-
variant?: "light-grey" | "lighter" | "white" | "warning";
|
|
248
220
|
children?: React.ReactNode;
|
|
221
|
+
/**
|
|
222
|
+
* Color variant of the box
|
|
223
|
+
*
|
|
224
|
+
* @default "light-grey"
|
|
225
|
+
*/
|
|
226
|
+
variant?: "light-grey" | "lighter" | "white" | "warning";
|
|
249
227
|
/**
|
|
250
228
|
* If `true`, a close button will be shown.
|
|
251
229
|
* Use when you want to control the close button using the BoxCloseButton component.
|
|
230
|
+
*
|
|
231
|
+
* @default false
|
|
252
232
|
*/
|
|
253
233
|
closeable?: boolean;
|
|
254
234
|
/**
|
|
@@ -270,6 +250,12 @@ declare interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
270
250
|
* Props applied to the close button element.
|
|
271
251
|
*/
|
|
272
252
|
closeButtonProps?: BoxCloseButtonProps;
|
|
253
|
+
/**
|
|
254
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
255
|
+
*
|
|
256
|
+
* @default false
|
|
257
|
+
*/
|
|
258
|
+
asChild?: boolean;
|
|
273
259
|
}
|
|
274
260
|
export { BoxProps }
|
|
275
261
|
export { BoxProps as BoxProps_alias_1 }
|
|
@@ -279,7 +265,7 @@ export { BoxProps as BoxProps_alias_3 }
|
|
|
279
265
|
/**
|
|
280
266
|
* A breadcrumbs navigation menu
|
|
281
267
|
*
|
|
282
|
-
*
|
|
268
|
+
* @example
|
|
283
269
|
*
|
|
284
270
|
* ```tsx
|
|
285
271
|
* <Breadcrumbs data-testid="breadcrumbs">
|
|
@@ -328,6 +314,8 @@ declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonEleme
|
|
|
328
314
|
size?: "small" | "medium" | "large";
|
|
329
315
|
/**
|
|
330
316
|
* The background fill of the button
|
|
317
|
+
*
|
|
318
|
+
* @default "contained"
|
|
331
319
|
*/
|
|
332
320
|
fill?: "contained" | "outline";
|
|
333
321
|
/**
|
|
@@ -336,170 +324,154 @@ declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonEleme
|
|
|
336
324
|
*/
|
|
337
325
|
fullWidth?: boolean | "mobile";
|
|
338
326
|
/**
|
|
339
|
-
* Use an icon
|
|
327
|
+
* Use the button as an icon button
|
|
328
|
+
*
|
|
329
|
+
* Render the icon in `children`
|
|
340
330
|
*/
|
|
341
|
-
icon?:
|
|
342
|
-
|
|
331
|
+
icon?: boolean;
|
|
332
|
+
/**
|
|
333
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
334
|
+
*
|
|
335
|
+
* @default false
|
|
336
|
+
*/
|
|
337
|
+
asChild?: boolean;
|
|
343
338
|
}
|
|
344
339
|
export { ButtonProps }
|
|
345
340
|
export { ButtonProps as ButtonProps_alias_1 }
|
|
346
341
|
export { ButtonProps as ButtonProps_alias_2 }
|
|
347
342
|
export { ButtonProps as ButtonProps_alias_3 }
|
|
348
343
|
|
|
349
|
-
export declare const Card_alias_2:
|
|
344
|
+
export declare const Card_alias_2: ForwardRefExoticComponent<CardBaseProps & {
|
|
345
|
+
/**
|
|
346
|
+
* A Card should in most cases appear as a big link,
|
|
347
|
+
* but the actual link should just be the header title.
|
|
348
|
+
* To make life better for those with screen readers we should not make
|
|
349
|
+
* the entire card a link, as that would cause the entire card to be read
|
|
350
|
+
* as a link to the user. That would be perceived as information overload.
|
|
351
|
+
*/
|
|
352
|
+
as?: "article" | "div" | "aside" | "section" | undefined;
|
|
353
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
350
354
|
|
|
351
|
-
|
|
355
|
+
declare interface CardBaseProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
356
|
+
children: ReactNode;
|
|
352
357
|
/**
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
* the entire card a link, as that would cause the entire card to be read
|
|
357
|
-
* as a link to the user. That would be perceived as information overload.
|
|
358
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
359
|
+
*
|
|
360
|
+
* @default false
|
|
358
361
|
*/
|
|
359
|
-
|
|
360
|
-
}, HTMLDivElement>;
|
|
361
|
-
|
|
362
|
-
declare interface CardBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
363
|
-
children: ReactNode;
|
|
362
|
+
asChild?: boolean;
|
|
364
363
|
}
|
|
365
364
|
export { CardBaseProps }
|
|
366
365
|
export { CardBaseProps as CardBaseProps_alias_1 }
|
|
367
366
|
export { CardBaseProps as CardBaseProps_alias_2 }
|
|
368
367
|
export { CardBaseProps as CardBaseProps_alias_3 }
|
|
369
368
|
|
|
370
|
-
declare const CardBody:
|
|
369
|
+
declare const CardBody: ForwardRefExoticComponent<CardBaseProps & RefAttributes<HTMLDivElement>>;
|
|
371
370
|
export { CardBody }
|
|
372
371
|
export { CardBody as CardBody_alias_1 }
|
|
373
372
|
export { CardBody as CardBody_alias_2 }
|
|
374
373
|
export { CardBody as CardBody_alias_3 }
|
|
375
374
|
|
|
376
|
-
declare const CardBodyAction:
|
|
375
|
+
declare const CardBodyAction: ForwardRefExoticComponent<CardBaseProps & RefAttributes<HTMLDivElement>>;
|
|
377
376
|
export { CardBodyAction }
|
|
378
377
|
export { CardBodyAction as CardBodyAction_alias_1 }
|
|
379
378
|
export { CardBodyAction as CardBodyAction_alias_2 }
|
|
380
379
|
export { CardBodyAction as CardBodyAction_alias_3 }
|
|
381
380
|
|
|
382
|
-
declare const CardBodyActionArrow:
|
|
381
|
+
declare const CardBodyActionArrow: ForwardRefExoticComponent<CardBodyActionArrowProps & RefAttributes<HTMLSpanElement>>;
|
|
383
382
|
export { CardBodyActionArrow }
|
|
384
383
|
export { CardBodyActionArrow as CardBodyActionArrow_alias_1 }
|
|
385
384
|
export { CardBodyActionArrow as CardBodyActionArrow_alias_2 }
|
|
386
385
|
export { CardBodyActionArrow as CardBodyActionArrow_alias_3 }
|
|
387
386
|
|
|
388
|
-
declare
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
declare const CardBodyComponent: {
|
|
398
|
-
(props: CardBaseProps & RefAttributes<HTMLDivElement>): ReactNode;
|
|
399
|
-
<As extends ElementType>(props: {
|
|
400
|
-
as?: As | undefined;
|
|
401
|
-
} & CardBaseProps & Omit<ComponentPropsWithRef<As>, keyof CardBaseProps>): ReactNode;
|
|
402
|
-
} & Pick<FC, "displayName"> & {
|
|
403
|
-
Header: typeof CardBodyHeaderComponent;
|
|
404
|
-
Overline: typeof CardBodyHeaderOverline;
|
|
405
|
-
Title: typeof CardBodyHeaderTitle;
|
|
406
|
-
Description: typeof CardBodyDescription;
|
|
407
|
-
Action: typeof CardBodyActionComponent;
|
|
408
|
-
};
|
|
387
|
+
declare interface CardBodyActionArrowProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
388
|
+
/**
|
|
389
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
390
|
+
*
|
|
391
|
+
* @default false
|
|
392
|
+
*/
|
|
393
|
+
asChild?: boolean;
|
|
394
|
+
}
|
|
409
395
|
|
|
410
|
-
declare const CardBodyDescription:
|
|
396
|
+
declare const CardBodyDescription: ForwardRefExoticComponent<CardBaseProps & RefAttributes<HTMLParagraphElement>>;
|
|
411
397
|
export { CardBodyDescription }
|
|
412
398
|
export { CardBodyDescription as CardBodyDescription_alias_1 }
|
|
413
399
|
export { CardBodyDescription as CardBodyDescription_alias_2 }
|
|
414
400
|
export { CardBodyDescription as CardBodyDescription_alias_3 }
|
|
415
401
|
|
|
416
|
-
declare const CardBodyHeader: ForwardRefExoticComponent<CardBaseProps & {
|
|
402
|
+
declare const CardBodyHeader: ForwardRefExoticComponent<(CardBaseProps & ({
|
|
417
403
|
/**
|
|
418
404
|
* Heading level of the card heading
|
|
419
405
|
*/
|
|
420
406
|
as: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
421
|
-
|
|
407
|
+
asChild?: undefined;
|
|
408
|
+
} | {
|
|
409
|
+
asChild: true;
|
|
410
|
+
as?: undefined;
|
|
411
|
+
})) & RefAttributes<HTMLHeadingElement>>;
|
|
422
412
|
export { CardBodyHeader }
|
|
423
413
|
export { CardBodyHeader as CardBodyHeader_alias_1 }
|
|
424
414
|
export { CardBodyHeader as CardBodyHeader_alias_2 }
|
|
425
415
|
export { CardBodyHeader as CardBodyHeader_alias_3 }
|
|
426
416
|
|
|
427
|
-
declare const
|
|
428
|
-
as: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
429
|
-
} & RefAttributes<HTMLHeadingElement>> & {
|
|
430
|
-
Overline: typeof CardBodyHeaderOverline;
|
|
431
|
-
Title: typeof CardBodyHeaderTitle;
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
declare const CardBodyHeaderOverline: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
417
|
+
declare const CardBodyHeaderOverline: ForwardRefExoticComponent<CardBaseProps & RefAttributes<HTMLDivElement>>;
|
|
435
418
|
export { CardBodyHeaderOverline }
|
|
436
419
|
export { CardBodyHeaderOverline as CardBodyHeaderOverline_alias_1 }
|
|
437
420
|
export { CardBodyHeaderOverline as CardBodyHeaderOverline_alias_2 }
|
|
438
421
|
export { CardBodyHeaderOverline as CardBodyHeaderOverline_alias_3 }
|
|
439
422
|
|
|
440
|
-
declare const CardBodyHeaderTitle:
|
|
441
|
-
/**
|
|
442
|
-
* A Card should in most cases appear as a big link,
|
|
443
|
-
* but the actual link should just be this header title.
|
|
444
|
-
* To make life better for those with screen readers we should not make
|
|
445
|
-
* the entire card a link, as that would cause the entire card to be read
|
|
446
|
-
* as a link to the user. That would be perceived as information overload.
|
|
447
|
-
*/
|
|
448
|
-
as: ElementType;
|
|
449
|
-
}, HTMLDivElement>;
|
|
423
|
+
declare const CardBodyHeaderTitle: ForwardRefExoticComponent<CardBaseProps & RefAttributes<HTMLDivElement>>;
|
|
450
424
|
export { CardBodyHeaderTitle }
|
|
451
425
|
export { CardBodyHeaderTitle as CardBodyHeaderTitle_alias_1 }
|
|
452
426
|
export { CardBodyHeaderTitle as CardBodyHeaderTitle_alias_2 }
|
|
453
427
|
export { CardBodyHeaderTitle as CardBodyHeaderTitle_alias_3 }
|
|
454
428
|
|
|
455
|
-
declare const CardComponent: {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
429
|
+
declare const CardComponent: ForwardRefExoticComponent<CardBaseProps & {
|
|
430
|
+
as?: "article" | "div" | "aside" | "section" | undefined;
|
|
431
|
+
} & RefAttributes<HTMLDivElement>> & {
|
|
432
|
+
Media: typeof CardMedia;
|
|
433
|
+
MediaImg: typeof CardMediaImg;
|
|
434
|
+
Body: typeof CardBody;
|
|
435
|
+
BodyHeader: typeof CardBodyHeader;
|
|
436
|
+
BodyHeaderOverline: typeof CardBodyHeaderOverline;
|
|
437
|
+
BodyHeaderTitle: typeof CardBodyHeaderTitle;
|
|
438
|
+
BodyDescription: typeof CardBodyDescription;
|
|
439
|
+
BodyAction: typeof CardBodyAction;
|
|
440
|
+
BodyActionArrow: typeof CardBodyActionArrow;
|
|
467
441
|
};
|
|
468
442
|
export { CardComponent as Card }
|
|
469
443
|
export { CardComponent as Card_alias_1 }
|
|
470
|
-
export { CardComponent as
|
|
444
|
+
export { CardComponent as Card_alias_3 }
|
|
471
445
|
|
|
472
446
|
export declare const CardFullWidth: Story_6;
|
|
473
447
|
|
|
474
|
-
declare interface CardImageMediaProps extends
|
|
475
|
-
|
|
448
|
+
declare interface CardImageMediaProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
449
|
+
/**
|
|
450
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
451
|
+
*
|
|
452
|
+
* @default false
|
|
453
|
+
*/
|
|
454
|
+
asChild?: boolean;
|
|
476
455
|
}
|
|
477
456
|
export { CardImageMediaProps }
|
|
478
457
|
export { CardImageMediaProps as CardImageMediaProps_alias_1 }
|
|
479
458
|
export { CardImageMediaProps as CardImageMediaProps_alias_2 }
|
|
480
459
|
export { CardImageMediaProps as CardImageMediaProps_alias_3 }
|
|
481
460
|
|
|
482
|
-
declare const CardMedia:
|
|
461
|
+
declare const CardMedia: ForwardRefExoticComponent<CardBaseProps & RefAttributes<HTMLDivElement>>;
|
|
483
462
|
export { CardMedia }
|
|
484
463
|
export { CardMedia as CardMedia_alias_1 }
|
|
485
464
|
export { CardMedia as CardMedia_alias_2 }
|
|
486
465
|
export { CardMedia as CardMedia_alias_3 }
|
|
487
466
|
|
|
488
|
-
declare const
|
|
489
|
-
(props: CardBaseProps & RefAttributes<HTMLDivElement>): ReactNode;
|
|
490
|
-
<As extends ElementType>(props: {
|
|
491
|
-
as?: As | undefined;
|
|
492
|
-
} & CardBaseProps & Omit<ComponentPropsWithRef<As>, keyof CardBaseProps>): ReactNode;
|
|
493
|
-
} & Pick<FC, "displayName"> & {
|
|
494
|
-
Img: typeof CardMediaImg;
|
|
495
|
-
};
|
|
496
|
-
|
|
497
|
-
declare const CardMediaImg: OverridableComponent<CardImageMediaProps, HTMLImageElement>;
|
|
467
|
+
declare const CardMediaImg: ForwardRefExoticComponent<CardImageMediaProps & RefAttributes<HTMLImageElement>>;
|
|
498
468
|
export { CardMediaImg }
|
|
499
469
|
export { CardMediaImg as CardMediaImg_alias_1 }
|
|
500
470
|
export { CardMediaImg as CardMediaImg_alias_2 }
|
|
501
471
|
export { CardMediaImg as CardMediaImg_alias_3 }
|
|
502
472
|
|
|
473
|
+
export declare const CardStory: Story_6;
|
|
474
|
+
|
|
503
475
|
declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
|
|
504
476
|
export { Checkbox }
|
|
505
477
|
export { Checkbox as Checkbox_alias_1 }
|
|
@@ -546,7 +518,7 @@ export declare const CompleteShowMoreShowLess: Story_24;
|
|
|
546
518
|
* Container is a layout component that is used to wrap content.
|
|
547
519
|
* It ensures a max-width and minimum spacing on the sides.
|
|
548
520
|
*/
|
|
549
|
-
declare const Container:
|
|
521
|
+
declare const Container: ForwardRefExoticComponent<ContainerProps & RefAttributes<HTMLDivElement>>;
|
|
550
522
|
export { Container }
|
|
551
523
|
export { Container as Container_alias_1 }
|
|
552
524
|
export { Container as Container_alias_2 }
|
|
@@ -555,6 +527,18 @@ export { Container as Container_alias_3 }
|
|
|
555
527
|
declare interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
556
528
|
variant?: "default" | "slim";
|
|
557
529
|
children: ReactNode;
|
|
530
|
+
/**
|
|
531
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
532
|
+
*
|
|
533
|
+
* @default false
|
|
534
|
+
*/
|
|
535
|
+
asChild?: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Convienence prop to change the rendered element.
|
|
538
|
+
*
|
|
539
|
+
* Use {@link ContainerProps.asChild} if you need more control of the rendered element.
|
|
540
|
+
*/
|
|
541
|
+
as?: "div" | "section" | "aside" | "main" | "article" | "header" | "footer";
|
|
558
542
|
}
|
|
559
543
|
export { ContainerProps }
|
|
560
544
|
export { ContainerProps as ContainerProps_alias_1 }
|
|
@@ -565,11 +549,7 @@ export declare const Custom: Story_3;
|
|
|
565
549
|
|
|
566
550
|
export declare const Dark: Story_2;
|
|
567
551
|
|
|
568
|
-
declare
|
|
569
|
-
|
|
570
|
-
declare namespace DarkBadge {
|
|
571
|
-
var displayName: string;
|
|
572
|
-
}
|
|
552
|
+
declare const DarkBadge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLSpanElement>>;
|
|
573
553
|
export { DarkBadge }
|
|
574
554
|
export { DarkBadge as DarkBadge_alias_1 }
|
|
575
555
|
export { DarkBadge as DarkBadge_alias_2 }
|
|
@@ -651,7 +631,7 @@ export declare const default_alias_19: Meta<typeof LinkList>;
|
|
|
651
631
|
|
|
652
632
|
export declare const Default_alias_2: Story_11;
|
|
653
633
|
|
|
654
|
-
export declare const default_alias_2: Meta<typeof
|
|
634
|
+
export declare const default_alias_2: Meta<typeof LighterBadge>;
|
|
655
635
|
|
|
656
636
|
export declare const default_alias_20: Meta<typeof UnorderedList>;
|
|
657
637
|
|
|
@@ -744,7 +724,7 @@ export { DescriptionList as DescriptionList_alias_3 }
|
|
|
744
724
|
|
|
745
725
|
declare interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
|
|
746
726
|
/**
|
|
747
|
-
* Either `
|
|
727
|
+
* Either `dt`, `dl`, or `div` elements
|
|
748
728
|
*/
|
|
749
729
|
children?: ReactNode;
|
|
750
730
|
/**
|
|
@@ -770,14 +750,14 @@ declare interface DimensionsFromWidthAndHeight {
|
|
|
770
750
|
width?: number | string;
|
|
771
751
|
}
|
|
772
752
|
|
|
773
|
-
declare
|
|
753
|
+
declare const ErrorMessage: ForwardRefExoticComponent<ErrorMessageProps & RefAttributes<HTMLDivElement>>;
|
|
774
754
|
export { ErrorMessage }
|
|
775
755
|
export { ErrorMessage as ErrorMessage_alias_1 }
|
|
776
756
|
export { ErrorMessage as ErrorMessage_alias_2 }
|
|
777
757
|
export { ErrorMessage as ErrorMessage_alias_3 }
|
|
778
758
|
export { ErrorMessage as ErrorMessage_alias_4 }
|
|
779
759
|
|
|
780
|
-
declare interface ErrorMessageProps {
|
|
760
|
+
declare interface ErrorMessageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
781
761
|
children: ReactNode;
|
|
782
762
|
id: string;
|
|
783
763
|
className?: string;
|
|
@@ -853,6 +833,8 @@ export { FooterButtonLink as FooterButtonLink_alias_3 }
|
|
|
853
833
|
declare interface FooterButtonLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
854
834
|
/**
|
|
855
835
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
836
|
+
*
|
|
837
|
+
* @default false
|
|
856
838
|
*/
|
|
857
839
|
asChild?: boolean;
|
|
858
840
|
}
|
|
@@ -885,7 +867,7 @@ declare interface FooterLinkSectionProps extends HTMLAttributes<HTMLDivElement>
|
|
|
885
867
|
/**
|
|
886
868
|
* Responsive sections of links. Will become an accordion on mobile.
|
|
887
869
|
*
|
|
888
|
-
* Use with
|
|
870
|
+
* Use with {@link FooterLinkSection} for each section.
|
|
889
871
|
*/
|
|
890
872
|
declare const FooterLinkSections: ForwardRefExoticComponent<FooterLinkSectionsProps & RefAttributes<HTMLDivElement>>;
|
|
891
873
|
export { FooterLinkSections }
|
|
@@ -911,14 +893,23 @@ export { FooterLogo as FooterLogo_alias_3 }
|
|
|
911
893
|
declare interface FooterLogoProps extends HTMLAttributes<HTMLDivElement> {
|
|
912
894
|
/**
|
|
913
895
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
896
|
+
*
|
|
897
|
+
* @default false
|
|
914
898
|
*/
|
|
915
899
|
asChild?: boolean;
|
|
916
900
|
}
|
|
917
901
|
|
|
918
902
|
declare interface FooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
903
|
+
/**
|
|
904
|
+
* Footer variant
|
|
905
|
+
*
|
|
906
|
+
* @default "default"
|
|
907
|
+
*/
|
|
919
908
|
variant?: "default" | "slim";
|
|
920
909
|
/**
|
|
921
910
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
911
|
+
*
|
|
912
|
+
* @default false
|
|
922
913
|
*/
|
|
923
914
|
asChild?: boolean;
|
|
924
915
|
}
|
|
@@ -934,11 +925,11 @@ export declare function getResponsiveProps<T>(variable: `--hds-${string}`, input
|
|
|
934
925
|
export declare function getSpacingVariable(size: SpacingSizes | ResponsiveSpacingSizes): string;
|
|
935
926
|
|
|
936
927
|
/**
|
|
937
|
-
*
|
|
928
|
+
* A simple opionated abstraction over CSS Grid.
|
|
938
929
|
*
|
|
939
930
|
* The grid is always a 12 column grid.
|
|
940
931
|
*
|
|
941
|
-
* example
|
|
932
|
+
* @example
|
|
942
933
|
* ```tsx
|
|
943
934
|
* <Grid gap="12-16" span={{ small: 6 }}>
|
|
944
935
|
* <div>6/12</div>
|
|
@@ -1042,6 +1033,8 @@ declare interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1042
1033
|
center?: ResponsiveProp<boolean>;
|
|
1043
1034
|
/**
|
|
1044
1035
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1036
|
+
*
|
|
1037
|
+
* @default false
|
|
1045
1038
|
*/
|
|
1046
1039
|
asChild?: boolean;
|
|
1047
1040
|
}
|
|
@@ -1051,17 +1044,22 @@ export { GridProps as GridProps_alias_2 }
|
|
|
1051
1044
|
export { GridProps as GridProps_alias_3 }
|
|
1052
1045
|
export { GridProps as GridProps_alias_4 }
|
|
1053
1046
|
|
|
1054
|
-
declare
|
|
1047
|
+
declare type HeadingProps = {
|
|
1055
1048
|
variant: "h1-display" | "h1" | "h2" | "h3" | "h3-title";
|
|
1056
|
-
|
|
1057
|
-
|
|
1049
|
+
asChild: true;
|
|
1050
|
+
as?: never;
|
|
1051
|
+
} | {
|
|
1052
|
+
variant: "h1-display" | "h1" | "h2" | "h3" | "h3-title";
|
|
1053
|
+
as: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | "div" | "label" | "p";
|
|
1054
|
+
asChild?: never;
|
|
1055
|
+
};
|
|
1058
1056
|
|
|
1059
1057
|
/**
|
|
1060
1058
|
* Show a help text for a word or phrase when clicked
|
|
1061
1059
|
*
|
|
1062
1060
|
* Useful for providing explanations for domain-specific terms, acronyms or phrases that could do with further elaboration
|
|
1063
1061
|
*
|
|
1064
|
-
*
|
|
1062
|
+
* @example
|
|
1065
1063
|
* ```tsx
|
|
1066
1064
|
* <p>
|
|
1067
1065
|
* En annen avgjørende faktor for avgifter er om nettbutikken er registrert i{" "}
|
|
@@ -1098,13 +1096,13 @@ declare interface HelpTextProps extends React.HTMLAttributes<HTMLButtonElement>
|
|
|
1098
1096
|
/**
|
|
1099
1097
|
* The side of the trigger the popover should be attached to
|
|
1100
1098
|
*
|
|
1101
|
-
* default
|
|
1099
|
+
* @default "top"
|
|
1102
1100
|
*/
|
|
1103
1101
|
side?: "top" | "right" | "bottom" | "left";
|
|
1104
1102
|
/**
|
|
1105
1103
|
* The alignment of the popover content
|
|
1106
1104
|
*
|
|
1107
|
-
* default
|
|
1105
|
+
* @default "start"
|
|
1108
1106
|
*/
|
|
1109
1107
|
align?: "center" | "end" | "start";
|
|
1110
1108
|
}
|
|
@@ -1197,11 +1195,20 @@ export declare const LargeLegend: Story_11;
|
|
|
1197
1195
|
|
|
1198
1196
|
export declare const Lighter: Story_2;
|
|
1199
1197
|
|
|
1198
|
+
declare const LighterBadge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLSpanElement>>;
|
|
1199
|
+
export { LighterBadge as Badge }
|
|
1200
|
+
export { LighterBadge as Badge_alias_1 }
|
|
1201
|
+
export { LighterBadge as Badge_alias_2 }
|
|
1202
|
+
export { LighterBadge }
|
|
1203
|
+
export { LighterBadge as LighterBadge_alias_1 }
|
|
1204
|
+
export { LighterBadge as LighterBadge_alias_2 }
|
|
1205
|
+
export { LighterBadge as LighterBadge_alias_3 }
|
|
1206
|
+
|
|
1200
1207
|
export declare const LighterBox: Story_3;
|
|
1201
1208
|
|
|
1202
1209
|
export declare const LightGreyBox: Story_3;
|
|
1203
1210
|
|
|
1204
|
-
declare const Link:
|
|
1211
|
+
declare const Link: React_2.ForwardRefExoticComponent<LinkProps & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
1205
1212
|
export { Link }
|
|
1206
1213
|
export { Link as Link_alias_1 }
|
|
1207
1214
|
export { Link as Link_alias_2 }
|
|
@@ -1214,18 +1221,14 @@ export declare const LinkInDescription: Story_30;
|
|
|
1214
1221
|
*
|
|
1215
1222
|
* For other list types use `UnorderedList` and `OrderedList`, or use your own list component using the semantic `ul` and `ol` tags.
|
|
1216
1223
|
*/
|
|
1217
|
-
declare
|
|
1218
|
-
|
|
1219
|
-
declare namespace LinkList {
|
|
1220
|
-
var displayName: string;
|
|
1221
|
-
}
|
|
1224
|
+
declare const LinkList: ForwardRefExoticComponent<LinkListProps & RefAttributes<HTMLUListElement>>;
|
|
1222
1225
|
export { LinkList }
|
|
1223
1226
|
export { LinkList as LinkList_alias_1 }
|
|
1224
1227
|
export { LinkList as LinkList_alias_2 }
|
|
1225
1228
|
export { LinkList as LinkList_alias_3 }
|
|
1226
1229
|
|
|
1227
1230
|
declare interface LinkListProps extends Omit<ListProps, "listStyle"> {
|
|
1228
|
-
children?:
|
|
1231
|
+
children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
|
|
1229
1232
|
}
|
|
1230
1233
|
export { LinkListProps }
|
|
1231
1234
|
export { LinkListProps as LinkListProps_alias_1 }
|
|
@@ -1244,6 +1247,12 @@ declare interface LinkProps extends React_2.AnchorHTMLAttributes<HTMLAnchorEleme
|
|
|
1244
1247
|
*/
|
|
1245
1248
|
size?: "small" | "medium" | "large";
|
|
1246
1249
|
children: React_2.ReactNode;
|
|
1250
|
+
/**
|
|
1251
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1252
|
+
*
|
|
1253
|
+
* @default false
|
|
1254
|
+
*/
|
|
1255
|
+
asChild?: boolean;
|
|
1247
1256
|
}
|
|
1248
1257
|
export { LinkProps }
|
|
1249
1258
|
export { LinkProps as LinkProps_alias_1 }
|
|
@@ -1251,9 +1260,10 @@ export { LinkProps as LinkProps_alias_2 }
|
|
|
1251
1260
|
export { LinkProps as LinkProps_alias_3 }
|
|
1252
1261
|
|
|
1253
1262
|
declare interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {
|
|
1254
|
-
children?: React_2.ReactElement<HTMLLIElement> | React_2.ReactElement<HTMLLIElement>[];
|
|
1255
1263
|
/**
|
|
1256
1264
|
* Sets the size of the items (font)
|
|
1265
|
+
*
|
|
1266
|
+
* @default "medium"
|
|
1257
1267
|
*/
|
|
1258
1268
|
size?: "small" | "medium" | "large";
|
|
1259
1269
|
}
|
|
@@ -1272,14 +1282,9 @@ export declare const Main: {
|
|
|
1272
1282
|
|
|
1273
1283
|
export declare function MenuIcon(): JSX_2.Element;
|
|
1274
1284
|
|
|
1275
|
-
export declare const Message_alias_3:
|
|
1285
|
+
export declare const Message_alias_3: ForwardRefExoticComponent<MessageProps & RefAttributes<HTMLDivElement>>;
|
|
1276
1286
|
|
|
1277
|
-
declare const MessageComponent: {
|
|
1278
|
-
(props: MessageProps & RefAttributes<HTMLDivElement>): ReactNode;
|
|
1279
|
-
<As extends ElementType>(props: {
|
|
1280
|
-
as?: As | undefined;
|
|
1281
|
-
} & MessageProps & Omit<ComponentPropsWithRef<As>, "slot" | "style" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onClose" | "closed" | "variant" | "closeable" | "closeButtonProps" | "icon" | "iconClassName">): ReactNode;
|
|
1282
|
-
} & Pick<FC, "displayName"> & {
|
|
1287
|
+
declare const MessageComponent: ForwardRefExoticComponent<MessageProps & RefAttributes<HTMLDivElement>> & {
|
|
1283
1288
|
Title: typeof MessageTitle;
|
|
1284
1289
|
Description: typeof MessageDescription;
|
|
1285
1290
|
};
|
|
@@ -1287,28 +1292,46 @@ export { MessageComponent as Message }
|
|
|
1287
1292
|
export { MessageComponent as Message_alias_1 }
|
|
1288
1293
|
export { MessageComponent as Message_alias_2 }
|
|
1289
1294
|
|
|
1290
|
-
declare const MessageDescription:
|
|
1295
|
+
declare const MessageDescription: ForwardRefExoticComponent<MessageDescriptionProps & RefAttributes<HTMLParagraphElement>>;
|
|
1291
1296
|
export { MessageDescription }
|
|
1292
1297
|
export { MessageDescription as MessageDescription_alias_1 }
|
|
1293
1298
|
export { MessageDescription as MessageDescription_alias_2 }
|
|
1294
1299
|
export { MessageDescription as MessageDescription_alias_3 }
|
|
1295
1300
|
|
|
1301
|
+
declare interface MessageDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
1302
|
+
/**
|
|
1303
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1304
|
+
*
|
|
1305
|
+
* @default false
|
|
1306
|
+
*/
|
|
1307
|
+
asChild?: boolean;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1296
1310
|
export declare type MessageProps = ({
|
|
1297
1311
|
variant?: "success" | "attention" | "warning";
|
|
1298
1312
|
icon?: never;
|
|
1299
1313
|
iconClassName?: never;
|
|
1300
1314
|
} | {
|
|
1301
1315
|
variant: "neutral";
|
|
1302
|
-
icon?:
|
|
1316
|
+
icon?: React.ReactNode;
|
|
1303
1317
|
iconClassName?: string;
|
|
1304
|
-
}) & Omit<BoxProps, "variant">;
|
|
1318
|
+
}) & Omit<BoxProps, "variant" | "asChild">;
|
|
1305
1319
|
|
|
1306
|
-
declare const MessageTitle:
|
|
1320
|
+
declare const MessageTitle: ForwardRefExoticComponent<MessageTitleProps & RefAttributes<HTMLParagraphElement>>;
|
|
1307
1321
|
export { MessageTitle }
|
|
1308
1322
|
export { MessageTitle as MessageTitle_alias_1 }
|
|
1309
1323
|
export { MessageTitle as MessageTitle_alias_2 }
|
|
1310
1324
|
export { MessageTitle as MessageTitle_alias_3 }
|
|
1311
1325
|
|
|
1326
|
+
declare interface MessageTitleProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
1327
|
+
/**
|
|
1328
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1329
|
+
*
|
|
1330
|
+
* @default false
|
|
1331
|
+
*/
|
|
1332
|
+
asChild?: boolean;
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1312
1335
|
export declare const MinAndMax: Story_29;
|
|
1313
1336
|
|
|
1314
1337
|
/**
|
|
@@ -1316,33 +1339,33 @@ export declare const MinAndMax: Story_29;
|
|
|
1316
1339
|
*
|
|
1317
1340
|
* Uses the native [`dialog`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog) element.
|
|
1318
1341
|
*
|
|
1319
|
-
*
|
|
1320
|
-
* ```
|
|
1321
|
-
const modalRef = useRef<HTMLDialogElement>(null);
|
|
1322
|
-
const onClose = () => modalRef.current?.close();
|
|
1323
|
-
|
|
1324
|
-
return (
|
|
1325
|
-
<>
|
|
1326
|
-
<PrimaryButton onClick={() => modalRef.current?.showModal()}>Open Modal</PrimaryButton>
|
|
1327
|
-
<Modal ref={modalRef}>
|
|
1328
|
-
<Modal.Header>Dialog header</Modal.Header>
|
|
1329
|
-
<Modal.Content>
|
|
1330
|
-
<p>
|
|
1331
|
-
Dialog header Dialog description - a description of what is about to happen and maybe
|
|
1332
|
-
something about the consequences.
|
|
1333
|
-
</p>
|
|
1334
|
-
</Modal.Content>
|
|
1335
|
-
<Modal.Footer>
|
|
1336
|
-
<HStack gap="16" wrap>
|
|
1337
|
-
<PrimaryButton onClick={onMainAction}>Main action</PrimaryButton>
|
|
1338
|
-
<PrimaryButton fill="outline" onClick={onClose}>
|
|
1339
|
-
Cancel
|
|
1340
|
-
</PrimaryButton>
|
|
1341
|
-
</HStack>
|
|
1342
|
-
</Modal.Footer>
|
|
1343
|
-
</Modal>
|
|
1344
|
-
</>
|
|
1345
|
-
);
|
|
1342
|
+
* @example
|
|
1343
|
+
* ```tsx
|
|
1344
|
+
* const modalRef = useRef<HTMLDialogElement>(null);
|
|
1345
|
+
* const onClose = () => modalRef.current?.close();
|
|
1346
|
+
*
|
|
1347
|
+
* return (
|
|
1348
|
+
* <>
|
|
1349
|
+
* <PrimaryButton onClick={() => modalRef.current?.showModal()}>Open Modal</PrimaryButton>
|
|
1350
|
+
* <Modal ref={modalRef}>
|
|
1351
|
+
* <Modal.Header>Dialog header</Modal.Header>
|
|
1352
|
+
* <Modal.Content>
|
|
1353
|
+
* <p>
|
|
1354
|
+
* Dialog header Dialog description - a description of what is about to happen and maybe
|
|
1355
|
+
* something about the consequences.
|
|
1356
|
+
* </p>
|
|
1357
|
+
* </Modal.Content>
|
|
1358
|
+
* <Modal.Footer>
|
|
1359
|
+
* <HStack gap="16" wrap>
|
|
1360
|
+
* <PrimaryButton onClick={onMainAction}>Main action</PrimaryButton>
|
|
1361
|
+
* <PrimaryButton fill="outline" onClick={onClose}>
|
|
1362
|
+
* Cancel
|
|
1363
|
+
* </PrimaryButton>
|
|
1364
|
+
* </HStack>
|
|
1365
|
+
* </Modal.Footer>
|
|
1366
|
+
* </Modal>
|
|
1367
|
+
* </>
|
|
1368
|
+
* );
|
|
1346
1369
|
* ```
|
|
1347
1370
|
*/
|
|
1348
1371
|
export declare const Modal_alias_3: ForwardRefExoticComponent<ModalProps & RefAttributes<HTMLDialogElement>>;
|
|
@@ -1356,24 +1379,51 @@ export { ModalComponent as Modal }
|
|
|
1356
1379
|
export { ModalComponent as Modal_alias_1 }
|
|
1357
1380
|
export { ModalComponent as Modal_alias_2 }
|
|
1358
1381
|
|
|
1359
|
-
declare const ModalContent:
|
|
1382
|
+
declare const ModalContent: ForwardRefExoticComponent<ModalContentProps & RefAttributes<HTMLDivElement>>;
|
|
1360
1383
|
export { ModalContent }
|
|
1361
1384
|
export { ModalContent as ModalContent_alias_1 }
|
|
1362
1385
|
export { ModalContent as ModalContent_alias_2 }
|
|
1363
1386
|
export { ModalContent as ModalContent_alias_3 }
|
|
1364
1387
|
|
|
1365
|
-
declare
|
|
1388
|
+
declare interface ModalContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1389
|
+
/**
|
|
1390
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1391
|
+
*
|
|
1392
|
+
* @default false
|
|
1393
|
+
*/
|
|
1394
|
+
asChild?: boolean;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
declare const ModalFooter: ForwardRefExoticComponent<ModalFooterProps & RefAttributes<HTMLDivElement>>;
|
|
1366
1398
|
export { ModalFooter }
|
|
1367
1399
|
export { ModalFooter as ModalFooter_alias_1 }
|
|
1368
1400
|
export { ModalFooter as ModalFooter_alias_2 }
|
|
1369
1401
|
export { ModalFooter as ModalFooter_alias_3 }
|
|
1370
1402
|
|
|
1371
|
-
declare
|
|
1403
|
+
declare interface ModalFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1404
|
+
/**
|
|
1405
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1406
|
+
*
|
|
1407
|
+
* @default false
|
|
1408
|
+
*/
|
|
1409
|
+
asChild?: boolean;
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
declare const ModalHeader: ForwardRefExoticComponent<ModalHeaderProps & RefAttributes<HTMLHeadingElement>>;
|
|
1372
1413
|
export { ModalHeader }
|
|
1373
1414
|
export { ModalHeader as ModalHeader_alias_1 }
|
|
1374
1415
|
export { ModalHeader as ModalHeader_alias_2 }
|
|
1375
1416
|
export { ModalHeader as ModalHeader_alias_3 }
|
|
1376
1417
|
|
|
1418
|
+
declare interface ModalHeaderProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
1419
|
+
/**
|
|
1420
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1421
|
+
*
|
|
1422
|
+
* @default false
|
|
1423
|
+
*/
|
|
1424
|
+
asChild?: boolean;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1377
1427
|
declare interface ModalProps extends React.HTMLAttributes<HTMLDialogElement> {
|
|
1378
1428
|
children: React.ReactNode;
|
|
1379
1429
|
/**
|
|
@@ -1397,24 +1447,34 @@ export declare const MultipleItems: Story;
|
|
|
1397
1447
|
/**
|
|
1398
1448
|
* 🚨 WORK IN PROGRESS 🚨
|
|
1399
1449
|
*/
|
|
1400
|
-
export declare const Navbar_alias_3:
|
|
1450
|
+
export declare const Navbar_alias_3: ForwardRefExoticComponent<NavbarProps & RefAttributes<HTMLElement>>;
|
|
1401
1451
|
|
|
1402
|
-
declare const
|
|
1403
|
-
export {
|
|
1404
|
-
export {
|
|
1405
|
-
export {
|
|
1406
|
-
export {
|
|
1452
|
+
declare const NavbarButtonItem: ForwardRefExoticComponent<NavbarButtonItemProps & RefAttributes<HTMLButtonElement>>;
|
|
1453
|
+
export { NavbarButtonItem }
|
|
1454
|
+
export { NavbarButtonItem as NavbarButtonItem_alias_1 }
|
|
1455
|
+
export { NavbarButtonItem as NavbarButtonItem_alias_2 }
|
|
1456
|
+
export { NavbarButtonItem as NavbarButtonItem_alias_3 }
|
|
1407
1457
|
|
|
1408
|
-
declare interface
|
|
1409
|
-
|
|
1410
|
-
|
|
1458
|
+
declare interface NavbarButtonItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1459
|
+
children: React.ReactNode;
|
|
1460
|
+
/**
|
|
1461
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1462
|
+
*
|
|
1463
|
+
* @default false
|
|
1464
|
+
*/
|
|
1465
|
+
asChild?: boolean;
|
|
1411
1466
|
}
|
|
1412
1467
|
|
|
1413
1468
|
declare const NavbarComponent: ForwardRefExoticComponent<NavbarProps & RefAttributes<HTMLElement>> & {
|
|
1414
1469
|
Logo: typeof NavbarLogo;
|
|
1415
1470
|
LogoAndServiceText: typeof NavbarLogoAndServiceText;
|
|
1416
|
-
ExpandableMenu: typeof
|
|
1417
|
-
|
|
1471
|
+
ExpandableMenu: typeof NavbarExpandableMenu;
|
|
1472
|
+
ExpandableMenuTrigger: typeof NavbarExpandableMenuTrigger;
|
|
1473
|
+
ExpandableMenuContent: typeof NavbarExpandableMenuContent;
|
|
1474
|
+
Item: typeof NavbarItem;
|
|
1475
|
+
ButtonItem: typeof NavbarButtonItem;
|
|
1476
|
+
LinkItem: typeof NavbarLinkItem;
|
|
1477
|
+
ItemIcon: typeof NavbarItemIcon;
|
|
1418
1478
|
Navigation: typeof NavbarNavigation;
|
|
1419
1479
|
};
|
|
1420
1480
|
export { NavbarComponent as Navbar }
|
|
@@ -1428,49 +1488,106 @@ export { NavbarComponent as Navbar_alias_2 }
|
|
|
1428
1488
|
*
|
|
1429
1489
|
* If we want a sticky header in the future the scrolling should be configurable
|
|
1430
1490
|
*/
|
|
1431
|
-
|
|
1491
|
+
declare function NavbarExpandableMenu({ children }: NavbarExpandableMenuProps): JSX_2.Element;
|
|
1432
1492
|
|
|
1433
|
-
|
|
1493
|
+
declare namespace NavbarExpandableMenu {
|
|
1434
1494
|
var displayName: string;
|
|
1435
1495
|
}
|
|
1496
|
+
export { NavbarExpandableMenu }
|
|
1497
|
+
export { NavbarExpandableMenu as NavbarExpandableMenu_alias_1 }
|
|
1498
|
+
export { NavbarExpandableMenu as NavbarExpandableMenu_alias_2 }
|
|
1499
|
+
export { NavbarExpandableMenu as NavbarExpandableMenu_alias_3 }
|
|
1436
1500
|
|
|
1437
|
-
declare const
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
export declare const NavbarExpandableMenuContent: OverridableComponent<NavbarExpandableMenuContentProps, HTMLDivElement>;
|
|
1501
|
+
declare const NavbarExpandableMenuContent: ForwardRefExoticComponent<NavbarExpandableMenuContentProps & RefAttributes<HTMLDivElement>>;
|
|
1502
|
+
export { NavbarExpandableMenuContent }
|
|
1503
|
+
export { NavbarExpandableMenuContent as NavbarExpandableMenuContent_alias_1 }
|
|
1504
|
+
export { NavbarExpandableMenuContent as NavbarExpandableMenuContent_alias_2 }
|
|
1505
|
+
export { NavbarExpandableMenuContent as NavbarExpandableMenuContent_alias_3 }
|
|
1443
1506
|
|
|
1444
1507
|
/**
|
|
1445
1508
|
* Content
|
|
1446
1509
|
*/
|
|
1447
1510
|
export declare interface NavbarExpandableMenuContentProps {
|
|
1448
|
-
children:
|
|
1511
|
+
children: React.ReactNode;
|
|
1449
1512
|
className?: string;
|
|
1450
1513
|
}
|
|
1451
1514
|
|
|
1452
1515
|
export declare interface NavbarExpandableMenuProps {
|
|
1453
|
-
children:
|
|
1516
|
+
children: React.ReactNode;
|
|
1454
1517
|
}
|
|
1455
1518
|
|
|
1456
|
-
|
|
1519
|
+
declare const NavbarExpandableMenuTrigger: ForwardRefExoticComponent<NavbarExpandableMenuTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
1520
|
+
export { NavbarExpandableMenuTrigger }
|
|
1521
|
+
export { NavbarExpandableMenuTrigger as NavbarExpandableMenuTrigger_alias_1 }
|
|
1522
|
+
export { NavbarExpandableMenuTrigger as NavbarExpandableMenuTrigger_alias_2 }
|
|
1523
|
+
export { NavbarExpandableMenuTrigger as NavbarExpandableMenuTrigger_alias_3 }
|
|
1457
1524
|
|
|
1458
1525
|
/**
|
|
1459
1526
|
* Trigger
|
|
1460
1527
|
*/
|
|
1461
|
-
export declare interface NavbarExpandableMenuTriggerProps extends Omit<
|
|
1462
|
-
whenClosedText:
|
|
1528
|
+
export declare interface NavbarExpandableMenuTriggerProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, "children"> {
|
|
1529
|
+
whenClosedText: React.ReactNode;
|
|
1463
1530
|
whenClosedHelperTitle?: string;
|
|
1464
|
-
whenOpenText:
|
|
1531
|
+
whenOpenText: React.ReactNode;
|
|
1465
1532
|
whenOpenHelperTitle?: string;
|
|
1466
1533
|
}
|
|
1467
1534
|
|
|
1535
|
+
/**
|
|
1536
|
+
* Generic Navbar item
|
|
1537
|
+
*
|
|
1538
|
+
* Use `Navbar.ButtonItem` or `Navbar.LinkItem` for links and buttons
|
|
1539
|
+
*/
|
|
1540
|
+
declare const NavbarItem: ForwardRefExoticComponent<NavbarItemProps & RefAttributes<HTMLDivElement>>;
|
|
1541
|
+
export { NavbarItem }
|
|
1542
|
+
export { NavbarItem as NavbarItem_alias_1 }
|
|
1543
|
+
export { NavbarItem as NavbarItem_alias_2 }
|
|
1544
|
+
export { NavbarItem as NavbarItem_alias_3 }
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Icon to be used inside a `Navbar.Item`, `Navbar.ButtonItem`, or `Navbar.LinkItem`
|
|
1548
|
+
*/
|
|
1549
|
+
declare const NavbarItemIcon: ForwardRefExoticComponent<NavbarItemIconProps & RefAttributes<HTMLDivElement>>;
|
|
1550
|
+
export { NavbarItemIcon }
|
|
1551
|
+
export { NavbarItemIcon as NavbarItemIcon_alias_1 }
|
|
1552
|
+
export { NavbarItemIcon as NavbarItemIcon_alias_2 }
|
|
1553
|
+
export { NavbarItemIcon as NavbarItemIcon_alias_3 }
|
|
1554
|
+
|
|
1555
|
+
declare interface NavbarItemIconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1556
|
+
children: React.ReactNode;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
declare interface NavbarItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1560
|
+
children: React.ReactNode;
|
|
1561
|
+
/**
|
|
1562
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1563
|
+
*
|
|
1564
|
+
* @default false
|
|
1565
|
+
*/
|
|
1566
|
+
asChild?: boolean;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
declare const NavbarLinkItem: ForwardRefExoticComponent<NavbarLinkItemProps & RefAttributes<HTMLAnchorElement>>;
|
|
1570
|
+
export { NavbarLinkItem }
|
|
1571
|
+
export { NavbarLinkItem as NavbarLinkItem_alias_1 }
|
|
1572
|
+
export { NavbarLinkItem as NavbarLinkItem_alias_2 }
|
|
1573
|
+
export { NavbarLinkItem as NavbarLinkItem_alias_3 }
|
|
1574
|
+
|
|
1575
|
+
declare interface NavbarLinkItemProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1576
|
+
children: React.ReactNode;
|
|
1577
|
+
/**
|
|
1578
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1579
|
+
*
|
|
1580
|
+
* @default false
|
|
1581
|
+
*/
|
|
1582
|
+
asChild?: boolean;
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1468
1585
|
/**
|
|
1469
1586
|
* A fixed Posten or Bring logo.
|
|
1470
1587
|
*
|
|
1471
1588
|
* The logo follows the brand theme, so if the class `hds-theme-bring` is set the Bring logo will be shown instead of the Posten logo
|
|
1472
1589
|
*/
|
|
1473
|
-
declare const NavbarLogo:
|
|
1590
|
+
declare const NavbarLogo: ForwardRefExoticComponent<NavbarLogoProps & RefAttributes<HTMLDivElement>>;
|
|
1474
1591
|
export { NavbarLogo }
|
|
1475
1592
|
export { NavbarLogo as NavbarLogo_alias_1 }
|
|
1476
1593
|
export { NavbarLogo as NavbarLogo_alias_2 }
|
|
@@ -1481,7 +1598,7 @@ export { NavbarLogo as NavbarLogo_alias_3 }
|
|
|
1481
1598
|
*
|
|
1482
1599
|
* The logo follows the brand theme, so if the class `hds-theme-bring` is set the Bring logo will be shown instead of the Posten logo
|
|
1483
1600
|
*/
|
|
1484
|
-
declare const NavbarLogoAndServiceText:
|
|
1601
|
+
declare const NavbarLogoAndServiceText: ForwardRefExoticComponent<NavbarLogoAndServiceText_2 & RefAttributes<HTMLDivElement>>;
|
|
1485
1602
|
export { NavbarLogoAndServiceText }
|
|
1486
1603
|
export { NavbarLogoAndServiceText as NavbarLogoAndServiceText_alias_1 }
|
|
1487
1604
|
export { NavbarLogoAndServiceText as NavbarLogoAndServiceText_alias_2 }
|
|
@@ -1491,16 +1608,19 @@ declare interface NavbarLogoAndServiceText_2 extends HTMLAttributes<HTMLDivEleme
|
|
|
1491
1608
|
/**
|
|
1492
1609
|
* The text display next to the logo
|
|
1493
1610
|
*/
|
|
1494
|
-
children:
|
|
1611
|
+
children: React.ReactNode;
|
|
1495
1612
|
/**
|
|
1496
1613
|
* The text variant
|
|
1497
1614
|
*
|
|
1498
1615
|
* Use `service` for internal applications
|
|
1616
|
+
*
|
|
1499
1617
|
* Use `flagship` for public facing applications
|
|
1500
1618
|
*/
|
|
1501
1619
|
variant: "service" | "flagship";
|
|
1502
1620
|
/**
|
|
1503
1621
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1622
|
+
*
|
|
1623
|
+
* @default false
|
|
1504
1624
|
*/
|
|
1505
1625
|
asChild?: boolean;
|
|
1506
1626
|
}
|
|
@@ -1510,20 +1630,31 @@ declare interface NavbarLogoAndServiceText_2 extends HTMLAttributes<HTMLDivEleme
|
|
|
1510
1630
|
*
|
|
1511
1631
|
* The logo follows the brand theme, so if the class `hds-theme-bring` is set the Bring logo will be shown instead of the Posten logo
|
|
1512
1632
|
*/
|
|
1513
|
-
declare const NavbarLogoAndServiceText:
|
|
1633
|
+
declare const NavbarLogoAndServiceText: ForwardRefExoticComponent<NavbarLogoAndServiceText_2 & RefAttributes<HTMLDivElement>>;
|
|
1514
1634
|
|
|
1515
|
-
declare interface NavbarLogoProps {
|
|
1516
|
-
|
|
1635
|
+
declare interface NavbarLogoProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1636
|
+
/**
|
|
1637
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1638
|
+
*
|
|
1639
|
+
* @default false
|
|
1640
|
+
*/
|
|
1641
|
+
asChild?: boolean;
|
|
1517
1642
|
}
|
|
1518
1643
|
|
|
1519
|
-
declare const NavbarNavigation:
|
|
1644
|
+
declare const NavbarNavigation: ForwardRefExoticComponent<NavbarNavigationProps & RefAttributes<HTMLDivElement>>;
|
|
1520
1645
|
export { NavbarNavigation }
|
|
1521
1646
|
export { NavbarNavigation as NavbarNavigation_alias_1 }
|
|
1522
1647
|
export { NavbarNavigation as NavbarNavigation_alias_2 }
|
|
1523
1648
|
export { NavbarNavigation as NavbarNavigation_alias_3 }
|
|
1524
1649
|
|
|
1525
|
-
declare interface NavbarNavigationProps {
|
|
1526
|
-
children:
|
|
1650
|
+
declare interface NavbarNavigationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1651
|
+
children: React.ReactNode;
|
|
1652
|
+
/**
|
|
1653
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1654
|
+
*
|
|
1655
|
+
* @default false
|
|
1656
|
+
*/
|
|
1657
|
+
asChild?: boolean;
|
|
1527
1658
|
}
|
|
1528
1659
|
|
|
1529
1660
|
declare interface NavbarProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -1533,9 +1664,16 @@ declare interface NavbarProps extends HTMLAttributes<HTMLElement> {
|
|
|
1533
1664
|
* By default the `posten.no` variant is used which has a fixed logo and a fixed height of 112px
|
|
1534
1665
|
*
|
|
1535
1666
|
* For internal services or flagship services use the `service` should be used
|
|
1667
|
+
*
|
|
1668
|
+
* @default "default"
|
|
1536
1669
|
*/
|
|
1537
1670
|
variant?: "default" | "service";
|
|
1538
|
-
|
|
1671
|
+
/**
|
|
1672
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1673
|
+
*
|
|
1674
|
+
* @default false
|
|
1675
|
+
*/
|
|
1676
|
+
asChild?: boolean;
|
|
1539
1677
|
}
|
|
1540
1678
|
export { NavbarProps }
|
|
1541
1679
|
export { NavbarProps as NavbarProps_alias_1 }
|
|
@@ -1553,13 +1691,18 @@ export declare const NoUnderline: Story_18;
|
|
|
1553
1691
|
/**
|
|
1554
1692
|
* An ordered list of simple items
|
|
1555
1693
|
*
|
|
1556
|
-
* If you have other list needs build your own using the semantic `ul` and `ol` tags.
|
|
1694
|
+
* If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.
|
|
1695
|
+
*
|
|
1696
|
+
* @example
|
|
1697
|
+
* ```tsx
|
|
1698
|
+
* <OrderedList>
|
|
1699
|
+
* <li>Item 1</li>
|
|
1700
|
+
* <li>Item 2</li>
|
|
1701
|
+
* <li>Item 3</li>
|
|
1702
|
+
* </OrderedList>
|
|
1703
|
+
* ```
|
|
1557
1704
|
*/
|
|
1558
|
-
declare
|
|
1559
|
-
|
|
1560
|
-
declare namespace OrderedList {
|
|
1561
|
-
var displayName: string;
|
|
1562
|
-
}
|
|
1705
|
+
declare const OrderedList: ForwardRefExoticComponent<ListProps & RefAttributes<HTMLOListElement>>;
|
|
1563
1706
|
export { OrderedList }
|
|
1564
1707
|
export { OrderedList as OrderedList_alias_1 }
|
|
1565
1708
|
export { OrderedList as OrderedList_alias_2 }
|
|
@@ -1567,20 +1710,6 @@ export { OrderedList as OrderedList_alias_3 }
|
|
|
1567
1710
|
|
|
1568
1711
|
export declare const OrderedListStory: Story_20;
|
|
1569
1712
|
|
|
1570
|
-
/**
|
|
1571
|
-
* OverridableComponent makes the `as` prop available,
|
|
1572
|
-
* to be used to override the html element being used for a component
|
|
1573
|
-
*
|
|
1574
|
-
* Taken from digdir design system: https://github.com/digdir/designsystem/blob/main/packages/react/src/types/OverridableComponent.ts
|
|
1575
|
-
*/
|
|
1576
|
-
export declare type OverridableComponent<ComponentProps, Element extends HTMLElement> = {
|
|
1577
|
-
(props: ComponentProps & RefAttributes<Element>): ReturnType<FC>;
|
|
1578
|
-
<As extends ElementType>(props: {
|
|
1579
|
-
/** Override html element */
|
|
1580
|
-
as?: As;
|
|
1581
|
-
} & ComponentProps & Omit<ComponentPropsWithRef<As>, keyof ComponentProps>): ReturnType<FC>;
|
|
1582
|
-
} & Pick<FC, "displayName">;
|
|
1583
|
-
|
|
1584
1713
|
export declare const Paragraph: Story_7;
|
|
1585
1714
|
|
|
1586
1715
|
declare interface ParagraphProps {
|
|
@@ -1613,14 +1742,7 @@ export declare const PostenBringSideBySide: Story_29;
|
|
|
1613
1742
|
|
|
1614
1743
|
export declare const Primary: Story_5;
|
|
1615
1744
|
|
|
1616
|
-
|
|
1617
|
-
* ## TODO
|
|
1618
|
-
*
|
|
1619
|
-
* - [x] Handle links that looks like buttons
|
|
1620
|
-
* - [ ] Revisit how to handle outline
|
|
1621
|
-
* - [ ] Figure out outline-white
|
|
1622
|
-
*/
|
|
1623
|
-
declare const PrimaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
1745
|
+
declare const PrimaryButton: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
1624
1746
|
export { PrimaryButton }
|
|
1625
1747
|
export { PrimaryButton as PrimaryButton_alias_1 }
|
|
1626
1748
|
export { PrimaryButton as PrimaryButton_alias_2 }
|
|
@@ -1724,7 +1846,7 @@ declare type ResponsiveValues<T> = {
|
|
|
1724
1846
|
|
|
1725
1847
|
export declare const Secondary: Story_5;
|
|
1726
1848
|
|
|
1727
|
-
declare const SecondaryButton:
|
|
1849
|
+
declare const SecondaryButton: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
1728
1850
|
export { SecondaryButton }
|
|
1729
1851
|
export { SecondaryButton as SecondaryButton_alias_1 }
|
|
1730
1852
|
export { SecondaryButton as SecondaryButton_alias_2 }
|
|
@@ -1761,8 +1883,7 @@ export declare const ShowMore: Story_24;
|
|
|
1761
1883
|
*
|
|
1762
1884
|
* You have to add the logic for what happens when the button is clicked yourself.
|
|
1763
1885
|
*
|
|
1764
|
-
*
|
|
1765
|
-
*
|
|
1886
|
+
* @example
|
|
1766
1887
|
* ```tsx
|
|
1767
1888
|
* function Content() {
|
|
1768
1889
|
* const [items, fetchMoreItems, moreItemsAvailable] = useYourData();
|
|
@@ -1839,7 +1960,7 @@ export declare const SingleAccordion: Story;
|
|
|
1839
1960
|
* - https://chakra-ui.com/docs/components/skeleton
|
|
1840
1961
|
* - https://mui.com/material-ui/react-skeleton/
|
|
1841
1962
|
*/
|
|
1842
|
-
declare const Skeleton:
|
|
1963
|
+
declare const Skeleton: ForwardRefExoticComponent<SkeletonPropsInner & DimensionsFromWidthAndHeight & RefAttributes<HTMLDivElement>>;
|
|
1843
1964
|
export { Skeleton }
|
|
1844
1965
|
export { Skeleton as Skeleton_alias_1 }
|
|
1845
1966
|
export { Skeleton as Skeleton_alias_2 }
|
|
@@ -1851,7 +1972,7 @@ export { SkeletonProps as SkeletonProps_alias_1 }
|
|
|
1851
1972
|
export { SkeletonProps as SkeletonProps_alias_2 }
|
|
1852
1973
|
export { SkeletonProps as SkeletonProps_alias_3 }
|
|
1853
1974
|
|
|
1854
|
-
declare interface SkeletonPropsInner extends
|
|
1975
|
+
declare interface SkeletonPropsInner extends React.HTMLAttributes<HTMLDivElement> {
|
|
1855
1976
|
/**
|
|
1856
1977
|
* The visual style of the Skeleton
|
|
1857
1978
|
*/
|
|
@@ -1863,7 +1984,19 @@ declare interface SkeletonPropsInner extends React_2.AnchorHTMLAttributes<HTMLDi
|
|
|
1863
1984
|
* default true
|
|
1864
1985
|
*/
|
|
1865
1986
|
animation?: boolean;
|
|
1866
|
-
children?:
|
|
1987
|
+
children?: React.ReactNode;
|
|
1988
|
+
/**
|
|
1989
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1990
|
+
*
|
|
1991
|
+
* @default false
|
|
1992
|
+
*/
|
|
1993
|
+
asChild?: boolean;
|
|
1994
|
+
/**
|
|
1995
|
+
* Convienence prop to change the rendered element.
|
|
1996
|
+
*
|
|
1997
|
+
* Use {@link SkeletonProps.asChild} if you need more control of the rendered element.
|
|
1998
|
+
*/
|
|
1999
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | "div" | "label" | "p";
|
|
1867
2000
|
}
|
|
1868
2001
|
|
|
1869
2002
|
export declare const Slim: Story_17;
|
|
@@ -1930,6 +2063,8 @@ declare interface StackProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
|
1930
2063
|
justify?: ResponsiveProp<React_2.CSSProperties["justifyContent"]>;
|
|
1931
2064
|
/**
|
|
1932
2065
|
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
2066
|
+
*
|
|
2067
|
+
* @default false
|
|
1933
2068
|
*/
|
|
1934
2069
|
asChild?: boolean;
|
|
1935
2070
|
}
|
|
@@ -1988,7 +2123,7 @@ declare type Story_18 = StoryObj<typeof Link>;
|
|
|
1988
2123
|
|
|
1989
2124
|
declare type Story_19 = StoryObj<typeof LinkList>;
|
|
1990
2125
|
|
|
1991
|
-
declare type Story_2 = StoryObj<typeof
|
|
2126
|
+
declare type Story_2 = StoryObj<typeof LighterBadge>;
|
|
1992
2127
|
|
|
1993
2128
|
declare type Story_20 = StoryObj<typeof UnorderedList>;
|
|
1994
2129
|
|
|
@@ -2034,6 +2169,7 @@ declare type Story_9 = StoryObj<typeof DatePicker>;
|
|
|
2034
2169
|
*
|
|
2035
2170
|
* Previously known as `hw-wysiwyg` in hedwig legacy. In tailwind this kind of component it is known as `prose`.
|
|
2036
2171
|
*
|
|
2172
|
+
* @example
|
|
2037
2173
|
* ```tsx
|
|
2038
2174
|
* <StyledHtml>
|
|
2039
2175
|
* <h1>Heading 1</h1>
|
|
@@ -2047,16 +2183,22 @@ declare type Story_9 = StoryObj<typeof DatePicker>;
|
|
|
2047
2183
|
* </StyledHtml>
|
|
2048
2184
|
* ```
|
|
2049
2185
|
*/
|
|
2050
|
-
declare const StyledHtml:
|
|
2186
|
+
declare const StyledHtml: ForwardRefExoticComponent<StyledHtmlProps & RefAttributes<HTMLDivElement>>;
|
|
2051
2187
|
export { StyledHtml }
|
|
2052
2188
|
export { StyledHtml as StyledHtml_alias_1 }
|
|
2053
2189
|
export { StyledHtml as StyledHtml_alias_2 }
|
|
2054
2190
|
export { StyledHtml as StyledHtml_alias_3 }
|
|
2055
2191
|
|
|
2056
|
-
declare interface StyledHtmlProps {
|
|
2057
|
-
children?:
|
|
2192
|
+
declare interface StyledHtmlProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2193
|
+
children?: React.ReactNode;
|
|
2058
2194
|
size?: "default" | "small";
|
|
2059
2195
|
darkmode?: boolean;
|
|
2196
|
+
/**
|
|
2197
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
2198
|
+
*
|
|
2199
|
+
* @default false
|
|
2200
|
+
*/
|
|
2201
|
+
asChild?: boolean;
|
|
2060
2202
|
}
|
|
2061
2203
|
export { StyledHtmlProps }
|
|
2062
2204
|
export { StyledHtmlProps as StyledHtmlProps_alias_1 }
|
|
@@ -2065,14 +2207,6 @@ export { StyledHtmlProps as StyledHtmlProps_alias_3 }
|
|
|
2065
2207
|
|
|
2066
2208
|
export declare const Success: Story_21;
|
|
2067
2209
|
|
|
2068
|
-
declare interface TabContentsProps extends HTMLAttributes<HTMLDivElement> {
|
|
2069
|
-
children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];
|
|
2070
|
-
}
|
|
2071
|
-
export { TabContentsProps }
|
|
2072
|
-
export { TabContentsProps as TabContentsProps_alias_1 }
|
|
2073
|
-
export { TabContentsProps as TabContentsProps_alias_2 }
|
|
2074
|
-
export { TabContentsProps as TabContentsProps_alias_3 }
|
|
2075
|
-
|
|
2076
2210
|
declare const Table: ForwardRefExoticComponent<TableProps & RefAttributes<HTMLTableElement>>;
|
|
2077
2211
|
export { Table }
|
|
2078
2212
|
export { Table as Table_alias_1 }
|
|
@@ -2101,27 +2235,9 @@ declare interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
|
|
|
2101
2235
|
description?: React.ReactNode;
|
|
2102
2236
|
}
|
|
2103
2237
|
|
|
2104
|
-
declare
|
|
2105
|
-
children: ReactElement<TabsTabProps> | ReactElement<TabsTabProps>[];
|
|
2106
|
-
/**
|
|
2107
|
-
* Direction of the tabs. Can either be vertical or horizontal.
|
|
2108
|
-
* Horizontal breaks on window width with fallback back to vertical
|
|
2109
|
-
*/
|
|
2110
|
-
direction?: "vertical" | "horizontal";
|
|
2111
|
-
}
|
|
2112
|
-
export { TabListProps }
|
|
2113
|
-
export { TabListProps as TabListProps_alias_1 }
|
|
2114
|
-
export { TabListProps as TabListProps_alias_2 }
|
|
2115
|
-
export { TabListProps as TabListProps_alias_3 }
|
|
2116
|
-
|
|
2117
|
-
export declare const Tabs_alias_3: OverridableComponent<TabsProps, HTMLDivElement>;
|
|
2238
|
+
export declare const Tabs_alias_3: ForwardRefExoticComponent<TabsProps & RefAttributes<HTMLDivElement>>;
|
|
2118
2239
|
|
|
2119
|
-
declare const TabsComponent: {
|
|
2120
|
-
(props: TabsProps & RefAttributes<HTMLDivElement>): ReactNode;
|
|
2121
|
-
<As extends ElementType>(props: {
|
|
2122
|
-
as?: As | undefined;
|
|
2123
|
-
} & TabsProps & Omit<ComponentPropsWithRef<As>, keyof TabsProps>): ReactNode;
|
|
2124
|
-
} & Pick<FC, "displayName"> & {
|
|
2240
|
+
declare const TabsComponent: ForwardRefExoticComponent<TabsProps & RefAttributes<HTMLDivElement>> & {
|
|
2125
2241
|
List: typeof TabsList;
|
|
2126
2242
|
Tab: typeof TabsTab;
|
|
2127
2243
|
Contents: typeof TabsContents;
|
|
@@ -2131,7 +2247,7 @@ export { TabsComponent as Tabs }
|
|
|
2131
2247
|
export { TabsComponent as Tabs_alias_1 }
|
|
2132
2248
|
export { TabsComponent as Tabs_alias_2 }
|
|
2133
2249
|
|
|
2134
|
-
declare const TabsContent:
|
|
2250
|
+
declare const TabsContent: ForwardRefExoticComponent<TabsContentProps & RefAttributes<HTMLDivElement>>;
|
|
2135
2251
|
export { TabsContent }
|
|
2136
2252
|
export { TabsContent as TabsContent_alias_1 }
|
|
2137
2253
|
export { TabsContent as TabsContent_alias_2 }
|
|
@@ -2143,22 +2259,38 @@ declare interface TabsContentProps extends HTMLAttributes<HTMLElement> {
|
|
|
2143
2259
|
* Content for the referenced tabId
|
|
2144
2260
|
*/
|
|
2145
2261
|
forTabId: string;
|
|
2262
|
+
/**
|
|
2263
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
2264
|
+
*
|
|
2265
|
+
* @default false
|
|
2266
|
+
*/
|
|
2267
|
+
asChild?: boolean;
|
|
2146
2268
|
}
|
|
2147
2269
|
export { TabsContentProps }
|
|
2148
2270
|
export { TabsContentProps as TabsContentProps_alias_1 }
|
|
2149
2271
|
export { TabsContentProps as TabsContentProps_alias_2 }
|
|
2150
2272
|
export { TabsContentProps as TabsContentProps_alias_3 }
|
|
2151
2273
|
|
|
2152
|
-
declare
|
|
2153
|
-
|
|
2154
|
-
declare namespace TabsContents {
|
|
2155
|
-
var displayName: string;
|
|
2156
|
-
}
|
|
2274
|
+
declare const TabsContents: ForwardRefExoticComponent<TabsContentsProps & RefAttributes<HTMLDivElement>>;
|
|
2157
2275
|
export { TabsContents }
|
|
2158
2276
|
export { TabsContents as TabsContents_alias_1 }
|
|
2159
2277
|
export { TabsContents as TabsContents_alias_2 }
|
|
2160
2278
|
export { TabsContents as TabsContents_alias_3 }
|
|
2161
2279
|
|
|
2280
|
+
declare interface TabsContentsProps extends HTMLAttributes<HTMLDivElement> {
|
|
2281
|
+
children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];
|
|
2282
|
+
/**
|
|
2283
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
2284
|
+
*
|
|
2285
|
+
* @default false
|
|
2286
|
+
*/
|
|
2287
|
+
asChild?: boolean;
|
|
2288
|
+
}
|
|
2289
|
+
export { TabsContentsProps }
|
|
2290
|
+
export { TabsContentsProps as TabsContentsProps_alias_1 }
|
|
2291
|
+
export { TabsContentsProps as TabsContentsProps_alias_2 }
|
|
2292
|
+
export { TabsContentsProps as TabsContentsProps_alias_3 }
|
|
2293
|
+
|
|
2162
2294
|
export declare const TabsContext: Context<TabsContextProps | null>;
|
|
2163
2295
|
|
|
2164
2296
|
export declare interface TabsContextProps {
|
|
@@ -2166,29 +2298,46 @@ export declare interface TabsContextProps {
|
|
|
2166
2298
|
toggleActiveTabId: (tabId: string) => void;
|
|
2167
2299
|
}
|
|
2168
2300
|
|
|
2169
|
-
declare
|
|
2170
|
-
|
|
2171
|
-
declare namespace TabsList {
|
|
2172
|
-
var displayName: string;
|
|
2173
|
-
}
|
|
2301
|
+
declare const TabsList: ForwardRefExoticComponent<TabsListProps & RefAttributes<HTMLDivElement>>;
|
|
2174
2302
|
export { TabsList }
|
|
2175
2303
|
export { TabsList as TabsList_alias_1 }
|
|
2176
2304
|
export { TabsList as TabsList_alias_2 }
|
|
2177
2305
|
export { TabsList as TabsList_alias_3 }
|
|
2178
2306
|
|
|
2179
|
-
declare interface
|
|
2180
|
-
children: ReactElement<
|
|
2307
|
+
declare interface TabsListProps extends HTMLAttributes<HTMLDivElement> {
|
|
2308
|
+
children: ReactElement<TabsTabProps> | ReactElement<TabsTabProps>[];
|
|
2309
|
+
/**
|
|
2310
|
+
* Direction of the tabs. Can either be vertical or horizontal.
|
|
2311
|
+
* Horizontal breaks on window width with fallback back to vertical
|
|
2312
|
+
*
|
|
2313
|
+
* @default "horizontal"
|
|
2314
|
+
*/
|
|
2315
|
+
direction?: "vertical" | "horizontal";
|
|
2316
|
+
}
|
|
2317
|
+
export { TabsListProps }
|
|
2318
|
+
export { TabsListProps as TabsListProps_alias_1 }
|
|
2319
|
+
export { TabsListProps as TabsListProps_alias_2 }
|
|
2320
|
+
export { TabsListProps as TabsListProps_alias_3 }
|
|
2321
|
+
|
|
2322
|
+
declare interface TabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
2323
|
+
children: ReactElement<TabsListProps | TabsContentsProps>[] | ReactElement;
|
|
2181
2324
|
/**
|
|
2182
2325
|
* Define which tab to use as default. Must be one of the <Tab/>s identifier.
|
|
2183
2326
|
*/
|
|
2184
2327
|
defaultTab: string;
|
|
2328
|
+
/**
|
|
2329
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
2330
|
+
*
|
|
2331
|
+
* @default false
|
|
2332
|
+
*/
|
|
2333
|
+
asChild?: boolean;
|
|
2185
2334
|
}
|
|
2186
2335
|
export { TabsProps }
|
|
2187
2336
|
export { TabsProps as TabsProps_alias_1 }
|
|
2188
2337
|
export { TabsProps as TabsProps_alias_2 }
|
|
2189
2338
|
export { TabsProps as TabsProps_alias_3 }
|
|
2190
2339
|
|
|
2191
|
-
declare const TabsTab:
|
|
2340
|
+
declare const TabsTab: ForwardRefExoticComponent<TabsTabProps & RefAttributes<HTMLButtonElement>>;
|
|
2192
2341
|
export { TabsTab }
|
|
2193
2342
|
export { TabsTab as TabsTab_alias_1 }
|
|
2194
2343
|
export { TabsTab as TabsTab_alias_2 }
|
|
@@ -2209,9 +2358,9 @@ export { TabsTabProps as TabsTabProps_alias_3 }
|
|
|
2209
2358
|
/**
|
|
2210
2359
|
* Text component
|
|
2211
2360
|
*
|
|
2212
|
-
* If the variant is `h1-display`, `h1`, `h2`, `h3`, or `h3-title` the `as` prop is required.
|
|
2361
|
+
* If the variant is `h1-display`, `h1`, `h2`, `h3`, or `h3-title` the `as` or `asChild` prop is required.
|
|
2213
2362
|
*
|
|
2214
|
-
* This to force the consumer to consider which semantic html element to use. E.g. `<h1>` or `<h2>`
|
|
2363
|
+
* This is to force the consumer to consider which semantic html element to use. E.g. `<h1>` or `<h2>`
|
|
2215
2364
|
*
|
|
2216
2365
|
* @example
|
|
2217
2366
|
* ```tsx
|
|
@@ -2221,7 +2370,7 @@ export { TabsTabProps as TabsTabProps_alias_3 }
|
|
|
2221
2370
|
* </Text>
|
|
2222
2371
|
* ```
|
|
2223
2372
|
*/
|
|
2224
|
-
declare const Text_2:
|
|
2373
|
+
declare const Text_2: React_3.ForwardRefExoticComponent<TextProps & React_3.RefAttributes<HTMLHeadingElement | HTMLParagraphElement>>;
|
|
2225
2374
|
export { Text_2 as Text }
|
|
2226
2375
|
export { Text_2 as Text_alias_1 }
|
|
2227
2376
|
export { Text_2 as Text_alias_2 }
|
|
@@ -2241,172 +2390,38 @@ export { TextareaProps as TextareaProps_alias_2 }
|
|
|
2241
2390
|
export { TextareaProps as TextareaProps_alias_3 }
|
|
2242
2391
|
export { TextareaProps as TextareaProps_alias_4 }
|
|
2243
2392
|
|
|
2244
|
-
|
|
2245
|
-
* # 🚨 Unstable alternative
|
|
2246
|
-
*
|
|
2247
|
-
* named as the different typography levels with Text prefix
|
|
2248
|
-
*
|
|
2249
|
-
* ## Alias to @see Text
|
|
2250
|
-
*/
|
|
2251
|
-
declare const TextBody: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2252
|
-
export { TextBody }
|
|
2253
|
-
export { TextBody as TextBody_alias_1 }
|
|
2254
|
-
export { TextBody as TextBody_alias_2 }
|
|
2255
|
-
|
|
2256
|
-
/**
|
|
2257
|
-
* # 🚨 Unstable alternative
|
|
2258
|
-
*
|
|
2259
|
-
* named as the different typography levels with Text prefix
|
|
2260
|
-
*
|
|
2261
|
-
* ## Alias to @see Text
|
|
2262
|
-
*/
|
|
2263
|
-
declare const TextBodySmall: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2264
|
-
export { TextBodySmall }
|
|
2265
|
-
export { TextBodySmall as TextBodySmall_alias_1 }
|
|
2266
|
-
export { TextBodySmall as TextBodySmall_alias_2 }
|
|
2267
|
-
|
|
2268
|
-
/**
|
|
2269
|
-
* # 🚨 Unstable alternative
|
|
2270
|
-
*
|
|
2271
|
-
* named as the different typography levels with Text prefix
|
|
2272
|
-
*
|
|
2273
|
-
* ## Alias to @see Text
|
|
2274
|
-
*/
|
|
2275
|
-
declare const TextBodySmallTitle: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2276
|
-
export { TextBodySmallTitle }
|
|
2277
|
-
export { TextBodySmallTitle as TextBodySmallTitle_alias_1 }
|
|
2278
|
-
export { TextBodySmallTitle as TextBodySmallTitle_alias_2 }
|
|
2279
|
-
|
|
2280
|
-
/**
|
|
2281
|
-
* # 🚨 Unstable alternative
|
|
2282
|
-
*
|
|
2283
|
-
* named as the different typography levels with Text prefix
|
|
2284
|
-
*
|
|
2285
|
-
* ## Alias to @see Text
|
|
2286
|
-
*/
|
|
2287
|
-
declare const TextBodyTitle: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2288
|
-
export { TextBodyTitle }
|
|
2289
|
-
export { TextBodyTitle as TextBodyTitle_alias_1 }
|
|
2290
|
-
export { TextBodyTitle as TextBodyTitle_alias_2 }
|
|
2291
|
-
|
|
2292
|
-
/**
|
|
2293
|
-
* 🚨 Unstable alterentative: Named as the different typography levels with Text prefix
|
|
2294
|
-
*
|
|
2295
|
-
* ## Alias to @see Text
|
|
2296
|
-
*/
|
|
2297
|
-
declare const TextCaption: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2298
|
-
export { TextCaption }
|
|
2299
|
-
export { TextCaption as TextCaption_alias_1 }
|
|
2300
|
-
export { TextCaption as TextCaption_alias_2 }
|
|
2301
|
-
|
|
2302
|
-
/**
|
|
2303
|
-
* 🚨 Unstable alterentative: Named as the different typography levels with Text prefix
|
|
2304
|
-
*
|
|
2305
|
-
* ## Alias to @see Text
|
|
2306
|
-
*/
|
|
2307
|
-
declare const TextCaptionTitle: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2308
|
-
export { TextCaptionTitle }
|
|
2309
|
-
export { TextCaptionTitle as TextCaptionTitle_alias_1 }
|
|
2310
|
-
export { TextCaptionTitle as TextCaptionTitle_alias_2 }
|
|
2311
|
-
|
|
2312
|
-
/**
|
|
2313
|
-
* # 🚨 Unstable alternative
|
|
2314
|
-
*
|
|
2315
|
-
* named as the different typography levels with Text prefix
|
|
2316
|
-
*
|
|
2317
|
-
* ## Alias to @see Text
|
|
2318
|
-
*/
|
|
2319
|
-
declare const TextH1: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2320
|
-
export { TextH1 }
|
|
2321
|
-
export { TextH1 as TextH1_alias_1 }
|
|
2322
|
-
export { TextH1 as TextH1_alias_2 }
|
|
2323
|
-
|
|
2324
|
-
/**
|
|
2325
|
-
* # 🚨 Unstable alternative
|
|
2326
|
-
*
|
|
2327
|
-
* named as the different typography levels with Text prefix
|
|
2328
|
-
*
|
|
2329
|
-
* ## Alias to @see Text
|
|
2330
|
-
*/
|
|
2331
|
-
declare const TextH1Display: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2332
|
-
export { TextH1Display }
|
|
2333
|
-
export { TextH1Display as TextH1Display_alias_1 }
|
|
2334
|
-
export { TextH1Display as TextH1Display_alias_2 }
|
|
2335
|
-
|
|
2336
|
-
/**
|
|
2337
|
-
* # 🚨 Unstable alternative
|
|
2338
|
-
*
|
|
2339
|
-
* named as the different typography levels with Text prefix
|
|
2340
|
-
*
|
|
2341
|
-
* ## Alias to @see Text
|
|
2342
|
-
*/
|
|
2343
|
-
declare const TextH2: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2344
|
-
export { TextH2 }
|
|
2345
|
-
export { TextH2 as TextH2_alias_1 }
|
|
2346
|
-
export { TextH2 as TextH2_alias_2 }
|
|
2347
|
-
|
|
2348
|
-
/**
|
|
2349
|
-
* # 🚨 Unstable alternative
|
|
2350
|
-
*
|
|
2351
|
-
* named as the different typography levels with Text prefix
|
|
2352
|
-
*
|
|
2353
|
-
* ## Alias to @see Text
|
|
2354
|
-
*/
|
|
2355
|
-
declare const TextH3: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2356
|
-
export { TextH3 }
|
|
2357
|
-
export { TextH3 as TextH3_alias_1 }
|
|
2358
|
-
export { TextH3 as TextH3_alias_2 }
|
|
2359
|
-
|
|
2360
|
-
/**
|
|
2361
|
-
* # 🚨 Unstable alternative
|
|
2362
|
-
*
|
|
2363
|
-
* named as the different typography levels with Text prefix
|
|
2364
|
-
*
|
|
2365
|
-
* ## Alias to @see Text
|
|
2366
|
-
*/
|
|
2367
|
-
declare const TextH3Title: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2368
|
-
export { TextH3Title }
|
|
2369
|
-
export { TextH3Title as TextH3Title_alias_1 }
|
|
2370
|
-
export { TextH3Title as TextH3Title_alias_2 }
|
|
2371
|
-
|
|
2372
|
-
declare type TextProps = (HeadingProps | ParagraphProps) & {
|
|
2393
|
+
declare type TextProps = {
|
|
2373
2394
|
children: React_3.ReactNode;
|
|
2374
2395
|
/**
|
|
2375
2396
|
* The font-size of the component. By default it's `fluid` which means it's smaller on mobile and larger on desktop.
|
|
2376
2397
|
*
|
|
2377
2398
|
* But you can lock it to either the min or the max size.
|
|
2399
|
+
*
|
|
2400
|
+
* @default "fluid"
|
|
2378
2401
|
*/
|
|
2379
2402
|
size?: "min" | "max" | "fluid";
|
|
2403
|
+
/**
|
|
2404
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
2405
|
+
*
|
|
2406
|
+
* @default false
|
|
2407
|
+
*/
|
|
2408
|
+
asChild?: boolean;
|
|
2409
|
+
/**
|
|
2410
|
+
* Convienence prop to change the rendered element.
|
|
2411
|
+
*
|
|
2412
|
+
* Use {@link TextProps.asChild} if you need more control of the rendered element.
|
|
2413
|
+
*/
|
|
2414
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span" | "div" | "label" | "p";
|
|
2380
2415
|
/**
|
|
2381
2416
|
* 🚧 Experimental spacing
|
|
2382
2417
|
*/
|
|
2383
2418
|
_unstableSpacing?: boolean;
|
|
2384
|
-
}
|
|
2419
|
+
} & (HeadingProps | ParagraphProps) & React_3.HTMLAttributes<HTMLParagraphElement | HTMLHeadingElement>;
|
|
2385
2420
|
export { TextProps }
|
|
2386
2421
|
export { TextProps as TextProps_alias_1 }
|
|
2387
2422
|
export { TextProps as TextProps_alias_2 }
|
|
2388
2423
|
export { TextProps as TextProps_alias_3 }
|
|
2389
2424
|
|
|
2390
|
-
/**
|
|
2391
|
-
* 🚨 Unstable alterentative: Named as the different typography levels with Text prefix
|
|
2392
|
-
*
|
|
2393
|
-
* ## Alias to @see Text
|
|
2394
|
-
*/
|
|
2395
|
-
declare const TextTechnical: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2396
|
-
export { TextTechnical }
|
|
2397
|
-
export { TextTechnical as TextTechnical_alias_1 }
|
|
2398
|
-
export { TextTechnical as TextTechnical_alias_2 }
|
|
2399
|
-
|
|
2400
|
-
/**
|
|
2401
|
-
* 🚨 Unstable alterentative: Named as the different typography levels with Text prefix
|
|
2402
|
-
*
|
|
2403
|
-
* ## Alias to @see Text
|
|
2404
|
-
*/
|
|
2405
|
-
declare const TextTechnicalTitle: FunctionComponent<Omit<TextProps, "variant">>;
|
|
2406
|
-
export { TextTechnicalTitle }
|
|
2407
|
-
export { TextTechnicalTitle as TextTechnicalTitle_alias_1 }
|
|
2408
|
-
export { TextTechnicalTitle as TextTechnicalTitle_alias_2 }
|
|
2409
|
-
|
|
2410
2425
|
export declare const Title: Story_26;
|
|
2411
2426
|
|
|
2412
2427
|
export declare const TitleOnly: Story_21;
|
|
@@ -2438,13 +2453,18 @@ export declare const Underline: Story_18;
|
|
|
2438
2453
|
/**
|
|
2439
2454
|
* An unordered list of simple items, often text. You can nest other lists inside this component.
|
|
2440
2455
|
*
|
|
2441
|
-
* If you have other list needs build your own using the semantic `ul` and `ol` tags.
|
|
2456
|
+
* If you have other list needs, you can build your own using the semantic `ul` and `ol` tags.
|
|
2457
|
+
*
|
|
2458
|
+
* @example
|
|
2459
|
+
* ```tsx
|
|
2460
|
+
* <UnorderedList>
|
|
2461
|
+
* <li>Item 1</li>
|
|
2462
|
+
* <li>Item 2</li>
|
|
2463
|
+
* <li>Item 3</li>
|
|
2464
|
+
* </UnorderedList>
|
|
2465
|
+
* ```
|
|
2442
2466
|
*/
|
|
2443
|
-
declare
|
|
2444
|
-
|
|
2445
|
-
declare namespace UnorderedList {
|
|
2446
|
-
var displayName: string;
|
|
2447
|
-
}
|
|
2467
|
+
declare const UnorderedList: ForwardRefExoticComponent<ListProps & RefAttributes<HTMLUListElement>>;
|
|
2448
2468
|
export { UnorderedList }
|
|
2449
2469
|
export { UnorderedList as UnorderedList_alias_1 }
|
|
2450
2470
|
export { UnorderedList as UnorderedList_alias_2 }
|
|
@@ -2487,12 +2507,6 @@ export declare function useResize<Instance extends HTMLElement>(ref: React_2.Ref
|
|
|
2487
2507
|
height: number;
|
|
2488
2508
|
};
|
|
2489
2509
|
|
|
2490
|
-
declare function useScrollLock(modalRef: React.RefObject<HTMLDialogElement>, bodyClass: string): void;
|
|
2491
|
-
export { useScrollLock }
|
|
2492
|
-
export { useScrollLock as useScrollLock_alias_1 }
|
|
2493
|
-
export { useScrollLock as useScrollLock_alias_2 }
|
|
2494
|
-
export { useScrollLock as useScrollLock_alias_3 }
|
|
2495
|
-
|
|
2496
2510
|
export declare function useTabsContext(): TabsContextProps;
|
|
2497
2511
|
|
|
2498
2512
|
declare type Variant = {
|
|
@@ -2526,23 +2540,19 @@ export declare const Warning: Story_2;
|
|
|
2526
2540
|
|
|
2527
2541
|
export declare const Warning_alias_1: Story_21;
|
|
2528
2542
|
|
|
2529
|
-
declare
|
|
2530
|
-
|
|
2531
|
-
declare namespace WarningBadge {
|
|
2532
|
-
var displayName: string;
|
|
2533
|
-
}
|
|
2543
|
+
declare const WarningBadge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLSpanElement>>;
|
|
2534
2544
|
export { WarningBadge }
|
|
2535
2545
|
export { WarningBadge as WarningBadge_alias_1 }
|
|
2536
2546
|
export { WarningBadge as WarningBadge_alias_2 }
|
|
2537
2547
|
export { WarningBadge as WarningBadge_alias_3 }
|
|
2538
2548
|
|
|
2539
|
-
declare const WarningBanner:
|
|
2549
|
+
declare const WarningBanner: React_3.ForwardRefExoticComponent<WarningBannerProps & React_3.RefAttributes<HTMLDivElement>>;
|
|
2540
2550
|
export { WarningBanner }
|
|
2541
2551
|
export { WarningBanner as WarningBanner_alias_1 }
|
|
2542
2552
|
export { WarningBanner as WarningBanner_alias_2 }
|
|
2543
2553
|
export { WarningBanner as WarningBanner_alias_3 }
|
|
2544
2554
|
|
|
2545
|
-
declare interface WarningBannerProps {
|
|
2555
|
+
declare interface WarningBannerProps extends Omit<React_3.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
2546
2556
|
title: ReactNode;
|
|
2547
2557
|
description?: ReactNode;
|
|
2548
2558
|
}
|
|
@@ -2557,11 +2567,7 @@ export declare const White: Story_2;
|
|
|
2557
2567
|
|
|
2558
2568
|
export declare const White_alias_1: Story_15;
|
|
2559
2569
|
|
|
2560
|
-
declare
|
|
2561
|
-
|
|
2562
|
-
declare namespace WhiteBadge {
|
|
2563
|
-
var displayName: string;
|
|
2564
|
-
}
|
|
2570
|
+
declare const WhiteBadge: ForwardRefExoticComponent<BadgeProps & RefAttributes<HTMLSpanElement>>;
|
|
2565
2571
|
export { WhiteBadge }
|
|
2566
2572
|
export { WhiteBadge as WhiteBadge_alias_1 }
|
|
2567
2573
|
export { WhiteBadge as WhiteBadge_alias_2 }
|