@bi-digital/react 0.2.13 → 0.2.15
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-DL4rCThp.js +18 -0
- package/dist/alert-footer-DL4rCThp.js.map +1 -0
- package/dist/alert-footer-DgeFNevW.d.ts +1574 -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-BecLkiCE.js +0 -0
- package/dist/dropdown-C8xIJ-jF.js +15 -0
- package/dist/dropdown-C8xIJ-jF.js.map +1 -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-BRJLSD4S.js +45 -0
- package/dist/popover-BRJLSD4S.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-CFCUCT8d.js +31 -0
- package/dist/popover-trigger-context-CFCUCT8d.js.map +1 -0
- package/dist/popover-trigger-context-Efb9U0bz.d.ts +29 -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,39 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment } from "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/avatar/avatar.tsx
|
|
7
|
+
/**
|
|
8
|
+
* An Avatar represents a person.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <Avatar aria-label="Ola Nordmann">ON</Avatar>
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* <Avatar aria-label="Ola Nordmann">
|
|
15
|
+
* <img src='…' alt='Ola Nordmann' />
|
|
16
|
+
* </Avatar>
|
|
17
|
+
*/
|
|
18
|
+
const Avatar = ({ "aria-label": ariaLabel, className, ref, dark, size, color, children,...props }) => {
|
|
19
|
+
const isSlotInUse = children && typeof children !== "string";
|
|
20
|
+
const Component = isSlotInUse ? Slot : Fragment;
|
|
21
|
+
return /* @__PURE__ */ jsx("span", {
|
|
22
|
+
className: clsx("bi-avatar", className),
|
|
23
|
+
"aria-label": ariaLabel,
|
|
24
|
+
role: "img",
|
|
25
|
+
"data-size": size,
|
|
26
|
+
"data-color": color,
|
|
27
|
+
"data-dark": dark,
|
|
28
|
+
ref,
|
|
29
|
+
...props,
|
|
30
|
+
children: /* @__PURE__ */ jsx(Component, {
|
|
31
|
+
...isSlotInUse ? { "aria-hidden": true } : {},
|
|
32
|
+
children
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Avatar };
|
|
39
|
+
//# sourceMappingURL=avatar-6Q2xwviO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-6Q2xwviO.js","names":[],"sources":["../src/components/avatar/avatar.tsx"],"sourcesContent":["import { Fragment, type HTMLAttributes, type Ref } from 'react';\nimport clsx from 'clsx/lite';\nimport { Slot } from '@radix-ui/react-slot';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type AvatarProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLSpanElement>,\n {\n /**\n * Name of the person the avatar represents.\n */\n 'aria-label': string;\n /**\n * Size of the avatar.\n * @default 'medium'\n */\n size?: 'small' | 'medium';\n /**\n * Color scheme of the avatar.\n * @default 'primary'\n */\n color?: 'primary' | 'info' | 'success' | 'warning' | 'alert';\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\n/**\n * An Avatar represents a person.\n *\n * @example\n * <Avatar aria-label=\"Ola Nordmann\">ON</Avatar>\n *\n * @example\n * <Avatar aria-label=\"Ola Nordmann\">\n * <img src='…' alt='Ola Nordmann' />\n * </Avatar>\n */\nexport const Avatar = ({\n 'aria-label': ariaLabel,\n className,\n ref,\n dark,\n size,\n color,\n children,\n ...props\n}: AvatarProps) => {\n const isSlotInUse = children && typeof children !== 'string';\n const Component = isSlotInUse ? Slot : Fragment;\n return (\n <span\n className={clsx('bi-avatar', className)}\n aria-label={ariaLabel}\n role='img'\n data-size={size}\n data-color={color}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n <Component {...(isSlotInUse ? { 'aria-hidden': true } : {})}>{children}</Component>\n </span>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAsCA,MAAa,SAAS,CAAC,EACrB,cAAc,WACd,WACA,KACA,MACA,MACA,OACA,SACA,GAAG,OACS,KAAK;CACjB,MAAM,cAAc,mBAAmB,aAAa;CACpD,MAAM,YAAY,cAAc,OAAO;AACvC,wBACE,IAAC;EACC,WAAW,KAAK,aAAa,UAAU;EACvC,cAAY;EACZ,MAAK;EACL,aAAW;EACX,cAAY;EACZ,aAAW;EACN;EACL,GAAI;4BAEJ,IAAC;GAAU,GAAK,cAAc,EAAE,eAAe,KAAM,IAAG,CAAE;GAAI;IAAqB;GAC9E;AAEV"}
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
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/badge/badge.tsx
|
|
6
|
+
const Badge = ({ className, children, dark, size = "medium", color = "neutral", singleLetter = false, asChild, ref,...props }) => {
|
|
7
|
+
const Component = asChild ? Slot : "span";
|
|
8
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
9
|
+
className: clsx("bi-badge", className),
|
|
10
|
+
"data-size": size,
|
|
11
|
+
"data-color": color,
|
|
12
|
+
"data-single-letter": singleLetter,
|
|
13
|
+
"data-dark": dark,
|
|
14
|
+
ref,
|
|
15
|
+
...props,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Badge };
|
|
22
|
+
//# sourceMappingURL=badge-D9OVAKG8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge-D9OVAKG8.js","names":[],"sources":["../src/components/badge/badge.tsx"],"sourcesContent":["import { HTMLAttributes, Ref } from 'react';\nimport { AsChildProps, DefaultProps } from '../../types';\nimport { MergeRight } from '../../utilities';\nimport { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx';\n\nexport type BadgeProps = MergeRight<\n DefaultProps & AsChildProps & HTMLAttributes<HTMLSpanElement>,\n {\n /**\n * Size of the badge.\n * @default 'medium'\n */\n size?: 'xs' | 'small' | 'medium';\n /**\n * Color of the badge.\n * @default 'neutral'\n */\n color: 'neutral' | 'success' | 'warning' | 'alert' | 'brand' | 'info' | 'negative';\n /**\n * Makes the badge have the same height/width. Use for single-letter badges.\n * @default false\n */\n singleLetter?: boolean;\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\nexport const Badge = ({\n className,\n children,\n dark,\n size = 'medium',\n color = 'neutral',\n singleLetter = false,\n asChild,\n ref,\n ...props\n}: BadgeProps) => {\n const Component = asChild ? Slot : 'span';\n\n return (\n <Component\n className={clsx('bi-badge', className)}\n data-size={size}\n data-color={color}\n data-single-letter={singleLetter}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;;AA4BA,MAAa,QAAQ,CAAC,EACpB,WACA,UACA,MACA,OAAO,UACP,QAAQ,WACR,eAAe,OACf,SACA,IACA,GAAG,OACQ,KAAK;CAChB,MAAM,YAAY,UAAU,OAAO;AAEnC,wBACE,IAAC;EACC,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,cAAY;EACZ,sBAAoB;EACpB,aAAW;EACN;EACL,GAAI;EAEH;GACS;AAEf"}
|
|
File without changes
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Spinner } from "./spinner-Ch5bEQBR.js";
|
|
2
|
+
import clsx from "clsx/lite";
|
|
3
|
+
import { Slot, Slottable } from "@radix-ui/react-slot";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/button/button.tsx
|
|
7
|
+
const Button = ({ asChild, variant = "filled", size = "medium", stretch, dark, submitting, icon, children, className, startIcon, endIcon, active, ref,...props }) => {
|
|
8
|
+
const Component = asChild ? Slot : "button";
|
|
9
|
+
return /* @__PURE__ */ jsxs(Component, {
|
|
10
|
+
"aria-busy": Boolean(submitting) || void 0,
|
|
11
|
+
"aria-disabled": Boolean(submitting) || void 0,
|
|
12
|
+
className: clsx("bi-button", className),
|
|
13
|
+
"data-variant": variant,
|
|
14
|
+
"data-size": size,
|
|
15
|
+
"data-stretch": stretch || void 0,
|
|
16
|
+
"data-dark": dark || void 0,
|
|
17
|
+
"data-icon": icon || void 0,
|
|
18
|
+
"data-active": active || void 0,
|
|
19
|
+
ref,
|
|
20
|
+
type: asChild ? void 0 : "button",
|
|
21
|
+
...props,
|
|
22
|
+
children: [
|
|
23
|
+
!icon && (submitting ? /* @__PURE__ */ jsx(Spinner, {
|
|
24
|
+
"aria-hidden": "true",
|
|
25
|
+
className: "bi-button--start-icon"
|
|
26
|
+
}) : startIcon && /* @__PURE__ */ jsx("span", {
|
|
27
|
+
className: "bi-button--start-icon",
|
|
28
|
+
children: startIcon
|
|
29
|
+
})),
|
|
30
|
+
/* @__PURE__ */ jsx(Slottable, { children: icon && submitting ? /* @__PURE__ */ jsx(Spinner, { "aria-hidden": "true" }) : children }),
|
|
31
|
+
!icon && endIcon && /* @__PURE__ */ jsx("span", {
|
|
32
|
+
className: "bi-button--end-icon",
|
|
33
|
+
children: endIcon
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export { Button };
|
|
41
|
+
//# sourceMappingURL=button-fhd-JARc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-fhd-JARc.js","names":[],"sources":["../src/components/button/button.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { ButtonHTMLAttributes, ReactNode, Ref } from 'react';\nimport { Slot, Slottable } from '@radix-ui/react-slot';\nimport { Spinner } from '../spinner';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type ButtonProps = MergeRight<\n DefaultProps & ButtonHTMLAttributes<HTMLButtonElement>,\n {\n /**\n * The button size.\n * @default 'medium'\n */\n size?: 'small' | 'medium' | 'large';\n /**\n * The button variant.\n * @default 'filled'\n */\n variant?: 'filled' | 'outlined' | 'text' | 'flat';\n /**\n * Stretch the button to the full width.\n * @default false\n */\n stretch?: boolean;\n /**\n * Display a loading animation with the Spinner-component.\n * Replaces the `startIcon` if used\n * @default false\n */\n submitting?: boolean;\n /**\n * Display as icon-button, only use when showing an icon as the label.\n * Not compatible with the icon-slots or `stretch`.\n * Always provide a descriptive aria-label for accessibility when set to true.\n * @default false\n */\n icon?: boolean;\n /** Set an icon before the button label, no effect if `icon=true` */\n startIcon?: ReactNode;\n /** Set an icon after the button label, no effect if `icon=true` */\n endIcon?: ReactNode;\n /** Make the button active by showing an active state. */\n active?: boolean;\n ref?: Ref<HTMLButtonElement>;\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 /**\n * Specify the type of button. Unset when `asChild` is true\n * @default 'button'\n */\n type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];\n }\n>;\n\nexport const Button = ({\n asChild,\n variant = 'filled',\n size = 'medium',\n stretch,\n dark,\n submitting,\n icon,\n children,\n className,\n startIcon,\n endIcon,\n active,\n ref,\n ...props\n}: ButtonProps) => {\n const Component = asChild ? Slot : 'button';\n\n return (\n <Component\n aria-busy={Boolean(submitting) || undefined}\n aria-disabled={Boolean(submitting) || undefined}\n className={clsx('bi-button', className)}\n data-variant={variant}\n data-size={size}\n data-stretch={stretch || undefined}\n data-dark={dark || undefined}\n data-icon={icon || undefined}\n data-active={active || undefined}\n ref={ref}\n /* don't set type when we use `asChild` */\n type={asChild ? undefined : 'button'}\n /* if consumers set type, our default does not set anything, as `rest` contains this */\n {...props}\n >\n {!icon &&\n (submitting ? (\n <Spinner aria-hidden='true' className='bi-button--start-icon' />\n ) : (\n startIcon && <span className='bi-button--start-icon'>{startIcon}</span>\n ))}\n <Slottable>{icon && submitting ? <Spinner aria-hidden='true' /> : children}</Slottable>\n {!icon && endIcon && <span className='bi-button--end-icon'>{endIcon}</span>}\n </Component>\n );\n};\n"],"mappings":";;;;;;AA0DA,MAAa,SAAS,CAAC,EACrB,SACA,UAAU,UACV,OAAO,UACP,SACA,MACA,YACA,MACA,UACA,WACA,WACA,SACA,QACA,IACA,GAAG,OACS,KAAK;CACjB,MAAM,YAAY,UAAU,OAAO;AAEnC,wBACE,KAAC;EACC,aAAW,QAAQ,WAAW;EAC9B,iBAAe,QAAQ,WAAW;EAClC,WAAW,KAAK,aAAa,UAAU;EACvC,gBAAc;EACd,aAAW;EACX,gBAAc;EACd,aAAW;EACX,aAAW;EACX,eAAa;EACR;EAEL,MAAM,mBAAsB;EAE5B,GAAI;;IAEF,SACC,6BACC,IAAC;IAAQ,eAAY;IAAO,WAAU;KAA0B,GAEhE,6BAAa,IAAC;IAAK,WAAU;cAAyB;KAAiB;mBAE3E,IAAC,uBAAW,QAAQ,6BAAa,IAAC,WAAQ,eAAY,SAAS,GAAG,WAAqB;IACrF,QAAQ,2BAAW,IAAC;IAAK,WAAU;cAAuB;KAAe;;GACjE;AAEf"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot, Slottable } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/card/card.tsx
|
|
6
|
+
const Card = ({ orientation = "horizontal", color = "neutral", error = false, dark = false, className, ref, children, asChild,...props }) => {
|
|
7
|
+
const Component = asChild ? Slot : "div";
|
|
8
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
9
|
+
className: clsx("bi-card", className),
|
|
10
|
+
"data-orientation": orientation,
|
|
11
|
+
"data-color": color,
|
|
12
|
+
"data-error": error,
|
|
13
|
+
"data-dark": dark,
|
|
14
|
+
ref,
|
|
15
|
+
...props,
|
|
16
|
+
children: /* @__PURE__ */ jsx(Slottable, { children })
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { Card };
|
|
22
|
+
//# sourceMappingURL=card-QAnFhTk6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-QAnFhTk6.js","names":[],"sources":["../src/components/card/card.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx/lite';\nimport { Slot, Slottable } from '@radix-ui/react-slot';\n\nexport type CardProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * The orientation of the card\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical';\n /**\n * The color of the card\n * @default 'neutral'\n */\n color?: 'neutral' | 'info' | 'warning';\n error?: boolean;\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<HTMLDivElement>;\n }\n>;\n\nexport const Card = ({\n orientation = 'horizontal',\n color = 'neutral',\n error = false,\n dark = false,\n className,\n ref,\n children,\n asChild,\n ...props\n}: CardProps) => {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component\n className={clsx('bi-card', className)}\n data-orientation={orientation}\n data-color={color}\n data-error={error}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n <Slottable>{children}</Slottable>\n </Component>\n );\n};\n"],"mappings":";;;;;AA6BA,MAAa,OAAO,CAAC,EACnB,cAAc,cACd,QAAQ,WACR,QAAQ,OACR,OAAO,OACP,WACA,KACA,UACA,QACA,GAAG,OACO,KAAK;CACf,MAAM,YAAY,UAAU,OAAO;AAEnC,wBACE,IAAC;EACC,WAAW,KAAK,WAAW,UAAU;EACrC,oBAAkB;EAClB,cAAY;EACZ,cAAY;EACZ,aAAW;EACN;EACL,GAAI;4BAEJ,IAAC,aAAW,WAAqB;GACvB;AAEf"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Button } from "./button-fhd-JARc.js";
|
|
2
|
+
import clsx from "clsx/lite";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/components/card/card-action.tsx
|
|
7
|
+
const CardAction = ({ asChild, ref, children, dark, className,...props }) => {
|
|
8
|
+
const Component = asChild ? Slot : Button;
|
|
9
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
10
|
+
variant: "text",
|
|
11
|
+
size: "large",
|
|
12
|
+
icon: true,
|
|
13
|
+
dark,
|
|
14
|
+
className: clsx("bi-card--action", className),
|
|
15
|
+
ref,
|
|
16
|
+
...props,
|
|
17
|
+
children
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { CardAction };
|
|
23
|
+
//# sourceMappingURL=card-action-D8M3_IVq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-action-D8M3_IVq.js","names":[],"sources":["../src/components/card/card-action.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { Button, type ButtonProps } from '../button';\nimport { Slot } from '@radix-ui/react-slot';\n\nexport type CardActionProps = ButtonProps;\n\nexport const CardAction = ({ asChild, ref, children, dark, className, ...props }: CardActionProps) => {\n const Component = asChild ? Slot : Button;\n return (\n <Component\n variant='text'\n size='large'\n icon\n dark={dark}\n className={clsx('bi-card--action', className)}\n ref={ref}\n {...props}\n >\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;;;AAMA,MAAa,aAAa,CAAC,EAAE,SAAS,KAAK,UAAU,MAAM,UAAW,GAAG,OAAwB,KAAK;CACpG,MAAM,YAAY,UAAU,OAAO;AACnC,wBACE,IAAC;EACC,SAAQ;EACR,MAAK;EACL;EACM;EACN,WAAW,KAAK,mBAAmB,UAAU;EACxC;EACL,GAAI;EAEH;GACS;AAEf"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/card/card-actions.tsx
|
|
5
|
+
const CardActions = ({ className, ref, children,...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx("div", {
|
|
7
|
+
className: clsx("bi-card--actions", className),
|
|
8
|
+
ref,
|
|
9
|
+
...props,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { CardActions };
|
|
16
|
+
//# sourceMappingURL=card-actions-CIsnmxsm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-actions-CIsnmxsm.js","names":[],"sources":["../src/components/card/card-actions.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx/lite';\n\nexport type CardActionsProps = MergeRight<\n HTMLAttributes<HTMLDivElement>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const CardActions = ({ className, ref, children, ...props }: CardActionsProps) => {\n return (\n <div className={clsx('bi-card--actions', className)} ref={ref} {...props}>\n {children}\n </div>\n );\n};\n"],"mappings":";;;;AAWA,MAAa,cAAc,CAAC,EAAE,WAAW,KAAK,SAAU,GAAG,OAAyB,KAAK;AACvF,wBACE,IAAC;EAAI,WAAW,KAAK,oBAAoB,UAAU;EAAO;EAAK,GAAI;EAChE;GACG;AAET"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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/card/card-content.tsx
|
|
6
|
+
const CardContent = ({ className, ref, children, asChild,...props }) => {
|
|
7
|
+
const Component = asChild ? Slot : "div";
|
|
8
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
9
|
+
className: clsx("bi-card--content", className),
|
|
10
|
+
ref,
|
|
11
|
+
...props,
|
|
12
|
+
children
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { CardContent };
|
|
18
|
+
//# sourceMappingURL=card-content-DkEHp8mv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-content-DkEHp8mv.js","names":[],"sources":["../src/components/card/card-content.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx/lite';\nimport { Slot } from '@radix-ui/react-slot';\n\nexport type CardContentProps = MergeRight<\n HTMLAttributes<HTMLDivElement>,\n {\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 disabled?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const CardContent = ({ className, ref, children, asChild, ...props }: CardContentProps) => {\n const Component = asChild ? Slot : 'div';\n return (\n <Component className={clsx('bi-card--content', className)} ref={ref} {...props}>\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;;AAkBA,MAAa,cAAc,CAAC,EAAE,WAAW,KAAK,UAAU,QAAS,GAAG,OAAyB,KAAK;CAChG,MAAM,YAAY,UAAU,OAAO;AACnC,wBACE,IAAC;EAAU,WAAW,KAAK,oBAAoB,UAAU;EAAO;EAAK,GAAI;EACtE;GACS;AAEf"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/card/card-date.tsx
|
|
5
|
+
const CardDate = ({ className, ref, day, month,...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
7
|
+
className: clsx("bi-card--date", className),
|
|
8
|
+
ref,
|
|
9
|
+
...props,
|
|
10
|
+
children: [day, /* @__PURE__ */ jsx("span", { children: month })]
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { CardDate };
|
|
16
|
+
//# sourceMappingURL=card-date-Bd87BGDE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-date-Bd87BGDE.js","names":[],"sources":["../src/components/card/card-date.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx/lite';\n\nexport type CardDateProps = MergeRight<\n Omit<HTMLAttributes<HTMLParagraphElement>, 'children'>,\n {\n /**\n * The day of the month.\n */\n day: number;\n /**\n * The month, should be a short string like \"Jan\", \"Feb\", etc.\n */\n month: string;\n ref?: Ref<HTMLParagraphElement>;\n }\n>;\n\nexport const CardDate = ({ className, ref, day, month, ...props }: CardDateProps) => {\n return (\n <p className={clsx('bi-card--date', className)} ref={ref} {...props}>\n {day}\n <span>{month}</span>\n </p>\n );\n};\n"],"mappings":";;;;AAmBA,MAAa,WAAW,CAAC,EAAE,WAAW,KAAK,KAAK,MAAO,GAAG,OAAsB,KAAK;AACnF,wBACE,KAAC;EAAE,WAAW,KAAK,iBAAiB,UAAU;EAAO;EAAK,GAAI;aAC3D,qBACD,IAAC,oBAAM,QAAa;GAClB;AAEP"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
|
|
4
|
+
//#region src/components/card/card-header.tsx
|
|
5
|
+
const CardHeader = ({ className, ref, header, label, subLabel, description,...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
7
|
+
className: clsx("bi-card--header", className),
|
|
8
|
+
ref,
|
|
9
|
+
...props,
|
|
10
|
+
children: [
|
|
11
|
+
(label || subLabel) && /* @__PURE__ */ jsxs("p", {
|
|
12
|
+
className: "bi-card--header-label",
|
|
13
|
+
children: [
|
|
14
|
+
label && /* @__PURE__ */ jsx("span", {
|
|
15
|
+
className: "bi-card--header-bold",
|
|
16
|
+
children: label
|
|
17
|
+
}),
|
|
18
|
+
label && subLabel && /* @__PURE__ */ jsx("span", {
|
|
19
|
+
"aria-hidden": "true",
|
|
20
|
+
className: "bi-card--header-dot"
|
|
21
|
+
}),
|
|
22
|
+
subLabel && /* @__PURE__ */ jsx("span", { children: subLabel })
|
|
23
|
+
]
|
|
24
|
+
}),
|
|
25
|
+
header && /* @__PURE__ */ jsx("h3", {
|
|
26
|
+
className: "bi-card--header-title",
|
|
27
|
+
children: header
|
|
28
|
+
}),
|
|
29
|
+
description && /* @__PURE__ */ jsx("p", {
|
|
30
|
+
className: "bi-card--header-label",
|
|
31
|
+
children: description
|
|
32
|
+
})
|
|
33
|
+
]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
//#endregion
|
|
38
|
+
export { CardHeader };
|
|
39
|
+
//# sourceMappingURL=card-header-D-RMd4xS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-header-D-RMd4xS.js","names":[],"sources":["../src/components/card/card-header.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx';\n\nexport type CardHeaderProps = MergeRight<\n Omit<HTMLAttributes<HTMLDivElement>, 'children'>,\n {\n /**\n * The header of the card\n */\n header?: ReactNode;\n /**\n * The label of the card, displayed above the header\n */\n label?: ReactNode;\n /**\n * The sublabel of the card, displayed next to the label\n */\n subLabel?: ReactNode;\n /**\n * The description of the card, displayed below the header\n */\n description?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const CardHeader = ({ className, ref, header, label, subLabel, description, ...props }: CardHeaderProps) => {\n return (\n <div className={clsx('bi-card--header', className)} ref={ref} {...props}>\n {(label || subLabel) && (\n <p className='bi-card--header-label'>\n {label && <span className='bi-card--header-bold'>{label}</span>}\n {label && subLabel && <span aria-hidden='true' className='bi-card--header-dot'></span>}\n {subLabel && <span>{subLabel}</span>}\n </p>\n )}\n {header && <h3 className='bi-card--header-title'>{header}</h3>}\n {description && <p className='bi-card--header-label'>{description}</p>}\n </div>\n );\n};\n"],"mappings":";;;;AA2BA,MAAa,aAAa,CAAC,EAAE,WAAW,KAAK,QAAQ,OAAO,UAAU,YAAa,GAAG,OAAwB,KAAK;AACjH,wBACE,KAAC;EAAI,WAAW,KAAK,mBAAmB,UAAU;EAAO;EAAK,GAAI;;IAC9D,SAAS,6BACT,KAAC;IAAE,WAAU;;KACV,yBAAS,IAAC;MAAK,WAAU;gBAAwB;OAAa;KAC9D,SAAS,4BAAY,IAAC;MAAK,eAAY;MAAO,WAAU;OAA6B;KACrF,4BAAY,IAAC,oBAAM,WAAgB;;KAClC;GAEL,0BAAU,IAAC;IAAG,WAAU;cAAyB;KAAY;GAC7D,+BAAe,IAAC;IAAE,WAAU;cAAyB;KAAgB;;GAClE;AAET"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/card/card-media.tsx
|
|
5
|
+
const CardMedia = ({ className, ref, children, overlay,...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
7
|
+
className: clsx("bi-card--media", className),
|
|
8
|
+
ref,
|
|
9
|
+
...props,
|
|
10
|
+
children: [children, /* @__PURE__ */ jsx("div", {
|
|
11
|
+
className: "bi-card--media-overlay",
|
|
12
|
+
children: overlay
|
|
13
|
+
})]
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { CardMedia };
|
|
19
|
+
//# sourceMappingURL=card-media-DhU2_Ueq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-media-DhU2_Ueq.js","names":[],"sources":["../src/components/card/card-media.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx/lite';\n\nexport type CardMediaProps = MergeRight<\n HTMLAttributes<HTMLDivElement>,\n {\n /**\n * The media to display. Must be audio, figure, iframe, img or video-tag to get correct styles.\n */\n children?: ReactNode;\n /**\n * Optional content to overlay on top of the media.\n */\n overlay?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const CardMedia = ({ className, ref, children, overlay, ...props }: CardMediaProps) => {\n return (\n <div className={clsx('bi-card--media', className)} ref={ref} {...props}>\n {children}\n <div className='bi-card--media-overlay'>{overlay}</div>\n </div>\n );\n};\n"],"mappings":";;;;AAmBA,MAAa,YAAY,CAAC,EAAE,WAAW,KAAK,UAAU,QAAS,GAAG,OAAuB,KAAK;AAC5F,wBACE,KAAC;EAAI,WAAW,KAAK,kBAAkB,UAAU;EAAO;EAAK,GAAI;aAC9D,0BACD,IAAC;GAAI,WAAU;aAA0B;IAAc;GACnD;AAET"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Field } from "./field-U2SN9jkp.js";
|
|
2
|
+
import { FieldDescription } from "./field-description-Dhm1VA08.js";
|
|
3
|
+
import { Input } from "./input-Dr7BnTyd.js";
|
|
4
|
+
import { Label } from "./label-DUzvAx-T.js";
|
|
5
|
+
import { useMergeRefs } from "./useMergeRefs-Cz-t7gpp.js";
|
|
6
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { useEffect, useId, useRef } from "react";
|
|
8
|
+
|
|
9
|
+
//#region src/components/checkbox/checkbox.tsx
|
|
10
|
+
const Checkbox = ({ dark, label, description, error, style, className, indeterminate, ref, id, "aria-describedby": ariaDescribedByProp,...props }) => {
|
|
11
|
+
const checkRef = useRef(null);
|
|
12
|
+
const refs = useMergeRefs([checkRef, ref]);
|
|
13
|
+
const descriptionId = useId();
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
let input;
|
|
16
|
+
if (ref && typeof ref !== "function") input = ref.current;
|
|
17
|
+
else input = checkRef.current;
|
|
18
|
+
if (input) input.indeterminate = indeterminate || false;
|
|
19
|
+
}, [
|
|
20
|
+
indeterminate,
|
|
21
|
+
checkRef,
|
|
22
|
+
ref
|
|
23
|
+
]);
|
|
24
|
+
const ariaDescribedBy = [description ? descriptionId : "", ariaDescribedByProp].join(" ").trim() || void 0;
|
|
25
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
26
|
+
className,
|
|
27
|
+
"data-dark": dark,
|
|
28
|
+
style,
|
|
29
|
+
asChild: true,
|
|
30
|
+
children: /* @__PURE__ */ jsxs("label", { children: [
|
|
31
|
+
/* @__PURE__ */ jsx(Input, {
|
|
32
|
+
type: "checkbox",
|
|
33
|
+
id,
|
|
34
|
+
ref: refs,
|
|
35
|
+
"aria-invalid": error || void 0,
|
|
36
|
+
"aria-describedby": ariaDescribedBy,
|
|
37
|
+
...props
|
|
38
|
+
}),
|
|
39
|
+
label && /* @__PURE__ */ jsx(Label, {
|
|
40
|
+
weight: "medium",
|
|
41
|
+
htmlFor: id,
|
|
42
|
+
asChild: true,
|
|
43
|
+
children: /* @__PURE__ */ jsx("span", { children: label })
|
|
44
|
+
}),
|
|
45
|
+
description && /* @__PURE__ */ jsx(FieldDescription, {
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
id: descriptionId,
|
|
48
|
+
children: description
|
|
49
|
+
})
|
|
50
|
+
] })
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
export { Checkbox };
|
|
56
|
+
//# sourceMappingURL=checkbox-Bx9n-4ar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-Bx9n-4ar.js","names":["input: HTMLInputElement | null"],"sources":["../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import { useEffect, useId, useRef, type ReactNode, type Ref } from 'react';\n\nimport type { LabelRequiredProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Field, FieldDescription } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { Label } from '../label';\nimport { useMergeRefs } from '../../utilities/hooks';\n\nexport type CheckboxProps = MergeRight<\n LabelRequiredProps & Omit<InputProps, 'type' | 'role' | 'size'>,\n {\n /** Label */\n label?: ReactNode;\n /** Description */\n description?: ReactNode;\n /** Add error indication to the checkbox. */\n error?: boolean;\n /** Specify whether the Checkbox is indeterminate */\n indeterminate?: boolean;\n ref?: Ref<HTMLInputElement>;\n }\n>;\n\nexport const Checkbox = ({\n dark,\n label,\n description,\n error,\n style,\n className,\n indeterminate,\n ref,\n id,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n}: CheckboxProps) => {\n const checkRef = useRef<HTMLInputElement>(null);\n const refs = useMergeRefs([checkRef, ref]);\n const descriptionId = useId();\n\n useEffect(() => {\n let input: HTMLInputElement | null;\n if (ref && typeof ref !== 'function') {\n input = ref.current;\n } else {\n input = checkRef.current;\n }\n\n if (input) {\n input.indeterminate = indeterminate || false;\n }\n }, [indeterminate, checkRef, ref]);\n\n const ariaDescribedBy = [description ? descriptionId : '', ariaDescribedByProp].join(' ').trim() || undefined;\n\n return (\n <Field className={className} data-dark={dark} style={style} asChild>\n <label>\n <Input\n type='checkbox'\n id={id}\n ref={refs}\n aria-invalid={error || undefined}\n aria-describedby={ariaDescribedBy}\n {...props}\n />\n {label && (\n <Label weight='medium' htmlFor={id} asChild>\n <span>{label}</span>\n </Label>\n )}\n {description && (\n // Aria-hidden is used to prevent screen readers from reading the description twice:\n // once as part of the label and once from being connected through aria-describedby.\n <FieldDescription aria-hidden='true' id={descriptionId}>\n {description}\n </FieldDescription>\n )}\n </label>\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;AAwBA,MAAa,WAAW,CAAC,EACvB,MACA,OACA,aACA,OACA,OACA,WACA,eACA,KACA,IACA,oBAAoB,oBACpB,GAAG,OACW,KAAK;CACnB,MAAM,WAAW,OAAyB,KAAK;CAC/C,MAAM,OAAO,aAAa,CAAC,UAAU,GAAI,EAAC;CAC1C,MAAM,gBAAgB,OAAO;AAE7B,WAAU,MAAM;EACd,IAAIA;AACJ,MAAI,cAAc,QAAQ,WACxB,SAAQ,IAAI;MAEZ,SAAQ,SAAS;AAGnB,MAAI,MACF,OAAM,gBAAgB,iBAAiB;CAE1C,GAAE;EAAC;EAAe;EAAU;CAAI,EAAC;CAElC,MAAM,kBAAkB,CAAC,cAAc,gBAAgB,IAAI,mBAAoB,EAAC,KAAK,IAAI,CAAC,MAAM;AAEhG,wBACE,IAAC;EAAiB;EAAW,aAAW;EAAa;EAAO;4BAC1D,KAAC;mBACC,IAAC;IACC,MAAK;IACD;IACJ,KAAK;IACL,gBAAc;IACd,oBAAkB;IAClB,GAAI;KACJ;GACD,yBACC,IAAC;IAAM,QAAO;IAAS,SAAS;IAAI;8BAClC,IAAC,oBAAM,QAAa;KACd;GAET,+BAGC,IAAC;IAAiB,eAAY;IAAO,IAAI;cACtC;KACgB;MAEf;GACF;AAEX"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Slot, Slottable } from "@radix-ui/react-slot";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
|
|
5
|
+
//#region src/components/chip/chip.tsx
|
|
6
|
+
const Chip = ({ children, color = "primary", size = "medium", startIcon, dark, asChild, className, ref,...props }) => {
|
|
7
|
+
const Component = asChild ? Slot : "div";
|
|
8
|
+
return /* @__PURE__ */ jsxs(Component, {
|
|
9
|
+
className: clsx("bi-chip", className),
|
|
10
|
+
"data-color": color,
|
|
11
|
+
"data-size": size,
|
|
12
|
+
"data-dark": dark || void 0,
|
|
13
|
+
ref,
|
|
14
|
+
...props,
|
|
15
|
+
children: [startIcon && /* @__PURE__ */ jsx("span", {
|
|
16
|
+
className: "bi-chip--start-icon",
|
|
17
|
+
children: startIcon
|
|
18
|
+
}), /* @__PURE__ */ jsx(Slottable, { children })]
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Chip };
|
|
24
|
+
//# sourceMappingURL=chip-DlPl-C_F.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip-DlPl-C_F.js","names":[],"sources":["../src/components/chip/chip.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport { Slot, Slottable } from '@radix-ui/react-slot';\nimport clsx from 'clsx';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type ChipProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * The chip size\n * @default 'medium'\n */\n size?: 'small' | 'medium' | 'large';\n /**\n * The chip color\n * @default 'primary'\n */\n color?: 'neutral' | 'primary-light' | 'info' | 'white' | 'primary' | 'alert' | 'warning' | 'success';\n /** Set an icon before the chip label */\n startIcon?: ReactNode;\n ref?: Ref<HTMLDivElement>;\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 }\n>;\n\nexport const Chip = ({\n children,\n color = 'primary',\n size = 'medium',\n startIcon,\n dark,\n asChild,\n className,\n ref,\n ...props\n}: ChipProps) => {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component\n className={clsx('bi-chip', className)}\n data-color={color}\n data-size={size}\n data-dark={dark || undefined}\n ref={ref}\n {...props}\n >\n {startIcon && <span className='bi-chip--start-icon'>{startIcon}</span>}\n <Slottable>{children}</Slottable>\n </Component>\n );\n};\n"],"mappings":";;;;;AA8BA,MAAa,OAAO,CAAC,EACnB,UACA,QAAQ,WACR,OAAO,UACP,WACA,MACA,SACA,WACA,IACA,GAAG,OACO,KAAK;CACf,MAAM,YAAY,UAAU,OAAO;AAEnC,wBACE,KAAC;EACC,WAAW,KAAK,WAAW,UAAU;EACrC,cAAY;EACZ,aAAW;EACX,aAAW;EACN;EACL,GAAI;aAEH,6BAAa,IAAC;GAAK,WAAU;aAAuB;IAAiB,kBACtE,IAAC,aAAW,WAAqB;GACvB;AAEf"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../useIsomorphicLayoutEffect-BJo3l8ol.js";
|
|
2
|
+
import "../../useMergeRefs-CGbb4u_J.js";
|
|
3
|
+
import "../../types-CaBoIvtz.js";
|
|
4
|
+
import { AlertFooter, AlertFooterProps } from "../../alert-footer-DgeFNevW.js";
|
|
5
|
+
import "../../dialog-trigger-context-BXtYdvEK.js";
|
|
6
|
+
import "../../drawer-trigger-context-CZyGAmYc.js";
|
|
7
|
+
import "../../popover-trigger-context-Efb9U0bz.js";
|
|
8
|
+
import "../../dropdown-item-h8WklvJi.js";
|
|
9
|
+
import "../../dropdown-list-B8pfs0Vc.js";
|
|
10
|
+
import "../../dropdown-trigger-context-5mGr6ped.js";
|
|
11
|
+
import "../../footer-links-BbIh-yGy.js";
|
|
12
|
+
import "../../pagination-item-D2-tdnvJ.js";
|
|
13
|
+
import "../../types-DUx4Pkhy.js";
|
|
14
|
+
export { AlertFooter, AlertFooterProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../useIsomorphicLayoutEffect-BJo3l8ol.js";
|
|
2
|
+
import "../../useMergeRefs-CGbb4u_J.js";
|
|
3
|
+
import "../../types-CaBoIvtz.js";
|
|
4
|
+
import { Alert, AlertProps } from "../../alert-footer-DgeFNevW.js";
|
|
5
|
+
import "../../dialog-trigger-context-BXtYdvEK.js";
|
|
6
|
+
import "../../drawer-trigger-context-CZyGAmYc.js";
|
|
7
|
+
import "../../popover-trigger-context-Efb9U0bz.js";
|
|
8
|
+
import "../../dropdown-item-h8WklvJi.js";
|
|
9
|
+
import "../../dropdown-list-B8pfs0Vc.js";
|
|
10
|
+
import "../../dropdown-trigger-context-5mGr6ped.js";
|
|
11
|
+
import "../../footer-links-BbIh-yGy.js";
|
|
12
|
+
import "../../pagination-item-D2-tdnvJ.js";
|
|
13
|
+
import "../../types-DUx4Pkhy.js";
|
|
14
|
+
export { Alert, AlertProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../useIsomorphicLayoutEffect-BJo3l8ol.js";
|
|
2
|
+
import "../../useMergeRefs-CGbb4u_J.js";
|
|
3
|
+
import "../../types-CaBoIvtz.js";
|
|
4
|
+
import { Alert, AlertFooter, AlertFooterProps, AlertProps } from "../../alert-footer-DgeFNevW.js";
|
|
5
|
+
import "../../dialog-trigger-context-BXtYdvEK.js";
|
|
6
|
+
import "../../drawer-trigger-context-CZyGAmYc.js";
|
|
7
|
+
import "../../popover-trigger-context-Efb9U0bz.js";
|
|
8
|
+
import "../../dropdown-item-h8WklvJi.js";
|
|
9
|
+
import "../../dropdown-list-B8pfs0Vc.js";
|
|
10
|
+
import "../../dropdown-trigger-context-5mGr6ped.js";
|
|
11
|
+
import "../../footer-links-BbIh-yGy.js";
|
|
12
|
+
import "../../pagination-item-D2-tdnvJ.js";
|
|
13
|
+
import "../../types-DUx4Pkhy.js";
|
|
14
|
+
export { Alert, AlertFooter, AlertFooterProps, AlertProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../useIsomorphicLayoutEffect-BJo3l8ol.js";
|
|
2
|
+
import "../../useMergeRefs-CGbb4u_J.js";
|
|
3
|
+
import "../../types-CaBoIvtz.js";
|
|
4
|
+
import { Avatar, AvatarProps } from "../../alert-footer-DgeFNevW.js";
|
|
5
|
+
import "../../dialog-trigger-context-BXtYdvEK.js";
|
|
6
|
+
import "../../drawer-trigger-context-CZyGAmYc.js";
|
|
7
|
+
import "../../popover-trigger-context-Efb9U0bz.js";
|
|
8
|
+
import "../../dropdown-item-h8WklvJi.js";
|
|
9
|
+
import "../../dropdown-list-B8pfs0Vc.js";
|
|
10
|
+
import "../../dropdown-trigger-context-5mGr6ped.js";
|
|
11
|
+
import "../../footer-links-BbIh-yGy.js";
|
|
12
|
+
import "../../pagination-item-D2-tdnvJ.js";
|
|
13
|
+
import "../../types-DUx4Pkhy.js";
|
|
14
|
+
export { Avatar, AvatarProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../useIsomorphicLayoutEffect-BJo3l8ol.js";
|
|
2
|
+
import "../../useMergeRefs-CGbb4u_J.js";
|
|
3
|
+
import "../../types-CaBoIvtz.js";
|
|
4
|
+
import { Avatar, AvatarProps } from "../../alert-footer-DgeFNevW.js";
|
|
5
|
+
import "../../dialog-trigger-context-BXtYdvEK.js";
|
|
6
|
+
import "../../drawer-trigger-context-CZyGAmYc.js";
|
|
7
|
+
import "../../popover-trigger-context-Efb9U0bz.js";
|
|
8
|
+
import "../../dropdown-item-h8WklvJi.js";
|
|
9
|
+
import "../../dropdown-list-B8pfs0Vc.js";
|
|
10
|
+
import "../../dropdown-trigger-context-5mGr6ped.js";
|
|
11
|
+
import "../../footer-links-BbIh-yGy.js";
|
|
12
|
+
import "../../pagination-item-D2-tdnvJ.js";
|
|
13
|
+
import "../../types-DUx4Pkhy.js";
|
|
14
|
+
export { Avatar, AvatarProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../useIsomorphicLayoutEffect-BJo3l8ol.js";
|
|
2
|
+
import "../../useMergeRefs-CGbb4u_J.js";
|
|
3
|
+
import "../../types-CaBoIvtz.js";
|
|
4
|
+
import { Badge, BadgeProps } from "../../alert-footer-DgeFNevW.js";
|
|
5
|
+
import "../../dialog-trigger-context-BXtYdvEK.js";
|
|
6
|
+
import "../../drawer-trigger-context-CZyGAmYc.js";
|
|
7
|
+
import "../../popover-trigger-context-Efb9U0bz.js";
|
|
8
|
+
import "../../dropdown-item-h8WklvJi.js";
|
|
9
|
+
import "../../dropdown-list-B8pfs0Vc.js";
|
|
10
|
+
import "../../dropdown-trigger-context-5mGr6ped.js";
|
|
11
|
+
import "../../footer-links-BbIh-yGy.js";
|
|
12
|
+
import "../../pagination-item-D2-tdnvJ.js";
|
|
13
|
+
import "../../types-DUx4Pkhy.js";
|
|
14
|
+
export { Badge, BadgeProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import "../../useIsomorphicLayoutEffect-BJo3l8ol.js";
|
|
2
|
+
import "../../useMergeRefs-CGbb4u_J.js";
|
|
3
|
+
import "../../types-CaBoIvtz.js";
|
|
4
|
+
import { Badge, BadgeProps } from "../../alert-footer-DgeFNevW.js";
|
|
5
|
+
import "../../dialog-trigger-context-BXtYdvEK.js";
|
|
6
|
+
import "../../drawer-trigger-context-CZyGAmYc.js";
|
|
7
|
+
import "../../popover-trigger-context-Efb9U0bz.js";
|
|
8
|
+
import "../../dropdown-item-h8WklvJi.js";
|
|
9
|
+
import "../../dropdown-list-B8pfs0Vc.js";
|
|
10
|
+
import "../../dropdown-trigger-context-5mGr6ped.js";
|
|
11
|
+
import "../../footer-links-BbIh-yGy.js";
|
|
12
|
+
import "../../pagination-item-D2-tdnvJ.js";
|
|
13
|
+
import "../../types-DUx4Pkhy.js";
|
|
14
|
+
export { Badge, BadgeProps };
|