@bi-digital/react 0.8.0 → 0.10.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/README.md +0 -2
- package/dist/{alert-footer-BFTlBQCl.d.mts → alert-footer-42JbxJ0B.d.mts} +135 -151
- 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/drawer/drawer-close-button.d.mts +1 -14
- package/dist/components/drawer/drawer-close-button.mjs +14 -15
- package/dist/components/drawer/drawer-close-button.mjs.map +1 -0
- package/dist/components/drawer/drawer-content.d.mts +1 -14
- package/dist/components/drawer/drawer-content.mjs +16 -15
- package/dist/components/drawer/drawer-content.mjs.map +1 -0
- package/dist/components/drawer/drawer-footer.d.mts +1 -14
- package/dist/components/drawer/drawer-footer.mjs +16 -15
- package/dist/components/drawer/drawer-footer.mjs.map +1 -0
- package/dist/components/drawer/drawer-header.d.mts +1 -14
- package/dist/components/drawer/drawer-header.mjs +16 -15
- package/dist/components/drawer/drawer-header.mjs.map +1 -0
- package/dist/components/drawer/drawer-trigger-context.d.mts +1 -1
- package/dist/components/drawer/drawer-trigger-context.mjs +11 -15
- package/dist/components/drawer/drawer-trigger-context.mjs.map +1 -0
- package/dist/components/drawer/drawer-trigger.d.mts +1 -14
- package/dist/components/drawer/drawer-trigger.mjs +14 -15
- package/dist/components/drawer/drawer-trigger.mjs.map +1 -0
- package/dist/components/drawer/drawer.d.mts +1 -14
- package/dist/components/drawer/drawer.mjs +47 -15
- package/dist/components/drawer/drawer.mjs.map +1 -0
- package/dist/components/drawer/index.d.mts +2 -14
- package/dist/components/drawer/index.mjs +8 -23
- 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 +10 -15
- package/dist/components/index.mjs +112 -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 +24 -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 +50 -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/drawer-trigger-context-DxLBj5Xr.d.mts +16 -0
- package/dist/{dropdown-item-B9Toa4yI.d.mts → dropdown-item-B6MmulV_.d.mts} +3 -3
- package/dist/{dropdown-list-Ce8CUTGr.d.mts → dropdown-list-DKugDMKm.d.mts} +3 -3
- package/dist/{footer-links-B8XVWRnL.d.mts → footer-links-Dac3-Emr.d.mts} +3 -3
- package/dist/main.d.mts +16 -18
- package/dist/main.mjs +83 -121
- package/dist/{pagination-item-DBpTl8iP.d.mts → pagination-item-AQQSJ7GD.d.mts} +3 -3
- package/dist/{popover-trigger-context-HGF38PbW.d.mts → popover-trigger-context-BG1lPWXA.d.mts} +5 -5
- package/dist/{sticky-header-CQ10VPji.d.mts → sticky-header-C6gJlnzy.d.mts} +3 -3
- package/dist/{types-Biyhmxh9.d.mts → types-74lJC5tL.d.mts} +1 -1
- package/dist/{types-Bgj7p8nD.d.mts → types-BXsMIYrD.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-Cxt9TwLS.d.mts} +1 -1
- package/dist/{useIsomorphicLayoutEffect-gxToSQn7.d.mts → useIsomorphicLayoutEffect-DXCY5AxR.d.mts} +1 -1
- package/dist/{useMediaQuery-CIi3MXay.d.mts → useMediaQuery-Di0fXraw.d.mts} +1 -1
- package/dist/{useScrollDirection-Cm7w2CbB.d.mts → useScrollDirection-6pq5a8B3.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 +13 -18
- 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-CDtQwUfp.mjs +0 -40
- package/dist/button-CDtQwUfp.mjs.map +0 -1
- package/dist/card-BwkKWLCT.mjs +0 -21
- package/dist/card-BwkKWLCT.mjs.map +0 -1
- package/dist/card-action-CkWX8kB1.mjs +0 -22
- package/dist/card-action-CkWX8kB1.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/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-BQiLlxh_.mjs +0 -24
- package/dist/dialog-close-button-BQiLlxh_.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-BwjU9AQE.mjs +0 -22
- package/dist/dialog-trigger-BwjU9AQE.mjs.map +0 -1
- package/dist/dialog-trigger-context-BP2Q3KEA.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-BzgfCB46.mjs +0 -12
- package/dist/drawer-close-button-BzgfCB46.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-context-BuP2a1-8.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/drawer-trigger-uVwwMXt_.mjs +0 -12
- package/dist/drawer-trigger-uVwwMXt_.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-B6EgzSgh.mjs +0 -15
- package/dist/dropdown-button-B6EgzSgh.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-8zD-9jXF.mjs +0 -13
- package/dist/dropdown-trigger-8zD-9jXF.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-CMS77qh0.mjs +0 -111
- package/dist/footer-CMS77qh0.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-DT0m4mTM.mjs +0 -14
- package/dist/pagination-button-DT0m4mTM.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-T4NXzZPy.mjs +0 -44
- package/dist/popover-trigger-T4NXzZPy.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-CTkPGLRm.mjs +0 -58
- package/dist/search-CTkPGLRm.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-qLMKkR-4.mjs +0 -27
- package/dist/tab-qLMKkR-4.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/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-Dc-SdpIe.d.mts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import clsx from "clsx/lite";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/spinner/spinner.tsx
|
|
5
|
-
const Spinner = ({ color = "inherit", size, className, ref, ...props }) => {
|
|
6
|
-
return /* @__PURE__ */ jsx("span", {
|
|
7
|
-
className: clsx("bi-spinner", className),
|
|
8
|
-
"data-size": size,
|
|
9
|
-
"data-color": color,
|
|
10
|
-
ref,
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
export { Spinner as t };
|
|
17
|
-
//# sourceMappingURL=spinner-xmvtWIZ0.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spinner-xmvtWIZ0.mjs","names":[],"sources":["../src/components/spinner/spinner.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type SpinnerProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLSpanElement>,\n {\n /**\n * The color of the spinner.\n * @default 'inherit'\n */\n color?: 'inherit' | 'black';\n /**\n * The size of the spinner.\n * It sets the font-size as the width and height is `1em`. If not set, the spinner will inherit the font size of its parent.\n */\n size?: 'small' | 'medium' | 'large' | 'xl' | '2xl';\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\nexport const Spinner = ({ color = 'inherit', size, className, ref, ...props }: SpinnerProps) => {\n return <span className={clsx('bi-spinner', className)} data-size={size} data-color={color} ref={ref} {...props} />;\n};\n"],"mappings":";;;;AAsBA,MAAa,WAAW,EAAE,QAAQ,WAAW,MAAM,WAAW,KAAK,GAAG,YAA0B;AAC9F,QAAO,oBAAC;EAAK,WAAW,KAAK,cAAc,UAAU;EAAE,aAAW;EAAM,cAAY;EAAY;EAAK,GAAI;GAAS"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/sticky-header/sticky-header.tsx
|
|
5
|
-
/**
|
|
6
|
-
* Make a sticky header that will stay at the top of the viewport when scrolling.
|
|
7
|
-
* It handles different distance to the top based on sub-navbar, navbar and other factors.
|
|
8
|
-
* This element is a Slot which simply adds the correct CSS styles to the children.
|
|
9
|
-
* Make sure that the children passed to this component appends className and not overrides it.
|
|
10
|
-
*/
|
|
11
|
-
const StickyHeader = ({ children }) => {
|
|
12
|
-
return /* @__PURE__ */ jsx(Slot, {
|
|
13
|
-
className: "bi-sticky-header",
|
|
14
|
-
children
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { StickyHeader as t };
|
|
20
|
-
//# sourceMappingURL=sticky-header-Bwee74P6.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sticky-header-Bwee74P6.mjs","names":[],"sources":["../src/components/sticky-header/sticky-header.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { ReactNode } from 'react';\n\nexport type StickyHeaderProps = {\n children: ReactNode;\n};\n\n/**\n * Make a sticky header that will stay at the top of the viewport when scrolling.\n * It handles different distance to the top based on sub-navbar, navbar and other factors.\n * This element is a Slot which simply adds the correct CSS styles to the children.\n * Make sure that the children passed to this component appends className and not overrides it.\n */\nexport const StickyHeader = ({ children }: StickyHeaderProps) => {\n const Component = Slot;\n return <Component className='bi-sticky-header'>{children}</Component>;\n};\n"],"mappings":";;;;;;;;;;AAaA,MAAa,gBAAgB,EAAE,eAAkC;AAE/D,QAAO,oBADW;EACA,WAAU;EAAoB;GAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { t as useIsElementAboveViewport } from "./useIsElementAboveViewport-BaSLEYQk.mjs";
|
|
2
|
-
import { t as useScrollDirection } from "./useScrollDirection-C36-HP3S.mjs";
|
|
3
|
-
import clsx from "clsx/lite";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { useRef } from "react";
|
|
6
|
-
|
|
7
|
-
//#region src/components/navbar/sub-navbar.tsx
|
|
8
|
-
const SubNavbar = ({ dark = false, children, className, ref, ...props }) => {
|
|
9
|
-
const elementRef = useRef(null);
|
|
10
|
-
const fixed = useIsElementAboveViewport(elementRef);
|
|
11
|
-
const scrollDirection = useScrollDirection();
|
|
12
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
13
|
-
className: "bi-sub-navbar--wrapper",
|
|
14
|
-
children: [/* @__PURE__ */ jsx("div", { ref: elementRef }), /* @__PURE__ */ jsx("nav", {
|
|
15
|
-
className: clsx("bi-sub-navbar", className),
|
|
16
|
-
"data-fixed": fixed,
|
|
17
|
-
"data-scroll-dir": fixed ? scrollDirection : void 0,
|
|
18
|
-
"data-dark": dark,
|
|
19
|
-
...props,
|
|
20
|
-
ref,
|
|
21
|
-
children
|
|
22
|
-
})]
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { SubNavbar as t };
|
|
28
|
-
//# sourceMappingURL=sub-navbar-Dke7jNvB.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sub-navbar-Dke7jNvB.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"}
|
package/dist/switch-CJtJvYv6.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { t as Field } from "./field-BIBlDQoi.mjs";
|
|
2
|
-
import { t as Input } from "./input-DU_8Z4cN.mjs";
|
|
3
|
-
import { t as Label } from "./label-QZyUM8Df.mjs";
|
|
4
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region src/components/switch/switch.tsx
|
|
7
|
-
const Switch = ({ dark, label, error, fullwidth, style, className, ref, id, position = "end", ...props }) => {
|
|
8
|
-
return /* @__PURE__ */ jsx(Field, {
|
|
9
|
-
className,
|
|
10
|
-
"data-dark": dark,
|
|
11
|
-
style,
|
|
12
|
-
fullwidth,
|
|
13
|
-
position,
|
|
14
|
-
asChild: true,
|
|
15
|
-
children: /* @__PURE__ */ jsxs("label", { children: [/* @__PURE__ */ jsx(Input, {
|
|
16
|
-
role: "switch",
|
|
17
|
-
type: "checkbox",
|
|
18
|
-
id,
|
|
19
|
-
ref,
|
|
20
|
-
"aria-invalid": error || void 0,
|
|
21
|
-
dark,
|
|
22
|
-
...props
|
|
23
|
-
}), label && /* @__PURE__ */ jsx(Label, {
|
|
24
|
-
weight: "medium",
|
|
25
|
-
htmlFor: id,
|
|
26
|
-
asChild: true,
|
|
27
|
-
children: /* @__PURE__ */ jsx("span", { children: label })
|
|
28
|
-
})] })
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
//#endregion
|
|
33
|
-
export { Switch as t };
|
|
34
|
-
//# sourceMappingURL=switch-CJtJvYv6.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switch-CJtJvYv6.mjs","names":[],"sources":["../src/components/switch/switch.tsx"],"sourcesContent":["import type { ReactNode, Ref } from 'react';\n\nimport type { LabelRequiredProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Field, type FieldProps } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { Label } from '../label';\n\nexport type SwitchProps = MergeRight<\n LabelRequiredProps & Omit<InputProps, 'type' | 'role' | 'size'> & Pick<FieldProps, 'position'>,\n {\n /** Label */\n label?: ReactNode;\n /** Add error indication to the switch. */\n error?: boolean;\n /** If true, the switch will take up the full width of the container, and not just \"fit-content\" which is default */\n fullwidth?: boolean;\n ref?: Ref<HTMLInputElement>;\n }\n>;\n\nexport const Switch = ({\n dark,\n label,\n error,\n fullwidth,\n style,\n className,\n ref,\n id,\n position = 'end',\n ...props\n}: SwitchProps) => {\n return (\n <Field className={className} data-dark={dark} style={style} fullwidth={fullwidth} position={position} asChild>\n <label>\n <Input\n role='switch'\n type='checkbox'\n id={id}\n ref={ref}\n aria-invalid={error || undefined}\n dark={dark}\n {...props}\n />\n {label && (\n <Label weight='medium' htmlFor={id} asChild>\n <span>{label}</span>\n </Label>\n )}\n </label>\n </Field>\n );\n};\n"],"mappings":";;;;;;AAqBA,MAAa,UAAU,EACrB,MACA,OACA,OACA,WACA,OACA,WACA,KACA,IACA,WAAW,OACX,GAAG,YACc;AACjB,QACE,oBAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;EAAqB;EAAU;YACpG,qBAAC,sBACC,oBAAC;GACC,MAAK;GACL,MAAK;GACD;GACC;GACL,gBAAc,SAAS;GACjB;GACN,GAAI;IACJ,EACD,SACC,oBAAC;GAAM,QAAO;GAAS,SAAS;GAAI;aAClC,oBAAC,oBAAM,QAAa;IACd,IAEJ;GACF"}
|
package/dist/switch-DZsMi5Uf.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/tab-qLMKkR-4.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { t as Button } from "./button-CDtQwUfp.mjs";
|
|
2
|
-
import clsx from "clsx/lite";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Trigger } from "@radix-ui/react-tabs";
|
|
5
|
-
|
|
6
|
-
//#region src/components/tabs/tab.tsx
|
|
7
|
-
const Tab = ({ className, value, disabled, children, asChild, dark, ref, ...props }) => {
|
|
8
|
-
return /* @__PURE__ */ jsx(Trigger, {
|
|
9
|
-
value,
|
|
10
|
-
disabled,
|
|
11
|
-
asChild: true,
|
|
12
|
-
children: /* @__PURE__ */ jsx(Button, {
|
|
13
|
-
ref,
|
|
14
|
-
variant: "text",
|
|
15
|
-
className: clsx("bi-tabs--tab", className),
|
|
16
|
-
disabled,
|
|
17
|
-
asChild,
|
|
18
|
-
dark,
|
|
19
|
-
...props,
|
|
20
|
-
children
|
|
21
|
-
})
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export { Tab as t };
|
|
27
|
-
//# sourceMappingURL=tab-qLMKkR-4.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tab-qLMKkR-4.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"}
|
package/dist/tabs-BYYODpZJ.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import clsx from "clsx/lite";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Root } from "@radix-ui/react-tabs";
|
|
4
|
-
|
|
5
|
-
//#region src/components/tabs/tabs.tsx
|
|
6
|
-
const Tabs = ({ activationMode = "automatic", orientation = "horizontal", defaultValue, value, onChange, children, className, asChild, dark, ref, ...props }) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(Root, {
|
|
8
|
-
className: clsx("bi-tabs", className),
|
|
9
|
-
activationMode,
|
|
10
|
-
orientation,
|
|
11
|
-
defaultValue,
|
|
12
|
-
value,
|
|
13
|
-
onValueChange: onChange,
|
|
14
|
-
asChild,
|
|
15
|
-
"data-dark": dark,
|
|
16
|
-
ref,
|
|
17
|
-
...props,
|
|
18
|
-
children
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
export { Tabs as t };
|
|
24
|
-
//# sourceMappingURL=tabs-BYYODpZJ.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-BYYODpZJ.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"}
|
package/dist/tabs-Bdxundn7.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import clsx from "clsx/lite";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { List } from "@radix-ui/react-tabs";
|
|
4
|
-
|
|
5
|
-
//#region src/components/tabs/tabs-list.tsx
|
|
6
|
-
const TabsList = ({ className, loop = true, children, asChild, dark, ref, ...props }) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(List, {
|
|
8
|
-
className: clsx("bi-tabs--list", className),
|
|
9
|
-
loop,
|
|
10
|
-
asChild,
|
|
11
|
-
"data-dark": dark,
|
|
12
|
-
ref,
|
|
13
|
-
...props,
|
|
14
|
-
children
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { TabsList as t };
|
|
20
|
-
//# sourceMappingURL=tabs-list-BAnPnTwx.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-list-BAnPnTwx.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,21 +0,0 @@
|
|
|
1
|
-
import clsx from "clsx/lite";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Content } from "@radix-ui/react-tabs";
|
|
4
|
-
|
|
5
|
-
//#region src/components/tabs/tabs-panel.tsx
|
|
6
|
-
const TabsPanel = ({ className, value, forceMount, children, asChild, dark, ref, ...props }) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(Content, {
|
|
8
|
-
className: clsx("bi-tabs--panel", className),
|
|
9
|
-
value,
|
|
10
|
-
forceMount: forceMount || void 0,
|
|
11
|
-
asChild,
|
|
12
|
-
"data-dark": dark,
|
|
13
|
-
ref,
|
|
14
|
-
...props,
|
|
15
|
-
children
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { TabsPanel as t };
|
|
21
|
-
//# sourceMappingURL=tabs-panel-GX2ZoOvH.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tabs-panel-GX2ZoOvH.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 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import clsx from "clsx/lite";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/textarea/textarea.tsx
|
|
5
|
-
const Textarea = ({ className, dark, size, ref, ...props }) => {
|
|
6
|
-
return /* @__PURE__ */ jsx("textarea", {
|
|
7
|
-
className: clsx("bi-input", className),
|
|
8
|
-
"data-dark": dark,
|
|
9
|
-
"data-size": size,
|
|
10
|
-
ref,
|
|
11
|
-
...props
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
export { Textarea as t };
|
|
17
|
-
//# sourceMappingURL=textarea-CHhlswpx.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea-CHhlswpx.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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { t as Field } from "./field-BIBlDQoi.mjs";
|
|
2
|
-
import { t as FieldDescription } from "./field-description-Dt2qLchF.mjs";
|
|
3
|
-
import { n as FieldAffixes, t as FieldAffix } from "./field-affix-DNZXWyx-.mjs";
|
|
4
|
-
import { t as Input } from "./input-DU_8Z4cN.mjs";
|
|
5
|
-
import { t as Label } from "./label-QZyUM8Df.mjs";
|
|
6
|
-
import { t as ValidationMessage } from "./validation-message-376E95cm.mjs";
|
|
7
|
-
import { t as Textarea } from "./textarea-CHhlswpx.mjs";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { useId } from "react";
|
|
10
|
-
|
|
11
|
-
//#region src/components/textfield/textfield.tsx
|
|
12
|
-
const Textfield = ({ dark, label, description, error, multiline, prefix, suffix, style, className, fullwidth, ref, id: idProp, "aria-describedby": ariaDescribedByProp, ...props }) => {
|
|
13
|
-
const generatedId = useId();
|
|
14
|
-
const descriptionId = useId();
|
|
15
|
-
const validationId = useId();
|
|
16
|
-
const id = idProp || generatedId;
|
|
17
|
-
const ariaDescribedBy = [
|
|
18
|
-
description ? descriptionId : "",
|
|
19
|
-
error ? validationId : "",
|
|
20
|
-
ariaDescribedByProp
|
|
21
|
-
].join(" ").trim() || void 0;
|
|
22
|
-
return /* @__PURE__ */ jsxs(Field, {
|
|
23
|
-
className,
|
|
24
|
-
"data-dark": dark,
|
|
25
|
-
style,
|
|
26
|
-
fullwidth,
|
|
27
|
-
children: [
|
|
28
|
-
label && /* @__PURE__ */ jsx(Label, {
|
|
29
|
-
htmlFor: id,
|
|
30
|
-
children: label
|
|
31
|
-
}),
|
|
32
|
-
description && /* @__PURE__ */ jsx(FieldDescription, {
|
|
33
|
-
id: descriptionId,
|
|
34
|
-
children: description
|
|
35
|
-
}),
|
|
36
|
-
/* @__PURE__ */ jsxs(FieldAffixes, { children: [
|
|
37
|
-
prefix && /* @__PURE__ */ jsx(FieldAffix, { children: prefix }),
|
|
38
|
-
multiline ? /* @__PURE__ */ jsx(Textarea, {
|
|
39
|
-
id,
|
|
40
|
-
ref,
|
|
41
|
-
"aria-invalid": Boolean(error) || void 0,
|
|
42
|
-
"aria-describedby": ariaDescribedBy,
|
|
43
|
-
dark,
|
|
44
|
-
...props
|
|
45
|
-
}) : /* @__PURE__ */ jsx(Input, {
|
|
46
|
-
id,
|
|
47
|
-
ref,
|
|
48
|
-
"aria-invalid": Boolean(error) || void 0,
|
|
49
|
-
"aria-describedby": ariaDescribedBy,
|
|
50
|
-
dark,
|
|
51
|
-
...props
|
|
52
|
-
}),
|
|
53
|
-
suffix && /* @__PURE__ */ jsx(FieldAffix, { children: suffix })
|
|
54
|
-
] }),
|
|
55
|
-
!!error && /* @__PURE__ */ jsx(ValidationMessage, {
|
|
56
|
-
id: validationId,
|
|
57
|
-
children: error
|
|
58
|
-
})
|
|
59
|
-
]
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
//#endregion
|
|
64
|
-
export { Textfield as t };
|
|
65
|
-
//# sourceMappingURL=textfield-rcRRkfZB.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textfield-rcRRkfZB.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,17 +0,0 @@
|
|
|
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
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
export { useCheckboxGroup as t };
|
|
17
|
-
//# sourceMappingURL=useCheckboxGroup-B2Px3eiz.mjs.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.tsx
|
|
4
|
-
/** Detects when an element's is scrolled past and is no longer in the viewport. */
|
|
5
|
-
const useIsElementAboveViewport = (elementRef) => {
|
|
6
|
-
const [isAboveViewport, setIsPast] = useState(false);
|
|
7
|
-
useEffect(() => {
|
|
8
|
-
const observer = new IntersectionObserver(([entry]) => setIsPast(entry.boundingClientRect.y < 0), { threshold: [0] });
|
|
9
|
-
const currentRef = elementRef.current;
|
|
10
|
-
if (currentRef) observer.observe(currentRef);
|
|
11
|
-
return () => {
|
|
12
|
-
if (currentRef) observer.unobserve(currentRef);
|
|
13
|
-
};
|
|
14
|
-
}, [elementRef]);
|
|
15
|
-
return isAboveViewport;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { useIsElementAboveViewport as t };
|
|
20
|
-
//# sourceMappingURL=useIsElementAboveViewport-BaSLEYQk.mjs.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { useEffect, useLayoutEffect } from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.ts
|
|
4
|
-
const useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
5
|
-
|
|
6
|
-
//#endregion
|
|
7
|
-
export { useIsomorphicLayoutEffect as t };
|
|
8
|
-
//# sourceMappingURL=useIsomorphicLayoutEffect-Bn8aiGVW.mjs.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { t as useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect-Bn8aiGVW.mjs";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/utilities/hooks/useMediaQuery/useMediaQuery.tsx
|
|
5
|
-
const IS_SERVER = typeof window === "undefined";
|
|
6
|
-
/**
|
|
7
|
-
* 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).
|
|
8
|
-
* @param {string} query - The media query to track.
|
|
9
|
-
* @param {?UseMediaQueryOptions} [options] - The options for customizing the behavior of the hook (optional).
|
|
10
|
-
* @returns {boolean} The current state of the media query (true if the query matches, false otherwise).
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* const isSmallScreen = useMediaQuery('(max-width: 600px)');
|
|
14
|
-
* // Use `isSmallScreen` to conditionally apply styles or logic based on the screen size.
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
function useMediaQuery(query, { defaultValue = false, initializeWithValue = true } = {}) {
|
|
18
|
-
const getMatches = (query) => {
|
|
19
|
-
if (IS_SERVER) return defaultValue;
|
|
20
|
-
return window.matchMedia(query).matches;
|
|
21
|
-
};
|
|
22
|
-
const [matches, setMatches] = useState(() => {
|
|
23
|
-
if (initializeWithValue) return getMatches(query);
|
|
24
|
-
return defaultValue;
|
|
25
|
-
});
|
|
26
|
-
function handleChange() {
|
|
27
|
-
setMatches(getMatches(query));
|
|
28
|
-
}
|
|
29
|
-
useIsomorphicLayoutEffect(() => {
|
|
30
|
-
const matchMedia = window.matchMedia(query);
|
|
31
|
-
handleChange();
|
|
32
|
-
if (matchMedia.addListener) matchMedia.addListener(handleChange);
|
|
33
|
-
else matchMedia.addEventListener("change", handleChange);
|
|
34
|
-
return () => {
|
|
35
|
-
if (matchMedia.removeListener) matchMedia.removeListener(handleChange);
|
|
36
|
-
else matchMedia.removeEventListener("change", handleChange);
|
|
37
|
-
};
|
|
38
|
-
}, [query]);
|
|
39
|
-
return matches;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
//#endregion
|
|
43
|
-
export { useMediaQuery as t };
|
|
44
|
-
//# sourceMappingURL=useMediaQuery-BRGC6S33.mjs.map
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { useCallback, useMemo, useRef } from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/utilities/hooks/useMergeRefs/useMergeRefs.ts
|
|
4
|
-
/**
|
|
5
|
-
* Merges an array of refs into a single memoized callback ref or `null`.
|
|
6
|
-
*/
|
|
7
|
-
function useMergeRefs(refs) {
|
|
8
|
-
const cleanupRef = useRef(void 0);
|
|
9
|
-
const refEffect = useCallback((instance) => {
|
|
10
|
-
const cleanups = refs.map((ref) => {
|
|
11
|
-
if (ref == null) return;
|
|
12
|
-
if (typeof ref === "function") {
|
|
13
|
-
const refCallback = ref;
|
|
14
|
-
const refCleanup = refCallback(instance);
|
|
15
|
-
return typeof refCleanup === "function" ? refCleanup : () => {
|
|
16
|
-
refCallback(null);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
ref.current = instance;
|
|
20
|
-
return () => {
|
|
21
|
-
ref.current = null;
|
|
22
|
-
};
|
|
23
|
-
});
|
|
24
|
-
return () => {
|
|
25
|
-
for (const refCleanup of cleanups) refCleanup?.();
|
|
26
|
-
};
|
|
27
|
-
}, refs);
|
|
28
|
-
return useMemo(() => {
|
|
29
|
-
if (refs.every((ref) => ref == null)) return null;
|
|
30
|
-
return (value) => {
|
|
31
|
-
if (cleanupRef.current) {
|
|
32
|
-
cleanupRef.current();
|
|
33
|
-
cleanupRef.current = void 0;
|
|
34
|
-
}
|
|
35
|
-
if (value != null) cleanupRef.current = refEffect(value);
|
|
36
|
-
};
|
|
37
|
-
}, refs);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
export { useMergeRefs as t };
|
|
42
|
-
//# sourceMappingURL=useMergeRefs-DeEL5hK6.mjs.map
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
3
|
-
|
|
4
|
-
//#region src/utilities/hooks/usePagination/usePagination.tsx
|
|
5
|
-
const range = (start, end) => {
|
|
6
|
-
const length = end - start + 1;
|
|
7
|
-
return Array.from({ length }, (_, i) => start + i);
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Hook to help manage pagination state of a Pagination component.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* const { pages, nextButtonProps, prevButtonProps } = usePagination({
|
|
14
|
-
* page,
|
|
15
|
-
* count: 10,
|
|
16
|
-
* showPages: 7,
|
|
17
|
-
* boundaryCount: 1,
|
|
18
|
-
* siblingCount: 1,
|
|
19
|
-
* })
|
|
20
|
-
*
|
|
21
|
-
* <Pagination>
|
|
22
|
-
* <PaginationItem>
|
|
23
|
-
* <PaginationButton {...prevButtonProps}>Previous</PaginationButton>
|
|
24
|
-
* </PaginationItem>
|
|
25
|
-
* {pages.map(({ page, itemKey, buttonProps }) => (
|
|
26
|
-
* <PaginationItem key={itemKey}>
|
|
27
|
-
* {typeof page === 'number' && (
|
|
28
|
-
* <PaginationButton {...buttonProps} aria-label={`Page ${page}`}>
|
|
29
|
-
* {page}
|
|
30
|
-
* </PaginationButton>
|
|
31
|
-
* )}
|
|
32
|
-
* </PaginationItem>
|
|
33
|
-
* ))}
|
|
34
|
-
* <PaginationItem>
|
|
35
|
-
* <PaginationButton {...nextButtonProps}>Next</PaginationButton>
|
|
36
|
-
* </PaginationItem>
|
|
37
|
-
* </Pagination>
|
|
38
|
-
**/
|
|
39
|
-
const usePagination = ({ count, page: pageProp, defaultPage, boundaryCount = 1, siblingCount = 1, disabled = false, onPageChange }) => {
|
|
40
|
-
const [page, setPage] = useControllableState({
|
|
41
|
-
prop: pageProp,
|
|
42
|
-
onChange: onPageChange,
|
|
43
|
-
defaultProp: defaultPage ?? 1,
|
|
44
|
-
caller: "Pagination"
|
|
45
|
-
});
|
|
46
|
-
return useMemo(() => {
|
|
47
|
-
const startPages = range(1, Math.min(boundaryCount, count));
|
|
48
|
-
const endPages = range(Math.max(count - boundaryCount + 1, boundaryCount + 1), count);
|
|
49
|
-
const siblingsStart = Math.max(Math.min(page - siblingCount, count - boundaryCount - siblingCount * 2 - 1), boundaryCount + 2);
|
|
50
|
-
const siblingsEnd = Math.min(Math.max(page + siblingCount, boundaryCount + siblingCount * 2 + 2), count - boundaryCount - 1);
|
|
51
|
-
const itemList = [
|
|
52
|
-
...startPages,
|
|
53
|
-
...siblingsStart > boundaryCount + 2 ? ["ellipsis"] : boundaryCount + 1 < count - boundaryCount ? [boundaryCount + 1] : [],
|
|
54
|
-
...range(siblingsStart, siblingsEnd),
|
|
55
|
-
...siblingsEnd < count - boundaryCount - 1 ? ["ellipsis"] : count - boundaryCount > boundaryCount ? [count - boundaryCount] : [],
|
|
56
|
-
...endPages
|
|
57
|
-
];
|
|
58
|
-
const hasNext = page < count;
|
|
59
|
-
const hasPrev = page !== 1;
|
|
60
|
-
return {
|
|
61
|
-
pages: itemList.map((item, index) => ({
|
|
62
|
-
page: item,
|
|
63
|
-
key: typeof item === "number" ? `page-${item}` : `ellipsis-${index}`,
|
|
64
|
-
buttonProps: typeof item === "number" ? {
|
|
65
|
-
"aria-current": item === page ? "page" : void 0,
|
|
66
|
-
onClick: () => setPage(item),
|
|
67
|
-
variant: "text"
|
|
68
|
-
} : null
|
|
69
|
-
})),
|
|
70
|
-
prevButtonProps: {
|
|
71
|
-
disabled: disabled || !hasPrev,
|
|
72
|
-
"aria-disabled": disabled || !hasPrev,
|
|
73
|
-
onClick: () => setPage(page - 1),
|
|
74
|
-
variant: "text"
|
|
75
|
-
},
|
|
76
|
-
nextButtonProps: {
|
|
77
|
-
disabled: disabled || !hasNext,
|
|
78
|
-
"aria-disabled": disabled || !hasNext,
|
|
79
|
-
onClick: () => setPage(page + 1),
|
|
80
|
-
variant: "text"
|
|
81
|
-
},
|
|
82
|
-
hasPrev,
|
|
83
|
-
hasNext
|
|
84
|
-
};
|
|
85
|
-
}, [
|
|
86
|
-
boundaryCount,
|
|
87
|
-
count,
|
|
88
|
-
disabled,
|
|
89
|
-
page,
|
|
90
|
-
setPage,
|
|
91
|
-
siblingCount
|
|
92
|
-
]);
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
//#endregion
|
|
96
|
-
export { usePagination as t };
|
|
97
|
-
//# sourceMappingURL=usePagination-aBXSjQBp.mjs.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/utilities/hooks/useScrollDirection/useScrollDirection.tsx
|
|
4
|
-
/**
|
|
5
|
-
* A custom React hook that detects the vertical scroll direction of the page.
|
|
6
|
-
*
|
|
7
|
-
* @returns {'up' | 'down' | null} The current scroll direction. Returns `null` on the initial render.
|
|
8
|
-
* The direction is only updated if the scroll distance exceeds a 5px threshold to prevent sensitivity to minor scroll jitter.
|
|
9
|
-
*/
|
|
10
|
-
const useScrollDirection = () => {
|
|
11
|
-
const [scrollDirection, setScrollDirection] = useState(null);
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
let lastScrollY = window.pageYOffset;
|
|
14
|
-
const updateScrollDirection = () => {
|
|
15
|
-
const scrollY = window.pageYOffset;
|
|
16
|
-
const direction = scrollY > lastScrollY ? "down" : "up";
|
|
17
|
-
if (direction !== scrollDirection && (scrollY - lastScrollY > 5 || scrollY - lastScrollY < -5)) setScrollDirection(direction);
|
|
18
|
-
lastScrollY = scrollY > 0 ? scrollY : 0;
|
|
19
|
-
};
|
|
20
|
-
window.addEventListener("scroll", updateScrollDirection);
|
|
21
|
-
return () => window.removeEventListener("scroll", updateScrollDirection);
|
|
22
|
-
}, [scrollDirection]);
|
|
23
|
-
return scrollDirection;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { useScrollDirection as t };
|
|
28
|
-
//# sourceMappingURL=useScrollDirection-C36-HP3S.mjs.map
|