@bi-digital/react 0.9.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/dist/{alert-footer-CHHPzMiX.d.mts → alert-footer-42JbxJ0B.d.mts} +132 -155
- 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-wInrqt83.d.mts → dropdown-item-B6MmulV_.d.mts} +3 -3
- package/dist/{dropdown-list-z14BOCh4.d.mts → dropdown-list-DKugDMKm.d.mts} +3 -3
- package/dist/{footer-links-C7vC-VD7.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-cKOuhfhM.d.mts → pagination-item-AQQSJ7GD.d.mts} +3 -3
- package/dist/{popover-trigger-context-sQGC75uf.d.mts → popover-trigger-context-BG1lPWXA.d.mts} +5 -5
- package/dist/{sticky-header-Y0uT-nWI.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-DXCY5AxR.d.mts +7 -0
- 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 -15
- 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/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-Dc-SdpIe.d.mts} +0 -0
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
//#region src/components/card/card-header.tsx
|
|
4
|
+
const CardHeader = ({ className, ref, header, label, subLabel, description, ...props }) => {
|
|
5
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
6
|
+
className: clsx("bi-card--header", className),
|
|
7
|
+
ref,
|
|
8
|
+
...props,
|
|
9
|
+
children: [
|
|
10
|
+
(label || subLabel) && /* @__PURE__ */ jsxs("p", {
|
|
11
|
+
className: "bi-card--header-label",
|
|
12
|
+
children: [
|
|
13
|
+
label && /* @__PURE__ */ jsx("span", {
|
|
14
|
+
className: "bi-card--header-bold",
|
|
15
|
+
children: label
|
|
16
|
+
}),
|
|
17
|
+
label && subLabel && /* @__PURE__ */ jsx("span", {
|
|
18
|
+
"aria-hidden": "true",
|
|
19
|
+
className: "bi-card--header-dot"
|
|
20
|
+
}),
|
|
21
|
+
subLabel && /* @__PURE__ */ jsx("span", { children: subLabel })
|
|
22
|
+
]
|
|
23
|
+
}),
|
|
24
|
+
header && /* @__PURE__ */ jsx("h3", {
|
|
25
|
+
className: "bi-card--header-title",
|
|
26
|
+
children: header
|
|
27
|
+
}),
|
|
28
|
+
description && /* @__PURE__ */ jsx("p", {
|
|
29
|
+
className: "bi-card--header-label",
|
|
30
|
+
children: description
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { CardHeader };
|
|
2
37
|
|
|
3
|
-
|
|
38
|
+
//# sourceMappingURL=card-header.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-header.mjs","names":[],"sources":["../../../src/components/card/card-header.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx';\n\nexport type CardHeaderProps = MergeRight<\n Omit<HTMLAttributes<HTMLDivElement>, 'children'>,\n {\n /**\n * The header of the card\n */\n header?: ReactNode;\n /**\n * The label of the card, displayed above the header\n */\n label?: ReactNode;\n /**\n * The sublabel of the card, displayed next to the label\n */\n subLabel?: ReactNode;\n /**\n * The description of the card, displayed below the header\n */\n description?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const CardHeader = ({ className, ref, header, label, subLabel, description, ...props }: CardHeaderProps) => {\n return (\n <div className={clsx('bi-card--header', className)} ref={ref} {...props}>\n {(label || subLabel) && (\n <p className='bi-card--header-label'>\n {label && <span className='bi-card--header-bold'>{label}</span>}\n {label && subLabel && <span aria-hidden='true' className='bi-card--header-dot'></span>}\n {subLabel && <span>{subLabel}</span>}\n </p>\n )}\n {header && <h3 className='bi-card--header-title'>{header}</h3>}\n {description && <p className='bi-card--header-label'>{description}</p>}\n </div>\n );\n};\n"],"mappings":";;;AA2BA,MAAa,cAAc,EAAE,WAAW,KAAK,QAAQ,OAAO,UAAU,aAAa,GAAG,YAA6B;AACjH,QACE,qBAAC,OAAD;EAAK,WAAW,KAAK,mBAAmB,UAAU;EAAO;EAAK,GAAI;YAAlE;IACI,SAAS,aACT,qBAAC,KAAD;IAAG,WAAU;cAAb;KACG,SAAS,oBAAC,QAAD;MAAM,WAAU;gBAAwB;MAAa,CAAA;KAC9D,SAAS,YAAY,oBAAC,QAAD;MAAM,eAAY;MAAO,WAAU;MAA6B,CAAA;KACrF,YAAY,oBAAC,QAAD,EAAA,UAAO,UAAgB,CAAA;KAClC;;GAEL,UAAU,oBAAC,MAAD;IAAI,WAAU;cAAyB;IAAY,CAAA;GAC7D,eAAe,oBAAC,KAAD;IAAG,WAAU;cAAyB;IAAgB,CAAA;GAClE"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { mn as CardMediaProps, pn as CardMedia } 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 { gn as CardMediaProps, hn as CardMedia } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { CardMedia, CardMediaProps };
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/card/card-media.tsx
|
|
4
|
+
const CardMedia = ({ className, ref, children, overlay, ...props }) => {
|
|
5
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
6
|
+
className: clsx("bi-card--media", className),
|
|
7
|
+
ref,
|
|
8
|
+
...props,
|
|
9
|
+
children: [children, /* @__PURE__ */ jsx("div", {
|
|
10
|
+
className: "bi-card--media-overlay",
|
|
11
|
+
children: overlay
|
|
12
|
+
})]
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { CardMedia };
|
|
2
17
|
|
|
3
|
-
|
|
18
|
+
//# sourceMappingURL=card-media.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-media.mjs","names":[],"sources":["../../../src/components/card/card-media.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx/lite';\n\nexport type CardMediaProps = MergeRight<\n HTMLAttributes<HTMLDivElement>,\n {\n /**\n * The media to display. Must be audio, figure, iframe, img or video-tag to get correct styles.\n */\n children?: ReactNode;\n /**\n * Optional content to overlay on top of the media.\n */\n overlay?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const CardMedia = ({ className, ref, children, overlay, ...props }: CardMediaProps) => {\n return (\n <div className={clsx('bi-card--media', className)} ref={ref} {...props}>\n {children}\n <div className='bi-card--media-overlay'>{overlay}</div>\n </div>\n );\n};\n"],"mappings":";;;AAmBA,MAAa,aAAa,EAAE,WAAW,KAAK,UAAU,SAAS,GAAG,YAA4B;AAC5F,QACE,qBAAC,OAAD;EAAK,WAAW,KAAK,kBAAkB,UAAU;EAAO;EAAK,GAAI;YAAjE,CACG,UACD,oBAAC,OAAD;GAAK,WAAU;aAA0B;GAAc,CAAA,CACnD"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { Cn as Card, wn as CardProps } 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 { En as CardProps, Tn as Card } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Card, CardProps };
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot, Slottable } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/card/card.tsx
|
|
5
|
+
const Card = ({ orientation = "horizontal", color = "neutral", error = false, dark = false, className, ref, children, asChild, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
7
|
+
className: clsx("bi-card", className),
|
|
8
|
+
"data-orientation": orientation,
|
|
9
|
+
"data-color": color,
|
|
10
|
+
"data-error": error,
|
|
11
|
+
"data-dark": dark,
|
|
12
|
+
ref,
|
|
13
|
+
...props,
|
|
14
|
+
children: /* @__PURE__ */ jsx(Slottable, { children })
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Card };
|
|
2
19
|
|
|
3
|
-
|
|
20
|
+
//# sourceMappingURL=card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.mjs","names":[],"sources":["../../../src/components/card/card.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx/lite';\nimport { Slot, Slottable } from '@radix-ui/react-slot';\n\nexport type CardProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * The orientation of the card\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical';\n /**\n * The color of the card\n * @default 'neutral'\n */\n color?: 'neutral' | 'primary' | 'info' | 'warning';\n error?: boolean;\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const Card = ({\n orientation = 'horizontal',\n color = 'neutral',\n error = false,\n dark = false,\n className,\n ref,\n children,\n asChild,\n ...props\n}: CardProps) => {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component\n className={clsx('bi-card', className)}\n data-orientation={orientation}\n data-color={color}\n data-error={error}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n <Slottable>{children}</Slottable>\n </Component>\n );\n};\n"],"mappings":";;;;AA6BA,MAAa,QAAQ,EACnB,cAAc,cACd,QAAQ,WACR,QAAQ,OACR,OAAO,OACP,WACA,KACA,UACA,SACA,GAAG,YACY;AAGf,QACE,oBAHgB,UAAU,OAAO,OAGjC;EACE,WAAW,KAAK,WAAW,UAAU;EACrC,oBAAkB;EAClB,cAAY;EACZ,cAAY;EACZ,aAAW;EACN;EACL,GAAI;YAEJ,oBAAC,WAAD,EAAY,UAAqB,CAAA;EACvB,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { Cn as Card, Sn as CardActionsProps, _n as CardContent, bn as CardActionProps, dn as CardDate, fn as CardDateProps, gn as CardHeaderProps, hn as CardHeader, mn as CardMediaProps, pn as CardMedia, vn as CardContentProps, wn as CardProps, xn as CardActions, yn as CardAction } 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 { Cn as CardActions, En as CardProps, Sn as CardActionProps, Tn as Card, _n as CardHeader, bn as CardContentProps, gn as CardMediaProps, hn as CardMedia, mn as CardDateProps, pn as CardDate, vn as CardHeaderProps, wn as CardActionsProps, xn as CardAction, yn as CardContent } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Card, CardAction, CardActionProps, CardActions, CardActionsProps, CardContent, CardContentProps, CardDate, CardDateProps, CardHeader, CardHeaderProps, CardMedia, CardMediaProps, CardProps };
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import { t as CardHeader } from "../../card-header-DkKr5o8N.mjs";
|
|
10
|
-
import { t as CardMedia } from "../../card-media-Bv2VWU3K.mjs";
|
|
11
|
-
import { t as CardDate } from "../../card-date-PwKzeTzD.mjs";
|
|
12
|
-
import "../../card-qYOn8pIl.mjs";
|
|
13
|
-
|
|
14
|
-
export { Card, CardAction, CardActions, CardContent, CardDate, CardHeader, CardMedia };
|
|
1
|
+
import { Card } from "./card.mjs";
|
|
2
|
+
import { CardActions } from "./card-actions.mjs";
|
|
3
|
+
import { CardAction } from "./card-action.mjs";
|
|
4
|
+
import { CardContent } from "./card-content.mjs";
|
|
5
|
+
import { CardHeader } from "./card-header.mjs";
|
|
6
|
+
import { CardMedia } from "./card-media.mjs";
|
|
7
|
+
import { CardDate } from "./card-date.mjs";
|
|
8
|
+
export { Card, CardAction, CardActions, CardContent, CardDate, CardHeader, CardMedia };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { an as CheckboxSubsection, on as CheckboxSubsectionProps } 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 { cn as CheckboxSubsectionProps, sn as CheckboxSubsection } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { CheckboxSubsection, CheckboxSubsectionProps };
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/checkbox/checkbox-subsection.tsx
|
|
4
|
+
const CheckboxSubsection = ({ children, className, dark, ref, ...props }) => {
|
|
5
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
6
|
+
className: clsx("bi-checkbox-subsection", className),
|
|
7
|
+
"data-dark": dark,
|
|
8
|
+
...props,
|
|
9
|
+
ref,
|
|
10
|
+
children: [/* @__PURE__ */ jsx("div", {}), /* @__PURE__ */ jsx("div", { children })]
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { CheckboxSubsection };
|
|
2
15
|
|
|
3
|
-
|
|
16
|
+
//# sourceMappingURL=checkbox-subsection.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox-subsection.mjs","names":[],"sources":["../../../src/components/checkbox/checkbox-subsection.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HtmlHTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type CheckboxSubsectionProps = MergeRight<\n DefaultProps & HtmlHTMLAttributes<HTMLDivElement>,\n { ref?: Ref<HTMLDivElement> }\n>;\n\nexport const CheckboxSubsection = ({ children, className, dark, ref, ...props }: CheckboxSubsectionProps) => {\n return (\n <div className={clsx('bi-checkbox-subsection', className)} data-dark={dark} {...props} ref={ref}>\n <div />\n <div>{children}</div>\n </div>\n );\n};\n"],"mappings":";;;AAUA,MAAa,sBAAsB,EAAE,UAAU,WAAW,MAAM,KAAK,GAAG,YAAqC;AAC3G,QACE,qBAAC,OAAD;EAAK,WAAW,KAAK,0BAA0B,UAAU;EAAE,aAAW;EAAM,GAAI;EAAY;YAA5F,CACE,oBAAC,OAAD,EAAO,CAAA,EACP,oBAAC,OAAD,EAAM,UAAe,CAAA,CACjB"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { cn as CheckboxProps, sn as Checkbox } 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 { ln as Checkbox, un as CheckboxProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Checkbox, CheckboxProps };
|
|
@@ -1,12 +1,60 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "../../
|
|
9
|
-
import "
|
|
10
|
-
import {
|
|
1
|
+
import { Field } from "../field/field.mjs";
|
|
2
|
+
import { FieldDescription } from "../field/field-description.mjs";
|
|
3
|
+
import "../field/index.mjs";
|
|
4
|
+
import { Input } from "../input/input.mjs";
|
|
5
|
+
import "../input/index.mjs";
|
|
6
|
+
import { Label } from "../label/label.mjs";
|
|
7
|
+
import "../label/index.mjs";
|
|
8
|
+
import { useMergeRefs } from "../../utilities/hooks/useMergeRefs/useMergeRefs.mjs";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { useEffect, useId, useRef } from "react";
|
|
11
|
+
//#region src/components/checkbox/checkbox.tsx
|
|
12
|
+
const Checkbox = ({ dark, label, description, error, fullwidth, style, className, indeterminate, ref, id, "aria-describedby": ariaDescribedByProp, ...props }) => {
|
|
13
|
+
const checkRef = useRef(null);
|
|
14
|
+
const refs = useMergeRefs([checkRef, ref]);
|
|
15
|
+
const descriptionId = useId();
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
let input;
|
|
18
|
+
if (ref && typeof ref !== "function") input = ref.current;
|
|
19
|
+
else input = checkRef.current;
|
|
20
|
+
if (input) input.indeterminate = indeterminate || false;
|
|
21
|
+
}, [
|
|
22
|
+
indeterminate,
|
|
23
|
+
checkRef,
|
|
24
|
+
ref
|
|
25
|
+
]);
|
|
26
|
+
const ariaDescribedBy = [description ? descriptionId : "", ariaDescribedByProp].join(" ").trim() || void 0;
|
|
27
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
28
|
+
className,
|
|
29
|
+
"data-dark": dark,
|
|
30
|
+
style,
|
|
31
|
+
fullwidth,
|
|
32
|
+
asChild: true,
|
|
33
|
+
children: /* @__PURE__ */ jsxs("label", { children: [
|
|
34
|
+
/* @__PURE__ */ jsx(Input, {
|
|
35
|
+
type: "checkbox",
|
|
36
|
+
id,
|
|
37
|
+
ref: refs,
|
|
38
|
+
"aria-invalid": error || void 0,
|
|
39
|
+
"aria-describedby": ariaDescribedBy,
|
|
40
|
+
dark,
|
|
41
|
+
...props
|
|
42
|
+
}),
|
|
43
|
+
label && /* @__PURE__ */ jsx(Label, {
|
|
44
|
+
weight: "medium",
|
|
45
|
+
htmlFor: id,
|
|
46
|
+
asChild: true,
|
|
47
|
+
children: /* @__PURE__ */ jsx("span", { children: label })
|
|
48
|
+
}),
|
|
49
|
+
description && /* @__PURE__ */ jsx(FieldDescription, {
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
id: descriptionId,
|
|
52
|
+
children: description
|
|
53
|
+
})
|
|
54
|
+
] })
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { Checkbox };
|
|
11
59
|
|
|
12
|
-
|
|
60
|
+
//# sourceMappingURL=checkbox.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.mjs","names":[],"sources":["../../../src/components/checkbox/checkbox.tsx"],"sourcesContent":["import { useEffect, useId, useRef, type ReactNode, type Ref } from 'react';\n\nimport type { LabelRequiredProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Field, FieldDescription } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { Label } from '../label';\nimport { useMergeRefs } from '../../utilities/hooks/useMergeRefs/useMergeRefs';\n\nexport type CheckboxProps = MergeRight<\n LabelRequiredProps & Omit<InputProps, 'type' | 'role' | 'size'>,\n {\n /** Label */\n label?: ReactNode;\n /** Description */\n description?: ReactNode;\n /** Add error indication to the checkbox. */\n error?: boolean;\n /** Specify whether the Checkbox is indeterminate */\n indeterminate?: boolean;\n /** If true, the checkbox 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 Checkbox = ({\n dark,\n label,\n description,\n error,\n fullwidth,\n style,\n className,\n indeterminate,\n ref,\n id,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n}: CheckboxProps) => {\n const checkRef = useRef<HTMLInputElement>(null);\n const refs = useMergeRefs([checkRef, ref]);\n const descriptionId = useId();\n\n useEffect(() => {\n let input: HTMLInputElement | null;\n if (ref && typeof ref !== 'function') {\n input = ref.current;\n } else {\n input = checkRef.current;\n }\n\n if (input) {\n input.indeterminate = indeterminate || false;\n }\n }, [indeterminate, checkRef, ref]);\n\n const ariaDescribedBy = [description ? descriptionId : '', ariaDescribedByProp].join(' ').trim() || undefined;\n\n return (\n <Field className={className} data-dark={dark} style={style} fullwidth={fullwidth} asChild>\n <label>\n <Input\n type='checkbox'\n id={id}\n ref={refs}\n aria-invalid={error || undefined}\n aria-describedby={ariaDescribedBy}\n dark={dark}\n {...props}\n />\n {label && (\n <Label weight='medium' htmlFor={id} asChild>\n <span>{label}</span>\n </Label>\n )}\n {description && (\n // Aria-hidden is used to prevent screen readers from reading the description twice:\n // once as part of the label and once from being connected through aria-describedby.\n <FieldDescription aria-hidden='true' id={descriptionId}>\n {description}\n </FieldDescription>\n )}\n </label>\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;;;AA0BA,MAAa,YAAY,EACvB,MACA,OACA,aACA,OACA,WACA,OACA,WACA,eACA,KACA,IACA,oBAAoB,qBACpB,GAAG,YACgB;CACnB,MAAM,WAAW,OAAyB,KAAK;CAC/C,MAAM,OAAO,aAAa,CAAC,UAAU,IAAI,CAAC;CAC1C,MAAM,gBAAgB,OAAO;AAE7B,iBAAgB;EACd,IAAI;AACJ,MAAI,OAAO,OAAO,QAAQ,WACxB,SAAQ,IAAI;MAEZ,SAAQ,SAAS;AAGnB,MAAI,MACF,OAAM,gBAAgB,iBAAiB;IAExC;EAAC;EAAe;EAAU;EAAI,CAAC;CAElC,MAAM,kBAAkB,CAAC,cAAc,gBAAgB,IAAI,oBAAoB,CAAC,KAAK,IAAI,CAAC,MAAM,IAAI,KAAA;AAEpG,QACE,oBAAC,OAAD;EAAkB;EAAW,aAAW;EAAa;EAAkB;EAAW,SAAA;YAChF,qBAAC,SAAD,EAAA,UAAA;GACE,oBAAC,OAAD;IACE,MAAK;IACD;IACJ,KAAK;IACL,gBAAc,SAAS,KAAA;IACvB,oBAAkB;IACZ;IACN,GAAI;IACJ,CAAA;GACD,SACC,oBAAC,OAAD;IAAO,QAAO;IAAS,SAAS;IAAI,SAAA;cAClC,oBAAC,QAAD,EAAA,UAAO,OAAa,CAAA;IACd,CAAA;GAET,eAGC,oBAAC,kBAAD;IAAkB,eAAY;IAAO,IAAI;cACtC;IACgB,CAAA;GAEf,EAAA,CAAA;EACF,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { an as CheckboxSubsection, cn as CheckboxProps, on as CheckboxSubsectionProps, sn as Checkbox } 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 { cn as CheckboxSubsectionProps, ln as Checkbox, sn as CheckboxSubsection, un as CheckboxProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Checkbox, CheckboxProps, CheckboxSubsection, CheckboxSubsectionProps };
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
import "../../field-D8ZE0keC.mjs";
|
|
5
|
-
import "../../input-DU_8Z4cN.mjs";
|
|
6
|
-
import "../../input-8Az-c2K1.mjs";
|
|
7
|
-
import "../../label-QZyUM8Df.mjs";
|
|
8
|
-
import "../../label-BrxPu7QD.mjs";
|
|
9
|
-
import "../../useMergeRefs-DeEL5hK6.mjs";
|
|
10
|
-
import { t as Checkbox } from "../../checkbox-DLGjrSt2.mjs";
|
|
11
|
-
import { t as CheckboxSubsection } from "../../checkbox-subsection-Dq60blow.mjs";
|
|
12
|
-
import "../../checkbox-BPiURV39.mjs";
|
|
13
|
-
|
|
14
|
-
export { Checkbox, CheckboxSubsection };
|
|
1
|
+
import { Checkbox } from "./checkbox.mjs";
|
|
2
|
+
import { CheckboxSubsection } from "./checkbox-subsection.mjs";
|
|
3
|
+
export { Checkbox, CheckboxSubsection };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { in as ChipProps, rn as Chip } 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 { an as Chip, on as ChipProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Chip, ChipProps };
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Slot, Slottable } from "@radix-ui/react-slot";
|
|
2
|
+
import { CheckThickIcon } from "@bi-digital/icons";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
//#region src/components/chip/chip.tsx
|
|
6
|
+
const Chip = ({ children, color = "primary", size = "medium", startIcon, dark, selected = false, asChild, className, ref, ...props }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxs(asChild ? Slot : "div", {
|
|
8
|
+
className: clsx("bi-chip", className),
|
|
9
|
+
"data-color": color,
|
|
10
|
+
"data-size": size,
|
|
11
|
+
"data-dark": dark || void 0,
|
|
12
|
+
"data-selected": selected || void 0,
|
|
13
|
+
ref,
|
|
14
|
+
...props,
|
|
15
|
+
children: [
|
|
16
|
+
startIcon,
|
|
17
|
+
/* @__PURE__ */ jsx(Slottable, { children }),
|
|
18
|
+
selected && /* @__PURE__ */ jsx(CheckThickIcon, { "aria-hidden": "true" })
|
|
19
|
+
]
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Chip };
|
|
2
24
|
|
|
3
|
-
|
|
25
|
+
//# sourceMappingURL=chip.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chip.mjs","names":[],"sources":["../../../src/components/chip/chip.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport { Slot, Slottable } from '@radix-ui/react-slot';\nimport clsx from 'clsx';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\nimport { CheckThickIcon } from '@bi-digital/icons';\n\nexport type ChipProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * The chip size\n * @default 'medium'\n */\n size?: 'small' | 'medium' | 'large';\n /**\n * The chip color\n * @default 'primary'\n */\n color?: 'neutral' | 'info' | 'white' | 'primary' | 'alert' | 'warning' | 'success';\n /** Set an icon before the chip label */\n startIcon?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n /**\n * If true, the chip will be displayed as selected.\n * @default false\n */\n selected?: 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 }\n>;\n\nexport const Chip = ({\n children,\n color = 'primary',\n size = 'medium',\n startIcon,\n dark,\n selected = false,\n asChild,\n className,\n ref,\n ...props\n}: ChipProps) => {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component\n className={clsx('bi-chip', className)}\n data-color={color}\n data-size={size}\n data-dark={dark || undefined}\n data-selected={selected || undefined}\n ref={ref}\n {...props}\n >\n {startIcon}\n <Slottable>{children}</Slottable>\n {selected && <CheckThickIcon aria-hidden='true' />}\n </Component>\n );\n};\n"],"mappings":";;;;;AAoCA,MAAa,QAAQ,EACnB,UACA,QAAQ,WACR,OAAO,UACP,WACA,MACA,WAAW,OACX,SACA,WACA,KACA,GAAG,YACY;AAGf,QACE,qBAHgB,UAAU,OAAO,OAGjC;EACE,WAAW,KAAK,WAAW,UAAU;EACrC,cAAY;EACZ,aAAW;EACX,aAAW,QAAQ,KAAA;EACnB,iBAAe,YAAY,KAAA;EACtB;EACL,GAAI;YAPN;GASG;GACD,oBAAC,WAAD,EAAY,UAAqB,CAAA;GAChC,YAAY,oBAAC,gBAAD,EAAgB,eAAY,QAAS,CAAA;GACxC"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { in as ChipProps, rn as Chip } 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 { an as Chip, on as ChipProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Chip, ChipProps };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { $t as DetailsContent, en as DetailsContentProps } 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 { nn as DetailsContentProps, tn as DetailsContent } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { DetailsContent, DetailsContentProps };
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/details/details-content.tsx
|
|
4
|
+
/**
|
|
5
|
+
* Details content component, contains the content to be shown or hidden.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <DetailsContent><p>Some content</p></DetailsContent>
|
|
9
|
+
*/
|
|
10
|
+
const DetailsContent = ({ className, asChild, children, ref, ...rest }) => {
|
|
11
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "p", {
|
|
12
|
+
ref,
|
|
13
|
+
className,
|
|
14
|
+
...rest,
|
|
15
|
+
children
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { DetailsContent };
|
|
2
20
|
|
|
3
|
-
|
|
21
|
+
//# sourceMappingURL=details-content.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details-content.mjs","names":[],"sources":["../../../src/components/details/details-content.tsx"],"sourcesContent":["import { type HTMLAttributes, type Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport { Slot } from '@radix-ui/react-slot';\n\nexport type DetailsContentProps = MergeRight<\n HTMLAttributes<HTMLParagraphElement>,\n {\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLParagraphElement>;\n }\n>;\n\n/**\n * Details content component, contains the content to be shown or hidden.\n *\n * @example\n * <DetailsContent><p>Some content</p></DetailsContent>\n */\nexport const DetailsContent = ({ className, asChild, children, ref, ...rest }: DetailsContentProps) => {\n const Component = asChild ? Slot : 'p';\n return (\n <Component ref={ref} className={className} {...rest}>\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;;;;;;AAsBA,MAAa,kBAAkB,EAAE,WAAW,SAAS,UAAU,KAAK,GAAG,WAAgC;AAErG,QACE,oBAFgB,UAAU,OAAO,KAEjC;EAAgB;EAAgB;EAAW,GAAI;EAC5C;EACS,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { Qt as DetailsSummaryProps, Zt as DetailsSummary } 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 { $t as DetailsSummary, en as DetailsSummaryProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { DetailsSummary, DetailsSummaryProps };
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChevronDownIcon } from "@bi-digital/icons";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/details/details-summary.tsx
|
|
4
|
+
/**
|
|
5
|
+
* Details summary component, contains a the heading to toggle the content.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* <DetailsSummary>Heading</DetailsSummary>
|
|
9
|
+
*/
|
|
10
|
+
const DetailsSummary = ({ className, children, icon, ref, ...rest }) => {
|
|
11
|
+
return /* @__PURE__ */ jsxs("summary", {
|
|
12
|
+
ref,
|
|
13
|
+
className,
|
|
14
|
+
...rest,
|
|
15
|
+
children: [children, icon ?? /* @__PURE__ */ jsx(ChevronDownIcon, { "aria-hidden": "true" })]
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { DetailsSummary };
|
|
2
20
|
|
|
3
|
-
|
|
21
|
+
//# sourceMappingURL=details-summary.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details-summary.mjs","names":[],"sources":["../../../src/components/details/details-summary.tsx"],"sourcesContent":["import { type HTMLAttributes, type ReactNode, type Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport { ChevronDownIcon } from '@bi-digital/icons';\n\nexport type DetailsSummaryProps = MergeRight<\n HTMLAttributes<HTMLElement>,\n {\n /** Header */\n children: ReactNode;\n /** Optionally replace the default icon. It will be rotated 180 degrees when the content is expanded */\n icon?: ReactNode;\n ref?: Ref<HTMLElement>;\n }\n>;\n\n/**\n * Details summary component, contains a the heading to toggle the content.\n *\n * @example\n * <DetailsSummary>Heading</DetailsSummary>\n */\nexport const DetailsSummary = ({ className, children, icon, ref, ...rest }: DetailsSummaryProps) => {\n return (\n <summary ref={ref} className={className} {...rest}>\n {children}\n {icon ?? <ChevronDownIcon aria-hidden='true' />}\n </summary>\n );\n};\n"],"mappings":";;;;;;;;;AAqBA,MAAa,kBAAkB,EAAE,WAAW,UAAU,MAAM,KAAK,GAAG,WAAgC;AAClG,QACE,qBAAC,WAAD;EAAc;EAAgB;EAAW,GAAI;YAA7C,CACG,UACA,QAAQ,oBAAC,iBAAD,EAAiB,eAAY,QAAS,CAAA,CACvC"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { nn as DetailsProps, tn as Details } 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 { in as DetailsProps, rn as Details } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Details, DetailsProps };
|
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
4
|
+
//#region src/components/details/details.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Details component, built on top of the native `<details>` element.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <Details open={isOpen} onToggle={setIsOpen} name='optional-group-name'>
|
|
10
|
+
* <DetailsSummary>Heading</DetailsSummary>
|
|
11
|
+
* <DetailsContent>Content</DetailsContent>
|
|
12
|
+
* </Details>
|
|
13
|
+
*/
|
|
14
|
+
const Details = ({ className, children, dark, open, defaultOpen = false, onToggle, ref, ...rest }) => {
|
|
15
|
+
const [isOpen, setIsOpen] = useControllableState({
|
|
16
|
+
prop: open,
|
|
17
|
+
onChange: onToggle,
|
|
18
|
+
defaultProp: defaultOpen,
|
|
19
|
+
caller: "Details"
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ jsx("details", {
|
|
22
|
+
className: clsx("bi-details", className),
|
|
23
|
+
"data-dark": dark,
|
|
24
|
+
open: isOpen || void 0,
|
|
25
|
+
ref,
|
|
26
|
+
onToggle: (e) => setIsOpen(e.currentTarget.open),
|
|
27
|
+
...rest,
|
|
28
|
+
children
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Details };
|
|
2
33
|
|
|
3
|
-
|
|
34
|
+
//# sourceMappingURL=details.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details.mjs","names":[],"sources":["../../../src/components/details/details.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { type HTMLAttributes, type ReactNode, type Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\n\nexport type DetailsProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDetailsElement>,\n {\n /**\n * Controls open-state.\n * Using this removes automatic control of open-state\n *\n * @default undefined\n */\n open?: boolean;\n /**\n * Defaults the details to open if not controlled\n * @default false\n */\n defaultOpen?: boolean;\n /**\n * Callback function when Details toggles due to click on summary or find in page-search\n * Must be defined if `open` prop is used\n */\n onToggle?: (open: boolean) => void;\n /**\n * Content should be one `<DetailsSummary>` and one `<DetailsContent>`\n */\n children?: ReactNode;\n /**\n * This attribute enables multiple `<Details>` elements to be connected, with only one open at a time.\n * The name attribute specifies a group name — give multiple `<Details>` elements the same name value to group them.\n * Only one of the grouped `<Details>` elements can be open at a time — opening one will cause another to close.\n * If multiple grouped `<Details>` elements are given the open attribute, only the first one in the source order will be rendered open.\n */\n name?: string;\n ref?: Ref<HTMLDetailsElement>;\n }\n>;\n\n/**\n * Details component, built on top of the native `<details>` element.\n *\n * @example\n * <Details open={isOpen} onToggle={setIsOpen} name='optional-group-name'>\n * <DetailsSummary>Heading</DetailsSummary>\n * <DetailsContent>Content</DetailsContent>\n * </Details>\n */\nexport const Details = ({\n className,\n children,\n dark,\n open,\n defaultOpen = false,\n onToggle,\n ref,\n ...rest\n}: DetailsProps) => {\n const [isOpen, setIsOpen] = useControllableState({\n prop: open,\n onChange: onToggle,\n defaultProp: defaultOpen,\n caller: 'Details',\n });\n\n return (\n <details\n className={clsx('bi-details', className)}\n data-dark={dark}\n open={isOpen || undefined} // Fallback to undefined to prevent rendering open=\"false\"\n ref={ref}\n onToggle={(e) => setIsOpen(e.currentTarget.open)}\n {...rest}\n >\n {children}\n </details>\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAkDA,MAAa,WAAW,EACtB,WACA,UACA,MACA,MACA,cAAc,OACd,UACA,KACA,GAAG,WACe;CAClB,MAAM,CAAC,QAAQ,aAAa,qBAAqB;EAC/C,MAAM;EACN,UAAU;EACV,aAAa;EACb,QAAQ;EACT,CAAC;AAEF,QACE,oBAAC,WAAD;EACE,WAAW,KAAK,cAAc,UAAU;EACxC,aAAW;EACX,MAAM,UAAU,KAAA;EACX;EACL,WAAW,MAAM,UAAU,EAAE,cAAc,KAAK;EAChD,GAAI;EAEH;EACO,CAAA"}
|