@bi-digital/react 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{alert-footer-B1fWpAQt.d.mts → alert-footer-CeAZVfGI.d.mts} +77 -71
- package/dist/components/alert/alert-footer.d.mts +9 -12
- package/dist/components/alert/alert.d.mts +9 -12
- package/dist/components/alert/index.d.mts +9 -12
- package/dist/components/avatar/avatar.d.mts +9 -12
- package/dist/components/avatar/index.d.mts +9 -12
- package/dist/components/badge/badge.d.mts +9 -12
- package/dist/components/badge/index.d.mts +9 -12
- package/dist/components/button/button.d.mts +9 -12
- package/dist/components/button/index.d.mts +9 -12
- package/dist/components/card/card-action.d.mts +9 -12
- package/dist/components/card/card-actions.d.mts +9 -12
- package/dist/components/card/card-content.d.mts +9 -12
- package/dist/components/card/card-date.d.mts +9 -12
- package/dist/components/card/card-header.d.mts +9 -12
- package/dist/components/card/card-media.d.mts +9 -12
- package/dist/components/card/card.d.mts +9 -12
- package/dist/components/card/index.d.mts +9 -12
- package/dist/components/checkbox/checkbox-subsection.d.mts +9 -12
- package/dist/components/checkbox/checkbox.d.mts +9 -12
- package/dist/components/checkbox/index.d.mts +9 -12
- package/dist/components/chip/chip.d.mts +9 -12
- package/dist/components/chip/index.d.mts +9 -12
- package/dist/components/details/details-content.d.mts +9 -12
- package/dist/components/details/details-summary.d.mts +9 -12
- package/dist/components/details/details.d.mts +9 -12
- package/dist/components/details/index.d.mts +9 -12
- package/dist/components/dialog/dialog-close-button.d.mts +9 -12
- package/dist/components/dialog/dialog-content.d.mts +9 -12
- package/dist/components/dialog/dialog-footer.d.mts +9 -12
- package/dist/components/dialog/dialog-header.d.mts +9 -12
- package/dist/components/dialog/dialog-trigger-context.d.mts +1 -1
- package/dist/components/dialog/dialog-trigger.d.mts +9 -12
- package/dist/components/dialog/dialog.d.mts +9 -12
- package/dist/components/dialog/index.d.mts +9 -12
- package/dist/components/drawer/drawer-close-button.d.mts +9 -12
- package/dist/components/drawer/drawer-content.d.mts +9 -12
- package/dist/components/drawer/drawer-footer.d.mts +9 -12
- package/dist/components/drawer/drawer-header.d.mts +9 -12
- package/dist/components/drawer/drawer-trigger-context.d.mts +1 -1
- package/dist/components/drawer/drawer-trigger.d.mts +9 -12
- package/dist/components/drawer/drawer.d.mts +9 -12
- package/dist/components/drawer/index.d.mts +9 -12
- package/dist/components/dropdown/dropdown-button.d.mts +9 -12
- package/dist/components/dropdown/dropdown-button.mjs +1 -1
- package/dist/components/dropdown/dropdown-item.d.mts +1 -1
- package/dist/components/dropdown/dropdown-item.mjs +1 -1
- package/dist/components/dropdown/dropdown-list.d.mts +1 -1
- package/dist/components/dropdown/dropdown-list.mjs +1 -1
- package/dist/components/dropdown/dropdown-trigger-context.d.mts +9 -12
- package/dist/components/dropdown/dropdown-trigger-context.mjs +5 -4
- package/dist/components/dropdown/dropdown-trigger.d.mts +9 -12
- package/dist/components/dropdown/dropdown-trigger.mjs +5 -4
- package/dist/components/dropdown/dropdown.d.mts +9 -12
- package/dist/components/dropdown/dropdown.mjs +5 -4
- package/dist/components/dropdown/index.d.mts +9 -12
- package/dist/components/dropdown/index.mjs +11 -10
- package/dist/components/field/field-affix.d.mts +9 -12
- package/dist/components/field/field-description.d.mts +9 -12
- package/dist/components/field/field.d.mts +9 -12
- package/dist/components/field/index.d.mts +9 -12
- package/dist/components/fieldset/fieldset-description.d.mts +9 -12
- package/dist/components/fieldset/fieldset-description.mjs +1 -1
- package/dist/components/fieldset/fieldset-legend.d.mts +9 -12
- package/dist/components/fieldset/fieldset-legend.mjs +1 -1
- package/dist/components/fieldset/fieldset.d.mts +9 -12
- package/dist/components/fieldset/fieldset.mjs +1 -1
- package/dist/components/fieldset/index.d.mts +9 -12
- package/dist/components/fieldset/index.mjs +4 -4
- package/dist/components/filter-group/filter-group.d.mts +9 -12
- package/dist/components/filter-group/filter-group.mjs +1 -1
- package/dist/components/filter-group/index.d.mts +9 -12
- package/dist/components/filter-group/index.mjs +2 -2
- package/dist/components/footer/footer-links.d.mts +1 -1
- package/dist/components/footer/footer-links.mjs +1 -1
- package/dist/components/footer/footer.d.mts +9 -12
- package/dist/components/footer/footer.mjs +1 -1
- package/dist/components/footer/index.d.mts +9 -12
- package/dist/components/footer/index.mjs +3 -3
- package/dist/components/index.d.mts +9 -12
- package/dist/components/index.mjs +63 -63
- package/dist/components/input/index.d.mts +9 -12
- package/dist/components/input/input.d.mts +9 -12
- package/dist/components/label/index.d.mts +9 -12
- package/dist/components/label/label.d.mts +9 -12
- package/dist/components/link/index.d.mts +9 -12
- package/dist/components/link/index.mjs +2 -2
- package/dist/components/link/link.d.mts +9 -12
- package/dist/components/link/link.mjs +1 -1
- package/dist/components/logo/index.d.mts +9 -12
- package/dist/components/logo/index.mjs +2 -2
- package/dist/components/logo/logo.d.mts +9 -12
- package/dist/components/logo/logo.mjs +1 -1
- package/dist/components/navbar/index.d.mts +9 -12
- package/dist/components/navbar/index.mjs +11 -12
- package/dist/components/navbar/navbar.d.mts +9 -12
- package/dist/components/navbar/navbar.mjs +3 -3
- package/dist/components/navbar/sub-navbar.d.mts +9 -12
- package/dist/components/navbar/sub-navbar.mjs +7 -8
- package/dist/components/pagination/index.d.mts +9 -12
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination-button.d.mts +9 -12
- package/dist/components/pagination/pagination-button.mjs +1 -1
- package/dist/components/pagination/pagination-item.d.mts +1 -1
- package/dist/components/pagination/pagination-item.mjs +1 -1
- package/dist/components/pagination/pagination.d.mts +9 -12
- package/dist/components/pagination/pagination.mjs +1 -1
- package/dist/components/popover/index.d.mts +9 -12
- package/dist/components/popover/index.mjs +4 -3
- package/dist/components/popover/popover-trigger-context.d.mts +1 -1
- package/dist/components/popover/popover-trigger.d.mts +9 -12
- package/dist/components/popover/popover-trigger.mjs +1 -1
- package/dist/components/popover/popover.d.mts +9 -12
- package/dist/components/popover/popover.mjs +2 -1
- package/dist/components/radio/index.d.mts +9 -12
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.d.mts +9 -12
- package/dist/components/radio/radio.mjs +1 -1
- package/dist/components/search/index.d.mts +9 -12
- package/dist/components/search/index.mjs +2 -2
- package/dist/components/search/search.d.mts +9 -12
- package/dist/components/search/search.mjs +1 -1
- package/dist/components/select/index.d.mts +9 -12
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/select-optgroup.d.mts +9 -12
- package/dist/components/select/select-optgroup.mjs +1 -1
- package/dist/components/select/select-option.d.mts +9 -12
- package/dist/components/select/select-option.mjs +1 -1
- package/dist/components/select/select.d.mts +9 -12
- package/dist/components/select/select.mjs +1 -1
- package/dist/components/selectfield/index.d.mts +9 -12
- package/dist/components/selectfield/index.mjs +8 -8
- package/dist/components/selectfield/selectfield.d.mts +9 -12
- package/dist/components/selectfield/selectfield.mjs +7 -7
- package/dist/components/skip-link/index.d.mts +9 -12
- package/dist/components/skip-link/index.mjs +2 -2
- package/dist/components/skip-link/skip-link.d.mts +9 -12
- package/dist/components/skip-link/skip-link.mjs +1 -1
- package/dist/components/spinner/index.d.mts +9 -12
- package/dist/components/spinner/spinner.d.mts +9 -12
- package/dist/components/sticky-header/index.d.mts +1 -1
- package/dist/components/sticky-header/index.mjs +2 -2
- package/dist/components/sticky-header/sticky-header.d.mts +1 -1
- package/dist/components/sticky-header/sticky-header.mjs +1 -1
- package/dist/components/tabs/index.d.mts +9 -12
- package/dist/components/tabs/index.mjs +5 -5
- package/dist/components/tabs/tab.d.mts +9 -12
- package/dist/components/tabs/tab.mjs +1 -1
- package/dist/components/tabs/tabs-list.d.mts +9 -12
- package/dist/components/tabs/tabs-list.mjs +1 -1
- package/dist/components/tabs/tabs-panel.d.mts +9 -12
- package/dist/components/tabs/tabs-panel.mjs +1 -1
- package/dist/components/tabs/tabs.d.mts +9 -12
- package/dist/components/tabs/tabs.mjs +1 -1
- package/dist/components/textarea/index.d.mts +9 -12
- package/dist/components/textarea/index.mjs +2 -2
- package/dist/components/textarea/textarea.d.mts +9 -12
- package/dist/components/textarea/textarea.mjs +1 -1
- package/dist/components/textfield/index.d.mts +9 -12
- package/dist/components/textfield/index.mjs +6 -6
- package/dist/components/textfield/textfield.d.mts +9 -12
- package/dist/components/textfield/textfield.mjs +5 -5
- package/dist/components/validation-message/index.d.mts +9 -12
- package/dist/components/validation-message/index.mjs +2 -2
- package/dist/components/validation-message/validation-message.d.mts +9 -12
- package/dist/components/validation-message/validation-message.mjs +1 -1
- package/dist/{dialog-trigger-context-C1_D0x9o.d.mts → dialog-trigger-context-CminopbC.d.mts} +3 -3
- package/dist/{drawer-trigger-context-B_KTiYUG.d.mts → drawer-trigger-context-Bwc8d7BC.d.mts} +3 -3
- package/dist/{dropdown-eNixd0dU.mjs → dropdown-Bfh8dKIl.mjs} +2 -2
- package/dist/{dropdown-eNixd0dU.mjs.map → dropdown-Bfh8dKIl.mjs.map} +1 -1
- package/dist/{dropdown-5PX7br4s.mjs → dropdown-DuZCbT-j.mjs} +2 -2
- package/dist/{dropdown-5PX7br4s.mjs.map → dropdown-DuZCbT-j.mjs.map} +1 -1
- package/dist/{dropdown-button-CaH03Puf.mjs → dropdown-button-DTwImr6G.mjs} +1 -1
- package/dist/{dropdown-button-CaH03Puf.mjs.map → dropdown-button-DTwImr6G.mjs.map} +1 -1
- package/dist/{dropdown-item-DFi5h7y_.mjs → dropdown-item-B7WklCax.mjs} +1 -1
- package/dist/{dropdown-item-DFi5h7y_.mjs.map → dropdown-item-B7WklCax.mjs.map} +1 -1
- package/dist/{dropdown-item-B-Nit4gr.d.mts → dropdown-item-CEMtF8fR.d.mts} +3 -3
- package/dist/{dropdown-list-DI-ZzWhS.mjs → dropdown-list-7Y5EUloM.mjs} +1 -1
- package/dist/{dropdown-list-DI-ZzWhS.mjs.map → dropdown-list-7Y5EUloM.mjs.map} +1 -1
- package/dist/{dropdown-list-Bzcz7-p5.d.mts → dropdown-list-CjL1emP8.d.mts} +3 -3
- package/dist/{dropdown-trigger-context-CS3OQMFI.mjs → dropdown-trigger-context-DcIe8cXy.mjs} +1 -1
- package/dist/{dropdown-trigger-context-CS3OQMFI.mjs.map → dropdown-trigger-context-DcIe8cXy.mjs.map} +1 -1
- package/dist/{dropdown-trigger-7DQXMbgf.mjs → dropdown-trigger-idFkFkds.mjs} +2 -2
- package/dist/{dropdown-trigger-7DQXMbgf.mjs.map → dropdown-trigger-idFkFkds.mjs.map} +1 -1
- package/dist/{fieldset-2lG0gcor.mjs → fieldset-Be8MGUGl.mjs} +1 -1
- package/dist/{fieldset-2lG0gcor.mjs.map → fieldset-Be8MGUGl.mjs.map} +1 -1
- package/dist/{fieldset-description-DTqXvl-C.mjs → fieldset-description-BEJMhT5N.mjs} +1 -1
- package/dist/{fieldset-description-DTqXvl-C.mjs.map → fieldset-description-BEJMhT5N.mjs.map} +1 -1
- package/dist/{fieldset-legend-DRljev3V.mjs → fieldset-legend-6wSBIqEK.mjs} +1 -1
- package/dist/{fieldset-legend-DRljev3V.mjs.map → fieldset-legend-6wSBIqEK.mjs.map} +1 -1
- package/dist/{filter-group-CQ5N0COR.mjs → filter-group-VUtoYeik.mjs} +1 -1
- package/dist/{filter-group-CQ5N0COR.mjs.map → filter-group-VUtoYeik.mjs.map} +1 -1
- package/dist/{footer-BT08D4h_.mjs → footer-BUYDMkxQ.mjs} +1 -1
- package/dist/{footer-BT08D4h_.mjs.map → footer-BUYDMkxQ.mjs.map} +1 -1
- package/dist/{footer-links-DG4qNkaZ.d.mts → footer-links-BAi8O30F.d.mts} +3 -3
- package/dist/{footer-links-C6V--xE0.mjs → footer-links-DZ3bP7L0.mjs} +1 -1
- package/dist/{footer-links-C6V--xE0.mjs.map → footer-links-DZ3bP7L0.mjs.map} +1 -1
- package/dist/{index-C6Nm9giH.d.mts → index-CjIbpoNY.d.mts} +3 -2
- package/dist/{link-BW0SzY4P.mjs → link-Bskmvnx5.mjs} +1 -1
- package/dist/{link-BW0SzY4P.mjs.map → link-Bskmvnx5.mjs.map} +1 -1
- package/dist/{logo-Zlb4wddU.mjs → logo-RC98BG2F.mjs} +1 -1
- package/dist/{logo-Zlb4wddU.mjs.map → logo-RC98BG2F.mjs.map} +1 -1
- package/dist/main.d.mts +9 -9
- package/dist/main.mjs +65 -64
- package/dist/{navbar-B6_bxX7A.mjs → navbar-BrMRw8N2.mjs} +2 -2
- package/dist/{navbar-B6_bxX7A.mjs.map → navbar-BrMRw8N2.mjs.map} +1 -1
- package/dist/{pagination-DQG9eVY1.mjs → pagination-BVsDp6Md.mjs} +1 -1
- package/dist/{pagination-DQG9eVY1.mjs.map → pagination-BVsDp6Md.mjs.map} +1 -1
- package/dist/{pagination-button-BlzwamSr.mjs → pagination-button-DV7GBbhq.mjs} +1 -1
- package/dist/{pagination-button-BlzwamSr.mjs.map → pagination-button-DV7GBbhq.mjs.map} +1 -1
- package/dist/{pagination-item-px_jlzBH.d.mts → pagination-item-DKoGLZxn.d.mts} +3 -3
- package/dist/{pagination-item-BnM5pCuI.mjs → pagination-item-OR2QSk7T.mjs} +1 -1
- package/dist/{pagination-item-BnM5pCuI.mjs.map → pagination-item-OR2QSk7T.mjs.map} +1 -1
- package/dist/{popover-DzgWYNoJ.mjs → popover-ChAkuQdg.mjs} +32 -3
- package/dist/popover-ChAkuQdg.mjs.map +1 -0
- package/dist/{popover-B9hFmnr_.mjs → popover-DXYtGiZI.mjs} +8 -4
- package/dist/popover-DXYtGiZI.mjs.map +1 -0
- package/dist/{popover-trigger-kS89jLF5.mjs → popover-trigger-Brt5Ctq5.mjs} +1 -1
- package/dist/{popover-trigger-kS89jLF5.mjs.map → popover-trigger-Brt5Ctq5.mjs.map} +1 -1
- package/dist/{popover-trigger-context-DLFSm345.d.mts → popover-trigger-context-NCadJZ4y.d.mts} +3 -3
- package/dist/{radio-D_uN-UNR.mjs → radio-CZhM8bv4.mjs} +1 -1
- package/dist/{radio-D_uN-UNR.mjs.map → radio-CZhM8bv4.mjs.map} +1 -1
- package/dist/{search-D7tBeD7x.mjs → search-DtEa73Zz.mjs} +1 -1
- package/dist/{search-D7tBeD7x.mjs.map → search-DtEa73Zz.mjs.map} +1 -1
- package/dist/{select-CkeXJfv-.mjs → select-DJY40TIK.mjs} +1 -1
- package/dist/{select-CkeXJfv-.mjs.map → select-DJY40TIK.mjs.map} +1 -1
- package/dist/{select-optgroup-D2oER1Ek.mjs → select-optgroup-BIIeTki5.mjs} +1 -1
- package/dist/{select-optgroup-D2oER1Ek.mjs.map → select-optgroup-BIIeTki5.mjs.map} +1 -1
- package/dist/{select-option-hGcGfQqQ.mjs → select-option-D1fvKZzA.mjs} +1 -1
- package/dist/{select-option-hGcGfQqQ.mjs.map → select-option-D1fvKZzA.mjs.map} +1 -1
- package/dist/{selectfield-BeZTfJMM.mjs → selectfield-Ddsq_Xbt.mjs} +3 -3
- package/dist/{selectfield-BeZTfJMM.mjs.map → selectfield-Ddsq_Xbt.mjs.map} +1 -1
- package/dist/{skip-link-6hCvwkVB.mjs → skip-link-B42C5TY2.mjs} +1 -1
- package/dist/{skip-link-6hCvwkVB.mjs.map → skip-link-B42C5TY2.mjs.map} +1 -1
- package/dist/{sticky-header-BVSEDMHH.mjs → sticky-header-CPzI8Eft.mjs} +1 -1
- package/dist/{sticky-header-BVSEDMHH.mjs.map → sticky-header-CPzI8Eft.mjs.map} +1 -1
- package/dist/{sticky-header-DFUhQ4aL.d.mts → sticky-header-LOTHDUEd.d.mts} +3 -3
- package/dist/{sub-navbar-3yiCgad_.mjs → sub-navbar-BKSTicOx.mjs} +3 -3
- package/dist/{sub-navbar-3yiCgad_.mjs.map → sub-navbar-BKSTicOx.mjs.map} +1 -1
- package/dist/{tab-CKzYzJG2.mjs → tab-CmqJjQPm.mjs} +1 -1
- package/dist/{tab-CKzYzJG2.mjs.map → tab-CmqJjQPm.mjs.map} +1 -1
- package/dist/{tabs-DtBM8JYq.mjs → tabs-T1uV7M_a.mjs} +1 -1
- package/dist/{tabs-DtBM8JYq.mjs.map → tabs-T1uV7M_a.mjs.map} +1 -1
- package/dist/{tabs-list-C14k_kq2.mjs → tabs-list-B_hWkbZq.mjs} +1 -1
- package/dist/{tabs-list-C14k_kq2.mjs.map → tabs-list-B_hWkbZq.mjs.map} +1 -1
- package/dist/{tabs-panel-DuwFItiC.mjs → tabs-panel-DkjUXjIX.mjs} +1 -1
- package/dist/{tabs-panel-DuwFItiC.mjs.map → tabs-panel-DkjUXjIX.mjs.map} +1 -1
- package/dist/{textarea-DFVhK8mn.mjs → textarea-Bl9YoeRB.mjs} +1 -1
- package/dist/{textarea-DFVhK8mn.mjs.map → textarea-Bl9YoeRB.mjs.map} +1 -1
- package/dist/{textfield-DJ8JNFtQ.mjs → textfield-nFlOsghw.mjs} +3 -3
- package/dist/{textfield-DJ8JNFtQ.mjs.map → textfield-nFlOsghw.mjs.map} +1 -1
- package/dist/{useCheckboxGroup-CXmF4bqs.mjs → useCheckboxGroup-DWqqNSFY.mjs} +1 -1
- package/dist/{useCheckboxGroup-CXmF4bqs.mjs.map → useCheckboxGroup-DWqqNSFY.mjs.map} +1 -1
- package/dist/{useIsElementAboveViewport-Dy_5jjA4.mjs → useIsElementAboveViewport-DTgaSPiF.mjs} +1 -1
- package/dist/{useIsElementAboveViewport-Dy_5jjA4.mjs.map → useIsElementAboveViewport-DTgaSPiF.mjs.map} +1 -1
- package/dist/{useIsomorphicLayoutEffect-CUaF-bk-.mjs → useIsomorphicLayoutEffect-B9zYV7Dq.mjs} +1 -1
- package/dist/{useIsomorphicLayoutEffect-CUaF-bk-.mjs.map → useIsomorphicLayoutEffect-B9zYV7Dq.mjs.map} +1 -1
- package/dist/{useMediaQuery-BzRQnFto.mjs → useMediaQuery-I2eiGl9n.mjs} +2 -2
- package/dist/{useMediaQuery-BzRQnFto.mjs.map → useMediaQuery-I2eiGl9n.mjs.map} +1 -1
- package/dist/{usePagination-Cs_RI4QO.mjs → usePagination-9ht6tr5V.mjs} +1 -1
- package/dist/{usePagination-Cs_RI4QO.mjs.map → usePagination-9ht6tr5V.mjs.map} +1 -1
- package/dist/{useScrollDirection-D35f7Y4k.mjs → useScrollDirection-D7_FOiXc.mjs} +1 -1
- package/dist/{useScrollDirection-D35f7Y4k.mjs.map → useScrollDirection-D7_FOiXc.mjs.map} +1 -1
- package/dist/utilities/hooks/index.d.mts +9 -10
- package/dist/utilities/hooks/index.mjs +7 -7
- package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.mjs +1 -1
- package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.mjs +1 -1
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +1 -1
- package/dist/utilities/hooks/useMediaQuery/useMediaQuery.mjs +2 -2
- package/dist/utilities/hooks/usePagination/usePagination.d.mts +9 -12
- package/dist/utilities/hooks/usePagination/usePagination.mjs +1 -1
- package/dist/utilities/hooks/useScrollDirection/useScrollDirection.mjs +1 -1
- package/dist/utilities/index.d.mts +9 -9
- package/dist/utilities/index.mjs +8 -8
- package/dist/{validation-message-Dd58lGnj.mjs → validation-message-C60moOAJ.mjs} +1 -1
- package/dist/{validation-message-Dd58lGnj.mjs.map → validation-message-C60moOAJ.mjs.map} +1 -1
- package/dist/vanilla/dropdown/index.mjs +2 -2
- package/dist/vanilla/index.d.mts +2 -2
- package/dist/vanilla/index.mjs +3 -3
- package/dist/vanilla/popover/index.d.mts +2 -2
- package/dist/vanilla/popover/index.mjs +2 -2
- package/package.json +5 -5
- package/dist/popover-B9hFmnr_.mjs.map +0 -1
- package/dist/popover-DzgWYNoJ.mjs.map +0 -1
- /package/dist/{components-CeK6-ASQ.mjs → components-BdkN-_Ml.mjs} +0 -0
- /package/dist/{dropdown-C3I8bZLs.mjs → dropdown-CywQTysC.mjs} +0 -0
- /package/dist/{fieldset-tZuIXydR.mjs → fieldset-BwzFUZoW.mjs} +0 -0
- /package/dist/{filter-group-DPHL4VfT.mjs → filter-group-Dg6HgIEt.mjs} +0 -0
- /package/dist/{footer-DGxeVILK.mjs → footer-otE7lgPI.mjs} +0 -0
- /package/dist/{hooks-BrrLmPaM.mjs → hooks-DHUUJnUb.mjs} +0 -0
- /package/dist/{link-BiRqBqvg.mjs → link-DHnBZB44.mjs} +0 -0
- /package/dist/{logo-BM_IcZ4z.mjs → logo-BefTu0Vy.mjs} +0 -0
- /package/dist/{navbar-DVCz5pJr.mjs → navbar-Cypkd4U3.mjs} +0 -0
- /package/dist/{pagination-C-zx5c24.mjs → pagination-C5SJFVIg.mjs} +0 -0
- /package/dist/{popover-TVw5qvBN.mjs → popover-8vTBTV78.mjs} +0 -0
- /package/dist/{radio-BDnsYmpD.mjs → radio-CxXWLUKN.mjs} +0 -0
- /package/dist/{search-DtHjYP-M.mjs → search-Cprk0LkD.mjs} +0 -0
- /package/dist/{select-DCfEuOyf.mjs → select-DoRxDJyZ.mjs} +0 -0
- /package/dist/{selectfield-61gkXh3W.mjs → selectfield-DxSdNYcd.mjs} +0 -0
- /package/dist/{skip-link-CbHq2qa0.mjs → skip-link-B_bGWDKA.mjs} +0 -0
- /package/dist/{sticky-header-q9kmWkFr.mjs → sticky-header-DtFcfpHJ.mjs} +0 -0
- /package/dist/{tabs-BCMdleWu.mjs → tabs-IvYkQ0JK.mjs} +0 -0
- /package/dist/{textarea-Dsi2VLWA.mjs → textarea-Cd80tzk3.mjs} +0 -0
- /package/dist/{textfield-BjiYCE-E.mjs → textfield-CB6b8VQQ.mjs} +0 -0
- /package/dist/{utilities-Ci92QrhM.mjs → utilities-D-mDqsCm.mjs} +0 -0
- /package/dist/{validation-message-cLSxpQ0B.mjs → validation-message-DhhtmfvD.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as useIsElementAboveViewport } from "./useIsElementAboveViewport-
|
|
2
|
-
import { t as useScrollDirection } from "./useScrollDirection-
|
|
1
|
+
import { t as useIsElementAboveViewport } from "./useIsElementAboveViewport-DTgaSPiF.mjs";
|
|
2
|
+
import { t as useScrollDirection } from "./useScrollDirection-D7_FOiXc.mjs";
|
|
3
3
|
import clsx from "clsx/lite";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useRef } from "react";
|
|
@@ -25,4 +25,4 @@ const SubNavbar = ({ dark = false, children, className, ref, ...props }) => {
|
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SubNavbar as t };
|
|
28
|
-
//# sourceMappingURL=sub-navbar-
|
|
28
|
+
//# sourceMappingURL=sub-navbar-BKSTicOx.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sub-navbar-
|
|
1
|
+
{"version":3,"file":"sub-navbar-BKSTicOx.mjs","names":[],"sources":["../src/components/navbar/sub-navbar.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { useRef, type HTMLAttributes, type Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\nimport { useIsElementAboveViewport, useScrollDirection } from '../../utilities/hooks';\n\nexport type SubNavbarProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n ref?: Ref<HTMLElement>;\n }\n>;\n\nexport const SubNavbar = ({ dark = false, children, className, ref, ...props }: SubNavbarProps) => {\n const elementRef = useRef<HTMLDivElement>(null);\n const fixed = useIsElementAboveViewport(elementRef);\n const scrollDirection = useScrollDirection();\n\n return (\n <div className='bi-sub-navbar--wrapper'>\n <div ref={elementRef} />\n <nav\n className={clsx('bi-sub-navbar', className)}\n data-fixed={fixed}\n data-scroll-dir={fixed ? scrollDirection : undefined}\n data-dark={dark}\n {...props}\n ref={ref}\n >\n {children}\n </nav>\n </div>\n );\n};\n"],"mappings":";;;;;;;AAaA,MAAa,aAAa,EAAE,OAAO,OAAO,UAAU,WAAW,KAAK,GAAG,YAA4B;CACjG,MAAM,aAAa,OAAuB,KAAK;CAC/C,MAAM,QAAQ,0BAA0B,WAAW;CACnD,MAAM,kBAAkB,oBAAoB;AAE5C,QACE,qBAAC;EAAI,WAAU;aACb,oBAAC,SAAI,KAAK,aAAc,EACxB,oBAAC;GACC,WAAW,KAAK,iBAAiB,UAAU;GAC3C,cAAY;GACZ,mBAAiB,QAAQ,kBAAkB;GAC3C,aAAW;GACX,GAAI;GACC;GAEJ;IACG;GACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-
|
|
1
|
+
{"version":3,"file":"tab-CmqJjQPm.mjs","names":[],"sources":["../src/components/tabs/tab.tsx"],"sourcesContent":["import type { MergeRight } from '../../utilities';\nimport { Trigger } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\nimport { Button, ButtonProps } from '../button';\n\nexport type TabProps = MergeRight<\n Omit<ButtonProps, 'variant' | 'type'>,\n {\n /** A unique value that associates the trigger with a content. */\n value: string;\n /**\n * When true, prevents the user from interacting with the tab.\n * @default false\n */\n disabled?: boolean;\n }\n>;\n\nexport const Tab = ({ className, value, disabled, children, asChild, dark, ref, ...props }: TabProps) => {\n return (\n <Trigger value={value} disabled={disabled} asChild>\n <Button\n ref={ref}\n variant='text'\n className={clsx('bi-tabs--tab', className)}\n disabled={disabled}\n asChild={asChild}\n dark={dark}\n {...props}\n >\n {children}\n </Button>\n </Trigger>\n );\n};\n"],"mappings":";;;;;;AAkBA,MAAa,OAAO,EAAE,WAAW,OAAO,UAAU,UAAU,SAAS,MAAM,KAAK,GAAG,YAAsB;AACvG,QACE,oBAAC;EAAe;EAAiB;EAAU;YACzC,oBAAC;GACM;GACL,SAAQ;GACR,WAAW,KAAK,gBAAgB,UAAU;GAChC;GACD;GACH;GACN,GAAI;GAEH;IACM;GACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-
|
|
1
|
+
{"version":3,"file":"tabs-T1uV7M_a.mjs","names":[],"sources":["../src/components/tabs/tabs.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Root } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\n\nexport type TabsProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>,\n {\n /**\n * When `automatic`, tabs are activated when receiving focus. When `manual`, tabs are activated when clicked.\n * @default 'automatic'\n */\n activationMode?: 'manual' | 'automatic';\n /**\n * The orientation of the component.\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical';\n /** The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs. */\n defaultValue?: string;\n /** The controlled value of the tab to activate. Should be used together with `onChange`. */\n value?: string;\n /** Event handler called when the value changes. */\n onChange?: (value: string) => void;\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 Tabs = ({\n activationMode = 'automatic',\n orientation = 'horizontal',\n defaultValue,\n value,\n onChange,\n children,\n className,\n asChild,\n dark,\n ref,\n ...props\n}: TabsProps) => {\n return (\n <Root\n className={clsx('bi-tabs', className)}\n activationMode={activationMode}\n orientation={orientation}\n defaultValue={defaultValue}\n value={value}\n onValueChange={onChange}\n asChild={asChild}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </Root>\n );\n};\n"],"mappings":";;;;;AAkCA,MAAa,QAAQ,EACnB,iBAAiB,aACjB,cAAc,cACd,cACA,OACA,UACA,UACA,WACA,SACA,MACA,KACA,GAAG,YACY;AACf,QACE,oBAAC;EACC,WAAW,KAAK,WAAW,UAAU;EACrB;EACH;EACC;EACP;EACP,eAAe;EACN;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-list-
|
|
1
|
+
{"version":3,"file":"tabs-list-B_hWkbZq.mjs","names":[],"sources":["../src/components/tabs/tabs-list.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { List } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\n\nexport type TabsListProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>,\n {\n /**\n * When `true`, keyboard navigation will loop from last tab to first, and vice versa.\n * @default true\n */\n loop?: 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 TabsList = ({ className, loop = true, children, asChild, dark, ref, ...props }: TabsListProps) => {\n return (\n <List\n className={clsx('bi-tabs--list', className)}\n loop={loop}\n asChild={asChild}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </List>\n );\n};\n"],"mappings":";;;;;AAuBA,MAAa,YAAY,EAAE,WAAW,OAAO,MAAM,UAAU,SAAS,MAAM,KAAK,GAAG,YAA2B;AAC7G,QACE,oBAAC;EACC,WAAW,KAAK,iBAAiB,UAAU;EACrC;EACG;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-panel-
|
|
1
|
+
{"version":3,"file":"tabs-panel-DkjUXjIX.mjs","names":[],"sources":["../src/components/tabs/tabs-panel.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Content } from '@radix-ui/react-tabs';\nimport clsx from 'clsx/lite';\n\nexport type TabsPanelProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLDivElement>, 'dir'>,\n {\n /** A unique value that associates the content with a trigger. */\n value: string;\n /** Used to force mounting when more control is needed. Useful when controlling animation with React animation libraries. */\n forceMount?: 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 TabsPanel = ({ className, value, forceMount, children, asChild, dark, ref, ...props }: TabsPanelProps) => {\n return (\n <Content\n className={clsx('bi-tabs--panel', className)}\n value={value}\n forceMount={forceMount || undefined}\n asChild={asChild}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </Content>\n );\n};\n"],"mappings":";;;;;AAsBA,MAAa,aAAa,EAAE,WAAW,OAAO,YAAY,UAAU,SAAS,MAAM,KAAK,GAAG,YAA4B;AACrH,QACE,oBAAC;EACC,WAAW,KAAK,kBAAkB,UAAU;EACrC;EACP,YAAY,cAAc;EACjB;EACT,aAAW;EACN;EACL,GAAI;EAEH;GACO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea-
|
|
1
|
+
{"version":3,"file":"textarea-Bl9YoeRB.mjs","names":[],"sources":["../src/components/textarea/textarea.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { Ref, TextareaHTMLAttributes } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type TextareaProps = MergeRight<\n DefaultProps & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'prefix'>,\n {\n /**\n * Size of the textarea.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n ref?: Ref<HTMLTextAreaElement>;\n }\n>;\n\nexport const Textarea = ({ className, dark, size, ref, ...props }: TextareaProps) => {\n return <textarea className={clsx('bi-input', className)} data-dark={dark} data-size={size} ref={ref} {...props} />;\n};\n"],"mappings":";;;;AAiBA,MAAa,YAAY,EAAE,WAAW,MAAM,MAAM,KAAK,GAAG,YAA2B;AACnF,QAAO,oBAAC;EAAS,WAAW,KAAK,YAAY,UAAU;EAAE,aAAW;EAAM,aAAW;EAAW;EAAK,GAAI;GAAS"}
|
|
@@ -3,8 +3,8 @@ import { t as FieldDescription } from "./field-description-XJjYxMvw.mjs";
|
|
|
3
3
|
import { n as FieldAffixes, t as FieldAffix } from "./field-affix-C4X9hVtO.mjs";
|
|
4
4
|
import { t as Input } from "./input-npZkJQsL.mjs";
|
|
5
5
|
import { t as Label } from "./label-CLZYAwXB.mjs";
|
|
6
|
-
import { t as ValidationMessage } from "./validation-message-
|
|
7
|
-
import { t as Textarea } from "./textarea-
|
|
6
|
+
import { t as ValidationMessage } from "./validation-message-C60moOAJ.mjs";
|
|
7
|
+
import { t as Textarea } from "./textarea-Bl9YoeRB.mjs";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { useId } from "react";
|
|
10
10
|
|
|
@@ -62,4 +62,4 @@ const Textfield = ({ dark, label, description, error, multiline, prefix, suffix,
|
|
|
62
62
|
|
|
63
63
|
//#endregion
|
|
64
64
|
export { Textfield as t };
|
|
65
|
-
//# sourceMappingURL=textfield-
|
|
65
|
+
//# sourceMappingURL=textfield-nFlOsghw.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textfield-
|
|
1
|
+
{"version":3,"file":"textfield-nFlOsghw.mjs","names":[],"sources":["../src/components/textfield/textfield.tsx"],"sourcesContent":["import { useId, type ReactNode, type Ref } from 'react';\n\nimport type { DefaultProps, LabelRequiredProps } from '../../types';\nimport { Field, FieldAffix, FieldAffixes, FieldDescription } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { Label } from '../label';\nimport { Textarea, type TextareaProps } from '../textarea';\nimport { ValidationMessage } from '../validation-message';\n\ntype InputPropsFiltered = Omit<InputProps, 'prefix' | 'className' | 'style'>;\ntype TextareaPropsFiltered = Omit<TextareaProps, 'prefix' | 'className' | 'style'>;\n\ntype BaseTextfieldProps = LabelRequiredProps &\n DefaultProps & {\n /** Label */\n label?: ReactNode;\n /** Description */\n description?: ReactNode;\n /** Prefix */\n prefix?: string;\n /** Suffix */\n suffix?: string;\n /** Error message for field */\n error?: ReactNode;\n /** `className` for the `Field` element */\n className?: InputProps['className'];\n /** `style` for the `Field` element */\n style?: InputProps['style'];\n /** If true, the selectfield will take up the full available width */\n fullwidth?: boolean;\n };\n\ntype TextfieldTextareaProps = {\n /** Render `Textarea` instead of a `Input`. The `Textarea` has support for multiple rows of input. */\n multiline: true;\n} & TextareaPropsFiltered;\n\ntype TextfieldInputProps = {\n /** Render `Textarea` instead of a `Input`. The `Textarea` has support for multiple rows of input. */\n multiline?: never | false;\n} & InputPropsFiltered;\n\nexport type TextfieldProps = BaseTextfieldProps & // We use either Textarea or Input props, depending on the `multiline` prop.\n (TextfieldTextareaProps | TextfieldInputProps) & {\n ref?: Ref<HTMLInputElement | HTMLTextAreaElement>;\n };\n\nexport const Textfield = ({\n dark,\n label,\n description,\n error,\n multiline,\n prefix,\n suffix,\n style,\n className,\n fullwidth,\n ref,\n id: idProp,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n}: TextfieldProps) => {\n const generatedId = useId();\n const descriptionId = useId();\n const validationId = useId();\n const id = idProp || generatedId;\n\n const ariaDescribedBy =\n [description ? descriptionId : '', error ? validationId : '', ariaDescribedByProp].join(' ').trim() || undefined;\n return (\n <Field className={className} data-dark={dark} style={style} fullwidth={fullwidth}>\n {label && <Label htmlFor={id}>{label}</Label>}\n {description && <FieldDescription id={descriptionId}>{description}</FieldDescription>}\n <FieldAffixes>\n {prefix && <FieldAffix>{prefix}</FieldAffix>}\n {multiline ? (\n <Textarea\n id={id}\n ref={ref as Ref<HTMLTextAreaElement>}\n aria-invalid={Boolean(error) || undefined}\n aria-describedby={ariaDescribedBy}\n dark={dark}\n {...(props as TextareaPropsFiltered)}\n />\n ) : (\n <Input\n id={id}\n ref={ref as Ref<HTMLInputElement>}\n aria-invalid={Boolean(error) || undefined}\n aria-describedby={ariaDescribedBy}\n dark={dark}\n {...(props as InputPropsFiltered)}\n />\n )}\n {suffix && <FieldAffix>{suffix}</FieldAffix>}\n </FieldAffixes>\n {!!error && <ValidationMessage id={validationId}>{error}</ValidationMessage>}\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;;;AA+CA,MAAa,aAAa,EACxB,MACA,OACA,aACA,OACA,WACA,QACA,QACA,OACA,WACA,WACA,KACA,IAAI,QACJ,oBAAoB,qBACpB,GAAG,YACiB;CACpB,MAAM,cAAc,OAAO;CAC3B,MAAM,gBAAgB,OAAO;CAC7B,MAAM,eAAe,OAAO;CAC5B,MAAM,KAAK,UAAU;CAErB,MAAM,kBACJ;EAAC,cAAc,gBAAgB;EAAI,QAAQ,eAAe;EAAI;EAAoB,CAAC,KAAK,IAAI,CAAC,MAAM,IAAI;AACzG,QACE,qBAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;;GACpE,SAAS,oBAAC;IAAM,SAAS;cAAK;KAAc;GAC5C,eAAe,oBAAC;IAAiB,IAAI;cAAgB;KAA+B;GACrF,qBAAC;IACE,UAAU,oBAAC,wBAAY,SAAoB;IAC3C,YACC,oBAAC;KACK;KACC;KACL,gBAAc,QAAQ,MAAM,IAAI;KAChC,oBAAkB;KACZ;KACN,GAAK;MACL,GAEF,oBAAC;KACK;KACC;KACL,gBAAc,QAAQ,MAAM,IAAI;KAChC,oBAAkB;KACZ;KACN,GAAK;MACL;IAEH,UAAU,oBAAC,wBAAY,SAAoB;OAC/B;GACd,CAAC,CAAC,SAAS,oBAAC;IAAkB,IAAI;cAAe;KAA0B;;GACtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCheckboxGroup-
|
|
1
|
+
{"version":3,"file":"useCheckboxGroup-DWqqNSFY.mjs","names":[],"sources":["../src/utilities/hooks/useCheckboxGroup/useCheckboxGroup.tsx"],"sourcesContent":["import type { ChangeEvent } from 'react';\n\nexport type UseCheckboxGroupOptions = {\n options: boolean[];\n updateOptions: (checked: boolean) => void;\n};\n\nexport type UseCheckboxGroupReturn = {\n /** Spread this on the \"parent\" checkbox */\n checkboxGroupProps: {\n checked: boolean;\n indeterminate: boolean;\n onChange: (e: ChangeEvent<HTMLInputElement>) => void;\n };\n};\n\nexport const useCheckboxGroup = ({ options, updateOptions }: UseCheckboxGroupOptions): UseCheckboxGroupReturn => {\n const checked = options.every((option) => option);\n const indeterminate = options.some((option) => option) && !checked;\n\n const onChange = (e: ChangeEvent<HTMLInputElement>) => {\n const newChecked = e.target.indeterminate ? true : e.target.checked;\n updateOptions(newChecked);\n };\n\n return {\n checkboxGroupProps: {\n checked,\n indeterminate,\n onChange,\n },\n };\n};\n"],"mappings":";AAgBA,MAAa,oBAAoB,EAAE,SAAS,oBAAqE;CAC/G,MAAM,UAAU,QAAQ,OAAO,WAAW,OAAO;CACjD,MAAM,gBAAgB,QAAQ,MAAM,WAAW,OAAO,IAAI,CAAC;CAE3D,MAAM,YAAY,MAAqC;AAErD,gBADmB,EAAE,OAAO,gBAAgB,OAAO,EAAE,OAAO,QACnC;;AAG3B,QAAO,EACL,oBAAoB;EAClB;EACA;EACA;EACD,EACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsElementAboveViewport-
|
|
1
|
+
{"version":3,"file":"useIsElementAboveViewport-DTgaSPiF.mjs","names":[],"sources":["../src/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.tsx"],"sourcesContent":["import { useEffect, useState, type RefObject } from 'react';\n\n/** Detects when an element's is scrolled past and is no longer in the viewport. */\nexport const useIsElementAboveViewport = (elementRef: RefObject<HTMLElement | null>): boolean => {\n const [isAboveViewport, setIsPast] = useState(false);\n\n useEffect(() => {\n const observer = new IntersectionObserver(([entry]) => setIsPast(entry.boundingClientRect.y < 0), {\n threshold: [0],\n });\n const currentRef = elementRef.current;\n if (currentRef) observer.observe(currentRef);\n return () => {\n if (currentRef) observer.unobserve(currentRef);\n };\n }, [elementRef]);\n return isAboveViewport;\n};\n"],"mappings":";;;;AAGA,MAAa,6BAA6B,eAAuD;CAC/F,MAAM,CAAC,iBAAiB,aAAa,SAAS,MAAM;AAEpD,iBAAgB;EACd,MAAM,WAAW,IAAI,sBAAsB,CAAC,WAAW,UAAU,MAAM,mBAAmB,IAAI,EAAE,EAAE,EAChG,WAAW,CAAC,EAAE,EACf,CAAC;EACF,MAAM,aAAa,WAAW;AAC9B,MAAI,WAAY,UAAS,QAAQ,WAAW;AAC5C,eAAa;AACX,OAAI,WAAY,UAAS,UAAU,WAAW;;IAE/C,CAAC,WAAW,CAAC;AAChB,QAAO"}
|
package/dist/{useIsomorphicLayoutEffect-CUaF-bk-.mjs → useIsomorphicLayoutEffect-B9zYV7Dq.mjs}
RENAMED
|
@@ -5,4 +5,4 @@ const useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffec
|
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { useIsomorphicLayoutEffect as t };
|
|
8
|
-
//# sourceMappingURL=useIsomorphicLayoutEffect-
|
|
8
|
+
//# sourceMappingURL=useIsomorphicLayoutEffect-B9zYV7Dq.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsomorphicLayoutEffect-
|
|
1
|
+
{"version":3,"file":"useIsomorphicLayoutEffect-B9zYV7Dq.mjs","names":[],"sources":["../src/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts"],"sourcesContent":["// https://usehooks-ts.com/react-hook/use-isomorphic-layout-effect\n\nimport { useEffect, useLayoutEffect } from 'react';\n\nexport const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\n"],"mappings":";;;AAIA,MAAa,4BAA4B,OAAO,WAAW,cAAc,kBAAkB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect-
|
|
1
|
+
import { t as useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect-B9zYV7Dq.mjs";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/utilities/hooks/useMediaQuery/useMediaQuery.tsx
|
|
@@ -41,4 +41,4 @@ function useMediaQuery(query, { defaultValue = false, initializeWithValue = true
|
|
|
41
41
|
|
|
42
42
|
//#endregion
|
|
43
43
|
export { useMediaQuery as t };
|
|
44
|
-
//# sourceMappingURL=useMediaQuery-
|
|
44
|
+
//# sourceMappingURL=useMediaQuery-I2eiGl9n.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaQuery-
|
|
1
|
+
{"version":3,"file":"useMediaQuery-I2eiGl9n.mjs","names":["query"],"sources":["../src/utilities/hooks/useMediaQuery/useMediaQuery.tsx"],"sourcesContent":["import { useState } from 'react';\n\nimport { useIsomorphicLayoutEffect } from '../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect';\n\n/** Hook options. */\nexport type UseMediaQueryOptions = {\n /**\n * The default value to return if the hook is being run on the server.\n * @default false\n */\n defaultValue?: boolean;\n /**\n * If `true` (default), the hook will initialize reading the media query. In SSR, you should set it to `false`, returning `options.defaultValue` or `false` initially.\n * @default true\n */\n initializeWithValue?: boolean;\n};\n\nconst IS_SERVER = typeof window === 'undefined';\n\n/**\n * Custom hook that tracks the state of a media query using the [`Match Media API`](https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia).\n * @param {string} query - The media query to track.\n * @param {?UseMediaQueryOptions} [options] - The options for customizing the behavior of the hook (optional).\n * @returns {boolean} The current state of the media query (true if the query matches, false otherwise).\n * @example\n * ```tsx\n * const isSmallScreen = useMediaQuery('(max-width: 600px)');\n * // Use `isSmallScreen` to conditionally apply styles or logic based on the screen size.\n * ```\n */\nexport function useMediaQuery(\n query: string,\n { defaultValue = false, initializeWithValue = true }: UseMediaQueryOptions = {},\n): boolean {\n const getMatches = (query: string): boolean => {\n if (IS_SERVER) {\n return defaultValue;\n }\n return window.matchMedia(query).matches;\n };\n\n const [matches, setMatches] = useState<boolean>(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n\n // Handles the change event of the media query.\n function handleChange() {\n setMatches(getMatches(query));\n }\n\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n\n // Triggered at the first client-side load and if query changes\n handleChange();\n\n // Use deprecated `addListener` and `removeListener` to support Safari < 14\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener('change', handleChange);\n }\n\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener('change', handleChange);\n }\n };\n }, [query]);\n\n return matches;\n}\n"],"mappings":";;;;AAkBA,MAAM,YAAY,OAAO,WAAW;;;;;;;;;;;;AAapC,SAAgB,cACd,OACA,EAAE,eAAe,OAAO,sBAAsB,SAA+B,EAAE,EACtE;CACT,MAAM,cAAc,YAA2B;AAC7C,MAAI,UACF,QAAO;AAET,SAAO,OAAO,WAAWA,QAAM,CAAC;;CAGlC,MAAM,CAAC,SAAS,cAAc,eAAwB;AACpD,MAAI,oBACF,QAAO,WAAW,MAAM;AAE1B,SAAO;GACP;CAGF,SAAS,eAAe;AACtB,aAAW,WAAW,MAAM,CAAC;;AAG/B,iCAAgC;EAC9B,MAAM,aAAa,OAAO,WAAW,MAAM;AAG3C,gBAAc;AAGd,MAAI,WAAW,YACb,YAAW,YAAY,aAAa;MAEpC,YAAW,iBAAiB,UAAU,aAAa;AAGrD,eAAa;AACX,OAAI,WAAW,eACb,YAAW,eAAe,aAAa;OAEvC,YAAW,oBAAoB,UAAU,aAAa;;IAGzD,CAAC,MAAM,CAAC;AAEX,QAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePagination-
|
|
1
|
+
{"version":3,"file":"usePagination-9ht6tr5V.mjs","names":["itemList: (number | 'ellipsis')[]"],"sources":["../src/utilities/hooks/usePagination/usePagination.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport type { PaginationButtonProps } from '../../../components';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\n\nconst range = (start: number, end: number) => {\n const length = end - start + 1;\n return Array.from({ length }, (_, i) => start + i);\n};\n\nexport type UsePaginationProps = {\n /**\n * The number of pages\n */\n count: number;\n /*\n * The current page. The numbering starts from `1`, if controlled\n * @default 1\n */\n page?: number;\n /*\n * The current page. The numbering starts from `1`, if uncontrolled\n * @default 1\n */\n defaultPage?: number;\n /**\n * Number of always visible pages at the beginning and end.\n * @default 1\n */\n boundaryCount?: number;\n /**\n * Number of always visible pages before and after the current page.\n * @default 1\n */\n siblingCount?: number;\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled?: boolean;\n /** Callback when the page changes */\n onPageChange?: (page: number) => void;\n};\n\n/**\n * Hook to help manage pagination state of a Pagination component.\n *\n * @example\n * const { pages, nextButtonProps, prevButtonProps } = usePagination({\n * page,\n * count: 10,\n * showPages: 7,\n * boundaryCount: 1,\n * siblingCount: 1,\n * })\n *\n * <Pagination>\n * <PaginationItem>\n * <PaginationButton {...prevButtonProps}>Previous</PaginationButton>\n * </PaginationItem>\n * {pages.map(({ page, itemKey, buttonProps }) => (\n * <PaginationItem key={itemKey}>\n * {typeof page === 'number' && (\n * <PaginationButton {...buttonProps} aria-label={`Page ${page}`}>\n * {page}\n * </PaginationButton>\n * )}\n * </PaginationItem>\n * ))}\n * <PaginationItem>\n * <PaginationButton {...nextButtonProps}>Next</PaginationButton>\n * </PaginationItem>\n * </Pagination>\n **/\nexport const usePagination = ({\n count,\n page: pageProp,\n defaultPage,\n boundaryCount = 1,\n siblingCount = 1,\n disabled = false,\n onPageChange,\n}: UsePaginationProps) => {\n const [page, setPage] = useControllableState({\n prop: pageProp,\n onChange: onPageChange,\n defaultProp: defaultPage ?? 1,\n caller: 'Pagination',\n });\n\n return useMemo(() => {\n const startPages = range(1, Math.min(boundaryCount, count));\n const endPages = range(Math.max(count - boundaryCount + 1, boundaryCount + 1), count);\n\n const siblingsStart = Math.max(\n Math.min(\n // Natural start\n page - siblingCount,\n // Lower boundary when page is high\n count - boundaryCount - siblingCount * 2 - 1,\n ),\n // Greater than startPages\n boundaryCount + 2,\n );\n\n const siblingsEnd = Math.min(\n Math.max(\n // Natural end\n page + siblingCount,\n // Upper boundary when page is low\n boundaryCount + siblingCount * 2 + 2,\n ),\n // Less than endPages\n count - boundaryCount - 1,\n );\n\n // Basic list of items to render, for example: itemList = ['previous', 1, 'ellipsis', 4, 5, 6, 'ellipsis', 10, 'next']\n const itemList: (number | 'ellipsis')[] = [\n ...startPages,\n\n // Start ellipsis\n ...(siblingsStart > boundaryCount + 2\n ? (['ellipsis'] as const)\n : boundaryCount + 1 < count - boundaryCount\n ? [boundaryCount + 1]\n : []),\n\n // Sibling pages\n ...range(siblingsStart, siblingsEnd),\n\n // End ellipsis\n ...(siblingsEnd < count - boundaryCount - 1\n ? (['ellipsis'] as const)\n : count - boundaryCount > boundaryCount\n ? [count - boundaryCount]\n : []),\n\n ...endPages,\n ];\n\n const hasNext = page < count;\n const hasPrev = page !== 1;\n\n return {\n /** Items and pages to be displayed */\n pages: itemList.map((item, index) => ({\n /** Page number, \"ellipsis\" for ellipsis items */\n page: item,\n /** Unique key for the item */\n key: typeof item === 'number' ? `page-${item}` : `ellipsis-${index}`,\n /** Properties to spread on PaginationButton */\n buttonProps: (typeof item === 'number'\n ? {\n 'aria-current': item === page ? 'page' : undefined,\n onClick: () => setPage(item),\n variant: 'text',\n }\n : null) satisfies PaginationButtonProps | null,\n })),\n /** Properties to spread on PaginationButton used for previous navigation */\n prevButtonProps: {\n disabled: disabled || !hasPrev,\n 'aria-disabled': disabled || !hasPrev, // Using aria-disabled to support all HTML elements if asChild is used\n onClick: () => setPage(page - 1),\n variant: 'text',\n } as PaginationButtonProps,\n /** Properties to spread on PaginationButton used for next naviagation */\n nextButtonProps: {\n disabled: disabled || !hasNext,\n 'aria-disabled': disabled || !hasNext, // Using aria-disabled to support all HTML elements if asChild is used\n onClick: () => setPage(page + 1),\n variant: 'text',\n } as PaginationButtonProps,\n /** If previous page action should be shown */\n hasPrev,\n /** If next page action should be shown */\n hasNext,\n };\n }, [boundaryCount, count, disabled, page, setPage, siblingCount]);\n};\n"],"mappings":";;;;AAIA,MAAM,SAAS,OAAe,QAAgB;CAC5C,MAAM,SAAS,MAAM,QAAQ;AAC7B,QAAO,MAAM,KAAK,EAAE,QAAQ,GAAG,GAAG,MAAM,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmEpD,MAAa,iBAAiB,EAC5B,OACA,MAAM,UACN,aACA,gBAAgB,GAChB,eAAe,GACf,WAAW,OACX,mBACwB;CACxB,MAAM,CAAC,MAAM,WAAW,qBAAqB;EAC3C,MAAM;EACN,UAAU;EACV,aAAa,eAAe;EAC5B,QAAQ;EACT,CAAC;AAEF,QAAO,cAAc;EACnB,MAAM,aAAa,MAAM,GAAG,KAAK,IAAI,eAAe,MAAM,CAAC;EAC3D,MAAM,WAAW,MAAM,KAAK,IAAI,QAAQ,gBAAgB,GAAG,gBAAgB,EAAE,EAAE,MAAM;EAErF,MAAM,gBAAgB,KAAK,IACzB,KAAK,IAEH,OAAO,cAEP,QAAQ,gBAAgB,eAAe,IAAI,EAC5C,EAED,gBAAgB,EACjB;EAED,MAAM,cAAc,KAAK,IACvB,KAAK,IAEH,OAAO,cAEP,gBAAgB,eAAe,IAAI,EACpC,EAED,QAAQ,gBAAgB,EACzB;EAGD,MAAMA,WAAoC;GACxC,GAAG;GAGH,GAAI,gBAAgB,gBAAgB,IAC/B,CAAC,WAAW,GACb,gBAAgB,IAAI,QAAQ,gBAC1B,CAAC,gBAAgB,EAAE,GACnB,EAAE;GAGR,GAAG,MAAM,eAAe,YAAY;GAGpC,GAAI,cAAc,QAAQ,gBAAgB,IACrC,CAAC,WAAW,GACb,QAAQ,gBAAgB,gBACtB,CAAC,QAAQ,cAAc,GACvB,EAAE;GAER,GAAG;GACJ;EAED,MAAM,UAAU,OAAO;EACvB,MAAM,UAAU,SAAS;AAEzB,SAAO;GAEL,OAAO,SAAS,KAAK,MAAM,WAAW;IAEpC,MAAM;IAEN,KAAK,OAAO,SAAS,WAAW,QAAQ,SAAS,YAAY;IAE7D,aAAc,OAAO,SAAS,WAC1B;KACE,gBAAgB,SAAS,OAAO,SAAS;KACzC,eAAe,QAAQ,KAAK;KAC5B,SAAS;KACV,GACD;IACL,EAAE;GAEH,iBAAiB;IACf,UAAU,YAAY,CAAC;IACvB,iBAAiB,YAAY,CAAC;IAC9B,eAAe,QAAQ,OAAO,EAAE;IAChC,SAAS;IACV;GAED,iBAAiB;IACf,UAAU,YAAY,CAAC;IACvB,iBAAiB,YAAY,CAAC;IAC9B,eAAe,QAAQ,OAAO,EAAE;IAChC,SAAS;IACV;GAED;GAEA;GACD;IACA;EAAC;EAAe;EAAO;EAAU;EAAM;EAAS;EAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollDirection-
|
|
1
|
+
{"version":3,"file":"useScrollDirection-D7_FOiXc.mjs","names":[],"sources":["../src/utilities/hooks/useScrollDirection/useScrollDirection.tsx"],"sourcesContent":["import { useEffect, useState } from 'react';\n\n/**\n * A custom React hook that detects the vertical scroll direction of the page.\n *\n * @returns {'up' | 'down' | null} The current scroll direction. Returns `null` on the initial render.\n * The direction is only updated if the scroll distance exceeds a 5px threshold to prevent sensitivity to minor scroll jitter.\n */\nexport const useScrollDirection = () => {\n const [scrollDirection, setScrollDirection] = useState<'up' | 'down' | null>(null);\n useEffect(() => {\n let lastScrollY = window.pageYOffset;\n const updateScrollDirection = () => {\n const scrollY = window.pageYOffset;\n const direction = scrollY > lastScrollY ? 'down' : 'up';\n if (direction !== scrollDirection && (scrollY - lastScrollY > 5 || scrollY - lastScrollY < -5)) {\n setScrollDirection(direction);\n }\n lastScrollY = scrollY > 0 ? scrollY : 0;\n };\n window.addEventListener('scroll', updateScrollDirection);\n return () => window.removeEventListener('scroll', updateScrollDirection);\n }, [scrollDirection]);\n\n return scrollDirection;\n};\n"],"mappings":";;;;;;;;;AAQA,MAAa,2BAA2B;CACtC,MAAM,CAAC,iBAAiB,sBAAsB,SAA+B,KAAK;AAClF,iBAAgB;EACd,IAAI,cAAc,OAAO;EACzB,MAAM,8BAA8B;GAClC,MAAM,UAAU,OAAO;GACvB,MAAM,YAAY,UAAU,cAAc,SAAS;AACnD,OAAI,cAAc,oBAAoB,UAAU,cAAc,KAAK,UAAU,cAAc,IACzF,oBAAmB,UAAU;AAE/B,iBAAc,UAAU,IAAI,UAAU;;AAExC,SAAO,iBAAiB,UAAU,sBAAsB;AACxD,eAAa,OAAO,oBAAoB,UAAU,sBAAsB;IACvE,CAAC,gBAAgB,CAAC;AAErB,QAAO"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { r as useCheckboxGroup, t as UseCheckboxGroupOptions } from "../../useCheckboxGroup-DBBHH8cS.mjs";
|
|
2
2
|
import { t as useIsomorphicLayoutEffect } from "../../useIsomorphicLayoutEffect-DpkpaE5o.mjs";
|
|
3
3
|
import "../../types-BcT-ov7S.mjs";
|
|
4
|
-
import { i as usePagination, r as UsePaginationProps } from "../../alert-footer-
|
|
5
|
-
import "../../dialog-trigger-context-
|
|
6
|
-
import "../../drawer-trigger-context-
|
|
7
|
-
import "../../popover-trigger-context-
|
|
8
|
-
import "../../dropdown-item-
|
|
9
|
-
import "../../dropdown-list-
|
|
10
|
-
import "../../footer-links-
|
|
11
|
-
import "../../pagination-item-
|
|
12
|
-
import "../../sticky-header-
|
|
4
|
+
import { i as usePagination, r as UsePaginationProps } from "../../alert-footer-CeAZVfGI.mjs";
|
|
5
|
+
import "../../dialog-trigger-context-CminopbC.mjs";
|
|
6
|
+
import "../../drawer-trigger-context-Bwc8d7BC.mjs";
|
|
7
|
+
import "../../popover-trigger-context-NCadJZ4y.mjs";
|
|
8
|
+
import "../../dropdown-item-CEMtF8fR.mjs";
|
|
9
|
+
import "../../dropdown-list-CjL1emP8.mjs";
|
|
10
|
+
import "../../footer-links-BAi8O30F.mjs";
|
|
11
|
+
import "../../pagination-item-DKoGLZxn.mjs";
|
|
12
|
+
import "../../sticky-header-LOTHDUEd.mjs";
|
|
13
13
|
import "../../index-9o7w1k2p.mjs";
|
|
14
14
|
import { t as useIsElementAboveViewport } from "../../useIsElementAboveViewport-Dm5KwNnK.mjs";
|
|
15
15
|
import { t as useScrollDirection } from "../../useScrollDirection-D8-lMWT2.mjs";
|
|
16
16
|
import { n as useMediaQuery, t as UseMediaQueryOptions } from "../../useMediaQuery-CRVu5ZHm.mjs";
|
|
17
|
-
import "../../types-Bljf8GkA.mjs";
|
|
18
17
|
export { UseCheckboxGroupOptions, UseMediaQueryOptions, UsePaginationProps, useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as useCheckboxGroup } from "../../useCheckboxGroup-
|
|
2
|
-
import { t as useIsomorphicLayoutEffect } from "../../useIsomorphicLayoutEffect-
|
|
3
|
-
import { t as usePagination } from "../../usePagination-
|
|
4
|
-
import { t as useIsElementAboveViewport } from "../../useIsElementAboveViewport-
|
|
5
|
-
import { t as useScrollDirection } from "../../useScrollDirection-
|
|
6
|
-
import { t as useMediaQuery } from "../../useMediaQuery-
|
|
7
|
-
import "../../hooks-
|
|
1
|
+
import { t as useCheckboxGroup } from "../../useCheckboxGroup-DWqqNSFY.mjs";
|
|
2
|
+
import { t as useIsomorphicLayoutEffect } from "../../useIsomorphicLayoutEffect-B9zYV7Dq.mjs";
|
|
3
|
+
import { t as usePagination } from "../../usePagination-9ht6tr5V.mjs";
|
|
4
|
+
import { t as useIsElementAboveViewport } from "../../useIsElementAboveViewport-DTgaSPiF.mjs";
|
|
5
|
+
import { t as useScrollDirection } from "../../useScrollDirection-D7_FOiXc.mjs";
|
|
6
|
+
import { t as useMediaQuery } from "../../useMediaQuery-I2eiGl9n.mjs";
|
|
7
|
+
import "../../hooks-DHUUJnUb.mjs";
|
|
8
8
|
|
|
9
9
|
export { useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../useIsomorphicLayoutEffect-
|
|
2
|
-
import { t as useMediaQuery } from "../../../useMediaQuery-
|
|
1
|
+
import "../../../useIsomorphicLayoutEffect-B9zYV7Dq.mjs";
|
|
2
|
+
import { t as useMediaQuery } from "../../../useMediaQuery-I2eiGl9n.mjs";
|
|
3
3
|
|
|
4
4
|
export { useMediaQuery };
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import "../../../useCheckboxGroup-DBBHH8cS.mjs";
|
|
2
2
|
import "../../../useIsomorphicLayoutEffect-DpkpaE5o.mjs";
|
|
3
3
|
import "../../../types-BcT-ov7S.mjs";
|
|
4
|
-
import { i as usePagination, r as UsePaginationProps } from "../../../alert-footer-
|
|
5
|
-
import "../../../dialog-trigger-context-
|
|
6
|
-
import "../../../drawer-trigger-context-
|
|
7
|
-
import "../../../popover-trigger-context-
|
|
8
|
-
import "../../../dropdown-item-
|
|
9
|
-
import "../../../dropdown-list-
|
|
10
|
-
import "../../../footer-links-
|
|
11
|
-
import "../../../pagination-item-
|
|
12
|
-
import "../../../sticky-header-
|
|
4
|
+
import { i as usePagination, r as UsePaginationProps } from "../../../alert-footer-CeAZVfGI.mjs";
|
|
5
|
+
import "../../../dialog-trigger-context-CminopbC.mjs";
|
|
6
|
+
import "../../../drawer-trigger-context-Bwc8d7BC.mjs";
|
|
7
|
+
import "../../../popover-trigger-context-NCadJZ4y.mjs";
|
|
8
|
+
import "../../../dropdown-item-CEMtF8fR.mjs";
|
|
9
|
+
import "../../../dropdown-list-CjL1emP8.mjs";
|
|
10
|
+
import "../../../footer-links-BAi8O30F.mjs";
|
|
11
|
+
import "../../../pagination-item-DKoGLZxn.mjs";
|
|
12
|
+
import "../../../sticky-header-LOTHDUEd.mjs";
|
|
13
13
|
import "../../../index-9o7w1k2p.mjs";
|
|
14
14
|
import "../../../useIsElementAboveViewport-Dm5KwNnK.mjs";
|
|
15
|
-
import "../../../useScrollDirection-D8-lMWT2.mjs";
|
|
16
|
-
import "../../../useMediaQuery-CRVu5ZHm.mjs";
|
|
17
|
-
import "../../../types-Bljf8GkA.mjs";
|
|
18
15
|
export { UsePaginationProps, usePagination };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { r as useCheckboxGroup, t as UseCheckboxGroupOptions } from "../useCheckboxGroup-DBBHH8cS.mjs";
|
|
2
2
|
import { t as useIsomorphicLayoutEffect } from "../useIsomorphicLayoutEffect-DpkpaE5o.mjs";
|
|
3
3
|
import "../types-BcT-ov7S.mjs";
|
|
4
|
-
import { i as usePagination, r as UsePaginationProps } from "../alert-footer-
|
|
5
|
-
import "../dialog-trigger-context-
|
|
6
|
-
import "../drawer-trigger-context-
|
|
7
|
-
import "../popover-trigger-context-
|
|
8
|
-
import "../dropdown-item-
|
|
9
|
-
import "../dropdown-list-
|
|
10
|
-
import "../footer-links-
|
|
11
|
-
import "../pagination-item-
|
|
12
|
-
import "../sticky-header-
|
|
4
|
+
import { i as usePagination, r as UsePaginationProps } from "../alert-footer-CeAZVfGI.mjs";
|
|
5
|
+
import "../dialog-trigger-context-CminopbC.mjs";
|
|
6
|
+
import "../drawer-trigger-context-Bwc8d7BC.mjs";
|
|
7
|
+
import "../popover-trigger-context-NCadJZ4y.mjs";
|
|
8
|
+
import "../dropdown-item-CEMtF8fR.mjs";
|
|
9
|
+
import "../dropdown-list-CjL1emP8.mjs";
|
|
10
|
+
import "../footer-links-BAi8O30F.mjs";
|
|
11
|
+
import "../pagination-item-DKoGLZxn.mjs";
|
|
12
|
+
import "../sticky-header-LOTHDUEd.mjs";
|
|
13
13
|
import "../index-9o7w1k2p.mjs";
|
|
14
14
|
import { t as useIsElementAboveViewport } from "../useIsElementAboveViewport-Dm5KwNnK.mjs";
|
|
15
15
|
import { t as useScrollDirection } from "../useScrollDirection-D8-lMWT2.mjs";
|
package/dist/utilities/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as useCheckboxGroup } from "../useCheckboxGroup-
|
|
2
|
-
import { t as useIsomorphicLayoutEffect } from "../useIsomorphicLayoutEffect-
|
|
3
|
-
import { t as usePagination } from "../usePagination-
|
|
4
|
-
import { t as useIsElementAboveViewport } from "../useIsElementAboveViewport-
|
|
5
|
-
import { t as useScrollDirection } from "../useScrollDirection-
|
|
6
|
-
import { t as useMediaQuery } from "../useMediaQuery-
|
|
7
|
-
import "../hooks-
|
|
8
|
-
import "../utilities-
|
|
1
|
+
import { t as useCheckboxGroup } from "../useCheckboxGroup-DWqqNSFY.mjs";
|
|
2
|
+
import { t as useIsomorphicLayoutEffect } from "../useIsomorphicLayoutEffect-B9zYV7Dq.mjs";
|
|
3
|
+
import { t as usePagination } from "../usePagination-9ht6tr5V.mjs";
|
|
4
|
+
import { t as useIsElementAboveViewport } from "../useIsElementAboveViewport-DTgaSPiF.mjs";
|
|
5
|
+
import { t as useScrollDirection } from "../useScrollDirection-D7_FOiXc.mjs";
|
|
6
|
+
import { t as useMediaQuery } from "../useMediaQuery-I2eiGl9n.mjs";
|
|
7
|
+
import "../hooks-DHUUJnUb.mjs";
|
|
8
|
+
import "../utilities-D-mDqsCm.mjs";
|
|
9
9
|
|
|
10
10
|
export { useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-message-
|
|
1
|
+
{"version":3,"file":"validation-message-C60moOAJ.mjs","names":[],"sources":["../src/components/validation-message/validation-message.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport type { AsChildProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { ErrorIcon } from '@bi-digital/icons';\n\nexport type ValidationMessageProps = MergeRight<\n AsChildProps & HTMLAttributes<HTMLParagraphElement>,\n {\n /** Override the default warning icon. Must be a BiIcon to work correctly. */\n icon?: ReactNode;\n ref?: Ref<HTMLParagraphElement>;\n }\n>;\n\nexport const ValidationMessage = ({ children, className, icon, asChild, ref, ...props }: ValidationMessageProps) => {\n const Component = asChild ? Slot : 'p';\n\n return (\n <Component className={clsx('bi-validation-message', className)} ref={ref} {...props}>\n {icon || <ErrorIcon />}\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;;;AAgBA,MAAa,qBAAqB,EAAE,UAAU,WAAW,MAAM,SAAS,KAAK,GAAG,YAAoC;AAGlH,QACE,qBAHgB,UAAU,OAAO;EAGtB,WAAW,KAAK,yBAAyB,UAAU;EAAO;EAAK,GAAI;aAC3E,QAAQ,oBAAC,cAAY,EACrB;GACS"}
|
package/dist/vanilla/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as initDropdown, t as InitDropdownOptions } from "../index-8YuwT3Gl.mjs";
|
|
2
|
-
import { n as initPopover, t as InitPopoverOptions } from "../index-
|
|
2
|
+
import { n as arrowPseudoElement, r as initPopover, t as InitPopoverOptions } from "../index-CjIbpoNY.mjs";
|
|
3
3
|
import { n as initSubNavbar, t as InitSubNavbarOptions } from "../index-O2Stf8CC.mjs";
|
|
4
|
-
export { InitDropdownOptions, InitPopoverOptions, InitSubNavbarOptions, initDropdown, initPopover, initSubNavbar };
|
|
4
|
+
export { InitDropdownOptions, InitPopoverOptions, InitSubNavbarOptions, arrowPseudoElement, initDropdown, initPopover, initSubNavbar };
|
package/dist/vanilla/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as initDropdown } from "../dropdown-
|
|
1
|
+
import { n as initPopover, t as arrowPseudoElement } from "../popover-ChAkuQdg.mjs";
|
|
2
|
+
import { t as initDropdown } from "../dropdown-DuZCbT-j.mjs";
|
|
3
3
|
import { t as initSubNavbar } from "../sub-navbar-Cnnpg72B.mjs";
|
|
4
4
|
|
|
5
|
-
export { initDropdown, initPopover, initSubNavbar };
|
|
5
|
+
export { arrowPseudoElement, initDropdown, initPopover, initSubNavbar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as initPopover, t as InitPopoverOptions } from "../../index-
|
|
2
|
-
export { InitPopoverOptions, initPopover };
|
|
1
|
+
import { n as arrowPseudoElement, r as initPopover, t as InitPopoverOptions } from "../../index-CjIbpoNY.mjs";
|
|
2
|
+
export { InitPopoverOptions, arrowPseudoElement, initPopover };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as initPopover, t as arrowPseudoElement } from "../../popover-ChAkuQdg.mjs";
|
|
2
2
|
|
|
3
|
-
export { initPopover };
|
|
3
|
+
export { arrowPseudoElement, initPopover };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bi-digital/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.6",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "^20.19.0 || >=22.12.0"
|
|
7
7
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
42
42
|
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
43
43
|
"clsx": "^2.1.1",
|
|
44
|
-
"@bi-digital/icons": "0.6.
|
|
44
|
+
"@bi-digital/icons": "0.6.6"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@testing-library/dom": "^10.4.1",
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
"@types/react": "^19.2.3",
|
|
52
52
|
"@types/react-dom": "^19.2.3",
|
|
53
53
|
"@vitest/coverage-v8": "^4.0.8",
|
|
54
|
-
"@vitest/expect": "^4.0.
|
|
54
|
+
"@vitest/expect": "^4.0.15",
|
|
55
55
|
"jsdom": "^27.2.0",
|
|
56
56
|
"react": "^19.2.0",
|
|
57
57
|
"react-dom": "^19.2.0",
|
|
58
58
|
"tsconfck": "^3.1.6",
|
|
59
|
-
"tsdown": "^0.
|
|
59
|
+
"tsdown": "^0.17.0",
|
|
60
60
|
"vitest": "^4.0.8"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": "^19",
|
|
64
64
|
"react-dom": "^19",
|
|
65
|
-
"@bi-digital/css": "0.6.
|
|
65
|
+
"@bi-digital/css": "0.6.6"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsdown",
|