@bi-digital/react 0.2.13 → 0.2.14
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/README.md +6 -0
- package/dist/alert-B0SyUQVj.js +33 -0
- package/dist/alert-B0SyUQVj.js.map +1 -0
- package/dist/alert-Ch1lDSMm.js +0 -0
- package/dist/alert-footer-CWTF8lZr.d.ts +1574 -0
- package/dist/alert-footer-DL4rCThp.js +18 -0
- package/dist/alert-footer-DL4rCThp.js.map +1 -0
- package/dist/avatar-6Q2xwviO.js +39 -0
- package/dist/avatar-6Q2xwviO.js.map +1 -0
- package/dist/avatar-B81bChIx.js +0 -0
- package/dist/badge-D9OVAKG8.js +22 -0
- package/dist/badge-D9OVAKG8.js.map +1 -0
- package/dist/badge-uRbNhCzA.js +0 -0
- package/dist/button-fhd-JARc.js +41 -0
- package/dist/button-fhd-JARc.js.map +1 -0
- package/dist/button-vrN4Zwch.js +0 -0
- package/dist/card-BK1MS46W.js +0 -0
- package/dist/card-QAnFhTk6.js +22 -0
- package/dist/card-QAnFhTk6.js.map +1 -0
- package/dist/card-action-D8M3_IVq.js +23 -0
- package/dist/card-action-D8M3_IVq.js.map +1 -0
- package/dist/card-actions-CIsnmxsm.js +16 -0
- package/dist/card-actions-CIsnmxsm.js.map +1 -0
- package/dist/card-content-DkEHp8mv.js +18 -0
- package/dist/card-content-DkEHp8mv.js.map +1 -0
- package/dist/card-date-Bd87BGDE.js +16 -0
- package/dist/card-date-Bd87BGDE.js.map +1 -0
- package/dist/card-header-D-RMd4xS.js +39 -0
- package/dist/card-header-D-RMd4xS.js.map +1 -0
- package/dist/card-media-DhU2_Ueq.js +19 -0
- package/dist/card-media-DhU2_Ueq.js.map +1 -0
- package/dist/checkbox-Bx9n-4ar.js +56 -0
- package/dist/checkbox-Bx9n-4ar.js.map +1 -0
- package/dist/checkbox-DXGZ7D3M.js +0 -0
- package/dist/chip-CopwfoBo.js +0 -0
- package/dist/chip-DlPl-C_F.js +24 -0
- package/dist/chip-DlPl-C_F.js.map +1 -0
- package/dist/components/alert/alert-footer.d.ts +14 -0
- package/dist/components/alert/alert-footer.js +3 -0
- package/dist/components/alert/alert.d.ts +14 -0
- package/dist/components/alert/alert.js +3 -0
- package/dist/components/alert/index.d.ts +14 -0
- package/dist/components/alert/index.js +5 -0
- package/dist/components/avatar/avatar.d.ts +14 -0
- package/dist/components/avatar/avatar.js +3 -0
- package/dist/components/avatar/index.d.ts +14 -0
- package/dist/components/avatar/index.js +4 -0
- package/dist/components/badge/badge.d.ts +14 -0
- package/dist/components/badge/badge.js +3 -0
- package/dist/components/badge/index.d.ts +14 -0
- package/dist/components/badge/index.js +4 -0
- package/dist/components/button/button.d.ts +14 -59
- package/dist/components/button/button.js +5 -9
- package/dist/components/button/index.d.ts +14 -4
- package/dist/components/button/index.js +6 -10
- package/dist/components/card/card-action.d.ts +14 -0
- package/dist/components/card/card-action.js +7 -0
- package/dist/components/card/card-actions.d.ts +14 -0
- package/dist/components/card/card-actions.js +3 -0
- package/dist/components/card/card-content.d.ts +14 -0
- package/dist/components/card/card-content.js +3 -0
- package/dist/components/card/card-date.d.ts +14 -0
- package/dist/components/card/card-date.js +3 -0
- package/dist/components/card/card-header.d.ts +14 -0
- package/dist/components/card/card-header.js +3 -0
- package/dist/components/card/card-media.d.ts +14 -0
- package/dist/components/card/card-media.js +3 -0
- package/dist/components/card/card.d.ts +14 -0
- package/dist/components/card/card.js +3 -0
- package/dist/components/card/index.d.ts +14 -0
- package/dist/components/card/index.js +14 -0
- package/dist/components/checkbox/checkbox.d.ts +14 -0
- package/dist/components/checkbox/checkbox.js +15 -0
- package/dist/components/checkbox/index.d.ts +14 -0
- package/dist/components/checkbox/index.js +16 -0
- package/dist/components/chip/chip.d.ts +14 -0
- package/dist/components/chip/chip.js +3 -0
- package/dist/components/chip/index.d.ts +14 -0
- package/dist/components/chip/index.js +4 -0
- package/dist/components/dialog/dialog-content.d.ts +14 -0
- package/dist/components/dialog/dialog-content.js +3 -0
- package/dist/components/dialog/dialog-footer.d.ts +14 -0
- package/dist/components/dialog/dialog-footer.js +3 -0
- package/dist/components/dialog/dialog-header.d.ts +14 -0
- package/dist/components/dialog/dialog-header.js +3 -0
- package/dist/components/dialog/dialog-trigger-context.d.ts +2 -0
- package/dist/components/dialog/dialog-trigger-context.js +3 -0
- package/dist/components/dialog/dialog-trigger.d.ts +14 -0
- package/dist/components/dialog/dialog-trigger.js +8 -0
- package/dist/components/dialog/dialog.d.ts +14 -0
- package/dist/components/dialog/dialog.js +12 -0
- package/dist/components/dialog/index.d.ts +14 -0
- package/dist/components/dialog/index.js +17 -0
- package/dist/components/drawer/drawer-content.d.ts +14 -0
- package/dist/components/drawer/drawer-content.js +18 -0
- package/dist/components/drawer/drawer-footer.d.ts +14 -0
- package/dist/components/drawer/drawer-footer.js +18 -0
- package/dist/components/drawer/drawer-header.d.ts +14 -0
- package/dist/components/drawer/drawer-header.js +18 -0
- package/dist/components/drawer/drawer-trigger-context.d.ts +2 -0
- package/dist/components/drawer/drawer-trigger-context.js +18 -0
- package/dist/components/drawer/drawer-trigger.d.ts +14 -0
- package/dist/components/drawer/drawer-trigger.js +18 -0
- package/dist/components/drawer/drawer.d.ts +14 -0
- package/dist/components/drawer/drawer.js +18 -0
- package/dist/components/drawer/index.d.ts +14 -0
- package/dist/components/drawer/index.js +24 -0
- package/dist/components/dropdown/dropdown-button.d.ts +14 -0
- package/dist/components/dropdown/dropdown-button.js +7 -0
- package/dist/components/dropdown/dropdown-item.d.ts +2 -0
- package/dist/components/dropdown/dropdown-item.js +3 -0
- package/dist/components/dropdown/dropdown-list.d.ts +2 -0
- package/dist/components/dropdown/dropdown-list.js +3 -0
- package/dist/components/dropdown/dropdown-trigger-context.d.ts +2 -0
- package/dist/components/dropdown/dropdown-trigger-context.js +15 -0
- package/dist/components/dropdown/dropdown-trigger.d.ts +14 -0
- package/dist/components/dropdown/dropdown-trigger.js +15 -0
- package/dist/components/dropdown/dropdown.d.ts +14 -0
- package/dist/components/dropdown/dropdown.js +15 -0
- package/dist/components/dropdown/index.d.ts +14 -0
- package/dist/components/dropdown/index.js +21 -0
- package/dist/components/field/field-affix.d.ts +14 -0
- package/dist/components/field/field-affix.js +3 -0
- package/dist/components/field/field-description.d.ts +14 -0
- package/dist/components/field/field-description.js +3 -0
- package/dist/components/field/field.d.ts +14 -0
- package/dist/components/field/field.js +3 -0
- package/dist/components/field/index.d.ts +14 -0
- package/dist/components/field/index.js +6 -0
- package/dist/components/fieldset/fieldset-description.d.ts +14 -0
- package/dist/components/fieldset/fieldset-description.js +3 -0
- package/dist/components/fieldset/fieldset-legend.d.ts +14 -0
- package/dist/components/fieldset/fieldset-legend.js +5 -0
- package/dist/components/fieldset/fieldset.d.ts +14 -0
- package/dist/components/fieldset/fieldset.js +3 -0
- package/dist/components/fieldset/index.d.ts +14 -0
- package/dist/components/fieldset/index.js +8 -0
- package/dist/components/footer/footer-links.d.ts +2 -0
- package/dist/components/footer/footer-links.js +3 -0
- package/dist/components/footer/footer.d.ts +14 -0
- package/dist/components/footer/footer.js +7 -0
- package/dist/components/footer/index.d.ts +14 -0
- package/dist/components/footer/index.js +9 -0
- package/dist/components/index.d.ts +14 -11
- package/dist/components/index.js +99 -45
- package/dist/components/input/index.d.ts +14 -0
- package/dist/components/input/index.js +4 -0
- package/dist/components/input/input.d.ts +14 -0
- package/dist/components/input/input.js +3 -0
- package/dist/components/label/index.d.ts +14 -0
- package/dist/components/label/index.js +4 -0
- package/dist/components/label/label.d.ts +14 -0
- package/dist/components/label/label.js +3 -0
- package/dist/components/link/index.d.ts +14 -0
- package/dist/components/link/index.js +4 -0
- package/dist/components/link/link.d.ts +14 -0
- package/dist/components/link/link.js +3 -0
- package/dist/components/logo/index.d.ts +14 -4
- package/dist/components/logo/index.js +4 -8
- package/dist/components/logo/logo.d.ts +14 -32
- package/dist/components/logo/logo.js +3 -7
- package/dist/components/navbar/index.d.ts +14 -4
- package/dist/components/navbar/index.js +6 -10
- package/dist/components/navbar/navbar.d.ts +14 -43
- package/dist/components/navbar/navbar.js +5 -9
- package/dist/components/pagination/index.d.ts +14 -0
- package/dist/components/pagination/index.js +10 -0
- package/dist/components/pagination/pagination-button.d.ts +14 -0
- package/dist/components/pagination/pagination-button.js +7 -0
- package/dist/components/pagination/pagination-item.d.ts +2 -0
- package/dist/components/pagination/pagination-item.js +3 -0
- package/dist/components/pagination/pagination.d.ts +14 -0
- package/dist/components/pagination/pagination.js +3 -0
- package/dist/components/popover/index.d.ts +14 -0
- package/dist/components/popover/index.js +14 -0
- package/dist/components/popover/popover-trigger-context.d.ts +2 -0
- package/dist/components/popover/popover-trigger-context.js +3 -0
- package/dist/components/popover/popover-trigger.d.ts +14 -0
- package/dist/components/popover/popover-trigger.js +8 -0
- package/dist/components/popover/popover.d.ts +14 -0
- package/dist/components/popover/popover.js +8 -0
- package/dist/components/radio/index.d.ts +14 -0
- package/dist/components/radio/index.js +12 -0
- package/dist/components/radio/radio.d.ts +14 -0
- package/dist/components/radio/radio.js +11 -0
- package/dist/components/search/index.d.ts +14 -0
- package/dist/components/search/index.js +14 -0
- package/dist/components/search/search.d.ts +14 -0
- package/dist/components/search/search.js +13 -0
- package/dist/components/select/index.d.ts +14 -0
- package/dist/components/select/index.js +6 -0
- package/dist/components/select/select-optgroup.d.ts +14 -0
- package/dist/components/select/select-optgroup.js +3 -0
- package/dist/components/select/select-option.d.ts +14 -0
- package/dist/components/select/select-option.js +3 -0
- package/dist/components/select/select.d.ts +14 -0
- package/dist/components/select/select.js +3 -0
- package/dist/components/spinner/index.d.ts +14 -4
- package/dist/components/spinner/index.js +4 -8
- package/dist/components/spinner/spinner.d.ts +14 -19
- package/dist/components/spinner/spinner.js +3 -7
- package/dist/components/tabs/index.d.ts +14 -0
- package/dist/components/tabs/index.js +11 -0
- package/dist/components/tabs/tab.d.ts +14 -0
- package/dist/components/tabs/tab.js +7 -0
- package/dist/components/tabs/tabs-list.d.ts +14 -0
- package/dist/components/tabs/tabs-list.js +3 -0
- package/dist/components/tabs/tabs-panel.d.ts +14 -0
- package/dist/components/tabs/tabs-panel.js +3 -0
- package/dist/components/tabs/tabs.d.ts +14 -0
- package/dist/components/tabs/tabs.js +3 -0
- package/dist/components/textarea/index.d.ts +14 -0
- package/dist/components/textarea/index.js +4 -0
- package/dist/components/textarea/textarea.d.ts +14 -0
- package/dist/components/textarea/textarea.js +3 -0
- package/dist/components/textfield/index.d.ts +14 -0
- package/dist/components/textfield/index.js +16 -0
- package/dist/components/textfield/textfield.d.ts +14 -0
- package/dist/components/textfield/textfield.js +15 -0
- package/dist/components/validation-message/index.d.ts +14 -0
- package/dist/components/validation-message/index.js +4 -0
- package/dist/components/validation-message/validation-message.d.ts +14 -0
- package/dist/components/validation-message/validation-message.js +3 -0
- package/dist/components-DldfmTaW.js +0 -0
- package/dist/dialog-BH58xo66.js +106 -0
- package/dist/dialog-BH58xo66.js.map +1 -0
- package/dist/dialog-CnQlF2iI.js +0 -0
- package/dist/dialog-content-WzSZbqt-.js +18 -0
- package/dist/dialog-content-WzSZbqt-.js.map +1 -0
- package/dist/dialog-footer-qRAQAS0Y.js +18 -0
- package/dist/dialog-footer-qRAQAS0Y.js.map +1 -0
- package/dist/dialog-header-CMt3r5oC.js +18 -0
- package/dist/dialog-header-CMt3r5oC.js.map +1 -0
- package/dist/dialog-trigger-XPMx1psz.js +22 -0
- package/dist/dialog-trigger-XPMx1psz.js.map +1 -0
- package/dist/dialog-trigger-context-B5d-o0K7.js +16 -0
- package/dist/dialog-trigger-context-B5d-o0K7.js.map +1 -0
- package/dist/dialog-trigger-context-BXtYdvEK.d.ts +15 -0
- package/dist/drawer-Cc670B_f.js +0 -0
- package/dist/drawer-DktQMZpp.js +46 -0
- package/dist/drawer-DktQMZpp.js.map +1 -0
- package/dist/drawer-content-D_Y5KRqQ.js +14 -0
- package/dist/drawer-content-D_Y5KRqQ.js.map +1 -0
- package/dist/drawer-footer-f8OAoZVM.js +14 -0
- package/dist/drawer-footer-f8OAoZVM.js.map +1 -0
- package/dist/drawer-header-nRdU5sRL.js +14 -0
- package/dist/drawer-header-nRdU5sRL.js.map +1 -0
- package/dist/drawer-trigger-GO6wSbYv.js +12 -0
- package/dist/drawer-trigger-GO6wSbYv.js.map +1 -0
- package/dist/drawer-trigger-context-C3D2O90e.js +9 -0
- package/dist/drawer-trigger-context-C3D2O90e.js.map +1 -0
- package/dist/drawer-trigger-context-CZyGAmYc.d.ts +13 -0
- package/dist/dropdown-B0sjzw91.js +15 -0
- package/dist/dropdown-B0sjzw91.js.map +1 -0
- package/dist/dropdown-BecLkiCE.js +0 -0
- package/dist/dropdown-CFwza8-u.js +44 -0
- package/dist/dropdown-CFwza8-u.js.map +1 -0
- package/dist/dropdown-button-FQqIwqdp.js +15 -0
- package/dist/dropdown-button-FQqIwqdp.js.map +1 -0
- package/dist/dropdown-item-DQQXQC4J.js +11 -0
- package/dist/dropdown-item-DQQXQC4J.js.map +1 -0
- package/dist/dropdown-item-h8WklvJi.d.ts +14 -0
- package/dist/dropdown-list-B8pfs0Vc.d.ts +14 -0
- package/dist/dropdown-list-DB1mST67.js +11 -0
- package/dist/dropdown-list-DB1mST67.js.map +1 -0
- package/dist/dropdown-trigger-DnE1t9YA.js +13 -0
- package/dist/dropdown-trigger-DnE1t9YA.js.map +1 -0
- package/dist/dropdown-trigger-context-5mGr6ped.d.ts +29 -0
- package/dist/dropdown-trigger-context-BDCr78fy.js +25 -0
- package/dist/dropdown-trigger-context-BDCr78fy.js.map +1 -0
- package/dist/field-B7y2WBzu.js +0 -0
- package/dist/field-U2SN9jkp.js +30 -0
- package/dist/field-U2SN9jkp.js.map +1 -0
- package/dist/field-affix-npc6m7XL.js +47 -0
- package/dist/field-affix-npc6m7XL.js.map +1 -0
- package/dist/field-description-Dhm1VA08.js +17 -0
- package/dist/field-description-Dhm1VA08.js.map +1 -0
- package/dist/fieldset-Bpu4CRKG.js +17 -0
- package/dist/fieldset-Bpu4CRKG.js.map +1 -0
- package/dist/fieldset-D5HSCHPA.js +0 -0
- package/dist/fieldset-description-DiHvcLh-.js +15 -0
- package/dist/fieldset-description-DiHvcLh-.js.map +1 -0
- package/dist/fieldset-legend-CR4srn2-.js +19 -0
- package/dist/fieldset-legend-CR4srn2-.js.map +1 -0
- package/dist/footer-Dv7qJxvS.js +0 -0
- package/dist/footer-hxqsN1cg.js +111 -0
- package/dist/footer-hxqsN1cg.js.map +1 -0
- package/dist/footer-links-BbIh-yGy.d.ts +20 -0
- package/dist/footer-links-CicpNbmh.js +15 -0
- package/dist/footer-links-CicpNbmh.js.map +1 -0
- package/dist/hooks-CQ4fud3K.js +0 -0
- package/dist/index-DRx9hLAb.d.ts +48 -0
- package/dist/index-no8iFicj.d.ts +47 -0
- package/dist/input-03FO9IIL.js +0 -0
- package/dist/input-Dr7BnTyd.js +25 -0
- package/dist/input-Dr7BnTyd.js.map +1 -0
- package/dist/label-DUzvAx-T.js +19 -0
- package/dist/label-DUzvAx-T.js.map +1 -0
- package/dist/label-nhrfSiaP.js +0 -0
- package/dist/link-CmV99fiH.js +19 -0
- package/dist/link-CmV99fiH.js.map +1 -0
- package/dist/link-SFIswjDv.js +0 -0
- package/dist/logo-CH25UUnL.js +19 -0
- package/dist/logo-CH25UUnL.js.map +1 -0
- package/dist/logo-CtdGQobw.js +0 -0
- package/dist/main.d.ts +14 -12
- package/dist/main.js +100 -51
- package/dist/navbar-B9qq_6F0.js +0 -0
- package/dist/navbar-De_fPOmv.js +31 -0
- package/dist/navbar-De_fPOmv.js.map +1 -0
- package/dist/pagination-DE6-fkdI.js +17 -0
- package/dist/pagination-DE6-fkdI.js.map +1 -0
- package/dist/pagination-SGu293vE.js +0 -0
- package/dist/pagination-button-D7N6uNjK.js +14 -0
- package/dist/pagination-button-D7N6uNjK.js.map +1 -0
- package/dist/pagination-item-D2-tdnvJ.d.ts +21 -0
- package/dist/pagination-item-DOhhpnMQ.js +16 -0
- package/dist/pagination-item-DOhhpnMQ.js.map +1 -0
- package/dist/popover-5DDVrAzC.js +109 -0
- package/dist/popover-5DDVrAzC.js.map +1 -0
- package/dist/popover-C4ia-MZ5.js +44 -0
- package/dist/popover-C4ia-MZ5.js.map +1 -0
- package/dist/popover-Ch_2ehYy.js +0 -0
- package/dist/popover-trigger-DB9-FUdp.js +44 -0
- package/dist/popover-trigger-DB9-FUdp.js.map +1 -0
- package/dist/popover-trigger-context-C9JBxqVG.d.ts +29 -0
- package/dist/popover-trigger-context-CFCUCT8d.js +31 -0
- package/dist/popover-trigger-context-CFCUCT8d.js.map +1 -0
- package/dist/radio-BXh5qXUM.js +0 -0
- package/dist/radio-DO1yBsvB.js +43 -0
- package/dist/radio-DO1yBsvB.js.map +1 -0
- package/dist/search-BjijtARV.js +55 -0
- package/dist/search-BjijtARV.js.map +1 -0
- package/dist/search-CDWq41eP.js +0 -0
- package/dist/select-BhZiWr3e.js +26 -0
- package/dist/select-BhZiWr3e.js.map +1 -0
- package/dist/select-CIoM-cNC.js +0 -0
- package/dist/select-optgroup-CTxTrNuW.js +15 -0
- package/dist/select-optgroup-CTxTrNuW.js.map +1 -0
- package/dist/select-option-StqAJ3Zw.js +15 -0
- package/dist/select-option-StqAJ3Zw.js.map +1 -0
- package/dist/spinner-CPiGcSIc.js +0 -0
- package/dist/spinner-Ch5bEQBR.js +17 -0
- package/dist/spinner-Ch5bEQBR.js.map +1 -0
- package/dist/tab-B36MUojE.js +27 -0
- package/dist/tab-B36MUojE.js.map +1 -0
- package/dist/tabs-CNwtyPqg.js +0 -0
- package/dist/tabs-D37c_qi5.js +24 -0
- package/dist/tabs-D37c_qi5.js.map +1 -0
- package/dist/tabs-list-CYproOp6.js +20 -0
- package/dist/tabs-list-CYproOp6.js.map +1 -0
- package/dist/tabs-panel-Bh9fqG1R.js +21 -0
- package/dist/tabs-panel-Bh9fqG1R.js.map +1 -0
- package/dist/textarea-CGx0ecUJ.js +0 -0
- package/dist/textarea-D6dY1eRh.js +17 -0
- package/dist/textarea-D6dY1eRh.js.map +1 -0
- package/dist/textfield-BTogEiz_.js +62 -0
- package/dist/textfield-BTogEiz_.js.map +1 -0
- package/dist/textfield-OYsTbJVn.js +0 -0
- package/dist/types-CaBoIvtz.d.ts +34 -0
- package/dist/types-DUx4Pkhy.d.ts +9 -0
- package/dist/types.d.ts +2 -0
- package/dist/types.js +0 -0
- package/dist/useIsomorphicLayoutEffect-BJo3l8ol.d.ts +7 -0
- package/dist/useIsomorphicLayoutEffect-DCaf_yI4.js +8 -0
- package/dist/useIsomorphicLayoutEffect-DCaf_yI4.js.map +1 -0
- package/dist/useMergeRefs-CGbb4u_J.d.ts +11 -0
- package/dist/useMergeRefs-Cz-t7gpp.js +42 -0
- package/dist/useMergeRefs-Cz-t7gpp.js.map +1 -0
- package/dist/usePagination-afWMXp7h.js +97 -0
- package/dist/usePagination-afWMXp7h.js.map +1 -0
- package/dist/utilities/hooks/index.d.ts +14 -2
- package/dist/utilities/hooks/index.js +6 -8
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +2 -5
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +3 -7
- package/dist/utilities/hooks/useMergeRefs/useMergeRefs.d.ts +2 -0
- package/dist/utilities/hooks/useMergeRefs/useMergeRefs.js +3 -0
- package/dist/utilities/hooks/usePagination/usePagination.d.ts +14 -0
- package/dist/utilities/hooks/usePagination/usePagination.js +3 -0
- package/dist/utilities/index.d.ts +14 -3
- package/dist/utilities/index.js +7 -9
- package/dist/utilities/types.d.ts +2 -7
- package/dist/utilities/types.js +0 -1
- package/dist/utilities-CQ6hoSQa.js +0 -0
- package/dist/validation-message-Bf3z_0qa.js +0 -0
- package/dist/validation-message-C1f_XsoD.js +19 -0
- package/dist/validation-message-C1f_XsoD.js.map +1 -0
- package/dist/vanilla/dropdown/index.d.ts +2 -0
- package/dist/vanilla/dropdown/index.js +4 -0
- package/dist/vanilla/index.d.ts +3 -0
- package/dist/vanilla/index.js +4 -0
- package/dist/vanilla/popover/index.d.ts +2 -0
- package/dist/vanilla/popover/index.js +3 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +25 -10
- package/dist/chunk-2C3XKBNM.js +0 -1
- package/dist/chunk-2C3XKBNM.js.map +0 -1
- package/dist/chunk-2PYB72CX.js +0 -1
- package/dist/chunk-2PYB72CX.js.map +0 -1
- package/dist/chunk-3XRBNC3R.js +0 -32
- package/dist/chunk-3XRBNC3R.js.map +0 -1
- package/dist/chunk-4WOE4T43.js +0 -1
- package/dist/chunk-4WOE4T43.js.map +0 -1
- package/dist/chunk-BBMVGCDE.js +0 -1
- package/dist/chunk-BBMVGCDE.js.map +0 -1
- package/dist/chunk-DT6EO53O.js +0 -46
- package/dist/chunk-DT6EO53O.js.map +0 -1
- package/dist/chunk-DZDPC6SE.js +0 -1
- package/dist/chunk-DZDPC6SE.js.map +0 -1
- package/dist/chunk-IT2O6DB2.js +0 -53
- package/dist/chunk-IT2O6DB2.js.map +0 -1
- package/dist/chunk-LLNHMZB2.js +0 -1
- package/dist/chunk-LLNHMZB2.js.map +0 -1
- package/dist/chunk-MXDZGWL4.js +0 -33
- package/dist/chunk-MXDZGWL4.js.map +0 -1
- package/dist/chunk-NLZRLXFN.js +0 -30
- package/dist/chunk-NLZRLXFN.js.map +0 -1
- package/dist/chunk-PD4PXDK2.js +0 -1
- package/dist/chunk-PD4PXDK2.js.map +0 -1
- package/dist/chunk-RAZCAHWX.js +0 -1
- package/dist/chunk-RAZCAHWX.js.map +0 -1
- package/dist/chunk-RELDFXH4.js +0 -1
- package/dist/chunk-RELDFXH4.js.map +0 -1
- package/dist/chunk-RONRQXS6.js +0 -11
- package/dist/chunk-RONRQXS6.js.map +0 -1
- package/dist/chunk-RVKE5NZR.js +0 -1
- package/dist/chunk-RVKE5NZR.js.map +0 -1
- package/dist/chunk-SGVCN25U.js +0 -11
- package/dist/chunk-SGVCN25U.js.map +0 -1
- package/dist/chunk-SHVA4JJZ.js +0 -1
- package/dist/chunk-SHVA4JJZ.js.map +0 -1
- package/dist/chunk-SX22Q2HZ.js +0 -84
- package/dist/chunk-SX22Q2HZ.js.map +0 -1
- package/dist/chunk-TUJK53CY.js +0 -1
- package/dist/chunk-TUJK53CY.js.map +0 -1
- package/dist/chunk-VPE7VEBG.js +0 -8
- package/dist/chunk-VPE7VEBG.js.map +0 -1
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/form/error-message/error-message.d.ts +0 -10
- package/dist/components/form/error-message/error-message.js +0 -7
- package/dist/components/form/error-message/error-message.js.map +0 -1
- package/dist/components/form/error-message/index.d.ts +0 -3
- package/dist/components/form/error-message/index.js +0 -8
- package/dist/components/form/error-message/index.js.map +0 -1
- package/dist/components/form/index.d.ts +0 -6
- package/dist/components/form/index.js +0 -24
- package/dist/components/form/index.js.map +0 -1
- package/dist/components/form/input/index.d.ts +0 -5
- package/dist/components/form/input/index.js +0 -14
- package/dist/components/form/input/index.js.map +0 -1
- package/dist/components/form/input/input.d.ts +0 -11
- package/dist/components/form/input/input.js +0 -13
- package/dist/components/form/input/input.js.map +0 -1
- package/dist/components/form/input-group/index.d.ts +0 -4
- package/dist/components/form/input-group/index.js +0 -12
- package/dist/components/form/input-group/index.js.map +0 -1
- package/dist/components/form/input-group/input-group.d.ts +0 -27
- package/dist/components/form/input-group/input-group.js +0 -11
- package/dist/components/form/input-group/input-group.js.map +0 -1
- package/dist/components/form/label/index.d.ts +0 -3
- package/dist/components/form/label/index.js +0 -8
- package/dist/components/form/label/index.js.map +0 -1
- package/dist/components/form/label/label.d.ts +0 -23
- package/dist/components/form/label/label.js +0 -7
- package/dist/components/form/label/label.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/logo/index.js.map +0 -1
- package/dist/components/logo/logo.js.map +0 -1
- package/dist/components/navbar/index.js.map +0 -1
- package/dist/components/navbar/navbar.js.map +0 -1
- package/dist/components/spinner/index.js.map +0 -1
- package/dist/components/spinner/spinner.js.map +0 -1
- package/dist/main.js.map +0 -1
- package/dist/utilities/hooks/index.js.map +0 -1
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js.map +0 -1
- package/dist/utilities/index.js.map +0 -1
- package/dist/utilities/types.js.map +0 -1
- package/dist/vite-env.d.d.ts +0 -1
- package/dist/vite-env.d.js +0 -1
- package/dist/vite-env.d.js.map +0 -1
|
@@ -0,0 +1,1574 @@
|
|
|
1
|
+
import { AsChildProps, DefaultProps, LabelRequiredProps } from "./types-CaBoIvtz.js";
|
|
2
|
+
import { MergeRight } from "./types-DUx4Pkhy.js";
|
|
3
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
4
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
5
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
6
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
7
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
8
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
9
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
10
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
11
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
12
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
13
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
14
|
+
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
15
|
+
import * as react_jsx_runtime12 from "react/jsx-runtime";
|
|
16
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
17
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
18
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
19
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
20
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
21
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
22
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
23
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
24
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
25
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
26
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
27
|
+
import * as react_jsx_runtime53 from "react/jsx-runtime";
|
|
28
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
29
|
+
import * as react_jsx_runtime32 from "react/jsx-runtime";
|
|
30
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
31
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
32
|
+
import * as react_jsx_runtime36 from "react/jsx-runtime";
|
|
33
|
+
import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
34
|
+
import * as react_jsx_runtime33 from "react/jsx-runtime";
|
|
35
|
+
import * as react_jsx_runtime39 from "react/jsx-runtime";
|
|
36
|
+
import * as react_jsx_runtime37 from "react/jsx-runtime";
|
|
37
|
+
import * as react_jsx_runtime43 from "react/jsx-runtime";
|
|
38
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
39
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
40
|
+
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
41
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
42
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
43
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
44
|
+
import * as react_jsx_runtime47 from "react/jsx-runtime";
|
|
45
|
+
import * as react_jsx_runtime54 from "react/jsx-runtime";
|
|
46
|
+
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
47
|
+
import * as react_jsx_runtime66 from "react/jsx-runtime";
|
|
48
|
+
import * as react_jsx_runtime65 from "react/jsx-runtime";
|
|
49
|
+
import * as react_jsx_runtime64 from "react/jsx-runtime";
|
|
50
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
51
|
+
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
52
|
+
import * as react_jsx_runtime57 from "react/jsx-runtime";
|
|
53
|
+
import * as react_jsx_runtime58 from "react/jsx-runtime";
|
|
54
|
+
import * as react_jsx_runtime59 from "react/jsx-runtime";
|
|
55
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
56
|
+
import * as react_jsx_runtime62 from "react/jsx-runtime";
|
|
57
|
+
import * as react_jsx_runtime63 from "react/jsx-runtime";
|
|
58
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
59
|
+
import { AnchorHTMLAttributes, AriaAttributes, ButtonHTMLAttributes, DialogHTMLAttributes, FieldsetHTMLAttributes, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, ReactNode, Ref, SelectHTMLAttributes, TextareaHTMLAttributes } from "react";
|
|
60
|
+
import { Middleware, Placement } from "@floating-ui/dom";
|
|
61
|
+
import "@oddbird/popover-polyfill";
|
|
62
|
+
|
|
63
|
+
//#region src/components/alert/alert.d.ts
|
|
64
|
+
type AlertProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
65
|
+
/**
|
|
66
|
+
* The alert variant.
|
|
67
|
+
* @default 'info'
|
|
68
|
+
*/
|
|
69
|
+
variant?: 'info' | 'success' | 'warning' | 'alert';
|
|
70
|
+
/**
|
|
71
|
+
* Size of the alert.
|
|
72
|
+
* @default 'medium'
|
|
73
|
+
*/
|
|
74
|
+
size?: 'small' | 'medium' | 'large';
|
|
75
|
+
/** Custom close button. It's your responsibility to make the button close the alert. */
|
|
76
|
+
closeButton?: ReactNode;
|
|
77
|
+
/** Override the default icon which is decided by the `variant`. */
|
|
78
|
+
icon?: ReactNode;
|
|
79
|
+
/**
|
|
80
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
asChild?: boolean;
|
|
84
|
+
ref?: Ref<HTMLDivElement>;
|
|
85
|
+
}>;
|
|
86
|
+
declare const Alert: ({
|
|
87
|
+
className,
|
|
88
|
+
children,
|
|
89
|
+
closeButton,
|
|
90
|
+
variant,
|
|
91
|
+
icon,
|
|
92
|
+
asChild,
|
|
93
|
+
dark,
|
|
94
|
+
size,
|
|
95
|
+
ref,
|
|
96
|
+
...rest
|
|
97
|
+
}: AlertProps) => react_jsx_runtime1.JSX.Element;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/components/avatar/avatar.d.ts
|
|
100
|
+
type AvatarProps = MergeRight<DefaultProps & HTMLAttributes<HTMLSpanElement>, {
|
|
101
|
+
/**
|
|
102
|
+
* Name of the person the avatar represents.
|
|
103
|
+
*/
|
|
104
|
+
'aria-label': string;
|
|
105
|
+
/**
|
|
106
|
+
* Size of the avatar.
|
|
107
|
+
* @default 'medium'
|
|
108
|
+
*/
|
|
109
|
+
size?: 'small' | 'medium';
|
|
110
|
+
/**
|
|
111
|
+
* Color scheme of the avatar.
|
|
112
|
+
* @default 'primary'
|
|
113
|
+
*/
|
|
114
|
+
color?: 'primary' | 'info' | 'success' | 'warning' | 'alert';
|
|
115
|
+
ref?: Ref<HTMLSpanElement>;
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* An Avatar represents a person.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* <Avatar aria-label="Ola Nordmann">ON</Avatar>
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* <Avatar aria-label="Ola Nordmann">
|
|
125
|
+
* <img src='…' alt='Ola Nordmann' />
|
|
126
|
+
* </Avatar>
|
|
127
|
+
*/
|
|
128
|
+
declare const Avatar: ({
|
|
129
|
+
"aria-label": ariaLabel,
|
|
130
|
+
className,
|
|
131
|
+
ref,
|
|
132
|
+
dark,
|
|
133
|
+
size,
|
|
134
|
+
color,
|
|
135
|
+
children,
|
|
136
|
+
...props
|
|
137
|
+
}: AvatarProps) => react_jsx_runtime2.JSX.Element;
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/components/badge/badge.d.ts
|
|
140
|
+
type BadgeProps = MergeRight<DefaultProps & AsChildProps & HTMLAttributes<HTMLSpanElement>, {
|
|
141
|
+
/**
|
|
142
|
+
* Size of the badge.
|
|
143
|
+
* @default 'medium'
|
|
144
|
+
*/
|
|
145
|
+
size?: 'xs' | 'small' | 'medium';
|
|
146
|
+
/**
|
|
147
|
+
* Color of the badge.
|
|
148
|
+
* @default 'neutral'
|
|
149
|
+
*/
|
|
150
|
+
color: 'neutral' | 'success' | 'warning' | 'alert' | 'brand' | 'info' | 'negative';
|
|
151
|
+
/**
|
|
152
|
+
* Makes the badge have the same height/width. Use for single-letter badges.
|
|
153
|
+
* @default false
|
|
154
|
+
*/
|
|
155
|
+
singleLetter?: boolean;
|
|
156
|
+
ref?: Ref<HTMLSpanElement>;
|
|
157
|
+
}>;
|
|
158
|
+
declare const Badge: ({
|
|
159
|
+
className,
|
|
160
|
+
children,
|
|
161
|
+
dark,
|
|
162
|
+
size,
|
|
163
|
+
color,
|
|
164
|
+
singleLetter,
|
|
165
|
+
asChild,
|
|
166
|
+
ref,
|
|
167
|
+
...props
|
|
168
|
+
}: BadgeProps) => react_jsx_runtime3.JSX.Element;
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/components/button/button.d.ts
|
|
171
|
+
type ButtonProps = MergeRight<DefaultProps & ButtonHTMLAttributes<HTMLButtonElement>, {
|
|
172
|
+
/**
|
|
173
|
+
* The button size.
|
|
174
|
+
* @default 'medium'
|
|
175
|
+
*/
|
|
176
|
+
size?: 'small' | 'medium' | 'large';
|
|
177
|
+
/**
|
|
178
|
+
* The button variant.
|
|
179
|
+
* @default 'filled'
|
|
180
|
+
*/
|
|
181
|
+
variant?: 'filled' | 'outlined' | 'text' | 'flat';
|
|
182
|
+
/**
|
|
183
|
+
* Stretch the button to the full width.
|
|
184
|
+
* @default false
|
|
185
|
+
*/
|
|
186
|
+
stretch?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Display a loading animation with the Spinner-component.
|
|
189
|
+
* Replaces the `startIcon` if used
|
|
190
|
+
* @default false
|
|
191
|
+
*/
|
|
192
|
+
submitting?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Display as icon-button, only use when showing an icon as the label.
|
|
195
|
+
* Not compatible with the icon-slots or `stretch`.
|
|
196
|
+
* Always provide a descriptive aria-label for accessibility when set to true.
|
|
197
|
+
* @default false
|
|
198
|
+
*/
|
|
199
|
+
icon?: boolean;
|
|
200
|
+
/** Set an icon before the button label, no effect if `icon=true` */
|
|
201
|
+
startIcon?: ReactNode;
|
|
202
|
+
/** Set an icon after the button label, no effect if `icon=true` */
|
|
203
|
+
endIcon?: ReactNode;
|
|
204
|
+
/** Make the button active by showing an active state. */
|
|
205
|
+
active?: boolean;
|
|
206
|
+
ref?: Ref<HTMLButtonElement>;
|
|
207
|
+
/**
|
|
208
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
209
|
+
* @default false
|
|
210
|
+
*/
|
|
211
|
+
asChild?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Specify the type of button. Unset when `asChild` is true
|
|
214
|
+
* @default 'button'
|
|
215
|
+
*/
|
|
216
|
+
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
217
|
+
}>;
|
|
218
|
+
declare const Button: ({
|
|
219
|
+
asChild,
|
|
220
|
+
variant,
|
|
221
|
+
size,
|
|
222
|
+
stretch,
|
|
223
|
+
dark,
|
|
224
|
+
submitting,
|
|
225
|
+
icon,
|
|
226
|
+
children,
|
|
227
|
+
className,
|
|
228
|
+
startIcon,
|
|
229
|
+
endIcon,
|
|
230
|
+
active,
|
|
231
|
+
ref,
|
|
232
|
+
...props
|
|
233
|
+
}: ButtonProps) => react_jsx_runtime4.JSX.Element;
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region src/components/card/card.d.ts
|
|
236
|
+
type CardProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
237
|
+
/**
|
|
238
|
+
* The orientation of the card
|
|
239
|
+
* @default 'horizontal'
|
|
240
|
+
*/
|
|
241
|
+
orientation?: 'horizontal' | 'vertical';
|
|
242
|
+
/**
|
|
243
|
+
* The color of the card
|
|
244
|
+
* @default 'neutral'
|
|
245
|
+
*/
|
|
246
|
+
color?: 'neutral' | 'info' | 'warning';
|
|
247
|
+
error?: boolean;
|
|
248
|
+
/**
|
|
249
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
250
|
+
* @default false
|
|
251
|
+
*/
|
|
252
|
+
asChild?: boolean;
|
|
253
|
+
ref?: Ref<HTMLDivElement>;
|
|
254
|
+
}>;
|
|
255
|
+
declare const Card: ({
|
|
256
|
+
orientation,
|
|
257
|
+
color,
|
|
258
|
+
error,
|
|
259
|
+
dark,
|
|
260
|
+
className,
|
|
261
|
+
ref,
|
|
262
|
+
children,
|
|
263
|
+
asChild,
|
|
264
|
+
...props
|
|
265
|
+
}: CardProps) => react_jsx_runtime11.JSX.Element;
|
|
266
|
+
//#endregion
|
|
267
|
+
//#region src/components/card/card-actions.d.ts
|
|
268
|
+
type CardActionsProps = MergeRight<HTMLAttributes<HTMLDivElement>, {
|
|
269
|
+
ref?: Ref<HTMLDivElement>;
|
|
270
|
+
}>;
|
|
271
|
+
declare const CardActions: ({
|
|
272
|
+
className,
|
|
273
|
+
ref,
|
|
274
|
+
children,
|
|
275
|
+
...props
|
|
276
|
+
}: CardActionsProps) => react_jsx_runtime6.JSX.Element;
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region src/components/card/card-action.d.ts
|
|
279
|
+
type CardActionProps = ButtonProps;
|
|
280
|
+
declare const CardAction: ({
|
|
281
|
+
asChild,
|
|
282
|
+
ref,
|
|
283
|
+
children,
|
|
284
|
+
dark,
|
|
285
|
+
className,
|
|
286
|
+
...props
|
|
287
|
+
}: CardActionProps) => react_jsx_runtime5.JSX.Element;
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region src/components/card/card-content.d.ts
|
|
290
|
+
type CardContentProps = MergeRight<HTMLAttributes<HTMLDivElement>, {
|
|
291
|
+
/**
|
|
292
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
293
|
+
* @default false
|
|
294
|
+
*/
|
|
295
|
+
asChild?: boolean;
|
|
296
|
+
disabled?: boolean;
|
|
297
|
+
ref?: Ref<HTMLDivElement>;
|
|
298
|
+
}>;
|
|
299
|
+
declare const CardContent: ({
|
|
300
|
+
className,
|
|
301
|
+
ref,
|
|
302
|
+
children,
|
|
303
|
+
asChild,
|
|
304
|
+
...props
|
|
305
|
+
}: CardContentProps) => react_jsx_runtime7.JSX.Element;
|
|
306
|
+
//#endregion
|
|
307
|
+
//#region src/components/card/card-header.d.ts
|
|
308
|
+
type CardHeaderProps = MergeRight<Omit<HTMLAttributes<HTMLDivElement>, 'children'>, {
|
|
309
|
+
/**
|
|
310
|
+
* The header of the card
|
|
311
|
+
*/
|
|
312
|
+
header?: ReactNode;
|
|
313
|
+
/**
|
|
314
|
+
* The label of the card, displayed above the header
|
|
315
|
+
*/
|
|
316
|
+
label?: ReactNode;
|
|
317
|
+
/**
|
|
318
|
+
* The sublabel of the card, displayed next to the label
|
|
319
|
+
*/
|
|
320
|
+
subLabel?: ReactNode;
|
|
321
|
+
/**
|
|
322
|
+
* The description of the card, displayed below the header
|
|
323
|
+
*/
|
|
324
|
+
description?: ReactNode;
|
|
325
|
+
ref?: Ref<HTMLDivElement>;
|
|
326
|
+
}>;
|
|
327
|
+
declare const CardHeader: ({
|
|
328
|
+
className,
|
|
329
|
+
ref,
|
|
330
|
+
header,
|
|
331
|
+
label,
|
|
332
|
+
subLabel,
|
|
333
|
+
description,
|
|
334
|
+
...props
|
|
335
|
+
}: CardHeaderProps) => react_jsx_runtime9.JSX.Element;
|
|
336
|
+
//#endregion
|
|
337
|
+
//#region src/components/card/card-media.d.ts
|
|
338
|
+
type CardMediaProps = MergeRight<HTMLAttributes<HTMLDivElement>, {
|
|
339
|
+
/**
|
|
340
|
+
* The media to display. Must be audio, figure, iframe, img or video-tag to get correct styles.
|
|
341
|
+
*/
|
|
342
|
+
children?: ReactNode;
|
|
343
|
+
/**
|
|
344
|
+
* Optional content to overlay on top of the media.
|
|
345
|
+
*/
|
|
346
|
+
overlay?: ReactNode;
|
|
347
|
+
ref?: Ref<HTMLDivElement>;
|
|
348
|
+
}>;
|
|
349
|
+
declare const CardMedia: ({
|
|
350
|
+
className,
|
|
351
|
+
ref,
|
|
352
|
+
children,
|
|
353
|
+
overlay,
|
|
354
|
+
...props
|
|
355
|
+
}: CardMediaProps) => react_jsx_runtime10.JSX.Element;
|
|
356
|
+
//#endregion
|
|
357
|
+
//#region src/components/card/card-date.d.ts
|
|
358
|
+
type CardDateProps = MergeRight<Omit<HTMLAttributes<HTMLParagraphElement>, 'children'>, {
|
|
359
|
+
/**
|
|
360
|
+
* The day of the month.
|
|
361
|
+
*/
|
|
362
|
+
day: number;
|
|
363
|
+
/**
|
|
364
|
+
* The month, should be a short string like "Jan", "Feb", etc.
|
|
365
|
+
*/
|
|
366
|
+
month: string;
|
|
367
|
+
ref?: Ref<HTMLParagraphElement>;
|
|
368
|
+
}>;
|
|
369
|
+
declare const CardDate: ({
|
|
370
|
+
className,
|
|
371
|
+
ref,
|
|
372
|
+
day,
|
|
373
|
+
month,
|
|
374
|
+
...props
|
|
375
|
+
}: CardDateProps) => react_jsx_runtime8.JSX.Element;
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region src/components/input/input.d.ts
|
|
378
|
+
type InputProps = MergeRight<DefaultProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'type'>, {
|
|
379
|
+
/**
|
|
380
|
+
* Size of the input field.
|
|
381
|
+
* @default 'medium'
|
|
382
|
+
*/
|
|
383
|
+
size?: 'medium' | 'large';
|
|
384
|
+
/**
|
|
385
|
+
* The `input` type
|
|
386
|
+
* @default 'text'
|
|
387
|
+
* */
|
|
388
|
+
type?: 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'month' | 'number' | 'password' | 'radio' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
|
389
|
+
/** Set the visible width, in characters, of the `Input` component. */
|
|
390
|
+
visibleWidth?: number;
|
|
391
|
+
/**
|
|
392
|
+
* Disable the element
|
|
393
|
+
* @note Avoid using if possible for accessibility purposes
|
|
394
|
+
*/
|
|
395
|
+
disabled?: boolean;
|
|
396
|
+
/** Toggle `readOnly` */
|
|
397
|
+
readOnly?: boolean;
|
|
398
|
+
ref?: Ref<HTMLInputElement>;
|
|
399
|
+
}>;
|
|
400
|
+
declare const Input: ({
|
|
401
|
+
type,
|
|
402
|
+
size,
|
|
403
|
+
visibleWidth,
|
|
404
|
+
className,
|
|
405
|
+
onChange,
|
|
406
|
+
onClick,
|
|
407
|
+
dark,
|
|
408
|
+
readOnly,
|
|
409
|
+
ref,
|
|
410
|
+
...props
|
|
411
|
+
}: InputProps) => react_jsx_runtime42.JSX.Element;
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region src/components/checkbox/checkbox.d.ts
|
|
414
|
+
type CheckboxProps = MergeRight<LabelRequiredProps & Omit<InputProps, 'type' | 'role' | 'size'>, {
|
|
415
|
+
/** Label */
|
|
416
|
+
label?: ReactNode;
|
|
417
|
+
/** Description */
|
|
418
|
+
description?: ReactNode;
|
|
419
|
+
/** Add error indication to the checkbox. */
|
|
420
|
+
error?: boolean;
|
|
421
|
+
/** Specify whether the Checkbox is indeterminate */
|
|
422
|
+
indeterminate?: boolean;
|
|
423
|
+
ref?: Ref<HTMLInputElement>;
|
|
424
|
+
}>;
|
|
425
|
+
declare const Checkbox: ({
|
|
426
|
+
dark,
|
|
427
|
+
label,
|
|
428
|
+
description,
|
|
429
|
+
error,
|
|
430
|
+
style,
|
|
431
|
+
className,
|
|
432
|
+
indeterminate,
|
|
433
|
+
ref,
|
|
434
|
+
id,
|
|
435
|
+
"aria-describedby": ariaDescribedByProp,
|
|
436
|
+
...props
|
|
437
|
+
}: CheckboxProps) => react_jsx_runtime12.JSX.Element;
|
|
438
|
+
//#endregion
|
|
439
|
+
//#region src/components/chip/chip.d.ts
|
|
440
|
+
type ChipProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
441
|
+
/**
|
|
442
|
+
* The chip size
|
|
443
|
+
* @default 'medium'
|
|
444
|
+
*/
|
|
445
|
+
size?: 'small' | 'medium' | 'large';
|
|
446
|
+
/**
|
|
447
|
+
* The chip color
|
|
448
|
+
* @default 'primary'
|
|
449
|
+
*/
|
|
450
|
+
color?: 'neutral' | 'primary-light' | 'info' | 'white' | 'primary' | 'alert' | 'warning' | 'success';
|
|
451
|
+
/** Set an icon before the chip label */
|
|
452
|
+
startIcon?: ReactNode;
|
|
453
|
+
ref?: Ref<HTMLDivElement>;
|
|
454
|
+
/**
|
|
455
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
456
|
+
* @default false
|
|
457
|
+
*/
|
|
458
|
+
asChild?: boolean;
|
|
459
|
+
}>;
|
|
460
|
+
declare const Chip: ({
|
|
461
|
+
children,
|
|
462
|
+
color,
|
|
463
|
+
size,
|
|
464
|
+
startIcon,
|
|
465
|
+
dark,
|
|
466
|
+
asChild,
|
|
467
|
+
className,
|
|
468
|
+
ref,
|
|
469
|
+
...props
|
|
470
|
+
}: ChipProps) => react_jsx_runtime13.JSX.Element;
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region src/components/dialog/dialog.d.ts
|
|
473
|
+
type DialogProps = MergeRight<DefaultProps & DialogHTMLAttributes<HTMLDialogElement>, {
|
|
474
|
+
/**
|
|
475
|
+
* Screen-reader label of the close button. The close button is not shown if not set.
|
|
476
|
+
*/
|
|
477
|
+
closeLabel?: string;
|
|
478
|
+
/**
|
|
479
|
+
* Dismiss behavior.
|
|
480
|
+
*
|
|
481
|
+
* - `closedby="any"`: Close dialog on close button click, backdrop click or ESC key.
|
|
482
|
+
* - `closedby="closerequest"`: Close dialog on close button click or ESC key.
|
|
483
|
+
* - `closedby="none"`: Close dialog on close button click.
|
|
484
|
+
*
|
|
485
|
+
* @default 'any'
|
|
486
|
+
*/
|
|
487
|
+
closedby?: 'none' | 'closerequest' | 'any';
|
|
488
|
+
/**
|
|
489
|
+
* Determines if the dialog is open or not.
|
|
490
|
+
*/
|
|
491
|
+
open?: boolean;
|
|
492
|
+
/**
|
|
493
|
+
* Callback that is called when the dialog is closed.
|
|
494
|
+
*/
|
|
495
|
+
onClose?: (event: Event) => void;
|
|
496
|
+
/**
|
|
497
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
498
|
+
* @default false
|
|
499
|
+
*/
|
|
500
|
+
asChild?: boolean;
|
|
501
|
+
ref?: Ref<HTMLDialogElement>;
|
|
502
|
+
}>;
|
|
503
|
+
/**
|
|
504
|
+
* Dialog component, used to display a dialog.
|
|
505
|
+
*
|
|
506
|
+
* @example With TriggerContext:
|
|
507
|
+
* <DialogTriggerContext>
|
|
508
|
+
* <DialogTrigger>Open Dialog</DialogTrigger>
|
|
509
|
+
* <Dialog>
|
|
510
|
+
* <DialogHeader>Dialog Header</DialogHeader>
|
|
511
|
+
* <DialogContent>Dialog Content</DialogContent>
|
|
512
|
+
* <DialogFooter>
|
|
513
|
+
* <Button variant='text'>Cancel</Button>
|
|
514
|
+
* <Button>Confirm</Button>
|
|
515
|
+
* </DialogFooter>
|
|
516
|
+
* </Dialog>
|
|
517
|
+
* </DialogTriggerContext>
|
|
518
|
+
*
|
|
519
|
+
* @example Without TriggerContext:
|
|
520
|
+
* const dialogRef = useRef<HTMLDialogElement>(null);
|
|
521
|
+
*
|
|
522
|
+
* ...
|
|
523
|
+
*
|
|
524
|
+
* <Button onClick={() => dialogRef.current?.showModal()}>Open Dialog</Button>
|
|
525
|
+
* <Dialog ref={dialogRef}>
|
|
526
|
+
* <DialogHeader>Dialog Header</DialogHeader>
|
|
527
|
+
* <DialogContent>Dialog Content</DialogContent>
|
|
528
|
+
* <DialogFooter>
|
|
529
|
+
* <Button variant='text'>Cancel</Button>
|
|
530
|
+
* <Button>Confirm</Button>
|
|
531
|
+
* </DialogFooter>
|
|
532
|
+
* </Dialog>
|
|
533
|
+
*/
|
|
534
|
+
declare const Dialog: ({
|
|
535
|
+
asChild,
|
|
536
|
+
children,
|
|
537
|
+
className,
|
|
538
|
+
closeLabel,
|
|
539
|
+
closedby,
|
|
540
|
+
onClose,
|
|
541
|
+
open,
|
|
542
|
+
dark,
|
|
543
|
+
ref,
|
|
544
|
+
...rest
|
|
545
|
+
}: DialogProps) => react_jsx_runtime20.JSX.Element;
|
|
546
|
+
//#endregion
|
|
547
|
+
//#region src/components/dialog/dialog-content.d.ts
|
|
548
|
+
type DialogContentProps = MergeRight<HTMLAttributes<HTMLDivElement>, {
|
|
549
|
+
/**
|
|
550
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
551
|
+
* @default false
|
|
552
|
+
*/
|
|
553
|
+
asChild?: boolean;
|
|
554
|
+
ref?: Ref<HTMLDivElement>;
|
|
555
|
+
}>;
|
|
556
|
+
declare const DialogContent: ({
|
|
557
|
+
asChild,
|
|
558
|
+
ref,
|
|
559
|
+
children,
|
|
560
|
+
className,
|
|
561
|
+
...rest
|
|
562
|
+
}: DialogContentProps) => react_jsx_runtime14.JSX.Element;
|
|
563
|
+
//#endregion
|
|
564
|
+
//#region src/components/dialog/dialog-header.d.ts
|
|
565
|
+
type DialogHeaderProps = MergeRight<HTMLAttributes<HTMLHeadingElement>, {
|
|
566
|
+
/**
|
|
567
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
568
|
+
* @default false
|
|
569
|
+
*/
|
|
570
|
+
asChild?: boolean;
|
|
571
|
+
ref?: Ref<HTMLHeadingElement>;
|
|
572
|
+
}>;
|
|
573
|
+
declare const DialogHeader: ({
|
|
574
|
+
asChild,
|
|
575
|
+
ref,
|
|
576
|
+
children,
|
|
577
|
+
className,
|
|
578
|
+
...rest
|
|
579
|
+
}: DialogHeaderProps) => react_jsx_runtime16.JSX.Element;
|
|
580
|
+
//#endregion
|
|
581
|
+
//#region src/components/dialog/dialog-footer.d.ts
|
|
582
|
+
type DialogFooterProps = MergeRight<HTMLAttributes<HTMLDivElement>, {
|
|
583
|
+
/**
|
|
584
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
585
|
+
* @default false
|
|
586
|
+
*/
|
|
587
|
+
asChild?: boolean;
|
|
588
|
+
ref?: Ref<HTMLDivElement>;
|
|
589
|
+
}>;
|
|
590
|
+
declare const DialogFooter: ({
|
|
591
|
+
asChild,
|
|
592
|
+
ref,
|
|
593
|
+
children,
|
|
594
|
+
className,
|
|
595
|
+
...rest
|
|
596
|
+
}: DialogFooterProps) => react_jsx_runtime15.JSX.Element;
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region src/components/dialog/dialog-trigger.d.ts
|
|
599
|
+
type DialogTriggerProps = ButtonProps;
|
|
600
|
+
declare const DialogTrigger: ({
|
|
601
|
+
asChild,
|
|
602
|
+
ref,
|
|
603
|
+
...rest
|
|
604
|
+
}: DialogTriggerProps) => react_jsx_runtime19.JSX.Element;
|
|
605
|
+
//#endregion
|
|
606
|
+
//#region src/components/drawer/drawer.d.ts
|
|
607
|
+
type DrawerProps = MergeRight<DialogProps, {
|
|
608
|
+
/**
|
|
609
|
+
* The anchor of the drawer, determining from which side it originates from when sliding in.
|
|
610
|
+
* @default 'left'
|
|
611
|
+
*/
|
|
612
|
+
anchor?: 'left' | 'right' | 'top' | 'bottom';
|
|
613
|
+
}>;
|
|
614
|
+
/**
|
|
615
|
+
* Drawer component. On opening, the drawer slides in from the side it is anchored on, controlled by the anchor property.
|
|
616
|
+
*
|
|
617
|
+
* @example With TriggerContext:
|
|
618
|
+
* <DrawerTriggerContext>
|
|
619
|
+
* <DrawerTrigger>Open Drawer</DrawerTrigger>
|
|
620
|
+
* <Drawer>
|
|
621
|
+
* <DrawerHeader>Drawer Header</DrawerHeader>
|
|
622
|
+
* <DrawerContent>Drawer Content</DrawerContent>
|
|
623
|
+
* <DrawerFooter>
|
|
624
|
+
* <Button variant='text'>Cancel</Button>
|
|
625
|
+
* <Button>Confirm</Button>
|
|
626
|
+
* </DrawerFooter>
|
|
627
|
+
* </Drawer>
|
|
628
|
+
* </DrawerTriggerContext>
|
|
629
|
+
*
|
|
630
|
+
* @example Without TriggerContext:
|
|
631
|
+
* const drawerRef = useRef<HTMLDialogElement>(null);
|
|
632
|
+
*
|
|
633
|
+
* ...
|
|
634
|
+
*
|
|
635
|
+
* <Button onClick={() => drawerRef.current?.showModal()}>Open Drawer</Button>
|
|
636
|
+
* <Drawer ref={dialogRef}>
|
|
637
|
+
* <DrawerHeader>Drawer Header</DrawerHeader>
|
|
638
|
+
* <DrawerContent>Drawer Content</DrawerContent>
|
|
639
|
+
* <DrawerFooter>
|
|
640
|
+
* <Button variant='text'>Cancel</Button>
|
|
641
|
+
* <Button>Confirm</Button>
|
|
642
|
+
* </DrawerFooter>
|
|
643
|
+
* </Drawer>
|
|
644
|
+
*/
|
|
645
|
+
declare const Drawer: ({
|
|
646
|
+
anchor,
|
|
647
|
+
className,
|
|
648
|
+
ref,
|
|
649
|
+
...rest
|
|
650
|
+
}: DrawerProps) => react_jsx_runtime26.JSX.Element;
|
|
651
|
+
//#endregion
|
|
652
|
+
//#region src/components/drawer/drawer-content.d.ts
|
|
653
|
+
type DrawerContentProps = DialogContentProps;
|
|
654
|
+
declare const DrawerContent: ({
|
|
655
|
+
className,
|
|
656
|
+
ref,
|
|
657
|
+
...rest
|
|
658
|
+
}: DrawerContentProps) => react_jsx_runtime21.JSX.Element;
|
|
659
|
+
//#endregion
|
|
660
|
+
//#region src/components/drawer/drawer-header.d.ts
|
|
661
|
+
type DrawerHeaderProps = DialogHeaderProps;
|
|
662
|
+
declare const DrawerHeader: ({
|
|
663
|
+
className,
|
|
664
|
+
ref,
|
|
665
|
+
...rest
|
|
666
|
+
}: DrawerHeaderProps) => react_jsx_runtime23.JSX.Element;
|
|
667
|
+
//#endregion
|
|
668
|
+
//#region src/components/drawer/drawer-footer.d.ts
|
|
669
|
+
type DrawerFooterProps = DialogFooterProps;
|
|
670
|
+
declare const DrawerFooter: ({
|
|
671
|
+
className,
|
|
672
|
+
ref,
|
|
673
|
+
...rest
|
|
674
|
+
}: DrawerFooterProps) => react_jsx_runtime22.JSX.Element;
|
|
675
|
+
//#endregion
|
|
676
|
+
//#region src/components/drawer/drawer-trigger.d.ts
|
|
677
|
+
type DrawerTriggerProps = DialogTriggerProps;
|
|
678
|
+
declare const DrawerTrigger: ({
|
|
679
|
+
ref,
|
|
680
|
+
...rest
|
|
681
|
+
}: DrawerTriggerProps) => react_jsx_runtime25.JSX.Element;
|
|
682
|
+
//#endregion
|
|
683
|
+
//#region src/components/popover/popover.d.ts
|
|
684
|
+
type PopoverProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
685
|
+
/**
|
|
686
|
+
* `id` to connect the trigger with the popover - required when not using PopoverContext.
|
|
687
|
+
*/
|
|
688
|
+
id?: string;
|
|
689
|
+
/**
|
|
690
|
+
* Placement of the popover on the trigger.
|
|
691
|
+
* @default 'top'
|
|
692
|
+
*/
|
|
693
|
+
placement?: Placement;
|
|
694
|
+
/**
|
|
695
|
+
* When a boolean is provided, the popover will be controlled.
|
|
696
|
+
* @default undefined
|
|
697
|
+
*/
|
|
698
|
+
open?: boolean;
|
|
699
|
+
/**
|
|
700
|
+
* Callback when the popover wants to open.
|
|
701
|
+
*/
|
|
702
|
+
onOpen?: () => void;
|
|
703
|
+
/**
|
|
704
|
+
* Callback when the popover wants to close.
|
|
705
|
+
*/
|
|
706
|
+
onClose?: () => void;
|
|
707
|
+
/**
|
|
708
|
+
* Whether to disable auto placement.
|
|
709
|
+
* @default false
|
|
710
|
+
*/
|
|
711
|
+
disableAutoPlacement?: boolean;
|
|
712
|
+
/**
|
|
713
|
+
* Additional middleware to use for positioning the popover.
|
|
714
|
+
*
|
|
715
|
+
* @example
|
|
716
|
+
* Prevent the popover from overflowing the navbar by using the `size` middleware:
|
|
717
|
+
* ```ts
|
|
718
|
+
* positionMiddleware={[
|
|
719
|
+
* size({
|
|
720
|
+
* apply: ({ availableHeight, elements, ...state }) => {
|
|
721
|
+
* const available = `${Math.max(0, availableHeight)}px`;
|
|
722
|
+
* const maxHeight = state.placement.includes('top')
|
|
723
|
+
* ? `calc(${available} - var(--bi-layout-navbar-height, 0))`
|
|
724
|
+
* : available;
|
|
725
|
+
* elements.floating.style.maxHeight = maxHeight;
|
|
726
|
+
* },
|
|
727
|
+
* padding,
|
|
728
|
+
* })
|
|
729
|
+
* ]}
|
|
730
|
+
* ```
|
|
731
|
+
*/
|
|
732
|
+
positionMiddleware?: Middleware[];
|
|
733
|
+
/**
|
|
734
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
735
|
+
* @default false
|
|
736
|
+
*/
|
|
737
|
+
asChild?: boolean;
|
|
738
|
+
ref?: Ref<HTMLDivElement>;
|
|
739
|
+
}>;
|
|
740
|
+
/**
|
|
741
|
+
* Popover component, used to display content in a popover over an element.
|
|
742
|
+
*
|
|
743
|
+
* @example with TriggerContext
|
|
744
|
+
* <PopoverTriggerContext>
|
|
745
|
+
* <PopoverTrigger>Open Popover</PopoverTrigger>
|
|
746
|
+
* <Popover>
|
|
747
|
+
* Content
|
|
748
|
+
* </Popover>
|
|
749
|
+
* </PopoverTriggerContext>
|
|
750
|
+
*
|
|
751
|
+
* @example without TriggerContext
|
|
752
|
+
* <Button popovertarget="my-popover">Open Popover</Button>
|
|
753
|
+
* <Popover id="my-popover">
|
|
754
|
+
* Content
|
|
755
|
+
* </Popover>
|
|
756
|
+
*/
|
|
757
|
+
declare const Popover: ({
|
|
758
|
+
id,
|
|
759
|
+
className,
|
|
760
|
+
onClose,
|
|
761
|
+
onOpen,
|
|
762
|
+
open,
|
|
763
|
+
placement,
|
|
764
|
+
disableAutoPlacement,
|
|
765
|
+
positionMiddleware,
|
|
766
|
+
dark,
|
|
767
|
+
asChild,
|
|
768
|
+
ref,
|
|
769
|
+
...rest
|
|
770
|
+
}: PopoverProps) => react_jsx_runtime53.JSX.Element;
|
|
771
|
+
//#endregion
|
|
772
|
+
//#region src/components/popover/popover-trigger.d.ts
|
|
773
|
+
type PopoverTriggerProps = ({
|
|
774
|
+
/**
|
|
775
|
+
* Will render the trigger as inline text.
|
|
776
|
+
* @default false
|
|
777
|
+
*/
|
|
778
|
+
inline?: true;
|
|
779
|
+
/**
|
|
780
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
781
|
+
* @default false
|
|
782
|
+
*/
|
|
783
|
+
asChild?: boolean;
|
|
784
|
+
ref?: Ref<HTMLButtonElement>;
|
|
785
|
+
} & HTMLAttributes<HTMLButtonElement> & DefaultProps) | ({
|
|
786
|
+
/**
|
|
787
|
+
* Will not render the trigger as inline text.
|
|
788
|
+
* @default false
|
|
789
|
+
*/
|
|
790
|
+
inline?: false;
|
|
791
|
+
} & ButtonProps);
|
|
792
|
+
/**
|
|
793
|
+
* PopoverTrigger component, used to trigger a popover.
|
|
794
|
+
*
|
|
795
|
+
* @example
|
|
796
|
+
* <PopoverTriggerContext>
|
|
797
|
+
* <PopoverTrigger>Open Popover</PopoverTrigger>
|
|
798
|
+
* <Popover>
|
|
799
|
+
* Content
|
|
800
|
+
* </Popover>
|
|
801
|
+
* </PopoverTriggerContext>
|
|
802
|
+
*
|
|
803
|
+
* @example inline
|
|
804
|
+
* <PopoverTriggerContext>
|
|
805
|
+
* <Paragraph>
|
|
806
|
+
* We can use it <PopoverTrigger inline={true}>inline</PopoverTrigger>.
|
|
807
|
+
* </Paragraph>
|
|
808
|
+
* <Popover>
|
|
809
|
+
* Content
|
|
810
|
+
* </Popover>
|
|
811
|
+
* </PopoverTriggerContext>
|
|
812
|
+
*/
|
|
813
|
+
declare const PopoverTrigger: ({
|
|
814
|
+
id,
|
|
815
|
+
inline,
|
|
816
|
+
asChild,
|
|
817
|
+
ref,
|
|
818
|
+
...rest
|
|
819
|
+
}: PopoverTriggerProps) => react_jsx_runtime52.JSX.Element;
|
|
820
|
+
//#endregion
|
|
821
|
+
//#region src/components/dropdown/dropdown.d.ts
|
|
822
|
+
type DropdownProps = MergeRight<DefaultProps & PopoverProps, {
|
|
823
|
+
/**
|
|
824
|
+
* The placement of the dropdown
|
|
825
|
+
* @default bottom-end
|
|
826
|
+
*/
|
|
827
|
+
placement?: PopoverProps['placement'];
|
|
828
|
+
}>;
|
|
829
|
+
/**
|
|
830
|
+
* Dropdown component, used to display a list of options.
|
|
831
|
+
*
|
|
832
|
+
* @example with TriggerContext
|
|
833
|
+
* <DropdownTriggerContext>
|
|
834
|
+
* <DropdownTrigger>Dropdown trigger</DropdownTrigger>
|
|
835
|
+
* <Dropdown placement='bottom-end'>
|
|
836
|
+
* <DropdownHeading>Dropdown</DropdownHeading>
|
|
837
|
+
* <DropdownList>
|
|
838
|
+
* <DropdownItem>
|
|
839
|
+
* <DropdownButton>Item</DropdownButton>
|
|
840
|
+
* </DropdownItem>
|
|
841
|
+
* </DropdownList>
|
|
842
|
+
* </Dropdown>
|
|
843
|
+
* </DropdownTriggerContext>
|
|
844
|
+
*
|
|
845
|
+
* @example without TriggerContext
|
|
846
|
+
* <Button popovertarget="some-dropdown">Trigger</Button>
|
|
847
|
+
* <Dropdown id="some-dropdown">
|
|
848
|
+
* <DropdownHeading>Heading</DropdownHeading>
|
|
849
|
+
* <DropdownList>
|
|
850
|
+
* <DropdownItem>
|
|
851
|
+
* <DropdownButton>Item</DropdownButton>
|
|
852
|
+
* </DropdownItem>
|
|
853
|
+
* </DropdownList>
|
|
854
|
+
* </Dropdown>
|
|
855
|
+
*/
|
|
856
|
+
declare const Dropdown: ({
|
|
857
|
+
placement,
|
|
858
|
+
className,
|
|
859
|
+
ref,
|
|
860
|
+
...rest
|
|
861
|
+
}: DropdownProps) => react_jsx_runtime32.JSX.Element;
|
|
862
|
+
//#endregion
|
|
863
|
+
//#region src/components/dropdown/dropdown-button.d.ts
|
|
864
|
+
type DropdownButtonProps = Omit<ButtonProps, 'variant'>;
|
|
865
|
+
declare const DropdownButton: ({
|
|
866
|
+
ref,
|
|
867
|
+
...rest
|
|
868
|
+
}: DropdownButtonProps) => react_jsx_runtime27.JSX.Element;
|
|
869
|
+
//#endregion
|
|
870
|
+
//#region src/components/dropdown/dropdown-trigger.d.ts
|
|
871
|
+
type DropdownTriggerProps = PopoverTriggerProps;
|
|
872
|
+
declare const DropdownTrigger: ({
|
|
873
|
+
ref,
|
|
874
|
+
...rest
|
|
875
|
+
}: DropdownTriggerProps) => react_jsx_runtime31.JSX.Element;
|
|
876
|
+
//#endregion
|
|
877
|
+
//#region src/components/field/field.d.ts
|
|
878
|
+
type FieldProps = MergeRight<DefaultProps & AsChildProps & HTMLAttributes<HTMLDivElement>, {
|
|
879
|
+
/**
|
|
880
|
+
* Position of toggle-type inputs (radio, checkbox) in the field
|
|
881
|
+
* @default start
|
|
882
|
+
*/
|
|
883
|
+
position?: 'start' | 'end';
|
|
884
|
+
ref?: Ref<HTMLDivElement>;
|
|
885
|
+
}>;
|
|
886
|
+
/**
|
|
887
|
+
* The Field component is used to wrap a form field.
|
|
888
|
+
*
|
|
889
|
+
* @example
|
|
890
|
+
* <Field>
|
|
891
|
+
* <Label>Kort beskrivelse</Label>
|
|
892
|
+
* <FieldDescription>Beskrivelse</FieldDescription>
|
|
893
|
+
* <Input />
|
|
894
|
+
* <ValidationMessage>Feilmelding</ValidationMessage>
|
|
895
|
+
* </Field>
|
|
896
|
+
*/
|
|
897
|
+
declare const Field: ({
|
|
898
|
+
className,
|
|
899
|
+
dark,
|
|
900
|
+
position,
|
|
901
|
+
asChild,
|
|
902
|
+
ref,
|
|
903
|
+
...props
|
|
904
|
+
}: FieldProps) => react_jsx_runtime36.JSX.Element;
|
|
905
|
+
//#endregion
|
|
906
|
+
//#region src/components/field/field-description.d.ts
|
|
907
|
+
type FieldDescriptionProps = MergeRight<AsChildProps & HTMLAttributes<HTMLDivElement>, {
|
|
908
|
+
ref?: Ref<HTMLDivElement>;
|
|
909
|
+
}>;
|
|
910
|
+
declare const FieldDescription: ({
|
|
911
|
+
asChild,
|
|
912
|
+
className,
|
|
913
|
+
ref,
|
|
914
|
+
...props
|
|
915
|
+
}: FieldDescriptionProps) => react_jsx_runtime35.JSX.Element;
|
|
916
|
+
//#endregion
|
|
917
|
+
//#region src/components/field/field-affix.d.ts
|
|
918
|
+
type FieldAffixesProps = MergeRight<AsChildProps & Omit<HTMLAttributes<HTMLDivElement>, 'prefix'>, {
|
|
919
|
+
ref?: Ref<HTMLDivElement>;
|
|
920
|
+
}>;
|
|
921
|
+
/**
|
|
922
|
+
* FieldAffixes component, used to wrap a form field.
|
|
923
|
+
*
|
|
924
|
+
* @example
|
|
925
|
+
* <FieldAffixes>
|
|
926
|
+
* <FieldAffix>+47</FieldAffix>
|
|
927
|
+
* <Input />
|
|
928
|
+
* <FieldAffix>kr</FieldAffix>
|
|
929
|
+
* </FieldAffixes>
|
|
930
|
+
*/
|
|
931
|
+
declare const FieldAffixes: ({
|
|
932
|
+
className,
|
|
933
|
+
asChild,
|
|
934
|
+
ref,
|
|
935
|
+
...rest
|
|
936
|
+
}: FieldAffixesProps) => react_jsx_runtime33.JSX.Element;
|
|
937
|
+
type FieldAffixProps = MergeRight<AsChildProps & Omit<HTMLAttributes<HTMLSpanElement>, 'prefix'>, {
|
|
938
|
+
ref?: Ref<HTMLSpanElement>;
|
|
939
|
+
}>;
|
|
940
|
+
/**
|
|
941
|
+
* FieldAffix component, used to display prefix/suffix for a form field.
|
|
942
|
+
* Use inside the `FieldAffixes` component.
|
|
943
|
+
*
|
|
944
|
+
* @example
|
|
945
|
+
* <FieldAffixes>
|
|
946
|
+
* <FieldAffix>+47</FieldAffix>
|
|
947
|
+
* <Input />
|
|
948
|
+
* <FieldAffix>kr</FieldAffix>
|
|
949
|
+
* </FieldAffixes>
|
|
950
|
+
*/
|
|
951
|
+
declare const FieldAffix: ({
|
|
952
|
+
className,
|
|
953
|
+
asChild,
|
|
954
|
+
ref,
|
|
955
|
+
...rest
|
|
956
|
+
}: FieldAffixProps) => react_jsx_runtime33.JSX.Element;
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region src/components/fieldset/fieldset.d.ts
|
|
959
|
+
type FieldsetProps = MergeRight<DefaultProps & FieldsetHTMLAttributes<HTMLFieldSetElement>, {
|
|
960
|
+
ref?: Ref<HTMLFieldSetElement>;
|
|
961
|
+
}>;
|
|
962
|
+
declare const Fieldset: ({
|
|
963
|
+
children,
|
|
964
|
+
className,
|
|
965
|
+
dark,
|
|
966
|
+
ref,
|
|
967
|
+
...props
|
|
968
|
+
}: FieldsetProps) => react_jsx_runtime39.JSX.Element;
|
|
969
|
+
//#endregion
|
|
970
|
+
//#region src/components/fieldset/fieldset-description.d.ts
|
|
971
|
+
type FieldsetDescriptionProps = MergeRight<AsChildProps & HTMLAttributes<HTMLParagraphElement>, {
|
|
972
|
+
ref?: Ref<HTMLDivElement>;
|
|
973
|
+
}>;
|
|
974
|
+
declare const FieldsetDescription: ({
|
|
975
|
+
asChild,
|
|
976
|
+
ref,
|
|
977
|
+
...props
|
|
978
|
+
}: FieldsetDescriptionProps) => react_jsx_runtime37.JSX.Element;
|
|
979
|
+
//#endregion
|
|
980
|
+
//#region src/components/label/label.d.ts
|
|
981
|
+
type LabelProps = MergeRight<DefaultProps & AsChildProps & LabelHTMLAttributes<HTMLLabelElement>, {
|
|
982
|
+
/**
|
|
983
|
+
* Sets the font weight of the label. Use this when you have a label hierarchy, such as checkboxes/radios in a fieldset
|
|
984
|
+
* @default 'semibold'
|
|
985
|
+
*/
|
|
986
|
+
weight?: 'regular' | 'medium' | 'semibold';
|
|
987
|
+
ref?: Ref<HTMLLabelElement>;
|
|
988
|
+
}>;
|
|
989
|
+
declare const Label: ({
|
|
990
|
+
className,
|
|
991
|
+
weight,
|
|
992
|
+
dark,
|
|
993
|
+
asChild,
|
|
994
|
+
ref,
|
|
995
|
+
...props
|
|
996
|
+
}: LabelProps) => react_jsx_runtime43.JSX.Element;
|
|
997
|
+
//#endregion
|
|
998
|
+
//#region src/components/fieldset/fieldset-legend.d.ts
|
|
999
|
+
type FieldsetLegendProps = MergeRight<LabelProps & HTMLAttributes<HTMLLegendElement>, {
|
|
1000
|
+
ref?: Ref<HTMLLegendElement>;
|
|
1001
|
+
}>;
|
|
1002
|
+
declare const FieldsetLegend: ({
|
|
1003
|
+
children,
|
|
1004
|
+
dark,
|
|
1005
|
+
ref,
|
|
1006
|
+
...props
|
|
1007
|
+
}: FieldsetLegendProps) => react_jsx_runtime38.JSX.Element;
|
|
1008
|
+
//#endregion
|
|
1009
|
+
//#region src/components/footer/footer.d.ts
|
|
1010
|
+
type FooterProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
1011
|
+
/**
|
|
1012
|
+
* The text to display in the copyright section.
|
|
1013
|
+
* @default 'Handelshøyskolen BI'
|
|
1014
|
+
*/
|
|
1015
|
+
copyRightText?: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* Whether to hide the accreditation icons.
|
|
1018
|
+
* @default false
|
|
1019
|
+
*/
|
|
1020
|
+
hideAccreditationIcons?: boolean;
|
|
1021
|
+
/**
|
|
1022
|
+
* Whether to hide the social media icons.
|
|
1023
|
+
* @default false
|
|
1024
|
+
*/
|
|
1025
|
+
hideSocialMediaIcons?: boolean;
|
|
1026
|
+
/**
|
|
1027
|
+
* Whether to hide the copyright text.
|
|
1028
|
+
* @default false
|
|
1029
|
+
*/
|
|
1030
|
+
hideCopyRight?: boolean;
|
|
1031
|
+
ref?: Ref<HTMLDivElement>;
|
|
1032
|
+
}>;
|
|
1033
|
+
declare const Footer: ({
|
|
1034
|
+
dark,
|
|
1035
|
+
copyRightText,
|
|
1036
|
+
hideAccreditationIcons,
|
|
1037
|
+
hideSocialMediaIcons,
|
|
1038
|
+
hideCopyRight,
|
|
1039
|
+
className,
|
|
1040
|
+
children,
|
|
1041
|
+
ref,
|
|
1042
|
+
...props
|
|
1043
|
+
}: FooterProps) => react_jsx_runtime41.JSX.Element;
|
|
1044
|
+
//#endregion
|
|
1045
|
+
//#region src/components/link/link.d.ts
|
|
1046
|
+
type LinkProps = MergeRight<DefaultProps & AnchorHTMLAttributes<HTMLAnchorElement>, {
|
|
1047
|
+
/**
|
|
1048
|
+
* Set the color of the link.
|
|
1049
|
+
* @default 'primary'
|
|
1050
|
+
*/
|
|
1051
|
+
color?: 'primary' | 'neutral';
|
|
1052
|
+
children: ReactNode;
|
|
1053
|
+
/**
|
|
1054
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1055
|
+
* @default false
|
|
1056
|
+
*/
|
|
1057
|
+
asChild?: boolean;
|
|
1058
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
1059
|
+
}>;
|
|
1060
|
+
declare const Link: ({
|
|
1061
|
+
asChild,
|
|
1062
|
+
className,
|
|
1063
|
+
color,
|
|
1064
|
+
dark,
|
|
1065
|
+
ref,
|
|
1066
|
+
...rest
|
|
1067
|
+
}: LinkProps) => react_jsx_runtime44.JSX.Element;
|
|
1068
|
+
//#endregion
|
|
1069
|
+
//#region src/components/logo/logo.d.ts
|
|
1070
|
+
type LogoProps = MergeRight<DefaultProps & Omit<HTMLAttributes<HTMLSpanElement>, 'children'>, {
|
|
1071
|
+
/**
|
|
1072
|
+
* Determines if the international logo should be used.
|
|
1073
|
+
* @default false
|
|
1074
|
+
*/
|
|
1075
|
+
international?: boolean;
|
|
1076
|
+
/**
|
|
1077
|
+
* Determines if the logo text should be displayed vertically.
|
|
1078
|
+
* Only applies when `international` is `true`.
|
|
1079
|
+
* @default false
|
|
1080
|
+
*/
|
|
1081
|
+
vertical?: boolean;
|
|
1082
|
+
/**
|
|
1083
|
+
* Determines the height of the logo.
|
|
1084
|
+
* @default 'medium'
|
|
1085
|
+
*/
|
|
1086
|
+
size?: 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl';
|
|
1087
|
+
ref?: Ref<HTMLSpanElement>;
|
|
1088
|
+
}>;
|
|
1089
|
+
declare const Logo: ({
|
|
1090
|
+
dark,
|
|
1091
|
+
international,
|
|
1092
|
+
vertical,
|
|
1093
|
+
size,
|
|
1094
|
+
className,
|
|
1095
|
+
ref,
|
|
1096
|
+
...props
|
|
1097
|
+
}: LogoProps) => react_jsx_runtime45.JSX.Element;
|
|
1098
|
+
//#endregion
|
|
1099
|
+
//#region src/components/navbar/navbar.d.ts
|
|
1100
|
+
type NavbarProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
1101
|
+
/**
|
|
1102
|
+
* Skip link.
|
|
1103
|
+
*/
|
|
1104
|
+
skipLink?: {
|
|
1105
|
+
label: string;
|
|
1106
|
+
href: string;
|
|
1107
|
+
};
|
|
1108
|
+
/**
|
|
1109
|
+
* Text for menu area label.
|
|
1110
|
+
*/
|
|
1111
|
+
menuAreaLabel: string;
|
|
1112
|
+
/**
|
|
1113
|
+
* Determines if the navbar should be fixed.
|
|
1114
|
+
* @default false
|
|
1115
|
+
*/
|
|
1116
|
+
fixed?: boolean;
|
|
1117
|
+
/**
|
|
1118
|
+
* Aria label for the home link.
|
|
1119
|
+
*/
|
|
1120
|
+
homeAriaLabel: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* Href for the home link.
|
|
1123
|
+
*/
|
|
1124
|
+
homeHref: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* Override the default logo
|
|
1127
|
+
*/
|
|
1128
|
+
logo?: ReactNode;
|
|
1129
|
+
ref?: Ref<HTMLElement>;
|
|
1130
|
+
}>;
|
|
1131
|
+
declare const Navbar: ({
|
|
1132
|
+
dark,
|
|
1133
|
+
fixed,
|
|
1134
|
+
menuAreaLabel,
|
|
1135
|
+
homeAriaLabel,
|
|
1136
|
+
skipLink,
|
|
1137
|
+
homeHref,
|
|
1138
|
+
logo,
|
|
1139
|
+
children,
|
|
1140
|
+
className,
|
|
1141
|
+
ref,
|
|
1142
|
+
...props
|
|
1143
|
+
}: NavbarProps) => react_jsx_runtime46.JSX.Element;
|
|
1144
|
+
//#endregion
|
|
1145
|
+
//#region src/components/pagination/pagination.d.ts
|
|
1146
|
+
type PaginationProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
1147
|
+
ref?: Ref<HTMLUListElement>;
|
|
1148
|
+
}>;
|
|
1149
|
+
declare const Pagination: ({
|
|
1150
|
+
className,
|
|
1151
|
+
dark,
|
|
1152
|
+
ref,
|
|
1153
|
+
children,
|
|
1154
|
+
...props
|
|
1155
|
+
}: PaginationProps) => react_jsx_runtime49.JSX.Element;
|
|
1156
|
+
//#endregion
|
|
1157
|
+
//#region src/components/pagination/pagination-button.d.ts
|
|
1158
|
+
type PaginationButtonProps = ButtonProps & {
|
|
1159
|
+
/**
|
|
1160
|
+
* Toggle button as active
|
|
1161
|
+
* @default false
|
|
1162
|
+
*/
|
|
1163
|
+
'aria-current'?: AriaAttributes['aria-current'];
|
|
1164
|
+
};
|
|
1165
|
+
declare const PaginationButton: ({
|
|
1166
|
+
ref,
|
|
1167
|
+
...rest
|
|
1168
|
+
}: PaginationButtonProps) => react_jsx_runtime47.JSX.Element;
|
|
1169
|
+
//#endregion
|
|
1170
|
+
//#region src/components/radio/radio.d.ts
|
|
1171
|
+
type RadioProps = MergeRight<LabelRequiredProps & Omit<InputProps, 'type' | 'role' | 'size'>, {
|
|
1172
|
+
/** Label */
|
|
1173
|
+
label?: ReactNode;
|
|
1174
|
+
/** Description */
|
|
1175
|
+
description?: ReactNode;
|
|
1176
|
+
/** Add error indication to the radio. */
|
|
1177
|
+
error?: boolean;
|
|
1178
|
+
ref?: Ref<HTMLInputElement>;
|
|
1179
|
+
}>;
|
|
1180
|
+
declare const Radio: ({
|
|
1181
|
+
dark,
|
|
1182
|
+
label,
|
|
1183
|
+
description,
|
|
1184
|
+
error,
|
|
1185
|
+
style,
|
|
1186
|
+
className,
|
|
1187
|
+
ref,
|
|
1188
|
+
id,
|
|
1189
|
+
"aria-describedby": ariaDescribedByProp,
|
|
1190
|
+
...props
|
|
1191
|
+
}: RadioProps) => react_jsx_runtime54.JSX.Element;
|
|
1192
|
+
//#endregion
|
|
1193
|
+
//#region src/components/search/search.d.ts
|
|
1194
|
+
type SearchProps = MergeRight<Omit<InputProps, 'type' | 'size'>, {
|
|
1195
|
+
/**
|
|
1196
|
+
* Size of the search.
|
|
1197
|
+
* @default 'medium'
|
|
1198
|
+
*/
|
|
1199
|
+
size?: 'medium' | 'large';
|
|
1200
|
+
/** Called when the user presses enter. You can use this to for example navigate on submit. */
|
|
1201
|
+
onSubmit?: (value: string) => void;
|
|
1202
|
+
/**
|
|
1203
|
+
* Aria-label for the clear button.
|
|
1204
|
+
* @defaultValue 'Clear'
|
|
1205
|
+
*/
|
|
1206
|
+
clearAriaLabel?: string;
|
|
1207
|
+
}>;
|
|
1208
|
+
declare const Search: ({
|
|
1209
|
+
className,
|
|
1210
|
+
onSubmit,
|
|
1211
|
+
clearAriaLabel,
|
|
1212
|
+
size,
|
|
1213
|
+
ref,
|
|
1214
|
+
dark,
|
|
1215
|
+
style,
|
|
1216
|
+
...props
|
|
1217
|
+
}: SearchProps) => react_jsx_runtime55.JSX.Element;
|
|
1218
|
+
//#endregion
|
|
1219
|
+
//#region src/components/select/select.d.ts
|
|
1220
|
+
type SelectProps = MergeRight<DefaultProps & Omit<SelectHTMLAttributes<HTMLSelectElement>, 'multiple' | 'size'>, {
|
|
1221
|
+
/**
|
|
1222
|
+
* Size of the select.
|
|
1223
|
+
* @default 'medium'
|
|
1224
|
+
*/
|
|
1225
|
+
size?: 'medium' | 'large';
|
|
1226
|
+
/** Mark the select as readOnly */
|
|
1227
|
+
readOnly?: boolean;
|
|
1228
|
+
ref?: Ref<HTMLSelectElement>;
|
|
1229
|
+
}>;
|
|
1230
|
+
declare const Select: ({
|
|
1231
|
+
className,
|
|
1232
|
+
dark,
|
|
1233
|
+
onKeyDown,
|
|
1234
|
+
onMouseDown,
|
|
1235
|
+
size,
|
|
1236
|
+
ref,
|
|
1237
|
+
...props
|
|
1238
|
+
}: SelectProps) => react_jsx_runtime66.JSX.Element;
|
|
1239
|
+
//#endregion
|
|
1240
|
+
//#region src/components/select/select-option.d.ts
|
|
1241
|
+
type SelectOptionProps = MergeRight<AsChildProps & OptionHTMLAttributes<HTMLOptionElement>, {
|
|
1242
|
+
ref?: Ref<HTMLOptionElement>;
|
|
1243
|
+
}>;
|
|
1244
|
+
declare const SelectOption: ({
|
|
1245
|
+
asChild,
|
|
1246
|
+
ref,
|
|
1247
|
+
...props
|
|
1248
|
+
}: SelectOptionProps) => react_jsx_runtime65.JSX.Element;
|
|
1249
|
+
//#endregion
|
|
1250
|
+
//#region src/components/select/select-optgroup.d.ts
|
|
1251
|
+
type SelectOptgroupProps = MergeRight<AsChildProps & OptgroupHTMLAttributes<HTMLOptGroupElement>, {
|
|
1252
|
+
ref?: Ref<HTMLOptGroupElement>;
|
|
1253
|
+
}>;
|
|
1254
|
+
declare const SelectOptgroup: ({
|
|
1255
|
+
asChild,
|
|
1256
|
+
ref,
|
|
1257
|
+
...props
|
|
1258
|
+
}: SelectOptgroupProps) => react_jsx_runtime64.JSX.Element;
|
|
1259
|
+
//#endregion
|
|
1260
|
+
//#region src/components/spinner/spinner.d.ts
|
|
1261
|
+
type SpinnerProps = MergeRight<DefaultProps & HTMLAttributes<HTMLSpanElement>, {
|
|
1262
|
+
/**
|
|
1263
|
+
* The color of the spinner.
|
|
1264
|
+
* @default 'inherit'
|
|
1265
|
+
*/
|
|
1266
|
+
color?: 'inherit' | 'black';
|
|
1267
|
+
/**
|
|
1268
|
+
* The size of the spinner.
|
|
1269
|
+
* It sets the font-size as the width and height is `1em`. If not set, the spinner will inherit the font size of its parent.
|
|
1270
|
+
*/
|
|
1271
|
+
size?: 'small' | 'medium' | 'large' | 'xl' | '2xl';
|
|
1272
|
+
ref?: Ref<HTMLSpanElement>;
|
|
1273
|
+
}>;
|
|
1274
|
+
declare const Spinner: ({
|
|
1275
|
+
color,
|
|
1276
|
+
size,
|
|
1277
|
+
className,
|
|
1278
|
+
ref,
|
|
1279
|
+
...props
|
|
1280
|
+
}: SpinnerProps) => react_jsx_runtime56.JSX.Element;
|
|
1281
|
+
//#endregion
|
|
1282
|
+
//#region src/components/tabs/tabs.d.ts
|
|
1283
|
+
type TabsProps = MergeRight<DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>, {
|
|
1284
|
+
/**
|
|
1285
|
+
* When `automatic`, tabs are activated when receiving focus. When `manual`, tabs are activated when clicked.
|
|
1286
|
+
* @default 'automatic'
|
|
1287
|
+
*/
|
|
1288
|
+
activationMode?: 'manual' | 'automatic';
|
|
1289
|
+
/**
|
|
1290
|
+
* The orientation of the component.
|
|
1291
|
+
* @default 'horizontal'
|
|
1292
|
+
*/
|
|
1293
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1294
|
+
/** The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs. */
|
|
1295
|
+
defaultValue?: string;
|
|
1296
|
+
/** The controlled value of the tab to activate. Should be used together with `onChange`. */
|
|
1297
|
+
value?: string;
|
|
1298
|
+
/** Event handler called when the value changes. */
|
|
1299
|
+
onChange?: (value: string) => void;
|
|
1300
|
+
/**
|
|
1301
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1302
|
+
* @default false
|
|
1303
|
+
*/
|
|
1304
|
+
asChild?: boolean;
|
|
1305
|
+
ref?: Ref<HTMLDivElement>;
|
|
1306
|
+
}>;
|
|
1307
|
+
declare const Tabs: ({
|
|
1308
|
+
activationMode,
|
|
1309
|
+
orientation,
|
|
1310
|
+
defaultValue,
|
|
1311
|
+
value,
|
|
1312
|
+
onChange,
|
|
1313
|
+
children,
|
|
1314
|
+
className,
|
|
1315
|
+
asChild,
|
|
1316
|
+
dark,
|
|
1317
|
+
ref,
|
|
1318
|
+
...props
|
|
1319
|
+
}: TabsProps) => react_jsx_runtime60.JSX.Element;
|
|
1320
|
+
//#endregion
|
|
1321
|
+
//#region src/components/tabs/tab.d.ts
|
|
1322
|
+
type TabProps = MergeRight<Omit<ButtonProps, 'variant' | 'type'>, {
|
|
1323
|
+
/** A unique value that associates the trigger with a content. */
|
|
1324
|
+
value: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* When true, prevents the user from interacting with the tab.
|
|
1327
|
+
* @default false
|
|
1328
|
+
*/
|
|
1329
|
+
disabled?: boolean;
|
|
1330
|
+
}>;
|
|
1331
|
+
declare const Tab: ({
|
|
1332
|
+
className,
|
|
1333
|
+
value,
|
|
1334
|
+
disabled,
|
|
1335
|
+
children,
|
|
1336
|
+
asChild,
|
|
1337
|
+
dark,
|
|
1338
|
+
ref,
|
|
1339
|
+
...props
|
|
1340
|
+
}: TabProps) => react_jsx_runtime57.JSX.Element;
|
|
1341
|
+
//#endregion
|
|
1342
|
+
//#region src/components/tabs/tabs-list.d.ts
|
|
1343
|
+
type TabsListProps = MergeRight<DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>, {
|
|
1344
|
+
/**
|
|
1345
|
+
* When `true`, keyboard navigation will loop from last tab to first, and vice versa.
|
|
1346
|
+
* @default true
|
|
1347
|
+
*/
|
|
1348
|
+
loop?: boolean;
|
|
1349
|
+
/**
|
|
1350
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1351
|
+
* @default false
|
|
1352
|
+
*/
|
|
1353
|
+
asChild?: boolean;
|
|
1354
|
+
ref?: Ref<HTMLDivElement>;
|
|
1355
|
+
}>;
|
|
1356
|
+
declare const TabsList: ({
|
|
1357
|
+
className,
|
|
1358
|
+
loop,
|
|
1359
|
+
children,
|
|
1360
|
+
asChild,
|
|
1361
|
+
dark,
|
|
1362
|
+
ref,
|
|
1363
|
+
...props
|
|
1364
|
+
}: TabsListProps) => react_jsx_runtime58.JSX.Element;
|
|
1365
|
+
//#endregion
|
|
1366
|
+
//#region src/components/tabs/tabs-panel.d.ts
|
|
1367
|
+
type TabsPanelProps = MergeRight<DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>, {
|
|
1368
|
+
/** A unique value that associates the content with a trigger. */
|
|
1369
|
+
value: string;
|
|
1370
|
+
/** Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. */
|
|
1371
|
+
forceMount?: boolean;
|
|
1372
|
+
/**
|
|
1373
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1374
|
+
* @default false
|
|
1375
|
+
*/
|
|
1376
|
+
asChild?: boolean;
|
|
1377
|
+
ref?: Ref<HTMLDivElement>;
|
|
1378
|
+
}>;
|
|
1379
|
+
declare const TabsPanel: ({
|
|
1380
|
+
className,
|
|
1381
|
+
value,
|
|
1382
|
+
forceMount,
|
|
1383
|
+
children,
|
|
1384
|
+
asChild,
|
|
1385
|
+
dark,
|
|
1386
|
+
ref,
|
|
1387
|
+
...props
|
|
1388
|
+
}: TabsPanelProps) => react_jsx_runtime59.JSX.Element;
|
|
1389
|
+
//#endregion
|
|
1390
|
+
//#region src/components/textarea/textarea.d.ts
|
|
1391
|
+
type TextareaProps = MergeRight<DefaultProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'prefix'>, {
|
|
1392
|
+
/**
|
|
1393
|
+
* Size of the textarea.
|
|
1394
|
+
* @default 'medium'
|
|
1395
|
+
*/
|
|
1396
|
+
size?: 'medium' | 'large';
|
|
1397
|
+
ref?: Ref<HTMLTextAreaElement>;
|
|
1398
|
+
}>;
|
|
1399
|
+
declare const Textarea: ({
|
|
1400
|
+
className,
|
|
1401
|
+
dark,
|
|
1402
|
+
size,
|
|
1403
|
+
ref,
|
|
1404
|
+
...props
|
|
1405
|
+
}: TextareaProps) => react_jsx_runtime61.JSX.Element;
|
|
1406
|
+
//#endregion
|
|
1407
|
+
//#region src/components/textfield/textfield.d.ts
|
|
1408
|
+
type InputPropsFiltered = Omit<InputProps, 'prefix' | 'className' | 'style'>;
|
|
1409
|
+
type TextareaPropsFiltered = Omit<TextareaProps, 'prefix' | 'className' | 'style'>;
|
|
1410
|
+
type BaseTextfieldProps = LabelRequiredProps & DefaultProps & {
|
|
1411
|
+
/** Label */
|
|
1412
|
+
label?: ReactNode;
|
|
1413
|
+
/** Description */
|
|
1414
|
+
description?: ReactNode;
|
|
1415
|
+
/** Prefix */
|
|
1416
|
+
prefix?: string;
|
|
1417
|
+
/** Suffix */
|
|
1418
|
+
suffix?: string;
|
|
1419
|
+
/** Error message for field */
|
|
1420
|
+
error?: ReactNode;
|
|
1421
|
+
/** `className` for the `Field` element */
|
|
1422
|
+
className?: InputProps['className'];
|
|
1423
|
+
/** `style` for the `Field` element */
|
|
1424
|
+
style?: InputProps['style'];
|
|
1425
|
+
};
|
|
1426
|
+
type TextfieldTextareaProps = {
|
|
1427
|
+
/** Render `Textarea` instead of a `Input`. The `Textarea` has support for multiple rows of input. */
|
|
1428
|
+
multiline: true;
|
|
1429
|
+
} & TextareaPropsFiltered;
|
|
1430
|
+
type TextfieldInputProps = {
|
|
1431
|
+
/** Render `Textarea` instead of a `Input`. The `Textarea` has support for multiple rows of input. */
|
|
1432
|
+
multiline?: never | false;
|
|
1433
|
+
} & InputPropsFiltered;
|
|
1434
|
+
type TextfieldProps = BaseTextfieldProps & (TextfieldTextareaProps | TextfieldInputProps) & {
|
|
1435
|
+
ref?: Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
1436
|
+
};
|
|
1437
|
+
declare const Textfield: ({
|
|
1438
|
+
dark,
|
|
1439
|
+
label,
|
|
1440
|
+
description,
|
|
1441
|
+
error,
|
|
1442
|
+
multiline,
|
|
1443
|
+
prefix,
|
|
1444
|
+
suffix,
|
|
1445
|
+
style,
|
|
1446
|
+
className,
|
|
1447
|
+
ref,
|
|
1448
|
+
id: idProp,
|
|
1449
|
+
"aria-describedby": ariaDescribedByProp,
|
|
1450
|
+
...props
|
|
1451
|
+
}: TextfieldProps) => react_jsx_runtime62.JSX.Element;
|
|
1452
|
+
//#endregion
|
|
1453
|
+
//#region src/components/validation-message/validation-message.d.ts
|
|
1454
|
+
type ValidationMessageProps = MergeRight<AsChildProps & HTMLAttributes<HTMLParagraphElement>, {
|
|
1455
|
+
/** Override the default warning icon. Must be a BiIcon to work correctly. */
|
|
1456
|
+
icon?: ReactNode;
|
|
1457
|
+
ref?: Ref<HTMLParagraphElement>;
|
|
1458
|
+
}>;
|
|
1459
|
+
declare const ValidationMessage: ({
|
|
1460
|
+
children,
|
|
1461
|
+
className,
|
|
1462
|
+
icon,
|
|
1463
|
+
asChild,
|
|
1464
|
+
ref,
|
|
1465
|
+
...props
|
|
1466
|
+
}: ValidationMessageProps) => react_jsx_runtime63.JSX.Element;
|
|
1467
|
+
//#endregion
|
|
1468
|
+
//#region src/utilities/hooks/usePagination/usePagination.d.ts
|
|
1469
|
+
type UsePaginationProps = {
|
|
1470
|
+
/**
|
|
1471
|
+
* The number of pages
|
|
1472
|
+
*/
|
|
1473
|
+
count: number;
|
|
1474
|
+
page?: number;
|
|
1475
|
+
defaultPage?: number;
|
|
1476
|
+
/**
|
|
1477
|
+
* Number of always visible pages at the beginning and end.
|
|
1478
|
+
* @default 1
|
|
1479
|
+
*/
|
|
1480
|
+
boundaryCount?: number;
|
|
1481
|
+
/**
|
|
1482
|
+
* Number of always visible pages before and after the current page.
|
|
1483
|
+
* @default 1
|
|
1484
|
+
*/
|
|
1485
|
+
siblingCount?: number;
|
|
1486
|
+
/**
|
|
1487
|
+
* If `true`, the component is disabled.
|
|
1488
|
+
* @default false
|
|
1489
|
+
*/
|
|
1490
|
+
disabled?: boolean;
|
|
1491
|
+
/** Callback when the page changes */
|
|
1492
|
+
onPageChange?: (page: number) => void;
|
|
1493
|
+
};
|
|
1494
|
+
/**
|
|
1495
|
+
* Hook to help manage pagination state of a Pagination component.
|
|
1496
|
+
*
|
|
1497
|
+
* @example
|
|
1498
|
+
* const { pages, nextButtonProps, prevButtonProps } = usePagination({
|
|
1499
|
+
* page,
|
|
1500
|
+
* count: 10,
|
|
1501
|
+
* showPages: 7,
|
|
1502
|
+
* boundaryCount: 1,
|
|
1503
|
+
* siblingCount: 1,
|
|
1504
|
+
* })
|
|
1505
|
+
*
|
|
1506
|
+
* <Pagination>
|
|
1507
|
+
* <PaginationItem>
|
|
1508
|
+
* <PaginationButton {...prevButtonProps}>Previous</PaginationButton>
|
|
1509
|
+
* </PaginationItem>
|
|
1510
|
+
* {pages.map(({ page, itemKey, buttonProps }) => (
|
|
1511
|
+
* <PaginationItem key={itemKey}>
|
|
1512
|
+
* {typeof page === 'number' && (
|
|
1513
|
+
* <PaginationButton {...buttonProps} aria-label={`Page ${page}`}>
|
|
1514
|
+
* {page}
|
|
1515
|
+
* </PaginationButton>
|
|
1516
|
+
* )}
|
|
1517
|
+
* </PaginationItem>
|
|
1518
|
+
* ))}
|
|
1519
|
+
* <PaginationItem>
|
|
1520
|
+
* <PaginationButton {...nextButtonProps}>Next</PaginationButton>
|
|
1521
|
+
* </PaginationItem>
|
|
1522
|
+
* </Pagination>
|
|
1523
|
+
**/
|
|
1524
|
+
declare const usePagination: ({
|
|
1525
|
+
count,
|
|
1526
|
+
page: pageProp,
|
|
1527
|
+
defaultPage,
|
|
1528
|
+
boundaryCount,
|
|
1529
|
+
siblingCount,
|
|
1530
|
+
disabled,
|
|
1531
|
+
onPageChange
|
|
1532
|
+
}: UsePaginationProps) => {
|
|
1533
|
+
/** Items and pages to be displayed */
|
|
1534
|
+
pages: {
|
|
1535
|
+
/** Page number, "ellipsis" for ellipsis items */
|
|
1536
|
+
page: number | "ellipsis";
|
|
1537
|
+
/** Unique key for the item */
|
|
1538
|
+
key: string;
|
|
1539
|
+
/** Properties to spread on PaginationButton */
|
|
1540
|
+
buttonProps: {
|
|
1541
|
+
'aria-current': "page" | undefined;
|
|
1542
|
+
onClick: () => void;
|
|
1543
|
+
variant: "text";
|
|
1544
|
+
} | null;
|
|
1545
|
+
}[];
|
|
1546
|
+
/** Properties to spread on PaginationButton used for previous navigation */
|
|
1547
|
+
prevButtonProps: PaginationButtonProps;
|
|
1548
|
+
/** Properties to spread on PaginationButton used for next naviagation */
|
|
1549
|
+
nextButtonProps: PaginationButtonProps;
|
|
1550
|
+
/** If previous page action should be shown */
|
|
1551
|
+
hasPrev: boolean;
|
|
1552
|
+
/** If next page action should be shown */
|
|
1553
|
+
hasNext: boolean;
|
|
1554
|
+
};
|
|
1555
|
+
//#endregion
|
|
1556
|
+
//#region src/components/alert/alert-footer.d.ts
|
|
1557
|
+
type AlertFooterProps = MergeRight<HTMLAttributes<HTMLDivElement>, {
|
|
1558
|
+
/**
|
|
1559
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1560
|
+
* @default false
|
|
1561
|
+
*/
|
|
1562
|
+
asChild?: boolean;
|
|
1563
|
+
ref?: Ref<HTMLDivElement>;
|
|
1564
|
+
}>;
|
|
1565
|
+
declare const AlertFooter: ({
|
|
1566
|
+
className,
|
|
1567
|
+
children,
|
|
1568
|
+
asChild,
|
|
1569
|
+
ref,
|
|
1570
|
+
...rest
|
|
1571
|
+
}: AlertFooterProps) => react_jsx_runtime0.JSX.Element;
|
|
1572
|
+
//#endregion
|
|
1573
|
+
export { Alert, AlertFooter, AlertFooterProps, AlertProps, Avatar, AvatarProps, Badge, BadgeProps, Button, ButtonProps, Card, CardAction, CardActionProps, CardActions, CardActionsProps, CardContent, CardContentProps, CardDate, CardDateProps, CardHeader, CardHeaderProps, CardMedia, CardMediaProps, CardProps, Checkbox, CheckboxProps, Chip, ChipProps, Dialog, DialogContent, DialogContentProps, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogProps, DialogTrigger, DialogTriggerProps, Drawer, DrawerContent, DrawerContentProps, DrawerFooter, DrawerFooterProps, DrawerHeader, DrawerHeaderProps, DrawerProps, DrawerTrigger, DrawerTriggerProps, Dropdown, DropdownButton, DropdownButtonProps, DropdownProps, DropdownTrigger, DropdownTriggerProps, Field, FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps, FieldDescription, FieldDescriptionProps, FieldProps, Fieldset, FieldsetDescription, FieldsetDescriptionProps, FieldsetLegend, FieldsetLegendProps, FieldsetProps, Footer, FooterProps, Input, InputProps, Label, LabelProps, Link, LinkProps, Logo, LogoProps, Navbar, NavbarProps, Pagination, PaginationButton, PaginationButtonProps, PaginationProps, Popover, PopoverProps, PopoverTrigger, PopoverTriggerProps, Radio, RadioProps, Search, SearchProps, Select, SelectOptgroup, SelectOptgroupProps, SelectOption, SelectOptionProps, SelectProps, Spinner, SpinnerProps, Tab, TabProps, Tabs, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps, Textarea, TextareaProps, Textfield, TextfieldProps, UsePaginationProps, ValidationMessage, ValidationMessageProps, usePagination };
|
|
1574
|
+
//# sourceMappingURL=alert-footer-CWTF8lZr.d.ts.map
|