@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-trigger-context.mjs","names":[],"sources":["../../../src/components/dropdown/dropdown-trigger-context.tsx"],"sourcesContent":["import { PopoverTriggerContext, type PopoverTriggerContextProps } from '../popover';\n\nexport type DropdownTriggerContextProps = PopoverTriggerContextProps;\n\n/**\n * DropdownTriggerContext component, use to wrap a DropdownTrigger and Dropdown.\n *\n * @example\n * <DropdownTriggerContext>\n * <DropdownTrigger>Dropdown</DropdownTrigger>\n * <Dropdown>\n * <DropdownHeading>Heading</DropdownHeading>\n * <DropdownList>\n * <DropdownItem>\n * <DropdownButton>Button</DropdownButton>\n * </DropdownItem>\n * </DropdownList>\n * </Dropdown>\n * </DropdownTriggerContext>\n */\nexport const DropdownTriggerContext = ({ children, ...props }: DropdownTriggerContextProps) => (\n <PopoverTriggerContext {...props}>{children}</PopoverTriggerContext>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,0BAA0B,EAAE,UAAU,GAAG,YACpD,oBAAC,uBAAD;CAAuB,GAAI;CAAQ;CAAiC,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { _t as DropdownTrigger, vt as DropdownTriggerProps } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { bt as DropdownTriggerProps, yt as DropdownTrigger } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { DropdownTrigger, DropdownTriggerProps };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { PopoverTrigger } from "../popover/popover-trigger.mjs";
|
|
2
|
+
import "../popover/index.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/dropdown/dropdown-trigger.tsx
|
|
5
|
+
const DropdownTrigger = ({ ref, ...rest }) => /* @__PURE__ */ jsx(PopoverTrigger, {
|
|
6
|
+
variant: "text",
|
|
7
|
+
ref,
|
|
8
|
+
...rest
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { DropdownTrigger };
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
//# sourceMappingURL=dropdown-trigger.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-trigger.mjs","names":[],"sources":["../../../src/components/dropdown/dropdown-trigger.tsx"],"sourcesContent":["import { PopoverTrigger, type PopoverTriggerProps } from '../popover';\n\nexport type DropdownTriggerProps = PopoverTriggerProps;\n\nexport const DropdownTrigger = ({ ref, ...rest }: DropdownTriggerProps) => (\n <PopoverTrigger variant='text' ref={ref} {...rest} />\n);\n"],"mappings":";;;;AAIA,MAAa,mBAAmB,EAAE,KAAK,GAAG,WACxC,oBAAC,gBAAD;CAAgB,SAAQ;CAAY;CAAK,GAAI;CAAQ,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { St as DropdownProps, xt as Dropdown } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { Ct as Dropdown, wt as DropdownProps } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { Dropdown, DropdownProps };
|
|
@@ -1,13 +1,44 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { Popover } from "../popover/popover.mjs";
|
|
2
|
+
import "../popover/index.mjs";
|
|
3
|
+
import clsx from "clsx/lite";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/dropdown/dropdown.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Dropdown component, used to display a list of options.
|
|
8
|
+
*
|
|
9
|
+
* @example with TriggerContext
|
|
10
|
+
* <DropdownTriggerContext>
|
|
11
|
+
* <DropdownTrigger>Dropdown trigger</DropdownTrigger>
|
|
12
|
+
* <Dropdown placement='bottom-end'>
|
|
13
|
+
* <DropdownHeading>Dropdown</DropdownHeading>
|
|
14
|
+
* <DropdownList>
|
|
15
|
+
* <DropdownItem>
|
|
16
|
+
* <DropdownButton>Item</DropdownButton>
|
|
17
|
+
* </DropdownItem>
|
|
18
|
+
* </DropdownList>
|
|
19
|
+
* </Dropdown>
|
|
20
|
+
* </DropdownTriggerContext>
|
|
21
|
+
*
|
|
22
|
+
* @example without TriggerContext
|
|
23
|
+
* <Button aria-controls="some-dropdown" aria-expanded={open}>Trigger</Button>
|
|
24
|
+
* <Dropdown id="some-dropdown" open={open} onOpenChange={onOpenChange}>
|
|
25
|
+
* <DropdownHeading>Heading</DropdownHeading>
|
|
26
|
+
* <DropdownList>
|
|
27
|
+
* <DropdownItem>
|
|
28
|
+
* <DropdownButton>Item</DropdownButton>
|
|
29
|
+
* </DropdownItem>
|
|
30
|
+
* </DropdownList>
|
|
31
|
+
* </Dropdown>
|
|
32
|
+
*/
|
|
33
|
+
const Dropdown = ({ placement = "bottom-end", className, ref, ...rest }) => {
|
|
34
|
+
return /* @__PURE__ */ jsx(Popover, {
|
|
35
|
+
className: clsx("bi-dropdown", className),
|
|
36
|
+
placement,
|
|
37
|
+
ref,
|
|
38
|
+
...rest
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Dropdown };
|
|
12
43
|
|
|
13
|
-
|
|
44
|
+
//# sourceMappingURL=dropdown.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.mjs","names":[],"sources":["../../../src/components/dropdown/dropdown.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Popover, type PopoverProps } from '../popover';\n\nexport type DropdownProps = MergeRight<\n DefaultProps & PopoverProps,\n {\n /**\n * The placement of the dropdown\n * @default bottom-end\n */\n placement?: PopoverProps['placement'];\n }\n>;\n\n/**\n * Dropdown component, used to display a list of options.\n *\n * @example with TriggerContext\n * <DropdownTriggerContext>\n * <DropdownTrigger>Dropdown trigger</DropdownTrigger>\n * <Dropdown placement='bottom-end'>\n * <DropdownHeading>Dropdown</DropdownHeading>\n * <DropdownList>\n * <DropdownItem>\n * <DropdownButton>Item</DropdownButton>\n * </DropdownItem>\n * </DropdownList>\n * </Dropdown>\n * </DropdownTriggerContext>\n *\n * @example without TriggerContext\n * <Button aria-controls=\"some-dropdown\" aria-expanded={open}>Trigger</Button>\n * <Dropdown id=\"some-dropdown\" open={open} onOpenChange={onOpenChange}>\n * <DropdownHeading>Heading</DropdownHeading>\n * <DropdownList>\n * <DropdownItem>\n * <DropdownButton>Item</DropdownButton>\n * </DropdownItem>\n * </DropdownList>\n * </Dropdown>\n */\nexport const Dropdown = ({ placement = 'bottom-end', className, ref, ...rest }: DropdownProps) => {\n return <Popover className={clsx('bi-dropdown', className)} placement={placement} ref={ref} {...rest} />;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,YAAY,EAAE,YAAY,cAAc,WAAW,KAAK,GAAG,WAA0B;AAChG,QAAO,oBAAC,SAAD;EAAS,WAAW,KAAK,eAAe,UAAU;EAAa;EAAgB;EAAK,GAAI;EAAQ,CAAA"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../
|
|
3
|
-
import "../../
|
|
4
|
-
import { St as DropdownProps, _t as DropdownTrigger, bt as DropdownButtonProps, gt as DropdownTriggerContextProps, ht as DropdownTriggerContext, vt as DropdownTriggerProps, xt as Dropdown, yt as DropdownButton } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
7
|
-
import "../../popover-trigger-context-sQGC75uf.mjs";
|
|
8
|
-
import { n as DropdownItemProps, t as DropdownItem } from "../../dropdown-item-wInrqt83.mjs";
|
|
9
|
-
import { n as DropdownListProps, t as DropdownList } from "../../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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { Ct as Dropdown, St as DropdownButtonProps, _t as DropdownTriggerContext, bt as DropdownTriggerProps, vt as DropdownTriggerContextProps, wt as DropdownProps, xt as DropdownButton, yt as DropdownTrigger } from "../../alert-footer-D_kCDrhn.mjs";
|
|
2
|
+
import { n as DropdownItemProps, t as DropdownItem } from "../../dropdown-item-aYyDctA9.mjs";
|
|
3
|
+
import { n as DropdownListProps, t as DropdownList } from "../../dropdown-list-Dg3yJhKc.mjs";
|
|
15
4
|
export { Dropdown, DropdownButton, DropdownButtonProps, DropdownItem, DropdownItemProps, DropdownList, DropdownListProps, DropdownProps, DropdownTrigger, DropdownTriggerContext, DropdownTriggerContextProps, DropdownTriggerProps };
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
import "../../popover-CGqBsAam.mjs";
|
|
9
|
-
import "../../popover-trigger-BDYAK6jg.mjs";
|
|
10
|
-
import "../../popover-C_lxbEYu.mjs";
|
|
11
|
-
import { t as Dropdown } from "../../dropdown-BZZfp-oa.mjs";
|
|
12
|
-
import { t as DropdownButton } from "../../dropdown-button-DFRD5c3-.mjs";
|
|
13
|
-
import { t as DropdownItem } from "../../dropdown-item-rKVicLWJ.mjs";
|
|
14
|
-
import { t as DropdownList } from "../../dropdown-list-CCnbpP3r.mjs";
|
|
15
|
-
import { t as DropdownTrigger } from "../../dropdown-trigger-FhCAqY-W.mjs";
|
|
16
|
-
import { t as DropdownTriggerContext } from "../../dropdown-trigger-context-DnY5awW2.mjs";
|
|
17
|
-
import "../../dropdown-4m7NoRv7.mjs";
|
|
18
|
-
|
|
19
|
-
export { Dropdown, DropdownButton, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext };
|
|
1
|
+
import { Dropdown } from "./dropdown.mjs";
|
|
2
|
+
import { DropdownButton } from "./dropdown-button.mjs";
|
|
3
|
+
import { DropdownItem } from "./dropdown-item.mjs";
|
|
4
|
+
import { DropdownList } from "./dropdown-list.mjs";
|
|
5
|
+
import { DropdownTrigger } from "./dropdown-trigger.mjs";
|
|
6
|
+
import { DropdownTriggerContext } from "./dropdown-trigger-context.mjs";
|
|
7
|
+
export { Dropdown, DropdownButton, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { ct as FieldAffixProps, lt as FieldAffixes, st as FieldAffix, ut as FieldAffixesProps } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { dt as FieldAffixes, ft as FieldAffixesProps, lt as FieldAffix, ut as FieldAffixProps } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps };
|
|
@@ -1,3 +1,44 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/field/field-affix.tsx
|
|
5
|
+
/**
|
|
6
|
+
* FieldAffixes component, used to wrap a form field.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <FieldAffixes>
|
|
10
|
+
* <FieldAffix>+47</FieldAffix>
|
|
11
|
+
* <Input />
|
|
12
|
+
* <FieldAffix>kr</FieldAffix>
|
|
13
|
+
* </FieldAffixes>
|
|
14
|
+
*/
|
|
15
|
+
const FieldAffixes = ({ className, asChild, ref, ...rest }) => {
|
|
16
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
17
|
+
className: clsx("bi-field--affixes", className),
|
|
18
|
+
ref,
|
|
19
|
+
...rest
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* FieldAffix component, used to display prefix/suffix for a form field.
|
|
24
|
+
* Use inside the `FieldAffixes` component.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* <FieldAffixes>
|
|
28
|
+
* <FieldAffix>+47</FieldAffix>
|
|
29
|
+
* <Input />
|
|
30
|
+
* <FieldAffix>kr</FieldAffix>
|
|
31
|
+
* </FieldAffixes>
|
|
32
|
+
*/
|
|
33
|
+
const FieldAffix = ({ className, asChild, ref, ...rest }) => {
|
|
34
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "span", {
|
|
35
|
+
className: clsx("bi-field--affix", className),
|
|
36
|
+
"aria-hidden": "true",
|
|
37
|
+
ref,
|
|
38
|
+
...rest
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { FieldAffix, FieldAffixes };
|
|
2
43
|
|
|
3
|
-
|
|
44
|
+
//# sourceMappingURL=field-affix.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-affix.mjs","names":[],"sources":["../../../src/components/field/field-affix.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\nimport { Slot } from '@radix-ui/react-slot';\n\nexport type FieldAffixesProps = MergeRight<\n AsChildProps & Omit<HTMLAttributes<HTMLDivElement>, 'prefix'>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\n/**\n * FieldAffixes component, used to wrap a form field.\n *\n * @example\n * <FieldAffixes>\n * <FieldAffix>+47</FieldAffix>\n * <Input />\n * <FieldAffix>kr</FieldAffix>\n * </FieldAffixes>\n */\nexport const FieldAffixes = ({ className, asChild, ref, ...rest }: FieldAffixesProps) => {\n const Component = asChild ? Slot : 'div';\n return <Component className={clsx('bi-field--affixes', className)} ref={ref} {...rest} />;\n};\n\nexport type FieldAffixProps = MergeRight<\n AsChildProps & Omit<HTMLAttributes<HTMLSpanElement>, 'prefix'>,\n {\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\n/**\n * FieldAffix component, used to display prefix/suffix for a form field.\n * Use inside the `FieldAffixes` component.\n *\n * @example\n * <FieldAffixes>\n * <FieldAffix>+47</FieldAffix>\n * <Input />\n * <FieldAffix>kr</FieldAffix>\n * </FieldAffixes>\n */\nexport const FieldAffix = ({ className, asChild, ref, ...rest }: FieldAffixProps) => {\n const Component = asChild ? Slot : 'span';\n return <Component className={clsx('bi-field--affix', className)} aria-hidden='true' ref={ref} {...rest} />;\n};\n"],"mappings":";;;;;;;;;;;;;;AAuBA,MAAa,gBAAgB,EAAE,WAAW,SAAS,KAAK,GAAG,WAA8B;AAEvF,QAAO,oBADW,UAAU,OAAO,OAC5B;EAAW,WAAW,KAAK,qBAAqB,UAAU;EAAO;EAAK,GAAI;EAAQ,CAAA;;;;;;;;;;;;;AAqB3F,MAAa,cAAc,EAAE,WAAW,SAAS,KAAK,GAAG,WAA4B;AAEnF,QAAO,oBADW,UAAU,OAAO,QAC5B;EAAW,WAAW,KAAK,mBAAmB,UAAU;EAAE,eAAY;EAAY;EAAK,GAAI;EAAQ,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { dt as FieldDescription, ft as FieldDescriptionProps } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { mt as FieldDescriptionProps, pt as FieldDescription } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { FieldDescription, FieldDescriptionProps };
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/field/field-description.tsx
|
|
5
|
+
const FieldDescription = ({ asChild, className, ref, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
7
|
+
className: clsx("bi-field--description", className),
|
|
8
|
+
ref,
|
|
9
|
+
...props
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { FieldDescription };
|
|
2
14
|
|
|
3
|
-
|
|
15
|
+
//# sourceMappingURL=field-description.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-description.mjs","names":[],"sources":["../../../src/components/field/field-description.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type FieldDescriptionProps = MergeRight<\n AsChildProps & HTMLAttributes<HTMLDivElement>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const FieldDescription = ({ asChild, className, ref, ...props }: FieldDescriptionProps) => {\n const Component = asChild ? Slot : 'div';\n\n return <Component className={clsx('bi-field--description', className)} ref={ref} {...props} />;\n};\n"],"mappings":";;;;AAaA,MAAa,oBAAoB,EAAE,SAAS,WAAW,KAAK,GAAG,YAAmC;AAGhG,QAAO,oBAFW,UAAU,OAAO,OAE5B;EAAW,WAAW,KAAK,yBAAyB,UAAU;EAAO;EAAK,GAAI;EAAS,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { mt as FieldProps, pt as Field } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { gt as FieldProps, ht as Field } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { Field, FieldProps };
|
|
@@ -1,3 +1,29 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/field/field.tsx
|
|
5
|
+
/**
|
|
6
|
+
* The Field component is used to wrap a form field.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <Field>
|
|
10
|
+
* <Label>Kort beskrivelse</Label>
|
|
11
|
+
* <FieldDescription>Beskrivelse</FieldDescription>
|
|
12
|
+
* <Input />
|
|
13
|
+
* <ValidationMessage>Feilmelding</ValidationMessage>
|
|
14
|
+
* </Field>
|
|
15
|
+
*/
|
|
16
|
+
const Field = ({ className, dark, position, fullwidth, asChild, ref, ...props }) => {
|
|
17
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
18
|
+
className: clsx("bi-field", className),
|
|
19
|
+
"data-dark": dark,
|
|
20
|
+
"data-position": position,
|
|
21
|
+
"data-fullwidth": fullwidth,
|
|
22
|
+
ref,
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { Field };
|
|
2
28
|
|
|
3
|
-
|
|
29
|
+
//# sourceMappingURL=field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.mjs","names":[],"sources":["../../../src/components/field/field.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps, AsChildProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type FieldProps = MergeRight<\n DefaultProps & AsChildProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * Position of toggle-type inputs (radio, checkbox) in the field\n * @default start\n */\n position?: 'start' | 'end';\n /** Set width: 100% */\n fullwidth?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\n/**\n * The Field component is used to wrap a form field.\n *\n * @example\n * <Field>\n * <Label>Kort beskrivelse</Label>\n * <FieldDescription>Beskrivelse</FieldDescription>\n * <Input />\n * <ValidationMessage>Feilmelding</ValidationMessage>\n * </Field>\n */\nexport const Field = ({ className, dark, position, fullwidth, asChild, ref, ...props }: FieldProps) => {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component\n className={clsx('bi-field', className)}\n data-dark={dark}\n data-position={position}\n data-fullwidth={fullwidth}\n ref={ref}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;AA+BA,MAAa,SAAS,EAAE,WAAW,MAAM,UAAU,WAAW,SAAS,KAAK,GAAG,YAAwB;AAGrG,QACE,oBAHgB,UAAU,OAAO,OAGjC;EACE,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,iBAAe;EACf,kBAAgB;EACX;EACL,GAAI;EACJ,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { ct as FieldAffixProps, dt as FieldDescription, ft as FieldDescriptionProps, lt as FieldAffixes, mt as FieldProps, pt as Field, st as FieldAffix, ut as FieldAffixesProps } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { dt as FieldAffixes, ft as FieldAffixesProps, gt as FieldProps, ht as Field, lt as FieldAffix, mt as FieldDescriptionProps, pt as FieldDescription, ut as FieldAffixProps } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { Field, FieldAffix, FieldAffixProps, FieldAffixes, FieldAffixesProps, FieldDescription, FieldDescriptionProps, FieldProps };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { Field, FieldAffix, FieldAffixes, FieldDescription };
|
|
1
|
+
import { Field } from "./field.mjs";
|
|
2
|
+
import { FieldDescription } from "./field-description.mjs";
|
|
3
|
+
import { FieldAffix, FieldAffixes } from "./field-affix.mjs";
|
|
4
|
+
export { Field, FieldAffix, FieldAffixes, FieldDescription };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { it as FieldsetDescriptionProps, rt as FieldsetDescription } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { at as FieldsetDescription, ot as FieldsetDescriptionProps } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { FieldsetDescription, FieldsetDescriptionProps };
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/fieldset/fieldset-description.tsx
|
|
4
|
+
const FieldsetDescription = ({ asChild, ref, ...props }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "p", {
|
|
6
|
+
ref,
|
|
7
|
+
...props
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { FieldsetDescription };
|
|
2
12
|
|
|
3
|
-
|
|
13
|
+
//# sourceMappingURL=fieldset-description.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldset-description.mjs","names":[],"sources":["../../../src/components/fieldset/fieldset-description.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type FieldsetDescriptionProps = MergeRight<\n AsChildProps & HTMLAttributes<HTMLParagraphElement>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const FieldsetDescription = ({ asChild, ref, ...props }: FieldsetDescriptionProps) => {\n const Component = asChild ? Slot : 'p';\n\n return <Component ref={ref} {...props} />;\n};\n"],"mappings":";;;AAYA,MAAa,uBAAuB,EAAE,SAAS,KAAK,GAAG,YAAsC;AAG3F,QAAO,oBAFW,UAAU,OAAO,KAE5B;EAAgB;EAAK,GAAI;EAAS,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { $ as FieldsetLegend, et as FieldsetLegendProps } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { nt as FieldsetLegendProps, tt as FieldsetLegend } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { FieldsetLegend, FieldsetLegendProps };
|
|
@@ -1,5 +1,19 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
1
|
+
import { Label } from "../label/label.mjs";
|
|
2
|
+
import "../label/index.mjs";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/fieldset/fieldset-legend.tsx
|
|
5
|
+
const FieldsetLegend = ({ children, dark, ref, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(Label, {
|
|
7
|
+
asChild: true,
|
|
8
|
+
dark,
|
|
9
|
+
children: /* @__PURE__ */ jsx("legend", {
|
|
10
|
+
ref,
|
|
11
|
+
...props,
|
|
12
|
+
children
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { FieldsetLegend };
|
|
4
18
|
|
|
5
|
-
|
|
19
|
+
//# sourceMappingURL=fieldset-legend.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldset-legend.mjs","names":[],"sources":["../../../src/components/fieldset/fieldset-legend.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport { Label, type LabelProps } from '../label';\n\nexport type FieldsetLegendProps = MergeRight<\n LabelProps & HTMLAttributes<HTMLLegendElement>,\n {\n ref?: Ref<HTMLLegendElement>;\n }\n>;\n\nexport const FieldsetLegend = ({ children, dark, ref, ...props }: FieldsetLegendProps) => {\n return (\n <Label asChild dark={dark}>\n <legend ref={ref} {...props}>\n {children}\n </legend>\n </Label>\n );\n};\n"],"mappings":";;;;AAWA,MAAa,kBAAkB,EAAE,UAAU,MAAM,KAAK,GAAG,YAAiC;AACxF,QACE,oBAAC,OAAD;EAAO,SAAA;EAAc;YACnB,oBAAC,UAAD;GAAa;GAAK,GAAI;GACnB;GACM,CAAA;EACH,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { at as Fieldset, ot as FieldsetProps } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { ct as FieldsetProps, st as Fieldset } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { Fieldset, FieldsetProps };
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/fieldset/fieldset.tsx
|
|
4
|
+
const Fieldset = ({ children, className, dark, ref, ...props }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx("fieldset", {
|
|
6
|
+
className: clsx("bi-fieldset", className),
|
|
7
|
+
"data-dark": dark,
|
|
8
|
+
ref,
|
|
9
|
+
...props,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Fieldset };
|
|
2
15
|
|
|
3
|
-
|
|
16
|
+
//# sourceMappingURL=fieldset.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldset.mjs","names":[],"sources":["../../../src/components/fieldset/fieldset.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { FieldsetHTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type FieldsetProps = MergeRight<\n DefaultProps & FieldsetHTMLAttributes<HTMLFieldSetElement>,\n {\n ref?: Ref<HTMLFieldSetElement>;\n }\n>;\n\nexport const Fieldset = ({ children, className, dark, ref, ...props }: FieldsetProps) => {\n return (\n <fieldset className={clsx('bi-fieldset', className)} data-dark={dark} ref={ref} {...props}>\n {children}\n </fieldset>\n );\n};\n"],"mappings":";;;AAYA,MAAa,YAAY,EAAE,UAAU,WAAW,MAAM,KAAK,GAAG,YAA2B;AACvF,QACE,oBAAC,YAAD;EAAU,WAAW,KAAK,eAAe,UAAU;EAAE,aAAW;EAAW;EAAK,GAAI;EACjF;EACQ,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { $ as FieldsetLegend, at as Fieldset, et as FieldsetLegendProps, it as FieldsetDescriptionProps, ot as FieldsetProps, rt as FieldsetDescription } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { at as FieldsetDescription, ct as FieldsetProps, nt as FieldsetLegendProps, ot as FieldsetDescriptionProps, st as Fieldset, tt as FieldsetLegend } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { Fieldset, FieldsetDescription, FieldsetDescriptionProps, FieldsetLegend, FieldsetLegendProps, FieldsetProps };
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { t as FieldsetLegend } from "../../fieldset-legend-CSlBCJxg.mjs";
|
|
6
|
-
import "../../fieldset-EvlIWkNe.mjs";
|
|
7
|
-
|
|
8
|
-
export { Fieldset, FieldsetDescription, FieldsetLegend };
|
|
1
|
+
import { Fieldset } from "./fieldset.mjs";
|
|
2
|
+
import { FieldsetDescription } from "./fieldset-description.mjs";
|
|
3
|
+
import { FieldsetLegend } from "./fieldset-legend.mjs";
|
|
4
|
+
export { Fieldset, FieldsetDescription, FieldsetLegend };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { Q as FilterGroupProps, Z as FilterGroup } from "../../alert-footer-CHHPzMiX.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-Dlf5Whq6.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-3hDiHR-k.mjs";
|
|
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 "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { $ as FilterGroup, et as FilterGroupProps } from "../../alert-footer-D_kCDrhn.mjs";
|
|
15
2
|
export { FilterGroup, FilterGroupProps };
|
|
@@ -1,3 +1,39 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChevronDownIcon, ChevronUpIcon } from "@bi-digital/icons";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useId } from "react";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
6
|
+
//#region src/components/filter-group/filter-group.tsx
|
|
7
|
+
const FilterGroup = ({ dark, icon, label, defaultOpen = false, open, onOpenChange, children, className, ref, ...props }) => {
|
|
8
|
+
const filterContentId = useId();
|
|
9
|
+
const [isOpen, setIsOpen] = useControllableState({
|
|
10
|
+
prop: open,
|
|
11
|
+
onChange: onOpenChange,
|
|
12
|
+
defaultProp: defaultOpen,
|
|
13
|
+
caller: "FilterGroup"
|
|
14
|
+
});
|
|
15
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
16
|
+
className: clsx("bi-filter-group", className),
|
|
17
|
+
"data-dark": dark,
|
|
18
|
+
"data-expanded": isOpen,
|
|
19
|
+
...props,
|
|
20
|
+
ref,
|
|
21
|
+
children: [/* @__PURE__ */ jsxs("button", {
|
|
22
|
+
onClick: () => setIsOpen((prev) => !prev),
|
|
23
|
+
"aria-expanded": isOpen,
|
|
24
|
+
"aria-controls": filterContentId,
|
|
25
|
+
children: [
|
|
26
|
+
icon,
|
|
27
|
+
/* @__PURE__ */ jsx("h3", { children: label }),
|
|
28
|
+
isOpen ? /* @__PURE__ */ jsx(ChevronUpIcon, {}) : /* @__PURE__ */ jsx(ChevronDownIcon, {})
|
|
29
|
+
]
|
|
30
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
31
|
+
id: filterContentId,
|
|
32
|
+
children
|
|
33
|
+
})]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { FilterGroup };
|
|
2
38
|
|
|
3
|
-
|
|
39
|
+
//# sourceMappingURL=filter-group.mjs.map
|