@bi-digital/react 0.9.0 → 0.11.0
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-CHHPzMiX.d.mts → alert-footer-D_kCDrhn.d.mts} +109 -232
- package/dist/components/alert/alert-footer.d.mts +1 -14
- package/dist/components/alert/alert-footer.mjs +15 -2
- package/dist/components/alert/alert-footer.mjs.map +1 -0
- package/dist/components/alert/alert.d.mts +1 -14
- package/dist/components/alert/alert.mjs +33 -2
- package/dist/components/alert/alert.mjs.map +1 -0
- package/dist/components/alert/index.d.mts +1 -14
- package/dist/components/alert/index.mjs +3 -5
- package/dist/components/avatar/avatar.d.mts +1 -14
- package/dist/components/avatar/avatar.mjs +37 -2
- package/dist/components/avatar/avatar.mjs.map +1 -0
- package/dist/components/avatar/index.d.mts +1 -14
- package/dist/components/avatar/index.mjs +2 -4
- package/dist/components/badge/badge.d.mts +1 -14
- package/dist/components/badge/badge.mjs +19 -2
- package/dist/components/badge/badge.mjs.map +1 -0
- package/dist/components/badge/index.d.mts +1 -14
- package/dist/components/badge/index.mjs +2 -4
- package/dist/components/button/button.d.mts +1 -14
- package/dist/components/button/button.mjs +39 -4
- package/dist/components/button/button.mjs.map +1 -0
- package/dist/components/button/index.d.mts +1 -14
- package/dist/components/button/index.mjs +2 -6
- package/dist/components/card/card-action.d.mts +1 -14
- package/dist/components/card/card-action.mjs +21 -6
- package/dist/components/card/card-action.mjs.map +1 -0
- package/dist/components/card/card-actions.d.mts +1 -14
- package/dist/components/card/card-actions.mjs +14 -2
- package/dist/components/card/card-actions.mjs.map +1 -0
- package/dist/components/card/card-content.d.mts +1 -14
- package/dist/components/card/card-content.mjs +15 -2
- package/dist/components/card/card-content.mjs.map +1 -0
- package/dist/components/card/card-date.d.mts +1 -14
- package/dist/components/card/card-date.mjs +14 -2
- package/dist/components/card/card-date.mjs.map +1 -0
- package/dist/components/card/card-header.d.mts +1 -14
- package/dist/components/card/card-header.mjs +37 -2
- package/dist/components/card/card-header.mjs.map +1 -0
- package/dist/components/card/card-media.d.mts +1 -14
- package/dist/components/card/card-media.mjs +17 -2
- package/dist/components/card/card-media.mjs.map +1 -0
- package/dist/components/card/card.d.mts +1 -14
- package/dist/components/card/card.mjs +19 -2
- package/dist/components/card/card.mjs.map +1 -0
- package/dist/components/card/index.d.mts +1 -14
- package/dist/components/card/index.mjs +8 -14
- package/dist/components/checkbox/checkbox-subsection.d.mts +1 -14
- package/dist/components/checkbox/checkbox-subsection.mjs +15 -2
- package/dist/components/checkbox/checkbox-subsection.mjs.map +1 -0
- package/dist/components/checkbox/checkbox.d.mts +1 -14
- package/dist/components/checkbox/checkbox.mjs +59 -11
- package/dist/components/checkbox/checkbox.mjs.map +1 -0
- package/dist/components/checkbox/index.d.mts +1 -14
- package/dist/components/checkbox/index.mjs +3 -14
- package/dist/components/chip/chip.d.mts +1 -14
- package/dist/components/chip/chip.mjs +24 -2
- package/dist/components/chip/chip.mjs.map +1 -0
- package/dist/components/chip/index.d.mts +1 -14
- package/dist/components/chip/index.mjs +2 -4
- package/dist/components/details/details-content.d.mts +1 -14
- package/dist/components/details/details-content.mjs +20 -2
- package/dist/components/details/details-content.mjs.map +1 -0
- package/dist/components/details/details-summary.d.mts +1 -14
- package/dist/components/details/details-summary.mjs +20 -2
- package/dist/components/details/details-summary.mjs.map +1 -0
- package/dist/components/details/details.d.mts +1 -14
- package/dist/components/details/details.mjs +33 -2
- package/dist/components/details/details.mjs.map +1 -0
- package/dist/components/details/index.d.mts +1 -14
- package/dist/components/details/index.mjs +4 -6
- package/dist/components/dialog/dialog-close-button.d.mts +1 -14
- package/dist/components/dialog/dialog-close-button.mjs +28 -6
- package/dist/components/dialog/dialog-close-button.mjs.map +1 -0
- package/dist/components/dialog/dialog-content.d.mts +1 -14
- package/dist/components/dialog/dialog-content.mjs +16 -2
- package/dist/components/dialog/dialog-content.mjs.map +1 -0
- package/dist/components/dialog/dialog-footer.d.mts +1 -14
- package/dist/components/dialog/dialog-footer.mjs +16 -2
- package/dist/components/dialog/dialog-footer.mjs.map +1 -0
- package/dist/components/dialog/dialog-header.d.mts +1 -14
- package/dist/components/dialog/dialog-header.mjs +16 -2
- package/dist/components/dialog/dialog-header.mjs.map +1 -0
- package/dist/components/dialog/dialog-trigger-context.d.mts +1 -1
- package/dist/components/dialog/dialog-trigger-context.mjs +21 -2
- package/dist/components/dialog/dialog-trigger-context.mjs.map +1 -0
- package/dist/components/dialog/dialog-trigger.d.mts +1 -14
- package/dist/components/dialog/dialog-trigger.mjs +20 -7
- package/dist/components/dialog/dialog-trigger.mjs.map +1 -0
- package/dist/components/dialog/dialog.d.mts +1 -14
- package/dist/components/dialog/dialog.mjs +62 -4
- package/dist/components/dialog/dialog.mjs.map +1 -0
- package/dist/components/dialog/index.d.mts +2 -14
- package/dist/components/dialog/index.mjs +8 -15
- package/dist/components/dropdown/dropdown-button.d.mts +1 -14
- package/dist/components/dropdown/dropdown-button.mjs +14 -6
- package/dist/components/dropdown/dropdown-button.mjs.map +1 -0
- package/dist/components/dropdown/dropdown-item.d.mts +1 -1
- package/dist/components/dropdown/dropdown-item.mjs +9 -2
- package/dist/components/dropdown/dropdown-item.mjs.map +1 -0
- package/dist/components/dropdown/dropdown-list.d.mts +1 -1
- package/dist/components/dropdown/dropdown-list.mjs +9 -2
- package/dist/components/dropdown/dropdown-list.mjs.map +1 -0
- package/dist/components/dropdown/dropdown-trigger-context.d.mts +1 -14
- package/dist/components/dropdown/dropdown-trigger-context.mjs +27 -12
- package/dist/components/dropdown/dropdown-trigger-context.mjs.map +1 -0
- package/dist/components/dropdown/dropdown-trigger.d.mts +1 -14
- package/dist/components/dropdown/dropdown-trigger.mjs +12 -12
- package/dist/components/dropdown/dropdown-trigger.mjs.map +1 -0
- package/dist/components/dropdown/dropdown.d.mts +1 -14
- package/dist/components/dropdown/dropdown.mjs +43 -12
- package/dist/components/dropdown/dropdown.mjs.map +1 -0
- package/dist/components/dropdown/index.d.mts +3 -14
- package/dist/components/dropdown/index.mjs +7 -19
- package/dist/components/field/field-affix.d.mts +1 -14
- package/dist/components/field/field-affix.mjs +43 -2
- package/dist/components/field/field-affix.mjs.map +1 -0
- package/dist/components/field/field-description.d.mts +1 -14
- package/dist/components/field/field-description.mjs +14 -2
- package/dist/components/field/field-description.mjs.map +1 -0
- package/dist/components/field/field.d.mts +1 -14
- package/dist/components/field/field.mjs +28 -2
- package/dist/components/field/field.mjs.map +1 -0
- package/dist/components/field/index.d.mts +1 -14
- package/dist/components/field/index.mjs +4 -6
- package/dist/components/fieldset/fieldset-description.d.mts +1 -14
- package/dist/components/fieldset/fieldset-description.mjs +12 -2
- package/dist/components/fieldset/fieldset-description.mjs.map +1 -0
- package/dist/components/fieldset/fieldset-legend.d.mts +1 -14
- package/dist/components/fieldset/fieldset-legend.mjs +18 -4
- package/dist/components/fieldset/fieldset-legend.mjs.map +1 -0
- package/dist/components/fieldset/fieldset.d.mts +1 -14
- package/dist/components/fieldset/fieldset.mjs +15 -2
- package/dist/components/fieldset/fieldset.mjs.map +1 -0
- package/dist/components/fieldset/index.d.mts +1 -14
- package/dist/components/fieldset/index.mjs +4 -8
- package/dist/components/filter-group/filter-group.d.mts +1 -14
- package/dist/components/filter-group/filter-group.mjs +38 -2
- package/dist/components/filter-group/filter-group.mjs.map +1 -0
- package/dist/components/filter-group/index.d.mts +1 -14
- package/dist/components/filter-group/index.mjs +2 -4
- package/dist/components/footer/footer-links.d.mts +1 -1
- package/dist/components/footer/footer-links.mjs +13 -2
- package/dist/components/footer/footer-links.mjs.map +1 -0
- package/dist/components/footer/footer.d.mts +1 -14
- package/dist/components/footer/footer.mjs +110 -6
- package/dist/components/footer/footer.mjs.map +1 -0
- package/dist/components/footer/index.d.mts +2 -14
- package/dist/components/footer/index.mjs +3 -9
- package/dist/components/index.d.mts +9 -15
- package/dist/components/index.mjs +104 -120
- package/dist/components/input/index.d.mts +1 -14
- package/dist/components/input/index.mjs +2 -4
- package/dist/components/input/input.d.mts +1 -14
- package/dist/components/input/input.mjs +23 -2
- package/dist/components/input/input.mjs.map +1 -0
- package/dist/components/label/index.d.mts +1 -14
- package/dist/components/label/index.mjs +2 -4
- package/dist/components/label/label.d.mts +1 -14
- package/dist/components/label/label.mjs +16 -2
- package/dist/components/label/label.mjs.map +1 -0
- package/dist/components/link/index.d.mts +1 -14
- package/dist/components/link/index.mjs +2 -4
- package/dist/components/link/link.d.mts +1 -14
- package/dist/components/link/link.mjs +17 -2
- package/dist/components/link/link.mjs.map +1 -0
- package/dist/components/logo/index.d.mts +1 -14
- package/dist/components/logo/index.mjs +2 -4
- package/dist/components/logo/logo.d.mts +1 -14
- package/dist/components/logo/logo.mjs +17 -2
- package/dist/components/logo/logo.mjs.map +1 -0
- package/dist/components/navbar/index.d.mts +1 -14
- package/dist/components/navbar/index.mjs +3 -13
- package/dist/components/navbar/navbar.d.mts +1 -14
- package/dist/components/navbar/navbar.mjs +22 -4
- package/dist/components/navbar/navbar.mjs.map +1 -0
- package/dist/components/navbar/sub-navbar.d.mts +1 -14
- package/dist/components/navbar/sub-navbar.mjs +27 -8
- package/dist/components/navbar/sub-navbar.mjs.map +1 -0
- package/dist/components/pagination/index.d.mts +2 -14
- package/dist/components/pagination/index.mjs +4 -10
- package/dist/components/pagination/pagination-button.d.mts +1 -14
- package/dist/components/pagination/pagination-button.mjs +13 -6
- package/dist/components/pagination/pagination-button.mjs.map +1 -0
- package/dist/components/pagination/pagination-item.d.mts +1 -1
- package/dist/components/pagination/pagination-item.mjs +13 -2
- package/dist/components/pagination/pagination-item.mjs.map +1 -0
- package/dist/components/pagination/pagination.d.mts +1 -14
- package/dist/components/pagination/pagination.mjs +15 -2
- package/dist/components/pagination/pagination.mjs.map +1 -0
- package/dist/components/popover/index.d.mts +2 -14
- package/dist/components/popover/index.mjs +4 -12
- package/dist/components/popover/popover-trigger-context.d.mts +1 -1
- package/dist/components/popover/popover-trigger-context.mjs +37 -2
- package/dist/components/popover/popover-trigger-context.mjs.map +1 -0
- package/dist/components/popover/popover-trigger.d.mts +1 -14
- package/dist/components/popover/popover-trigger.mjs +43 -7
- package/dist/components/popover/popover-trigger.mjs.map +1 -0
- package/dist/components/popover/popover.d.mts +1 -14
- package/dist/components/popover/popover.mjs +110 -5
- package/dist/components/popover/popover.mjs.map +1 -0
- package/dist/components/radio/index.d.mts +1 -14
- package/dist/components/radio/index.mjs +2 -12
- package/dist/components/radio/radio.d.mts +1 -14
- package/dist/components/radio/radio.mjs +46 -10
- package/dist/components/radio/radio.mjs.map +1 -0
- package/dist/components/search/index.d.mts +1 -14
- package/dist/components/search/index.mjs +2 -14
- package/dist/components/search/search.d.mts +1 -14
- package/dist/components/search/search.mjs +59 -12
- package/dist/components/search/search.mjs.map +1 -0
- package/dist/components/select/index.d.mts +1 -14
- package/dist/components/select/index.mjs +4 -6
- package/dist/components/select/select-optgroup.d.mts +1 -14
- package/dist/components/select/select-optgroup.mjs +12 -2
- package/dist/components/select/select-optgroup.mjs.map +1 -0
- package/dist/components/select/select-option.d.mts +1 -14
- package/dist/components/select/select-option.mjs +12 -2
- package/dist/components/select/select-option.mjs.map +1 -0
- package/dist/components/select/select.d.mts +1 -14
- package/dist/components/select/select.mjs +24 -2
- package/dist/components/select/select.mjs.map +1 -0
- package/dist/components/selectfield/index.d.mts +1 -14
- package/dist/components/selectfield/index.mjs +2 -16
- package/dist/components/selectfield/selectfield.d.mts +1 -14
- package/dist/components/selectfield/selectfield.mjs +55 -14
- package/dist/components/selectfield/selectfield.mjs.map +1 -0
- package/dist/components/skip-link/index.d.mts +1 -14
- package/dist/components/skip-link/index.mjs +2 -4
- package/dist/components/skip-link/skip-link.d.mts +1 -14
- package/dist/components/skip-link/skip-link.mjs +15 -2
- package/dist/components/skip-link/skip-link.mjs.map +1 -0
- package/dist/components/spinner/index.d.mts +1 -14
- package/dist/components/spinner/index.mjs +2 -4
- package/dist/components/spinner/spinner.d.mts +1 -14
- package/dist/components/spinner/spinner.mjs +15 -2
- package/dist/components/spinner/spinner.mjs.map +1 -0
- package/dist/components/sticky-header/index.d.mts +1 -2
- package/dist/components/sticky-header/index.mjs +2 -4
- package/dist/components/sticky-header/sticky-header.d.mts +1 -1
- package/dist/components/sticky-header/sticky-header.mjs +18 -2
- package/dist/components/sticky-header/sticky-header.mjs.map +1 -0
- package/dist/components/switch/index.d.mts +1 -14
- package/dist/components/switch/index.mjs +2 -12
- package/dist/components/switch/switch.d.mts +1 -14
- package/dist/components/switch/switch.mjs +35 -10
- package/dist/components/switch/switch.mjs.map +1 -0
- package/dist/components/tabs/index.d.mts +2 -15
- package/dist/components/tabs/index.mjs +5 -11
- package/dist/components/tabs/tab.d.mts +1 -14
- package/dist/components/tabs/tab.mjs +28 -6
- package/dist/components/tabs/tab.mjs.map +1 -0
- package/dist/components/tabs/tabs-list.d.mts +1 -14
- package/dist/components/tabs/tabs-list.mjs +14 -2
- package/dist/components/tabs/tabs-list.mjs.map +1 -0
- package/dist/components/tabs/tabs-panel.d.mts +1 -14
- package/dist/components/tabs/tabs-panel.mjs +18 -2
- package/dist/components/tabs/tabs-panel.mjs.map +1 -0
- package/dist/components/tabs/tabs.d.mts +2 -15
- package/dist/components/tabs/tabs.mjs +51 -2
- package/dist/components/tabs/tabs.mjs.map +1 -0
- package/dist/components/textarea/index.d.mts +1 -14
- package/dist/components/textarea/index.mjs +2 -4
- package/dist/components/textarea/textarea.d.mts +1 -14
- package/dist/components/textarea/textarea.mjs +15 -2
- package/dist/components/textarea/textarea.mjs.map +1 -0
- package/dist/components/textfield/index.d.mts +1 -14
- package/dist/components/textfield/index.mjs +2 -16
- package/dist/components/textfield/textfield.d.mts +1 -14
- package/dist/components/textfield/textfield.mjs +68 -14
- package/dist/components/textfield/textfield.mjs.map +1 -0
- package/dist/components/validation-message/index.d.mts +1 -14
- package/dist/components/validation-message/index.mjs +2 -4
- package/dist/components/validation-message/validation-message.d.mts +1 -14
- package/dist/components/validation-message/validation-message.mjs +16 -2
- package/dist/components/validation-message/validation-message.mjs.map +1 -0
- package/dist/dialog-trigger-context-CAC7jh1K.d.mts +20 -0
- package/dist/{dropdown-item-wInrqt83.d.mts → dropdown-item-aYyDctA9.d.mts} +3 -3
- package/dist/{dropdown-list-z14BOCh4.d.mts → dropdown-list-Dg3yJhKc.d.mts} +3 -3
- package/dist/{footer-links-C7vC-VD7.d.mts → footer-links-BiBVxNWE.d.mts} +3 -3
- package/dist/main.d.mts +15 -18
- package/dist/main.mjs +76 -121
- package/dist/{pagination-item-cKOuhfhM.d.mts → pagination-item-BNyKs6wz.d.mts} +3 -3
- package/dist/{popover-trigger-context-sQGC75uf.d.mts → popover-trigger-context-DTh-_AMm.d.mts} +5 -5
- package/dist/{sticky-header-Y0uT-nWI.d.mts → sticky-header-CLZPboYg.d.mts} +3 -3
- package/dist/{types-Bgj7p8nD.d.mts → types-BXsMIYrD.d.mts} +1 -1
- package/dist/{types-Biyhmxh9.d.mts → types-CgAV-Uiu.d.mts} +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +1 -1
- package/dist/{useCheckboxGroup-BUpI46_M.d.mts → useCheckboxGroup-Boc_tLJ3.d.mts} +1 -1
- package/dist/{useIsElementAboveViewport-BcIGWQqn.d.mts → useIsElementAboveViewport-DmYCeDwm.d.mts} +1 -1
- package/dist/useIsomorphicLayoutEffect-DXCY5AxR.d.mts +7 -0
- package/dist/{useMediaQuery-CIi3MXay.d.mts → useMediaQuery-Cz0DvE8S.d.mts} +1 -1
- package/dist/{useScrollDirection-Cm7w2CbB.d.mts → useScrollDirection-CepdY5lA.d.mts} +1 -1
- package/dist/utilities/hooks/index.d.mts +6 -16
- package/dist/utilities/hooks/index.mjs +7 -9
- package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.mts +1 -1
- package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.mjs +16 -2
- package/dist/{useCheckboxGroup-B2Px3eiz.mjs.map → utilities/hooks/useCheckboxGroup/useCheckboxGroup.mjs.map} +1 -1
- package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.d.mts +1 -1
- package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.mjs +18 -2
- package/dist/{useIsElementAboveViewport-BaSLEYQk.mjs.map → utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.mjs.map} +1 -1
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.mts +1 -1
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -2
- package/dist/{useIsomorphicLayoutEffect-Bn8aiGVW.mjs.map → utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs.map} +1 -1
- package/dist/utilities/hooks/useMediaQuery/useMediaQuery.d.mts +1 -1
- package/dist/utilities/hooks/useMediaQuery/useMediaQuery.mjs +42 -3
- package/dist/{useMediaQuery-BRGC6S33.mjs.map → utilities/hooks/useMediaQuery/useMediaQuery.mjs.map} +1 -1
- package/dist/utilities/hooks/useMergeRefs/useMergeRefs.mjs +40 -2
- package/dist/{useMergeRefs-DeEL5hK6.mjs.map → utilities/hooks/useMergeRefs/useMergeRefs.mjs.map} +1 -1
- package/dist/utilities/hooks/usePagination/usePagination.d.mts +1 -14
- package/dist/utilities/hooks/usePagination/usePagination.mjs +95 -2
- package/dist/{usePagination-aBXSjQBp.mjs.map → utilities/hooks/usePagination/usePagination.mjs.map} +1 -1
- package/dist/utilities/hooks/useScrollDirection/useScrollDirection.d.mts +1 -1
- package/dist/utilities/hooks/useScrollDirection/useScrollDirection.mjs +26 -2
- package/dist/{useScrollDirection-C36-HP3S.mjs.map → utilities/hooks/useScrollDirection/useScrollDirection.mjs.map} +1 -1
- package/dist/utilities/index.d.mts +7 -17
- package/dist/utilities/index.mjs +8 -9
- package/dist/utilities/types.d.mts +1 -1
- package/dist/utilities/types.mjs +1 -1
- package/dist/vanilla/dropdown/index.mjs +2 -3
- package/dist/vanilla/dropdown/index.mjs.map +1 -1
- package/dist/vanilla/index.mjs +3 -3
- package/dist/vanilla/popover/index.mjs +83 -2
- package/dist/vanilla/popover/index.mjs.map +1 -0
- package/dist/vanilla/sub-navbar/index.mjs +1 -1
- package/dist/vanilla/sub-navbar/index.mjs.map +1 -1
- package/package.json +14 -16
- package/dist/alert-B-qfyhxc.mjs +0 -35
- package/dist/alert-B-qfyhxc.mjs.map +0 -1
- package/dist/alert-footer-CiXj-PGD.mjs +0 -17
- package/dist/alert-footer-CiXj-PGD.mjs.map +0 -1
- package/dist/alert-vOhEayej.mjs +0 -1
- package/dist/avatar-5e5_er9-.mjs +0 -1
- package/dist/avatar-BEjjwjRn.mjs +0 -39
- package/dist/avatar-BEjjwjRn.mjs.map +0 -1
- package/dist/badge-D6dJHxi2.mjs +0 -1
- package/dist/badge-tAjYsQEq.mjs +0 -21
- package/dist/badge-tAjYsQEq.mjs.map +0 -1
- package/dist/button-BoSub8TT.mjs +0 -1
- package/dist/button-Df0Se51p.mjs +0 -40
- package/dist/button-Df0Se51p.mjs.map +0 -1
- package/dist/card-BwkKWLCT.mjs +0 -21
- package/dist/card-BwkKWLCT.mjs.map +0 -1
- package/dist/card-action-DAFhhfZ5.mjs +0 -22
- package/dist/card-action-DAFhhfZ5.mjs.map +0 -1
- package/dist/card-actions-DQXkkGKI.mjs +0 -16
- package/dist/card-actions-DQXkkGKI.mjs.map +0 -1
- package/dist/card-content-zQQxsR9_.mjs +0 -17
- package/dist/card-content-zQQxsR9_.mjs.map +0 -1
- package/dist/card-date-PwKzeTzD.mjs +0 -16
- package/dist/card-date-PwKzeTzD.mjs.map +0 -1
- package/dist/card-header-DkKr5o8N.mjs +0 -39
- package/dist/card-header-DkKr5o8N.mjs.map +0 -1
- package/dist/card-media-Bv2VWU3K.mjs +0 -19
- package/dist/card-media-Bv2VWU3K.mjs.map +0 -1
- package/dist/card-qYOn8pIl.mjs +0 -1
- package/dist/checkbox-BPiURV39.mjs +0 -1
- package/dist/checkbox-DLGjrSt2.mjs +0 -58
- package/dist/checkbox-DLGjrSt2.mjs.map +0 -1
- package/dist/checkbox-subsection-Dq60blow.mjs +0 -17
- package/dist/checkbox-subsection-Dq60blow.mjs.map +0 -1
- package/dist/chip-BEnK1Tg4.mjs +0 -1
- package/dist/chip-BzRByPTB.mjs +0 -26
- package/dist/chip-BzRByPTB.mjs.map +0 -1
- package/dist/components/drawer/drawer-close-button.d.mts +0 -15
- package/dist/components/drawer/drawer-close-button.mjs +0 -16
- package/dist/components/drawer/drawer-content.d.mts +0 -15
- package/dist/components/drawer/drawer-content.mjs +0 -16
- package/dist/components/drawer/drawer-footer.d.mts +0 -15
- package/dist/components/drawer/drawer-footer.mjs +0 -16
- package/dist/components/drawer/drawer-header.d.mts +0 -15
- package/dist/components/drawer/drawer-header.mjs +0 -16
- package/dist/components/drawer/drawer-trigger-context.d.mts +0 -2
- package/dist/components/drawer/drawer-trigger-context.mjs +0 -16
- package/dist/components/drawer/drawer-trigger.d.mts +0 -15
- package/dist/components/drawer/drawer-trigger.mjs +0 -16
- package/dist/components/drawer/drawer.d.mts +0 -15
- package/dist/components/drawer/drawer.mjs +0 -16
- package/dist/components/drawer/index.d.mts +0 -15
- package/dist/components/drawer/index.mjs +0 -23
- package/dist/details-BFP82eFe.mjs +0 -35
- package/dist/details-BFP82eFe.mjs.map +0 -1
- package/dist/details-BTkav6FR.mjs +0 -1
- package/dist/details-content-B-YYBzuY.mjs +0 -22
- package/dist/details-content-B-YYBzuY.mjs.map +0 -1
- package/dist/details-summary-BiXSfZfC.mjs +0 -22
- package/dist/details-summary-BiXSfZfC.mjs.map +0 -1
- package/dist/dialog-CRNSJEfp.mjs +0 -91
- package/dist/dialog-CRNSJEfp.mjs.map +0 -1
- package/dist/dialog-DOBwB8ll.mjs +0 -1
- package/dist/dialog-close-button-CJZrsHfN.mjs +0 -24
- package/dist/dialog-close-button-CJZrsHfN.mjs.map +0 -1
- package/dist/dialog-content-CrbstN2A.mjs +0 -18
- package/dist/dialog-content-CrbstN2A.mjs.map +0 -1
- package/dist/dialog-footer-CFNIIiwS.mjs +0 -18
- package/dist/dialog-footer-CFNIIiwS.mjs.map +0 -1
- package/dist/dialog-header-Duz76tEF.mjs +0 -18
- package/dist/dialog-header-Duz76tEF.mjs.map +0 -1
- package/dist/dialog-trigger-CEvyANEF.mjs +0 -22
- package/dist/dialog-trigger-CEvyANEF.mjs.map +0 -1
- package/dist/dialog-trigger-context-Dlf5Whq6.d.mts +0 -15
- package/dist/dialog-trigger-context-DqM6S5V-.mjs +0 -16
- package/dist/dialog-trigger-context-DqM6S5V-.mjs.map +0 -1
- package/dist/drawer-DYVQZLML.mjs +0 -1
- package/dist/drawer-Ds2MkNjF.mjs +0 -46
- package/dist/drawer-Ds2MkNjF.mjs.map +0 -1
- package/dist/drawer-close-button-gjzgYKSw.mjs +0 -12
- package/dist/drawer-close-button-gjzgYKSw.mjs.map +0 -1
- package/dist/drawer-content-DxY9zj19.mjs +0 -14
- package/dist/drawer-content-DxY9zj19.mjs.map +0 -1
- package/dist/drawer-footer-DEZvKbZ9.mjs +0 -14
- package/dist/drawer-footer-DEZvKbZ9.mjs.map +0 -1
- package/dist/drawer-header-8MFxFbKD.mjs +0 -14
- package/dist/drawer-header-8MFxFbKD.mjs.map +0 -1
- package/dist/drawer-trigger-CUFZtPLQ.mjs +0 -12
- package/dist/drawer-trigger-CUFZtPLQ.mjs.map +0 -1
- package/dist/drawer-trigger-context-3hDiHR-k.d.mts +0 -13
- package/dist/drawer-trigger-context-DUYTD43h.mjs +0 -9
- package/dist/drawer-trigger-context-DUYTD43h.mjs.map +0 -1
- package/dist/dropdown-4m7NoRv7.mjs +0 -1
- package/dist/dropdown-BZZfp-oa.mjs +0 -44
- package/dist/dropdown-BZZfp-oa.mjs.map +0 -1
- package/dist/dropdown-button-DFRD5c3-.mjs +0 -15
- package/dist/dropdown-button-DFRD5c3-.mjs.map +0 -1
- package/dist/dropdown-item-rKVicLWJ.mjs +0 -11
- package/dist/dropdown-item-rKVicLWJ.mjs.map +0 -1
- package/dist/dropdown-list-CCnbpP3r.mjs +0 -11
- package/dist/dropdown-list-CCnbpP3r.mjs.map +0 -1
- package/dist/dropdown-trigger-FhCAqY-W.mjs +0 -13
- package/dist/dropdown-trigger-FhCAqY-W.mjs.map +0 -1
- package/dist/dropdown-trigger-context-DnY5awW2.mjs +0 -28
- package/dist/dropdown-trigger-context-DnY5awW2.mjs.map +0 -1
- package/dist/field-BIBlDQoi.mjs +0 -30
- package/dist/field-BIBlDQoi.mjs.map +0 -1
- package/dist/field-D8ZE0keC.mjs +0 -1
- package/dist/field-affix-DNZXWyx-.mjs +0 -45
- package/dist/field-affix-DNZXWyx-.mjs.map +0 -1
- package/dist/field-description-Dt2qLchF.mjs +0 -16
- package/dist/field-description-Dt2qLchF.mjs.map +0 -1
- package/dist/fieldset-CcTi6Dum.mjs +0 -17
- package/dist/fieldset-CcTi6Dum.mjs.map +0 -1
- package/dist/fieldset-EvlIWkNe.mjs +0 -1
- package/dist/fieldset-description-C2jSmnwk.mjs +0 -14
- package/dist/fieldset-description-C2jSmnwk.mjs.map +0 -1
- package/dist/fieldset-legend-CSlBCJxg.mjs +0 -19
- package/dist/fieldset-legend-CSlBCJxg.mjs.map +0 -1
- package/dist/filter-group-CqgWY3I1.mjs +0 -1
- package/dist/filter-group-Djsr79gi.mjs +0 -40
- package/dist/filter-group-Djsr79gi.mjs.map +0 -1
- package/dist/footer-CFU5m0uE.mjs +0 -1
- package/dist/footer-TlcFTYFC.mjs +0 -111
- package/dist/footer-TlcFTYFC.mjs.map +0 -1
- package/dist/footer-links-CE3T7evI.mjs +0 -15
- package/dist/footer-links-CE3T7evI.mjs.map +0 -1
- package/dist/hooks-DndqtgSU.mjs +0 -1
- package/dist/input-8Az-c2K1.mjs +0 -1
- package/dist/input-DU_8Z4cN.mjs +0 -25
- package/dist/input-DU_8Z4cN.mjs.map +0 -1
- package/dist/label-BrxPu7QD.mjs +0 -1
- package/dist/label-QZyUM8Df.mjs +0 -18
- package/dist/label-QZyUM8Df.mjs.map +0 -1
- package/dist/link-CU3kBJB8.mjs +0 -19
- package/dist/link-CU3kBJB8.mjs.map +0 -1
- package/dist/link-CYniSrWk.mjs +0 -1
- package/dist/logo-Cj67VFWL.mjs +0 -1
- package/dist/logo-d750FIud.mjs +0 -19
- package/dist/logo-d750FIud.mjs.map +0 -1
- package/dist/navbar-A1xgv5BY.mjs +0 -23
- package/dist/navbar-A1xgv5BY.mjs.map +0 -1
- package/dist/navbar-Ch7rJsaf.mjs +0 -1
- package/dist/pagination-BK24_vW3.mjs +0 -1
- package/dist/pagination-Drbd1147.mjs +0 -17
- package/dist/pagination-Drbd1147.mjs.map +0 -1
- package/dist/pagination-button-F_ZOuaN-.mjs +0 -14
- package/dist/pagination-button-F_ZOuaN-.mjs.map +0 -1
- package/dist/pagination-item-BfCHe-dC.mjs +0 -15
- package/dist/pagination-item-BfCHe-dC.mjs.map +0 -1
- package/dist/popover-B8P0dE2-.mjs +0 -85
- package/dist/popover-B8P0dE2-.mjs.map +0 -1
- package/dist/popover-CGqBsAam.mjs +0 -112
- package/dist/popover-CGqBsAam.mjs.map +0 -1
- package/dist/popover-C_lxbEYu.mjs +0 -1
- package/dist/popover-trigger-BDYAK6jg.mjs +0 -44
- package/dist/popover-trigger-BDYAK6jg.mjs.map +0 -1
- package/dist/popover-trigger-context-DZFORTLq.mjs +0 -39
- package/dist/popover-trigger-context-DZFORTLq.mjs.map +0 -1
- package/dist/radio-CikbRUIb.mjs +0 -45
- package/dist/radio-CikbRUIb.mjs.map +0 -1
- package/dist/radio-DoypqZjr.mjs +0 -1
- package/dist/search-B71qkkhd.mjs +0 -1
- package/dist/search-B9aa1_12.mjs +0 -58
- package/dist/search-B9aa1_12.mjs.map +0 -1
- package/dist/select-D80ba0X2.mjs +0 -1
- package/dist/select-optgroup-BzjAhfRU.mjs +0 -14
- package/dist/select-optgroup-BzjAhfRU.mjs.map +0 -1
- package/dist/select-option-DLslGIIp.mjs +0 -14
- package/dist/select-option-DLslGIIp.mjs.map +0 -1
- package/dist/select-vw7cl3d_.mjs +0 -26
- package/dist/select-vw7cl3d_.mjs.map +0 -1
- package/dist/selectfield-BrXuaiOJ.mjs +0 -53
- package/dist/selectfield-BrXuaiOJ.mjs.map +0 -1
- package/dist/selectfield-acG211WN.mjs +0 -1
- package/dist/skip-link-0SNs70lF.mjs +0 -17
- package/dist/skip-link-0SNs70lF.mjs.map +0 -1
- package/dist/skip-link-DtgRPO9V.mjs +0 -1
- package/dist/spinner-C4Z-GQVz.mjs +0 -1
- package/dist/spinner-xmvtWIZ0.mjs +0 -17
- package/dist/spinner-xmvtWIZ0.mjs.map +0 -1
- package/dist/sticky-header-Bwee74P6.mjs +0 -20
- package/dist/sticky-header-Bwee74P6.mjs.map +0 -1
- package/dist/sticky-header-j3zwZtj_.mjs +0 -1
- package/dist/sub-navbar-Dke7jNvB.mjs +0 -28
- package/dist/sub-navbar-Dke7jNvB.mjs.map +0 -1
- package/dist/switch-CJtJvYv6.mjs +0 -34
- package/dist/switch-CJtJvYv6.mjs.map +0 -1
- package/dist/switch-DZsMi5Uf.mjs +0 -1
- package/dist/tab-Bm-746fZ.mjs +0 -27
- package/dist/tab-Bm-746fZ.mjs.map +0 -1
- package/dist/tabs-BYYODpZJ.mjs +0 -24
- package/dist/tabs-BYYODpZJ.mjs.map +0 -1
- package/dist/tabs-Bdxundn7.mjs +0 -1
- package/dist/tabs-list-BAnPnTwx.mjs +0 -20
- package/dist/tabs-list-BAnPnTwx.mjs.map +0 -1
- package/dist/tabs-panel-GX2ZoOvH.mjs +0 -21
- package/dist/tabs-panel-GX2ZoOvH.mjs.map +0 -1
- package/dist/textarea-BDAr1Unx.mjs +0 -1
- package/dist/textarea-CHhlswpx.mjs +0 -17
- package/dist/textarea-CHhlswpx.mjs.map +0 -1
- package/dist/textfield-BFLLhYVI.mjs +0 -1
- package/dist/textfield-rcRRkfZB.mjs +0 -65
- package/dist/textfield-rcRRkfZB.mjs.map +0 -1
- package/dist/useCheckboxGroup-B2Px3eiz.mjs +0 -17
- package/dist/useIsElementAboveViewport-BaSLEYQk.mjs +0 -20
- package/dist/useIsomorphicLayoutEffect-Bn8aiGVW.mjs +0 -8
- package/dist/useIsomorphicLayoutEffect-PJRUcTSc.d.mts +0 -7
- package/dist/useMediaQuery-BRGC6S33.mjs +0 -44
- package/dist/useMergeRefs-DeEL5hK6.mjs +0 -42
- package/dist/usePagination-aBXSjQBp.mjs +0 -97
- package/dist/useScrollDirection-C36-HP3S.mjs +0 -28
- package/dist/validation-message-376E95cm.mjs +0 -18
- package/dist/validation-message-376E95cm.mjs.map +0 -1
- package/dist/validation-message-YHHHXfxE.mjs +0 -1
- /package/dist/{index-C3reD4RP.d.mts → index-D9zIjQH9.d.mts} +0 -0
package/dist/main.mjs
CHANGED
|
@@ -1,123 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import "./
|
|
6
|
-
import {
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import "./
|
|
10
|
-
import {
|
|
11
|
-
import "./
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import "./
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import "./
|
|
24
|
-
import {
|
|
25
|
-
import "./
|
|
26
|
-
import {
|
|
27
|
-
import "./
|
|
28
|
-
import "./
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import "./
|
|
32
|
-
import {
|
|
33
|
-
import "./
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import "./
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import "./
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import "./
|
|
54
|
-
import {
|
|
55
|
-
import "./
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import "./
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import "./
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import "./
|
|
70
|
-
import {
|
|
71
|
-
import "./
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import "./
|
|
75
|
-
import {
|
|
76
|
-
import "./link-CYniSrWk.mjs";
|
|
77
|
-
import { t as Logo } from "./logo-d750FIud.mjs";
|
|
78
|
-
import "./logo-Cj67VFWL.mjs";
|
|
79
|
-
import { t as Navbar } from "./navbar-A1xgv5BY.mjs";
|
|
80
|
-
import { t as useCheckboxGroup } from "./useCheckboxGroup-B2Px3eiz.mjs";
|
|
81
|
-
import { t as useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect-Bn8aiGVW.mjs";
|
|
82
|
-
import { t as usePagination } from "./usePagination-aBXSjQBp.mjs";
|
|
83
|
-
import { t as useIsElementAboveViewport } from "./useIsElementAboveViewport-BaSLEYQk.mjs";
|
|
84
|
-
import { t as useScrollDirection } from "./useScrollDirection-C36-HP3S.mjs";
|
|
85
|
-
import { t as useMediaQuery } from "./useMediaQuery-BRGC6S33.mjs";
|
|
86
|
-
import "./hooks-DndqtgSU.mjs";
|
|
87
|
-
import { t as SubNavbar } from "./sub-navbar-Dke7jNvB.mjs";
|
|
88
|
-
import "./navbar-Ch7rJsaf.mjs";
|
|
89
|
-
import { t as Pagination } from "./pagination-Drbd1147.mjs";
|
|
90
|
-
import { t as PaginationButton } from "./pagination-button-F_ZOuaN-.mjs";
|
|
91
|
-
import { t as PaginationItem } from "./pagination-item-BfCHe-dC.mjs";
|
|
92
|
-
import "./pagination-BK24_vW3.mjs";
|
|
93
|
-
import { t as Radio } from "./radio-CikbRUIb.mjs";
|
|
94
|
-
import "./radio-DoypqZjr.mjs";
|
|
95
|
-
import { t as Search } from "./search-B9aa1_12.mjs";
|
|
96
|
-
import "./search-B71qkkhd.mjs";
|
|
97
|
-
import { t as Select } from "./select-vw7cl3d_.mjs";
|
|
98
|
-
import { t as SelectOption } from "./select-option-DLslGIIp.mjs";
|
|
99
|
-
import { t as SelectOptgroup } from "./select-optgroup-BzjAhfRU.mjs";
|
|
100
|
-
import "./select-D80ba0X2.mjs";
|
|
101
|
-
import { t as ValidationMessage } from "./validation-message-376E95cm.mjs";
|
|
102
|
-
import "./validation-message-YHHHXfxE.mjs";
|
|
103
|
-
import { t as Selectfield } from "./selectfield-BrXuaiOJ.mjs";
|
|
104
|
-
import "./selectfield-acG211WN.mjs";
|
|
105
|
-
import { t as SkipLink } from "./skip-link-0SNs70lF.mjs";
|
|
106
|
-
import "./skip-link-DtgRPO9V.mjs";
|
|
107
|
-
import { t as StickyHeader } from "./sticky-header-Bwee74P6.mjs";
|
|
108
|
-
import "./sticky-header-j3zwZtj_.mjs";
|
|
109
|
-
import { t as Switch } from "./switch-CJtJvYv6.mjs";
|
|
110
|
-
import "./switch-DZsMi5Uf.mjs";
|
|
111
|
-
import { t as Tabs } from "./tabs-BYYODpZJ.mjs";
|
|
112
|
-
import { t as Tab } from "./tab-Bm-746fZ.mjs";
|
|
113
|
-
import { t as TabsList } from "./tabs-list-BAnPnTwx.mjs";
|
|
114
|
-
import { t as TabsPanel } from "./tabs-panel-GX2ZoOvH.mjs";
|
|
115
|
-
import "./tabs-Bdxundn7.mjs";
|
|
116
|
-
import { t as Textarea } from "./textarea-CHhlswpx.mjs";
|
|
117
|
-
import "./textarea-BDAr1Unx.mjs";
|
|
118
|
-
import { t as Textfield } from "./textfield-rcRRkfZB.mjs";
|
|
119
|
-
import "./textfield-BFLLhYVI.mjs";
|
|
1
|
+
import { Alert } from "./components/alert/alert.mjs";
|
|
2
|
+
import { AlertFooter } from "./components/alert/alert-footer.mjs";
|
|
3
|
+
import { Avatar } from "./components/avatar/avatar.mjs";
|
|
4
|
+
import { Badge } from "./components/badge/badge.mjs";
|
|
5
|
+
import { Spinner } from "./components/spinner/spinner.mjs";
|
|
6
|
+
import { Button } from "./components/button/button.mjs";
|
|
7
|
+
import { Card } from "./components/card/card.mjs";
|
|
8
|
+
import { CardActions } from "./components/card/card-actions.mjs";
|
|
9
|
+
import { CardAction } from "./components/card/card-action.mjs";
|
|
10
|
+
import { CardContent } from "./components/card/card-content.mjs";
|
|
11
|
+
import { CardHeader } from "./components/card/card-header.mjs";
|
|
12
|
+
import { CardMedia } from "./components/card/card-media.mjs";
|
|
13
|
+
import { CardDate } from "./components/card/card-date.mjs";
|
|
14
|
+
import { Field } from "./components/field/field.mjs";
|
|
15
|
+
import { FieldDescription } from "./components/field/field-description.mjs";
|
|
16
|
+
import { FieldAffix, FieldAffixes } from "./components/field/field-affix.mjs";
|
|
17
|
+
import { Input } from "./components/input/input.mjs";
|
|
18
|
+
import { Label } from "./components/label/label.mjs";
|
|
19
|
+
import { Checkbox } from "./components/checkbox/checkbox.mjs";
|
|
20
|
+
import { CheckboxSubsection } from "./components/checkbox/checkbox-subsection.mjs";
|
|
21
|
+
import { Chip } from "./components/chip/chip.mjs";
|
|
22
|
+
import { Details } from "./components/details/details.mjs";
|
|
23
|
+
import { DetailsContent } from "./components/details/details-content.mjs";
|
|
24
|
+
import { DetailsSummary } from "./components/details/details-summary.mjs";
|
|
25
|
+
import { DialogTriggerContext } from "./components/dialog/dialog-trigger-context.mjs";
|
|
26
|
+
import { Dialog } from "./components/dialog/dialog.mjs";
|
|
27
|
+
import { DialogContent } from "./components/dialog/dialog-content.mjs";
|
|
28
|
+
import { DialogHeader } from "./components/dialog/dialog-header.mjs";
|
|
29
|
+
import { DialogFooter } from "./components/dialog/dialog-footer.mjs";
|
|
30
|
+
import { DialogTrigger } from "./components/dialog/dialog-trigger.mjs";
|
|
31
|
+
import { DialogCloseButton } from "./components/dialog/dialog-close-button.mjs";
|
|
32
|
+
import { PopoverTriggerContext } from "./components/popover/popover-trigger-context.mjs";
|
|
33
|
+
import { Popover } from "./components/popover/popover.mjs";
|
|
34
|
+
import { PopoverTrigger } from "./components/popover/popover-trigger.mjs";
|
|
35
|
+
import { Dropdown } from "./components/dropdown/dropdown.mjs";
|
|
36
|
+
import { DropdownButton } from "./components/dropdown/dropdown-button.mjs";
|
|
37
|
+
import { DropdownItem } from "./components/dropdown/dropdown-item.mjs";
|
|
38
|
+
import { DropdownList } from "./components/dropdown/dropdown-list.mjs";
|
|
39
|
+
import { DropdownTrigger } from "./components/dropdown/dropdown-trigger.mjs";
|
|
40
|
+
import { DropdownTriggerContext } from "./components/dropdown/dropdown-trigger-context.mjs";
|
|
41
|
+
import { Fieldset } from "./components/fieldset/fieldset.mjs";
|
|
42
|
+
import { FieldsetDescription } from "./components/fieldset/fieldset-description.mjs";
|
|
43
|
+
import { FieldsetLegend } from "./components/fieldset/fieldset-legend.mjs";
|
|
44
|
+
import { FilterGroup } from "./components/filter-group/filter-group.mjs";
|
|
45
|
+
import { Footer } from "./components/footer/footer.mjs";
|
|
46
|
+
import { FooterLinks } from "./components/footer/footer-links.mjs";
|
|
47
|
+
import { Link } from "./components/link/link.mjs";
|
|
48
|
+
import { Logo } from "./components/logo/logo.mjs";
|
|
49
|
+
import { Navbar } from "./components/navbar/navbar.mjs";
|
|
50
|
+
import { useCheckboxGroup } from "./utilities/hooks/useCheckboxGroup/useCheckboxGroup.mjs";
|
|
51
|
+
import { useIsomorphicLayoutEffect } from "./utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
|
|
52
|
+
import { usePagination } from "./utilities/hooks/usePagination/usePagination.mjs";
|
|
53
|
+
import { useIsElementAboveViewport } from "./utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.mjs";
|
|
54
|
+
import { useScrollDirection } from "./utilities/hooks/useScrollDirection/useScrollDirection.mjs";
|
|
55
|
+
import { useMediaQuery } from "./utilities/hooks/useMediaQuery/useMediaQuery.mjs";
|
|
56
|
+
import { SubNavbar } from "./components/navbar/sub-navbar.mjs";
|
|
57
|
+
import { Pagination } from "./components/pagination/pagination.mjs";
|
|
58
|
+
import { PaginationButton } from "./components/pagination/pagination-button.mjs";
|
|
59
|
+
import { PaginationItem } from "./components/pagination/pagination-item.mjs";
|
|
60
|
+
import { Radio } from "./components/radio/radio.mjs";
|
|
61
|
+
import { Search } from "./components/search/search.mjs";
|
|
62
|
+
import { Select } from "./components/select/select.mjs";
|
|
63
|
+
import { SelectOption } from "./components/select/select-option.mjs";
|
|
64
|
+
import { SelectOptgroup } from "./components/select/select-optgroup.mjs";
|
|
65
|
+
import { ValidationMessage } from "./components/validation-message/validation-message.mjs";
|
|
66
|
+
import { Selectfield } from "./components/selectfield/selectfield.mjs";
|
|
67
|
+
import { SkipLink } from "./components/skip-link/skip-link.mjs";
|
|
68
|
+
import { StickyHeader } from "./components/sticky-header/sticky-header.mjs";
|
|
69
|
+
import { Switch } from "./components/switch/switch.mjs";
|
|
70
|
+
import { Tabs } from "./components/tabs/tabs.mjs";
|
|
71
|
+
import { Tab } from "./components/tabs/tab.mjs";
|
|
72
|
+
import { TabsList } from "./components/tabs/tabs-list.mjs";
|
|
73
|
+
import { TabsPanel } from "./components/tabs/tabs-panel.mjs";
|
|
74
|
+
import { Textarea } from "./components/textarea/textarea.mjs";
|
|
75
|
+
import { Textfield } from "./components/textfield/textfield.mjs";
|
|
120
76
|
import "./components/index.mjs";
|
|
121
77
|
import "./utilities/index.mjs";
|
|
122
|
-
|
|
123
|
-
export { Alert, AlertFooter, Avatar, Badge, Button, Card, CardAction, CardActions, CardContent, CardDate, CardHeader, CardMedia, Checkbox, CheckboxSubsection, Chip, Details, DetailsContent, DetailsSummary, Dialog, DialogCloseButton, DialogContent, DialogFooter, DialogHeader, DialogTrigger, DialogTriggerContext, Drawer, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, DrawerTrigger, DrawerTriggerContext, Dropdown, DropdownButton, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, Field, FieldAffix, FieldAffixes, FieldDescription, Fieldset, FieldsetDescription, FieldsetLegend, FilterGroup, Footer, FooterLinks, Input, Label, Link, Logo, Navbar, Pagination, PaginationButton, PaginationItem, Popover, PopoverTrigger, PopoverTriggerContext, Radio, Search, Select, SelectOptgroup, SelectOption, Selectfield, SkipLink, Spinner, StickyHeader, SubNavbar, Switch, Tab, Tabs, TabsList, TabsPanel, Textarea, Textfield, ValidationMessage, useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
|
|
78
|
+
export { Alert, AlertFooter, Avatar, Badge, Button, Card, CardAction, CardActions, CardContent, CardDate, CardHeader, CardMedia, Checkbox, CheckboxSubsection, Chip, Details, DetailsContent, DetailsSummary, Dialog, DialogCloseButton, DialogContent, DialogFooter, DialogHeader, DialogTrigger, DialogTriggerContext, Dropdown, DropdownButton, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, Field, FieldAffix, FieldAffixes, FieldDescription, Fieldset, FieldsetDescription, FieldsetLegend, FilterGroup, Footer, FooterLinks, Input, Label, Link, Logo, Navbar, Pagination, PaginationButton, PaginationItem, Popover, PopoverTrigger, PopoverTriggerContext, Radio, Search, Select, SelectOptgroup, SelectOption, Selectfield, SkipLink, Spinner, StickyHeader, SubNavbar, Switch, Tab, Tabs, TabsList, TabsPanel, Textarea, Textfield, ValidationMessage, useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
import { HTMLAttributes, Ref } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pagination/pagination-item.d.ts
|
|
@@ -15,7 +15,7 @@ declare const PaginationItem: ({
|
|
|
15
15
|
asChild,
|
|
16
16
|
children,
|
|
17
17
|
...rest
|
|
18
|
-
}: PaginationItemProps) =>
|
|
18
|
+
}: PaginationItemProps) => react_jsx_runtime0.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { PaginationItemProps as n, PaginationItem as t };
|
|
21
|
-
//# sourceMappingURL=pagination-item-
|
|
21
|
+
//# sourceMappingURL=pagination-item-BNyKs6wz.d.mts.map
|
package/dist/{popover-trigger-context-sQGC75uf.d.mts → popover-trigger-context-DTh-_AMm.d.mts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
import * as react from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/popover-trigger-context.d.ts
|
|
6
|
-
declare const Context:
|
|
6
|
+
declare const Context: react.Context<{
|
|
7
7
|
popoverId?: string;
|
|
8
8
|
setPopoverId?: (id: string) => void;
|
|
9
9
|
popoverOpen?: boolean;
|
|
@@ -37,7 +37,7 @@ declare const PopoverTriggerContext: ({
|
|
|
37
37
|
children,
|
|
38
38
|
open,
|
|
39
39
|
onOpenChange
|
|
40
|
-
}: PopoverTriggerContextProps) =>
|
|
40
|
+
}: PopoverTriggerContextProps) => react_jsx_runtime0.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { PopoverTriggerContext as n, PopoverTriggerContextProps as r, Context as t };
|
|
43
|
-
//# sourceMappingURL=popover-trigger-context-
|
|
43
|
+
//# sourceMappingURL=popover-trigger-context-DTh-_AMm.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/sticky-header/sticky-header.d.ts
|
|
@@ -13,7 +13,7 @@ type StickyHeaderProps = {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const StickyHeader: ({
|
|
15
15
|
children
|
|
16
|
-
}: StickyHeaderProps) =>
|
|
16
|
+
}: StickyHeaderProps) => react_jsx_runtime0.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { StickyHeaderProps as n, StickyHeader as t };
|
|
19
|
-
//# sourceMappingURL=sticky-header-
|
|
19
|
+
//# sourceMappingURL=sticky-header-CLZPboYg.d.mts.map
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DefaultProps, r as LabelRequiredProps, t as AsChildProps } from "./types-
|
|
1
|
+
import { n as DefaultProps, r as LabelRequiredProps, t as AsChildProps } from "./types-BXsMIYrD.mjs";
|
|
2
2
|
export { AsChildProps, DefaultProps, LabelRequiredProps };
|
package/dist/types.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {};
|
|
@@ -18,4 +18,4 @@ declare const useCheckboxGroup: ({
|
|
|
18
18
|
}: UseCheckboxGroupOptions) => UseCheckboxGroupReturn;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { UseCheckboxGroupReturn as n, useCheckboxGroup as r, UseCheckboxGroupOptions as t };
|
|
21
|
-
//# sourceMappingURL=useCheckboxGroup-
|
|
21
|
+
//# sourceMappingURL=useCheckboxGroup-Boc_tLJ3.d.mts.map
|
package/dist/{useIsElementAboveViewport-BcIGWQqn.d.mts → useIsElementAboveViewport-DmYCeDwm.d.mts}
RENAMED
|
@@ -5,4 +5,4 @@ import { RefObject } from "react";
|
|
|
5
5
|
declare const useIsElementAboveViewport: (elementRef: RefObject<HTMLElement | null>) => boolean;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { useIsElementAboveViewport as t };
|
|
8
|
-
//# sourceMappingURL=useIsElementAboveViewport-
|
|
8
|
+
//# sourceMappingURL=useIsElementAboveViewport-DmYCeDwm.d.mts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts
|
|
4
|
+
declare const useIsomorphicLayoutEffect: typeof useEffect;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { useIsomorphicLayoutEffect as t };
|
|
7
|
+
//# sourceMappingURL=useIsomorphicLayoutEffect-DXCY5AxR.d.mts.map
|
|
@@ -29,4 +29,4 @@ declare function useMediaQuery(query: string, {
|
|
|
29
29
|
}?: UseMediaQueryOptions): boolean;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { useMediaQuery as n, UseMediaQueryOptions as t };
|
|
32
|
-
//# sourceMappingURL=useMediaQuery-
|
|
32
|
+
//# sourceMappingURL=useMediaQuery-Cz0DvE8S.d.mts.map
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import { r as useCheckboxGroup, t as UseCheckboxGroupOptions } from "../../useCheckboxGroup-
|
|
2
|
-
import { t as useIsomorphicLayoutEffect } from "../../useIsomorphicLayoutEffect-
|
|
3
|
-
import "../../
|
|
4
|
-
import {
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import "../../popover-trigger-context-sQGC75uf.mjs";
|
|
8
|
-
import "../../dropdown-item-wInrqt83.mjs";
|
|
9
|
-
import "../../dropdown-list-z14BOCh4.mjs";
|
|
10
|
-
import "../../footer-links-C7vC-VD7.mjs";
|
|
11
|
-
import "../../pagination-item-cKOuhfhM.mjs";
|
|
12
|
-
import "../../sticky-header-Y0uT-nWI.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import { t as useIsElementAboveViewport } from "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
15
|
-
import { t as useScrollDirection } from "../../useScrollDirection-Cm7w2CbB.mjs";
|
|
16
|
-
import { n as useMediaQuery, t as UseMediaQueryOptions } from "../../useMediaQuery-CIi3MXay.mjs";
|
|
1
|
+
import { r as useCheckboxGroup, t as UseCheckboxGroupOptions } from "../../useCheckboxGroup-Boc_tLJ3.mjs";
|
|
2
|
+
import { t as useIsomorphicLayoutEffect } from "../../useIsomorphicLayoutEffect-DXCY5AxR.mjs";
|
|
3
|
+
import { i as usePagination, r as UsePaginationProps } from "../../alert-footer-D_kCDrhn.mjs";
|
|
4
|
+
import { t as useIsElementAboveViewport } from "../../useIsElementAboveViewport-DmYCeDwm.mjs";
|
|
5
|
+
import { t as useScrollDirection } from "../../useScrollDirection-CepdY5lA.mjs";
|
|
6
|
+
import { n as useMediaQuery, t as UseMediaQueryOptions } from "../../useMediaQuery-Cz0DvE8S.mjs";
|
|
17
7
|
export { UseCheckboxGroupOptions, UseMediaQueryOptions, UsePaginationProps, useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
|
|
1
|
+
import { useCheckboxGroup } from "./useCheckboxGroup/useCheckboxGroup.mjs";
|
|
2
|
+
import { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
|
|
3
|
+
import { usePagination } from "./usePagination/usePagination.mjs";
|
|
4
|
+
import { useIsElementAboveViewport } from "./useIsElementAboveViewport/useIsElementAboveViewport.mjs";
|
|
5
|
+
import { useScrollDirection } from "./useScrollDirection/useScrollDirection.mjs";
|
|
6
|
+
import { useMediaQuery } from "./useMediaQuery/useMediaQuery.mjs";
|
|
7
|
+
export { useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as UseCheckboxGroupReturn, r as useCheckboxGroup, t as UseCheckboxGroupOptions } from "../../../useCheckboxGroup-
|
|
1
|
+
import { n as UseCheckboxGroupReturn, r as useCheckboxGroup, t as UseCheckboxGroupOptions } from "../../../useCheckboxGroup-Boc_tLJ3.mjs";
|
|
2
2
|
export { UseCheckboxGroupOptions, UseCheckboxGroupReturn, useCheckboxGroup };
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
//#region src/utilities/hooks/useCheckboxGroup/useCheckboxGroup.tsx
|
|
2
|
+
const useCheckboxGroup = ({ options, updateOptions }) => {
|
|
3
|
+
const checked = options.every((option) => option);
|
|
4
|
+
const indeterminate = options.some((option) => option) && !checked;
|
|
5
|
+
const onChange = (e) => {
|
|
6
|
+
updateOptions(e.target.indeterminate ? true : e.target.checked);
|
|
7
|
+
};
|
|
8
|
+
return { checkboxGroupProps: {
|
|
9
|
+
checked,
|
|
10
|
+
indeterminate,
|
|
11
|
+
onChange
|
|
12
|
+
} };
|
|
13
|
+
};
|
|
14
|
+
//#endregion
|
|
15
|
+
export { useCheckboxGroup };
|
|
2
16
|
|
|
3
|
-
|
|
17
|
+
//# sourceMappingURL=useCheckboxGroup.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCheckboxGroup
|
|
1
|
+
{"version":3,"file":"useCheckboxGroup.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,2 +1,2 @@
|
|
|
1
|
-
import { t as useIsElementAboveViewport } from "../../../useIsElementAboveViewport-
|
|
1
|
+
import { t as useIsElementAboveViewport } from "../../../useIsElementAboveViewport-DmYCeDwm.mjs";
|
|
2
2
|
export { useIsElementAboveViewport };
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
//#region src/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.tsx
|
|
3
|
+
/** Detects when an element's is scrolled past and is no longer in the viewport. */
|
|
4
|
+
const useIsElementAboveViewport = (elementRef) => {
|
|
5
|
+
const [isAboveViewport, setIsPast] = useState(false);
|
|
6
|
+
useEffect(() => {
|
|
7
|
+
const observer = new IntersectionObserver(([entry]) => setIsPast(entry.boundingClientRect.y < 0), { threshold: [0] });
|
|
8
|
+
const currentRef = elementRef.current;
|
|
9
|
+
if (currentRef) observer.observe(currentRef);
|
|
10
|
+
return () => {
|
|
11
|
+
if (currentRef) observer.unobserve(currentRef);
|
|
12
|
+
};
|
|
13
|
+
}, [elementRef]);
|
|
14
|
+
return isAboveViewport;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useIsElementAboveViewport };
|
|
2
18
|
|
|
3
|
-
|
|
19
|
+
//# sourceMappingURL=useIsElementAboveViewport.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsElementAboveViewport
|
|
1
|
+
{"version":3,"file":"useIsElementAboveViewport.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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as useIsomorphicLayoutEffect } from "../../../useIsomorphicLayoutEffect-
|
|
1
|
+
import { t as useIsomorphicLayoutEffect } from "../../../useIsomorphicLayoutEffect-DXCY5AxR.mjs";
|
|
2
2
|
export { useIsomorphicLayoutEffect };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useEffect, useLayoutEffect } from "react";
|
|
2
|
+
//#region src/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts
|
|
3
|
+
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { useIsomorphicLayoutEffect };
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
//# sourceMappingURL=useIsomorphicLayoutEffect.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsomorphicLayoutEffect
|
|
1
|
+
{"version":3,"file":"useIsomorphicLayoutEffect.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,2 +1,2 @@
|
|
|
1
|
-
import { n as useMediaQuery, t as UseMediaQueryOptions } from "../../../useMediaQuery-
|
|
1
|
+
import { n as useMediaQuery, t as UseMediaQueryOptions } from "../../../useMediaQuery-Cz0DvE8S.mjs";
|
|
2
2
|
export { UseMediaQueryOptions, useMediaQuery };
|
|
@@ -1,4 +1,43 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
1
|
+
import { useIsomorphicLayoutEffect } from "../useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
//#region src/utilities/hooks/useMediaQuery/useMediaQuery.tsx
|
|
4
|
+
const IS_SERVER = typeof window === "undefined";
|
|
5
|
+
/**
|
|
6
|
+
* 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).
|
|
7
|
+
* @param {string} query - The media query to track.
|
|
8
|
+
* @param {?UseMediaQueryOptions} [options] - The options for customizing the behavior of the hook (optional).
|
|
9
|
+
* @returns {boolean} The current state of the media query (true if the query matches, false otherwise).
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* const isSmallScreen = useMediaQuery('(max-width: 600px)');
|
|
13
|
+
* // Use `isSmallScreen` to conditionally apply styles or logic based on the screen size.
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
function useMediaQuery(query, { defaultValue = false, initializeWithValue = true } = {}) {
|
|
17
|
+
const getMatches = (query) => {
|
|
18
|
+
if (IS_SERVER) return defaultValue;
|
|
19
|
+
return window.matchMedia(query).matches;
|
|
20
|
+
};
|
|
21
|
+
const [matches, setMatches] = useState(() => {
|
|
22
|
+
if (initializeWithValue) return getMatches(query);
|
|
23
|
+
return defaultValue;
|
|
24
|
+
});
|
|
25
|
+
function handleChange() {
|
|
26
|
+
setMatches(getMatches(query));
|
|
27
|
+
}
|
|
28
|
+
useIsomorphicLayoutEffect(() => {
|
|
29
|
+
const matchMedia = window.matchMedia(query);
|
|
30
|
+
handleChange();
|
|
31
|
+
if (matchMedia.addListener) matchMedia.addListener(handleChange);
|
|
32
|
+
else matchMedia.addEventListener("change", handleChange);
|
|
33
|
+
return () => {
|
|
34
|
+
if (matchMedia.removeListener) matchMedia.removeListener(handleChange);
|
|
35
|
+
else matchMedia.removeEventListener("change", handleChange);
|
|
36
|
+
};
|
|
37
|
+
}, [query]);
|
|
38
|
+
return matches;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { useMediaQuery };
|
|
3
42
|
|
|
4
|
-
|
|
43
|
+
//# sourceMappingURL=useMediaQuery.mjs.map
|
package/dist/{useMediaQuery-BRGC6S33.mjs.map → utilities/hooks/useMediaQuery/useMediaQuery.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMediaQuery
|
|
1
|
+
{"version":3,"file":"useMediaQuery.mjs","names":[],"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,UAA2B;AAC7C,MAAI,UACF,QAAO;AAET,SAAO,OAAO,WAAW,MAAM,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,3 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useCallback, useMemo, useRef } from "react";
|
|
2
|
+
//#region src/utilities/hooks/useMergeRefs/useMergeRefs.ts
|
|
3
|
+
/**
|
|
4
|
+
* Merges an array of refs into a single memoized callback ref or `null`.
|
|
5
|
+
*/
|
|
6
|
+
function useMergeRefs(refs) {
|
|
7
|
+
const cleanupRef = useRef(void 0);
|
|
8
|
+
const refEffect = useCallback((instance) => {
|
|
9
|
+
const cleanups = refs.map((ref) => {
|
|
10
|
+
if (ref == null) return;
|
|
11
|
+
if (typeof ref === "function") {
|
|
12
|
+
const refCallback = ref;
|
|
13
|
+
const refCleanup = refCallback(instance);
|
|
14
|
+
return typeof refCleanup === "function" ? refCleanup : () => {
|
|
15
|
+
refCallback(null);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
ref.current = instance;
|
|
19
|
+
return () => {
|
|
20
|
+
ref.current = null;
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
return () => {
|
|
24
|
+
for (const refCleanup of cleanups) refCleanup?.();
|
|
25
|
+
};
|
|
26
|
+
}, refs);
|
|
27
|
+
return useMemo(() => {
|
|
28
|
+
if (refs.every((ref) => ref == null)) return null;
|
|
29
|
+
return (value) => {
|
|
30
|
+
if (cleanupRef.current) {
|
|
31
|
+
cleanupRef.current();
|
|
32
|
+
cleanupRef.current = void 0;
|
|
33
|
+
}
|
|
34
|
+
if (value != null) cleanupRef.current = refEffect(value);
|
|
35
|
+
};
|
|
36
|
+
}, refs);
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { useMergeRefs };
|
|
2
40
|
|
|
3
|
-
|
|
41
|
+
//# sourceMappingURL=useMergeRefs.mjs.map
|
package/dist/{useMergeRefs-DeEL5hK6.mjs.map → utilities/hooks/useMergeRefs/useMergeRefs.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMergeRefs
|
|
1
|
+
{"version":3,"file":"useMergeRefs.mjs","names":[],"sources":["../../../../src/utilities/hooks/useMergeRefs/useMergeRefs.ts"],"sourcesContent":["// https://github.com/floating-ui/floating-ui/blob/master/packages/react/src/hooks/useMergeRefs.ts\nimport { useCallback, useMemo, useRef } from 'react';\nimport type { Ref, RefCallback, RefObject } from 'react';\n\n/**\n * Merges an array of refs into a single memoized callback ref or `null`.\n */\nexport function useMergeRefs<Instance>(refs: Array<Ref<Instance> | undefined>): null | RefCallback<Instance> {\n const cleanupRef = useRef<undefined | (() => void)>(undefined);\n\n const refEffect = useCallback((instance: Instance | null) => {\n const cleanups = refs.map((ref) => {\n if (ref == null) {\n return;\n }\n\n if (typeof ref === 'function') {\n const refCallback = ref;\n // biome-ignore lint/suspicious/noConfusingVoidType: @types-react wants `void` here\n const refCleanup: void | (() => void) = refCallback(instance);\n return typeof refCleanup === 'function'\n ? refCleanup\n : () => {\n refCallback(null);\n };\n }\n\n (ref as RefObject<Instance | null>).current = instance;\n return () => {\n (ref as RefObject<Instance | null>).current = null;\n };\n });\n\n return () => {\n for (const refCleanup of cleanups) {\n refCleanup?.();\n }\n };\n // oxlint-disable-next-line eslint-plugin-react-hooks/exhaustive-deps\n }, refs);\n\n return useMemo(() => {\n if (refs.every((ref) => ref == null)) {\n return null;\n }\n\n return (value) => {\n if (cleanupRef.current) {\n cleanupRef.current();\n (cleanupRef as RefObject<undefined | (() => void)>).current = undefined;\n }\n\n if (value != null) {\n (cleanupRef as RefObject<undefined | (() => void)>).current = refEffect(value);\n }\n };\n // oxlint-disable-next-line eslint-plugin-react-hooks/exhaustive-deps\n }, refs);\n}\n"],"mappings":";;;;;AAOA,SAAgB,aAAuB,MAAsE;CAC3G,MAAM,aAAa,OAAiC,KAAA,EAAU;CAE9D,MAAM,YAAY,aAAa,aAA8B;EAC3D,MAAM,WAAW,KAAK,KAAK,QAAQ;AACjC,OAAI,OAAO,KACT;AAGF,OAAI,OAAO,QAAQ,YAAY;IAC7B,MAAM,cAAc;IAEpB,MAAM,aAAkC,YAAY,SAAS;AAC7D,WAAO,OAAO,eAAe,aACzB,mBACM;AACJ,iBAAY,KAAK;;;AAIxB,OAAmC,UAAU;AAC9C,gBAAa;AACV,QAAmC,UAAU;;IAEhD;AAEF,eAAa;AACX,QAAK,MAAM,cAAc,SACvB,eAAc;;IAIjB,KAAK;AAER,QAAO,cAAc;AACnB,MAAI,KAAK,OAAO,QAAQ,OAAO,KAAK,CAClC,QAAO;AAGT,UAAQ,UAAU;AAChB,OAAI,WAAW,SAAS;AACtB,eAAW,SAAS;AACnB,eAAmD,UAAU,KAAA;;AAGhE,OAAI,SAAS,KACV,YAAmD,UAAU,UAAU,MAAM;;IAIjF,KAAK"}
|