@bi-digital/react 0.2.12 → 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,13 @@
|
|
|
1
|
+
import { PopoverTrigger } from "./popover-trigger-DB9-FUdp.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/dropdown/dropdown-trigger.tsx
|
|
5
|
+
const DropdownTrigger = ({ ref,...rest }) => /* @__PURE__ */ jsx(PopoverTrigger, {
|
|
6
|
+
variant: "text",
|
|
7
|
+
ref,
|
|
8
|
+
...rest
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { DropdownTrigger };
|
|
13
|
+
//# sourceMappingURL=dropdown-trigger-DnE1t9YA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-trigger-DnE1t9YA.js","names":[],"sources":["../src/components/dropdown/dropdown-trigger.tsx"],"sourcesContent":["import { PopoverTrigger, type PopoverTriggerProps } from '../popover';\n\nexport type DropdownTriggerProps = PopoverTriggerProps;\n\nexport const DropdownTrigger = ({ ref, ...rest }: DropdownTriggerProps) => (\n <PopoverTrigger variant='text' ref={ref} {...rest} />\n);\n"],"mappings":";;;;AAIA,MAAa,kBAAkB,CAAC,EAAE,IAAK,GAAG,MAA4B,qBACpE,IAAC;CAAe,SAAQ;CAAY;CAAK,GAAI;EAAQ"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/dropdown/dropdown-trigger-context.d.ts
|
|
5
|
+
type DropdownTriggerContextProps = {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* DropdownTriggerContext component, use to wrap a DropdownTrigger and Dropdown.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* <DropdownTriggerContext>
|
|
13
|
+
* <DropdownTrigger>Dropdown</DropdownTrigger>
|
|
14
|
+
* <Dropdown>
|
|
15
|
+
* <DropdownHeading>Heading</DropdownHeading>
|
|
16
|
+
* <DropdownList>
|
|
17
|
+
* <DropdownItem>
|
|
18
|
+
* <DropdownButton>Button</DropdownButton>
|
|
19
|
+
* </DropdownItem>
|
|
20
|
+
* </DropdownList>
|
|
21
|
+
* </Dropdown>
|
|
22
|
+
* </DropdownTriggerContext>
|
|
23
|
+
*/
|
|
24
|
+
declare const DropdownTriggerContext: ({
|
|
25
|
+
children
|
|
26
|
+
}: DropdownTriggerContextProps) => react_jsx_runtime30.JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { DropdownTriggerContext, DropdownTriggerContextProps };
|
|
29
|
+
//# sourceMappingURL=dropdown-trigger-context-5mGr6ped.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PopoverTriggerContext } from "./popover-trigger-context-CFCUCT8d.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/dropdown/dropdown-trigger-context.tsx
|
|
5
|
+
/**
|
|
6
|
+
* DropdownTriggerContext component, use to wrap a DropdownTrigger and Dropdown.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <DropdownTriggerContext>
|
|
10
|
+
* <DropdownTrigger>Dropdown</DropdownTrigger>
|
|
11
|
+
* <Dropdown>
|
|
12
|
+
* <DropdownHeading>Heading</DropdownHeading>
|
|
13
|
+
* <DropdownList>
|
|
14
|
+
* <DropdownItem>
|
|
15
|
+
* <DropdownButton>Button</DropdownButton>
|
|
16
|
+
* </DropdownItem>
|
|
17
|
+
* </DropdownList>
|
|
18
|
+
* </Dropdown>
|
|
19
|
+
* </DropdownTriggerContext>
|
|
20
|
+
*/
|
|
21
|
+
const DropdownTriggerContext = ({ children }) => /* @__PURE__ */ jsx(PopoverTriggerContext, { children });
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { DropdownTriggerContext };
|
|
25
|
+
//# sourceMappingURL=dropdown-trigger-context-BDCr78fy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-trigger-context-BDCr78fy.js","names":[],"sources":["../src/components/dropdown/dropdown-trigger-context.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { PopoverTriggerContext } from '../popover';\n\nexport type DropdownTriggerContextProps = {\n children: ReactNode;\n};\n\n/**\n * DropdownTriggerContext component, use to wrap a DropdownTrigger and Dropdown.\n *\n * @example\n * <DropdownTriggerContext>\n * <DropdownTrigger>Dropdown</DropdownTrigger>\n * <Dropdown>\n * <DropdownHeading>Heading</DropdownHeading>\n * <DropdownList>\n * <DropdownItem>\n * <DropdownButton>Button</DropdownButton>\n * </DropdownItem>\n * </DropdownList>\n * </Dropdown>\n * </DropdownTriggerContext>\n */\nexport const DropdownTriggerContext = ({ children }: DropdownTriggerContextProps) => (\n <PopoverTriggerContext>{children}</PopoverTriggerContext>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuBA,MAAa,yBAAyB,CAAC,EAAE,UAAuC,qBAC9E,IAAC,yBAAuB,WAAiC"}
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/field/field.tsx
|
|
6
|
+
/**
|
|
7
|
+
* The Field component is used to wrap a form field.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <Field>
|
|
11
|
+
* <Label>Kort beskrivelse</Label>
|
|
12
|
+
* <FieldDescription>Beskrivelse</FieldDescription>
|
|
13
|
+
* <Input />
|
|
14
|
+
* <ValidationMessage>Feilmelding</ValidationMessage>
|
|
15
|
+
* </Field>
|
|
16
|
+
*/
|
|
17
|
+
const Field = ({ className, dark, position, asChild, ref,...props }) => {
|
|
18
|
+
const Component = asChild ? Slot : "div";
|
|
19
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
20
|
+
className: clsx("bi-field", className),
|
|
21
|
+
"data-dark": dark,
|
|
22
|
+
"data-position": position,
|
|
23
|
+
ref,
|
|
24
|
+
...props
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { Field };
|
|
30
|
+
//# sourceMappingURL=field-U2SN9jkp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-U2SN9jkp.js","names":[],"sources":["../src/components/field/field.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps, AsChildProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type FieldProps = MergeRight<\n DefaultProps & AsChildProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * Position of toggle-type inputs (radio, checkbox) in the field\n * @default start\n */\n position?: 'start' | 'end';\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\n/**\n * The Field component is used to wrap a form field.\n *\n * @example\n * <Field>\n * <Label>Kort beskrivelse</Label>\n * <FieldDescription>Beskrivelse</FieldDescription>\n * <Input />\n * <ValidationMessage>Feilmelding</ValidationMessage>\n * </Field>\n */\nexport const Field = ({ className, dark, position, asChild, ref, ...props }: FieldProps) => {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component className={clsx('bi-field', className)} data-dark={dark} data-position={position} ref={ref} {...props} />\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;AA6BA,MAAa,QAAQ,CAAC,EAAE,WAAW,MAAM,UAAU,SAAS,IAAK,GAAG,OAAmB,KAAK;CAC1F,MAAM,YAAY,UAAU,OAAO;AAEnC,wBACE,IAAC;EAAU,WAAW,KAAK,YAAY,UAAU;EAAE,aAAW;EAAM,iBAAe;EAAe;EAAK,GAAI;GAAS;AAEvH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/field/field-affix.tsx
|
|
6
|
+
/**
|
|
7
|
+
* FieldAffixes component, used to wrap a form field.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <FieldAffixes>
|
|
11
|
+
* <FieldAffix>+47</FieldAffix>
|
|
12
|
+
* <Input />
|
|
13
|
+
* <FieldAffix>kr</FieldAffix>
|
|
14
|
+
* </FieldAffixes>
|
|
15
|
+
*/
|
|
16
|
+
const FieldAffixes = ({ className, asChild, ref,...rest }) => {
|
|
17
|
+
const Component = asChild ? Slot : "div";
|
|
18
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
19
|
+
className: clsx("bi-field--affixes", className),
|
|
20
|
+
ref,
|
|
21
|
+
...rest
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* FieldAffix component, used to display prefix/suffix for a form field.
|
|
26
|
+
* Use inside the `FieldAffixes` component.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* <FieldAffixes>
|
|
30
|
+
* <FieldAffix>+47</FieldAffix>
|
|
31
|
+
* <Input />
|
|
32
|
+
* <FieldAffix>kr</FieldAffix>
|
|
33
|
+
* </FieldAffixes>
|
|
34
|
+
*/
|
|
35
|
+
const FieldAffix = ({ className, asChild, ref,...rest }) => {
|
|
36
|
+
const Component = asChild ? Slot : "span";
|
|
37
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
38
|
+
className: clsx("bi-field--affix", className),
|
|
39
|
+
"aria-hidden": "true",
|
|
40
|
+
ref,
|
|
41
|
+
...rest
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
export { FieldAffix, FieldAffixes };
|
|
47
|
+
//# sourceMappingURL=field-affix-npc6m7XL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-affix-npc6m7XL.js","names":[],"sources":["../src/components/field/field-affix.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\nimport { Slot } from '@radix-ui/react-slot';\n\nexport type FieldAffixesProps = MergeRight<\n AsChildProps & Omit<HTMLAttributes<HTMLDivElement>, 'prefix'>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\n/**\n * FieldAffixes component, used to wrap a form field.\n *\n * @example\n * <FieldAffixes>\n * <FieldAffix>+47</FieldAffix>\n * <Input />\n * <FieldAffix>kr</FieldAffix>\n * </FieldAffixes>\n */\nexport const FieldAffixes = ({ className, asChild, ref, ...rest }: FieldAffixesProps) => {\n const Component = asChild ? Slot : 'div';\n return <Component className={clsx('bi-field--affixes', className)} ref={ref} {...rest} />;\n};\n\nexport type FieldAffixProps = MergeRight<\n AsChildProps & Omit<HTMLAttributes<HTMLSpanElement>, 'prefix'>,\n {\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\n/**\n * FieldAffix component, used to display prefix/suffix for a form field.\n * Use inside the `FieldAffixes` component.\n *\n * @example\n * <FieldAffixes>\n * <FieldAffix>+47</FieldAffix>\n * <Input />\n * <FieldAffix>kr</FieldAffix>\n * </FieldAffixes>\n */\nexport const FieldAffix = ({ className, asChild, ref, ...rest }: FieldAffixProps) => {\n const Component = asChild ? Slot : 'span';\n return <Component className={clsx('bi-field--affix', className)} aria-hidden='true' ref={ref} {...rest} />;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAuBA,MAAa,eAAe,CAAC,EAAE,WAAW,SAAS,IAAK,GAAG,MAAyB,KAAK;CACvF,MAAM,YAAY,UAAU,OAAO;AACnC,wBAAO,IAAC;EAAU,WAAW,KAAK,qBAAqB,UAAU;EAAO;EAAK,GAAI;GAAQ;AAC1F;;;;;;;;;;;;AAoBD,MAAa,aAAa,CAAC,EAAE,WAAW,SAAS,IAAK,GAAG,MAAuB,KAAK;CACnF,MAAM,YAAY,UAAU,OAAO;AACnC,wBAAO,IAAC;EAAU,WAAW,KAAK,mBAAmB,UAAU;EAAE,eAAY;EAAY;EAAK,GAAI;GAAQ;AAC3G"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/field/field-description.tsx
|
|
6
|
+
const FieldDescription = ({ asChild, className, ref,...props }) => {
|
|
7
|
+
const Component = asChild ? Slot : "div";
|
|
8
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
9
|
+
className: clsx("bi-field--description", className),
|
|
10
|
+
ref,
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { FieldDescription };
|
|
17
|
+
//# sourceMappingURL=field-description-Dhm1VA08.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-description-Dhm1VA08.js","names":[],"sources":["../src/components/field/field-description.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type FieldDescriptionProps = MergeRight<\n AsChildProps & HTMLAttributes<HTMLDivElement>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const FieldDescription = ({ asChild, className, ref, ...props }: FieldDescriptionProps) => {\n const Component = asChild ? Slot : 'div';\n\n return <Component className={clsx('bi-field--description', className)} ref={ref} {...props} />;\n};\n"],"mappings":";;;;;AAaA,MAAa,mBAAmB,CAAC,EAAE,SAAS,WAAW,IAAK,GAAG,OAA8B,KAAK;CAChG,MAAM,YAAY,UAAU,OAAO;AAEnC,wBAAO,IAAC;EAAU,WAAW,KAAK,yBAAyB,UAAU;EAAO;EAAK,GAAI;GAAS;AAC/F"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/fieldset/fieldset.tsx
|
|
5
|
+
const Fieldset = ({ children, className, dark, ref,...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx("fieldset", {
|
|
7
|
+
className: clsx("bi-fieldset", className),
|
|
8
|
+
"data-dark": dark,
|
|
9
|
+
ref,
|
|
10
|
+
...props,
|
|
11
|
+
children
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { Fieldset };
|
|
17
|
+
//# sourceMappingURL=fieldset-Bpu4CRKG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldset-Bpu4CRKG.js","names":[],"sources":["../src/components/fieldset/fieldset.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { FieldsetHTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type FieldsetProps = MergeRight<\n DefaultProps & FieldsetHTMLAttributes<HTMLFieldSetElement>,\n {\n ref?: Ref<HTMLFieldSetElement>;\n }\n>;\n\nexport const Fieldset = ({ children, className, dark, ref, ...props }: FieldsetProps) => {\n return (\n <fieldset className={clsx('bi-fieldset', className)} data-dark={dark} ref={ref} {...props}>\n {children}\n </fieldset>\n );\n};\n"],"mappings":";;;;AAYA,MAAa,WAAW,CAAC,EAAE,UAAU,WAAW,MAAM,IAAK,GAAG,OAAsB,KAAK;AACvF,wBACE,IAAC;EAAS,WAAW,KAAK,eAAe,UAAU;EAAE,aAAW;EAAW;EAAK,GAAI;EACjF;GACQ;AAEd"}
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/fieldset/fieldset-description.tsx
|
|
5
|
+
const FieldsetDescription = ({ asChild, ref,...props }) => {
|
|
6
|
+
const Component = asChild ? Slot : "p";
|
|
7
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
8
|
+
ref,
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { FieldsetDescription };
|
|
15
|
+
//# sourceMappingURL=fieldset-description-DiHvcLh-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldset-description-DiHvcLh-.js","names":[],"sources":["../src/components/fieldset/fieldset-description.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type FieldsetDescriptionProps = MergeRight<\n AsChildProps & HTMLAttributes<HTMLParagraphElement>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const FieldsetDescription = ({ asChild, ref, ...props }: FieldsetDescriptionProps) => {\n const Component = asChild ? Slot : 'p';\n\n return <Component ref={ref} {...props} />;\n};\n"],"mappings":";;;;AAYA,MAAa,sBAAsB,CAAC,EAAE,SAAS,IAAK,GAAG,OAAiC,KAAK;CAC3F,MAAM,YAAY,UAAU,OAAO;AAEnC,wBAAO,IAAC;EAAe;EAAK,GAAI;GAAS;AAC1C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Label } from "./label-DUzvAx-T.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/fieldset/fieldset-legend.tsx
|
|
5
|
+
const FieldsetLegend = ({ children, dark, ref,...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(Label, {
|
|
7
|
+
asChild: true,
|
|
8
|
+
dark,
|
|
9
|
+
children: /* @__PURE__ */ jsx("legend", {
|
|
10
|
+
ref,
|
|
11
|
+
...props,
|
|
12
|
+
children
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { FieldsetLegend };
|
|
19
|
+
//# sourceMappingURL=fieldset-legend-CR4srn2-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldset-legend-CR4srn2-.js","names":[],"sources":["../src/components/fieldset/fieldset-legend.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport { Label, type LabelProps } from '../label';\n\nexport type FieldsetLegendProps = MergeRight<\n LabelProps & HTMLAttributes<HTMLLegendElement>,\n {\n ref?: Ref<HTMLLegendElement>;\n }\n>;\n\nexport const FieldsetLegend = ({ children, dark, ref, ...props }: FieldsetLegendProps) => {\n return (\n <Label asChild dark={dark}>\n <legend ref={ref} {...props}>\n {children}\n </legend>\n </Label>\n );\n};\n"],"mappings":";;;;AAWA,MAAa,iBAAiB,CAAC,EAAE,UAAU,MAAM,IAAK,GAAG,OAA4B,KAAK;AACxF,wBACE,IAAC;EAAM;EAAc;4BACnB,IAAC;GAAY;GAAK,GAAI;GACnB;IACM;GACH;AAEX"}
|
|
File without changes
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Button } from "./button-fhd-JARc.js";
|
|
2
|
+
import clsx from "clsx/lite";
|
|
3
|
+
import { BiIconFacebook, BiIconInstagram, BiIconLinkedin, BiIconX } from "@bi-digital/icons-react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/footer/footer.tsx
|
|
7
|
+
const Footer = ({ dark, copyRightText = "Handelshøyskolen BI", hideAccreditationIcons = false, hideSocialMediaIcons = false, hideCopyRight = false, className, children, ref,...props }) => {
|
|
8
|
+
return /* @__PURE__ */ jsxs("footer", {
|
|
9
|
+
className: clsx("bi-footer", className),
|
|
10
|
+
"data-dark": dark,
|
|
11
|
+
ref,
|
|
12
|
+
...props,
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ jsx("div", {
|
|
15
|
+
className: "bi-footer--links-container",
|
|
16
|
+
children
|
|
17
|
+
}),
|
|
18
|
+
!hideAccreditationIcons && /* @__PURE__ */ jsxs("div", {
|
|
19
|
+
className: "bi-footer--accreditations",
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ jsx("a", {
|
|
22
|
+
"aria-label": "AACSB-link",
|
|
23
|
+
target: "_blank",
|
|
24
|
+
href: "https://www.aacsb.edu/accreditation",
|
|
25
|
+
rel: "noopener noreferrer",
|
|
26
|
+
children: /* @__PURE__ */ jsx("span", { className: "bi-footer--aacsb" })
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ jsx("a", {
|
|
29
|
+
"aria-label": "Equis-link",
|
|
30
|
+
target: "_blank",
|
|
31
|
+
href: "https://www.efmdglobal.org/accreditations/business-schools/equis/",
|
|
32
|
+
rel: "noopener noreferrer",
|
|
33
|
+
children: /* @__PURE__ */ jsx("span", { className: "bi-footer--equis" })
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ jsx("a", {
|
|
36
|
+
"aria-label": "AMBA-link",
|
|
37
|
+
target: "_blank",
|
|
38
|
+
href: "https://www.associationofmbas.com/",
|
|
39
|
+
rel: "noopener noreferrer",
|
|
40
|
+
children: /* @__PURE__ */ jsx("span", { className: "bi-footer--amba" })
|
|
41
|
+
})
|
|
42
|
+
]
|
|
43
|
+
}),
|
|
44
|
+
!hideSocialMediaIcons && /* @__PURE__ */ jsxs("div", {
|
|
45
|
+
className: "bi-footer--socials",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(Button, {
|
|
48
|
+
size: "large",
|
|
49
|
+
variant: "text",
|
|
50
|
+
icon: true,
|
|
51
|
+
asChild: true,
|
|
52
|
+
dark,
|
|
53
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
54
|
+
target: "_blank",
|
|
55
|
+
href: "https://www.facebook.com/HandelshoyskolenBI/",
|
|
56
|
+
rel: "noopener noreferrer",
|
|
57
|
+
children: /* @__PURE__ */ jsx(BiIconFacebook, { title: "BI Facebook" })
|
|
58
|
+
})
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ jsx(Button, {
|
|
61
|
+
size: "large",
|
|
62
|
+
variant: "text",
|
|
63
|
+
icon: true,
|
|
64
|
+
asChild: true,
|
|
65
|
+
dark,
|
|
66
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
67
|
+
target: "_blank",
|
|
68
|
+
href: "https://twitter.com/handelshoyskbi",
|
|
69
|
+
rel: "noopener noreferrer",
|
|
70
|
+
children: /* @__PURE__ */ jsx(BiIconX, { title: "BI X" })
|
|
71
|
+
})
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ jsx(Button, {
|
|
74
|
+
size: "large",
|
|
75
|
+
variant: "text",
|
|
76
|
+
icon: true,
|
|
77
|
+
asChild: true,
|
|
78
|
+
dark,
|
|
79
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
80
|
+
target: "_blank",
|
|
81
|
+
href: "https://www.linkedin.com/school/bi-norwegian-business-school/",
|
|
82
|
+
rel: "noopener noreferrer",
|
|
83
|
+
children: /* @__PURE__ */ jsx(BiIconLinkedin, { title: "BI LinkedIn" })
|
|
84
|
+
})
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ jsx(Button, {
|
|
87
|
+
size: "large",
|
|
88
|
+
variant: "text",
|
|
89
|
+
icon: true,
|
|
90
|
+
asChild: true,
|
|
91
|
+
dark,
|
|
92
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
93
|
+
target: "_blank",
|
|
94
|
+
href: "https://www.instagram.com/binorwegianbusinesschool/",
|
|
95
|
+
rel: "noopener noreferrer",
|
|
96
|
+
children: /* @__PURE__ */ jsx(BiIconInstagram, { title: "BI Instagram" })
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
}),
|
|
101
|
+
!hideCopyRight && /* @__PURE__ */ jsx("p", {
|
|
102
|
+
className: "bi-footer--copyright",
|
|
103
|
+
children: `© ${(/* @__PURE__ */ new Date()).getFullYear()} ${copyRightText}`
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
});
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
export { Footer };
|
|
111
|
+
//# sourceMappingURL=footer-hxqsN1cg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer-hxqsN1cg.js","names":[],"sources":["../src/components/footer/footer.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { BiIconFacebook, BiIconX, BiIconLinkedin, BiIconInstagram } from '@bi-digital/icons-react';\nimport { Button } from '../button';\n\nexport type FooterProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * The text to display in the copyright section.\n * @default 'Handelshøyskolen BI'\n */\n copyRightText?: string;\n /**\n * Whether to hide the accreditation icons.\n * @default false\n */\n hideAccreditationIcons?: boolean;\n /**\n * Whether to hide the social media icons.\n * @default false\n */\n hideSocialMediaIcons?: boolean;\n /**\n * Whether to hide the copyright text.\n * @default false\n */\n hideCopyRight?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const Footer = ({\n dark,\n copyRightText = 'Handelshøyskolen BI',\n hideAccreditationIcons = false,\n hideSocialMediaIcons = false,\n hideCopyRight = false,\n className,\n children,\n ref,\n ...props\n}: FooterProps) => {\n return (\n <footer className={clsx('bi-footer', className)} data-dark={dark} ref={ref} {...props}>\n <div className='bi-footer--links-container'>{children}</div>\n {!hideAccreditationIcons && (\n <div className='bi-footer--accreditations'>\n <a\n aria-label='AACSB-link'\n target='_blank'\n href='https://www.aacsb.edu/accreditation'\n rel='noopener noreferrer'\n >\n <span className='bi-footer--aacsb' />\n </a>\n <a\n aria-label='Equis-link'\n target='_blank'\n href='https://www.efmdglobal.org/accreditations/business-schools/equis/'\n rel='noopener noreferrer'\n >\n <span className='bi-footer--equis' />\n </a>\n <a aria-label='AMBA-link' target='_blank' href='https://www.associationofmbas.com/' rel='noopener noreferrer'>\n <span className='bi-footer--amba' />\n </a>\n </div>\n )}\n {!hideSocialMediaIcons && (\n <div className='bi-footer--socials'>\n <Button size='large' variant='text' icon asChild dark={dark}>\n <a target='_blank' href='https://www.facebook.com/HandelshoyskolenBI/' rel='noopener noreferrer'>\n <BiIconFacebook title='BI Facebook' />\n </a>\n </Button>\n <Button size='large' variant='text' icon asChild dark={dark}>\n <a target='_blank' href='https://twitter.com/handelshoyskbi' rel='noopener noreferrer'>\n <BiIconX title='BI X' />\n </a>\n </Button>\n <Button size='large' variant='text' icon asChild dark={dark}>\n <a\n target='_blank'\n href='https://www.linkedin.com/school/bi-norwegian-business-school/'\n rel='noopener noreferrer'\n >\n <BiIconLinkedin title='BI LinkedIn' />\n </a>\n </Button>\n <Button size='large' variant='text' icon asChild dark={dark}>\n <a target='_blank' href='https://www.instagram.com/binorwegianbusinesschool/' rel='noopener noreferrer'>\n <BiIconInstagram title='BI Instagram' />\n </a>\n </Button>\n </div>\n )}\n {!hideCopyRight && <p className='bi-footer--copyright'>{`© ${new Date().getFullYear()} ${copyRightText}`}</p>}\n </footer>\n );\n};\n"],"mappings":";;;;;;AAkCA,MAAa,SAAS,CAAC,EACrB,MACA,gBAAgB,uBAChB,yBAAyB,OACzB,uBAAuB,OACvB,gBAAgB,OAChB,WACA,UACA,IACA,GAAG,OACS,KAAK;AACjB,wBACE,KAAC;EAAO,WAAW,KAAK,aAAa,UAAU;EAAE,aAAW;EAAW;EAAK,GAAI;;mBAC9E,IAAC;IAAI,WAAU;IAA8B;KAAe;IAC1D,0CACA,KAAC;IAAI,WAAU;;qBACb,IAAC;MACC,cAAW;MACX,QAAO;MACP,MAAK;MACL,KAAI;gCAEJ,IAAC,UAAK,WAAU,qBAAqB;OACnC;qBACJ,IAAC;MACC,cAAW;MACX,QAAO;MACP,MAAK;MACL,KAAI;gCAEJ,IAAC,UAAK,WAAU,qBAAqB;OACnC;qBACJ,IAAC;MAAE,cAAW;MAAY,QAAO;MAAS,MAAK;MAAqC,KAAI;gCACtF,IAAC,UAAK,WAAU,oBAAoB;OAClC;;KACA;IAEN,wCACA,KAAC;IAAI,WAAU;;qBACb,IAAC;MAAO,MAAK;MAAQ,SAAQ;MAAO;MAAK;MAAc;gCACrD,IAAC;OAAE,QAAO;OAAS,MAAK;OAA+C,KAAI;iCACzE,IAAC,kBAAe,OAAM,gBAAgB;QACpC;OACG;qBACT,IAAC;MAAO,MAAK;MAAQ,SAAQ;MAAO;MAAK;MAAc;gCACrD,IAAC;OAAE,QAAO;OAAS,MAAK;OAAqC,KAAI;iCAC/D,IAAC,WAAQ,OAAM,SAAS;QACtB;OACG;qBACT,IAAC;MAAO,MAAK;MAAQ,SAAQ;MAAO;MAAK;MAAc;gCACrD,IAAC;OACC,QAAO;OACP,MAAK;OACL,KAAI;iCAEJ,IAAC,kBAAe,OAAM,gBAAgB;QACpC;OACG;qBACT,IAAC;MAAO,MAAK;MAAQ,SAAQ;MAAO;MAAK;MAAc;gCACrD,IAAC;OAAE,QAAO;OAAS,MAAK;OAAsD,KAAI;iCAChF,IAAC,mBAAgB,OAAM,iBAAiB;QACtC;OACG;;KACL;IAEN,iCAAiB,IAAC;IAAE,WAAU;eAAyB,IAAI,qBAAI,QAAO,aAAa,CAAC,GAAG,cAAc;KAAM;;GACtG;AAEZ"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
2
|
+
import { HTMLAttributes, Ref } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/footer/footer-links.d.ts
|
|
5
|
+
type FooterLinksProps = HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
/**
|
|
7
|
+
* Optional leading text to display before the links.
|
|
8
|
+
*/
|
|
9
|
+
leadingText?: string;
|
|
10
|
+
ref?: Ref<HTMLDivElement>;
|
|
11
|
+
};
|
|
12
|
+
declare const FooterLinks: ({
|
|
13
|
+
leadingText,
|
|
14
|
+
children,
|
|
15
|
+
ref,
|
|
16
|
+
...props
|
|
17
|
+
}: FooterLinksProps) => react_jsx_runtime40.JSX.Element;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { FooterLinks, FooterLinksProps };
|
|
20
|
+
//# sourceMappingURL=footer-links-BbIh-yGy.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/footer/footer-links.tsx
|
|
4
|
+
const FooterLinks = ({ leadingText, children, ref,...props }) => {
|
|
5
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
6
|
+
className: "bi-footer--links",
|
|
7
|
+
ref,
|
|
8
|
+
...props,
|
|
9
|
+
children: [leadingText && /* @__PURE__ */ jsxs("p", { children: [leadingText, ":"] }), /* @__PURE__ */ jsx("div", { children })]
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { FooterLinks };
|
|
15
|
+
//# sourceMappingURL=footer-links-CicpNbmh.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer-links-CicpNbmh.js","names":[],"sources":["../src/components/footer/footer-links.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\n\nexport type FooterLinksProps = HTMLAttributes<HTMLDivElement> & {\n /**\n * Optional leading text to display before the links.\n */\n leadingText?: string;\n ref?: Ref<HTMLDivElement>;\n};\n\nexport const FooterLinks = ({ leadingText, children, ref, ...props }: FooterLinksProps) => {\n return (\n <div className='bi-footer--links' ref={ref} {...props}>\n {leadingText && <p>{leadingText}:</p>}\n <div>{children}</div>\n </div>\n );\n};\n"],"mappings":";;;AAUA,MAAa,cAAc,CAAC,EAAE,aAAa,UAAU,IAAK,GAAG,OAAyB,KAAK;AACzF,wBACE,KAAC;EAAI,WAAU;EAAwB;EAAK,GAAI;aAC7C,+BAAe,KAAC,kBAAG,aAAY,OAAK,kBACrC,IAAC,SAAK,WAAe;GACjB;AAET"}
|
|
File without changes
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Middleware, Placement } from "@floating-ui/dom";
|
|
2
|
+
import "@oddbird/popover-polyfill";
|
|
3
|
+
|
|
4
|
+
//#region src/vanilla/popover/index.d.ts
|
|
5
|
+
type InitPopoverOptions = {
|
|
6
|
+
/** The id of the popover to initialize. The trigger element should have a `popovertarget` attribute with the same id. */
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* Placement of the popover relative to the trigger.
|
|
10
|
+
* @default 'top'
|
|
11
|
+
*/
|
|
12
|
+
placement?: Placement;
|
|
13
|
+
/**
|
|
14
|
+
* Additional middleware to use for positioning the popover.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* Prevent the popover from overflowing the navbar by using the `size` middleware:
|
|
18
|
+
* ```ts
|
|
19
|
+
* positionMiddleware: [
|
|
20
|
+
* size({
|
|
21
|
+
* apply: ({ availableHeight, elements, ...state }) => {
|
|
22
|
+
* const available = `${Math.max(0, availableHeight)}px`;
|
|
23
|
+
* const maxHeight = state.placement.includes('top')
|
|
24
|
+
* ? `calc(${available} - var(--bi-layout-navbar-height, 0))`
|
|
25
|
+
* : available;
|
|
26
|
+
* elements.floating.style.maxHeight = maxHeight;
|
|
27
|
+
* },
|
|
28
|
+
* padding,
|
|
29
|
+
* })
|
|
30
|
+
* ]}
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
positionMiddleware?: Middleware[];
|
|
34
|
+
/**
|
|
35
|
+
* Whether to disable auto placement.
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
disableAutoPlacement?: boolean;
|
|
39
|
+
};
|
|
40
|
+
declare const initPopover: ({
|
|
41
|
+
id,
|
|
42
|
+
disableAutoPlacement,
|
|
43
|
+
placement,
|
|
44
|
+
positionMiddleware
|
|
45
|
+
}: InitPopoverOptions) => void;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { InitPopoverOptions, initPopover };
|
|
48
|
+
//# sourceMappingURL=index-DRx9hLAb.d.ts.map
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Middleware, Placement } from "@floating-ui/dom";
|
|
2
|
+
|
|
3
|
+
//#region src/vanilla/dropdown/index.d.ts
|
|
4
|
+
type InitDropdownOptions = {
|
|
5
|
+
/** The id of the dropdown to initialize. The trigger element should have a `popovertarget` attribute with the same id. */
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* Placement of the dropdown relative to the trigger.
|
|
9
|
+
* @default 'bottom'
|
|
10
|
+
*/
|
|
11
|
+
placement?: Placement;
|
|
12
|
+
/**
|
|
13
|
+
* Additional middleware to use for positioning the dropdown.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* Prevent the dropdown from overflowing the navbar by using the `size` middleware:
|
|
17
|
+
* ```ts
|
|
18
|
+
* positionMiddleware: [
|
|
19
|
+
* size({
|
|
20
|
+
* apply: ({ availableHeight, elements, ...state }) => {
|
|
21
|
+
* const available = `${Math.max(0, availableHeight)}px`;
|
|
22
|
+
* const maxHeight = state.placement.includes('top')
|
|
23
|
+
* ? `calc(${available} - var(--bi-layout-navbar-height, 0))`
|
|
24
|
+
* : available;
|
|
25
|
+
* elements.floating.style.maxHeight = maxHeight;
|
|
26
|
+
* },
|
|
27
|
+
* padding,
|
|
28
|
+
* })
|
|
29
|
+
* ]}
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
positionMiddleware?: Middleware[];
|
|
33
|
+
/**
|
|
34
|
+
* Whether to disable auto placement.
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
disableAutoPlacement?: boolean;
|
|
38
|
+
};
|
|
39
|
+
declare const initDropdown: ({
|
|
40
|
+
id,
|
|
41
|
+
disableAutoPlacement,
|
|
42
|
+
placement,
|
|
43
|
+
positionMiddleware
|
|
44
|
+
}: InitDropdownOptions) => void;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { InitDropdownOptions, initDropdown };
|
|
47
|
+
//# sourceMappingURL=index-no8iFicj.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/input/input.tsx
|
|
5
|
+
const Input = ({ type = "text", size = "medium", visibleWidth, className, onChange, onClick, dark, readOnly, ref,...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx("input", {
|
|
7
|
+
className: clsx("bi-input", className),
|
|
8
|
+
"data-dark": dark,
|
|
9
|
+
"data-size": size,
|
|
10
|
+
ref,
|
|
11
|
+
type,
|
|
12
|
+
readOnly,
|
|
13
|
+
onChange: (event) => readOnly || onChange?.(event),
|
|
14
|
+
onClick: (event) => {
|
|
15
|
+
if (readOnly) event.preventDefault();
|
|
16
|
+
onClick?.(event);
|
|
17
|
+
},
|
|
18
|
+
size: visibleWidth,
|
|
19
|
+
...props
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Input };
|
|
25
|
+
//# sourceMappingURL=input-Dr7BnTyd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-Dr7BnTyd.js","names":[],"sources":["../src/components/input/input.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { InputHTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type InputProps = MergeRight<\n DefaultProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'type'>,\n {\n /**\n * Size of the input field.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n /**\n * The `input` type\n * @default 'text'\n * */\n type?:\n | 'checkbox'\n | 'color'\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'file'\n | 'hidden'\n | 'month'\n | 'number'\n | 'password'\n | 'radio'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url'\n | 'week';\n /** Set the visible width, in characters, of the `Input` component. */\n visibleWidth?: number;\n /**\n * Disable the element\n * @note Avoid using if possible for accessibility purposes\n */\n disabled?: boolean;\n /** Toggle `readOnly` */\n readOnly?: boolean;\n ref?: Ref<HTMLInputElement>;\n }\n>;\n\nexport const Input = ({\n type = 'text',\n size = 'medium',\n visibleWidth,\n className,\n onChange,\n onClick,\n dark,\n readOnly,\n ref,\n ...props\n}: InputProps) => {\n return (\n <input\n className={clsx('bi-input', className)}\n data-dark={dark}\n data-size={size}\n ref={ref}\n type={type}\n readOnly={readOnly}\n onChange={(event) => readOnly || onChange?.(event)} // Make readonly work for [type=\"checkbox\"]/[type=\"radio\"]\n onClick={(event) => {\n if (readOnly) event.preventDefault(); // Make readonly work for [type=\"checkbox\"]/[type=\"radio\"]\n onClick?.(event);\n }}\n size={visibleWidth}\n {...props}\n />\n );\n};\n"],"mappings":";;;;AAgDA,MAAa,QAAQ,CAAC,EACpB,OAAO,QACP,OAAO,UACP,cACA,WACA,UACA,SACA,MACA,UACA,IACA,GAAG,OACQ,KAAK;AAChB,wBACE,IAAC;EACC,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,aAAW;EACN;EACC;EACI;EACV,UAAU,CAAC,UAAU,YAAY,WAAW,MAAM;EAClD,SAAS,CAAC,UAAU;AAClB,OAAI,SAAU,OAAM,gBAAgB;AACpC,aAAU,MAAM;EACjB;EACD,MAAM;EACN,GAAI;GACJ;AAEL"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/label/label.tsx
|
|
6
|
+
const Label = ({ className, weight = "semibold", dark, asChild, ref,...props }) => {
|
|
7
|
+
const Component = asChild ? Slot : "label";
|
|
8
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
9
|
+
ref,
|
|
10
|
+
className: clsx("bi-label", className),
|
|
11
|
+
"data-dark": dark,
|
|
12
|
+
"data-weight": weight,
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Label };
|
|
19
|
+
//# sourceMappingURL=label-DUzvAx-T.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label-DUzvAx-T.js","names":[],"sources":["../src/components/label/label.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { LabelHTMLAttributes, Ref } from 'react';\nimport type { AsChildProps, DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type LabelProps = MergeRight<\n DefaultProps & AsChildProps & LabelHTMLAttributes<HTMLLabelElement>,\n {\n /**\n * Sets the font weight of the label. Use this when you have a label hierarchy, such as checkboxes/radios in a fieldset\n * @default 'semibold'\n */\n weight?: 'regular' | 'medium' | 'semibold';\n ref?: Ref<HTMLLabelElement>;\n }\n>;\n\nexport const Label = ({ className, weight = 'semibold', dark, asChild, ref, ...props }: LabelProps) => {\n const Component = asChild ? Slot : 'label';\n\n return (\n <Component ref={ref} className={clsx('bi-label', className)} data-dark={dark} data-weight={weight} {...props} />\n );\n};\n"],"mappings":";;;;;AAkBA,MAAa,QAAQ,CAAC,EAAE,WAAW,SAAS,YAAY,MAAM,SAAS,IAAK,GAAG,OAAmB,KAAK;CACrG,MAAM,YAAY,UAAU,OAAO;AAEnC,wBACE,IAAC;EAAe;EAAK,WAAW,KAAK,YAAY,UAAU;EAAE,aAAW;EAAM,eAAa;EAAQ,GAAI;GAAS;AAEnH"}
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
|
|
5
|
+
//#region src/components/link/link.tsx
|
|
6
|
+
const Link = ({ asChild, className, color, dark, ref,...rest }) => {
|
|
7
|
+
const Component = asChild ? Slot : "a";
|
|
8
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
9
|
+
className: clsx("bi-link", className),
|
|
10
|
+
"data-color": color,
|
|
11
|
+
"data-dark": dark,
|
|
12
|
+
ref,
|
|
13
|
+
...rest
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Link };
|
|
19
|
+
//# sourceMappingURL=link-CmV99fiH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-CmV99fiH.js","names":[],"sources":["../src/components/link/link.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx';\nimport type { AnchorHTMLAttributes, ReactNode, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type LinkProps = MergeRight<\n DefaultProps & AnchorHTMLAttributes<HTMLAnchorElement>,\n {\n /**\n * Set the color of the link.\n * @default 'primary'\n */\n color?: 'primary' | 'neutral';\n children: ReactNode;\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLAnchorElement>;\n }\n>;\n\nexport const Link = ({ asChild, className, color, dark, ref, ...rest }: LinkProps) => {\n const Component = asChild ? Slot : 'a';\n\n return <Component className={clsx('bi-link', className)} data-color={color} data-dark={dark} ref={ref} {...rest} />;\n};\n"],"mappings":";;;;;AAwBA,MAAa,OAAO,CAAC,EAAE,SAAS,WAAW,OAAO,MAAM,IAAK,GAAG,MAAiB,KAAK;CACpF,MAAM,YAAY,UAAU,OAAO;AAEnC,wBAAO,IAAC;EAAU,WAAW,KAAK,WAAW,UAAU;EAAE,cAAY;EAAO,aAAW;EAAW;EAAK,GAAI;GAAQ;AACpH"}
|
|
File without changes
|