@bi-digital/react 0.3.2 → 0.3.4
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-C6PxDwHt.js.map +1 -1
- package/dist/{alert-footer-DL4rCThp.js → alert-footer-DfjvFlBv.js} +2 -3
- package/dist/{alert-footer-DL4rCThp.js.map → alert-footer-DfjvFlBv.js.map} +1 -1
- package/dist/avatar-6Q2xwviO.js.map +1 -1
- package/dist/{badge-D9OVAKG8.js → badge-tKh0f84O.js} +2 -3
- package/dist/{badge-D9OVAKG8.js.map → badge-tKh0f84O.js.map} +1 -1
- package/dist/{button-fhd-JARc.js → button-BzU7DrNe.js} +2 -3
- package/dist/{button-fhd-JARc.js.map → button-BzU7DrNe.js.map} +1 -1
- package/dist/{card-action-D8M3_IVq.js → card-action-DiyQo6bH.js} +3 -4
- package/dist/{card-action-D8M3_IVq.js.map → card-action-DiyQo6bH.js.map} +1 -1
- package/dist/card-actions-CIsnmxsm.js.map +1 -1
- package/dist/{card-content-DkEHp8mv.js → card-content-BUc3uxiV.js} +2 -3
- package/dist/{card-content-DkEHp8mv.js.map → card-content-BUc3uxiV.js.map} +1 -1
- package/dist/card-date-Bd87BGDE.js.map +1 -1
- package/dist/card-header-D-RMd4xS.js.map +1 -1
- package/dist/card-media-DhU2_Ueq.js.map +1 -1
- package/dist/{card-QAnFhTk6.js → card-xvRovR7u.js} +2 -3
- package/dist/{card-QAnFhTk6.js.map → card-xvRovR7u.js.map} +1 -1
- package/dist/{checkbox-ZR1Z2PCF.js → checkbox-D04YsX0C.js} +4 -4
- package/dist/{checkbox-ZR1Z2PCF.js.map → checkbox-D04YsX0C.js.map} +1 -1
- package/dist/checkbox-subsection-BPe5aj-W.js.map +1 -1
- package/dist/{chip-b9xUiF7_.js → chip-BXBQ6E1H.js} +2 -3
- package/dist/{chip-b9xUiF7_.js.map → chip-BXBQ6E1H.js.map} +1 -1
- package/dist/components/alert/alert-footer.d.ts +2 -2
- package/dist/components/alert/alert-footer.js +1 -1
- package/dist/components/alert/alert.d.ts +2 -2
- package/dist/components/alert/index.d.ts +2 -2
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/avatar.d.ts +2 -2
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/badge.d.ts +2 -2
- package/dist/components/badge/badge.js +1 -1
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/badge/index.js +1 -1
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-action.d.ts +2 -2
- package/dist/components/card/card-action.js +2 -2
- package/dist/components/card/card-actions.d.ts +2 -2
- package/dist/components/card/card-content.d.ts +2 -2
- package/dist/components/card/card-content.js +1 -1
- package/dist/components/card/card-date.d.ts +2 -2
- package/dist/components/card/card-header.d.ts +2 -2
- package/dist/components/card/card-media.d.ts +2 -2
- package/dist/components/card/card.d.ts +2 -2
- package/dist/components/card/card.js +1 -1
- package/dist/components/card/index.d.ts +2 -2
- package/dist/components/card/index.js +4 -4
- package/dist/components/checkbox/checkbox-subsection.d.ts +2 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/checkbox/checkbox.js +5 -5
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/checkbox/index.js +5 -5
- package/dist/components/chip/chip.d.ts +2 -2
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/index.js +1 -1
- package/dist/components/dialog/dialog-close-button.d.ts +2 -2
- package/dist/components/dialog/dialog-close-button.js +2 -2
- package/dist/components/dialog/dialog-content.d.ts +2 -2
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/dialog-footer.d.ts +2 -2
- package/dist/components/dialog/dialog-footer.js +1 -1
- package/dist/components/dialog/dialog-header.d.ts +2 -2
- package/dist/components/dialog/dialog-header.js +1 -1
- package/dist/components/dialog/dialog-trigger.d.ts +2 -2
- package/dist/components/dialog/dialog-trigger.js +2 -2
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/index.js +7 -7
- package/dist/components/drawer/drawer-close-button.d.ts +2 -2
- package/dist/components/drawer/drawer-close-button.js +8 -8
- package/dist/components/drawer/drawer-content.d.ts +2 -2
- package/dist/components/drawer/drawer-content.js +8 -8
- package/dist/components/drawer/drawer-footer.d.ts +2 -2
- package/dist/components/drawer/drawer-footer.js +8 -8
- package/dist/components/drawer/drawer-header.d.ts +2 -2
- package/dist/components/drawer/drawer-header.js +8 -8
- package/dist/components/drawer/drawer-trigger-context.js +7 -7
- package/dist/components/drawer/drawer-trigger.d.ts +2 -2
- package/dist/components/drawer/drawer-trigger.js +8 -8
- package/dist/components/drawer/drawer.d.ts +2 -2
- package/dist/components/drawer/drawer.js +8 -8
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/drawer/index.js +13 -13
- package/dist/components/dropdown/dropdown-button.d.ts +2 -2
- package/dist/components/dropdown/dropdown-button.js +2 -2
- package/dist/components/dropdown/dropdown-trigger-context.d.ts +2 -2
- package/dist/components/dropdown/dropdown-trigger-context.js +3 -3
- package/dist/components/dropdown/dropdown-trigger.d.ts +2 -2
- package/dist/components/dropdown/dropdown-trigger.js +4 -4
- package/dist/components/dropdown/dropdown.d.ts +2 -2
- package/dist/components/dropdown/dropdown.js +4 -4
- package/dist/components/dropdown/index.d.ts +2 -2
- package/dist/components/dropdown/index.js +6 -6
- package/dist/components/field/field-affix.d.ts +2 -2
- package/dist/components/field/field-affix.js +1 -1
- package/dist/components/field/field-description.d.ts +2 -2
- package/dist/components/field/field-description.js +1 -1
- package/dist/components/field/field.d.ts +2 -2
- package/dist/components/field/field.js +1 -1
- package/dist/components/field/index.d.ts +2 -2
- package/dist/components/field/index.js +3 -3
- package/dist/components/fieldset/fieldset-description.d.ts +2 -2
- package/dist/components/fieldset/fieldset-description.js +1 -1
- package/dist/components/fieldset/fieldset-legend.d.ts +2 -2
- package/dist/components/fieldset/fieldset-legend.js +2 -2
- package/dist/components/fieldset/fieldset.d.ts +2 -2
- package/dist/components/fieldset/index.d.ts +2 -2
- package/dist/components/fieldset/index.js +3 -3
- package/dist/components/filter-group/filter-group.d.ts +2 -2
- package/dist/components/filter-group/index.d.ts +2 -2
- package/dist/components/footer/footer.d.ts +2 -2
- package/dist/components/footer/footer.js +2 -2
- package/dist/components/footer/index.d.ts +2 -2
- package/dist/components/footer/index.js +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +45 -45
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/input.d.ts +2 -2
- package/dist/components/label/index.d.ts +2 -2
- package/dist/components/label/index.js +1 -1
- package/dist/components/label/label.d.ts +2 -2
- package/dist/components/label/label.js +1 -1
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/link/index.js +1 -1
- package/dist/components/link/link.d.ts +2 -2
- package/dist/components/link/link.js +1 -1
- package/dist/components/logo/index.d.ts +2 -2
- package/dist/components/logo/logo.d.ts +2 -2
- package/dist/components/navbar/index.d.ts +2 -2
- package/dist/components/navbar/navbar.d.ts +2 -2
- package/dist/components/navbar/sub-navbar.d.ts +2 -2
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/index.js +3 -3
- package/dist/components/pagination/pagination-button.d.ts +2 -2
- package/dist/components/pagination/pagination-button.js +2 -2
- package/dist/components/pagination/pagination-item.js +1 -1
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/index.js +3 -3
- package/dist/components/popover/popover-trigger.d.ts +2 -2
- package/dist/components/popover/popover-trigger.js +2 -2
- package/dist/components/popover/popover.d.ts +2 -2
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/radio/index.js +5 -5
- package/dist/components/radio/radio.d.ts +2 -2
- package/dist/components/radio/radio.js +5 -5
- package/dist/components/search/index.d.ts +2 -2
- package/dist/components/search/index.js +5 -5
- package/dist/components/search/search.d.ts +2 -2
- package/dist/components/search/search.js +5 -5
- package/dist/components/select/index.d.ts +2 -2
- package/dist/components/select/index.js +2 -2
- package/dist/components/select/select-optgroup.d.ts +2 -2
- package/dist/components/select/select-optgroup.js +1 -1
- package/dist/components/select/select-option.d.ts +2 -2
- package/dist/components/select/select-option.js +1 -1
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/selectfield/index.d.ts +2 -2
- package/dist/components/selectfield/index.js +8 -8
- package/dist/components/selectfield/selectfield.d.ts +2 -2
- package/dist/components/selectfield/selectfield.js +8 -8
- package/dist/components/skip-link/index.d.ts +2 -2
- package/dist/components/skip-link/index.js +1 -1
- package/dist/components/skip-link/skip-link.d.ts +2 -2
- package/dist/components/skip-link/skip-link.js +1 -1
- package/dist/components/spinner/index.d.ts +2 -2
- package/dist/components/spinner/spinner.d.ts +2 -2
- package/dist/components/sticky-header/index.d.ts +2 -2
- package/dist/components/sticky-header/index.js +1 -1
- package/dist/components/sticky-header/sticky-header.d.ts +1 -1
- package/dist/components/sticky-header/sticky-header.js +1 -1
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/index.js +2 -2
- package/dist/components/tabs/tab.d.ts +2 -2
- package/dist/components/tabs/tab.js +2 -2
- package/dist/components/tabs/tabs-list.d.ts +2 -2
- package/dist/components/tabs/tabs-panel.d.ts +2 -2
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/textarea.d.ts +2 -2
- package/dist/components/textfield/index.d.ts +2 -2
- package/dist/components/textfield/index.js +6 -6
- package/dist/components/textfield/textfield.d.ts +2 -2
- package/dist/components/textfield/textfield.js +6 -6
- package/dist/components/validation-message/index.d.ts +2 -2
- package/dist/components/validation-message/index.js +1 -1
- package/dist/components/validation-message/validation-message.d.ts +2 -2
- package/dist/components/validation-message/validation-message.js +1 -1
- package/dist/{dialog-DzGRZgbP.js → dialog-DLouxw4y.js} +2 -3
- package/dist/dialog-DLouxw4y.js.map +1 -0
- package/dist/{dialog-close-button-C1omdnIn.js → dialog-close-button-DNOVMUt7.js} +2 -2
- package/dist/{dialog-close-button-C1omdnIn.js.map → dialog-close-button-DNOVMUt7.js.map} +1 -1
- package/dist/{dialog-content-R35XpbSj.js → dialog-content-ByDqO6K-.js} +2 -3
- package/dist/{dialog-content-R35XpbSj.js.map → dialog-content-ByDqO6K-.js.map} +1 -1
- package/dist/{dialog-footer-AoiCz_Uj.js → dialog-footer-xGzY5JMf.js} +2 -3
- package/dist/{dialog-footer-AoiCz_Uj.js.map → dialog-footer-xGzY5JMf.js.map} +1 -1
- package/dist/{dialog-header-Bbq9DcHX.js → dialog-header-D3I5Q8fm.js} +2 -3
- package/dist/{dialog-header-Bbq9DcHX.js.map → dialog-header-D3I5Q8fm.js.map} +1 -1
- package/dist/{dialog-trigger-DinHpkua.js → dialog-trigger-BgCUVVqE.js} +2 -2
- package/dist/{dialog-trigger-DinHpkua.js.map → dialog-trigger-BgCUVVqE.js.map} +1 -1
- package/dist/dialog-trigger-context-51mA5fz3.js.map +1 -1
- package/dist/{drawer-CZ05Lizo.js → drawer-D71b1GFM.js} +2 -2
- package/dist/{drawer-CZ05Lizo.js.map → drawer-D71b1GFM.js.map} +1 -1
- package/dist/{drawer-close-button-DC39bNW2.js → drawer-close-button-DUl-Rv_Q.js} +2 -2
- package/dist/{drawer-close-button-DC39bNW2.js.map → drawer-close-button-DUl-Rv_Q.js.map} +1 -1
- package/dist/{drawer-content-CFc-rxBo.js → drawer-content-ClBmFSOu.js} +2 -2
- package/dist/{drawer-content-CFc-rxBo.js.map → drawer-content-ClBmFSOu.js.map} +1 -1
- package/dist/{drawer-footer-CfHjfvEg.js → drawer-footer--sVRArFE.js} +2 -2
- package/dist/{drawer-footer-CfHjfvEg.js.map → drawer-footer--sVRArFE.js.map} +1 -1
- package/dist/{drawer-header-DK4XoaaW.js → drawer-header-CltvXMkH.js} +2 -2
- package/dist/{drawer-header-DK4XoaaW.js.map → drawer-header-CltvXMkH.js.map} +1 -1
- package/dist/{drawer-trigger-Do9Htx5M.js → drawer-trigger-DFM774gy.js} +2 -2
- package/dist/{drawer-trigger-Do9Htx5M.js.map → drawer-trigger-DFM774gy.js.map} +1 -1
- package/dist/drawer-trigger-context-BUWPPdas.js.map +1 -1
- package/dist/{dropdown-b7acNLZb.js → dropdown-D6CTkQ5a.js} +2 -2
- package/dist/{dropdown-b7acNLZb.js.map → dropdown-D6CTkQ5a.js.map} +1 -1
- package/dist/dropdown-Fzf2CeX4.js.map +1 -1
- package/dist/{dropdown-button-FQqIwqdp.js → dropdown-button-CywUProG.js} +2 -2
- package/dist/{dropdown-button-FQqIwqdp.js.map → dropdown-button-CywUProG.js.map} +1 -1
- package/dist/dropdown-item-DQQXQC4J.js.map +1 -1
- package/dist/dropdown-list-DB1mST67.js.map +1 -1
- package/dist/{dropdown-trigger-Fwrigwtg.js → dropdown-trigger-C_CyL38J.js} +2 -2
- package/dist/{dropdown-trigger-Fwrigwtg.js.map → dropdown-trigger-C_CyL38J.js.map} +1 -1
- package/dist/dropdown-trigger-context-BCcyoZEx.js.map +1 -1
- package/dist/{field-DFMMLG-d.js → field-Dul9LBgF.js} +2 -3
- package/dist/{field-DFMMLG-d.js.map → field-Dul9LBgF.js.map} +1 -1
- package/dist/{field-affix-npc6m7XL.js → field-affix-C5w3NK4H.js} +3 -5
- package/dist/{field-affix-npc6m7XL.js.map → field-affix-C5w3NK4H.js.map} +1 -1
- package/dist/{field-description-Dhm1VA08.js → field-description-Yya33j8H.js} +2 -3
- package/dist/{field-description-Dhm1VA08.js.map → field-description-Yya33j8H.js.map} +1 -1
- package/dist/fieldset-Bpu4CRKG.js.map +1 -1
- package/dist/{fieldset-description-DiHvcLh-.js → fieldset-description-Dbu9_oUQ.js} +2 -3
- package/dist/{fieldset-description-DiHvcLh-.js.map → fieldset-description-Dbu9_oUQ.js.map} +1 -1
- package/dist/{fieldset-legend-CR4srn2-.js → fieldset-legend-BBKsX2hf.js} +2 -2
- package/dist/{fieldset-legend-CR4srn2-.js.map → fieldset-legend-BBKsX2hf.js.map} +1 -1
- package/dist/filter-group-Fzw9g6JB.js.map +1 -1
- package/dist/{footer-B9sjkncE.js → footer-C7EDtlw0.js} +2 -2
- package/dist/{footer-B9sjkncE.js.map → footer-C7EDtlw0.js.map} +1 -1
- package/dist/footer-links-BIUrxu38.js.map +1 -1
- package/dist/index-Cp46Zvz-.d.ts +1 -0
- package/dist/input-Dr7BnTyd.js.map +1 -1
- package/dist/{label-DUzvAx-T.js → label-DG_ojO9g.js} +2 -3
- package/dist/{label-DUzvAx-T.js.map → label-DG_ojO9g.js.map} +1 -1
- package/dist/{link-BqDeZAJF.js → link-Dmgzb_KP.js} +2 -3
- package/dist/{link-BqDeZAJF.js.map → link-Dmgzb_KP.js.map} +1 -1
- package/dist/logo-QKrYvRFP.js.map +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.js +45 -45
- package/dist/navbar-Dxv7GQO0.js.map +1 -1
- package/dist/pagination-DH6vZYMO.js.map +1 -1
- package/dist/{pagination-button-CMSNwkeT.js → pagination-button-Dw341heB.js} +2 -2
- package/dist/{pagination-button-CMSNwkeT.js.map → pagination-button-Dw341heB.js.map} +1 -1
- package/dist/{pagination-item-DzskmZxf.js → pagination-item-wXC7T4rH.js} +2 -3
- package/dist/{pagination-item-DzskmZxf.js.map → pagination-item-wXC7T4rH.js.map} +1 -1
- package/dist/popover-DOMLkRA5.js.map +1 -1
- package/dist/{popover-DmA4qMtu.js → popover-pki5aMm2.js} +2 -4
- package/dist/popover-pki5aMm2.js.map +1 -0
- package/dist/{popover-trigger-Chi8uvRM.js → popover-trigger-BoB6rkG4.js} +2 -2
- package/dist/{popover-trigger-Chi8uvRM.js.map → popover-trigger-BoB6rkG4.js.map} +1 -1
- package/dist/popover-trigger-context-Cre9Mczn.js.map +1 -1
- package/dist/{radio-DAC5mhl3.js → radio-CDZoe1OO.js} +4 -4
- package/dist/{radio-DAC5mhl3.js.map → radio-CDZoe1OO.js.map} +1 -1
- package/dist/{search-DzjgrvFl.js → search-CmU2iA48.js} +4 -4
- package/dist/search-CmU2iA48.js.map +1 -0
- package/dist/select-R87VdG5U.js.map +1 -1
- package/dist/{select-optgroup-jowSQvbc.js → select-optgroup-DTnIUQEq.js} +2 -3
- package/dist/{select-optgroup-jowSQvbc.js.map → select-optgroup-DTnIUQEq.js.map} +1 -1
- package/dist/{select-option-WAhhr82L.js → select-option-BFmgqY3h.js} +2 -3
- package/dist/{select-option-WAhhr82L.js.map → select-option-BFmgqY3h.js.map} +1 -1
- package/dist/{selectfield-BD-t6Mmm.js → selectfield-CZ37jU-y.js} +5 -5
- package/dist/{selectfield-BD-t6Mmm.js.map → selectfield-CZ37jU-y.js.map} +1 -1
- package/dist/{skip-link-CbdX4Taw.js → skip-link-iWhLptx_.js} +2 -3
- package/dist/{skip-link-CbdX4Taw.js.map → skip-link-iWhLptx_.js.map} +1 -1
- package/dist/spinner-Ch5bEQBR.js.map +1 -1
- package/dist/{sticky-header-C9uGD3u6.d.ts → sticky-header-BMeHtK7e.d.ts} +3 -3
- package/dist/{sticky-header-gE5HX2ug.js → sticky-header-DOQD4Wye.js} +2 -3
- package/dist/{sticky-header-gE5HX2ug.js.map → sticky-header-DOQD4Wye.js.map} +1 -1
- package/dist/{sub-navbar-BdJ9EKsU.js → sub-navbar-DTTytyEQ.js} +7 -9
- package/dist/sub-navbar-DTTytyEQ.js.map +1 -0
- package/dist/sub-navbar-DkxQv0WJ.js.map +1 -1
- package/dist/{tab-BvSndQZ_.js → tab-BEnC2rri.js} +2 -2
- package/dist/{tab-BvSndQZ_.js.map → tab-BEnC2rri.js.map} +1 -1
- package/dist/tabs-C70z_5SJ.js.map +1 -1
- package/dist/tabs-list-npvK06bl.js.map +1 -1
- package/dist/tabs-panel-L8HovooI.js.map +1 -1
- package/dist/textarea-B1fAOfkt.js.map +1 -1
- package/dist/{textfield-DwLkaC2S.js → textfield-BH0g7AtT.js} +6 -6
- package/dist/{textfield-DwLkaC2S.js.map → textfield-BH0g7AtT.js.map} +1 -1
- package/dist/useCheckboxGroup-BDH3ewt8.js.map +1 -1
- package/dist/useIsElementAboveViewport-lmdnXDdc.js.map +1 -1
- package/dist/useMediaQuery-ICPWsO_p.js.map +1 -1
- package/dist/useMergeRefs-DC710CHX.js.map +1 -1
- package/dist/usePagination-DQR72JNE.js.map +1 -1
- package/dist/useScrollDirection-C2EmQi0U.js.map +1 -1
- package/dist/utilities/hooks/index.d.ts +2 -2
- package/dist/utilities/hooks/usePagination/usePagination.d.ts +2 -2
- package/dist/utilities/index.d.ts +2 -2
- package/dist/{validation-message-CPGA4DxM.js → validation-message-J5bvdg8v.js} +2 -3
- package/dist/{validation-message-CPGA4DxM.js.map → validation-message-J5bvdg8v.js.map} +1 -1
- package/dist/vanilla/index.js +1 -1
- package/dist/vanilla/sub-navbar/index.js +1 -1
- package/dist/vite-env.d.ts +1 -2
- package/package.json +21 -10
- package/dist/dialog-DzGRZgbP.js.map +0 -1
- package/dist/index-Cv0onxlx.d.ts +0 -1
- package/dist/popover-DmA4qMtu.js.map +0 -1
- package/dist/search-DzjgrvFl.js.map +0 -1
- package/dist/sub-navbar-BdJ9EKsU.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-Fzf2CeX4.js","names":[],"sources":["../src/vanilla/dropdown/index.ts"],"sourcesContent":["import type { Middleware, Placement } from '@floating-ui/dom';\nimport { initPopover } from '../popover';\n\nexport type InitDropdownOptions = {\n /** The id of the dropdown to initialize. The trigger element should have a `aria-controls` attribute with the same id. */\n id: string;\n /**\n * Placement of the dropdown relative to the trigger.\n * @default 'bottom'\n */\n placement?: Placement;\n /**\n * Additional middleware to use for positioning the dropdown.\n *\n * @example\n * Prevent the dropdown from overflowing the navbar by using the `size` middleware:\n * ```ts\n * positionMiddleware: [\n * size({\n * apply: ({ availableHeight, elements, ...state }) => {\n * const available = `${Math.max(0, availableHeight)}px`;\n * const maxHeight = state.placement.includes('top')\n * ? `calc(${available} - var(--bi-layout-navbar-height, 0))`\n * : available;\n * elements.floating.style.maxHeight = maxHeight;\n * },\n * padding,\n * })\n * ]}\n * ```\n */\n positionMiddleware?: Middleware[];\n /**\n * Whether to disable auto placement.\n * @default false\n */\n disableAutoPlacement?: boolean;\n /**\n * The padding used by the `offset` middleware.\n * @default '20'\n */\n padding?: number;\n};\n\n/**\n * Initializes the dropdown.\n * @param options - InitDropdownOptions\n * @returns A function to programmatically toggle the dropdown.\n */\nexport const initDropdown = ({\n id,\n disableAutoPlacement = false,\n placement = 'bottom',\n positionMiddleware = [],\n padding,\n}: InitDropdownOptions) => initPopover({ id, disableAutoPlacement, placement, positionMiddleware, padding });\n"],"mappings":";;;;;;;;AAiDA,MAAa,
|
|
1
|
+
{"version":3,"file":"dropdown-Fzf2CeX4.js","names":[],"sources":["../src/vanilla/dropdown/index.ts"],"sourcesContent":["import type { Middleware, Placement } from '@floating-ui/dom';\nimport { initPopover } from '../popover';\n\nexport type InitDropdownOptions = {\n /** The id of the dropdown to initialize. The trigger element should have a `aria-controls` attribute with the same id. */\n id: string;\n /**\n * Placement of the dropdown relative to the trigger.\n * @default 'bottom'\n */\n placement?: Placement;\n /**\n * Additional middleware to use for positioning the dropdown.\n *\n * @example\n * Prevent the dropdown from overflowing the navbar by using the `size` middleware:\n * ```ts\n * positionMiddleware: [\n * size({\n * apply: ({ availableHeight, elements, ...state }) => {\n * const available = `${Math.max(0, availableHeight)}px`;\n * const maxHeight = state.placement.includes('top')\n * ? `calc(${available} - var(--bi-layout-navbar-height, 0))`\n * : available;\n * elements.floating.style.maxHeight = maxHeight;\n * },\n * padding,\n * })\n * ]}\n * ```\n */\n positionMiddleware?: Middleware[];\n /**\n * Whether to disable auto placement.\n * @default false\n */\n disableAutoPlacement?: boolean;\n /**\n * The padding used by the `offset` middleware.\n * @default '20'\n */\n padding?: number;\n};\n\n/**\n * Initializes the dropdown.\n * @param options - InitDropdownOptions\n * @returns A function to programmatically toggle the dropdown.\n */\nexport const initDropdown = ({\n id,\n disableAutoPlacement = false,\n placement = 'bottom',\n positionMiddleware = [],\n padding,\n}: InitDropdownOptions) => initPopover({ id, disableAutoPlacement, placement, positionMiddleware, padding });\n"],"mappings":";;;;;;;;AAiDA,MAAa,gBAAgB,EAC3B,IACA,uBAAuB,OACvB,YAAY,UACZ,qBAAqB,EAAE,EACvB,cACyB,YAAY;CAAE;CAAI;CAAsB;CAAW;CAAoB;CAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from "./button-
|
|
1
|
+
import { Button } from "./button-BzU7DrNe.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dropdown/dropdown-button.tsx
|
|
@@ -12,4 +12,4 @@ const DropdownButton = ({ ref,...rest }) => {
|
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
14
|
export { DropdownButton };
|
|
15
|
-
//# sourceMappingURL=dropdown-button-
|
|
15
|
+
//# sourceMappingURL=dropdown-button-CywUProG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-button-
|
|
1
|
+
{"version":3,"file":"dropdown-button-CywUProG.js","names":[],"sources":["../src/components/dropdown/dropdown-button.tsx"],"sourcesContent":["import { Button, type ButtonProps } from '../button';\n\nexport type DropdownButtonProps = Omit<ButtonProps, 'variant'>;\n\nexport const DropdownButton = ({ ref, ...rest }: DropdownButtonProps) => {\n return <Button ref={ref} variant='text' {...rest} />;\n};\n"],"mappings":";;;;AAIA,MAAa,kBAAkB,EAAE,IAAK,GAAG,WAAgC;AACvE,QAAO,oBAAC;EAAY;EAAK,SAAQ;EAAO,GAAI;GAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-item-DQQXQC4J.js","names":[],"sources":["../src/components/dropdown/dropdown-item.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\n\nexport type DropdownItemProps = HTMLAttributes<HTMLLIElement> & {\n ref?: Ref<HTMLLIElement>;\n};\n\nexport const DropdownItem = ({ ref, ...rest }: DropdownItemProps) => <li ref={ref} {...rest} />;\n"],"mappings":";;;AAMA,MAAa,
|
|
1
|
+
{"version":3,"file":"dropdown-item-DQQXQC4J.js","names":[],"sources":["../src/components/dropdown/dropdown-item.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\n\nexport type DropdownItemProps = HTMLAttributes<HTMLLIElement> & {\n ref?: Ref<HTMLLIElement>;\n};\n\nexport const DropdownItem = ({ ref, ...rest }: DropdownItemProps) => <li ref={ref} {...rest} />;\n"],"mappings":";;;AAMA,MAAa,gBAAgB,EAAE,IAAK,GAAG,WAA8B,oBAAC;CAAQ;CAAK,GAAI;EAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-list-DB1mST67.js","names":[],"sources":["../src/components/dropdown/dropdown-list.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\n\nexport type DropdownListProps = HTMLAttributes<HTMLUListElement> & {\n ref?: Ref<HTMLUListElement>;\n};\n\nexport const DropdownList = ({ ref, ...rest }: DropdownListProps) => <ul ref={ref} {...rest} />;\n"],"mappings":";;;AAMA,MAAa,
|
|
1
|
+
{"version":3,"file":"dropdown-list-DB1mST67.js","names":[],"sources":["../src/components/dropdown/dropdown-list.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\n\nexport type DropdownListProps = HTMLAttributes<HTMLUListElement> & {\n ref?: Ref<HTMLUListElement>;\n};\n\nexport const DropdownList = ({ ref, ...rest }: DropdownListProps) => <ul ref={ref} {...rest} />;\n"],"mappings":";;;AAMA,MAAa,gBAAgB,EAAE,IAAK,GAAG,WAA8B,oBAAC;CAAQ;CAAK,GAAI;EAAQ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PopoverTrigger } from "./popover-trigger-
|
|
1
|
+
import { PopoverTrigger } from "./popover-trigger-BoB6rkG4.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dropdown/dropdown-trigger.tsx
|
|
@@ -10,4 +10,4 @@ const DropdownTrigger = ({ ref,...rest }) => /* @__PURE__ */ jsx(PopoverTrigger,
|
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
export { DropdownTrigger };
|
|
13
|
-
//# sourceMappingURL=dropdown-trigger-
|
|
13
|
+
//# sourceMappingURL=dropdown-trigger-C_CyL38J.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-trigger-
|
|
1
|
+
{"version":3,"file":"dropdown-trigger-C_CyL38J.js","names":[],"sources":["../src/components/dropdown/dropdown-trigger.tsx"],"sourcesContent":["import { PopoverTrigger, type PopoverTriggerProps } from '../popover';\n\nexport type DropdownTriggerProps = PopoverTriggerProps;\n\nexport const DropdownTrigger = ({ ref, ...rest }: DropdownTriggerProps) => (\n <PopoverTrigger variant='text' ref={ref} {...rest} />\n);\n"],"mappings":";;;;AAIA,MAAa,mBAAmB,EAAE,IAAK,GAAG,WACxC,oBAAC;CAAe,SAAQ;CAAY;CAAK,GAAI;EAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-trigger-context-BCcyoZEx.js","names":[],"sources":["../src/components/dropdown/dropdown-trigger-context.tsx"],"sourcesContent":["import { PopoverTriggerContext, type PopoverTriggerContextProps } from '../popover';\n\nexport type DropdownTriggerContextProps = PopoverTriggerContextProps;\n\n/**\n * DropdownTriggerContext component, use to wrap a DropdownTrigger and Dropdown.\n *\n * @example\n * <DropdownTriggerContext>\n * <DropdownTrigger>Dropdown</DropdownTrigger>\n * <Dropdown>\n * <DropdownHeading>Heading</DropdownHeading>\n * <DropdownList>\n * <DropdownItem>\n * <DropdownButton>Button</DropdownButton>\n * </DropdownItem>\n * </DropdownList>\n * </Dropdown>\n * </DropdownTriggerContext>\n */\nexport const DropdownTriggerContext = ({ children, ...props }: DropdownTriggerContextProps) => (\n <PopoverTriggerContext {...props}>{children}</PopoverTriggerContext>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,
|
|
1
|
+
{"version":3,"file":"dropdown-trigger-context-BCcyoZEx.js","names":[],"sources":["../src/components/dropdown/dropdown-trigger-context.tsx"],"sourcesContent":["import { PopoverTriggerContext, type PopoverTriggerContextProps } from '../popover';\n\nexport type DropdownTriggerContextProps = PopoverTriggerContextProps;\n\n/**\n * DropdownTriggerContext component, use to wrap a DropdownTrigger and Dropdown.\n *\n * @example\n * <DropdownTriggerContext>\n * <DropdownTrigger>Dropdown</DropdownTrigger>\n * <Dropdown>\n * <DropdownHeading>Heading</DropdownHeading>\n * <DropdownList>\n * <DropdownItem>\n * <DropdownButton>Button</DropdownButton>\n * </DropdownItem>\n * </DropdownList>\n * </Dropdown>\n * </DropdownTriggerContext>\n */\nexport const DropdownTriggerContext = ({ children, ...props }: DropdownTriggerContextProps) => (\n <PopoverTriggerContext {...props}>{children}</PopoverTriggerContext>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,0BAA0B,EAAE,SAAU,GAAG,YACpD,oBAAC;CAAsB,GAAI;CAAQ;EAAiC"}
|
|
@@ -15,8 +15,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
15
15
|
* </Field>
|
|
16
16
|
*/
|
|
17
17
|
const Field = ({ className, dark, position, fullwidth, asChild, ref,...props }) => {
|
|
18
|
-
|
|
19
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
18
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
20
19
|
className: clsx("bi-field", className),
|
|
21
20
|
"data-dark": dark,
|
|
22
21
|
"data-position": position,
|
|
@@ -28,4 +27,4 @@ const Field = ({ className, dark, position, fullwidth, asChild, ref,...props })
|
|
|
28
27
|
|
|
29
28
|
//#endregion
|
|
30
29
|
export { Field };
|
|
31
|
-
//# sourceMappingURL=field-
|
|
30
|
+
//# sourceMappingURL=field-Dul9LBgF.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-
|
|
1
|
+
{"version":3,"file":"field-Dul9LBgF.js","names":[],"sources":["../src/components/field/field.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps, AsChildProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type FieldProps = MergeRight<\n DefaultProps & AsChildProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * Position of toggle-type inputs (radio, checkbox) in the field\n * @default start\n */\n position?: 'start' | 'end';\n /** Set width: 100% */\n fullwidth?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\n/**\n * The Field component is used to wrap a form field.\n *\n * @example\n * <Field>\n * <Label>Kort beskrivelse</Label>\n * <FieldDescription>Beskrivelse</FieldDescription>\n * <Input />\n * <ValidationMessage>Feilmelding</ValidationMessage>\n * </Field>\n */\nexport const Field = ({ className, dark, position, fullwidth, asChild, ref, ...props }: FieldProps) => {\n const Component = asChild ? Slot : 'div';\n\n return (\n <Component\n className={clsx('bi-field', className)}\n data-dark={dark}\n data-position={position}\n data-fullwidth={fullwidth}\n ref={ref}\n {...props}\n />\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;AA+BA,MAAa,SAAS,EAAE,WAAW,MAAM,UAAU,WAAW,SAAS,IAAK,GAAG,YAAwB;AAGrG,QACE,oBAHgB,UAAU,OAAO;EAI/B,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,iBAAe;EACf,kBAAgB;EACX;EACL,GAAI;GACJ"}
|
|
@@ -14,8 +14,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
14
14
|
* </FieldAffixes>
|
|
15
15
|
*/
|
|
16
16
|
const FieldAffixes = ({ className, asChild, ref,...rest }) => {
|
|
17
|
-
|
|
18
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
17
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
19
18
|
className: clsx("bi-field--affixes", className),
|
|
20
19
|
ref,
|
|
21
20
|
...rest
|
|
@@ -33,8 +32,7 @@ const FieldAffixes = ({ className, asChild, ref,...rest }) => {
|
|
|
33
32
|
* </FieldAffixes>
|
|
34
33
|
*/
|
|
35
34
|
const FieldAffix = ({ className, asChild, ref,...rest }) => {
|
|
36
|
-
|
|
37
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
35
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "span", {
|
|
38
36
|
className: clsx("bi-field--affix", className),
|
|
39
37
|
"aria-hidden": "true",
|
|
40
38
|
ref,
|
|
@@ -44,4 +42,4 @@ const FieldAffix = ({ className, asChild, ref,...rest }) => {
|
|
|
44
42
|
|
|
45
43
|
//#endregion
|
|
46
44
|
export { FieldAffix, FieldAffixes };
|
|
47
|
-
//# sourceMappingURL=field-affix-
|
|
45
|
+
//# sourceMappingURL=field-affix-C5w3NK4H.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-affix-
|
|
1
|
+
{"version":3,"file":"field-affix-C5w3NK4H.js","names":[],"sources":["../src/components/field/field-affix.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\nimport { Slot } from '@radix-ui/react-slot';\n\nexport type FieldAffixesProps = MergeRight<\n AsChildProps & Omit<HTMLAttributes<HTMLDivElement>, 'prefix'>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\n/**\n * FieldAffixes component, used to wrap a form field.\n *\n * @example\n * <FieldAffixes>\n * <FieldAffix>+47</FieldAffix>\n * <Input />\n * <FieldAffix>kr</FieldAffix>\n * </FieldAffixes>\n */\nexport const FieldAffixes = ({ className, asChild, ref, ...rest }: FieldAffixesProps) => {\n const Component = asChild ? Slot : 'div';\n return <Component className={clsx('bi-field--affixes', className)} ref={ref} {...rest} />;\n};\n\nexport type FieldAffixProps = MergeRight<\n AsChildProps & Omit<HTMLAttributes<HTMLSpanElement>, 'prefix'>,\n {\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\n/**\n * FieldAffix component, used to display prefix/suffix for a form field.\n * Use inside the `FieldAffixes` component.\n *\n * @example\n * <FieldAffixes>\n * <FieldAffix>+47</FieldAffix>\n * <Input />\n * <FieldAffix>kr</FieldAffix>\n * </FieldAffixes>\n */\nexport const FieldAffix = ({ className, asChild, ref, ...rest }: FieldAffixProps) => {\n const Component = asChild ? Slot : 'span';\n return <Component className={clsx('bi-field--affix', className)} aria-hidden='true' ref={ref} {...rest} />;\n};\n"],"mappings":";;;;;;;;;;;;;;;AAuBA,MAAa,gBAAgB,EAAE,WAAW,SAAS,IAAK,GAAG,WAA8B;AAEvF,QAAO,oBADW,UAAU,OAAO;EACjB,WAAW,KAAK,qBAAqB,UAAU;EAAO;EAAK,GAAI;GAAQ;;;;;;;;;;;;;AAqB3F,MAAa,cAAc,EAAE,WAAW,SAAS,IAAK,GAAG,WAA4B;AAEnF,QAAO,oBADW,UAAU,OAAO;EACjB,WAAW,KAAK,mBAAmB,UAAU;EAAE,eAAY;EAAY;EAAK,GAAI;GAAQ"}
|
|
@@ -4,8 +4,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/field/field-description.tsx
|
|
6
6
|
const FieldDescription = ({ asChild, className, ref,...props }) => {
|
|
7
|
-
|
|
8
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
7
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "div", {
|
|
9
8
|
className: clsx("bi-field--description", className),
|
|
10
9
|
ref,
|
|
11
10
|
...props
|
|
@@ -14,4 +13,4 @@ const FieldDescription = ({ asChild, className, ref,...props }) => {
|
|
|
14
13
|
|
|
15
14
|
//#endregion
|
|
16
15
|
export { FieldDescription };
|
|
17
|
-
//# sourceMappingURL=field-description-
|
|
16
|
+
//# sourceMappingURL=field-description-Yya33j8H.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-description-
|
|
1
|
+
{"version":3,"file":"field-description-Yya33j8H.js","names":[],"sources":["../src/components/field/field-description.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type FieldDescriptionProps = MergeRight<\n AsChildProps & HTMLAttributes<HTMLDivElement>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const FieldDescription = ({ asChild, className, ref, ...props }: FieldDescriptionProps) => {\n const Component = asChild ? Slot : 'div';\n\n return <Component className={clsx('bi-field--description', className)} ref={ref} {...props} />;\n};\n"],"mappings":";;;;;AAaA,MAAa,oBAAoB,EAAE,SAAS,WAAW,IAAK,GAAG,YAAmC;AAGhG,QAAO,oBAFW,UAAU,OAAO;EAEjB,WAAW,KAAK,yBAAyB,UAAU;EAAO;EAAK,GAAI;GAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldset-Bpu4CRKG.js","names":[],"sources":["../src/components/fieldset/fieldset.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { FieldsetHTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type FieldsetProps = MergeRight<\n DefaultProps & FieldsetHTMLAttributes<HTMLFieldSetElement>,\n {\n ref?: Ref<HTMLFieldSetElement>;\n }\n>;\n\nexport const Fieldset = ({ children, className, dark, ref, ...props }: FieldsetProps) => {\n return (\n <fieldset className={clsx('bi-fieldset', className)} data-dark={dark} ref={ref} {...props}>\n {children}\n </fieldset>\n );\n};\n"],"mappings":";;;;AAYA,MAAa,
|
|
1
|
+
{"version":3,"file":"fieldset-Bpu4CRKG.js","names":[],"sources":["../src/components/fieldset/fieldset.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { FieldsetHTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type FieldsetProps = MergeRight<\n DefaultProps & FieldsetHTMLAttributes<HTMLFieldSetElement>,\n {\n ref?: Ref<HTMLFieldSetElement>;\n }\n>;\n\nexport const Fieldset = ({ children, className, dark, ref, ...props }: FieldsetProps) => {\n return (\n <fieldset className={clsx('bi-fieldset', className)} data-dark={dark} ref={ref} {...props}>\n {children}\n </fieldset>\n );\n};\n"],"mappings":";;;;AAYA,MAAa,YAAY,EAAE,UAAU,WAAW,MAAM,IAAK,GAAG,YAA2B;AACvF,QACE,oBAAC;EAAS,WAAW,KAAK,eAAe,UAAU;EAAE,aAAW;EAAW;EAAK,GAAI;EACjF;GACQ"}
|
|
@@ -3,8 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/fieldset/fieldset-description.tsx
|
|
5
5
|
const FieldsetDescription = ({ asChild, ref,...props }) => {
|
|
6
|
-
|
|
7
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
6
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "p", {
|
|
8
7
|
ref,
|
|
9
8
|
...props
|
|
10
9
|
});
|
|
@@ -12,4 +11,4 @@ const FieldsetDescription = ({ asChild, ref,...props }) => {
|
|
|
12
11
|
|
|
13
12
|
//#endregion
|
|
14
13
|
export { FieldsetDescription };
|
|
15
|
-
//# sourceMappingURL=fieldset-description-
|
|
14
|
+
//# sourceMappingURL=fieldset-description-Dbu9_oUQ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldset-description-
|
|
1
|
+
{"version":3,"file":"fieldset-description-Dbu9_oUQ.js","names":[],"sources":["../src/components/fieldset/fieldset-description.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type FieldsetDescriptionProps = MergeRight<\n AsChildProps & HTMLAttributes<HTMLParagraphElement>,\n {\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const FieldsetDescription = ({ asChild, ref, ...props }: FieldsetDescriptionProps) => {\n const Component = asChild ? Slot : 'p';\n\n return <Component ref={ref} {...props} />;\n};\n"],"mappings":";;;;AAYA,MAAa,uBAAuB,EAAE,SAAS,IAAK,GAAG,YAAsC;AAG3F,QAAO,oBAFW,UAAU,OAAO;EAEZ;EAAK,GAAI;GAAS"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Label } from "./label-
|
|
1
|
+
import { Label } from "./label-DG_ojO9g.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/fieldset/fieldset-legend.tsx
|
|
@@ -16,4 +16,4 @@ const FieldsetLegend = ({ children, dark, ref,...props }) => {
|
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
18
|
export { FieldsetLegend };
|
|
19
|
-
//# sourceMappingURL=fieldset-legend-
|
|
19
|
+
//# sourceMappingURL=fieldset-legend-BBKsX2hf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldset-legend-
|
|
1
|
+
{"version":3,"file":"fieldset-legend-BBKsX2hf.js","names":[],"sources":["../src/components/fieldset/fieldset-legend.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport { Label, type LabelProps } from '../label';\n\nexport type FieldsetLegendProps = MergeRight<\n LabelProps & HTMLAttributes<HTMLLegendElement>,\n {\n ref?: Ref<HTMLLegendElement>;\n }\n>;\n\nexport const FieldsetLegend = ({ children, dark, ref, ...props }: FieldsetLegendProps) => {\n return (\n <Label asChild dark={dark}>\n <legend ref={ref} {...props}>\n {children}\n </legend>\n </Label>\n );\n};\n"],"mappings":";;;;AAWA,MAAa,kBAAkB,EAAE,UAAU,MAAM,IAAK,GAAG,YAAiC;AACxF,QACE,oBAAC;EAAM;EAAc;YACnB,oBAAC;GAAY;GAAK,GAAI;GACnB;IACM;GACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-group-Fzw9g6JB.js","names":[],"sources":["../src/components/filter-group/filter-group.tsx"],"sourcesContent":["import { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport clsx from 'clsx';\nimport { type Ref, useId, type HtmlHTMLAttributes, type ReactNode } from 'react';\nimport type { AsChildProps, DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { ChevronDownIcon, ChevronUpIcon } from '@bi-digital/icons';\n\nexport type FilterGroupProps = MergeRight<\n DefaultProps & AsChildProps & HtmlHTMLAttributes<HTMLDivElement>,\n {\n /** Icon displayed in the filter group */\n icon: ReactNode;\n /** Label of the filter group */\n label: ReactNode;\n /** Default open state of the filter group, should not be used together with `open` */\n defaultOpen?: boolean;\n /** Control the open state of the filter group */\n open?: boolean;\n /** Callback when the open state changes */\n onOpenChange?: (open: boolean) => void;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const FilterGroup = ({\n dark,\n icon,\n label,\n defaultOpen = false,\n open,\n onOpenChange,\n children,\n className,\n ref,\n ...props\n}: FilterGroupProps) => {\n const filterContentId = useId();\n const [isOpen, setIsOpen] = useControllableState({\n prop: open,\n onChange: onOpenChange,\n defaultProp: defaultOpen,\n caller: 'FilterGroup',\n });\n return (\n <div className={clsx('bi-filter-group', className)} data-dark={dark} data-expanded={isOpen} {...props} ref={ref}>\n <button onClick={() => setIsOpen((prev) => !prev)} aria-expanded={isOpen} aria-controls={filterContentId}>\n {icon}\n <h3>{label}</h3>\n {isOpen ? <ChevronUpIcon /> : <ChevronDownIcon />}\n </button>\n <div id={filterContentId}>{children}</div>\n </div>\n );\n};\n"],"mappings":";;;;;;;AAwBA,MAAa,
|
|
1
|
+
{"version":3,"file":"filter-group-Fzw9g6JB.js","names":[],"sources":["../src/components/filter-group/filter-group.tsx"],"sourcesContent":["import { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport clsx from 'clsx';\nimport { type Ref, useId, type HtmlHTMLAttributes, type ReactNode } from 'react';\nimport type { AsChildProps, DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { ChevronDownIcon, ChevronUpIcon } from '@bi-digital/icons';\n\nexport type FilterGroupProps = MergeRight<\n DefaultProps & AsChildProps & HtmlHTMLAttributes<HTMLDivElement>,\n {\n /** Icon displayed in the filter group */\n icon: ReactNode;\n /** Label of the filter group */\n label: ReactNode;\n /** Default open state of the filter group, should not be used together with `open` */\n defaultOpen?: boolean;\n /** Control the open state of the filter group */\n open?: boolean;\n /** Callback when the open state changes */\n onOpenChange?: (open: boolean) => void;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const FilterGroup = ({\n dark,\n icon,\n label,\n defaultOpen = false,\n open,\n onOpenChange,\n children,\n className,\n ref,\n ...props\n}: FilterGroupProps) => {\n const filterContentId = useId();\n const [isOpen, setIsOpen] = useControllableState({\n prop: open,\n onChange: onOpenChange,\n defaultProp: defaultOpen,\n caller: 'FilterGroup',\n });\n return (\n <div className={clsx('bi-filter-group', className)} data-dark={dark} data-expanded={isOpen} {...props} ref={ref}>\n <button onClick={() => setIsOpen((prev) => !prev)} aria-expanded={isOpen} aria-controls={filterContentId}>\n {icon}\n <h3>{label}</h3>\n {isOpen ? <ChevronUpIcon /> : <ChevronDownIcon />}\n </button>\n <div id={filterContentId}>{children}</div>\n </div>\n );\n};\n"],"mappings":";;;;;;;AAwBA,MAAa,eAAe,EAC1B,MACA,MACA,OACA,cAAc,OACd,MACA,cACA,UACA,WACA,IACA,GAAG,YACmB;CACtB,MAAM,kBAAkB,OAAO;CAC/B,MAAM,CAAC,QAAQ,aAAa,qBAAqB;EAC/C,MAAM;EACN,UAAU;EACV,aAAa;EACb,QAAQ;EACT,CAAC;AACF,QACE,qBAAC;EAAI,WAAW,KAAK,mBAAmB,UAAU;EAAE,aAAW;EAAM,iBAAe;EAAQ,GAAI;EAAY;aAC1G,qBAAC;GAAO,eAAe,WAAW,SAAS,CAAC,KAAK;GAAE,iBAAe;GAAQ,iBAAe;;IACtF;IACD,oBAAC,kBAAI,QAAW;IACf,SAAS,oBAAC,kBAAgB,GAAG,oBAAC,oBAAkB;;IAC1C,EACT,oBAAC;GAAI,IAAI;GAAkB;IAAe;GACtC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from "./button-
|
|
1
|
+
import { Button } from "./button-BzU7DrNe.js";
|
|
2
2
|
import clsx from "clsx/lite";
|
|
3
3
|
import { FacebookIcon, InstagramIcon, LinkedinIcon, XIcon } from "@bi-digital/icons";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -108,4 +108,4 @@ const Footer = ({ dark, copyRightText = "Handelshøyskolen BI", hideAccreditatio
|
|
|
108
108
|
|
|
109
109
|
//#endregion
|
|
110
110
|
export { Footer };
|
|
111
|
-
//# sourceMappingURL=footer-
|
|
111
|
+
//# sourceMappingURL=footer-C7EDtlw0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer-
|
|
1
|
+
{"version":3,"file":"footer-C7EDtlw0.js","names":[],"sources":["../src/components/footer/footer.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { FacebookIcon, XIcon, LinkedinIcon, InstagramIcon } from '@bi-digital/icons';\nimport { Button } from '../button';\n\nexport type FooterProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * The text to display in the copyright section.\n * @default 'Handelshøyskolen BI'\n */\n copyRightText?: string;\n /**\n * Whether to hide the accreditation icons.\n * @default false\n */\n hideAccreditationIcons?: boolean;\n /**\n * Whether to hide the social media icons.\n * @default false\n */\n hideSocialMediaIcons?: boolean;\n /**\n * Whether to hide the copyright text.\n * @default false\n */\n hideCopyRight?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\nexport const Footer = ({\n dark,\n copyRightText = 'Handelshøyskolen BI',\n hideAccreditationIcons = false,\n hideSocialMediaIcons = false,\n hideCopyRight = false,\n className,\n children,\n ref,\n ...props\n}: FooterProps) => {\n return (\n <footer className={clsx('bi-footer', className)} data-dark={dark} ref={ref} {...props}>\n <div className='bi-footer--links-container'>{children}</div>\n {!hideAccreditationIcons && (\n <div className='bi-footer--accreditations'>\n <a\n aria-label='AACSB-link'\n target='_blank'\n href='https://www.aacsb.edu/accreditation'\n rel='noopener noreferrer'\n >\n <span className='bi-footer--aacsb' />\n </a>\n <a\n aria-label='Equis-link'\n target='_blank'\n href='https://www.efmdglobal.org/accreditations/business-schools/equis/'\n rel='noopener noreferrer'\n >\n <span className='bi-footer--equis' />\n </a>\n <a aria-label='AMBA-link' target='_blank' href='https://www.associationofmbas.com/' rel='noopener noreferrer'>\n <span className='bi-footer--amba' />\n </a>\n </div>\n )}\n {!hideSocialMediaIcons && (\n <div className='bi-footer--socials'>\n <Button size='large' variant='text' icon asChild dark={dark}>\n <a target='_blank' href='https://www.facebook.com/HandelshoyskolenBI/' rel='noopener noreferrer'>\n <FacebookIcon title='BI Facebook' />\n </a>\n </Button>\n <Button size='large' variant='text' icon asChild dark={dark}>\n <a target='_blank' href='https://twitter.com/handelshoyskbi' rel='noopener noreferrer'>\n <XIcon title='BI X' />\n </a>\n </Button>\n <Button size='large' variant='text' icon asChild dark={dark}>\n <a\n target='_blank'\n href='https://www.linkedin.com/school/bi-norwegian-business-school/'\n rel='noopener noreferrer'\n >\n <LinkedinIcon title='BI LinkedIn' />\n </a>\n </Button>\n <Button size='large' variant='text' icon asChild dark={dark}>\n <a target='_blank' href='https://www.instagram.com/binorwegianbusinesschool/' rel='noopener noreferrer'>\n <InstagramIcon title='BI Instagram' />\n </a>\n </Button>\n </div>\n )}\n {!hideCopyRight && <p className='bi-footer--copyright'>{`© ${new Date().getFullYear()} ${copyRightText}`}</p>}\n </footer>\n );\n};\n"],"mappings":";;;;;;AAkCA,MAAa,UAAU,EACrB,MACA,gBAAgB,uBAChB,yBAAyB,OACzB,uBAAuB,OACvB,gBAAgB,OAChB,WACA,UACA,IACA,GAAG,YACc;AACjB,QACE,qBAAC;EAAO,WAAW,KAAK,aAAa,UAAU;EAAE,aAAW;EAAW;EAAK,GAAI;;GAC9E,oBAAC;IAAI,WAAU;IAA8B;KAAe;GAC3D,CAAC,0BACA,qBAAC;IAAI,WAAU;;KACb,oBAAC;MACC,cAAW;MACX,QAAO;MACP,MAAK;MACL,KAAI;gBAEJ,oBAAC,UAAK,WAAU,qBAAqB;OACnC;KACJ,oBAAC;MACC,cAAW;MACX,QAAO;MACP,MAAK;MACL,KAAI;gBAEJ,oBAAC,UAAK,WAAU,qBAAqB;OACnC;KACJ,oBAAC;MAAE,cAAW;MAAY,QAAO;MAAS,MAAK;MAAqC,KAAI;gBACtF,oBAAC,UAAK,WAAU,oBAAoB;OAClC;;KACA;GAEP,CAAC,wBACA,qBAAC;IAAI,WAAU;;KACb,oBAAC;MAAO,MAAK;MAAQ,SAAQ;MAAO;MAAK;MAAc;gBACrD,oBAAC;OAAE,QAAO;OAAS,MAAK;OAA+C,KAAI;iBACzE,oBAAC,gBAAa,OAAM,gBAAgB;QAClC;OACG;KACT,oBAAC;MAAO,MAAK;MAAQ,SAAQ;MAAO;MAAK;MAAc;gBACrD,oBAAC;OAAE,QAAO;OAAS,MAAK;OAAqC,KAAI;iBAC/D,oBAAC,SAAM,OAAM,SAAS;QACpB;OACG;KACT,oBAAC;MAAO,MAAK;MAAQ,SAAQ;MAAO;MAAK;MAAc;gBACrD,oBAAC;OACC,QAAO;OACP,MAAK;OACL,KAAI;iBAEJ,oBAAC,gBAAa,OAAM,gBAAgB;QAClC;OACG;KACT,oBAAC;MAAO,MAAK;MAAQ,SAAQ;MAAO;MAAK;MAAc;gBACrD,oBAAC;OAAE,QAAO;OAAS,MAAK;OAAsD,KAAI;iBAChF,oBAAC,iBAAc,OAAM,iBAAiB;QACpC;OACG;;KACL;GAEP,CAAC,iBAAiB,oBAAC;IAAE,WAAU;cAAwB,sBAAK,IAAI,MAAM,EAAC,aAAa,CAAC,GAAG;KAAoB;;GACtG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"footer-links-BIUrxu38.js","names":[],"sources":["../src/components/footer/footer-links.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\n\nexport type FooterLinksProps = HTMLAttributes<HTMLDivElement> & {\n /**\n * Optional leading text to display before the links.\n */\n leadingText?: string;\n ref?: Ref<HTMLDivElement>;\n};\n\nexport const FooterLinks = ({ leadingText, children, ref, ...props }: FooterLinksProps) => {\n return (\n <div className='bi-footer--links' ref={ref} {...props}>\n {leadingText && <p>{leadingText}:</p>}\n <div>{children}</div>\n </div>\n );\n};\n"],"mappings":";;;AAUA,MAAa,
|
|
1
|
+
{"version":3,"file":"footer-links-BIUrxu38.js","names":[],"sources":["../src/components/footer/footer-links.tsx"],"sourcesContent":["import type { HTMLAttributes, Ref } from 'react';\n\nexport type FooterLinksProps = HTMLAttributes<HTMLDivElement> & {\n /**\n * Optional leading text to display before the links.\n */\n leadingText?: string;\n ref?: Ref<HTMLDivElement>;\n};\n\nexport const FooterLinks = ({ leadingText, children, ref, ...props }: FooterLinksProps) => {\n return (\n <div className='bi-footer--links' ref={ref} {...props}>\n {leadingText && <p>{leadingText}:</p>}\n <div>{children}</div>\n </div>\n );\n};\n"],"mappings":";;;AAUA,MAAa,eAAe,EAAE,aAAa,UAAU,IAAK,GAAG,YAA8B;AACzF,QACE,qBAAC;EAAI,WAAU;EAAwB;EAAK,GAAI;aAC7C,eAAe,qBAAC,kBAAG,aAAY,OAAK,EACrC,oBAAC,SAAK,WAAe;GACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-Dr7BnTyd.js","names":[],"sources":["../src/components/input/input.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { InputHTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type InputProps = MergeRight<\n DefaultProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'type'>,\n {\n /**\n * Size of the input field.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n /**\n * The `input` type\n * @default 'text'\n * */\n type?:\n | 'checkbox'\n | 'color'\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'file'\n | 'hidden'\n | 'month'\n | 'number'\n | 'password'\n | 'radio'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url'\n | 'week';\n /** Set the visible width, in characters, of the `Input` component. */\n visibleWidth?: number;\n /**\n * Disable the element\n * @note Avoid using if possible for accessibility purposes\n */\n disabled?: boolean;\n /** Toggle `readOnly` */\n readOnly?: boolean;\n ref?: Ref<HTMLInputElement>;\n }\n>;\n\nexport const Input = ({\n type = 'text',\n size = 'medium',\n visibleWidth,\n className,\n onChange,\n onClick,\n dark,\n readOnly,\n ref,\n ...props\n}: InputProps) => {\n return (\n <input\n className={clsx('bi-input', className)}\n data-dark={dark}\n data-size={size}\n ref={ref}\n type={type}\n readOnly={readOnly}\n onChange={(event) => readOnly || onChange?.(event)} // Make readonly work for [type=\"checkbox\"]/[type=\"radio\"]\n onClick={(event) => {\n if (readOnly) event.preventDefault(); // Make readonly work for [type=\"checkbox\"]/[type=\"radio\"]\n onClick?.(event);\n }}\n size={visibleWidth}\n {...props}\n />\n );\n};\n"],"mappings":";;;;AAgDA,MAAa,
|
|
1
|
+
{"version":3,"file":"input-Dr7BnTyd.js","names":[],"sources":["../src/components/input/input.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { InputHTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type InputProps = MergeRight<\n DefaultProps & Omit<InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'type'>,\n {\n /**\n * Size of the input field.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n /**\n * The `input` type\n * @default 'text'\n * */\n type?:\n | 'checkbox'\n | 'color'\n | 'date'\n | 'datetime-local'\n | 'email'\n | 'file'\n | 'hidden'\n | 'month'\n | 'number'\n | 'password'\n | 'radio'\n | 'search'\n | 'tel'\n | 'text'\n | 'time'\n | 'url'\n | 'week';\n /** Set the visible width, in characters, of the `Input` component. */\n visibleWidth?: number;\n /**\n * Disable the element\n * @note Avoid using if possible for accessibility purposes\n */\n disabled?: boolean;\n /** Toggle `readOnly` */\n readOnly?: boolean;\n ref?: Ref<HTMLInputElement>;\n }\n>;\n\nexport const Input = ({\n type = 'text',\n size = 'medium',\n visibleWidth,\n className,\n onChange,\n onClick,\n dark,\n readOnly,\n ref,\n ...props\n}: InputProps) => {\n return (\n <input\n className={clsx('bi-input', className)}\n data-dark={dark}\n data-size={size}\n ref={ref}\n type={type}\n readOnly={readOnly}\n onChange={(event) => readOnly || onChange?.(event)} // Make readonly work for [type=\"checkbox\"]/[type=\"radio\"]\n onClick={(event) => {\n if (readOnly) event.preventDefault(); // Make readonly work for [type=\"checkbox\"]/[type=\"radio\"]\n onClick?.(event);\n }}\n size={visibleWidth}\n {...props}\n />\n );\n};\n"],"mappings":";;;;AAgDA,MAAa,SAAS,EACpB,OAAO,QACP,OAAO,UACP,cACA,WACA,UACA,SACA,MACA,UACA,IACA,GAAG,YACa;AAChB,QACE,oBAAC;EACC,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,aAAW;EACN;EACC;EACI;EACV,WAAW,UAAU,YAAY,WAAW,MAAM;EAClD,UAAU,UAAU;AAClB,OAAI,SAAU,OAAM,gBAAgB;AACpC,aAAU,MAAM;;EAElB,MAAM;EACN,GAAI;GACJ"}
|
|
@@ -4,8 +4,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/label/label.tsx
|
|
6
6
|
const Label = ({ className, weight = "semibold", dark, asChild, ref,...props }) => {
|
|
7
|
-
|
|
8
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
7
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "label", {
|
|
9
8
|
ref,
|
|
10
9
|
className: clsx("bi-label", className),
|
|
11
10
|
"data-dark": dark,
|
|
@@ -16,4 +15,4 @@ const Label = ({ className, weight = "semibold", dark, asChild, ref,...props })
|
|
|
16
15
|
|
|
17
16
|
//#endregion
|
|
18
17
|
export { Label };
|
|
19
|
-
//# sourceMappingURL=label-
|
|
18
|
+
//# sourceMappingURL=label-DG_ojO9g.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label-
|
|
1
|
+
{"version":3,"file":"label-DG_ojO9g.js","names":[],"sources":["../src/components/label/label.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx/lite';\nimport type { LabelHTMLAttributes, Ref } from 'react';\nimport type { AsChildProps, DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type LabelProps = MergeRight<\n DefaultProps & AsChildProps & LabelHTMLAttributes<HTMLLabelElement>,\n {\n /**\n * Sets the font weight of the label. Use this when you have a label hierarchy, such as checkboxes/radios in a fieldset\n * @default 'semibold'\n */\n weight?: 'regular' | 'medium' | 'semibold';\n ref?: Ref<HTMLLabelElement>;\n }\n>;\n\nexport const Label = ({ className, weight = 'semibold', dark, asChild, ref, ...props }: LabelProps) => {\n const Component = asChild ? Slot : 'label';\n\n return (\n <Component ref={ref} className={clsx('bi-label', className)} data-dark={dark} data-weight={weight} {...props} />\n );\n};\n"],"mappings":";;;;;AAkBA,MAAa,SAAS,EAAE,WAAW,SAAS,YAAY,MAAM,SAAS,IAAK,GAAG,YAAwB;AAGrG,QACE,oBAHgB,UAAU,OAAO;EAGjB;EAAK,WAAW,KAAK,YAAY,UAAU;EAAE,aAAW;EAAM,eAAa;EAAQ,GAAI;GAAS"}
|
|
@@ -4,8 +4,7 @@ import clsx from "clsx";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/link/link.tsx
|
|
6
6
|
const Link = ({ asChild, className, color, dark, underline, ref,...rest }) => {
|
|
7
|
-
|
|
8
|
-
return /* @__PURE__ */ jsx(Component, {
|
|
7
|
+
return /* @__PURE__ */ jsx(asChild ? Slot : "a", {
|
|
9
8
|
className: clsx("bi-link", className),
|
|
10
9
|
"data-color": color,
|
|
11
10
|
"data-dark": dark,
|
|
@@ -17,4 +16,4 @@ const Link = ({ asChild, className, color, dark, underline, ref,...rest }) => {
|
|
|
17
16
|
|
|
18
17
|
//#endregion
|
|
19
18
|
export { Link };
|
|
20
|
-
//# sourceMappingURL=link-
|
|
19
|
+
//# sourceMappingURL=link-Dmgzb_KP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link-
|
|
1
|
+
{"version":3,"file":"link-Dmgzb_KP.js","names":[],"sources":["../src/components/link/link.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport clsx from 'clsx';\nimport type { AnchorHTMLAttributes, ReactNode, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type LinkProps = MergeRight<\n DefaultProps & AnchorHTMLAttributes<HTMLAnchorElement>,\n {\n /**\n * Set the color of the link.\n * @default 'primary'\n */\n color?: 'primary' | 'neutral';\n /**\n * Control the underline style of the link.\n * - 'always': The link is always underlined.\n * - 'hover': The link is underlined only on hover.\n * @default 'always'\n */\n underline?: 'always' | 'hover';\n children: 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<HTMLAnchorElement>;\n }\n>;\n\nexport const Link = ({ asChild, className, color, dark, underline, ref, ...rest }: LinkProps) => {\n const Component = asChild ? Slot : 'a';\n\n return (\n <Component\n className={clsx('bi-link', className)}\n data-color={color}\n data-dark={dark}\n data-underline={underline}\n ref={ref}\n {...rest}\n />\n );\n};\n"],"mappings":";;;;;AA+BA,MAAa,QAAQ,EAAE,SAAS,WAAW,OAAO,MAAM,WAAW,IAAK,GAAG,WAAsB;AAG/F,QACE,oBAHgB,UAAU,OAAO;EAI/B,WAAW,KAAK,WAAW,UAAU;EACrC,cAAY;EACZ,aAAW;EACX,kBAAgB;EACX;EACL,GAAI;GACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logo-QKrYvRFP.js","names":[],"sources":["../src/components/logo/logo.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type LogoProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLSpanElement>, 'children'>,\n {\n /**\n * Determines if the international logo should be used.\n * @default false\n */\n international?: boolean;\n /**\n * Determines if the logo text should be displayed vertically.\n * Only applies when `international` is `true`.\n * @default false\n */\n vertical?: boolean;\n /**\n * Determines the height of the logo.\n * @default 'medium'\n */\n size?: 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl';\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\nexport const Logo = ({\n dark = false,\n international = false,\n vertical = false,\n size = 'medium',\n className,\n ref,\n ...props\n}: LogoProps) => {\n return (\n <span\n {...props}\n className={clsx('bi-logo', className)}\n data-dark={dark}\n data-international={international}\n data-vertical={vertical}\n data-size={size}\n ref={ref}\n />\n );\n};\n"],"mappings":";;;;AA4BA,MAAa,
|
|
1
|
+
{"version":3,"file":"logo-QKrYvRFP.js","names":[],"sources":["../src/components/logo/logo.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type LogoProps = MergeRight<\n DefaultProps & Omit<HTMLAttributes<HTMLSpanElement>, 'children'>,\n {\n /**\n * Determines if the international logo should be used.\n * @default false\n */\n international?: boolean;\n /**\n * Determines if the logo text should be displayed vertically.\n * Only applies when `international` is `true`.\n * @default false\n */\n vertical?: boolean;\n /**\n * Determines the height of the logo.\n * @default 'medium'\n */\n size?: 'xs' | 'small' | 'medium' | 'large' | 'xl' | 'xxl';\n ref?: Ref<HTMLSpanElement>;\n }\n>;\n\nexport const Logo = ({\n dark = false,\n international = false,\n vertical = false,\n size = 'medium',\n className,\n ref,\n ...props\n}: LogoProps) => {\n return (\n <span\n {...props}\n className={clsx('bi-logo', className)}\n data-dark={dark}\n data-international={international}\n data-vertical={vertical}\n data-size={size}\n ref={ref}\n />\n );\n};\n"],"mappings":";;;;AA4BA,MAAa,QAAQ,EACnB,OAAO,OACP,gBAAgB,OAChB,WAAW,OACX,OAAO,UACP,WACA,IACA,GAAG,YACY;AACf,QACE,oBAAC;EACC,GAAI;EACJ,WAAW,KAAK,WAAW,UAAU;EACrC,aAAW;EACX,sBAAoB;EACpB,iBAAe;EACf,aAAW;EACN;GACL"}
|
package/dist/main.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ import { DropdownItem, DropdownItemProps } from "./dropdown-item-CGg_2cV1.js";
|
|
|
9
9
|
import { DropdownList, DropdownListProps } from "./dropdown-list-D8szW6_q.js";
|
|
10
10
|
import { FooterLinks, FooterLinksProps } from "./footer-links-DlrXiXOi.js";
|
|
11
11
|
import { PaginationItem, PaginationItemProps } from "./pagination-item-wgtqjgnC.js";
|
|
12
|
-
import { StickyHeader, StickyHeaderProps } from "./sticky-header-
|
|
13
|
-
import "./index-
|
|
12
|
+
import { StickyHeader, StickyHeaderProps } from "./sticky-header-BMeHtK7e.js";
|
|
13
|
+
import "./index-Cp46Zvz-.js";
|
|
14
14
|
import { useIsElementAboveViewport } from "./useIsElementAboveViewport-C3qzTbfj.js";
|
|
15
15
|
import { useScrollDirection } from "./useScrollDirection-BmllObvZ.js";
|
|
16
16
|
import { UseMediaQueryOptions, useMediaQuery } from "./useMediaQuery-DYDgFKom.js";
|
package/dist/main.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
import { Alert } from "./alert-C6PxDwHt.js";
|
|
2
|
-
import { AlertFooter } from "./alert-footer-
|
|
2
|
+
import { AlertFooter } from "./alert-footer-DfjvFlBv.js";
|
|
3
3
|
import "./alert-BubQTdmN.js";
|
|
4
4
|
import { Avatar } from "./avatar-6Q2xwviO.js";
|
|
5
5
|
import "./avatar-CCnUOGHD.js";
|
|
6
|
-
import { Badge } from "./badge-
|
|
6
|
+
import { Badge } from "./badge-tKh0f84O.js";
|
|
7
7
|
import "./badge-0qk6AKns.js";
|
|
8
8
|
import { Spinner } from "./spinner-Ch5bEQBR.js";
|
|
9
9
|
import "./spinner-BqbijPkO.js";
|
|
10
|
-
import { Button } from "./button-
|
|
10
|
+
import { Button } from "./button-BzU7DrNe.js";
|
|
11
11
|
import "./button-Mlhn5A3s.js";
|
|
12
|
-
import { Card } from "./card-
|
|
12
|
+
import { Card } from "./card-xvRovR7u.js";
|
|
13
13
|
import { CardActions } from "./card-actions-CIsnmxsm.js";
|
|
14
|
-
import { CardAction } from "./card-action-
|
|
15
|
-
import { CardContent } from "./card-content-
|
|
14
|
+
import { CardAction } from "./card-action-DiyQo6bH.js";
|
|
15
|
+
import { CardContent } from "./card-content-BUc3uxiV.js";
|
|
16
16
|
import { CardHeader } from "./card-header-D-RMd4xS.js";
|
|
17
17
|
import { CardMedia } from "./card-media-DhU2_Ueq.js";
|
|
18
18
|
import { CardDate } from "./card-date-Bd87BGDE.js";
|
|
19
19
|
import "./card-CqLWeJx_.js";
|
|
20
|
-
import { Field } from "./field-
|
|
21
|
-
import { FieldDescription } from "./field-description-
|
|
22
|
-
import { FieldAffix, FieldAffixes } from "./field-affix-
|
|
20
|
+
import { Field } from "./field-Dul9LBgF.js";
|
|
21
|
+
import { FieldDescription } from "./field-description-Yya33j8H.js";
|
|
22
|
+
import { FieldAffix, FieldAffixes } from "./field-affix-C5w3NK4H.js";
|
|
23
23
|
import "./field-rlwGWFvc.js";
|
|
24
24
|
import { Input } from "./input-Dr7BnTyd.js";
|
|
25
25
|
import "./input-B4bnnPvD.js";
|
|
26
|
-
import { Label } from "./label-
|
|
26
|
+
import { Label } from "./label-DG_ojO9g.js";
|
|
27
27
|
import "./label-BQlLxfiz.js";
|
|
28
28
|
import "./useMergeRefs-DC710CHX.js";
|
|
29
|
-
import { Checkbox } from "./checkbox-
|
|
29
|
+
import { Checkbox } from "./checkbox-D04YsX0C.js";
|
|
30
30
|
import { CheckboxSubsection } from "./checkbox-subsection-BPe5aj-W.js";
|
|
31
31
|
import "./checkbox-CKGFJHNX.js";
|
|
32
|
-
import { Chip } from "./chip-
|
|
32
|
+
import { Chip } from "./chip-BXBQ6E1H.js";
|
|
33
33
|
import "./chip-DP9-RTOH.js";
|
|
34
34
|
import { DialogTriggerContext } from "./dialog-trigger-context-51mA5fz3.js";
|
|
35
|
-
import { Dialog } from "./dialog-
|
|
36
|
-
import { DialogContent } from "./dialog-content-
|
|
37
|
-
import { DialogHeader } from "./dialog-header-
|
|
38
|
-
import { DialogFooter } from "./dialog-footer-
|
|
39
|
-
import { DialogTrigger } from "./dialog-trigger-
|
|
40
|
-
import { DialogCloseButton } from "./dialog-close-button-
|
|
35
|
+
import { Dialog } from "./dialog-DLouxw4y.js";
|
|
36
|
+
import { DialogContent } from "./dialog-content-ByDqO6K-.js";
|
|
37
|
+
import { DialogHeader } from "./dialog-header-D3I5Q8fm.js";
|
|
38
|
+
import { DialogFooter } from "./dialog-footer-xGzY5JMf.js";
|
|
39
|
+
import { DialogTrigger } from "./dialog-trigger-BgCUVVqE.js";
|
|
40
|
+
import { DialogCloseButton } from "./dialog-close-button-DNOVMUt7.js";
|
|
41
41
|
import "./dialog-CbLuKrFn.js";
|
|
42
|
-
import { Drawer } from "./drawer-
|
|
43
|
-
import { DrawerContent } from "./drawer-content-
|
|
44
|
-
import { DrawerHeader } from "./drawer-header-
|
|
45
|
-
import { DrawerFooter } from "./drawer-footer
|
|
46
|
-
import { DrawerTrigger } from "./drawer-trigger-
|
|
42
|
+
import { Drawer } from "./drawer-D71b1GFM.js";
|
|
43
|
+
import { DrawerContent } from "./drawer-content-ClBmFSOu.js";
|
|
44
|
+
import { DrawerHeader } from "./drawer-header-CltvXMkH.js";
|
|
45
|
+
import { DrawerFooter } from "./drawer-footer--sVRArFE.js";
|
|
46
|
+
import { DrawerTrigger } from "./drawer-trigger-DFM774gy.js";
|
|
47
47
|
import { DrawerTriggerContext } from "./drawer-trigger-context-BUWPPdas.js";
|
|
48
|
-
import { DrawerCloseButton } from "./drawer-close-button-
|
|
48
|
+
import { DrawerCloseButton } from "./drawer-close-button-DUl-Rv_Q.js";
|
|
49
49
|
import "./drawer-CpPzCsLG.js";
|
|
50
50
|
import { PopoverTriggerContext } from "./popover-trigger-context-Cre9Mczn.js";
|
|
51
|
-
import { Popover } from "./popover-
|
|
52
|
-
import { PopoverTrigger } from "./popover-trigger-
|
|
51
|
+
import { Popover } from "./popover-pki5aMm2.js";
|
|
52
|
+
import { PopoverTrigger } from "./popover-trigger-BoB6rkG4.js";
|
|
53
53
|
import "./popover-B1YgrDNf.js";
|
|
54
|
-
import { Dropdown } from "./dropdown-
|
|
55
|
-
import { DropdownButton } from "./dropdown-button-
|
|
54
|
+
import { Dropdown } from "./dropdown-D6CTkQ5a.js";
|
|
55
|
+
import { DropdownButton } from "./dropdown-button-CywUProG.js";
|
|
56
56
|
import { DropdownItem } from "./dropdown-item-DQQXQC4J.js";
|
|
57
57
|
import { DropdownList } from "./dropdown-list-DB1mST67.js";
|
|
58
|
-
import { DropdownTrigger } from "./dropdown-trigger-
|
|
58
|
+
import { DropdownTrigger } from "./dropdown-trigger-C_CyL38J.js";
|
|
59
59
|
import { DropdownTriggerContext } from "./dropdown-trigger-context-BCcyoZEx.js";
|
|
60
60
|
import "./dropdown-DHACQ2Vu.js";
|
|
61
61
|
import { Fieldset } from "./fieldset-Bpu4CRKG.js";
|
|
62
|
-
import { FieldsetDescription } from "./fieldset-description-
|
|
63
|
-
import { FieldsetLegend } from "./fieldset-legend-
|
|
62
|
+
import { FieldsetDescription } from "./fieldset-description-Dbu9_oUQ.js";
|
|
63
|
+
import { FieldsetLegend } from "./fieldset-legend-BBKsX2hf.js";
|
|
64
64
|
import "./fieldset-CKQ2RG9n.js";
|
|
65
65
|
import { FilterGroup } from "./filter-group-Fzw9g6JB.js";
|
|
66
66
|
import "./filter-group-DfuKXzU3.js";
|
|
67
|
-
import { Footer } from "./footer-
|
|
67
|
+
import { Footer } from "./footer-C7EDtlw0.js";
|
|
68
68
|
import { FooterLinks } from "./footer-links-BIUrxu38.js";
|
|
69
69
|
import "./footer-C8UL4KnN.js";
|
|
70
|
-
import { Link } from "./link-
|
|
70
|
+
import { Link } from "./link-Dmgzb_KP.js";
|
|
71
71
|
import "./link-BtBX-WfP.js";
|
|
72
72
|
import { Logo } from "./logo-QKrYvRFP.js";
|
|
73
73
|
import "./logo-Bj2kMgOD.js";
|
|
@@ -82,33 +82,33 @@ import "./hooks-DLlERz_p.js";
|
|
|
82
82
|
import { SubNavbar } from "./sub-navbar-DkxQv0WJ.js";
|
|
83
83
|
import "./navbar-CQKFBrJr.js";
|
|
84
84
|
import { Pagination } from "./pagination-DH6vZYMO.js";
|
|
85
|
-
import { PaginationButton } from "./pagination-button-
|
|
86
|
-
import { PaginationItem } from "./pagination-item-
|
|
85
|
+
import { PaginationButton } from "./pagination-button-Dw341heB.js";
|
|
86
|
+
import { PaginationItem } from "./pagination-item-wXC7T4rH.js";
|
|
87
87
|
import "./pagination-COuMArW_.js";
|
|
88
|
-
import { Radio } from "./radio-
|
|
88
|
+
import { Radio } from "./radio-CDZoe1OO.js";
|
|
89
89
|
import "./radio-rO-tWKD5.js";
|
|
90
|
-
import { Search } from "./search-
|
|
90
|
+
import { Search } from "./search-CmU2iA48.js";
|
|
91
91
|
import "./search-Djix7Xme.js";
|
|
92
92
|
import { Select } from "./select-R87VdG5U.js";
|
|
93
|
-
import { SelectOption } from "./select-option-
|
|
94
|
-
import { SelectOptgroup } from "./select-optgroup-
|
|
93
|
+
import { SelectOption } from "./select-option-BFmgqY3h.js";
|
|
94
|
+
import { SelectOptgroup } from "./select-optgroup-DTnIUQEq.js";
|
|
95
95
|
import "./select-DcvVj8YT.js";
|
|
96
|
-
import { ValidationMessage } from "./validation-message-
|
|
96
|
+
import { ValidationMessage } from "./validation-message-J5bvdg8v.js";
|
|
97
97
|
import "./validation-message-DHR3NN8N.js";
|
|
98
|
-
import { Selectfield } from "./selectfield-
|
|
98
|
+
import { Selectfield } from "./selectfield-CZ37jU-y.js";
|
|
99
99
|
import "./selectfield-DtSsNu0C.js";
|
|
100
|
-
import { SkipLink } from "./skip-link-
|
|
100
|
+
import { SkipLink } from "./skip-link-iWhLptx_.js";
|
|
101
101
|
import "./skip-link-DHDiOrN_.js";
|
|
102
|
-
import { StickyHeader } from "./sticky-header-
|
|
102
|
+
import { StickyHeader } from "./sticky-header-DOQD4Wye.js";
|
|
103
103
|
import "./sticky-header-DKlpc3Eq.js";
|
|
104
104
|
import { Tabs } from "./tabs-C70z_5SJ.js";
|
|
105
|
-
import { Tab } from "./tab-
|
|
105
|
+
import { Tab } from "./tab-BEnC2rri.js";
|
|
106
106
|
import { TabsList } from "./tabs-list-npvK06bl.js";
|
|
107
107
|
import { TabsPanel } from "./tabs-panel-L8HovooI.js";
|
|
108
108
|
import "./tabs-CRLePQH9.js";
|
|
109
109
|
import { Textarea } from "./textarea-B1fAOfkt.js";
|
|
110
110
|
import "./textarea-cP6IV0Lb.js";
|
|
111
|
-
import { Textfield } from "./textfield-
|
|
111
|
+
import { Textfield } from "./textfield-BH0g7AtT.js";
|
|
112
112
|
import "./textfield-s5xGjX-B.js";
|
|
113
113
|
import "./components-CouSGV6e.js";
|
|
114
114
|
import "./utilities-DanMK0XE.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar-Dxv7GQO0.js","names":[],"sources":["../src/components/navbar/navbar.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport { Logo } from '../logo';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type NavbarProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * Skip link.\n */\n skipLink?: ReactNode;\n /**\n * Determines if the navbar should be fixed.\n * @default false\n */\n fixed?: boolean;\n /**\n * Aria label for the home link.\n */\n homeAriaLabel: string;\n /**\n * Href for the home link.\n */\n homeHref: string;\n /**\n * Override the default logo\n */\n logo?: ReactNode;\n ref?: Ref<HTMLElement>;\n }\n>;\n\nexport const Navbar = ({\n dark = false,\n fixed = false,\n homeAriaLabel,\n skipLink,\n homeHref,\n logo,\n children,\n className,\n ref,\n ...props\n}: NavbarProps) => {\n return (\n <nav {...props} className={clsx('bi-navbar', className)} data-fixed={fixed} data-dark={dark} ref={ref}>\n {skipLink}\n <header>\n <a aria-label={homeAriaLabel} href={homeHref}>\n {logo || <Logo dark={dark} />}\n </a>\n {children}\n </header>\n </nav>\n );\n};\n"],"mappings":";;;;;AAkCA,MAAa,
|
|
1
|
+
{"version":3,"file":"navbar-Dxv7GQO0.js","names":[],"sources":["../src/components/navbar/navbar.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, ReactNode, Ref } from 'react';\nimport { Logo } from '../logo';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type NavbarProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * Skip link.\n */\n skipLink?: ReactNode;\n /**\n * Determines if the navbar should be fixed.\n * @default false\n */\n fixed?: boolean;\n /**\n * Aria label for the home link.\n */\n homeAriaLabel: string;\n /**\n * Href for the home link.\n */\n homeHref: string;\n /**\n * Override the default logo\n */\n logo?: ReactNode;\n ref?: Ref<HTMLElement>;\n }\n>;\n\nexport const Navbar = ({\n dark = false,\n fixed = false,\n homeAriaLabel,\n skipLink,\n homeHref,\n logo,\n children,\n className,\n ref,\n ...props\n}: NavbarProps) => {\n return (\n <nav {...props} className={clsx('bi-navbar', className)} data-fixed={fixed} data-dark={dark} ref={ref}>\n {skipLink}\n <header>\n <a aria-label={homeAriaLabel} href={homeHref}>\n {logo || <Logo dark={dark} />}\n </a>\n {children}\n </header>\n </nav>\n );\n};\n"],"mappings":";;;;;AAkCA,MAAa,UAAU,EACrB,OAAO,OACP,QAAQ,OACR,eACA,UACA,UACA,MACA,UACA,WACA,IACA,GAAG,YACc;AACjB,QACE,qBAAC;EAAI,GAAI;EAAO,WAAW,KAAK,aAAa,UAAU;EAAE,cAAY;EAAO,aAAW;EAAW;aAC/F,UACD,qBAAC,uBACC,oBAAC;GAAE,cAAY;GAAe,MAAM;aACjC,QAAQ,oBAAC,QAAW,OAAQ;IAC3B,EACH,YACM;GACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-DH6vZYMO.js","names":[],"sources":["../src/components/pagination/pagination.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type PaginationProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n ref?: Ref<HTMLUListElement>;\n }\n>;\n\nexport const Pagination = ({ className, dark = false, ref, children, ...props }: PaginationProps) => {\n return (\n <nav className={clsx('bi-pagination', className)} data-dark={dark} ref={ref} {...props}>\n <ul>{children}</ul>\n </nav>\n );\n};\n"],"mappings":";;;;AAYA,MAAa,
|
|
1
|
+
{"version":3,"file":"pagination-DH6vZYMO.js","names":[],"sources":["../src/components/pagination/pagination.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { HTMLAttributes, Ref } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\n\nexport type PaginationProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n ref?: Ref<HTMLUListElement>;\n }\n>;\n\nexport const Pagination = ({ className, dark = false, ref, children, ...props }: PaginationProps) => {\n return (\n <nav className={clsx('bi-pagination', className)} data-dark={dark} ref={ref} {...props}>\n <ul>{children}</ul>\n </nav>\n );\n};\n"],"mappings":";;;;AAYA,MAAa,cAAc,EAAE,WAAW,OAAO,OAAO,KAAK,SAAU,GAAG,YAA6B;AACnG,QACE,oBAAC;EAAI,WAAW,KAAK,iBAAiB,UAAU;EAAE,aAAW;EAAW;EAAK,GAAI;YAC/E,oBAAC,QAAI,WAAc;GACf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button } from "./button-
|
|
1
|
+
import { Button } from "./button-BzU7DrNe.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pagination/pagination-button.tsx
|
|
@@ -11,4 +11,4 @@ const PaginationButton = ({ ref,...rest }) => /* @__PURE__ */ jsx(Button, {
|
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
export { PaginationButton };
|
|
14
|
-
//# sourceMappingURL=pagination-button-
|
|
14
|
+
//# sourceMappingURL=pagination-button-Dw341heB.js.map
|