@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,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { n as AlertFooterProps, t as AlertFooter } 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 { n as AlertFooterProps, t as AlertFooter } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { AlertFooter, AlertFooterProps };
|
|
@@ -1,3 +1,16 @@
|
|
|
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/alert/alert-footer.tsx
|
|
5
|
+
const AlertFooter = ({ className, children, asChild, ref, ...rest }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
7
|
+
className: clsx("bi-alert--footer", className),
|
|
8
|
+
ref,
|
|
9
|
+
...rest,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { AlertFooter };
|
|
2
15
|
|
|
3
|
-
|
|
16
|
+
//# sourceMappingURL=alert-footer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-footer.mjs","names":[],"sources":["../../../src/components/alert/alert-footer.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { Slot } from '@radix-ui/react-slot';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\n\nexport type AlertFooterProps = MergeRight<\n HTMLAttributes<HTMLDivElement>,\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<HTMLDivElement>;\n }\n>;\n\nexport const AlertFooter = ({ className, children, asChild, ref, ...rest }: AlertFooterProps) => {\n const Component = asChild ? Slot : 'div';\n return (\n <Component className={clsx('bi-alert--footer', className)} ref={ref} {...rest}>\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;AAiBA,MAAa,eAAe,EAAE,WAAW,UAAU,SAAS,KAAK,GAAG,WAA6B;AAE/F,QACE,oBAFgB,UAAU,OAAO,OAEjC;EAAW,WAAW,KAAK,oBAAoB,UAAU;EAAO;EAAK,GAAI;EACtE;EACS,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { Mn as AlertProps, jn as Alert } 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 Alert, Pn as AlertProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Alert, AlertProps };
|
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { CheckmarkSmallIcon, ErrorIcon, InfoIcon, WarningIcon } from "@bi-digital/icons";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/alert/alert.tsx
|
|
6
|
+
const variantIcons = {
|
|
7
|
+
info: InfoIcon,
|
|
8
|
+
success: CheckmarkSmallIcon,
|
|
9
|
+
warning: WarningIcon,
|
|
10
|
+
alert: ErrorIcon,
|
|
11
|
+
primary: InfoIcon,
|
|
12
|
+
neutral: InfoIcon
|
|
13
|
+
};
|
|
14
|
+
const Alert = ({ className, children, closeButton, variant = "primary", icon, asChild, dark, size, ref, ...rest }) => {
|
|
15
|
+
const Component = asChild ? Slot : "div";
|
|
16
|
+
const DefaultIcon = variantIcons[variant];
|
|
17
|
+
return /* @__PURE__ */ jsxs(Component, {
|
|
18
|
+
className: clsx("bi-alert", className),
|
|
19
|
+
"data-variant": variant,
|
|
20
|
+
"data-size": size,
|
|
21
|
+
"data-dark": dark,
|
|
22
|
+
ref,
|
|
23
|
+
...rest,
|
|
24
|
+
children: [
|
|
25
|
+
icon === null ? null : icon ?? /* @__PURE__ */ jsx(DefaultIcon, {}),
|
|
26
|
+
children,
|
|
27
|
+
closeButton
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Alert };
|
|
2
33
|
|
|
3
|
-
|
|
34
|
+
//# sourceMappingURL=alert.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.mjs","names":[],"sources":["../../../src/components/alert/alert.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { Slot } from '@radix-ui/react-slot';\nimport type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { CheckmarkSmallIcon, ErrorIcon, InfoIcon, WarningIcon } from '@bi-digital/icons';\n\nexport type AlertProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * The alert variant.\n * @default 'primary'\n */\n variant?: 'info' | 'success' | 'warning' | 'alert' | 'primary' | 'neutral';\n /**\n * Size of the alert.\n * @default 'medium'\n */\n size?: 'small' | 'medium' | 'large';\n /** Custom close button. It's your responsibility to make the button close the alert. */\n closeButton?: ReactNode;\n /** Override the default icon which is decided by the `variant`. Set to `null` to remove the icon. */\n icon?: ReactNode;\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\nconst variantIcons: Record<NonNullable<AlertProps['variant']>, React.ComponentType> = {\n info: InfoIcon,\n success: CheckmarkSmallIcon,\n warning: WarningIcon,\n alert: ErrorIcon,\n primary: InfoIcon,\n neutral: InfoIcon,\n};\n\nexport const Alert = ({\n className,\n children,\n closeButton,\n variant = 'primary',\n icon,\n asChild,\n dark,\n size,\n ref,\n ...rest\n}: AlertProps) => {\n const Component = asChild ? Slot : 'div';\n const DefaultIcon = variantIcons[variant];\n return (\n <Component\n className={clsx('bi-alert', className)}\n data-variant={variant}\n data-size={size}\n data-dark={dark}\n ref={ref}\n {...rest}\n >\n {icon === null ? null : (icon ?? <DefaultIcon />)}\n {children}\n {closeButton}\n </Component>\n );\n};\n"],"mappings":";;;;;AAiCA,MAAM,eAAgF;CACpF,MAAM;CACN,SAAS;CACT,SAAS;CACT,OAAO;CACP,SAAS;CACT,SAAS;CACV;AAED,MAAa,SAAS,EACpB,WACA,UACA,aACA,UAAU,WACV,MACA,SACA,MACA,MACA,KACA,GAAG,WACa;CAChB,MAAM,YAAY,UAAU,OAAO;CACnC,MAAM,cAAc,aAAa;AACjC,QACE,qBAAC,WAAD;EACE,WAAW,KAAK,YAAY,UAAU;EACtC,gBAAc;EACd,aAAW;EACX,aAAW;EACN;EACL,GAAI;YANN;GAQG,SAAS,OAAO,OAAQ,QAAQ,oBAAC,aAAD,EAAe,CAAA;GAC/C;GACA;GACS"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { Mn as AlertProps, jn as Alert, n as AlertFooterProps, t as AlertFooter } 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 Alert, Pn as AlertProps, n as AlertFooterProps, t as AlertFooter } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Alert, AlertFooter, AlertFooterProps, AlertProps };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { Alert, AlertFooter };
|
|
1
|
+
import { Alert } from "./alert.mjs";
|
|
2
|
+
import { AlertFooter } from "./alert-footer.mjs";
|
|
3
|
+
export { Alert, AlertFooter };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { An as AvatarProps, kn as Avatar } 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 { Mn as AvatarProps, jn as Avatar } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Avatar, AvatarProps };
|
|
@@ -1,3 +1,38 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Fragment } from "react";
|
|
5
|
+
//#region src/components/avatar/avatar.tsx
|
|
6
|
+
/**
|
|
7
|
+
* An Avatar represents a person.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <Avatar aria-label="Ola Nordmann">ON</Avatar>
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* <Avatar aria-label="Ola Nordmann">
|
|
14
|
+
* <img src='…' alt='Ola Nordmann' />
|
|
15
|
+
* </Avatar>
|
|
16
|
+
*/
|
|
17
|
+
const Avatar = ({ "aria-label": ariaLabel, className, ref, dark, size, color, children, ...props }) => {
|
|
18
|
+
const isSlotInUse = children && typeof children !== "string";
|
|
19
|
+
const Component = isSlotInUse ? Slot : Fragment;
|
|
20
|
+
return /* @__PURE__ */ jsx("span", {
|
|
21
|
+
className: clsx("bi-avatar", className),
|
|
22
|
+
"aria-label": ariaLabel,
|
|
23
|
+
role: "img",
|
|
24
|
+
"data-size": size,
|
|
25
|
+
"data-color": color,
|
|
26
|
+
"data-dark": dark,
|
|
27
|
+
ref,
|
|
28
|
+
...props,
|
|
29
|
+
children: /* @__PURE__ */ jsx(Component, {
|
|
30
|
+
...isSlotInUse ? { "aria-hidden": true } : {},
|
|
31
|
+
children
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { Avatar };
|
|
2
37
|
|
|
3
|
-
|
|
38
|
+
//# sourceMappingURL=avatar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.mjs","names":[],"sources":["../../../src/components/avatar/avatar.tsx"],"sourcesContent":["import { Fragment, type HTMLAttributes, type Ref } from 'react';\nimport clsx from 'clsx/lite';\nimport { Slot } from '@radix-ui/react-slot';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type AvatarProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLSpanElement>,\n {\n /**\n * Name of the person the avatar represents.\n */\n 'aria-label': string;\n /**\n * Size of the avatar.\n * @default 'medium'\n */\n size?: 'small' | 'medium';\n /**\n * Color scheme of the avatar.\n * @default 'primary'\n */\n color?: 'primary' | 'info' | 'success' | 'warning' | 'alert';\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\n/**\n * An Avatar represents a person.\n *\n * @example\n * <Avatar aria-label=\"Ola Nordmann\">ON</Avatar>\n *\n * @example\n * <Avatar aria-label=\"Ola Nordmann\">\n * <img src='…' alt='Ola Nordmann' />\n * </Avatar>\n */\nexport const Avatar = ({\n 'aria-label': ariaLabel,\n className,\n ref,\n dark,\n size,\n color,\n children,\n ...props\n}: AvatarProps) => {\n const isSlotInUse = children && typeof children !== 'string';\n const Component = isSlotInUse ? Slot : Fragment;\n return (\n <span\n className={clsx('bi-avatar', className)}\n aria-label={ariaLabel}\n role='img'\n data-size={size}\n data-color={color}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n <Component {...(isSlotInUse ? { 'aria-hidden': true } : {})}>{children}</Component>\n </span>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAsCA,MAAa,UAAU,EACrB,cAAc,WACd,WACA,KACA,MACA,MACA,OACA,UACA,GAAG,YACc;CACjB,MAAM,cAAc,YAAY,OAAO,aAAa;CACpD,MAAM,YAAY,cAAc,OAAO;AACvC,QACE,oBAAC,QAAD;EACE,WAAW,KAAK,aAAa,UAAU;EACvC,cAAY;EACZ,MAAK;EACL,aAAW;EACX,cAAY;EACZ,aAAW;EACN;EACL,GAAI;YAEJ,oBAAC,WAAD;GAAW,GAAK,cAAc,EAAE,eAAe,MAAM,GAAG,EAAE;GAAI;GAAqB,CAAA;EAC9E,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { An as AvatarProps, kn as Avatar } 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 { Mn as AvatarProps, jn as Avatar } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Avatar, AvatarProps };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { Dn as Badge, On as BadgeProps } 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 BadgeProps, kn as Badge } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Badge, BadgeProps };
|
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
//#region src/components/badge/badge.tsx
|
|
5
|
+
const Badge = ({ className, children, dark, size = "medium", color = "neutral", singleLetter = false, asChild, ref, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "span", {
|
|
7
|
+
className: clsx("bi-badge", className),
|
|
8
|
+
"data-size": size,
|
|
9
|
+
"data-color": color,
|
|
10
|
+
"data-single-letter": singleLetter,
|
|
11
|
+
"data-dark": dark,
|
|
12
|
+
ref,
|
|
13
|
+
...props,
|
|
14
|
+
children
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Badge };
|
|
2
19
|
|
|
3
|
-
|
|
20
|
+
//# sourceMappingURL=badge.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.mjs","names":[],"sources":["../../../src/components/badge/badge.tsx"],"sourcesContent":["import { HTMLAttributes, Ref } from 'react';\nimport { AsChildProps, DefaultProps } from '../../types';\nimport { MergeRight } from '../../utilities';\nimport { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx';\n\nexport type BadgeProps = MergeRight<\n DefaultProps & AsChildProps & HTMLAttributes<HTMLSpanElement>,\n {\n /**\n * Size of the badge.\n * @default 'medium'\n */\n size?: 'xs' | 'small' | 'medium';\n /**\n * Color of the badge.\n * @default 'neutral'\n */\n color: 'neutral' | 'success' | 'warning' | 'alert' | 'brand' | 'info' | 'negative';\n /**\n * Makes the badge have the same height/width. Use for single-letter badges.\n * @default false\n */\n singleLetter?: boolean;\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\nexport const Badge = ({\n className,\n children,\n dark,\n size = 'medium',\n color = 'neutral',\n singleLetter = false,\n asChild,\n ref,\n ...props\n}: BadgeProps) => {\n const Component = asChild ? Slot : 'span';\n\n return (\n <Component\n className={clsx('bi-badge', className)}\n data-size={size}\n data-color={color}\n data-single-letter={singleLetter}\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;AA4BA,MAAa,SAAS,EACpB,WACA,UACA,MACA,OAAO,UACP,QAAQ,WACR,eAAe,OACf,SACA,KACA,GAAG,YACa;AAGhB,QACE,oBAHgB,UAAU,OAAO,QAGjC;EACE,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,cAAY;EACZ,sBAAoB;EACpB,aAAW;EACN;EACL,GAAI;EAEH;EACS,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { Dn as Badge, On as BadgeProps } 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 BadgeProps, kn as Badge } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Badge, BadgeProps };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { En as ButtonProps, Tn as Button } 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 { Dn as Button, On as ButtonProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Button, ButtonProps };
|
|
@@ -1,5 +1,40 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
1
|
+
import { Spinner } from "../spinner/spinner.mjs";
|
|
2
|
+
import "../spinner/index.mjs";
|
|
3
|
+
import clsx from "clsx/lite";
|
|
4
|
+
import { Slot, Slottable } from "@radix-ui/react-slot";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/button/button.tsx
|
|
7
|
+
const Button = ({ asChild, variant = "filled", size = "medium", fullwidth, dark, submitting, icon, children, className, startIcon, endIcon, active, ref, ...props }) => {
|
|
8
|
+
return /* @__PURE__ */ jsxs(asChild ? Slot : "button", {
|
|
9
|
+
"aria-busy": Boolean(submitting) || void 0,
|
|
10
|
+
"aria-disabled": Boolean(submitting) || void 0,
|
|
11
|
+
className: clsx("bi-button", className),
|
|
12
|
+
"data-variant": variant,
|
|
13
|
+
"data-size": size,
|
|
14
|
+
"data-fullwidth": fullwidth || void 0,
|
|
15
|
+
"data-dark": dark || void 0,
|
|
16
|
+
"data-icon": icon || void 0,
|
|
17
|
+
"data-active": active || void 0,
|
|
18
|
+
ref,
|
|
19
|
+
type: asChild ? void 0 : "button",
|
|
20
|
+
...props,
|
|
21
|
+
children: [
|
|
22
|
+
!icon && (submitting ? /* @__PURE__ */ jsx(Spinner, {
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
className: "bi-button--start-icon"
|
|
25
|
+
}) : startIcon && /* @__PURE__ */ jsx("span", {
|
|
26
|
+
className: "bi-button--start-icon",
|
|
27
|
+
children: startIcon
|
|
28
|
+
})),
|
|
29
|
+
/* @__PURE__ */ jsx(Slottable, { children: icon && submitting ? /* @__PURE__ */ jsx(Spinner, { "aria-hidden": "true" }) : children }),
|
|
30
|
+
!icon && endIcon && /* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: "bi-button--end-icon",
|
|
32
|
+
children: endIcon
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { Button };
|
|
4
39
|
|
|
5
|
-
|
|
40
|
+
//# sourceMappingURL=button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.mjs","names":[],"sources":["../../../src/components/button/button.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { ButtonHTMLAttributes, ReactNode, Ref } from 'react';\nimport { Slot, Slottable } from '@radix-ui/react-slot';\nimport { Spinner } from '../spinner';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type ButtonProps = MergeRight<\n DefaultProps & ButtonHTMLAttributes<HTMLButtonElement>,\n {\n /**\n * The button size.\n * @default 'medium'\n */\n size?: 'small' | 'medium' | 'large';\n /**\n * The button variant.\n * @default 'filled'\n */\n variant?: 'filled' | 'outlined' | 'text' | 'flat';\n /**\n * Stretch the button to the full width.\n * @default false\n */\n fullwidth?: boolean;\n /**\n * Display a loading animation with the Spinner-component.\n * Replaces the `startIcon` if used\n * @default false\n */\n submitting?: boolean;\n /**\n * Display as icon-button, only use when showing an icon as the label.\n * Not compatible with the `startIcon`, `endIcon` and `fullwidth` props.\n * Always provide a descriptive aria-label for accessibility when set to true.\n * @default false\n */\n icon?: boolean;\n /** Set an icon before the button label, no effect if `icon=true` */\n startIcon?: ReactNode;\n /** Set an icon after the button label, no effect if `icon=true` */\n endIcon?: ReactNode;\n /** Make the button active by showing an active state. */\n active?: boolean;\n ref?: Ref<HTMLButtonElement>;\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 * Specify the type of button. Unset when `asChild` is true\n * @default 'button'\n */\n type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];\n }\n>;\n\nexport const Button = ({\n asChild,\n variant = 'filled',\n size = 'medium',\n fullwidth,\n dark,\n submitting,\n icon,\n children,\n className,\n startIcon,\n endIcon,\n active,\n ref,\n ...props\n}: ButtonProps) => {\n const Component = asChild ? Slot : 'button';\n\n return (\n <Component\n aria-busy={Boolean(submitting) || undefined}\n aria-disabled={Boolean(submitting) || undefined}\n className={clsx('bi-button', className)}\n data-variant={variant}\n data-size={size}\n data-fullwidth={fullwidth || undefined}\n data-dark={dark || undefined}\n data-icon={icon || undefined}\n data-active={active || undefined}\n ref={ref}\n /* don't set type when we use `asChild` */\n type={asChild ? undefined : 'button'}\n /* if consumers set type, our default does not set anything, as `rest` contains this */\n {...props}\n >\n {!icon &&\n (submitting ? (\n <Spinner aria-hidden='true' className='bi-button--start-icon' />\n ) : (\n startIcon && <span className='bi-button--start-icon'>{startIcon}</span>\n ))}\n <Slottable>{icon && submitting ? <Spinner aria-hidden='true' /> : children}</Slottable>\n {!icon && endIcon && <span className='bi-button--end-icon'>{endIcon}</span>}\n </Component>\n );\n};\n"],"mappings":";;;;;;AA0DA,MAAa,UAAU,EACrB,SACA,UAAU,UACV,OAAO,UACP,WACA,MACA,YACA,MACA,UACA,WACA,WACA,SACA,QACA,KACA,GAAG,YACc;AAGjB,QACE,qBAHgB,UAAU,OAAO,UAGjC;EACE,aAAW,QAAQ,WAAW,IAAI,KAAA;EAClC,iBAAe,QAAQ,WAAW,IAAI,KAAA;EACtC,WAAW,KAAK,aAAa,UAAU;EACvC,gBAAc;EACd,aAAW;EACX,kBAAgB,aAAa,KAAA;EAC7B,aAAW,QAAQ,KAAA;EACnB,aAAW,QAAQ,KAAA;EACnB,eAAa,UAAU,KAAA;EAClB;EAEL,MAAM,UAAU,KAAA,IAAY;EAE5B,GAAI;YAdN;GAgBG,CAAC,SACC,aACC,oBAAC,SAAD;IAAS,eAAY;IAAO,WAAU;IAA0B,CAAA,GAEhE,aAAa,oBAAC,QAAD;IAAM,WAAU;cAAyB;IAAiB,CAAA;GAE3E,oBAAC,WAAD,EAAA,UAAY,QAAQ,aAAa,oBAAC,SAAD,EAAS,eAAY,QAAS,CAAA,GAAG,UAAqB,CAAA;GACtF,CAAC,QAAQ,WAAW,oBAAC,QAAD;IAAM,WAAU;cAAuB;IAAe,CAAA;GACjE"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { En as ButtonProps, Tn as Button } 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 { Dn as Button, On as ButtonProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Button, ButtonProps };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { bn as CardActionProps, 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 { Sn as CardActionProps, xn as CardAction } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { CardAction, CardActionProps };
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
1
|
+
import { Button } from "../button/button.mjs";
|
|
2
|
+
import "../button/index.mjs";
|
|
3
|
+
import clsx from "clsx/lite";
|
|
4
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/card/card-action.tsx
|
|
7
|
+
const CardAction = ({ asChild, ref, children, dark, className, ...props }) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : Button, {
|
|
9
|
+
variant: "text",
|
|
10
|
+
size: "large",
|
|
11
|
+
icon: true,
|
|
12
|
+
dark,
|
|
13
|
+
className: clsx("bi-card--action", className),
|
|
14
|
+
ref,
|
|
15
|
+
...props,
|
|
16
|
+
children
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { CardAction };
|
|
6
21
|
|
|
7
|
-
|
|
22
|
+
//# sourceMappingURL=card-action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-action.mjs","names":[],"sources":["../../../src/components/card/card-action.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { Button, type ButtonProps } from '../button';\nimport { Slot } from '@radix-ui/react-slot';\n\nexport type CardActionProps = ButtonProps;\n\nexport const CardAction = ({ asChild, ref, children, dark, className, ...props }: CardActionProps) => {\n const Component = asChild ? Slot : Button;\n return (\n <Component\n variant='text'\n size='large'\n icon\n dark={dark}\n className={clsx('bi-card--action', className)}\n ref={ref}\n {...props}\n >\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;;;AAMA,MAAa,cAAc,EAAE,SAAS,KAAK,UAAU,MAAM,WAAW,GAAG,YAA6B;AAEpG,QACE,oBAFgB,UAAU,OAAO,QAEjC;EACE,SAAQ;EACR,MAAK;EACL,MAAA;EACM;EACN,WAAW,KAAK,mBAAmB,UAAU;EACxC;EACL,GAAI;EAEH;EACS,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { Sn as CardActionsProps, xn as CardActions } 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, wn as CardActionsProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { CardActions, CardActionsProps };
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/card/card-actions.tsx
|
|
4
|
+
const CardActions = ({ className, ref, children, ...props }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx("div", {
|
|
6
|
+
className: clsx("bi-card--actions", className),
|
|
7
|
+
ref,
|
|
8
|
+
...props,
|
|
9
|
+
children
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { CardActions };
|
|
2
14
|
|
|
3
|
-
|
|
15
|
+
//# sourceMappingURL=card-actions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-actions.mjs","names":[],"sources":["../../../src/components/card/card-actions.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx/lite';\n\nexport type CardActionsProps = MergeRight<\n HTMLAttributes<HTMLDivElement>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const CardActions = ({ className, ref, children, ...props }: CardActionsProps) => {\n return (\n <div className={clsx('bi-card--actions', className)} ref={ref} {...props}>\n {children}\n </div>\n );\n};\n"],"mappings":";;;AAWA,MAAa,eAAe,EAAE,WAAW,KAAK,UAAU,GAAG,YAA8B;AACvF,QACE,oBAAC,OAAD;EAAK,WAAW,KAAK,oBAAoB,UAAU;EAAO;EAAK,GAAI;EAChE;EACG,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { _n as CardContent, vn as CardContentProps } 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 { bn as CardContentProps, yn as CardContent } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { CardContent, CardContentProps };
|
|
@@ -1,3 +1,16 @@
|
|
|
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/card/card-content.tsx
|
|
5
|
+
const CardContent = ({ className, ref, children, asChild, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
7
|
+
className: clsx("bi-card--content", className),
|
|
8
|
+
ref,
|
|
9
|
+
...props,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { CardContent };
|
|
2
15
|
|
|
3
|
-
|
|
16
|
+
//# sourceMappingURL=card-content.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-content.mjs","names":[],"sources":["../../../src/components/card/card-content.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx/lite';\nimport { Slot } from '@radix-ui/react-slot';\n\nexport type CardContentProps = MergeRight<\n HTMLAttributes<HTMLDivElement>,\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 disabled?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const CardContent = ({ className, ref, children, asChild, ...props }: CardContentProps) => {\n const Component = asChild ? Slot : 'div';\n return (\n <Component className={clsx('bi-card--content', className)} ref={ref} {...props}>\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;AAkBA,MAAa,eAAe,EAAE,WAAW,KAAK,UAAU,SAAS,GAAG,YAA8B;AAEhG,QACE,oBAFgB,UAAU,OAAO,OAEjC;EAAW,WAAW,KAAK,oBAAoB,UAAU;EAAO;EAAK,GAAI;EACtE;EACS,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { dn as CardDate, fn as CardDateProps } 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 { mn as CardDateProps, pn as CardDate } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { CardDate, CardDateProps };
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/card/card-date.tsx
|
|
4
|
+
const CardDate = ({ className, ref, day, month, ...props }) => {
|
|
5
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
6
|
+
className: clsx("bi-card--date", className),
|
|
7
|
+
ref,
|
|
8
|
+
...props,
|
|
9
|
+
children: [day, /* @__PURE__ */ jsx("span", { children: month })]
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { CardDate };
|
|
2
14
|
|
|
3
|
-
|
|
15
|
+
//# sourceMappingURL=card-date.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-date.mjs","names":[],"sources":["../../../src/components/card/card-date.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport clsx from 'clsx/lite';\n\nexport type CardDateProps = MergeRight<\n Omit<HTMLAttributes<HTMLParagraphElement>, 'children'>,\n {\n /**\n * The day of the month.\n */\n day: number;\n /**\n * The month, should be a short string like \"Jan\", \"Feb\", etc.\n */\n month: string;\n ref?: Ref<HTMLParagraphElement>;\n }\n>;\n\nexport const CardDate = ({ className, ref, day, month, ...props }: CardDateProps) => {\n return (\n <p className={clsx('bi-card--date', className)} ref={ref} {...props}>\n {day}\n <span>{month}</span>\n </p>\n );\n};\n"],"mappings":";;;AAmBA,MAAa,YAAY,EAAE,WAAW,KAAK,KAAK,OAAO,GAAG,YAA2B;AACnF,QACE,qBAAC,KAAD;EAAG,WAAW,KAAK,iBAAiB,UAAU;EAAO;EAAK,GAAI;YAA9D,CACG,KACD,oBAAC,QAAD,EAAA,UAAO,OAAa,CAAA,CAClB"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-PJRUcTSc.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { gn as CardHeaderProps, hn as CardHeader } 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 { _n as CardHeader, vn as CardHeaderProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { CardHeader, CardHeaderProps };
|