@bi-digital/react 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist/{alert-footer-BFTlBQCl.d.mts → alert-footer-42JbxJ0B.d.mts} +135 -151
- package/dist/components/alert/alert-footer.d.mts +1 -14
- package/dist/components/alert/alert-footer.mjs +15 -2
- package/dist/components/alert/alert-footer.mjs.map +1 -0
- package/dist/components/alert/alert.d.mts +1 -14
- package/dist/components/alert/alert.mjs +33 -2
- package/dist/components/alert/alert.mjs.map +1 -0
- package/dist/components/alert/index.d.mts +1 -14
- package/dist/components/alert/index.mjs +3 -5
- package/dist/components/avatar/avatar.d.mts +1 -14
- package/dist/components/avatar/avatar.mjs +37 -2
- package/dist/components/avatar/avatar.mjs.map +1 -0
- package/dist/components/avatar/index.d.mts +1 -14
- package/dist/components/avatar/index.mjs +2 -4
- package/dist/components/badge/badge.d.mts +1 -14
- package/dist/components/badge/badge.mjs +19 -2
- package/dist/components/badge/badge.mjs.map +1 -0
- package/dist/components/badge/index.d.mts +1 -14
- package/dist/components/badge/index.mjs +2 -4
- package/dist/components/button/button.d.mts +1 -14
- package/dist/components/button/button.mjs +39 -4
- package/dist/components/button/button.mjs.map +1 -0
- package/dist/components/button/index.d.mts +1 -14
- package/dist/components/button/index.mjs +2 -6
- package/dist/components/card/card-action.d.mts +1 -14
- package/dist/components/card/card-action.mjs +21 -6
- package/dist/components/card/card-action.mjs.map +1 -0
- package/dist/components/card/card-actions.d.mts +1 -14
- package/dist/components/card/card-actions.mjs +14 -2
- package/dist/components/card/card-actions.mjs.map +1 -0
- package/dist/components/card/card-content.d.mts +1 -14
- package/dist/components/card/card-content.mjs +15 -2
- package/dist/components/card/card-content.mjs.map +1 -0
- package/dist/components/card/card-date.d.mts +1 -14
- package/dist/components/card/card-date.mjs +14 -2
- package/dist/components/card/card-date.mjs.map +1 -0
- package/dist/components/card/card-header.d.mts +1 -14
- package/dist/components/card/card-header.mjs +37 -2
- package/dist/components/card/card-header.mjs.map +1 -0
- package/dist/components/card/card-media.d.mts +1 -14
- package/dist/components/card/card-media.mjs +17 -2
- package/dist/components/card/card-media.mjs.map +1 -0
- package/dist/components/card/card.d.mts +1 -14
- package/dist/components/card/card.mjs +19 -2
- package/dist/components/card/card.mjs.map +1 -0
- package/dist/components/card/index.d.mts +1 -14
- package/dist/components/card/index.mjs +8 -14
- package/dist/components/checkbox/checkbox-subsection.d.mts +1 -14
- package/dist/components/checkbox/checkbox-subsection.mjs +15 -2
- package/dist/components/checkbox/checkbox-subsection.mjs.map +1 -0
- package/dist/components/checkbox/checkbox.d.mts +1 -14
- package/dist/components/checkbox/checkbox.mjs +59 -11
- package/dist/components/checkbox/checkbox.mjs.map +1 -0
- package/dist/components/checkbox/index.d.mts +1 -14
- package/dist/components/checkbox/index.mjs +3 -14
- package/dist/components/chip/chip.d.mts +1 -14
- package/dist/components/chip/chip.mjs +24 -2
- package/dist/components/chip/chip.mjs.map +1 -0
- package/dist/components/chip/index.d.mts +1 -14
- package/dist/components/chip/index.mjs +2 -4
- package/dist/components/details/details-content.d.mts +1 -14
- package/dist/components/details/details-content.mjs +20 -2
- package/dist/components/details/details-content.mjs.map +1 -0
- package/dist/components/details/details-summary.d.mts +1 -14
- package/dist/components/details/details-summary.mjs +20 -2
- package/dist/components/details/details-summary.mjs.map +1 -0
- package/dist/components/details/details.d.mts +1 -14
- package/dist/components/details/details.mjs +33 -2
- package/dist/components/details/details.mjs.map +1 -0
- package/dist/components/details/index.d.mts +1 -14
- package/dist/components/details/index.mjs +4 -6
- package/dist/components/dialog/dialog-close-button.d.mts +1 -14
- package/dist/components/dialog/dialog-close-button.mjs +28 -6
- package/dist/components/dialog/dialog-close-button.mjs.map +1 -0
- package/dist/components/dialog/dialog-content.d.mts +1 -14
- package/dist/components/dialog/dialog-content.mjs +16 -2
- package/dist/components/dialog/dialog-content.mjs.map +1 -0
- package/dist/components/dialog/dialog-footer.d.mts +1 -14
- package/dist/components/dialog/dialog-footer.mjs +16 -2
- package/dist/components/dialog/dialog-footer.mjs.map +1 -0
- package/dist/components/dialog/dialog-header.d.mts +1 -14
- package/dist/components/dialog/dialog-header.mjs +16 -2
- package/dist/components/dialog/dialog-header.mjs.map +1 -0
- package/dist/components/dialog/dialog-trigger-context.d.mts +1 -1
- package/dist/components/dialog/dialog-trigger-context.mjs +21 -2
- package/dist/components/dialog/dialog-trigger-context.mjs.map +1 -0
- package/dist/components/dialog/dialog-trigger.d.mts +1 -14
- package/dist/components/dialog/dialog-trigger.mjs +20 -7
- package/dist/components/dialog/dialog-trigger.mjs.map +1 -0
- package/dist/components/dialog/dialog.d.mts +1 -14
- package/dist/components/dialog/dialog.mjs +62 -4
- package/dist/components/dialog/dialog.mjs.map +1 -0
- package/dist/components/dialog/index.d.mts +2 -14
- package/dist/components/dialog/index.mjs +8 -15
- package/dist/components/drawer/drawer-close-button.d.mts +1 -14
- package/dist/components/drawer/drawer-close-button.mjs +14 -15
- package/dist/components/drawer/drawer-close-button.mjs.map +1 -0
- package/dist/components/drawer/drawer-content.d.mts +1 -14
- package/dist/components/drawer/drawer-content.mjs +16 -15
- package/dist/components/drawer/drawer-content.mjs.map +1 -0
- package/dist/components/drawer/drawer-footer.d.mts +1 -14
- package/dist/components/drawer/drawer-footer.mjs +16 -15
- package/dist/components/drawer/drawer-footer.mjs.map +1 -0
- package/dist/components/drawer/drawer-header.d.mts +1 -14
- package/dist/components/drawer/drawer-header.mjs +16 -15
- package/dist/components/drawer/drawer-header.mjs.map +1 -0
- package/dist/components/drawer/drawer-trigger-context.d.mts +1 -1
- package/dist/components/drawer/drawer-trigger-context.mjs +11 -15
- package/dist/components/drawer/drawer-trigger-context.mjs.map +1 -0
- package/dist/components/drawer/drawer-trigger.d.mts +1 -14
- package/dist/components/drawer/drawer-trigger.mjs +14 -15
- package/dist/components/drawer/drawer-trigger.mjs.map +1 -0
- package/dist/components/drawer/drawer.d.mts +1 -14
- package/dist/components/drawer/drawer.mjs +47 -15
- package/dist/components/drawer/drawer.mjs.map +1 -0
- package/dist/components/drawer/index.d.mts +2 -14
- package/dist/components/drawer/index.mjs +8 -23
- package/dist/components/dropdown/dropdown-button.d.mts +1 -14
- package/dist/components/dropdown/dropdown-button.mjs +14 -6
- package/dist/components/dropdown/dropdown-button.mjs.map +1 -0
- package/dist/components/dropdown/dropdown-item.d.mts +1 -1
- package/dist/components/dropdown/dropdown-item.mjs +9 -2
- package/dist/components/dropdown/dropdown-item.mjs.map +1 -0
- package/dist/components/dropdown/dropdown-list.d.mts +1 -1
- package/dist/components/dropdown/dropdown-list.mjs +9 -2
- package/dist/components/dropdown/dropdown-list.mjs.map +1 -0
- package/dist/components/dropdown/dropdown-trigger-context.d.mts +1 -14
- package/dist/components/dropdown/dropdown-trigger-context.mjs +27 -12
- package/dist/components/dropdown/dropdown-trigger-context.mjs.map +1 -0
- package/dist/components/dropdown/dropdown-trigger.d.mts +1 -14
- package/dist/components/dropdown/dropdown-trigger.mjs +12 -12
- package/dist/components/dropdown/dropdown-trigger.mjs.map +1 -0
- package/dist/components/dropdown/dropdown.d.mts +1 -14
- package/dist/components/dropdown/dropdown.mjs +43 -12
- package/dist/components/dropdown/dropdown.mjs.map +1 -0
- package/dist/components/dropdown/index.d.mts +3 -14
- package/dist/components/dropdown/index.mjs +7 -19
- package/dist/components/field/field-affix.d.mts +1 -14
- package/dist/components/field/field-affix.mjs +43 -2
- package/dist/components/field/field-affix.mjs.map +1 -0
- package/dist/components/field/field-description.d.mts +1 -14
- package/dist/components/field/field-description.mjs +14 -2
- package/dist/components/field/field-description.mjs.map +1 -0
- package/dist/components/field/field.d.mts +1 -14
- package/dist/components/field/field.mjs +28 -2
- package/dist/components/field/field.mjs.map +1 -0
- package/dist/components/field/index.d.mts +1 -14
- package/dist/components/field/index.mjs +4 -6
- package/dist/components/fieldset/fieldset-description.d.mts +1 -14
- package/dist/components/fieldset/fieldset-description.mjs +12 -2
- package/dist/components/fieldset/fieldset-description.mjs.map +1 -0
- package/dist/components/fieldset/fieldset-legend.d.mts +1 -14
- package/dist/components/fieldset/fieldset-legend.mjs +18 -4
- package/dist/components/fieldset/fieldset-legend.mjs.map +1 -0
- package/dist/components/fieldset/fieldset.d.mts +1 -14
- package/dist/components/fieldset/fieldset.mjs +15 -2
- package/dist/components/fieldset/fieldset.mjs.map +1 -0
- package/dist/components/fieldset/index.d.mts +1 -14
- package/dist/components/fieldset/index.mjs +4 -8
- package/dist/components/filter-group/filter-group.d.mts +1 -14
- package/dist/components/filter-group/filter-group.mjs +38 -2
- package/dist/components/filter-group/filter-group.mjs.map +1 -0
- package/dist/components/filter-group/index.d.mts +1 -14
- package/dist/components/filter-group/index.mjs +2 -4
- package/dist/components/footer/footer-links.d.mts +1 -1
- package/dist/components/footer/footer-links.mjs +13 -2
- package/dist/components/footer/footer-links.mjs.map +1 -0
- package/dist/components/footer/footer.d.mts +1 -14
- package/dist/components/footer/footer.mjs +110 -6
- package/dist/components/footer/footer.mjs.map +1 -0
- package/dist/components/footer/index.d.mts +2 -14
- package/dist/components/footer/index.mjs +3 -9
- package/dist/components/index.d.mts +10 -15
- package/dist/components/index.mjs +112 -120
- package/dist/components/input/index.d.mts +1 -14
- package/dist/components/input/index.mjs +2 -4
- package/dist/components/input/input.d.mts +1 -14
- package/dist/components/input/input.mjs +23 -2
- package/dist/components/input/input.mjs.map +1 -0
- package/dist/components/label/index.d.mts +1 -14
- package/dist/components/label/index.mjs +2 -4
- package/dist/components/label/label.d.mts +1 -14
- package/dist/components/label/label.mjs +16 -2
- package/dist/components/label/label.mjs.map +1 -0
- package/dist/components/link/index.d.mts +1 -14
- package/dist/components/link/index.mjs +2 -4
- package/dist/components/link/link.d.mts +1 -14
- package/dist/components/link/link.mjs +17 -2
- package/dist/components/link/link.mjs.map +1 -0
- package/dist/components/logo/index.d.mts +1 -14
- package/dist/components/logo/index.mjs +2 -4
- package/dist/components/logo/logo.d.mts +1 -14
- package/dist/components/logo/logo.mjs +17 -2
- package/dist/components/logo/logo.mjs.map +1 -0
- package/dist/components/navbar/index.d.mts +1 -14
- package/dist/components/navbar/index.mjs +3 -13
- package/dist/components/navbar/navbar.d.mts +1 -14
- package/dist/components/navbar/navbar.mjs +22 -4
- package/dist/components/navbar/navbar.mjs.map +1 -0
- package/dist/components/navbar/sub-navbar.d.mts +1 -14
- package/dist/components/navbar/sub-navbar.mjs +27 -8
- package/dist/components/navbar/sub-navbar.mjs.map +1 -0
- package/dist/components/pagination/index.d.mts +2 -14
- package/dist/components/pagination/index.mjs +4 -10
- package/dist/components/pagination/pagination-button.d.mts +1 -14
- package/dist/components/pagination/pagination-button.mjs +13 -6
- package/dist/components/pagination/pagination-button.mjs.map +1 -0
- package/dist/components/pagination/pagination-item.d.mts +1 -1
- package/dist/components/pagination/pagination-item.mjs +13 -2
- package/dist/components/pagination/pagination-item.mjs.map +1 -0
- package/dist/components/pagination/pagination.d.mts +1 -14
- package/dist/components/pagination/pagination.mjs +15 -2
- package/dist/components/pagination/pagination.mjs.map +1 -0
- package/dist/components/popover/index.d.mts +2 -14
- package/dist/components/popover/index.mjs +4 -12
- package/dist/components/popover/popover-trigger-context.d.mts +1 -1
- package/dist/components/popover/popover-trigger-context.mjs +37 -2
- package/dist/components/popover/popover-trigger-context.mjs.map +1 -0
- package/dist/components/popover/popover-trigger.d.mts +1 -14
- package/dist/components/popover/popover-trigger.mjs +43 -7
- package/dist/components/popover/popover-trigger.mjs.map +1 -0
- package/dist/components/popover/popover.d.mts +1 -14
- package/dist/components/popover/popover.mjs +110 -5
- package/dist/components/popover/popover.mjs.map +1 -0
- package/dist/components/radio/index.d.mts +1 -14
- package/dist/components/radio/index.mjs +2 -12
- package/dist/components/radio/radio.d.mts +1 -14
- package/dist/components/radio/radio.mjs +46 -10
- package/dist/components/radio/radio.mjs.map +1 -0
- package/dist/components/search/index.d.mts +1 -14
- package/dist/components/search/index.mjs +2 -14
- package/dist/components/search/search.d.mts +1 -14
- package/dist/components/search/search.mjs +59 -12
- package/dist/components/search/search.mjs.map +1 -0
- package/dist/components/select/index.d.mts +1 -14
- package/dist/components/select/index.mjs +4 -6
- package/dist/components/select/select-optgroup.d.mts +1 -14
- package/dist/components/select/select-optgroup.mjs +12 -2
- package/dist/components/select/select-optgroup.mjs.map +1 -0
- package/dist/components/select/select-option.d.mts +1 -14
- package/dist/components/select/select-option.mjs +12 -2
- package/dist/components/select/select-option.mjs.map +1 -0
- package/dist/components/select/select.d.mts +1 -14
- package/dist/components/select/select.mjs +24 -2
- package/dist/components/select/select.mjs.map +1 -0
- package/dist/components/selectfield/index.d.mts +1 -14
- package/dist/components/selectfield/index.mjs +2 -16
- package/dist/components/selectfield/selectfield.d.mts +1 -14
- package/dist/components/selectfield/selectfield.mjs +55 -14
- package/dist/components/selectfield/selectfield.mjs.map +1 -0
- package/dist/components/skip-link/index.d.mts +1 -14
- package/dist/components/skip-link/index.mjs +2 -4
- package/dist/components/skip-link/skip-link.d.mts +1 -14
- package/dist/components/skip-link/skip-link.mjs +15 -2
- package/dist/components/skip-link/skip-link.mjs.map +1 -0
- package/dist/components/spinner/index.d.mts +1 -14
- package/dist/components/spinner/index.mjs +2 -4
- package/dist/components/spinner/spinner.d.mts +1 -14
- package/dist/components/spinner/spinner.mjs +15 -2
- package/dist/components/spinner/spinner.mjs.map +1 -0
- package/dist/components/sticky-header/index.d.mts +1 -2
- package/dist/components/sticky-header/index.mjs +2 -4
- package/dist/components/sticky-header/sticky-header.d.mts +1 -1
- package/dist/components/sticky-header/sticky-header.mjs +18 -2
- package/dist/components/sticky-header/sticky-header.mjs.map +1 -0
- package/dist/components/switch/index.d.mts +1 -14
- package/dist/components/switch/index.mjs +2 -12
- package/dist/components/switch/switch.d.mts +1 -14
- package/dist/components/switch/switch.mjs +35 -10
- package/dist/components/switch/switch.mjs.map +1 -0
- package/dist/components/tabs/index.d.mts +2 -15
- package/dist/components/tabs/index.mjs +5 -11
- package/dist/components/tabs/tab.d.mts +1 -14
- package/dist/components/tabs/tab.mjs +24 -6
- package/dist/components/tabs/tab.mjs.map +1 -0
- package/dist/components/tabs/tabs-list.d.mts +1 -14
- package/dist/components/tabs/tabs-list.mjs +14 -2
- package/dist/components/tabs/tabs-list.mjs.map +1 -0
- package/dist/components/tabs/tabs-panel.d.mts +1 -14
- package/dist/components/tabs/tabs-panel.mjs +18 -2
- package/dist/components/tabs/tabs-panel.mjs.map +1 -0
- package/dist/components/tabs/tabs.d.mts +2 -15
- package/dist/components/tabs/tabs.mjs +50 -2
- package/dist/components/tabs/tabs.mjs.map +1 -0
- package/dist/components/textarea/index.d.mts +1 -14
- package/dist/components/textarea/index.mjs +2 -4
- package/dist/components/textarea/textarea.d.mts +1 -14
- package/dist/components/textarea/textarea.mjs +15 -2
- package/dist/components/textarea/textarea.mjs.map +1 -0
- package/dist/components/textfield/index.d.mts +1 -14
- package/dist/components/textfield/index.mjs +2 -16
- package/dist/components/textfield/textfield.d.mts +1 -14
- package/dist/components/textfield/textfield.mjs +68 -14
- package/dist/components/textfield/textfield.mjs.map +1 -0
- package/dist/components/validation-message/index.d.mts +1 -14
- package/dist/components/validation-message/index.mjs +2 -4
- package/dist/components/validation-message/validation-message.d.mts +1 -14
- package/dist/components/validation-message/validation-message.mjs +16 -2
- package/dist/components/validation-message/validation-message.mjs.map +1 -0
- package/dist/dialog-trigger-context-CAC7jh1K.d.mts +20 -0
- package/dist/drawer-trigger-context-DxLBj5Xr.d.mts +16 -0
- package/dist/{dropdown-item-B9Toa4yI.d.mts → dropdown-item-B6MmulV_.d.mts} +3 -3
- package/dist/{dropdown-list-Ce8CUTGr.d.mts → dropdown-list-DKugDMKm.d.mts} +3 -3
- package/dist/{footer-links-B8XVWRnL.d.mts → footer-links-Dac3-Emr.d.mts} +3 -3
- package/dist/main.d.mts +16 -18
- package/dist/main.mjs +83 -121
- package/dist/{pagination-item-DBpTl8iP.d.mts → pagination-item-AQQSJ7GD.d.mts} +3 -3
- package/dist/{popover-trigger-context-HGF38PbW.d.mts → popover-trigger-context-BG1lPWXA.d.mts} +5 -5
- package/dist/{sticky-header-CQ10VPji.d.mts → sticky-header-C6gJlnzy.d.mts} +3 -3
- package/dist/{types-Biyhmxh9.d.mts → types-74lJC5tL.d.mts} +1 -1
- package/dist/{types-Bgj7p8nD.d.mts → types-BXsMIYrD.d.mts} +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.mjs +1 -1
- package/dist/{useCheckboxGroup-BUpI46_M.d.mts → useCheckboxGroup-Boc_tLJ3.d.mts} +1 -1
- package/dist/{useIsElementAboveViewport-BcIGWQqn.d.mts → useIsElementAboveViewport-Cxt9TwLS.d.mts} +1 -1
- package/dist/{useIsomorphicLayoutEffect-gxToSQn7.d.mts → useIsomorphicLayoutEffect-DXCY5AxR.d.mts} +1 -1
- package/dist/{useMediaQuery-CIi3MXay.d.mts → useMediaQuery-Di0fXraw.d.mts} +1 -1
- package/dist/{useScrollDirection-Cm7w2CbB.d.mts → useScrollDirection-6pq5a8B3.d.mts} +1 -1
- package/dist/utilities/hooks/index.d.mts +6 -16
- package/dist/utilities/hooks/index.mjs +7 -9
- package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.mts +1 -1
- package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.mjs +16 -2
- package/dist/{useCheckboxGroup-B2Px3eiz.mjs.map → utilities/hooks/useCheckboxGroup/useCheckboxGroup.mjs.map} +1 -1
- package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.d.mts +1 -1
- package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.mjs +18 -2
- package/dist/{useIsElementAboveViewport-BaSLEYQk.mjs.map → utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.mjs.map} +1 -1
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.mts +1 -1
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -2
- package/dist/{useIsomorphicLayoutEffect-Bn8aiGVW.mjs.map → utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs.map} +1 -1
- package/dist/utilities/hooks/useMediaQuery/useMediaQuery.d.mts +1 -1
- package/dist/utilities/hooks/useMediaQuery/useMediaQuery.mjs +42 -3
- package/dist/{useMediaQuery-BRGC6S33.mjs.map → utilities/hooks/useMediaQuery/useMediaQuery.mjs.map} +1 -1
- package/dist/utilities/hooks/useMergeRefs/useMergeRefs.mjs +40 -2
- package/dist/{useMergeRefs-DeEL5hK6.mjs.map → utilities/hooks/useMergeRefs/useMergeRefs.mjs.map} +1 -1
- package/dist/utilities/hooks/usePagination/usePagination.d.mts +1 -14
- package/dist/utilities/hooks/usePagination/usePagination.mjs +95 -2
- package/dist/{usePagination-aBXSjQBp.mjs.map → utilities/hooks/usePagination/usePagination.mjs.map} +1 -1
- package/dist/utilities/hooks/useScrollDirection/useScrollDirection.d.mts +1 -1
- package/dist/utilities/hooks/useScrollDirection/useScrollDirection.mjs +26 -2
- package/dist/{useScrollDirection-C36-HP3S.mjs.map → utilities/hooks/useScrollDirection/useScrollDirection.mjs.map} +1 -1
- package/dist/utilities/index.d.mts +7 -17
- package/dist/utilities/index.mjs +8 -9
- package/dist/utilities/types.d.mts +1 -1
- package/dist/utilities/types.mjs +1 -1
- package/dist/vanilla/dropdown/index.mjs +2 -3
- package/dist/vanilla/dropdown/index.mjs.map +1 -1
- package/dist/vanilla/index.mjs +3 -3
- package/dist/vanilla/popover/index.mjs +83 -2
- package/dist/vanilla/popover/index.mjs.map +1 -0
- package/dist/vanilla/sub-navbar/index.mjs +1 -1
- package/dist/vanilla/sub-navbar/index.mjs.map +1 -1
- package/package.json +13 -18
- package/dist/alert-B-qfyhxc.mjs +0 -35
- package/dist/alert-B-qfyhxc.mjs.map +0 -1
- package/dist/alert-footer-CiXj-PGD.mjs +0 -17
- package/dist/alert-footer-CiXj-PGD.mjs.map +0 -1
- package/dist/alert-vOhEayej.mjs +0 -1
- package/dist/avatar-5e5_er9-.mjs +0 -1
- package/dist/avatar-BEjjwjRn.mjs +0 -39
- package/dist/avatar-BEjjwjRn.mjs.map +0 -1
- package/dist/badge-D6dJHxi2.mjs +0 -1
- package/dist/badge-tAjYsQEq.mjs +0 -21
- package/dist/badge-tAjYsQEq.mjs.map +0 -1
- package/dist/button-BoSub8TT.mjs +0 -1
- package/dist/button-CDtQwUfp.mjs +0 -40
- package/dist/button-CDtQwUfp.mjs.map +0 -1
- package/dist/card-BwkKWLCT.mjs +0 -21
- package/dist/card-BwkKWLCT.mjs.map +0 -1
- package/dist/card-action-CkWX8kB1.mjs +0 -22
- package/dist/card-action-CkWX8kB1.mjs.map +0 -1
- package/dist/card-actions-DQXkkGKI.mjs +0 -16
- package/dist/card-actions-DQXkkGKI.mjs.map +0 -1
- package/dist/card-content-zQQxsR9_.mjs +0 -17
- package/dist/card-content-zQQxsR9_.mjs.map +0 -1
- package/dist/card-date-PwKzeTzD.mjs +0 -16
- package/dist/card-date-PwKzeTzD.mjs.map +0 -1
- package/dist/card-header-DkKr5o8N.mjs +0 -39
- package/dist/card-header-DkKr5o8N.mjs.map +0 -1
- package/dist/card-media-Bv2VWU3K.mjs +0 -19
- package/dist/card-media-Bv2VWU3K.mjs.map +0 -1
- package/dist/card-qYOn8pIl.mjs +0 -1
- package/dist/checkbox-BPiURV39.mjs +0 -1
- package/dist/checkbox-DLGjrSt2.mjs +0 -58
- package/dist/checkbox-DLGjrSt2.mjs.map +0 -1
- package/dist/checkbox-subsection-Dq60blow.mjs +0 -17
- package/dist/checkbox-subsection-Dq60blow.mjs.map +0 -1
- package/dist/chip-BEnK1Tg4.mjs +0 -1
- package/dist/chip-BzRByPTB.mjs +0 -26
- package/dist/chip-BzRByPTB.mjs.map +0 -1
- package/dist/details-BFP82eFe.mjs +0 -35
- package/dist/details-BFP82eFe.mjs.map +0 -1
- package/dist/details-BTkav6FR.mjs +0 -1
- package/dist/details-content-B-YYBzuY.mjs +0 -22
- package/dist/details-content-B-YYBzuY.mjs.map +0 -1
- package/dist/details-summary-BiXSfZfC.mjs +0 -22
- package/dist/details-summary-BiXSfZfC.mjs.map +0 -1
- package/dist/dialog-CRNSJEfp.mjs +0 -91
- package/dist/dialog-CRNSJEfp.mjs.map +0 -1
- package/dist/dialog-DOBwB8ll.mjs +0 -1
- package/dist/dialog-close-button-BQiLlxh_.mjs +0 -24
- package/dist/dialog-close-button-BQiLlxh_.mjs.map +0 -1
- package/dist/dialog-content-CrbstN2A.mjs +0 -18
- package/dist/dialog-content-CrbstN2A.mjs.map +0 -1
- package/dist/dialog-footer-CFNIIiwS.mjs +0 -18
- package/dist/dialog-footer-CFNIIiwS.mjs.map +0 -1
- package/dist/dialog-header-Duz76tEF.mjs +0 -18
- package/dist/dialog-header-Duz76tEF.mjs.map +0 -1
- package/dist/dialog-trigger-BwjU9AQE.mjs +0 -22
- package/dist/dialog-trigger-BwjU9AQE.mjs.map +0 -1
- package/dist/dialog-trigger-context-BP2Q3KEA.d.mts +0 -15
- package/dist/dialog-trigger-context-DqM6S5V-.mjs +0 -16
- package/dist/dialog-trigger-context-DqM6S5V-.mjs.map +0 -1
- package/dist/drawer-DYVQZLML.mjs +0 -1
- package/dist/drawer-Ds2MkNjF.mjs +0 -46
- package/dist/drawer-Ds2MkNjF.mjs.map +0 -1
- package/dist/drawer-close-button-BzgfCB46.mjs +0 -12
- package/dist/drawer-close-button-BzgfCB46.mjs.map +0 -1
- package/dist/drawer-content-DxY9zj19.mjs +0 -14
- package/dist/drawer-content-DxY9zj19.mjs.map +0 -1
- package/dist/drawer-footer-DEZvKbZ9.mjs +0 -14
- package/dist/drawer-footer-DEZvKbZ9.mjs.map +0 -1
- package/dist/drawer-header-8MFxFbKD.mjs +0 -14
- package/dist/drawer-header-8MFxFbKD.mjs.map +0 -1
- package/dist/drawer-trigger-context-BuP2a1-8.d.mts +0 -13
- package/dist/drawer-trigger-context-DUYTD43h.mjs +0 -9
- package/dist/drawer-trigger-context-DUYTD43h.mjs.map +0 -1
- package/dist/drawer-trigger-uVwwMXt_.mjs +0 -12
- package/dist/drawer-trigger-uVwwMXt_.mjs.map +0 -1
- package/dist/dropdown-4m7NoRv7.mjs +0 -1
- package/dist/dropdown-BZZfp-oa.mjs +0 -44
- package/dist/dropdown-BZZfp-oa.mjs.map +0 -1
- package/dist/dropdown-button-B6EgzSgh.mjs +0 -15
- package/dist/dropdown-button-B6EgzSgh.mjs.map +0 -1
- package/dist/dropdown-item-rKVicLWJ.mjs +0 -11
- package/dist/dropdown-item-rKVicLWJ.mjs.map +0 -1
- package/dist/dropdown-list-CCnbpP3r.mjs +0 -11
- package/dist/dropdown-list-CCnbpP3r.mjs.map +0 -1
- package/dist/dropdown-trigger-8zD-9jXF.mjs +0 -13
- package/dist/dropdown-trigger-8zD-9jXF.mjs.map +0 -1
- package/dist/dropdown-trigger-context-DnY5awW2.mjs +0 -28
- package/dist/dropdown-trigger-context-DnY5awW2.mjs.map +0 -1
- package/dist/field-BIBlDQoi.mjs +0 -30
- package/dist/field-BIBlDQoi.mjs.map +0 -1
- package/dist/field-D8ZE0keC.mjs +0 -1
- package/dist/field-affix-DNZXWyx-.mjs +0 -45
- package/dist/field-affix-DNZXWyx-.mjs.map +0 -1
- package/dist/field-description-Dt2qLchF.mjs +0 -16
- package/dist/field-description-Dt2qLchF.mjs.map +0 -1
- package/dist/fieldset-CcTi6Dum.mjs +0 -17
- package/dist/fieldset-CcTi6Dum.mjs.map +0 -1
- package/dist/fieldset-EvlIWkNe.mjs +0 -1
- package/dist/fieldset-description-C2jSmnwk.mjs +0 -14
- package/dist/fieldset-description-C2jSmnwk.mjs.map +0 -1
- package/dist/fieldset-legend-CSlBCJxg.mjs +0 -19
- package/dist/fieldset-legend-CSlBCJxg.mjs.map +0 -1
- package/dist/filter-group-CqgWY3I1.mjs +0 -1
- package/dist/filter-group-Djsr79gi.mjs +0 -40
- package/dist/filter-group-Djsr79gi.mjs.map +0 -1
- package/dist/footer-CFU5m0uE.mjs +0 -1
- package/dist/footer-CMS77qh0.mjs +0 -111
- package/dist/footer-CMS77qh0.mjs.map +0 -1
- package/dist/footer-links-CE3T7evI.mjs +0 -15
- package/dist/footer-links-CE3T7evI.mjs.map +0 -1
- package/dist/hooks-DndqtgSU.mjs +0 -1
- package/dist/input-8Az-c2K1.mjs +0 -1
- package/dist/input-DU_8Z4cN.mjs +0 -25
- package/dist/input-DU_8Z4cN.mjs.map +0 -1
- package/dist/label-BrxPu7QD.mjs +0 -1
- package/dist/label-QZyUM8Df.mjs +0 -18
- package/dist/label-QZyUM8Df.mjs.map +0 -1
- package/dist/link-CU3kBJB8.mjs +0 -19
- package/dist/link-CU3kBJB8.mjs.map +0 -1
- package/dist/link-CYniSrWk.mjs +0 -1
- package/dist/logo-Cj67VFWL.mjs +0 -1
- package/dist/logo-d750FIud.mjs +0 -19
- package/dist/logo-d750FIud.mjs.map +0 -1
- package/dist/navbar-A1xgv5BY.mjs +0 -23
- package/dist/navbar-A1xgv5BY.mjs.map +0 -1
- package/dist/navbar-Ch7rJsaf.mjs +0 -1
- package/dist/pagination-BK24_vW3.mjs +0 -1
- package/dist/pagination-Drbd1147.mjs +0 -17
- package/dist/pagination-Drbd1147.mjs.map +0 -1
- package/dist/pagination-button-DT0m4mTM.mjs +0 -14
- package/dist/pagination-button-DT0m4mTM.mjs.map +0 -1
- package/dist/pagination-item-BfCHe-dC.mjs +0 -15
- package/dist/pagination-item-BfCHe-dC.mjs.map +0 -1
- package/dist/popover-B8P0dE2-.mjs +0 -85
- package/dist/popover-B8P0dE2-.mjs.map +0 -1
- package/dist/popover-CGqBsAam.mjs +0 -112
- package/dist/popover-CGqBsAam.mjs.map +0 -1
- package/dist/popover-C_lxbEYu.mjs +0 -1
- package/dist/popover-trigger-T4NXzZPy.mjs +0 -44
- package/dist/popover-trigger-T4NXzZPy.mjs.map +0 -1
- package/dist/popover-trigger-context-DZFORTLq.mjs +0 -39
- package/dist/popover-trigger-context-DZFORTLq.mjs.map +0 -1
- package/dist/radio-CikbRUIb.mjs +0 -45
- package/dist/radio-CikbRUIb.mjs.map +0 -1
- package/dist/radio-DoypqZjr.mjs +0 -1
- package/dist/search-B71qkkhd.mjs +0 -1
- package/dist/search-CTkPGLRm.mjs +0 -58
- package/dist/search-CTkPGLRm.mjs.map +0 -1
- package/dist/select-D80ba0X2.mjs +0 -1
- package/dist/select-optgroup-BzjAhfRU.mjs +0 -14
- package/dist/select-optgroup-BzjAhfRU.mjs.map +0 -1
- package/dist/select-option-DLslGIIp.mjs +0 -14
- package/dist/select-option-DLslGIIp.mjs.map +0 -1
- package/dist/select-vw7cl3d_.mjs +0 -26
- package/dist/select-vw7cl3d_.mjs.map +0 -1
- package/dist/selectfield-BrXuaiOJ.mjs +0 -53
- package/dist/selectfield-BrXuaiOJ.mjs.map +0 -1
- package/dist/selectfield-acG211WN.mjs +0 -1
- package/dist/skip-link-0SNs70lF.mjs +0 -17
- package/dist/skip-link-0SNs70lF.mjs.map +0 -1
- package/dist/skip-link-DtgRPO9V.mjs +0 -1
- package/dist/spinner-C4Z-GQVz.mjs +0 -1
- package/dist/spinner-xmvtWIZ0.mjs +0 -17
- package/dist/spinner-xmvtWIZ0.mjs.map +0 -1
- package/dist/sticky-header-Bwee74P6.mjs +0 -20
- package/dist/sticky-header-Bwee74P6.mjs.map +0 -1
- package/dist/sticky-header-j3zwZtj_.mjs +0 -1
- package/dist/sub-navbar-Dke7jNvB.mjs +0 -28
- package/dist/sub-navbar-Dke7jNvB.mjs.map +0 -1
- package/dist/switch-CJtJvYv6.mjs +0 -34
- package/dist/switch-CJtJvYv6.mjs.map +0 -1
- package/dist/switch-DZsMi5Uf.mjs +0 -1
- package/dist/tab-qLMKkR-4.mjs +0 -27
- package/dist/tab-qLMKkR-4.mjs.map +0 -1
- package/dist/tabs-BYYODpZJ.mjs +0 -24
- package/dist/tabs-BYYODpZJ.mjs.map +0 -1
- package/dist/tabs-Bdxundn7.mjs +0 -1
- package/dist/tabs-list-BAnPnTwx.mjs +0 -20
- package/dist/tabs-list-BAnPnTwx.mjs.map +0 -1
- package/dist/tabs-panel-GX2ZoOvH.mjs +0 -21
- package/dist/tabs-panel-GX2ZoOvH.mjs.map +0 -1
- package/dist/textarea-BDAr1Unx.mjs +0 -1
- package/dist/textarea-CHhlswpx.mjs +0 -17
- package/dist/textarea-CHhlswpx.mjs.map +0 -1
- package/dist/textfield-BFLLhYVI.mjs +0 -1
- package/dist/textfield-rcRRkfZB.mjs +0 -65
- package/dist/textfield-rcRRkfZB.mjs.map +0 -1
- package/dist/useCheckboxGroup-B2Px3eiz.mjs +0 -17
- package/dist/useIsElementAboveViewport-BaSLEYQk.mjs +0 -20
- package/dist/useIsomorphicLayoutEffect-Bn8aiGVW.mjs +0 -8
- package/dist/useMediaQuery-BRGC6S33.mjs +0 -44
- package/dist/useMergeRefs-DeEL5hK6.mjs +0 -42
- package/dist/usePagination-aBXSjQBp.mjs +0 -97
- package/dist/useScrollDirection-C36-HP3S.mjs +0 -28
- package/dist/validation-message-376E95cm.mjs +0 -18
- package/dist/validation-message-376E95cm.mjs.map +0 -1
- package/dist/validation-message-YHHHXfxE.mjs +0 -1
- /package/dist/{index-C3reD4RP.d.mts → index-Dc-SdpIe.d.mts} +0 -0
|
@@ -1,15 +1,56 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { Field } from "../field/field.mjs";
|
|
2
|
+
import { FieldDescription } from "../field/field-description.mjs";
|
|
3
|
+
import "../field/index.mjs";
|
|
4
|
+
import { Label } from "../label/label.mjs";
|
|
5
|
+
import "../label/index.mjs";
|
|
6
|
+
import { Select } from "../select/select.mjs";
|
|
7
|
+
import "../select/index.mjs";
|
|
8
|
+
import { ValidationMessage } from "../validation-message/validation-message.mjs";
|
|
9
|
+
import "../validation-message/index.mjs";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { useId } from "react";
|
|
12
|
+
//#region src/components/selectfield/selectfield.tsx
|
|
13
|
+
const Selectfield = ({ children, dark, label, description, error, style, className, fullwidth, ref, id: idProp, "aria-describedby": ariaDescribedByProp, ...props }) => {
|
|
14
|
+
const generatedId = useId();
|
|
15
|
+
const descriptionId = useId();
|
|
16
|
+
const validationId = useId();
|
|
17
|
+
const id = idProp || generatedId;
|
|
18
|
+
const ariaDescribedBy = [
|
|
19
|
+
description ? descriptionId : "",
|
|
20
|
+
error ? validationId : "",
|
|
21
|
+
ariaDescribedByProp
|
|
22
|
+
].join(" ").trim() || void 0;
|
|
23
|
+
return /* @__PURE__ */ jsxs(Field, {
|
|
24
|
+
className,
|
|
25
|
+
"data-dark": dark,
|
|
26
|
+
style,
|
|
27
|
+
fullwidth,
|
|
28
|
+
children: [
|
|
29
|
+
label && /* @__PURE__ */ jsx(Label, {
|
|
30
|
+
htmlFor: id,
|
|
31
|
+
children: label
|
|
32
|
+
}),
|
|
33
|
+
description && /* @__PURE__ */ jsx(FieldDescription, {
|
|
34
|
+
id: descriptionId,
|
|
35
|
+
children: description
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ jsx(Select, {
|
|
38
|
+
id,
|
|
39
|
+
ref,
|
|
40
|
+
dark,
|
|
41
|
+
"aria-invalid": Boolean(error) || void 0,
|
|
42
|
+
"aria-describedby": ariaDescribedBy,
|
|
43
|
+
...props,
|
|
44
|
+
children
|
|
45
|
+
}),
|
|
46
|
+
!!error && /* @__PURE__ */ jsx(ValidationMessage, {
|
|
47
|
+
id: validationId,
|
|
48
|
+
children: error
|
|
49
|
+
})
|
|
50
|
+
]
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { Selectfield };
|
|
14
55
|
|
|
15
|
-
|
|
56
|
+
//# sourceMappingURL=selectfield.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectfield.mjs","names":[],"sources":["../../../src/components/selectfield/selectfield.tsx"],"sourcesContent":["import { useId, type ReactNode } from 'react';\n\nimport type { LabelRequiredProps } from '../../types';\nimport { Field, FieldDescription } from '../field';\nimport { Label } from '../label';\nimport { Select, type SelectProps } from '../select';\nimport { ValidationMessage } from '../validation-message';\nimport { MergeRight } from '../../utilities';\n\nexport type SelectfieldProps = MergeRight<\n LabelRequiredProps & SelectProps,\n {\n /** Description */\n description?: ReactNode;\n /** Error message for field */\n error?: ReactNode;\n /** If true, the selectfield will take up the full available width */\n fullwidth?: boolean;\n }\n>;\n\nexport const Selectfield = ({\n children,\n dark,\n label,\n description,\n error,\n style,\n className,\n fullwidth,\n ref,\n id: idProp,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n}: SelectfieldProps) => {\n const generatedId = useId();\n const descriptionId = useId();\n const validationId = useId();\n const id = idProp || generatedId;\n\n const ariaDescribedBy =\n [description ? descriptionId : '', error ? validationId : '', ariaDescribedByProp].join(' ').trim() || undefined;\n return (\n <Field className={className} data-dark={dark} style={style} fullwidth={fullwidth}>\n {label && <Label htmlFor={id}>{label}</Label>}\n {description && <FieldDescription id={descriptionId}>{description}</FieldDescription>}\n <Select\n id={id}\n ref={ref}\n dark={dark}\n aria-invalid={Boolean(error) || undefined}\n aria-describedby={ariaDescribedBy}\n {...props}\n >\n {children}\n </Select>\n {!!error && <ValidationMessage id={validationId}>{error}</ValidationMessage>}\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAqBA,MAAa,eAAe,EAC1B,UACA,MACA,OACA,aACA,OACA,OACA,WACA,WACA,KACA,IAAI,QACJ,oBAAoB,qBACpB,GAAG,YACmB;CACtB,MAAM,cAAc,OAAO;CAC3B,MAAM,gBAAgB,OAAO;CAC7B,MAAM,eAAe,OAAO;CAC5B,MAAM,KAAK,UAAU;CAErB,MAAM,kBACJ;EAAC,cAAc,gBAAgB;EAAI,QAAQ,eAAe;EAAI;EAAoB,CAAC,KAAK,IAAI,CAAC,MAAM,IAAI,KAAA;AACzG,QACE,qBAAC,OAAD;EAAkB;EAAW,aAAW;EAAa;EAAkB;YAAvE;GACG,SAAS,oBAAC,OAAD;IAAO,SAAS;cAAK;IAAc,CAAA;GAC5C,eAAe,oBAAC,kBAAD;IAAkB,IAAI;cAAgB;IAA+B,CAAA;GACrF,oBAAC,QAAD;IACM;IACC;IACC;IACN,gBAAc,QAAQ,MAAM,IAAI,KAAA;IAChC,oBAAkB;IAClB,GAAI;IAEH;IACM,CAAA;GACR,CAAC,CAAC,SAAS,oBAAC,mBAAD;IAAmB,IAAI;cAAe;IAA0B,CAAA;GACtE"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-gxToSQn7.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { C as SkipLink, w as SkipLinkProps } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { E as SkipLinkProps, T as SkipLink } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { SkipLink, SkipLinkProps };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-gxToSQn7.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { C as SkipLink, w as SkipLinkProps } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { E as SkipLinkProps, T as SkipLink } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { SkipLink, SkipLinkProps };
|
|
@@ -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/skip-link/skip-link.tsx
|
|
5
|
+
const SkipLink = ({ asChild, children, className, dark, ...props }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "a", {
|
|
7
|
+
className: clsx("bi-skip-link", className),
|
|
8
|
+
"data-dark": dark,
|
|
9
|
+
...props,
|
|
10
|
+
children
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { SkipLink };
|
|
2
15
|
|
|
3
|
-
|
|
16
|
+
//# sourceMappingURL=skip-link.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skip-link.mjs","names":[],"sources":["../../../src/components/skip-link/skip-link.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { Slot } from '@radix-ui/react-slot';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps, DefaultProps } from '../../types';\nimport type { AnchorHTMLAttributes, Ref } from 'react';\n\nexport type SkipLinkProps = MergeRight<\n DefaultProps & AsChildProps & AnchorHTMLAttributes<HTMLAnchorElement>,\n {\n ref?: Ref<HTMLAnchorElement>;\n }\n>;\n\nexport const SkipLink = ({ asChild, children, className, dark, ...props }: SkipLinkProps) => {\n const Component = asChild ? Slot : 'a';\n return (\n <Component className={clsx('bi-skip-link', className)} data-dark={dark} {...props}>\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;AAaA,MAAa,YAAY,EAAE,SAAS,UAAU,WAAW,MAAM,GAAG,YAA2B;AAE3F,QACE,oBAFgB,UAAU,OAAO,KAEjC;EAAW,WAAW,KAAK,gBAAgB,UAAU;EAAE,aAAW;EAAM,GAAI;EACzE;EACS,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-gxToSQn7.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { S as SpinnerProps, x as Spinner } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { C as Spinner, w as SpinnerProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Spinner, SpinnerProps };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-gxToSQn7.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { S as SpinnerProps, x as Spinner } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { C as Spinner, w as SpinnerProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Spinner, SpinnerProps };
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/spinner/spinner.tsx
|
|
4
|
+
const Spinner = ({ color = "inherit", size, className, ref, ...props }) => {
|
|
5
|
+
return /* @__PURE__ */ jsx("span", {
|
|
6
|
+
className: clsx("bi-spinner", className),
|
|
7
|
+
"data-size": size,
|
|
8
|
+
"data-color": color,
|
|
9
|
+
ref,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Spinner };
|
|
2
15
|
|
|
3
|
-
|
|
16
|
+
//# sourceMappingURL=spinner.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.mjs","names":[],"sources":["../../../src/components/spinner/spinner.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type SpinnerProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLSpanElement>,\n {\n /**\n * The color of the spinner.\n * @default 'inherit'\n */\n color?: 'inherit' | 'black';\n /**\n * The size of the spinner.\n * It sets the font-size as the width and height is `1em`. If not set, the spinner will inherit the font size of its parent.\n */\n size?: 'small' | 'medium' | 'large' | 'xl' | '2xl';\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\nexport const Spinner = ({ color = 'inherit', size, className, ref, ...props }: SpinnerProps) => {\n return <span className={clsx('bi-spinner', className)} data-size={size} data-color={color} ref={ref} {...props} />;\n};\n"],"mappings":";;;AAsBA,MAAa,WAAW,EAAE,QAAQ,WAAW,MAAM,WAAW,KAAK,GAAG,YAA0B;AAC9F,QAAO,oBAAC,QAAD;EAAM,WAAW,KAAK,cAAc,UAAU;EAAE,aAAW;EAAM,cAAY;EAAY;EAAK,GAAI;EAAS,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as StickyHeaderProps, t as StickyHeader } from "../../sticky-header-
|
|
1
|
+
import { n as StickyHeaderProps, t as StickyHeader } from "../../sticky-header-C6gJlnzy.mjs";
|
|
2
2
|
export { StickyHeader, StickyHeaderProps };
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/sticky-header/sticky-header.tsx
|
|
4
|
+
/**
|
|
5
|
+
* Make a sticky header that will stay at the top of the viewport when scrolling.
|
|
6
|
+
* It handles different distance to the top based on sub-navbar, navbar and other factors.
|
|
7
|
+
* This element is a Slot which simply adds the correct CSS styles to the children.
|
|
8
|
+
* Make sure that the children passed to this component appends className and not overrides it.
|
|
9
|
+
*/
|
|
10
|
+
const StickyHeader = ({ children }) => {
|
|
11
|
+
return /* @__PURE__ */ jsx(Slot, {
|
|
12
|
+
className: "bi-sticky-header",
|
|
13
|
+
children
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { StickyHeader };
|
|
2
18
|
|
|
3
|
-
|
|
19
|
+
//# sourceMappingURL=sticky-header.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticky-header.mjs","names":[],"sources":["../../../src/components/sticky-header/sticky-header.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { ReactNode } from 'react';\n\nexport type StickyHeaderProps = {\n children: ReactNode;\n};\n\n/**\n * Make a sticky header that will stay at the top of the viewport when scrolling.\n * It handles different distance to the top based on sub-navbar, navbar and other factors.\n * This element is a Slot which simply adds the correct CSS styles to the children.\n * Make sure that the children passed to this component appends className and not overrides it.\n */\nexport const StickyHeader = ({ children }: StickyHeaderProps) => {\n const Component = Slot;\n return <Component className='bi-sticky-header'>{children}</Component>;\n};\n"],"mappings":";;;;;;;;;AAaA,MAAa,gBAAgB,EAAE,eAAkC;AAE/D,QAAO,oBADW,MACX;EAAW,WAAU;EAAoB;EAAqB,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-gxToSQn7.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { b as SwitchProps, y as Switch } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { S as SwitchProps, x as Switch } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Switch, SwitchProps };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
import "../../field-affix-DNZXWyx-.mjs";
|
|
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 { t as Switch } from "../../switch-CJtJvYv6.mjs";
|
|
10
|
-
import "../../switch-DZsMi5Uf.mjs";
|
|
11
|
-
|
|
12
|
-
export { Switch };
|
|
1
|
+
import { Switch } from "./switch.mjs";
|
|
2
|
+
export { Switch };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-gxToSQn7.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { b as SwitchProps, y as Switch } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { S as SwitchProps, x as Switch } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Switch, SwitchProps };
|
|
@@ -1,11 +1,36 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { Field } from "../field/field.mjs";
|
|
2
|
+
import "../field/index.mjs";
|
|
3
|
+
import { Input } from "../input/input.mjs";
|
|
4
|
+
import "../input/index.mjs";
|
|
5
|
+
import { Label } from "../label/label.mjs";
|
|
6
|
+
import "../label/index.mjs";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/switch/switch.tsx
|
|
9
|
+
const Switch = ({ dark, label, error, fullwidth, style, className, ref, id, position = "end", ...props }) => {
|
|
10
|
+
return /* @__PURE__ */ jsx(Field, {
|
|
11
|
+
className,
|
|
12
|
+
"data-dark": dark,
|
|
13
|
+
style,
|
|
14
|
+
fullwidth,
|
|
15
|
+
position,
|
|
16
|
+
asChild: true,
|
|
17
|
+
children: /* @__PURE__ */ jsxs("label", { children: [/* @__PURE__ */ jsx(Input, {
|
|
18
|
+
role: "switch",
|
|
19
|
+
type: "checkbox",
|
|
20
|
+
id,
|
|
21
|
+
ref,
|
|
22
|
+
"aria-invalid": error || void 0,
|
|
23
|
+
dark,
|
|
24
|
+
...props
|
|
25
|
+
}), label && /* @__PURE__ */ jsx(Label, {
|
|
26
|
+
weight: "medium",
|
|
27
|
+
htmlFor: id,
|
|
28
|
+
asChild: true,
|
|
29
|
+
children: /* @__PURE__ */ jsx("span", { children: label })
|
|
30
|
+
})] })
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { Switch };
|
|
10
35
|
|
|
11
|
-
|
|
36
|
+
//# sourceMappingURL=switch.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.mjs","names":[],"sources":["../../../src/components/switch/switch.tsx"],"sourcesContent":["import type { ReactNode, Ref } from 'react';\n\nimport type { LabelRequiredProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Field, type FieldProps } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { Label } from '../label';\n\nexport type SwitchProps = MergeRight<\n LabelRequiredProps & Omit<InputProps, 'type' | 'role' | 'size'> & Pick<FieldProps, 'position'>,\n {\n /** Label */\n label?: ReactNode;\n /** Add error indication to the switch. */\n error?: boolean;\n /** If true, the switch will take up the full width of the container, and not just \"fit-content\" which is default */\n fullwidth?: boolean;\n ref?: Ref<HTMLInputElement>;\n }\n>;\n\nexport const Switch = ({\n dark,\n label,\n error,\n fullwidth,\n style,\n className,\n ref,\n id,\n position = 'end',\n ...props\n}: SwitchProps) => {\n return (\n <Field className={className} data-dark={dark} style={style} fullwidth={fullwidth} position={position} asChild>\n <label>\n <Input\n role='switch'\n type='checkbox'\n id={id}\n ref={ref}\n aria-invalid={error || undefined}\n dark={dark}\n {...props}\n />\n {label && (\n <Label weight='medium' htmlFor={id} asChild>\n <span>{label}</span>\n </Label>\n )}\n </label>\n </Field>\n );\n};\n"],"mappings":";;;;;;;;AAqBA,MAAa,UAAU,EACrB,MACA,OACA,OACA,WACA,OACA,WACA,KACA,IACA,WAAW,OACX,GAAG,YACc;AACjB,QACE,oBAAC,OAAD;EAAkB;EAAW,aAAW;EAAa;EAAkB;EAAqB;EAAU,SAAA;YACpG,qBAAC,SAAD,EAAA,UAAA,CACE,oBAAC,OAAD;GACE,MAAK;GACL,MAAK;GACD;GACC;GACL,gBAAc,SAAS,KAAA;GACjB;GACN,GAAI;GACJ,CAAA,EACD,SACC,oBAAC,OAAD;GAAO,QAAO;GAAS,SAAS;GAAI,SAAA;aAClC,oBAAC,QAAD,EAAA,UAAO,OAAa,CAAA;GACd,CAAA,CAEJ,EAAA,CAAA;EACF,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { _ as Tabs, d as TabsPanel, f as TabsPanelProps, g as TabProps, h as Tab, m as TabsListProps, p as TabsList, v as TabsProps } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
15
|
-
export { Tab, TabProps, Tabs, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps };
|
|
1
|
+
import { b as TabsProps, d as TabsPanel, f as TabsPanelProps, g as TabProps, h as Tab, m as TabsListProps, p as TabsList, v as Tabs, y as TabsContext } from "../../alert-footer-42JbxJ0B.mjs";
|
|
2
|
+
export { Tab, TabProps, Tabs, TabsContext, TabsList, TabsListProps, TabsPanel, TabsPanelProps, TabsProps };
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
import { t as Tab } from "../../tab-qLMKkR-4.mjs";
|
|
7
|
-
import { t as TabsList } from "../../tabs-list-BAnPnTwx.mjs";
|
|
8
|
-
import { t as TabsPanel } from "../../tabs-panel-GX2ZoOvH.mjs";
|
|
9
|
-
import "../../tabs-Bdxundn7.mjs";
|
|
10
|
-
|
|
11
|
-
export { Tab, Tabs, TabsList, TabsPanel };
|
|
1
|
+
import { Tabs } from "./tabs.mjs";
|
|
2
|
+
import { Tab } from "./tab.mjs";
|
|
3
|
+
import { TabsList } from "./tabs-list.mjs";
|
|
4
|
+
import { TabsPanel } from "./tabs-panel.mjs";
|
|
5
|
+
export { Tab, Tabs, TabsList, TabsPanel };
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-gxToSQn7.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { g as TabProps, h as Tab } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { g as TabProps, h as Tab } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { Tab, TabProps };
|
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
|
|
1
|
+
import { Context } from "./tabs.mjs";
|
|
2
|
+
import "@digdir/designsystemet-web";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { use } from "react";
|
|
5
|
+
//#region src/components/tabs/tab.tsx
|
|
6
|
+
const Tab = ({ value, children, dark, onClick, ref, ...props }) => {
|
|
7
|
+
const { onChange, getPrefixedValue, isProgrammaticClick } = use(Context);
|
|
8
|
+
return /* @__PURE__ */ jsx("ds-tab", {
|
|
9
|
+
"aria-controls": props["aria-controls"] ?? getPrefixedValue?.(value),
|
|
10
|
+
"data-value": value,
|
|
11
|
+
"data-dark": dark,
|
|
12
|
+
ref,
|
|
13
|
+
suppressHydrationWarning: true,
|
|
14
|
+
onClick: (e) => {
|
|
15
|
+
if (!isProgrammaticClick?.current) onChange?.(value);
|
|
16
|
+
onClick?.(e);
|
|
17
|
+
},
|
|
18
|
+
...props,
|
|
19
|
+
children
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { Tab };
|
|
6
24
|
|
|
7
|
-
|
|
25
|
+
//# sourceMappingURL=tab.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab.mjs","names":[],"sources":["../../../src/components/tabs/tab.tsx"],"sourcesContent":["import type { DSTabElement } from '@digdir/designsystemet-web';\nimport { use, type HTMLAttributes, type Ref } from 'react';\nimport '@digdir/designsystemet-web'; // Import ds-tab custom element\nimport type { MergeRight } from '../../utilities';\nimport { DefaultProps } from '../../types';\nimport { Context } from './tabs';\n\nexport type TabProps = MergeRight<\n DefaultProps & HTMLAttributes<DSTabElement>,\n {\n /** A unique value that associates the trigger with a content. */\n value: string;\n ref?: Ref<DSTabElement>;\n }\n>;\n\nexport const Tab = ({ value, children, dark, onClick, ref, ...props }: TabProps) => {\n const { onChange, getPrefixedValue, isProgrammaticClick } = use(Context);\n return (\n <ds-tab\n aria-controls={props['aria-controls'] ?? getPrefixedValue?.(value)}\n data-value={value}\n data-dark={dark}\n ref={ref}\n suppressHydrationWarning // Since <ds-tablist> adds attributes\n onClick={(e: React.MouseEvent<DSTabElement>) => {\n if (!isProgrammaticClick?.current) onChange?.(value); // Only call onChange for user interactions, not programmatic clicks used to sync controlled state\n onClick?.(e);\n }}\n {...props}\n >\n {children}\n </ds-tab>\n );\n};\n"],"mappings":";;;;;AAgBA,MAAa,OAAO,EAAE,OAAO,UAAU,MAAM,SAAS,KAAK,GAAG,YAAsB;CAClF,MAAM,EAAE,UAAU,kBAAkB,wBAAwB,IAAI,QAAQ;AACxE,QACE,oBAAC,UAAD;EACE,iBAAe,MAAM,oBAAoB,mBAAmB,MAAM;EAClE,cAAY;EACZ,aAAW;EACN;EACL,0BAAA;EACA,UAAU,MAAsC;AAC9C,OAAI,CAAC,qBAAqB,QAAS,YAAW,MAAM;AACpD,aAAU,EAAE;;EAEd,GAAI;EAEH;EACM,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-gxToSQn7.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { m as TabsListProps, p as TabsList } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { m as TabsListProps, p as TabsList } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { TabsList, TabsListProps };
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
//#region src/components/tabs/tabs-list.tsx
|
|
3
|
+
const TabsList = ({ children, dark, ref, ...props }) => {
|
|
4
|
+
return /* @__PURE__ */ jsx("ds-tablist", {
|
|
5
|
+
suppressHydrationWarning: true,
|
|
6
|
+
"data-dark": dark,
|
|
7
|
+
ref,
|
|
8
|
+
...props,
|
|
9
|
+
children
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { TabsList };
|
|
2
14
|
|
|
3
|
-
|
|
15
|
+
//# sourceMappingURL=tabs-list.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs-list.mjs","names":[],"sources":["../../../src/components/tabs/tabs-list.tsx"],"sourcesContent":["import type { DSTabListElement } from '@digdir/designsystemet-web';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type TabsListProps = MergeRight<\n DefaultProps & HTMLAttributes<DSTabListElement>,\n {\n ref?: Ref<DSTabListElement>;\n }\n>;\n\nexport const TabsList = ({ children, dark, ref, ...props }: TabsListProps) => {\n return (\n <ds-tablist\n suppressHydrationWarning // Since <ds-tablist> adds attributes\n data-dark={dark}\n ref={ref}\n {...props}\n >\n {children}\n </ds-tablist>\n );\n};\n"],"mappings":";;AAYA,MAAa,YAAY,EAAE,UAAU,MAAM,KAAK,GAAG,YAA2B;AAC5E,QACE,oBAAC,cAAD;EACE,0BAAA;EACA,aAAW;EACN;EACL,GAAI;EAEH;EACU,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../useIsomorphicLayoutEffect-gxToSQn7.mjs";
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { d as TabsPanel, f as TabsPanelProps } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
1
|
+
import { d as TabsPanel, f as TabsPanelProps } from "../../alert-footer-42JbxJ0B.mjs";
|
|
15
2
|
export { TabsPanel, TabsPanelProps };
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Context } from "./tabs.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { use } from "react";
|
|
4
|
+
//#region src/components/tabs/tabs-panel.tsx
|
|
5
|
+
const TabsPanel = ({ value, id, children, dark, ref, ...props }) => {
|
|
6
|
+
const { getPrefixedValue } = use(Context);
|
|
7
|
+
return /* @__PURE__ */ jsx("ds-tabpanel", {
|
|
8
|
+
suppressHydrationWarning: true,
|
|
9
|
+
ref,
|
|
10
|
+
"data-dark": dark,
|
|
11
|
+
id: id ?? getPrefixedValue?.(value),
|
|
12
|
+
...props,
|
|
13
|
+
children
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { TabsPanel };
|
|
2
18
|
|
|
3
|
-
|
|
19
|
+
//# sourceMappingURL=tabs-panel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs-panel.mjs","names":[],"sources":["../../../src/components/tabs/tabs-panel.tsx"],"sourcesContent":["import type { DSTabPanelElement } from '@digdir/designsystemet-web';\nimport { use, type HTMLAttributes, type Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Context } from './tabs';\n\nexport type TabsPanelProps = MergeRight<\n DefaultProps & HTMLAttributes<DSTabPanelElement>,\n {\n /** A unique value that associates the content with a trigger. */\n value: string;\n ref?: Ref<DSTabPanelElement>;\n }\n>;\n\nexport const TabsPanel = ({ value, id, children, dark, ref, ...props }: TabsPanelProps) => {\n const { getPrefixedValue } = use(Context);\n\n return (\n <ds-tabpanel\n suppressHydrationWarning // Since <ds-tablist> adds attributes\n ref={ref}\n data-dark={dark}\n id={id ?? getPrefixedValue?.(value)}\n {...props}\n >\n {children}\n </ds-tabpanel>\n );\n};\n"],"mappings":";;;;AAeA,MAAa,aAAa,EAAE,OAAO,IAAI,UAAU,MAAM,KAAK,GAAG,YAA4B;CACzF,MAAM,EAAE,qBAAqB,IAAI,QAAQ;AAEzC,QACE,oBAAC,eAAD;EACE,0BAAA;EACK;EACL,aAAW;EACX,IAAI,MAAM,mBAAmB,MAAM;EACnC,GAAI;EAEH;EACW,CAAA"}
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
|
|
3
|
-
import "../../types-Bgj7p8nD.mjs";
|
|
4
|
-
import { _ as Tabs, v as TabsProps } from "../../alert-footer-BFTlBQCl.mjs";
|
|
5
|
-
import "../../dialog-trigger-context-BP2Q3KEA.mjs";
|
|
6
|
-
import "../../drawer-trigger-context-BuP2a1-8.mjs";
|
|
7
|
-
import "../../popover-trigger-context-HGF38PbW.mjs";
|
|
8
|
-
import "../../dropdown-item-B9Toa4yI.mjs";
|
|
9
|
-
import "../../dropdown-list-Ce8CUTGr.mjs";
|
|
10
|
-
import "../../footer-links-B8XVWRnL.mjs";
|
|
11
|
-
import "../../pagination-item-DBpTl8iP.mjs";
|
|
12
|
-
import "../../sticky-header-CQ10VPji.mjs";
|
|
13
|
-
import "../../index-C3reD4RP.mjs";
|
|
14
|
-
import "../../useIsElementAboveViewport-BcIGWQqn.mjs";
|
|
15
|
-
export { Tabs, TabsProps };
|
|
1
|
+
import { _ as Context, b as TabsProps, v as Tabs, y as TabsContext } from "../../alert-footer-42JbxJ0B.mjs";
|
|
2
|
+
export { Context, Tabs, TabsContext, TabsProps };
|