@bi-digital/react 0.2.18 → 0.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{alert-footer-BS8bENJI.d.ts → alert-footer-F_v71IcX.d.ts} +194 -115
- package/dist/{checkbox-Bx9n-4ar.js → checkbox-CXVZj5Vv.js} +5 -4
- package/dist/checkbox-CXVZj5Vv.js.map +1 -0
- package/dist/checkbox-subsection-CGXgII6v.js +17 -0
- package/dist/checkbox-subsection-CGXgII6v.js.map +1 -0
- package/dist/{chip-DFAARDd0.js → chip-CRcC9TkL.js} +1 -1
- package/dist/{chip-DFAARDd0.js.map → chip-CRcC9TkL.js.map} +1 -1
- package/dist/components/alert/alert-footer.d.ts +16 -13
- package/dist/components/alert/alert.d.ts +16 -13
- package/dist/components/alert/index.d.ts +16 -13
- package/dist/components/avatar/avatar.d.ts +16 -13
- package/dist/components/avatar/index.d.ts +16 -13
- package/dist/components/badge/badge.d.ts +16 -13
- package/dist/components/badge/index.d.ts +16 -13
- package/dist/components/button/button.d.ts +16 -13
- package/dist/components/button/index.d.ts +16 -13
- package/dist/components/card/card-action.d.ts +16 -13
- package/dist/components/card/card-actions.d.ts +16 -13
- package/dist/components/card/card-content.d.ts +16 -13
- package/dist/components/card/card-date.d.ts +16 -13
- package/dist/components/card/card-header.d.ts +16 -13
- package/dist/components/card/card-media.d.ts +16 -13
- package/dist/components/card/card.d.ts +16 -13
- package/dist/components/card/index.d.ts +16 -13
- package/dist/components/checkbox/checkbox-subsection.d.ts +17 -0
- package/dist/components/checkbox/checkbox-subsection.js +3 -0
- package/dist/components/checkbox/checkbox.d.ts +16 -13
- package/dist/components/checkbox/checkbox.js +7 -6
- package/dist/components/checkbox/index.d.ts +17 -14
- package/dist/components/checkbox/index.js +10 -8
- package/dist/components/chip/chip.d.ts +16 -13
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/chip/index.d.ts +16 -13
- package/dist/components/chip/index.js +2 -2
- package/dist/components/dialog/dialog-close-button.d.ts +16 -13
- package/dist/components/dialog/dialog-close-button.js +1 -1
- package/dist/components/dialog/dialog-content.d.ts +16 -13
- package/dist/components/dialog/dialog-content.js +1 -1
- package/dist/components/dialog/dialog-footer.d.ts +16 -13
- package/dist/components/dialog/dialog-footer.js +1 -1
- package/dist/components/dialog/dialog-header.d.ts +16 -13
- 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 +16 -13
- package/dist/components/dialog/dialog-trigger.js +2 -2
- package/dist/components/dialog/dialog.d.ts +16 -13
- package/dist/components/dialog/dialog.js +7 -6
- package/dist/components/dialog/index.d.ts +16 -13
- package/dist/components/dialog/index.js +13 -12
- package/dist/components/drawer/drawer-close-button.d.ts +16 -13
- package/dist/components/drawer/drawer-close-button.js +14 -13
- package/dist/components/drawer/drawer-content.d.ts +16 -13
- package/dist/components/drawer/drawer-content.js +14 -13
- package/dist/components/drawer/drawer-footer.d.ts +16 -13
- package/dist/components/drawer/drawer-footer.js +14 -13
- package/dist/components/drawer/drawer-header.d.ts +16 -13
- package/dist/components/drawer/drawer-header.js +14 -13
- package/dist/components/drawer/drawer-trigger-context.d.ts +1 -1
- package/dist/components/drawer/drawer-trigger-context.js +14 -13
- package/dist/components/drawer/drawer-trigger.d.ts +16 -13
- package/dist/components/drawer/drawer-trigger.js +14 -13
- package/dist/components/drawer/drawer.d.ts +16 -13
- package/dist/components/drawer/drawer.js +14 -13
- package/dist/components/drawer/index.d.ts +16 -13
- package/dist/components/drawer/index.js +21 -20
- package/dist/components/dropdown/dropdown-button.d.ts +16 -13
- 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 +1 -1
- package/dist/components/dropdown/dropdown-trigger-context.js +10 -9
- package/dist/components/dropdown/dropdown-trigger.d.ts +16 -13
- package/dist/components/dropdown/dropdown-trigger.js +10 -9
- package/dist/components/dropdown/dropdown.d.ts +16 -13
- package/dist/components/dropdown/dropdown.js +10 -9
- package/dist/components/dropdown/index.d.ts +16 -13
- package/dist/components/dropdown/index.js +16 -15
- package/dist/components/field/field-affix.d.ts +16 -13
- package/dist/components/field/field-description.d.ts +16 -13
- package/dist/components/field/field.d.ts +16 -13
- package/dist/components/field/field.js +1 -1
- package/dist/components/field/index.d.ts +16 -13
- package/dist/components/field/index.js +1 -1
- package/dist/components/fieldset/fieldset-description.d.ts +16 -13
- package/dist/components/fieldset/fieldset-description.js +1 -1
- package/dist/components/fieldset/fieldset-legend.d.ts +16 -13
- package/dist/components/fieldset/fieldset-legend.js +1 -1
- package/dist/components/fieldset/fieldset.d.ts +16 -13
- package/dist/components/fieldset/fieldset.js +1 -1
- package/dist/components/fieldset/index.d.ts +16 -13
- package/dist/components/fieldset/index.js +4 -4
- package/dist/components/filter-group/filter-group.d.ts +17 -0
- package/dist/components/filter-group/filter-group.js +3 -0
- package/dist/components/filter-group/index.d.ts +17 -0
- package/dist/components/filter-group/index.js +4 -0
- 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 +16 -13
- package/dist/components/footer/footer.js +1 -1
- package/dist/components/footer/index.d.ts +16 -13
- package/dist/components/footer/index.js +3 -3
- package/dist/components/index.d.ts +17 -14
- package/dist/components/index.js +85 -74
- package/dist/components/input/index.d.ts +16 -13
- package/dist/components/input/input.d.ts +16 -13
- package/dist/components/label/index.d.ts +16 -13
- package/dist/components/label/label.d.ts +16 -13
- package/dist/components/link/index.d.ts +16 -13
- package/dist/components/link/index.js +2 -2
- package/dist/components/link/link.d.ts +16 -13
- package/dist/components/link/link.js +1 -1
- package/dist/components/logo/index.d.ts +16 -13
- package/dist/components/logo/index.js +2 -2
- package/dist/components/logo/logo.d.ts +16 -13
- package/dist/components/logo/logo.js +1 -1
- package/dist/components/navbar/index.d.ts +17 -14
- package/dist/components/navbar/index.js +8 -5
- package/dist/components/navbar/navbar.d.ts +16 -13
- package/dist/components/navbar/navbar.js +3 -3
- package/dist/components/navbar/sub-navbar.d.ts +17 -0
- package/dist/components/navbar/sub-navbar.js +5 -0
- package/dist/components/pagination/index.d.ts +16 -13
- package/dist/components/pagination/index.js +4 -4
- package/dist/components/pagination/pagination-button.d.ts +16 -13
- 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 +16 -13
- package/dist/components/pagination/pagination.js +1 -1
- package/dist/components/popover/index.d.ts +16 -13
- package/dist/components/popover/index.js +9 -8
- 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 +16 -13
- package/dist/components/popover/popover-trigger.js +2 -2
- package/dist/components/popover/popover.d.ts +16 -13
- package/dist/components/popover/popover.js +7 -6
- package/dist/components/radio/index.d.ts +16 -13
- package/dist/components/radio/index.js +3 -3
- package/dist/components/radio/radio.d.ts +16 -13
- package/dist/components/radio/radio.js +2 -2
- package/dist/components/search/index.d.ts +16 -13
- package/dist/components/search/index.js +3 -3
- package/dist/components/search/search.d.ts +16 -13
- package/dist/components/search/search.js +2 -2
- package/dist/components/select/index.d.ts +16 -13
- package/dist/components/select/index.js +4 -4
- package/dist/components/select/select-optgroup.d.ts +16 -13
- package/dist/components/select/select-optgroup.js +1 -1
- package/dist/components/select/select-option.d.ts +16 -13
- package/dist/components/select/select-option.js +1 -1
- package/dist/components/select/select.d.ts +16 -13
- package/dist/components/select/select.js +1 -1
- package/dist/components/skip-link/index.d.ts +17 -0
- package/dist/components/skip-link/index.js +4 -0
- package/dist/components/skip-link/skip-link.d.ts +17 -0
- package/dist/components/skip-link/skip-link.js +3 -0
- package/dist/components/spinner/index.d.ts +16 -13
- package/dist/components/spinner/spinner.d.ts +16 -13
- package/dist/components/sticky-header/index.d.ts +3 -0
- package/dist/components/sticky-header/index.js +4 -0
- package/dist/components/sticky-header/sticky-header.d.ts +2 -0
- package/dist/components/sticky-header/sticky-header.js +3 -0
- package/dist/components/tabs/index.d.ts +16 -13
- package/dist/components/tabs/index.js +5 -5
- package/dist/components/tabs/tab.d.ts +16 -13
- package/dist/components/tabs/tab.js +1 -1
- package/dist/components/tabs/tabs-list.d.ts +16 -13
- package/dist/components/tabs/tabs-list.js +1 -1
- package/dist/components/tabs/tabs-panel.d.ts +16 -13
- package/dist/components/tabs/tabs-panel.js +1 -1
- package/dist/components/tabs/tabs.d.ts +16 -13
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/textarea/index.d.ts +16 -13
- package/dist/components/textarea/index.js +2 -2
- package/dist/components/textarea/textarea.d.ts +16 -13
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/components/textfield/index.d.ts +16 -13
- package/dist/components/textfield/index.js +7 -7
- package/dist/components/textfield/textfield.d.ts +16 -13
- package/dist/components/textfield/textfield.js +6 -6
- package/dist/components/validation-message/index.d.ts +16 -13
- package/dist/components/validation-message/index.js +2 -2
- package/dist/components/validation-message/validation-message.d.ts +16 -13
- package/dist/components/validation-message/validation-message.js +1 -1
- package/dist/{dialog-Msiu7H3h.js → dialog-WgEtFqJD.js} +3 -3
- package/dist/{dialog-Msiu7H3h.js.map → dialog-WgEtFqJD.js.map} +1 -1
- package/dist/{dialog-close-button-BhzM8xy4.js → dialog-close-button-8n-DBvH4.js} +1 -1
- package/dist/{dialog-close-button-BhzM8xy4.js.map → dialog-close-button-8n-DBvH4.js.map} +1 -1
- package/dist/{dialog-content-BNHkYsxn.js → dialog-content-CU346luZ.js} +1 -1
- package/dist/{dialog-content-BNHkYsxn.js.map → dialog-content-CU346luZ.js.map} +1 -1
- package/dist/{dialog-footer-B63OYnj7.js → dialog-footer-BPCalxtL.js} +1 -1
- package/dist/{dialog-footer-B63OYnj7.js.map → dialog-footer-BPCalxtL.js.map} +1 -1
- package/dist/{dialog-header-CRcBLINN.js → dialog-header-DsLpGnOf.js} +1 -1
- package/dist/{dialog-header-CRcBLINN.js.map → dialog-header-DsLpGnOf.js.map} +1 -1
- package/dist/{dialog-trigger-XPMx1psz.js → dialog-trigger-Q9Y5EG0H.js} +2 -2
- package/dist/{dialog-trigger-XPMx1psz.js.map → dialog-trigger-Q9Y5EG0H.js.map} +1 -1
- package/dist/{dialog-trigger-context-B5d-o0K7.js → dialog-trigger-context-B41wR-bM.js} +1 -1
- package/dist/{dialog-trigger-context-B5d-o0K7.js.map → dialog-trigger-context-B41wR-bM.js.map} +1 -1
- package/dist/{dialog-trigger-context-BP03jmAI.d.ts → dialog-trigger-context-CpvFZdAf.d.ts} +5 -5
- package/dist/{drawer-DeggzxN8.js → drawer-B8xyMitJ.js} +2 -2
- package/dist/{drawer-DeggzxN8.js.map → drawer-B8xyMitJ.js.map} +1 -1
- package/dist/{drawer-close-button-dDQvoj0O.js → drawer-close-button-CqDqQGHP.js} +2 -2
- package/dist/{drawer-close-button-dDQvoj0O.js.map → drawer-close-button-CqDqQGHP.js.map} +1 -1
- package/dist/{drawer-content-Cqz_MZFW.js → drawer-content-Dp__eciN.js} +2 -2
- package/dist/{drawer-content-Cqz_MZFW.js.map → drawer-content-Dp__eciN.js.map} +1 -1
- package/dist/{drawer-footer-GbcH-B8w.js → drawer-footer-qYHvZEl_.js} +2 -2
- package/dist/{drawer-footer-GbcH-B8w.js.map → drawer-footer-qYHvZEl_.js.map} +1 -1
- package/dist/{drawer-header-CS9x6xOi.js → drawer-header-fQaZQuIY.js} +2 -2
- package/dist/{drawer-header-CS9x6xOi.js.map → drawer-header-fQaZQuIY.js.map} +1 -1
- package/dist/{drawer-trigger-AT7qYJPw.js → drawer-trigger-BvjTEl5N.js} +2 -2
- package/dist/{drawer-trigger-AT7qYJPw.js.map → drawer-trigger-BvjTEl5N.js.map} +1 -1
- package/dist/{drawer-trigger-context-EHdOLF0U.js → drawer-trigger-context-DHYdt3sB.js} +2 -2
- package/dist/{drawer-trigger-context-EHdOLF0U.js.map → drawer-trigger-context-DHYdt3sB.js.map} +1 -1
- package/dist/{drawer-trigger-context-BDcc94cu.d.ts → drawer-trigger-context-_6XODjjT.d.ts} +3 -3
- package/dist/{dropdown-C1hpsZcN.js → dropdown-D-dX5PAl.js} +2 -2
- package/dist/{dropdown-C1hpsZcN.js.map → dropdown-D-dX5PAl.js.map} +1 -1
- package/dist/{dropdown-BhdWlVMW.js → dropdown-D54kcMt_.js} +2 -2
- package/dist/{dropdown-BhdWlVMW.js.map → dropdown-D54kcMt_.js.map} +1 -1
- package/dist/{dropdown-button-Btuo7J5R.js → dropdown-button-CKPaLMBh.js} +1 -1
- package/dist/{dropdown-button-Btuo7J5R.js.map → dropdown-button-CKPaLMBh.js.map} +1 -1
- package/dist/{dropdown-item-yyt1nBlo.js → dropdown-item-BnnEFIq3.js} +1 -1
- package/dist/{dropdown-item-yyt1nBlo.js.map → dropdown-item-BnnEFIq3.js.map} +1 -1
- package/dist/{dropdown-item-bMZ3-43Z.d.ts → dropdown-item-DF22Z5Fn.d.ts} +3 -3
- package/dist/{dropdown-list-BMkiVIDL.js → dropdown-list-BWW85rXi.js} +1 -1
- package/dist/{dropdown-list-BMkiVIDL.js.map → dropdown-list-BWW85rXi.js.map} +1 -1
- package/dist/{dropdown-list-DenWbmcv.d.ts → dropdown-list-C3lptEFd.d.ts} +3 -3
- package/dist/{dropdown-trigger-DG-mnw2U.js → dropdown-trigger-DfHyg_D7.js} +2 -2
- package/dist/{dropdown-trigger-DG-mnw2U.js.map → dropdown-trigger-DfHyg_D7.js.map} +1 -1
- package/dist/{dropdown-trigger-context-Ce6Z9VPK.js → dropdown-trigger-context-BpYBk_xf.js} +2 -2
- package/dist/{dropdown-trigger-context-Ce6Z9VPK.js.map → dropdown-trigger-context-BpYBk_xf.js.map} +1 -1
- package/dist/{dropdown-trigger-context-BabMM_7k.d.ts → dropdown-trigger-context-CZCfmNC-.d.ts} +3 -3
- package/dist/{field-U2SN9jkp.js → field-DFMMLG-d.js} +3 -2
- package/dist/field-DFMMLG-d.js.map +1 -0
- package/dist/{fieldset-DemHknom.js → fieldset-DGB7cvdz.js} +1 -1
- package/dist/{fieldset-DemHknom.js.map → fieldset-DGB7cvdz.js.map} +1 -1
- package/dist/{fieldset-description-CqUMEhib.js → fieldset-description-oNKwCGnW.js} +1 -1
- package/dist/{fieldset-description-CqUMEhib.js.map → fieldset-description-oNKwCGnW.js.map} +1 -1
- package/dist/{fieldset-legend-C6D6hE4v.js → fieldset-legend-Dseni7XM.js} +1 -1
- package/dist/{fieldset-legend-C6D6hE4v.js.map → fieldset-legend-Dseni7XM.js.map} +1 -1
- package/dist/filter-group-BKO5sgGt.js +40 -0
- package/dist/filter-group-BKO5sgGt.js.map +1 -0
- package/dist/{footer-CU7LdbPO.js → footer-CXKRhzUT.js} +1 -1
- package/dist/{footer-CU7LdbPO.js.map → footer-CXKRhzUT.js.map} +1 -1
- 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/{footer-links-sRD7teEv.d.ts → footer-links-XPnAoNyU.d.ts} +3 -3
- package/dist/{index-qXXUizvD.d.ts → index-B-0iSMVN.d.ts} +1 -1
- package/dist/index-CTw2zfCM.d.ts +1 -0
- package/dist/{index-CRy7A5Iq.d.ts → index-CXV3nvLQ.d.ts} +1 -1
- package/dist/{link-lNn9wvQf.js → link-BdmxFMOF.js} +3 -2
- package/dist/link-BdmxFMOF.js.map +1 -0
- 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 +17 -14
- package/dist/main.js +86 -75
- package/dist/navbar-DJJMercW.js +23 -0
- package/dist/navbar-DJJMercW.js.map +1 -0
- package/dist/{pagination-u6Z1LYwY.js → pagination-DxXjiIgC.js} +1 -1
- package/dist/{pagination-u6Z1LYwY.js.map → pagination-DxXjiIgC.js.map} +1 -1
- package/dist/{pagination-button-CG_QfJHY.js → pagination-button-CjEZPPC8.js} +1 -1
- package/dist/{pagination-button-CG_QfJHY.js.map → pagination-button-CjEZPPC8.js.map} +1 -1
- package/dist/{pagination-item-hMN-34PX.d.ts → pagination-item-B5s_Fpjt.d.ts} +3 -3
- package/dist/{pagination-item-DntsLLMC.js → pagination-item-DXnI0BWj.js} +1 -1
- package/dist/{pagination-item-DntsLLMC.js.map → pagination-item-DXnI0BWj.js.map} +1 -1
- package/dist/{popover-WJoHXecW.js → popover-CGvBn3q9.js} +3 -3
- package/dist/{popover-WJoHXecW.js.map → popover-CGvBn3q9.js.map} +1 -1
- package/dist/{popover-CGNoywPj.js → popover-COi7S9pJ.js} +1 -1
- package/dist/{popover-CGNoywPj.js.map → popover-COi7S9pJ.js.map} +1 -1
- package/dist/{popover-trigger-CjEKeJwY.js → popover-trigger-BLnIukvY.js} +2 -2
- package/dist/{popover-trigger-CjEKeJwY.js.map → popover-trigger-BLnIukvY.js.map} +1 -1
- package/dist/{popover-trigger-context-DQy9nKB2.d.ts → popover-trigger-context-B_lI5ACl.d.ts} +5 -5
- package/dist/{popover-trigger-context-CNUJbbBn.js → popover-trigger-context-CGJlUS_N.js} +1 -1
- package/dist/{popover-trigger-context-CNUJbbBn.js.map → popover-trigger-context-CGJlUS_N.js.map} +1 -1
- package/dist/{radio-C_Zbb4CF.js → radio-ulWuU7RE.js} +4 -3
- package/dist/radio-ulWuU7RE.js.map +1 -0
- package/dist/{search-Dg6xvCDB.js → search-Cqnboh3z.js} +7 -3
- package/dist/search-Cqnboh3z.js.map +1 -0
- package/dist/{select-B1e494BO.js → select-DCZV6wZu.js} +1 -1
- package/dist/{select-B1e494BO.js.map → select-DCZV6wZu.js.map} +1 -1
- package/dist/{select-optgroup-D7Gd7ioS.js → select-optgroup-BUaB9Yz-.js} +1 -1
- package/dist/{select-optgroup-D7Gd7ioS.js.map → select-optgroup-BUaB9Yz-.js.map} +1 -1
- package/dist/{select-option-DUfDzvNN.js → select-option-BByWq34J.js} +1 -1
- package/dist/{select-option-DUfDzvNN.js.map → select-option-BByWq34J.js.map} +1 -1
- package/dist/skip-link-DwuiIAvE.js +18 -0
- package/dist/skip-link-DwuiIAvE.js.map +1 -0
- package/dist/sticky-header-BhzeZPgJ.d.ts +19 -0
- package/dist/sticky-header-DWAJUj20.js +21 -0
- package/dist/sticky-header-DWAJUj20.js.map +1 -0
- package/dist/sub-navbar-DEudSxfj.js +28 -0
- package/dist/sub-navbar-DEudSxfj.js.map +1 -0
- package/dist/{tab-D-OGgeAb.js → tab-9qkzsjIT.js} +1 -1
- package/dist/{tab-D-OGgeAb.js.map → tab-9qkzsjIT.js.map} +1 -1
- package/dist/{tabs-DzRc-Y8t.js → tabs-CpaYfphj.js} +1 -1
- package/dist/{tabs-DzRc-Y8t.js.map → tabs-CpaYfphj.js.map} +1 -1
- package/dist/{tabs-list-qH_cJgYi.js → tabs-list-UDrgmCSx.js} +1 -1
- package/dist/{tabs-list-qH_cJgYi.js.map → tabs-list-UDrgmCSx.js.map} +1 -1
- package/dist/{tabs-panel-DtHr9i79.js → tabs-panel-DeVzvQQw.js} +1 -1
- package/dist/{tabs-panel-DtHr9i79.js.map → tabs-panel-DeVzvQQw.js.map} +1 -1
- package/dist/{textarea-CEUafYI-.js → textarea-C580HmQX.js} +1 -1
- package/dist/{textarea-CEUafYI-.js.map → textarea-C580HmQX.js.map} +1 -1
- package/dist/textfield-CWoUw1b2.js +0 -0
- package/dist/{textfield-DwBJIap9.js → textfield-D9Ssbb43.js} +4 -4
- package/dist/{textfield-DwBJIap9.js.map → textfield-D9Ssbb43.js.map} +1 -1
- package/dist/{types-CAwE6h3H.d.ts → types-DC-FPmDA.d.ts} +1 -1
- package/dist/{types-BTJlwWCQ.d.ts → types-Mj1poXVf.d.ts} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/useCheckboxGroup-DRhqch1m.d.ts +22 -0
- package/dist/useCheckboxGroup-rTVawmvi.js +18 -0
- package/dist/useCheckboxGroup-rTVawmvi.js.map +1 -0
- package/dist/useElementScrolledPastObserver-DjzJ4Mn-.js +20 -0
- package/dist/useElementScrolledPastObserver-DjzJ4Mn-.js.map +1 -0
- package/dist/{useIsomorphicLayoutEffect-DCaf_yI4.js → useIsomorphicLayoutEffect-B5btmYlF.js} +1 -1
- package/dist/{useIsomorphicLayoutEffect-DCaf_yI4.js.map → useIsomorphicLayoutEffect-B5btmYlF.js.map} +1 -1
- package/dist/{useIsomorphicLayoutEffect-D3y6bHpX.d.ts → useIsomorphicLayoutEffect-BMdz-mee.d.ts} +1 -1
- package/dist/{useMergeRefs-Cz-t7gpp.js → useMergeRefs-CcJMoo46.js} +1 -1
- package/dist/{useMergeRefs-Cz-t7gpp.js.map → useMergeRefs-CcJMoo46.js.map} +1 -1
- package/dist/{useMergeRefs-BTgz9pcs.d.ts → useMergeRefs-iCenhgmf.d.ts} +1 -1
- package/dist/{usePagination-afWMXp7h.js → usePagination-DNqO-ob2.js} +1 -1
- package/dist/{usePagination-afWMXp7h.js.map → usePagination-DNqO-ob2.js.map} +1 -1
- package/dist/useScrollDirection-BLgp51hx.js +28 -0
- package/dist/useScrollDirection-BLgp51hx.js.map +1 -0
- package/dist/utilities/hooks/index.d.ts +17 -14
- package/dist/utilities/hooks/index.js +6 -5
- package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.d.ts +2 -0
- package/dist/utilities/hooks/useCheckboxGroup/useCheckboxGroup.js +3 -0
- package/dist/utilities/hooks/useElementScrolledPastObserver/useElementScrolledPastObserver.d.ts +8 -0
- package/dist/utilities/hooks/useElementScrolledPastObserver/useElementScrolledPastObserver.js +3 -0
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +1 -1
- package/dist/utilities/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +1 -1
- package/dist/utilities/hooks/useMergeRefs/useMergeRefs.d.ts +1 -1
- package/dist/utilities/hooks/useMergeRefs/useMergeRefs.js +1 -1
- package/dist/utilities/hooks/usePagination/usePagination.d.ts +16 -13
- package/dist/utilities/hooks/usePagination/usePagination.js +1 -1
- package/dist/utilities/hooks/useScrollDirection/useScrollDirection.d.ts +11 -0
- package/dist/utilities/hooks/useScrollDirection/useScrollDirection.js +3 -0
- package/dist/utilities/index.d.ts +17 -14
- package/dist/utilities/index.js +7 -6
- package/dist/utilities/types.d.ts +1 -1
- package/dist/utilities-JoKvbhOy.js +0 -0
- package/dist/{validation-message-DjATM7g-.js → validation-message-6AQTIup_.js} +1 -1
- package/dist/{validation-message-DjATM7g-.js.map → validation-message-6AQTIup_.js.map} +1 -1
- package/dist/validation-message-B4lI2a0K.js +0 -0
- package/dist/vanilla/dropdown/index.d.ts +1 -1
- package/dist/vanilla/dropdown/index.js +2 -2
- package/dist/vanilla/index.d.ts +2 -2
- package/dist/vanilla/index.js +2 -2
- package/dist/vanilla/popover/index.d.ts +1 -1
- package/dist/vanilla/popover/index.js +1 -1
- package/package.json +4 -4
- package/dist/checkbox-Bx9n-4ar.js.map +0 -1
- package/dist/field-U2SN9jkp.js.map +0 -1
- package/dist/link-lNn9wvQf.js.map +0 -1
- package/dist/navbar-Dm9lM6Xr.js +0 -31
- package/dist/navbar-Dm9lM6Xr.js.map +0 -1
- package/dist/radio-C_Zbb4CF.js.map +0 -1
- package/dist/search-Dg6xvCDB.js.map +0 -1
- /package/dist/{checkbox-DXGZ7D3M.js → checkbox-DdQn64cR.js} +0 -0
- /package/dist/{chip-CopwfoBo.js → chip-6KumidQL.js} +0 -0
- /package/dist/{components-CtNCeoXN.js → components-CUDHzsYh.js} +0 -0
- /package/dist/{dialog-Cva1W11M.js → dialog-B6bZOPYF.js} +0 -0
- /package/dist/{drawer-D0EFrwju.js → drawer-sfOVHFWA.js} +0 -0
- /package/dist/{dropdown-mQ8x9_NH.js → dropdown-DR0Lif3r.js} +0 -0
- /package/dist/{fieldset-BhCAsBCv.js → fieldset-Ds2WiAnj.js} +0 -0
- /package/dist/{footer-BThmhXy7.js → filter-group-MjaWbeZO.js} +0 -0
- /package/dist/{hooks-CQ4fud3K.js → footer-Cq6w0v2j.js} +0 -0
- /package/dist/{link-oWcjwJYP.js → hooks-BmaG9QJW.js} +0 -0
- /package/dist/{logo-Dx-VZMJu.js → link-CKJeUW0o.js} +0 -0
- /package/dist/{navbar-DvT5z7E0.js → logo-CIDSfhf9.js} +0 -0
- /package/dist/{pagination-DrIF_DVv.js → navbar-BuFLsqCZ.js} +0 -0
- /package/dist/{popover-3oBuiK3l.js → pagination-DUyQRuUE.js} +0 -0
- /package/dist/{radio-h9AAOfEn.js → popover-C4QdJkKG.js} +0 -0
- /package/dist/{search-D6IdbNO6.js → radio-Uyx2D7dl.js} +0 -0
- /package/dist/{select-Dg_OZVWF.js → search-VYIc3wFh.js} +0 -0
- /package/dist/{tabs-DXmy9wEs.js → select-D1X9tdeH.js} +0 -0
- /package/dist/{textarea-YZQSw01C.js → skip-link-CGmg3TAi.js} +0 -0
- /package/dist/{textfield-BJszUges.js → sticky-header-CII-Yy5M.js} +0 -0
- /package/dist/{utilities-DO_q6EB3.js → tabs-CYBqn2Kj.js} +0 -0
- /package/dist/{validation-message-fz0dNgdm.js → textarea-D37K5D86.js} +0 -0
package/dist/main.js
CHANGED
|
@@ -17,7 +17,7 @@ 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-BK1MS46W.js";
|
|
20
|
-
import { Field } from "./field-
|
|
20
|
+
import { Field } from "./field-DFMMLG-d.js";
|
|
21
21
|
import { FieldDescription } from "./field-description-Dhm1VA08.js";
|
|
22
22
|
import { FieldAffix, FieldAffixes } from "./field-affix-npc6m7XL.js";
|
|
23
23
|
import "./field-B7y2WBzu.js";
|
|
@@ -25,78 +25,89 @@ import { Input } from "./input-Dr7BnTyd.js";
|
|
|
25
25
|
import "./input-03FO9IIL.js";
|
|
26
26
|
import { Label } from "./label-DUzvAx-T.js";
|
|
27
27
|
import "./label-nhrfSiaP.js";
|
|
28
|
-
import {
|
|
29
|
-
import "./
|
|
30
|
-
import
|
|
31
|
-
import "./
|
|
32
|
-
import
|
|
33
|
-
import "./checkbox-
|
|
34
|
-
import {
|
|
35
|
-
import "./
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import "./dialog-
|
|
44
|
-
import {
|
|
45
|
-
import
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import "./drawer-
|
|
52
|
-
import {
|
|
53
|
-
import
|
|
54
|
-
import {
|
|
55
|
-
import "./popover-
|
|
56
|
-
import {
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import "./dropdown-
|
|
63
|
-
import {
|
|
64
|
-
import
|
|
65
|
-
import {
|
|
66
|
-
import "./fieldset-
|
|
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 "./
|
|
28
|
+
import { useCheckboxGroup } from "./useCheckboxGroup-rTVawmvi.js";
|
|
29
|
+
import { useIsomorphicLayoutEffect } from "./useIsomorphicLayoutEffect-B5btmYlF.js";
|
|
30
|
+
import "./useMergeRefs-CcJMoo46.js";
|
|
31
|
+
import { usePagination } from "./usePagination-DNqO-ob2.js";
|
|
32
|
+
import "./hooks-BmaG9QJW.js";
|
|
33
|
+
import { Checkbox } from "./checkbox-CXVZj5Vv.js";
|
|
34
|
+
import { CheckboxSubsection } from "./checkbox-subsection-CGXgII6v.js";
|
|
35
|
+
import "./checkbox-DdQn64cR.js";
|
|
36
|
+
import { Chip } from "./chip-CRcC9TkL.js";
|
|
37
|
+
import "./chip-6KumidQL.js";
|
|
38
|
+
import { DialogTriggerContext } from "./dialog-trigger-context-B41wR-bM.js";
|
|
39
|
+
import { Dialog } from "./dialog-WgEtFqJD.js";
|
|
40
|
+
import { DialogContent } from "./dialog-content-CU346luZ.js";
|
|
41
|
+
import { DialogHeader } from "./dialog-header-DsLpGnOf.js";
|
|
42
|
+
import { DialogFooter } from "./dialog-footer-BPCalxtL.js";
|
|
43
|
+
import { DialogTrigger } from "./dialog-trigger-Q9Y5EG0H.js";
|
|
44
|
+
import { DialogCloseButton } from "./dialog-close-button-8n-DBvH4.js";
|
|
45
|
+
import "./dialog-B6bZOPYF.js";
|
|
46
|
+
import { Drawer } from "./drawer-B8xyMitJ.js";
|
|
47
|
+
import { DrawerContent } from "./drawer-content-Dp__eciN.js";
|
|
48
|
+
import { DrawerHeader } from "./drawer-header-fQaZQuIY.js";
|
|
49
|
+
import { DrawerFooter } from "./drawer-footer-qYHvZEl_.js";
|
|
50
|
+
import { DrawerTrigger } from "./drawer-trigger-BvjTEl5N.js";
|
|
51
|
+
import { DrawerTriggerContext } from "./drawer-trigger-context-DHYdt3sB.js";
|
|
52
|
+
import { DrawerCloseButton } from "./drawer-close-button-CqDqQGHP.js";
|
|
53
|
+
import "./drawer-sfOVHFWA.js";
|
|
54
|
+
import { PopoverTriggerContext } from "./popover-trigger-context-CGJlUS_N.js";
|
|
55
|
+
import { Popover } from "./popover-CGvBn3q9.js";
|
|
56
|
+
import { PopoverTrigger } from "./popover-trigger-BLnIukvY.js";
|
|
57
|
+
import "./popover-C4QdJkKG.js";
|
|
58
|
+
import { Dropdown } from "./dropdown-D54kcMt_.js";
|
|
59
|
+
import { DropdownButton } from "./dropdown-button-CKPaLMBh.js";
|
|
60
|
+
import { DropdownItem } from "./dropdown-item-BnnEFIq3.js";
|
|
61
|
+
import { DropdownList } from "./dropdown-list-BWW85rXi.js";
|
|
62
|
+
import { DropdownTrigger } from "./dropdown-trigger-DfHyg_D7.js";
|
|
63
|
+
import { DropdownTriggerContext } from "./dropdown-trigger-context-BpYBk_xf.js";
|
|
64
|
+
import "./dropdown-DR0Lif3r.js";
|
|
65
|
+
import { Fieldset } from "./fieldset-DGB7cvdz.js";
|
|
66
|
+
import { FieldsetDescription } from "./fieldset-description-oNKwCGnW.js";
|
|
67
|
+
import { FieldsetLegend } from "./fieldset-legend-Dseni7XM.js";
|
|
68
|
+
import "./fieldset-Ds2WiAnj.js";
|
|
69
|
+
import { FilterGroup } from "./filter-group-BKO5sgGt.js";
|
|
70
|
+
import "./filter-group-MjaWbeZO.js";
|
|
71
|
+
import { Footer } from "./footer-CXKRhzUT.js";
|
|
72
|
+
import { FooterLinks } from "./footer-links-Dz1UwVuf.js";
|
|
73
|
+
import "./footer-Cq6w0v2j.js";
|
|
74
|
+
import { Link } from "./link-BdmxFMOF.js";
|
|
75
|
+
import "./link-CKJeUW0o.js";
|
|
76
|
+
import { Logo } from "./logo-cfY7Ilvc.js";
|
|
77
|
+
import "./logo-CIDSfhf9.js";
|
|
78
|
+
import { Navbar } from "./navbar-DJJMercW.js";
|
|
79
|
+
import "./useElementScrolledPastObserver-DjzJ4Mn-.js";
|
|
80
|
+
import "./useScrollDirection-BLgp51hx.js";
|
|
81
|
+
import { SubNavbar } from "./sub-navbar-DEudSxfj.js";
|
|
82
|
+
import "./navbar-BuFLsqCZ.js";
|
|
83
|
+
import { Pagination } from "./pagination-DxXjiIgC.js";
|
|
84
|
+
import { PaginationButton } from "./pagination-button-CjEZPPC8.js";
|
|
85
|
+
import { PaginationItem } from "./pagination-item-DXnI0BWj.js";
|
|
86
|
+
import "./pagination-DUyQRuUE.js";
|
|
87
|
+
import { Radio } from "./radio-ulWuU7RE.js";
|
|
88
|
+
import "./radio-Uyx2D7dl.js";
|
|
89
|
+
import { Search } from "./search-Cqnboh3z.js";
|
|
90
|
+
import "./search-VYIc3wFh.js";
|
|
91
|
+
import { Select } from "./select-DCZV6wZu.js";
|
|
92
|
+
import { SelectOption } from "./select-option-BByWq34J.js";
|
|
93
|
+
import { SelectOptgroup } from "./select-optgroup-BUaB9Yz-.js";
|
|
94
|
+
import "./select-D1X9tdeH.js";
|
|
95
|
+
import { SkipLink } from "./skip-link-DwuiIAvE.js";
|
|
96
|
+
import "./skip-link-CGmg3TAi.js";
|
|
97
|
+
import { StickyHeader } from "./sticky-header-DWAJUj20.js";
|
|
98
|
+
import "./sticky-header-CII-Yy5M.js";
|
|
99
|
+
import { Tabs } from "./tabs-CpaYfphj.js";
|
|
100
|
+
import { Tab } from "./tab-9qkzsjIT.js";
|
|
101
|
+
import { TabsList } from "./tabs-list-UDrgmCSx.js";
|
|
102
|
+
import { TabsPanel } from "./tabs-panel-DeVzvQQw.js";
|
|
103
|
+
import "./tabs-CYBqn2Kj.js";
|
|
104
|
+
import { Textarea } from "./textarea-C580HmQX.js";
|
|
105
|
+
import "./textarea-D37K5D86.js";
|
|
106
|
+
import { ValidationMessage } from "./validation-message-6AQTIup_.js";
|
|
107
|
+
import "./validation-message-B4lI2a0K.js";
|
|
108
|
+
import { Textfield } from "./textfield-D9Ssbb43.js";
|
|
109
|
+
import "./textfield-CWoUw1b2.js";
|
|
110
|
+
import "./components-CUDHzsYh.js";
|
|
111
|
+
import "./utilities-JoKvbhOy.js";
|
|
101
112
|
|
|
102
|
-
export { Alert, AlertFooter, Avatar, Badge, Button, Card, CardAction, CardActions, CardContent, CardDate, CardHeader, CardMedia, Checkbox, 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, Footer, FooterLinks, Input, Label, Link, Logo, Navbar, Pagination, PaginationButton, PaginationItem, Popover, PopoverTrigger, PopoverTriggerContext, Radio, Search, Select, SelectOptgroup, SelectOption, Spinner, Tab, Tabs, TabsList, TabsPanel, Textarea, Textfield, ValidationMessage, useIsomorphicLayoutEffect, usePagination };
|
|
113
|
+
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, SkipLink, Spinner, StickyHeader, SubNavbar, Tab, Tabs, TabsList, TabsPanel, Textarea, Textfield, ValidationMessage, useCheckboxGroup, useIsomorphicLayoutEffect, usePagination };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Logo } from "./logo-cfY7Ilvc.js";
|
|
2
|
+
import clsx from "clsx/lite";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/navbar/navbar.tsx
|
|
6
|
+
const Navbar = ({ dark = false, fixed = false, homeAriaLabel, skipLink, homeHref, logo, children, className, ref,...props }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxs("nav", {
|
|
8
|
+
...props,
|
|
9
|
+
className: clsx("bi-navbar", className),
|
|
10
|
+
"data-fixed": fixed,
|
|
11
|
+
"data-dark": dark,
|
|
12
|
+
ref,
|
|
13
|
+
children: [skipLink, /* @__PURE__ */ jsxs("header", { children: [/* @__PURE__ */ jsx("a", {
|
|
14
|
+
"aria-label": homeAriaLabel,
|
|
15
|
+
href: homeHref,
|
|
16
|
+
children: logo || /* @__PURE__ */ jsx(Logo, { dark })
|
|
17
|
+
}), children] })]
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export { Navbar };
|
|
23
|
+
//# sourceMappingURL=navbar-DJJMercW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,SAAS,CAAC,EACrB,OAAO,OACP,QAAQ,OACR,eACA,UACA,UACA,MACA,UACA,WACA,IACA,GAAG,OACS,KAAK;AACjB,wBACE,KAAC;EAAI,GAAI;EAAO,WAAW,KAAK,aAAa,UAAU;EAAE,cAAY;EAAO,aAAW;EAAW;aAC/F,0BACD,KAAC,uCACC,IAAC;GAAE,cAAY;GAAe,MAAM;aACjC,wBAAQ,IAAC,QAAW,OAAQ;IAC3B,EACH,YACM;GACL;AAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-
|
|
1
|
+
{"version":3,"file":"pagination-DxXjiIgC.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,aAAa,CAAC,EAAE,WAAW,OAAO,OAAO,KAAK,SAAU,GAAG,OAAwB,KAAK;AACnG,wBACE,IAAC;EAAI,WAAW,KAAK,iBAAiB,UAAU;EAAE,aAAW;EAAW;EAAK,GAAI;4BAC/E,IAAC,QAAI,WAAc;GACf;AAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-button-
|
|
1
|
+
{"version":3,"file":"pagination-button-CjEZPPC8.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,mBAAmB,CAAC,EAAE,IAAK,GAAG,MAA6B,qBACtE,IAAC;CAAO,SAAQ;CAAO;CAAU;CAAK,GAAI;EAAQ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime38 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_runtime38.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { PaginationItem, PaginationItemProps };
|
|
21
|
-
//# sourceMappingURL=pagination-item-
|
|
21
|
+
//# sourceMappingURL=pagination-item-B5s_Fpjt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination-item-
|
|
1
|
+
{"version":3,"file":"pagination-item-DXnI0BWj.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,iBAAiB,CAAC,EAAE,KAAK,SAAS,SAAU,GAAG,MAA2B,KAAK;CAC1F,MAAM,YAAY,UAAU,OAAO;AACnC,wBACE,IAAC;EAAe;EAAK,GAAI;EACtB;GACS;AAEf"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useMergeRefs } from "./useMergeRefs-
|
|
2
|
-
import { Context } from "./popover-trigger-context-
|
|
1
|
+
import { useMergeRefs } from "./useMergeRefs-CcJMoo46.js";
|
|
2
|
+
import { Context } from "./popover-trigger-context-CGJlUS_N.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";
|
|
@@ -104,4 +104,4 @@ const Popover = ({ id, className, onOpenChange, open, placement = "top", disable
|
|
|
104
104
|
|
|
105
105
|
//#endregion
|
|
106
106
|
export { Popover };
|
|
107
|
-
//# sourceMappingURL=popover-
|
|
107
|
+
//# sourceMappingURL=popover-CGvBn3q9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover-
|
|
1
|
+
{"version":3,"file":"popover-CGvBn3q9.js","names":["event: MouseEvent","event: KeyboardEvent"],"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';\nimport { Context } from './popover-trigger-context';\nimport { useControllableState } from '@radix-ui/react-use-controllable-state';\n\nconst padding = 20;\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 * 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 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]);\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":";;;;;;;;;;AAgBA,MAAM,UAAU;;;;;;;;;;;;;;;;;;AA4EhB,MAAa,UAAU,CAAC,EACtB,IACA,WACA,cACA,MACA,YAAY,OACZ,uBAAuB,OACvB,qBAAqB,CAAE,GACvB,OAAO,OACP,UAAU,OACV,IACA,GAAG,MACU,KAAK;CAClB,MAAM,YAAY,UAAU,OAAO;CAEnC,MAAM,aAAa,OAAuB,KAAK;CAC/C,MAAM,eAAe,OAAO,gBAAmB;CAC/C,MAAM,aAAa,aAAa,CAAC,YAAY,GAAI,EAAC;CAClD,MAAM,EAAE,WAAW,cAAc,aAAa,gBAAgB,GAAG,IAAI,QAAQ;CAE7E,MAAM,CAAC,QAAQ,UAAU,GAAG,qBAAqB;EAC/C,MAAM,aAAa,UAAU,OAAO;EACpC,UAAU,CAAC,QAAQ;AACjB,kBAAe,IAAI;AACnB,oBAAiB,IAAI;EACtB;EACD,aAAa;EACb,QAAQ;CACT,EAAC;AAEF,WAAU,MAAM;EACd,MAAM,UAAU,WAAW;EAC3B,MAAM,cAAc,CAACA,UAAsB;GACzC,MAAM,KAAK,MAAM;GACjB,MAAM,YAAY,IAAI,WAAW,kBAAkB,SAAS,GAAG,IAAI;GACnE,MAAM,aAAa,cAAc,SAAS,SAAS,GAAW;AAE9D,OAAI,UACF,WAAU,MAAM;EAEnB;EAED,MAAM,gBAAgB,CAACC,UAAyB;AAC9C,OAAI,MAAM,QAAQ,aAAa,OAAQ;AACvC,SAAM,gBAAgB;AACtB,aAAU,MAAM;EACjB;AAED,WAAS,iBAAiB,SAAS,aAAa,KAAK;AACrD,WAAS,iBAAiB,WAAW,cAAc;AACnD,SAAO,MAAM;AACX,YAAS,oBAAoB,SAAS,aAAa,KAAK;AACxD,YAAS,oBAAoB,WAAW,cAAc;EACvD;CACF,GAAE,CAAC,QAAQ,SAAU,EAAC;AAEvB,WAAU,MAAM;EACd,MAAM,UAAU,WAAW;EAC3B,MAAM,UAAU,SAAS,eAAe,kBAAkB,SAAS,GAAG,IAAI;AAE1E,MAAI,WAAW,WAAW,OACxB,QAAO,WAAW,SAAS,SAAS,MAAM;AACxC,mBAAgB,SAAS,SAAS;IAChC,YAAY;KACV,OAAO,QAAQ;KACf,GAAI,uBAAuB,CAAE,IAAG,CAAC,KAAK,EAAE,QAAS,EAAC,EAAE,MAAM,EAAE,QAAS,EAAC,AAAC;KACvE,GAAG;KACH,KAAK;MAAE;MAAS,UAAU;KAAW,EAAC;IACvC;IACD,UAAU;IACV;GACD,EAAC,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,gBAAgB,KAAK;AACpC,YAAQ,MAAM,aAAa,EAAE,EAAE,KAAK,EAAE;AACtC,YAAQ,MAAM,aAAa,eAAe,MAAM,kBAAkB,WAAW;GAC9E,EAAC;EACH,EAAC;CACL,GAAE;EAAC;EAAQ;EAAW;EAAI;EAAsB;CAAmB,EAAC;AAGrE,WAAU,MAAM;AACd,MAAI,GAAI,gBAAe,GAAG;CAC3B,GAAE,CAAC,IAAI,YAAa,EAAC;AAEtB,wBACE,IAAC;EACC,WAAW,KAAG,cAAc,UAAU;EACtC,IAAI,MAAM;EACV,gBAAc;EACd,aAAW;EACX,KAAK;EACL,GAAI;GACJ;AAEL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover-
|
|
1
|
+
{"version":3,"file":"popover-COi7S9pJ.js","names":["cleanup: (() => void) | undefined","open: boolean"],"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\nconst padding = 20;\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\nexport const initPopover = ({\n id,\n disableAutoPlacement = false,\n placement = 'top',\n positionMiddleware = [],\n}: InitPopoverOptions) => {\n // let isOpen = false;\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"],"mappings":";;;AAGA,MAAM,UAAU;AAsChB,MAAa,cAAc,CAAC,EAC1B,IACA,uBAAuB,OACvB,YAAY,OACZ,qBAAqB,CAAE,GACJ,KAAK;CAExB,IAAIA;CACJ,MAAM,UAAU,SAAS,eAAe,GAAG;CAC3C,MAAM,mBAAmB,kBAAkB,GAAG;CAC9C,MAAM,UAAU,SAAS,cAAc,gBAAgB;AAEvD,MAAK,YAAY,QAAS;CAE1B,MAAM,gBAAgB,CAACC,SAAkB;AACvC,MAAI,MAAM;AACR,aAAU,WAAW,SAAS,SAAS,MAAM;AAC3C,oBAAgB,SAAS,SAAS;KAChC,YAAY;MACV,OAAO,QAAQ;MACf,GAAI,uBAAuB,CAAE,IAAG,CAAC,KAAK,EAAE,QAAS,EAAC,EAAE,MAAM,EAAE,QAAS,EAAC,AAAC;MACvE,GAAG;MACH,KAAK,EAAE,QAAS,EAAC;KAClB;KACD,UAAU;KACV;IACD,EAAC,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,gBAAgB,KAAK;AACpC,aAAQ,MAAM,aAAa,EAAE,EAAE,KAAK,EAAE;AACtC,aAAQ,MAAM,aAAa,eAAe,MAAM,kBAAkB,WAAW;IAC9E,EAAC;GACH,EAAC;AACF,WAAQ,aAAa,eAAe,QAAQ;AAC5C,WAAQ,aAAa,iBAAiB,OAAO;EAC9C,OAAM;AACL,cAAW;AACX,WAAQ,aAAa,eAAe,OAAO;AAC3C,WAAQ,aAAa,iBAAiB,QAAQ;EAC/C;CACF;AAED,UAAS,iBACP,SACA,CAAC,UAAU;EACT,MAAM,KAAK,MAAM;EACjB,MAAM,YAAY,IAAI,UAAU,gBAAgB;EAChD,MAAM,aAAa,cAAc,QAAQ,SAAS,GAAW;EAC7D,MAAM,SAAS,QAAQ,aAAa,cAAc,KAAK;AAEvD,MAAI,UACF,gBAAe,OAAO;AAExB,MAAI,aAAa,OACf,eAAc,MAAM;CAEvB,GACD,KACD;AACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button } from "./button-fhd-JARc.js";
|
|
2
|
-
import { Context } from "./popover-trigger-context-
|
|
2
|
+
import { Context } from "./popover-trigger-context-CGJlUS_N.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-BLnIukvY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover-trigger-
|
|
1
|
+
{"version":3,"file":"popover-trigger-BLnIukvY.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,iBAAiB,CAAC,EAAE,IAAI,QAAQ,SAAS,IAAK,GAAG,MAA2B,KAAK;CAC5F,MAAM,EAAE,WAAW,aAAa,gBAAgB,GAAG,IAAI,QAAQ;CAC/D,MAAM,YAAY,UAAU,OAAO,SAAS,WAAW;CAEvD,MAAM,eAAe,OAAO,OAC1B;EACE,SAAS,MAAM,iBAAiB,CAAC,UAAU,KAAK;EAChD,iBAAiB;EACjB,iBAAiB;EACjB,GAAI,SACA,EACE,gBAAgB,SACjB,IACD,CAAE;CACP,GACD,KACD;AAED,wBAAO,IAAC;EAAe;EAAK,GAAI;GAAgB;AACjD"}
|
package/dist/{popover-trigger-context-DQy9nKB2.d.ts → popover-trigger-context-B_lI5ACl.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime47 from "react/jsx-runtime";
|
|
2
|
+
import * as react46 from "react";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/popover-trigger-context.d.ts
|
|
6
|
-
declare const Context:
|
|
6
|
+
declare const Context: react46.Context<{
|
|
7
7
|
popoverId?: string;
|
|
8
8
|
setPopoverId?: (id: string) => void;
|
|
9
9
|
popoverOpen?: boolean;
|
|
@@ -25,7 +25,7 @@ type PopoverTriggerContextProps = {
|
|
|
25
25
|
*/
|
|
26
26
|
declare const PopoverTriggerContext: ({
|
|
27
27
|
children
|
|
28
|
-
}: PopoverTriggerContextProps) =>
|
|
28
|
+
}: PopoverTriggerContextProps) => react_jsx_runtime47.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Context, PopoverTriggerContext, PopoverTriggerContextProps };
|
|
31
|
-
//# sourceMappingURL=popover-trigger-context-
|
|
31
|
+
//# sourceMappingURL=popover-trigger-context-B_lI5ACl.d.ts.map
|
package/dist/{popover-trigger-context-CNUJbbBn.js.map → popover-trigger-context-CGJlUS_N.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover-trigger-context-
|
|
1
|
+
{"version":3,"file":"popover-trigger-context-CGJlUS_N.js","names":[],"sources":["../src/components/popover/popover-trigger-context.tsx"],"sourcesContent":["import { 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\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 }: PopoverTriggerContextProps) => {\n const randomPopoverId = useId();\n const [popoverId, setPopoverId] = useState(randomPopoverId);\n const [popoverOpen, setPopoverOpen] = useState(false);\n\n return <Context value={{ popoverId, setPopoverId, popoverOpen, setPopoverOpen }}>{children}</Context>;\n};\n"],"mappings":";;;;AAGA,MAAa,UAAU,cAKpB,CAAE,EAAC;;;;;;;;;;;;AAiBN,MAAa,wBAAwB,CAAC,EAAE,UAAsC,KAAK;CACjF,MAAM,kBAAkB,OAAO;CAC/B,MAAM,CAAC,WAAW,aAAa,GAAG,SAAS,gBAAgB;CAC3D,MAAM,CAAC,aAAa,eAAe,GAAG,SAAS,MAAM;AAErD,wBAAO,IAAC;EAAQ,OAAO;GAAE;GAAW;GAAc;GAAa;EAAgB;EAAG;GAAmB;AACtG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Field } from "./field-
|
|
1
|
+
import { Field } from "./field-DFMMLG-d.js";
|
|
2
2
|
import { FieldDescription } from "./field-description-Dhm1VA08.js";
|
|
3
3
|
import { Input } from "./input-Dr7BnTyd.js";
|
|
4
4
|
import { Label } from "./label-DUzvAx-T.js";
|
|
@@ -6,13 +6,14 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { useId } from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/components/radio/radio.tsx
|
|
9
|
-
const Radio = ({ dark, label, description, error, style, className, ref, id, "aria-describedby": ariaDescribedByProp,...props }) => {
|
|
9
|
+
const Radio = ({ dark, label, description, error, fullwidth, style, className, ref, id, "aria-describedby": ariaDescribedByProp,...props }) => {
|
|
10
10
|
const descriptionId = useId();
|
|
11
11
|
const ariaDescribedBy = [description ? descriptionId : "", ariaDescribedByProp].join(" ").trim() || void 0;
|
|
12
12
|
return /* @__PURE__ */ jsx(Field, {
|
|
13
13
|
className,
|
|
14
14
|
"data-dark": dark,
|
|
15
15
|
style,
|
|
16
|
+
fullwidth,
|
|
16
17
|
asChild: true,
|
|
17
18
|
children: /* @__PURE__ */ jsxs("label", { children: [
|
|
18
19
|
/* @__PURE__ */ jsx(Input, {
|
|
@@ -40,4 +41,4 @@ const Radio = ({ dark, label, description, error, style, className, ref, id, "ar
|
|
|
40
41
|
|
|
41
42
|
//#endregion
|
|
42
43
|
export { Radio };
|
|
43
|
-
//# sourceMappingURL=radio-
|
|
44
|
+
//# sourceMappingURL=radio-ulWuU7RE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-ulWuU7RE.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 {...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,QAAQ,CAAC,EACpB,MACA,OACA,aACA,OACA,WACA,OACA,WACA,KACA,IACA,oBAAoB,oBACpB,GAAG,OACQ,KAAK;CAChB,MAAM,gBAAgB,OAAO;CAE7B,MAAM,kBAAkB,CAAC,cAAc,gBAAgB,IAAI,mBAAoB,EAAC,KAAK,IAAI,CAAC,MAAM;AAEhG,wBACE,IAAC;EAAiB;EAAW,aAAW;EAAa;EAAkB;EAAW;4BAChF,KAAC;mBACC,IAAC;IACC,MAAK;IACD;IACC;IACL,gBAAc;IACd,oBAAkB;IAClB,GAAI;KACJ;GACD,yBACC,IAAC;IAAM,QAAO;IAAS,SAAS;IAAI;8BAClC,IAAC,oBAAM,QAAa;KACd;GAET,+BAGC,IAAC;IAAiB,eAAY;IAAO,IAAI;cACtC;KACgB;MAEf;GACF;AAEX"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button } from "./button-fhd-JARc.js";
|
|
2
|
-
import { Field } from "./field-
|
|
2
|
+
import { Field } from "./field-DFMMLG-d.js";
|
|
3
3
|
import { FieldAffix, FieldAffixes } from "./field-affix-npc6m7XL.js";
|
|
4
4
|
import { Input } from "./input-Dr7BnTyd.js";
|
|
5
5
|
import clsx from "clsx/lite";
|
|
@@ -7,7 +7,7 @@ import { BiIconCrossSmall, BiIconMagnefyingGlass } from "@bi-digital/icons-react
|
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
9
|
//#region src/components/search/search.tsx
|
|
10
|
-
const Search = ({ className, onSubmit, clearAriaLabel = "Clear", size = "medium", ref, dark, style,...props }) => {
|
|
10
|
+
const Search = ({ className, onSubmit, onReset, clearAriaLabel = "Clear", size = "medium", ref, dark, style,...props }) => {
|
|
11
11
|
const handleSubmit = (e) => {
|
|
12
12
|
e.preventDefault();
|
|
13
13
|
if (onSubmit) {
|
|
@@ -15,6 +15,9 @@ const Search = ({ className, onSubmit, clearAriaLabel = "Clear", size = "medium"
|
|
|
15
15
|
onSubmit(input?.value || "");
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
+
const handleReset = () => {
|
|
19
|
+
if (onReset) onReset("");
|
|
20
|
+
};
|
|
18
21
|
return /* @__PURE__ */ jsx(Field, {
|
|
19
22
|
className: clsx("bi-search", className),
|
|
20
23
|
"data-dark": dark,
|
|
@@ -22,6 +25,7 @@ const Search = ({ className, onSubmit, clearAriaLabel = "Clear", size = "medium"
|
|
|
22
25
|
asChild: true,
|
|
23
26
|
children: /* @__PURE__ */ jsx("form", {
|
|
24
27
|
onSubmit: handleSubmit,
|
|
28
|
+
onReset: handleReset,
|
|
25
29
|
children: /* @__PURE__ */ jsxs(FieldAffixes, { children: [
|
|
26
30
|
/* @__PURE__ */ jsx(FieldAffix, { children: /* @__PURE__ */ jsx(BiIconMagnefyingGlass, { size }) }),
|
|
27
31
|
/* @__PURE__ */ jsx(Input, {
|
|
@@ -52,4 +56,4 @@ const Search = ({ className, onSubmit, clearAriaLabel = "Clear", size = "medium"
|
|
|
52
56
|
|
|
53
57
|
//#endregion
|
|
54
58
|
export { Search };
|
|
55
|
-
//# sourceMappingURL=search-
|
|
59
|
+
//# sourceMappingURL=search-Cqnboh3z.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-Cqnboh3z.js","names":["e: React.FormEvent<HTMLFormElement>"],"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 { BiIconCrossSmall, BiIconMagnefyingGlass } from '@bi-digital/icons-react';\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 }\n>;\n\nexport const Search = ({\n className,\n onSubmit,\n onReset,\n clearAriaLabel = 'Clear',\n size = 'medium',\n ref,\n dark,\n style,\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} asChild>\n <form onSubmit={handleSubmit} onReset={handleReset}>\n <FieldAffixes>\n <FieldAffix>\n <BiIconMagnefyingGlass size={size} />\n </FieldAffix>\n <Input type='text' ref={ref} size={size} {...props} />\n <FieldAffix aria-hidden='false'>\n <Button aria-label={clearAriaLabel} icon size={size} dark={dark} variant='text' type='reset'>\n <BiIconCrossSmall size={size} aria-hidden='true' />\n </Button>\n </FieldAffix>\n </FieldAffixes>\n </form>\n </Field>\n );\n};\n"],"mappings":";;;;;;;;;AA2BA,MAAa,SAAS,CAAC,EACrB,WACA,UACA,SACA,iBAAiB,SACjB,OAAO,UACP,KACA,MACA,MACA,GAAG,OACS,KAAK;CACjB,MAAM,eAAe,CAACA,MAAwC;AAC5D,IAAE,gBAAgB;AAClB,MAAI,UAAU;GACZ,MAAM,QAAQ,EAAE,cAAc,cAAc,QAAQ;AACpD,YAAS,OAAO,SAAS,GAAG;EAC7B;CACF;CACD,MAAM,cAAc,MAAM;AACxB,MAAI,QACF,SAAQ,GAAG;CAEd;AACD,wBACE,IAAC;EAAM,WAAW,KAAK,aAAa,UAAU;EAAE,aAAW;EAAa;EAAO;4BAC7E,IAAC;GAAK,UAAU;GAAc,SAAS;6BACrC,KAAC;oBACC,IAAC,wCACC,IAAC,yBAA4B,OAAQ,GAC1B;oBACb,IAAC;KAAM,MAAK;KAAY;KAAW;KAAM,GAAI;MAAS;oBACtD,IAAC;KAAW,eAAY;+BACtB,IAAC;MAAO,cAAY;MAAgB;MAAW;MAAY;MAAM,SAAQ;MAAO,MAAK;gCACnF,IAAC;OAAuB;OAAM,eAAY;QAAS;OAC5C;MACE;OACA;IACV;GACD;AAEX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-
|
|
1
|
+
{"version":3,"file":"select-DCZV6wZu.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,SAAS,CAAC,EAAE,WAAW,MAAM,WAAW,aAAa,MAAM,IAAK,GAAG,OAAoB,KAAK;AACvG,wBACE,IAAC;EACC,WAAW,KAAK,YAAY,UAAU;EACtC,aAAW;EACX,aAAW;EACN;EACL,WAAW,CAAC,UAAU;AACpB,OAAI,MAAM,QAAQ,MAAO;AACzB,OAAI,MAAM,SAAU,OAAM,gBAAgB;AAC1C,eAAY,MAAM;EACnB;EACD,aAAa,CAAC,UAAU;AACtB,OAAI,MAAM,SAAU,OAAM,gBAAgB;AAC1C,iBAAc,MAAM;EACrB;EACD,GAAI;GACJ;AAEL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-optgroup-
|
|
1
|
+
{"version":3,"file":"select-optgroup-BUaB9Yz-.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,iBAAiB,CAAC,EAAE,SAAS,IAAK,GAAG,OAA4B,KAAK;CACjF,MAAM,YAAY,UAAU,OAAO;AACnC,wBAAO,IAAC;EAAU,GAAI;EAAY;GAAO;AAC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-option-
|
|
1
|
+
{"version":3,"file":"select-option-BByWq34J.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,eAAe,CAAC,EAAE,SAAS,IAAK,GAAG,OAA0B,KAAK;CAC7E,MAAM,YAAY,UAAU,OAAO;AACnC,wBAAO,IAAC;EAAU,GAAI;EAAY;GAAO;AAC1C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import clsx from "clsx/lite";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/components/skip-link/skip-link.tsx
|
|
6
|
+
const SkipLink = ({ asChild, children, className, dark,...props }) => {
|
|
7
|
+
const Component = asChild ? Slot : "a";
|
|
8
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
9
|
+
className: clsx("bi-skip-link", className),
|
|
10
|
+
"data-dark": dark,
|
|
11
|
+
...props,
|
|
12
|
+
children
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SkipLink };
|
|
18
|
+
//# sourceMappingURL=skip-link-DwuiIAvE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skip-link-DwuiIAvE.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,WAAW,CAAC,EAAE,SAAS,UAAU,WAAW,KAAM,GAAG,OAAsB,KAAK;CAC3F,MAAM,YAAY,UAAU,OAAO;AACnC,wBACE,IAAC;EAAU,WAAW,KAAK,gBAAgB,UAAU;EAAE,aAAW;EAAM,GAAI;EACzE;GACS;AAEf"}
|