@bi-digital/react 0.3.5 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{alert-footer-BHrSGdIt.d.ts → alert-footer-BfU5zyfJ.d.ts} +102 -5
- package/dist/components/alert/alert-footer.d.ts +17 -17
- package/dist/components/alert/alert.d.ts +17 -17
- package/dist/components/alert/index.d.ts +17 -17
- package/dist/components/avatar/avatar.d.ts +17 -17
- package/dist/components/avatar/index.d.ts +17 -17
- package/dist/components/badge/badge.d.ts +17 -17
- package/dist/components/badge/index.d.ts +17 -17
- package/dist/components/button/button.d.ts +17 -17
- package/dist/components/button/index.d.ts +17 -17
- package/dist/components/card/card-action.d.ts +17 -17
- package/dist/components/card/card-actions.d.ts +17 -17
- package/dist/components/card/card-content.d.ts +17 -17
- package/dist/components/card/card-date.d.ts +17 -17
- package/dist/components/card/card-header.d.ts +17 -17
- package/dist/components/card/card-media.d.ts +17 -17
- package/dist/components/card/card.d.ts +17 -17
- package/dist/components/card/index.d.ts +17 -17
- package/dist/components/checkbox/checkbox-subsection.d.ts +17 -17
- package/dist/components/checkbox/checkbox.d.ts +17 -17
- package/dist/components/checkbox/index.d.ts +17 -17
- package/dist/components/chip/chip.d.ts +17 -17
- package/dist/components/chip/index.d.ts +17 -17
- package/dist/components/details/details-content.d.ts +18 -0
- package/dist/components/details/details-content.js +3 -0
- package/dist/components/details/details-summary.d.ts +18 -0
- package/dist/components/details/details-summary.js +3 -0
- package/dist/components/details/details.d.ts +18 -0
- package/dist/components/details/details.js +3 -0
- package/dist/components/details/index.d.ts +18 -0
- package/dist/components/details/index.js +6 -0
- package/dist/components/dialog/dialog-close-button.d.ts +17 -17
- package/dist/components/dialog/dialog-close-button.js +1 -1
- package/dist/components/dialog/dialog-content.d.ts +17 -17
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/dialog-footer.d.ts +17 -17
- package/dist/components/dialog/dialog-footer.js +1 -1
- package/dist/components/dialog/dialog-header.d.ts +17 -17
- package/dist/components/dialog/dialog-header.js +1 -1
- package/dist/components/dialog/dialog-trigger-context.d.ts +1 -1
- package/dist/components/dialog/dialog-trigger-context.js +1 -1
- package/dist/components/dialog/dialog-trigger.d.ts +17 -17
- package/dist/components/dialog/dialog-trigger.js +2 -2
- package/dist/components/dialog/dialog.d.ts +17 -17
- package/dist/components/dialog/dialog.js +2 -2
- package/dist/components/dialog/index.d.ts +17 -17
- package/dist/components/dialog/index.js +8 -8
- package/dist/components/drawer/drawer-close-button.d.ts +17 -17
- package/dist/components/drawer/drawer-close-button.js +9 -9
- package/dist/components/drawer/drawer-content.d.ts +17 -17
- package/dist/components/drawer/drawer-content.js +9 -9
- package/dist/components/drawer/drawer-footer.d.ts +17 -17
- package/dist/components/drawer/drawer-footer.js +9 -9
- package/dist/components/drawer/drawer-header.d.ts +17 -17
- package/dist/components/drawer/drawer-header.js +9 -9
- package/dist/components/drawer/drawer-trigger-context.d.ts +1 -1
- package/dist/components/drawer/drawer-trigger-context.js +9 -9
- package/dist/components/drawer/drawer-trigger.d.ts +17 -17
- package/dist/components/drawer/drawer-trigger.js +9 -9
- package/dist/components/drawer/drawer.d.ts +17 -17
- package/dist/components/drawer/drawer.js +9 -9
- package/dist/components/drawer/index.d.ts +17 -17
- package/dist/components/drawer/index.js +16 -16
- package/dist/components/dropdown/dropdown-button.d.ts +17 -17
- package/dist/components/dropdown/dropdown-button.js +1 -1
- package/dist/components/dropdown/dropdown-item.d.ts +1 -1
- package/dist/components/dropdown/dropdown-item.js +1 -1
- package/dist/components/dropdown/dropdown-list.d.ts +1 -1
- package/dist/components/dropdown/dropdown-list.js +1 -1
- package/dist/components/dropdown/dropdown-trigger-context.d.ts +17 -17
- package/dist/components/dropdown/dropdown-trigger-context.js +5 -5
- package/dist/components/dropdown/dropdown-trigger.d.ts +17 -17
- package/dist/components/dropdown/dropdown-trigger.js +5 -5
- package/dist/components/dropdown/dropdown.d.ts +17 -17
- package/dist/components/dropdown/dropdown.js +5 -5
- package/dist/components/dropdown/index.d.ts +17 -17
- package/dist/components/dropdown/index.js +11 -11
- package/dist/components/field/field-affix.d.ts +17 -17
- package/dist/components/field/field-description.d.ts +17 -17
- package/dist/components/field/field.d.ts +17 -17
- package/dist/components/field/index.d.ts +17 -17
- package/dist/components/fieldset/fieldset-description.d.ts +17 -17
- package/dist/components/fieldset/fieldset-description.js +1 -1
- package/dist/components/fieldset/fieldset-legend.d.ts +17 -17
- package/dist/components/fieldset/fieldset-legend.js +1 -1
- package/dist/components/fieldset/fieldset.d.ts +17 -17
- package/dist/components/fieldset/fieldset.js +1 -1
- package/dist/components/fieldset/index.d.ts +17 -17
- package/dist/components/fieldset/index.js +4 -4
- package/dist/components/filter-group/filter-group.d.ts +17 -17
- package/dist/components/filter-group/filter-group.js +1 -1
- package/dist/components/filter-group/index.d.ts +17 -17
- package/dist/components/filter-group/index.js +2 -2
- package/dist/components/footer/footer-links.d.ts +1 -1
- package/dist/components/footer/footer-links.js +1 -1
- package/dist/components/footer/footer.d.ts +17 -17
- package/dist/components/footer/footer.js +1 -1
- package/dist/components/footer/index.d.ts +17 -17
- package/dist/components/footer/index.js +3 -3
- package/dist/components/index.d.ts +18 -18
- package/dist/components/index.js +85 -81
- package/dist/components/input/index.d.ts +17 -17
- package/dist/components/input/input.d.ts +17 -17
- package/dist/components/label/index.d.ts +17 -17
- package/dist/components/label/label.d.ts +17 -17
- package/dist/components/link/index.d.ts +17 -17
- package/dist/components/link/index.js +2 -2
- package/dist/components/link/link.d.ts +17 -17
- package/dist/components/link/link.js +1 -1
- package/dist/components/logo/index.d.ts +17 -17
- package/dist/components/logo/index.js +2 -2
- package/dist/components/logo/logo.d.ts +17 -17
- package/dist/components/logo/logo.js +1 -1
- package/dist/components/navbar/index.d.ts +17 -17
- package/dist/components/navbar/index.js +12 -12
- package/dist/components/navbar/navbar.d.ts +17 -17
- package/dist/components/navbar/navbar.js +3 -3
- package/dist/components/navbar/sub-navbar.d.ts +17 -17
- package/dist/components/navbar/sub-navbar.js +8 -8
- package/dist/components/pagination/index.d.ts +17 -17
- package/dist/components/pagination/index.js +4 -4
- package/dist/components/pagination/pagination-button.d.ts +17 -17
- package/dist/components/pagination/pagination-button.js +1 -1
- package/dist/components/pagination/pagination-item.d.ts +1 -1
- package/dist/components/pagination/pagination-item.js +1 -1
- package/dist/components/pagination/pagination.d.ts +17 -17
- package/dist/components/pagination/pagination.js +1 -1
- package/dist/components/popover/index.d.ts +17 -17
- package/dist/components/popover/index.js +4 -4
- package/dist/components/popover/popover-trigger-context.d.ts +1 -1
- package/dist/components/popover/popover-trigger-context.js +1 -1
- package/dist/components/popover/popover-trigger.d.ts +17 -17
- package/dist/components/popover/popover-trigger.js +2 -2
- package/dist/components/popover/popover.d.ts +17 -17
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/index.d.ts +17 -17
- package/dist/components/radio/index.js +2 -2
- package/dist/components/radio/radio.d.ts +17 -17
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/search/index.d.ts +17 -17
- package/dist/components/search/index.js +2 -2
- package/dist/components/search/search.d.ts +17 -17
- package/dist/components/search/search.js +1 -1
- package/dist/components/select/index.d.ts +17 -17
- package/dist/components/select/index.js +4 -4
- package/dist/components/select/select-optgroup.d.ts +17 -17
- package/dist/components/select/select-optgroup.js +1 -1
- package/dist/components/select/select-option.d.ts +17 -17
- package/dist/components/select/select-option.js +1 -1
- package/dist/components/select/select.d.ts +17 -17
- package/dist/components/select/select.js +1 -1
- package/dist/components/selectfield/index.d.ts +17 -17
- package/dist/components/selectfield/index.js +8 -8
- package/dist/components/selectfield/selectfield.d.ts +17 -17
- package/dist/components/selectfield/selectfield.js +7 -7
- package/dist/components/skip-link/index.d.ts +17 -17
- package/dist/components/skip-link/index.js +2 -2
- package/dist/components/skip-link/skip-link.d.ts +17 -17
- package/dist/components/skip-link/skip-link.js +1 -1
- package/dist/components/spinner/index.d.ts +17 -17
- package/dist/components/spinner/spinner.d.ts +17 -17
- package/dist/components/sticky-header/index.d.ts +2 -2
- package/dist/components/sticky-header/index.js +2 -2
- 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 +17 -17
- package/dist/components/tabs/index.js +5 -5
- package/dist/components/tabs/tab.d.ts +17 -17
- package/dist/components/tabs/tab.js +1 -1
- package/dist/components/tabs/tabs-list.d.ts +17 -17
- package/dist/components/tabs/tabs-list.js +1 -1
- package/dist/components/tabs/tabs-panel.d.ts +17 -17
- package/dist/components/tabs/tabs-panel.js +1 -1
- package/dist/components/tabs/tabs.d.ts +17 -17
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/textarea/index.d.ts +17 -17
- package/dist/components/textarea/index.js +2 -2
- package/dist/components/textarea/textarea.d.ts +17 -17
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/textfield/index.d.ts +17 -17
- package/dist/components/textfield/index.js +6 -6
- package/dist/components/textfield/textfield.d.ts +17 -17
- package/dist/components/textfield/textfield.js +5 -5
- package/dist/components/validation-message/index.d.ts +17 -17
- package/dist/components/validation-message/index.js +2 -2
- package/dist/components/validation-message/validation-message.d.ts +17 -17
- package/dist/components/validation-message/validation-message.js +1 -1
- package/dist/details-D8uz-ejF.js +39 -0
- package/dist/details-D8uz-ejF.js.map +1 -0
- package/dist/details-content-DyBjPa-n.js +22 -0
- package/dist/details-content-DyBjPa-n.js.map +1 -0
- package/dist/details-summary-DcMRpjT9.js +22 -0
- package/dist/details-summary-DcMRpjT9.js.map +1 -0
- package/dist/{dialog-DLouxw4y.js → dialog-BKmFcPdL.js} +2 -2
- package/dist/{dialog-DLouxw4y.js.map → dialog-BKmFcPdL.js.map} +1 -1
- package/dist/{dialog-close-button-DNOVMUt7.js → dialog-close-button-BlnF2w7h.js} +1 -1
- package/dist/{dialog-close-button-DNOVMUt7.js.map → dialog-close-button-BlnF2w7h.js.map} +1 -1
- package/dist/{dialog-content-ByDqO6K-.js → dialog-content-CCRtpkxJ.js} +1 -1
- package/dist/{dialog-content-ByDqO6K-.js.map → dialog-content-CCRtpkxJ.js.map} +1 -1
- package/dist/{dialog-footer-xGzY5JMf.js → dialog-footer-BtOrrpKZ.js} +1 -1
- package/dist/{dialog-footer-xGzY5JMf.js.map → dialog-footer-BtOrrpKZ.js.map} +1 -1
- package/dist/{dialog-header-D3I5Q8fm.js → dialog-header-BCDHRQHP.js} +1 -1
- package/dist/{dialog-header-D3I5Q8fm.js.map → dialog-header-BCDHRQHP.js.map} +1 -1
- package/dist/{dialog-trigger-BgCUVVqE.js → dialog-trigger-Ccn2CTPM.js} +2 -2
- package/dist/{dialog-trigger-BgCUVVqE.js.map → dialog-trigger-Ccn2CTPM.js.map} +1 -1
- package/dist/{dialog-trigger-context-51mA5fz3.js → dialog-trigger-context-B41wR-bM.js} +1 -1
- package/dist/{dialog-trigger-context-51mA5fz3.js.map → dialog-trigger-context-B41wR-bM.js.map} +1 -1
- package/dist/{dialog-trigger-context-ClG9UVsz.d.ts → dialog-trigger-context-B_MK_dPS.d.ts} +3 -3
- package/dist/{drawer-close-button-DUl-Rv_Q.js → drawer-close-button-BRLWTL88.js} +2 -2
- package/dist/{drawer-close-button-DUl-Rv_Q.js.map → drawer-close-button-BRLWTL88.js.map} +1 -1
- package/dist/{drawer-content-ClBmFSOu.js → drawer-content-CCLmuHnA.js} +2 -2
- package/dist/{drawer-content-ClBmFSOu.js.map → drawer-content-CCLmuHnA.js.map} +1 -1
- package/dist/{drawer-D71b1GFM.js → drawer-d5Uiow6D.js} +2 -2
- package/dist/{drawer-D71b1GFM.js.map → drawer-d5Uiow6D.js.map} +1 -1
- package/dist/{drawer-footer--sVRArFE.js → drawer-footer-Dcv1LfaG.js} +2 -2
- package/dist/{drawer-footer--sVRArFE.js.map → drawer-footer-Dcv1LfaG.js.map} +1 -1
- package/dist/{drawer-header-CltvXMkH.js → drawer-header-CcO0S9oA.js} +2 -2
- package/dist/{drawer-header-CltvXMkH.js.map → drawer-header-CcO0S9oA.js.map} +1 -1
- package/dist/{drawer-trigger-DFM774gy.js → drawer-trigger-bgJGCoDO.js} +2 -2
- package/dist/{drawer-trigger-DFM774gy.js.map → drawer-trigger-bgJGCoDO.js.map} +1 -1
- package/dist/{drawer-trigger-context-CNBRwj7l.d.ts → drawer-trigger-context-CtKVp90I.d.ts} +3 -3
- package/dist/{drawer-trigger-context-BUWPPdas.js → drawer-trigger-context-DHYdt3sB.js} +2 -2
- package/dist/{drawer-trigger-context-BUWPPdas.js.map → drawer-trigger-context-DHYdt3sB.js.map} +1 -1
- package/dist/{dropdown-Fzf2CeX4.js → dropdown-DKqrO1uv.js} +2 -2
- package/dist/{dropdown-Fzf2CeX4.js.map → dropdown-DKqrO1uv.js.map} +1 -1
- package/dist/{dropdown-button-CywUProG.js → dropdown-button-B4-z264p.js} +1 -1
- package/dist/{dropdown-button-CywUProG.js.map → dropdown-button-B4-z264p.js.map} +1 -1
- package/dist/{dropdown-item-C2nSQM-4.d.ts → dropdown-item-B7Z0CA1w.d.ts} +3 -3
- package/dist/{dropdown-item-DQQXQC4J.js → dropdown-item-BnnEFIq3.js} +1 -1
- package/dist/{dropdown-item-DQQXQC4J.js.map → dropdown-item-BnnEFIq3.js.map} +1 -1
- package/dist/{dropdown-list-DB1mST67.js → dropdown-list-BWW85rXi.js} +1 -1
- package/dist/{dropdown-list-DB1mST67.js.map → dropdown-list-BWW85rXi.js.map} +1 -1
- package/dist/{dropdown-list-BGpCDv5U.d.ts → dropdown-list-mT0TnFtP.d.ts} +3 -3
- package/dist/{dropdown-D6CTkQ5a.js → dropdown-nbL-onyj.js} +2 -2
- package/dist/{dropdown-D6CTkQ5a.js.map → dropdown-nbL-onyj.js.map} +1 -1
- package/dist/{dropdown-trigger-C_CyL38J.js → dropdown-trigger-D-1jExjx.js} +2 -2
- package/dist/{dropdown-trigger-C_CyL38J.js.map → dropdown-trigger-D-1jExjx.js.map} +1 -1
- package/dist/{dropdown-trigger-context-BCcyoZEx.js → dropdown-trigger-context-BkqjqjhG.js} +2 -2
- package/dist/{dropdown-trigger-context-BCcyoZEx.js.map → dropdown-trigger-context-BkqjqjhG.js.map} +1 -1
- package/dist/{fieldset-Bpu4CRKG.js → fieldset-DGB7cvdz.js} +1 -1
- package/dist/{fieldset-Bpu4CRKG.js.map → fieldset-DGB7cvdz.js.map} +1 -1
- package/dist/{fieldset-description-Dbu9_oUQ.js → fieldset-description-DTGln20C.js} +1 -1
- package/dist/{fieldset-description-Dbu9_oUQ.js.map → fieldset-description-DTGln20C.js.map} +1 -1
- package/dist/{fieldset-legend-BBKsX2hf.js → fieldset-legend-CfDR8p_J.js} +1 -1
- package/dist/{fieldset-legend-BBKsX2hf.js.map → fieldset-legend-CfDR8p_J.js.map} +1 -1
- package/dist/{filter-group-Fzw9g6JB.js → filter-group-WL9CsWUn.js} +1 -1
- package/dist/{filter-group-Fzw9g6JB.js.map → filter-group-WL9CsWUn.js.map} +1 -1
- package/dist/{footer-C7EDtlw0.js → footer-DBpJeaE7.js} +1 -1
- package/dist/{footer-C7EDtlw0.js.map → footer-DBpJeaE7.js.map} +1 -1
- package/dist/{footer-links-4wK1EANv.d.ts → footer-links-DwC8DIcq.d.ts} +3 -3
- package/dist/{footer-links-BIUrxu38.js → footer-links-Dz1UwVuf.js} +1 -1
- package/dist/{footer-links-BIUrxu38.js.map → footer-links-Dz1UwVuf.js.map} +1 -1
- package/dist/{index-DH_DbgNa.d.ts → index-BIb0BPml.d.ts} +1 -1
- package/dist/{index-ByVDkQOU.d.ts → index-C5pwIX2T.d.ts} +1 -1
- package/dist/{index-CG8drCYo.d.ts → index-CjCYMKtV.d.ts} +1 -1
- package/dist/{link-Dmgzb_KP.js → link-BFwfumUp.js} +1 -1
- package/dist/{link-Dmgzb_KP.js.map → link-BFwfumUp.js.map} +1 -1
- package/dist/{logo-QKrYvRFP.js → logo-cfY7Ilvc.js} +1 -1
- package/dist/{logo-QKrYvRFP.js.map → logo-cfY7Ilvc.js.map} +1 -1
- package/dist/main.d.ts +18 -18
- package/dist/main.js +86 -82
- package/dist/{navbar-Dxv7GQO0.js → navbar-DJJMercW.js} +2 -2
- package/dist/{navbar-Dxv7GQO0.js.map → navbar-DJJMercW.js.map} +1 -1
- package/dist/{pagination-DH6vZYMO.js → pagination-DudKyNfl.js} +1 -1
- package/dist/{pagination-DH6vZYMO.js.map → pagination-DudKyNfl.js.map} +1 -1
- package/dist/{pagination-button-Dw341heB.js → pagination-button-CU4PzuxK.js} +1 -1
- package/dist/{pagination-button-Dw341heB.js.map → pagination-button-CU4PzuxK.js.map} +1 -1
- package/dist/{pagination-item-B-EdUfyv.d.ts → pagination-item-C_IbouJc.d.ts} +3 -3
- package/dist/{pagination-item-wXC7T4rH.js → pagination-item-DNfDsZWn.js} +1 -1
- package/dist/{pagination-item-wXC7T4rH.js.map → pagination-item-DNfDsZWn.js.map} +1 -1
- package/dist/{popover-DOMLkRA5.js → popover-CxA8qDdU.js} +1 -1
- package/dist/{popover-DOMLkRA5.js.map → popover-CxA8qDdU.js.map} +1 -1
- package/dist/{popover-pki5aMm2.js → popover-MrMPbttR.js} +3 -3
- package/dist/{popover-pki5aMm2.js.map → popover-MrMPbttR.js.map} +1 -1
- package/dist/{popover-trigger-BoB6rkG4.js → popover-trigger-D5_RrlH1.js} +2 -2
- package/dist/{popover-trigger-BoB6rkG4.js.map → popover-trigger-D5_RrlH1.js.map} +1 -1
- package/dist/{popover-trigger-context-Cre9Mczn.js → popover-trigger-context-D7nOI0FT.js} +1 -1
- package/dist/{popover-trigger-context-Cre9Mczn.js.map → popover-trigger-context-D7nOI0FT.js.map} +1 -1
- package/dist/{popover-trigger-context-DQxqvfS9.d.ts → popover-trigger-context-D98Drt62.d.ts} +3 -3
- package/dist/{radio-CDZoe1OO.js → radio-Cl85eVpp.js} +1 -1
- package/dist/{radio-CDZoe1OO.js.map → radio-Cl85eVpp.js.map} +1 -1
- package/dist/{search-CmU2iA48.js → search-CiUvi72_.js} +1 -1
- package/dist/{search-CmU2iA48.js.map → search-CiUvi72_.js.map} +1 -1
- package/dist/{select-R87VdG5U.js → select-DbN5Q14j.js} +1 -1
- package/dist/{select-R87VdG5U.js.map → select-DbN5Q14j.js.map} +1 -1
- package/dist/{select-optgroup-DTnIUQEq.js → select-optgroup-aG5VGPAT.js} +1 -1
- package/dist/{select-optgroup-DTnIUQEq.js.map → select-optgroup-aG5VGPAT.js.map} +1 -1
- package/dist/{select-option-BFmgqY3h.js → select-option-CN9x5ATv.js} +1 -1
- package/dist/{select-option-BFmgqY3h.js.map → select-option-CN9x5ATv.js.map} +1 -1
- package/dist/{selectfield-CZ37jU-y.js → selectfield-D_WUpp9p.js} +3 -3
- package/dist/{selectfield-CZ37jU-y.js.map → selectfield-D_WUpp9p.js.map} +1 -1
- package/dist/{skip-link-iWhLptx_.js → skip-link-BSrs8rA0.js} +1 -1
- package/dist/{skip-link-iWhLptx_.js.map → skip-link-BSrs8rA0.js.map} +1 -1
- package/dist/{sticky-header-CO6D5l-R.d.ts → sticky-header-BTIgrhPe.d.ts} +3 -3
- package/dist/{sticky-header-DOQD4Wye.js → sticky-header-C54KyN7F.js} +1 -1
- package/dist/{sticky-header-DOQD4Wye.js.map → sticky-header-C54KyN7F.js.map} +1 -1
- package/dist/{sub-navbar-DkxQv0WJ.js → sub-navbar-CtpYH9CP.js} +3 -3
- package/dist/{sub-navbar-DkxQv0WJ.js.map → sub-navbar-CtpYH9CP.js.map} +1 -1
- package/dist/{sub-navbar-DTTytyEQ.js → sub-navbar-hkklQKBv.js} +1 -1
- package/dist/{sub-navbar-DTTytyEQ.js.map → sub-navbar-hkklQKBv.js.map} +1 -1
- package/dist/{tab-BEnC2rri.js → tab-B2DlXQYE.js} +1 -1
- package/dist/{tab-BEnC2rri.js.map → tab-B2DlXQYE.js.map} +1 -1
- package/dist/{tabs-C70z_5SJ.js → tabs-Cet8jr_P.js} +1 -1
- package/dist/{tabs-C70z_5SJ.js.map → tabs-Cet8jr_P.js.map} +1 -1
- package/dist/{tabs-list-npvK06bl.js → tabs-list-BdcW4pqj.js} +1 -1
- package/dist/{tabs-list-npvK06bl.js.map → tabs-list-BdcW4pqj.js.map} +1 -1
- package/dist/{tabs-panel-L8HovooI.js → tabs-panel-DLVzDmVt.js} +1 -1
- package/dist/{tabs-panel-L8HovooI.js.map → tabs-panel-DLVzDmVt.js.map} +1 -1
- package/dist/{textarea-B1fAOfkt.js → textarea-B-aCRt3J.js} +1 -1
- package/dist/{textarea-B1fAOfkt.js.map → textarea-B-aCRt3J.js.map} +1 -1
- package/dist/{textfield-BH0g7AtT.js → textfield-D4YyrSZI.js} +3 -3
- package/dist/{textfield-BH0g7AtT.js.map → textfield-D4YyrSZI.js.map} +1 -1
- package/dist/{types-CtaqzrVi.d.ts → types-DC_g3L-J.d.ts} +1 -1
- package/dist/{types-Bga-EYiy.d.ts → types-LBHl14PF.d.ts} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{useCheckboxGroup-BDH3ewt8.js → useCheckboxGroup-CZ7NF3kT.js} +1 -1
- package/dist/{useCheckboxGroup-BDH3ewt8.js.map → useCheckboxGroup-CZ7NF3kT.js.map} +1 -1
- package/dist/{useCheckboxGroup-D61FVz37.d.ts → useCheckboxGroup-nxlcj9XV.d.ts} +1 -1
- package/dist/{useIsElementAboveViewport-lmdnXDdc.js → useIsElementAboveViewport-DESvUblG.js} +1 -1
- package/dist/{useIsElementAboveViewport-lmdnXDdc.js.map → useIsElementAboveViewport-DESvUblG.js.map} +1 -1
- package/dist/{useIsElementAboveViewport-C3qzTbfj.d.ts → useIsElementAboveViewport-DHjLWtIr.d.ts} +1 -1
- package/dist/{useIsomorphicLayoutEffect-odKYwQAV.js → useIsomorphicLayoutEffect-ChcL7oKz.js} +1 -1
- package/dist/{useIsomorphicLayoutEffect-odKYwQAV.js.map → useIsomorphicLayoutEffect-ChcL7oKz.js.map} +1 -1
- package/dist/{useIsomorphicLayoutEffect-DYtMRdO-.d.ts → useIsomorphicLayoutEffect-xBMCbFbr.d.ts} +1 -1
- package/dist/{useMediaQuery-DYDgFKom.d.ts → useMediaQuery-Bg5u2Z9G.d.ts} +1 -1
- package/dist/{useMediaQuery-ICPWsO_p.js → useMediaQuery-DS4pcarq.js} +2 -2
- package/dist/{useMediaQuery-ICPWsO_p.js.map → useMediaQuery-DS4pcarq.js.map} +1 -1
- package/dist/{usePagination-DQR72JNE.js → usePagination-BEplBMLC.js} +1 -1
- package/dist/{usePagination-DQR72JNE.js.map → usePagination-BEplBMLC.js.map} +1 -1
- package/dist/{useScrollDirection-BmllObvZ.d.ts → useScrollDirection-D0LV5RmP.d.ts} +1 -1
- package/dist/{useScrollDirection-C2EmQi0U.js → useScrollDirection-DKn8fE9-.js} +1 -1
- package/dist/{useScrollDirection-C2EmQi0U.js.map → useScrollDirection-DKn8fE9-.js.map} +1 -1
- package/dist/utilities/hooks/index.d.ts +17 -17
- package/dist/utilities/hooks/index.js +7 -7
- package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts +1 -1
- package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.js +1 -1
- package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.d.ts +1 -1
- package/dist/utilities/hooks/useIsElementAboveViewport/useIsElementAboveViewport.js +1 -1
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +1 -1
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
- package/dist/utilities/hooks/useMediaQuery/useMediaQuery.d.ts +1 -1
- package/dist/utilities/hooks/useMediaQuery/useMediaQuery.js +2 -2
- package/dist/utilities/hooks/usePagination/usePagination.d.ts +17 -17
- package/dist/utilities/hooks/usePagination/usePagination.js +1 -1
- package/dist/utilities/hooks/useScrollDirection/useScrollDirection.d.ts +1 -1
- package/dist/utilities/hooks/useScrollDirection/useScrollDirection.js +1 -1
- package/dist/utilities/index.d.ts +17 -17
- package/dist/utilities/index.js +8 -8
- package/dist/utilities/types.d.ts +1 -1
- package/dist/validation-message-Dj11BwTl.js +1 -0
- package/dist/{validation-message-J5bvdg8v.js → validation-message-pl1_2HbT.js} +1 -1
- package/dist/{validation-message-J5bvdg8v.js.map → validation-message-pl1_2HbT.js.map} +1 -1
- package/dist/vanilla/dropdown/index.d.ts +1 -1
- package/dist/vanilla/dropdown/index.js +2 -2
- package/dist/vanilla/index.d.ts +3 -3
- package/dist/vanilla/index.js +3 -3
- package/dist/vanilla/popover/index.d.ts +1 -1
- package/dist/vanilla/popover/index.js +1 -1
- package/dist/vanilla/sub-navbar/index.d.ts +1 -1
- package/dist/vanilla/sub-navbar/index.js +1 -1
- package/package.json +5 -5
- /package/dist/{components-CouSGV6e.js → components-D2VZuBrK.js} +0 -0
- /package/dist/{dialog-CbLuKrFn.js → details-B_F8rXWh.js} +0 -0
- /package/dist/{drawer-CpPzCsLG.js → dialog-m15tNO2O.js} +0 -0
- /package/dist/{dropdown-DHACQ2Vu.js → drawer-6n_eq15R.js} +0 -0
- /package/dist/{fieldset-CKQ2RG9n.js → dropdown-B88s2XAv.js} +0 -0
- /package/dist/{filter-group-DfuKXzU3.js → fieldset-ByZDMcNs.js} +0 -0
- /package/dist/{footer-C8UL4KnN.js → filter-group-CvD-w5Xg.js} +0 -0
- /package/dist/{hooks-DLlERz_p.js → footer-B51ywWXT.js} +0 -0
- /package/dist/{link-BtBX-WfP.js → hooks-BStARsE3.js} +0 -0
- /package/dist/{index-Cp46Zvz-.d.ts → index-Cyx9R6nl.d.ts} +0 -0
- /package/dist/{logo-Bj2kMgOD.js → link-QJsXjipD.js} +0 -0
- /package/dist/{navbar-CQKFBrJr.js → logo-fuYZqZ1-.js} +0 -0
- /package/dist/{pagination-COuMArW_.js → navbar-CnaWOxB3.js} +0 -0
- /package/dist/{popover-B1YgrDNf.js → pagination-B-t2iH17.js} +0 -0
- /package/dist/{radio-rO-tWKD5.js → popover-CuHhhE_D.js} +0 -0
- /package/dist/{search-Djix7Xme.js → radio-Bx9cQiSW.js} +0 -0
- /package/dist/{select-DcvVj8YT.js → search-uOCYqlgj.js} +0 -0
- /package/dist/{selectfield-DtSsNu0C.js → select-BUxlj2ug.js} +0 -0
- /package/dist/{skip-link-DHDiOrN_.js → selectfield-gCbIv57s.js} +0 -0
- /package/dist/{sticky-header-DKlpc3Eq.js → skip-link-C91Ibx05.js} +0 -0
- /package/dist/{tabs-CRLePQH9.js → sticky-header-B0fchRlV.js} +0 -0
- /package/dist/{textarea-cP6IV0Lb.js → tabs-C0rMearl.js} +0 -0
- /package/dist/{textfield-s5xGjX-B.js → textarea-CzSm4-iX.js} +0 -0
- /package/dist/{utilities-DanMK0XE.js → textfield-BjQNezK7.js} +0 -0
- /package/dist/{validation-message-DHR3NN8N.js → utilities-CPmeERR2.js} +0 -0
package/dist/main.js
CHANGED
|
@@ -31,86 +31,90 @@ import { CheckboxSubsection } from "./checkbox-subsection-BPe5aj-W.js";
|
|
|
31
31
|
import "./checkbox-CKGFJHNX.js";
|
|
32
32
|
import { Chip } from "./chip-BXBQ6E1H.js";
|
|
33
33
|
import "./chip-DP9-RTOH.js";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import "./dialog-
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import "./drawer-
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import "./
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import "./dropdown-
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import "./
|
|
65
|
-
import {
|
|
66
|
-
import "./
|
|
67
|
-
import {
|
|
68
|
-
import
|
|
69
|
-
import "./
|
|
70
|
-
import
|
|
71
|
-
import "./
|
|
72
|
-
import {
|
|
73
|
-
import "./
|
|
74
|
-
import {
|
|
75
|
-
import
|
|
76
|
-
import {
|
|
77
|
-
import
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import "./
|
|
82
|
-
import {
|
|
83
|
-
import "./
|
|
84
|
-
import {
|
|
85
|
-
import
|
|
86
|
-
import {
|
|
87
|
-
import "./
|
|
88
|
-
import {
|
|
89
|
-
import "./
|
|
90
|
-
import {
|
|
91
|
-
import "./
|
|
92
|
-
import {
|
|
93
|
-
import
|
|
94
|
-
import {
|
|
95
|
-
import "./
|
|
96
|
-
import {
|
|
97
|
-
import "./
|
|
98
|
-
import {
|
|
99
|
-
import "./
|
|
100
|
-
import {
|
|
101
|
-
import "./
|
|
102
|
-
import {
|
|
103
|
-
import "./
|
|
104
|
-
import {
|
|
105
|
-
import
|
|
106
|
-
import {
|
|
107
|
-
import
|
|
108
|
-
import "./tabs-
|
|
109
|
-
import {
|
|
110
|
-
import "./
|
|
111
|
-
import {
|
|
112
|
-
import "./
|
|
113
|
-
import "./
|
|
114
|
-
import "./
|
|
34
|
+
import { Details } from "./details-D8uz-ejF.js";
|
|
35
|
+
import { DetailsContent } from "./details-content-DyBjPa-n.js";
|
|
36
|
+
import { DetailsSummary } from "./details-summary-DcMRpjT9.js";
|
|
37
|
+
import "./details-B_F8rXWh.js";
|
|
38
|
+
import { DialogTriggerContext } from "./dialog-trigger-context-B41wR-bM.js";
|
|
39
|
+
import { Dialog } from "./dialog-BKmFcPdL.js";
|
|
40
|
+
import { DialogContent } from "./dialog-content-CCRtpkxJ.js";
|
|
41
|
+
import { DialogHeader } from "./dialog-header-BCDHRQHP.js";
|
|
42
|
+
import { DialogFooter } from "./dialog-footer-BtOrrpKZ.js";
|
|
43
|
+
import { DialogTrigger } from "./dialog-trigger-Ccn2CTPM.js";
|
|
44
|
+
import { DialogCloseButton } from "./dialog-close-button-BlnF2w7h.js";
|
|
45
|
+
import "./dialog-m15tNO2O.js";
|
|
46
|
+
import { Drawer } from "./drawer-d5Uiow6D.js";
|
|
47
|
+
import { DrawerContent } from "./drawer-content-CCLmuHnA.js";
|
|
48
|
+
import { DrawerHeader } from "./drawer-header-CcO0S9oA.js";
|
|
49
|
+
import { DrawerFooter } from "./drawer-footer-Dcv1LfaG.js";
|
|
50
|
+
import { DrawerTrigger } from "./drawer-trigger-bgJGCoDO.js";
|
|
51
|
+
import { DrawerTriggerContext } from "./drawer-trigger-context-DHYdt3sB.js";
|
|
52
|
+
import { DrawerCloseButton } from "./drawer-close-button-BRLWTL88.js";
|
|
53
|
+
import "./drawer-6n_eq15R.js";
|
|
54
|
+
import { PopoverTriggerContext } from "./popover-trigger-context-D7nOI0FT.js";
|
|
55
|
+
import { Popover } from "./popover-MrMPbttR.js";
|
|
56
|
+
import { PopoverTrigger } from "./popover-trigger-D5_RrlH1.js";
|
|
57
|
+
import "./popover-CuHhhE_D.js";
|
|
58
|
+
import { Dropdown } from "./dropdown-nbL-onyj.js";
|
|
59
|
+
import { DropdownButton } from "./dropdown-button-B4-z264p.js";
|
|
60
|
+
import { DropdownItem } from "./dropdown-item-BnnEFIq3.js";
|
|
61
|
+
import { DropdownList } from "./dropdown-list-BWW85rXi.js";
|
|
62
|
+
import { DropdownTrigger } from "./dropdown-trigger-D-1jExjx.js";
|
|
63
|
+
import { DropdownTriggerContext } from "./dropdown-trigger-context-BkqjqjhG.js";
|
|
64
|
+
import "./dropdown-B88s2XAv.js";
|
|
65
|
+
import { Fieldset } from "./fieldset-DGB7cvdz.js";
|
|
66
|
+
import { FieldsetDescription } from "./fieldset-description-DTGln20C.js";
|
|
67
|
+
import { FieldsetLegend } from "./fieldset-legend-CfDR8p_J.js";
|
|
68
|
+
import "./fieldset-ByZDMcNs.js";
|
|
69
|
+
import { FilterGroup } from "./filter-group-WL9CsWUn.js";
|
|
70
|
+
import "./filter-group-CvD-w5Xg.js";
|
|
71
|
+
import { Footer } from "./footer-DBpJeaE7.js";
|
|
72
|
+
import { FooterLinks } from "./footer-links-Dz1UwVuf.js";
|
|
73
|
+
import "./footer-B51ywWXT.js";
|
|
74
|
+
import { Link } from "./link-BFwfumUp.js";
|
|
75
|
+
import "./link-QJsXjipD.js";
|
|
76
|
+
import { Logo } from "./logo-cfY7Ilvc.js";
|
|
77
|
+
import "./logo-fuYZqZ1-.js";
|
|
78
|
+
import { Navbar } from "./navbar-DJJMercW.js";
|
|
79
|
+
import { useCheckboxGroup } from "./useCheckboxGroup-CZ7NF3kT.js";
|
|
80
|
+
import { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect-ChcL7oKz.js";
|
|
81
|
+
import { usePagination } from "./usePagination-BEplBMLC.js";
|
|
82
|
+
import { useIsElementAboveViewport } from "./useIsElementAboveViewport-DESvUblG.js";
|
|
83
|
+
import { useScrollDirection } from "./useScrollDirection-DKn8fE9-.js";
|
|
84
|
+
import { useMediaQuery } from "./useMediaQuery-DS4pcarq.js";
|
|
85
|
+
import "./hooks-BStARsE3.js";
|
|
86
|
+
import { SubNavbar } from "./sub-navbar-CtpYH9CP.js";
|
|
87
|
+
import "./navbar-CnaWOxB3.js";
|
|
88
|
+
import { Pagination } from "./pagination-DudKyNfl.js";
|
|
89
|
+
import { PaginationButton } from "./pagination-button-CU4PzuxK.js";
|
|
90
|
+
import { PaginationItem } from "./pagination-item-DNfDsZWn.js";
|
|
91
|
+
import "./pagination-B-t2iH17.js";
|
|
92
|
+
import { Radio } from "./radio-Cl85eVpp.js";
|
|
93
|
+
import "./radio-Bx9cQiSW.js";
|
|
94
|
+
import { Search } from "./search-CiUvi72_.js";
|
|
95
|
+
import "./search-uOCYqlgj.js";
|
|
96
|
+
import { Select } from "./select-DbN5Q14j.js";
|
|
97
|
+
import { SelectOption } from "./select-option-CN9x5ATv.js";
|
|
98
|
+
import { SelectOptgroup } from "./select-optgroup-aG5VGPAT.js";
|
|
99
|
+
import "./select-BUxlj2ug.js";
|
|
100
|
+
import { ValidationMessage } from "./validation-message-pl1_2HbT.js";
|
|
101
|
+
import "./validation-message-Dj11BwTl.js";
|
|
102
|
+
import { Selectfield } from "./selectfield-D_WUpp9p.js";
|
|
103
|
+
import "./selectfield-gCbIv57s.js";
|
|
104
|
+
import { SkipLink } from "./skip-link-BSrs8rA0.js";
|
|
105
|
+
import "./skip-link-C91Ibx05.js";
|
|
106
|
+
import { StickyHeader } from "./sticky-header-C54KyN7F.js";
|
|
107
|
+
import "./sticky-header-B0fchRlV.js";
|
|
108
|
+
import { Tabs } from "./tabs-Cet8jr_P.js";
|
|
109
|
+
import { Tab } from "./tab-B2DlXQYE.js";
|
|
110
|
+
import { TabsList } from "./tabs-list-BdcW4pqj.js";
|
|
111
|
+
import { TabsPanel } from "./tabs-panel-DLVzDmVt.js";
|
|
112
|
+
import "./tabs-C0rMearl.js";
|
|
113
|
+
import { Textarea } from "./textarea-B-aCRt3J.js";
|
|
114
|
+
import "./textarea-CzSm4-iX.js";
|
|
115
|
+
import { Textfield } from "./textfield-D4YyrSZI.js";
|
|
116
|
+
import "./textfield-BjQNezK7.js";
|
|
117
|
+
import "./components-D2VZuBrK.js";
|
|
118
|
+
import "./utilities-CPmeERR2.js";
|
|
115
119
|
|
|
116
|
-
export { Alert, AlertFooter, Avatar, Badge, Button, Card, CardAction, CardActions, CardContent, CardDate, CardHeader, CardMedia, Checkbox, CheckboxSubsection, Chip, Dialog, DialogCloseButton, DialogContent, DialogFooter, DialogHeader, DialogTrigger, DialogTriggerContext, Drawer, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, DrawerTrigger, DrawerTriggerContext, Dropdown, DropdownButton, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, Field, FieldAffix, FieldAffixes, FieldDescription, Fieldset, FieldsetDescription, FieldsetLegend, FilterGroup, Footer, FooterLinks, Input, Label, Link, Logo, Navbar, Pagination, PaginationButton, PaginationItem, Popover, PopoverTrigger, PopoverTriggerContext, Radio, Search, Select, SelectOptgroup, SelectOption, Selectfield, SkipLink, Spinner, StickyHeader, SubNavbar, Tab, Tabs, TabsList, TabsPanel, Textarea, Textfield, ValidationMessage, useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
|
|
120
|
+
export { Alert, AlertFooter, Avatar, Badge, Button, Card, CardAction, CardActions, CardContent, CardDate, CardHeader, CardMedia, Checkbox, CheckboxSubsection, Chip, Details, DetailsContent, DetailsSummary, Dialog, DialogCloseButton, DialogContent, DialogFooter, DialogHeader, DialogTrigger, DialogTriggerContext, Drawer, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, DrawerTrigger, DrawerTriggerContext, Dropdown, DropdownButton, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, Field, FieldAffix, FieldAffixes, FieldDescription, Fieldset, FieldsetDescription, FieldsetLegend, FilterGroup, Footer, FooterLinks, Input, Label, Link, Logo, Navbar, Pagination, PaginationButton, PaginationItem, Popover, PopoverTrigger, PopoverTriggerContext, Radio, Search, Select, SelectOptgroup, SelectOption, Selectfield, SkipLink, Spinner, StickyHeader, SubNavbar, Tab, Tabs, TabsList, TabsPanel, Textarea, Textfield, ValidationMessage, useCheckboxGroup, useIsElementAboveViewport, useIsomorphicLayoutEffect, useMediaQuery, usePagination, useScrollDirection };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Logo } from "./logo-
|
|
1
|
+
import { Logo } from "./logo-cfY7Ilvc.js";
|
|
2
2
|
import clsx from "clsx/lite";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -20,4 +20,4 @@ const Navbar = ({ dark = false, fixed = false, homeAriaLabel, skipLink, homeHref
|
|
|
20
20
|
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Navbar };
|
|
23
|
-
//# sourceMappingURL=navbar-
|
|
23
|
+
//# sourceMappingURL=navbar-DJJMercW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navbar-
|
|
1
|
+
{"version":3,"file":"navbar-DJJMercW.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-
|
|
1
|
+
{"version":3,"file":"pagination-DudKyNfl.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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-button-
|
|
1
|
+
{"version":3,"file":"pagination-button-CU4PzuxK.js","names":[],"sources":["../src/components/pagination/pagination-button.tsx"],"sourcesContent":["import { AriaAttributes } from 'react';\nimport { Button, type ButtonProps } from '../button';\n\nexport type PaginationButtonProps = ButtonProps & {\n /**\n * Toggle button as active\n * @default false\n */\n 'aria-current'?: AriaAttributes['aria-current'];\n};\n\nexport const PaginationButton = ({ ref, ...rest }: PaginationButtonProps) => (\n <Button variant='text' icon ref={ref} {...rest} />\n);\n"],"mappings":";;;;AAWA,MAAa,oBAAoB,EAAE,IAAK,GAAG,WACzC,oBAAC;CAAO,SAAQ;CAAO;CAAU;CAAK,GAAI;EAAQ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime54 from "react/jsx-runtime";
|
|
2
2
|
import { HTMLAttributes, Ref } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pagination/pagination-item.d.ts
|
|
@@ -15,7 +15,7 @@ declare const PaginationItem: ({
|
|
|
15
15
|
asChild,
|
|
16
16
|
children,
|
|
17
17
|
...rest
|
|
18
|
-
}: PaginationItemProps) =>
|
|
18
|
+
}: PaginationItemProps) => react_jsx_runtime54.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { PaginationItem, PaginationItemProps };
|
|
21
|
-
//# sourceMappingURL=pagination-item-
|
|
21
|
+
//# sourceMappingURL=pagination-item-C_IbouJc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-item-
|
|
1
|
+
{"version":3,"file":"pagination-item-DNfDsZWn.js","names":[],"sources":["../src/components/pagination/pagination-item.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport { HTMLAttributes, Ref } from 'react';\n\nexport type PaginationItemProps = HTMLAttributes<HTMLLIElement> & {\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<HTMLLIElement>;\n};\n\nexport const PaginationItem = ({ ref, asChild, children, ...rest }: PaginationItemProps) => {\n const Component = asChild ? Slot : 'li';\n return (\n <Component ref={ref} {...rest}>\n {children}\n </Component>\n );\n};\n"],"mappings":";;;;AAYA,MAAa,kBAAkB,EAAE,KAAK,SAAS,SAAU,GAAG,WAAgC;AAE1F,QACE,oBAFgB,UAAU,OAAO;EAEjB;EAAK,GAAI;EACtB;GACS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover-
|
|
1
|
+
{"version":3,"file":"popover-CxA8qDdU.js","names":["cleanup: (() => void) | undefined"],"sources":["../src/vanilla/popover/index.ts"],"sourcesContent":["import { autoUpdate, computePosition, flip, offset, shift, hide } from '@floating-ui/dom';\nimport type { Middleware, Placement } from '@floating-ui/dom';\n\nexport type InitPopoverOptions = {\n /** The id of the popover to initialize. The trigger element should have a `aria-controls` attribute with the same id. */\n id: string;\n /**\n * Placement of the popover relative to the trigger.\n * @default 'top'\n */\n placement?: Placement;\n /**\n * Additional middleware to use for positioning the popover.\n *\n * @example\n * Prevent the popover 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 popover.\n * @param options - InitPopoverOptions\n * @returns A function to programmatically toggle the popover.\n */\nexport const initPopover = ({\n id,\n disableAutoPlacement = false,\n placement = 'top',\n positionMiddleware = [],\n padding = 20,\n}: InitPopoverOptions) => {\n let cleanup: (() => void) | undefined;\n const popover = document.getElementById(id);\n const triggerSelector = `[aria-controls=\"${id}\"]`;\n const trigger = document.querySelector(triggerSelector);\n\n if (!popover || !trigger) return;\n\n const togglePopover = (open: boolean) => {\n if (open) {\n cleanup = autoUpdate(trigger, popover, () => {\n computePosition(trigger, popover, {\n middleware: [\n offset(padding),\n ...(disableAutoPlacement ? [] : [flip({ padding }), shift({ padding })]),\n ...positionMiddleware,\n hide({ padding }),\n ],\n strategy: 'fixed',\n placement,\n }).then(({ x, y, middlewareData }) => {\n popover.style.translate = `${x}px ${y}px`;\n popover.style.visibility = middlewareData.hide?.referenceHidden ? 'hidden' : 'visible';\n });\n });\n popover.setAttribute('aria-hidden', 'false');\n trigger.setAttribute('aria-expanded', 'true');\n } else {\n cleanup?.();\n popover.setAttribute('aria-hidden', 'true');\n trigger.setAttribute('aria-expanded', 'false');\n }\n };\n\n document.addEventListener(\n 'click',\n (event) => {\n const el = event.target as Element | null;\n const isTrigger = el?.closest?.(triggerSelector);\n const isOutside = !isTrigger && !popover.contains(el as Node);\n const isOpen = popover.getAttribute('aria-hidden') === 'false';\n\n if (isTrigger) {\n togglePopover(!isOpen);\n }\n if (isOutside && isOpen) {\n togglePopover(false);\n }\n },\n true,\n );\n\n return togglePopover;\n};\n"],"mappings":";;;;;;;;AAiDA,MAAa,eAAe,EAC1B,IACA,uBAAuB,OACvB,YAAY,OACZ,qBAAqB,EAAE,EACvB,UAAU,SACc;CACxB,IAAIA;CACJ,MAAM,UAAU,SAAS,eAAe,GAAG;CAC3C,MAAM,kBAAkB,mBAAmB,GAAG;CAC9C,MAAM,UAAU,SAAS,cAAc,gBAAgB;AAEvD,KAAI,CAAC,WAAW,CAAC,QAAS;CAE1B,MAAM,iBAAiB,SAAkB;AACvC,MAAI,MAAM;AACR,aAAU,WAAW,SAAS,eAAe;AAC3C,oBAAgB,SAAS,SAAS;KAChC,YAAY;MACV,OAAO,QAAQ;MACf,GAAI,uBAAuB,EAAE,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;MACvE,GAAG;MACH,KAAK,EAAE,SAAS,CAAC;MAClB;KACD,UAAU;KACV;KACD,CAAC,CAAC,MAAM,EAAE,GAAG,GAAG,qBAAqB;AACpC,aAAQ,MAAM,YAAY,GAAG,EAAE,KAAK,EAAE;AACtC,aAAQ,MAAM,aAAa,eAAe,MAAM,kBAAkB,WAAW;MAC7E;KACF;AACF,WAAQ,aAAa,eAAe,QAAQ;AAC5C,WAAQ,aAAa,iBAAiB,OAAO;SACxC;AACL,cAAW;AACX,WAAQ,aAAa,eAAe,OAAO;AAC3C,WAAQ,aAAa,iBAAiB,QAAQ;;;AAIlD,UAAS,iBACP,UACC,UAAU;EACT,MAAM,KAAK,MAAM;EACjB,MAAM,YAAY,IAAI,UAAU,gBAAgB;EAChD,MAAM,YAAY,CAAC,aAAa,CAAC,QAAQ,SAAS,GAAW;EAC7D,MAAM,SAAS,QAAQ,aAAa,cAAc,KAAK;AAEvD,MAAI,UACF,eAAc,CAAC,OAAO;AAExB,MAAI,aAAa,OACf,eAAc,MAAM;IAGxB,KACD;AAED,QAAO"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useMergeRefs } from "./useMergeRefs-DC710CHX.js";
|
|
2
|
-
import { Context } from "./popover-trigger-context-
|
|
2
|
+
import { Context } from "./popover-trigger-context-D7nOI0FT.js";
|
|
3
3
|
import clsx from "clsx/lite";
|
|
4
4
|
import { Slot } from "@radix-ui/react-slot";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { use, useEffect, useRef } from "react";
|
|
7
|
-
import { autoUpdate, computePosition, flip, hide, offset, shift } from "@floating-ui/dom";
|
|
8
7
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
8
|
+
import { autoUpdate, computePosition, flip, hide, offset, shift } from "@floating-ui/dom";
|
|
9
9
|
|
|
10
10
|
//#region src/components/popover/popover.tsx
|
|
11
11
|
/**
|
|
@@ -102,4 +102,4 @@ const Popover = ({ id, className, onOpenChange, open, placement = "top", disable
|
|
|
102
102
|
|
|
103
103
|
//#endregion
|
|
104
104
|
export { Popover };
|
|
105
|
-
//# sourceMappingURL=popover-
|
|
105
|
+
//# sourceMappingURL=popover-MrMPbttR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover-
|
|
1
|
+
{"version":3,"file":"popover-MrMPbttR.js","names":["cl"],"sources":["../src/components/popover/popover.tsx"],"sourcesContent":["// Thanks to Designsystemet:\n// https://github.com/digdir/designsystemet/blob/8aa6dc274e5b0338d15572f44b5dd3fab6fa4eb1/packages/react/src/components/Popover/Popover.tsx\n\nimport { autoUpdate, computePosition, flip, offset, shift, hide } from '@floating-ui/dom';\nimport type { Middleware, Placement } from '@floating-ui/dom';\nimport { Slot } from '@radix-ui/react-slot';\nimport cl from 'clsx/lite';\nimport { use, useRef } from 'react';\nimport type { HTMLAttributes, Ref } from 'react';\nimport { useEffect } from 'react';\nimport type { DefaultProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { useMergeRefs } from '../../utilities/hooks/useMergeRefs/useMergeRefs';\nimport { Context } from './popover-trigger-context';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\n\nexport type PopoverProps = MergeRight<\n DefaultProps & HTMLAttributes<HTMLDivElement>,\n {\n /**\n * `id` to connect the trigger with the popover - required when not using PopoverContext.\n */\n id?: string;\n /**\n * Placement of the popover on the trigger.\n * @default 'top'\n */\n placement?: Placement;\n /**\n * When a boolean is provided, the popover will be controlled.\n * @default undefined\n */\n open?: boolean;\n /**\n * Callback when the open state changes.\n * @param open - The new open state of the popover.\n */\n onOpenChange?: (open: boolean) => void;\n /**\n * Whether to disable auto placement.\n * @default false\n */\n disableAutoPlacement?: boolean;\n /**\n * Additional middleware to use for positioning the popover.\n *\n * @example\n * Prevent the popover 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 * The padding used by the `offset` middleware.\n * @default '20'\n */\n padding?: number;\n /**\n * Change the default rendered element for the one passed as a child, merging their props and behavior.\n * @default false\n */\n asChild?: boolean;\n ref?: Ref<HTMLDivElement>;\n }\n>;\n\n/**\n * Popover component, used to display content in a popover over an element.\n *\n * @example with TriggerContext\n * <PopoverTriggerContext>\n * <PopoverTrigger>Open Popover</PopoverTrigger>\n * <Popover>\n * Content\n * </Popover>\n * </PopoverTriggerContext>\n *\n * @example without TriggerContext\n * <Button aria-controls=\"my-popover\" aria-expanded={open}>Open Popover</Button>\n * <Popover open={open} onOpenChange={onOpenChange} id=\"my-popover\">\n * Content\n * </Popover>\n */\nexport const Popover = ({\n id,\n className,\n onOpenChange,\n open,\n placement = 'top',\n disableAutoPlacement = false,\n positionMiddleware = [],\n padding = 20,\n dark = false,\n asChild = false,\n ref,\n ...rest\n}: PopoverProps) => {\n const Component = asChild ? Slot : 'div';\n\n const popoverRef = useRef<HTMLDivElement>(null);\n const isControlled = useRef(open !== undefined);\n const mergedRefs = useMergeRefs([popoverRef, ref]);\n const { popoverId, setPopoverId, popoverOpen, setPopoverOpen } = use(Context);\n\n const [isOpen, setIsOpen] = useControllableState({\n prop: isControlled.current ? open : popoverOpen,\n onChange: (val) => {\n onOpenChange?.(val);\n setPopoverOpen?.(val);\n },\n defaultProp: false,\n caller: 'Popover',\n });\n\n useEffect(() => {\n const popover = popoverRef.current;\n const handleClick = (event: MouseEvent) => {\n const el = event.target as Element | null;\n const isTrigger = el?.closest?.(`[aria-controls=\"${popover?.id}\"]`);\n const isOutside = !isTrigger && !popover?.contains(el as Node);\n\n if (isOutside) {\n setIsOpen(false);\n }\n };\n\n const handleKeydown = (event: KeyboardEvent) => {\n if (event.key !== 'Escape' || !isOpen) return;\n event.preventDefault(); // Prevent closing fullscreen in Safari\n setIsOpen(false);\n };\n\n document.addEventListener('click', handleClick, true); // Use capture to execute before React event API\n document.addEventListener('keydown', handleKeydown);\n return () => {\n document.removeEventListener('click', handleClick, true);\n document.removeEventListener('keydown', handleKeydown);\n };\n }, [isOpen, setIsOpen]);\n\n useEffect(() => {\n const popover = popoverRef.current;\n const trigger = document.querySelector(`[aria-controls=\"${popover?.id}\"]`);\n\n if (popover && trigger && isOpen)\n return autoUpdate(trigger, popover, () => {\n computePosition(trigger, popover, {\n middleware: [\n offset(padding),\n ...(disableAutoPlacement ? [] : [flip({ padding }), shift({ padding })]),\n ...positionMiddleware,\n hide({ padding, strategy: 'escaped' }),\n ],\n strategy: 'fixed',\n placement,\n }).then(({ x, y, middlewareData }) => {\n popover.style.translate = `${x}px ${y}px`;\n popover.style.visibility = middlewareData.hide?.referenceHidden ? 'hidden' : 'visible';\n });\n });\n }, [isOpen, placement, id, disableAutoPlacement, positionMiddleware, padding]);\n\n // Update context with id\n useEffect(() => {\n if (id) setPopoverId?.(id);\n }, [id, setPopoverId]);\n\n return (\n <Component\n className={cl('bi-popover', className)}\n id={id || popoverId}\n aria-hidden={!isOpen}\n data-dark={dark}\n ref={mergedRefs}\n {...rest}\n />\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FA,MAAa,WAAW,EACtB,IACA,WACA,cACA,MACA,YAAY,OACZ,uBAAuB,OACvB,qBAAqB,EAAE,EACvB,UAAU,IACV,OAAO,OACP,UAAU,OACV,IACA,GAAG,WACe;CAClB,MAAM,YAAY,UAAU,OAAO;CAEnC,MAAM,aAAa,OAAuB,KAAK;CAC/C,MAAM,eAAe,OAAO,SAAS,OAAU;CAC/C,MAAM,aAAa,aAAa,CAAC,YAAY,IAAI,CAAC;CAClD,MAAM,EAAE,WAAW,cAAc,aAAa,mBAAmB,IAAI,QAAQ;CAE7E,MAAM,CAAC,QAAQ,aAAa,qBAAqB;EAC/C,MAAM,aAAa,UAAU,OAAO;EACpC,WAAW,QAAQ;AACjB,kBAAe,IAAI;AACnB,oBAAiB,IAAI;;EAEvB,aAAa;EACb,QAAQ;EACT,CAAC;AAEF,iBAAgB;EACd,MAAM,UAAU,WAAW;EAC3B,MAAM,eAAe,UAAsB;GACzC,MAAM,KAAK,MAAM;AAIjB,OAFkB,CADA,IAAI,UAAU,mBAAmB,SAAS,GAAG,IAAI,IACnC,CAAC,SAAS,SAAS,GAAW,CAG5D,WAAU,MAAM;;EAIpB,MAAM,iBAAiB,UAAyB;AAC9C,OAAI,MAAM,QAAQ,YAAY,CAAC,OAAQ;AACvC,SAAM,gBAAgB;AACtB,aAAU,MAAM;;AAGlB,WAAS,iBAAiB,SAAS,aAAa,KAAK;AACrD,WAAS,iBAAiB,WAAW,cAAc;AACnD,eAAa;AACX,YAAS,oBAAoB,SAAS,aAAa,KAAK;AACxD,YAAS,oBAAoB,WAAW,cAAc;;IAEvD,CAAC,QAAQ,UAAU,CAAC;AAEvB,iBAAgB;EACd,MAAM,UAAU,WAAW;EAC3B,MAAM,UAAU,SAAS,cAAc,mBAAmB,SAAS,GAAG,IAAI;AAE1E,MAAI,WAAW,WAAW,OACxB,QAAO,WAAW,SAAS,eAAe;AACxC,mBAAgB,SAAS,SAAS;IAChC,YAAY;KACV,OAAO,QAAQ;KACf,GAAI,uBAAuB,EAAE,GAAG,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;KACvE,GAAG;KACH,KAAK;MAAE;MAAS,UAAU;MAAW,CAAC;KACvC;IACD,UAAU;IACV;IACD,CAAC,CAAC,MAAM,EAAE,GAAG,GAAG,qBAAqB;AACpC,YAAQ,MAAM,YAAY,GAAG,EAAE,KAAK,EAAE;AACtC,YAAQ,MAAM,aAAa,eAAe,MAAM,kBAAkB,WAAW;KAC7E;IACF;IACH;EAAC;EAAQ;EAAW;EAAI;EAAsB;EAAoB;EAAQ,CAAC;AAG9E,iBAAgB;AACd,MAAI,GAAI,gBAAe,GAAG;IACzB,CAAC,IAAI,aAAa,CAAC;AAEtB,QACE,oBAAC;EACC,WAAWA,KAAG,cAAc,UAAU;EACtC,IAAI,MAAM;EACV,eAAa,CAAC;EACd,aAAW;EACX,KAAK;EACL,GAAI;GACJ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button } from "./button-BzU7DrNe.js";
|
|
2
|
-
import { Context } from "./popover-trigger-context-
|
|
2
|
+
import { Context } from "./popover-trigger-context-D7nOI0FT.js";
|
|
3
3
|
import { Slot } from "@radix-ui/react-slot";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { use } from "react";
|
|
@@ -43,4 +43,4 @@ const PopoverTrigger = ({ id, inline, asChild, ref,...rest }) => {
|
|
|
43
43
|
|
|
44
44
|
//#endregion
|
|
45
45
|
export { PopoverTrigger };
|
|
46
|
-
//# sourceMappingURL=popover-trigger-
|
|
46
|
+
//# sourceMappingURL=popover-trigger-D5_RrlH1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover-trigger-
|
|
1
|
+
{"version":3,"file":"popover-trigger-D5_RrlH1.js","names":[],"sources":["../src/components/popover/popover-trigger.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport { type HTMLAttributes, Ref, use } from 'react';\nimport type { DefaultProps } from '../../types';\nimport { Button, type ButtonProps } from '../button';\nimport { Context } from './popover-trigger-context';\n\nexport type PopoverTriggerProps =\n | ({\n /**\n * Will render the trigger as inline text.\n * @default false\n */\n inline?: true;\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<HTMLButtonElement>;\n } & HTMLAttributes<HTMLButtonElement> &\n DefaultProps)\n | ({\n /**\n * Will not render the trigger as inline text.\n * @default false\n */\n inline?: false;\n } & ButtonProps);\n\n/**\n * PopoverTrigger component, used to trigger a popover.\n *\n * @example\n * <PopoverTriggerContext>\n * <PopoverTrigger>Open Popover</PopoverTrigger>\n * <Popover>\n * Content\n * </Popover>\n * </PopoverTriggerContext>\n *\n * @example inline\n * <PopoverTriggerContext>\n * <Paragraph>\n * We can use it <PopoverTrigger inline={true}>inline</PopoverTrigger>.\n * </Paragraph>\n * <Popover>\n * Content\n * </Popover>\n * </PopoverTriggerContext>\n */\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nexport const PopoverTrigger = ({ id, inline, asChild, ref, ...rest }: PopoverTriggerProps) => {\n const { popoverId, popoverOpen, setPopoverOpen } = use(Context);\n const Component = asChild ? Slot : inline ? 'button' : Button;\n\n const popoverProps = Object.assign(\n {\n onClick: () => setPopoverOpen?.((prev) => !prev),\n 'aria-controls': popoverId,\n 'aria-expanded': popoverOpen,\n ...(inline\n ? {\n 'data-popover': 'inline',\n }\n : {}),\n },\n rest,\n );\n\n return <Component ref={ref} {...popoverProps} />;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDA,MAAa,kBAAkB,EAAE,IAAI,QAAQ,SAAS,IAAK,GAAG,WAAgC;CAC5F,MAAM,EAAE,WAAW,aAAa,mBAAmB,IAAI,QAAQ;CAC/D,MAAM,YAAY,UAAU,OAAO,SAAS,WAAW;CAEvD,MAAM,eAAe,OAAO,OAC1B;EACE,eAAe,kBAAkB,SAAS,CAAC,KAAK;EAChD,iBAAiB;EACjB,iBAAiB;EACjB,GAAI,SACA,EACE,gBAAgB,UACjB,GACD,EAAE;EACP,EACD,KACD;AAED,QAAO,oBAAC;EAAe;EAAK,GAAI;GAAgB"}
|
package/dist/{popover-trigger-context-Cre9Mczn.js.map → popover-trigger-context-D7nOI0FT.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover-trigger-context-
|
|
1
|
+
{"version":3,"file":"popover-trigger-context-D7nOI0FT.js","names":[],"sources":["../src/components/popover/popover-trigger-context.tsx"],"sourcesContent":["import { useControllableState } from '@radix-ui/react-use-controllable-state';\nimport { createContext, useId, useState } from 'react';\nimport type { ReactNode } from 'react';\n\nexport const Context = createContext<{\n popoverId?: string;\n setPopoverId?: (id: string) => void;\n popoverOpen?: boolean;\n setPopoverOpen?: React.Dispatch<React.SetStateAction<boolean>>;\n}>({});\n\nexport type PopoverTriggerContextProps = {\n children: ReactNode;\n /**\n * When a boolean is provided, the popover will be controlled.\n * @default undefined\n */\n open?: boolean;\n /**\n * Callback when the open state changes.\n * @param open - The new open state of the popover.\n */\n onOpenChange?: (open: boolean) => void;\n};\n\n/**\n * PopoverTriggerContext component, use to wrap a PopoverTrigger and Popover.\n *\n * @example\n * <PopoverTriggerContext>\n * <PopoverTrigger>Open Popover</PopoverTrigger>\n * <Popover>\n * Content\n * </Popover>\n * </PopoverTriggerContext>\n */\nexport const PopoverTriggerContext = ({ children, open, onOpenChange }: PopoverTriggerContextProps) => {\n const randomPopoverId = useId();\n const [popoverId, setPopoverId] = useState(randomPopoverId);\n const [popoverOpen, setPopoverOpen] = useControllableState({\n prop: open,\n onChange: onOpenChange,\n defaultProp: false,\n caller: 'PopoverTriggerContext',\n });\n\n return <Context value={{ popoverId, setPopoverId, popoverOpen, setPopoverOpen }}>{children}</Context>;\n};\n"],"mappings":";;;;;AAIA,MAAa,UAAU,cAKpB,EAAE,CAAC;;;;;;;;;;;;AA2BN,MAAa,yBAAyB,EAAE,UAAU,MAAM,mBAA+C;CACrG,MAAM,kBAAkB,OAAO;CAC/B,MAAM,CAAC,WAAW,gBAAgB,SAAS,gBAAgB;CAC3D,MAAM,CAAC,aAAa,kBAAkB,qBAAqB;EACzD,MAAM;EACN,UAAU;EACV,aAAa;EACb,QAAQ;EACT,CAAC;AAEF,QAAO,oBAAC;EAAQ,OAAO;GAAE;GAAW;GAAc;GAAa;GAAgB;EAAG;GAAmB"}
|
package/dist/{popover-trigger-context-DQxqvfS9.d.ts → popover-trigger-context-D98Drt62.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
2
2
|
import * as react0 from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
@@ -37,7 +37,7 @@ declare const PopoverTriggerContext: ({
|
|
|
37
37
|
children,
|
|
38
38
|
open,
|
|
39
39
|
onOpenChange
|
|
40
|
-
}: PopoverTriggerContextProps) =>
|
|
40
|
+
}: PopoverTriggerContextProps) => react_jsx_runtime56.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { Context, PopoverTriggerContext, PopoverTriggerContextProps };
|
|
43
|
-
//# sourceMappingURL=popover-trigger-context-
|
|
43
|
+
//# sourceMappingURL=popover-trigger-context-D98Drt62.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-
|
|
1
|
+
{"version":3,"file":"radio-Cl85eVpp.js","names":[],"sources":["../src/components/radio/radio.tsx"],"sourcesContent":["import { useId, type ReactNode, type Ref } from 'react';\n\nimport type { LabelRequiredProps } from '../../types';\nimport type { MergeRight } from '../../utilities';\nimport { Field, FieldDescription } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { Label } from '../label';\n\nexport type RadioProps = MergeRight<\n LabelRequiredProps & Omit<InputProps, 'type' | 'role' | 'size'>,\n {\n /** Label */\n label?: ReactNode;\n /** Description */\n description?: ReactNode;\n /** Add error indication to the radio. */\n error?: boolean;\n /** If true, the radio 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 Radio = ({\n dark,\n label,\n description,\n error,\n fullwidth,\n style,\n className,\n ref,\n id,\n 'aria-describedby': ariaDescribedByProp,\n ...props\n}: RadioProps) => {\n const descriptionId = useId();\n\n const ariaDescribedBy = [description ? descriptionId : '', ariaDescribedByProp].join(' ').trim() || undefined;\n\n return (\n <Field className={className} data-dark={dark} style={style} fullwidth={fullwidth} asChild>\n <label>\n <Input\n type='radio'\n id={id}\n ref={ref}\n aria-invalid={error || undefined}\n aria-describedby={ariaDescribedBy}\n dark={dark}\n {...props}\n />\n {label && (\n <Label weight='medium' htmlFor={id} asChild>\n <span>{label}</span>\n </Label>\n )}\n {description && (\n // Aria-hidden is used to prevent screen readers from reading the description twice:\n // once as part of the label and once from being connected through aria-describedby.\n <FieldDescription aria-hidden='true' id={descriptionId}>\n {description}\n </FieldDescription>\n )}\n </label>\n </Field>\n );\n};\n"],"mappings":";;;;;;;;AAuBA,MAAa,SAAS,EACpB,MACA,OACA,aACA,OACA,WACA,OACA,WACA,KACA,IACA,oBAAoB,oBACpB,GAAG,YACa;CAChB,MAAM,gBAAgB,OAAO;CAE7B,MAAM,kBAAkB,CAAC,cAAc,gBAAgB,IAAI,oBAAoB,CAAC,KAAK,IAAI,CAAC,MAAM,IAAI;AAEpG,QACE,oBAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;EAAW;YAChF,qBAAC;GACC,oBAAC;IACC,MAAK;IACD;IACC;IACL,gBAAc,SAAS;IACvB,oBAAkB;IACZ;IACN,GAAI;KACJ;GACD,SACC,oBAAC;IAAM,QAAO;IAAS,SAAS;IAAI;cAClC,oBAAC,oBAAM,QAAa;KACd;GAET,eAGC,oBAAC;IAAiB,eAAY;IAAO,IAAI;cACtC;KACgB;MAEf;GACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-
|
|
1
|
+
{"version":3,"file":"search-CiUvi72_.js","names":[],"sources":["../src/components/search/search.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport { Field, FieldAffixes, FieldAffix } from '../field';\nimport { Input, type InputProps } from '../input';\nimport { CrossSmallIcon, MagnefyingGlassIcon } from '@bi-digital/icons';\nimport type { MergeRight } from '../../utilities';\nimport { Button } from '../button';\n\nexport type SearchProps = MergeRight<\n Omit<InputProps, 'type' | 'size'>,\n {\n /**\n * Size of the search.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n /** Called when the user presses enter. You can use this to for example navigate on submit. */\n onSubmit?: (value: string) => void;\n /** Called when the user resets the search input. */\n onReset?: (value: string) => void;\n /**\n * Aria-label for the clear button.\n * @defaultValue 'Clear'\n */\n clearAriaLabel?: string;\n /** If true, the selectfield will take up the full available width */\n fullwidth?: boolean;\n }\n>;\n\nexport const Search = ({\n className,\n onSubmit,\n onReset,\n clearAriaLabel = 'Clear',\n size = 'medium',\n ref,\n dark,\n style,\n fullwidth,\n ...props\n}: SearchProps) => {\n const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {\n e.preventDefault();\n if (onSubmit) {\n const input = e.currentTarget.querySelector('input');\n onSubmit(input?.value || '');\n }\n };\n const handleReset = () => {\n if (onReset) {\n onReset('');\n }\n };\n return (\n <Field className={clsx('bi-search', className)} data-dark={dark} style={style} fullwidth={fullwidth} asChild>\n <form onSubmit={handleSubmit} onReset={handleReset}>\n <FieldAffixes>\n <FieldAffix>\n <MagnefyingGlassIcon size={size} />\n </FieldAffix>\n <Input type='text' ref={ref} size={size} dark={dark} {...props} />\n <FieldAffix aria-hidden='false'>\n <Button aria-label={clearAriaLabel} icon size={size} dark={dark} variant='text' type='reset'>\n <CrossSmallIcon size={size} aria-hidden='true' />\n </Button>\n </FieldAffix>\n </FieldAffixes>\n </form>\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;AA6BA,MAAa,UAAU,EACrB,WACA,UACA,SACA,iBAAiB,SACjB,OAAO,UACP,KACA,MACA,OACA,UACA,GAAG,YACc;CACjB,MAAM,gBAAgB,MAAwC;AAC5D,IAAE,gBAAgB;AAClB,MAAI,UAAU;GACZ,MAAM,QAAQ,EAAE,cAAc,cAAc,QAAQ;AACpD,YAAS,OAAO,SAAS,GAAG;;;CAGhC,MAAM,oBAAoB;AACxB,MAAI,QACF,SAAQ,GAAG;;AAGf,QACE,oBAAC;EAAM,WAAW,KAAK,aAAa,UAAU;EAAE,aAAW;EAAa;EAAkB;EAAW;YACnG,oBAAC;GAAK,UAAU;GAAc,SAAS;aACrC,qBAAC;IACC,oBAAC,wBACC,oBAAC,uBAA0B,OAAQ,GACxB;IACb,oBAAC;KAAM,MAAK;KAAY;KAAW;KAAY;KAAM,GAAI;MAAS;IAClE,oBAAC;KAAW,eAAY;eACtB,oBAAC;MAAO,cAAY;MAAgB;MAAW;MAAY;MAAM,SAAQ;MAAO,MAAK;gBACnF,oBAAC;OAAqB;OAAM,eAAY;QAAS;OAC1C;MACE;OACA;IACV;GACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-
|
|
1
|
+
{"version":3,"file":"select-DbN5Q14j.js","names":[],"sources":["../src/components/select/select.tsx"],"sourcesContent":["import clsx from 'clsx/lite';\nimport type { Ref, SelectHTMLAttributes } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { DefaultProps } from '../../types';\n\nexport type SelectProps = MergeRight<\n DefaultProps & Omit<SelectHTMLAttributes<HTMLSelectElement>, 'multiple' | 'size'>,\n {\n /**\n * Size of the select.\n * @default 'medium'\n */\n size?: 'medium' | 'large';\n /** Mark the select as readOnly */\n readOnly?: boolean;\n ref?: Ref<HTMLSelectElement>;\n }\n>;\n\nexport const Select = ({ className, dark, onKeyDown, onMouseDown, size, ref, ...props }: SelectProps) => {\n return (\n <select\n className={clsx('bi-input', className)}\n data-dark={dark}\n data-size={size}\n ref={ref}\n onKeyDown={(event) => {\n if (event.key === 'Tab') return;\n if (props.readOnly) event.preventDefault(); // Make readOnly work for select\n onKeyDown?.(event);\n }}\n onMouseDown={(event) => {\n if (props.readOnly) event.preventDefault(); // Make readOnly work for select\n onMouseDown?.(event);\n }}\n {...props}\n />\n );\n};\n"],"mappings":";;;;AAmBA,MAAa,UAAU,EAAE,WAAW,MAAM,WAAW,aAAa,MAAM,IAAK,GAAG,YAAyB;AACvG,QACE,oBAAC;EACC,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,aAAW;EACN;EACL,YAAY,UAAU;AACpB,OAAI,MAAM,QAAQ,MAAO;AACzB,OAAI,MAAM,SAAU,OAAM,gBAAgB;AAC1C,eAAY,MAAM;;EAEpB,cAAc,UAAU;AACtB,OAAI,MAAM,SAAU,OAAM,gBAAgB;AAC1C,iBAAc,MAAM;;EAEtB,GAAI;GACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-optgroup-
|
|
1
|
+
{"version":3,"file":"select-optgroup-aG5VGPAT.js","names":[],"sources":["../src/components/select/select-optgroup.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { OptgroupHTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type SelectOptgroupProps = MergeRight<\n AsChildProps & OptgroupHTMLAttributes<HTMLOptGroupElement>,\n {\n ref?: Ref<HTMLOptGroupElement>;\n }\n>;\n\nexport const SelectOptgroup = ({ asChild, ref, ...props }: SelectOptgroupProps) => {\n const Component = asChild ? Slot : 'optgroup';\n return <Component {...props} ref={ref} />;\n};\n"],"mappings":";;;;AAYA,MAAa,kBAAkB,EAAE,SAAS,IAAK,GAAG,YAAiC;AAEjF,QAAO,oBADW,UAAU,OAAO;EACjB,GAAI;EAAY;GAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-option-
|
|
1
|
+
{"version":3,"file":"select-option-CN9x5ATv.js","names":[],"sources":["../src/components/select/select-option.tsx"],"sourcesContent":["import { Slot } from '@radix-ui/react-slot';\nimport type { OptionHTMLAttributes, Ref } from 'react';\nimport type { MergeRight } from '../../utilities';\nimport type { AsChildProps } from '../../types';\n\nexport type SelectOptionProps = MergeRight<\n AsChildProps & OptionHTMLAttributes<HTMLOptionElement>,\n {\n ref?: Ref<HTMLOptionElement>;\n }\n>;\n\nexport const SelectOption = ({ asChild, ref, ...props }: SelectOptionProps) => {\n const Component = asChild ? Slot : 'option';\n return <Component {...props} ref={ref} />;\n};\n"],"mappings":";;;;AAYA,MAAa,gBAAgB,EAAE,SAAS,IAAK,GAAG,YAA+B;AAE7E,QAAO,oBADW,UAAU,OAAO;EACjB,GAAI;EAAY;GAAO"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Field } from "./field-Dul9LBgF.js";
|
|
2
2
|
import { FieldDescription } from "./field-description-Yya33j8H.js";
|
|
3
3
|
import { Label } from "./label-DG_ojO9g.js";
|
|
4
|
-
import { Select } from "./select-
|
|
5
|
-
import { ValidationMessage } from "./validation-message-
|
|
4
|
+
import { Select } from "./select-DbN5Q14j.js";
|
|
5
|
+
import { ValidationMessage } from "./validation-message-pl1_2HbT.js";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { useId } from "react";
|
|
8
8
|
|
|
@@ -50,4 +50,4 @@ const Selectfield = ({ children, dark, label, description, error, style, classNa
|
|
|
50
50
|
|
|
51
51
|
//#endregion
|
|
52
52
|
export { Selectfield };
|
|
53
|
-
//# sourceMappingURL=selectfield-
|
|
53
|
+
//# sourceMappingURL=selectfield-D_WUpp9p.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selectfield-
|
|
1
|
+
{"version":3,"file":"selectfield-D_WUpp9p.js","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,oBACpB,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;AACzG,QACE,qBAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;;GACpE,SAAS,oBAAC;IAAM,SAAS;cAAK;KAAc;GAC5C,eAAe,oBAAC;IAAiB,IAAI;cAAgB;KAA+B;GACrF,oBAAC;IACK;IACC;IACC;IACN,gBAAc,QAAQ,MAAM,IAAI;IAChC,oBAAkB;IAClB,GAAI;IAEH;KACM;GACR,CAAC,CAAC,SAAS,oBAAC;IAAkB,IAAI;cAAe;KAA0B;;GACtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-link-
|
|
1
|
+
{"version":3,"file":"skip-link-BSrs8rA0.js","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,KAAM,GAAG,YAA2B;AAE3F,QACE,oBAFgB,UAAU,OAAO;EAEtB,WAAW,KAAK,gBAAgB,UAAU;EAAE,aAAW;EAAM,GAAI;EACzE;GACS"}
|