@ariakit/react-core 0.0.1 → 0.1.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/.eslintignore +6 -0
- package/CHANGELOG.md +26 -0
- package/button/button/package.json +7 -0
- package/checkbox/checkbox/package.json +7 -0
- package/checkbox/checkbox-check/package.json +7 -0
- package/checkbox/checkbox-checked-context/package.json +7 -0
- package/checkbox/checkbox-store/package.json +7 -0
- package/cjs/__chunks/22VQR3WC.cjs +30 -0
- package/cjs/__chunks/2WZVSPAI.cjs +13 -0
- package/cjs/__chunks/2X5K3J7Y.cjs +12 -0
- package/cjs/__chunks/2ZU7T6CD.cjs +104 -0
- package/cjs/__chunks/3QEUUQVB.cjs +57 -0
- package/cjs/__chunks/3RC6Q4WI.cjs +158 -0
- package/cjs/__chunks/44UMDBZE.cjs +354 -0
- package/cjs/__chunks/4K6QJIPX.cjs +6 -0
- package/cjs/__chunks/56QOFCPO.cjs +9 -0
- package/cjs/__chunks/5EIZ4QQ7.cjs +29 -0
- package/cjs/__chunks/5LMWS5O4.cjs +27 -0
- package/cjs/__chunks/5QY4WCTR.cjs +259 -0
- package/cjs/__chunks/6622YWGR.cjs +83 -0
- package/cjs/__chunks/743OAGBP.cjs +73 -0
- package/cjs/__chunks/7AIJRTAH.cjs +30 -0
- package/cjs/__chunks/7JKSDWVF.cjs +7 -0
- package/cjs/__chunks/ABU7PK6G.cjs +182 -0
- package/cjs/__chunks/BJTWNJAP.cjs +31 -0
- package/cjs/__chunks/CE4N5VGL.cjs +28 -0
- package/cjs/__chunks/CMHDB7LY.cjs +96 -0
- package/cjs/__chunks/CQSUIL2D.cjs +7 -0
- package/cjs/__chunks/DARNBOHZ.cjs +62 -0
- package/cjs/__chunks/DCYFB2F3.cjs +28 -0
- package/cjs/__chunks/DGBC5VB4.cjs +39 -0
- package/cjs/__chunks/EE77OJ6W.cjs +30 -0
- package/cjs/__chunks/EFF3S3YM.cjs +41 -0
- package/cjs/__chunks/ESS3KXVE.cjs +9 -0
- package/cjs/__chunks/ET6BKYQA.cjs +29 -0
- package/cjs/__chunks/EWCMH6G3.cjs +138 -0
- package/cjs/__chunks/EZH72G5T.cjs +80 -0
- package/cjs/__chunks/F2O4M6DR.cjs +8 -0
- package/cjs/__chunks/F6IOE5QT.cjs +75 -0
- package/cjs/__chunks/FO6MB5HF.cjs +7 -0
- package/cjs/__chunks/GD6HHJCV.cjs +44 -0
- package/cjs/__chunks/GEJXRZB4.cjs +437 -0
- package/cjs/__chunks/GTWUFHVO.cjs +47 -0
- package/cjs/__chunks/GUYEUWH3.cjs +30 -0
- package/cjs/__chunks/GV5LATA3.cjs +326 -0
- package/cjs/__chunks/GWL7P7EG.cjs +28 -0
- package/cjs/__chunks/H5Z2A5K2.cjs +29 -0
- package/cjs/__chunks/HRWXWXME.cjs +7 -0
- package/cjs/__chunks/IVRU7X3P.cjs +213 -0
- package/cjs/__chunks/IYRMREW7.cjs +29 -0
- package/cjs/__chunks/IZT4J627.cjs +44 -0
- package/cjs/__chunks/K56WQU76.cjs +7 -0
- package/cjs/__chunks/KIZFPB5R.cjs +116 -0
- package/cjs/__chunks/KWHAB2F2.cjs +44 -0
- package/cjs/__chunks/LICOAFSX.cjs +56 -0
- package/cjs/__chunks/M4ATEGE4.cjs +30 -0
- package/cjs/__chunks/MAH7ORCZ.cjs +39 -0
- package/cjs/__chunks/MAVPFWFV.cjs +112 -0
- package/cjs/__chunks/MPFAD3UK.cjs +15 -0
- package/cjs/__chunks/N2VCZZLP.cjs +11 -0
- package/cjs/__chunks/ND6THRTE.cjs +28 -0
- package/cjs/__chunks/NJHMO3XK.cjs +24 -0
- package/cjs/__chunks/NS56XHXG.cjs +7 -0
- package/cjs/__chunks/NVMBKFRB.cjs +13 -0
- package/cjs/__chunks/NYVIJAIX.cjs +142 -0
- package/cjs/__chunks/OLGMV24U.cjs +87 -0
- package/cjs/__chunks/ORRE4SVW.cjs +31 -0
- package/cjs/__chunks/OSVJV44D.cjs +82 -0
- package/cjs/__chunks/OTRABJ4Y.cjs +7 -0
- package/cjs/__chunks/OVCUW432.cjs +98 -0
- package/cjs/__chunks/PV53XZQM.cjs +125 -0
- package/cjs/__chunks/QRBTWQPI.cjs +123 -0
- package/cjs/__chunks/QTUC5TMJ.cjs +74 -0
- package/cjs/__chunks/R6BI5EIU.cjs +28 -0
- package/cjs/__chunks/RCGSDYWJ.cjs +9 -0
- package/cjs/__chunks/RDNP4FTV.cjs +30 -0
- package/cjs/__chunks/RG6JXX7T.cjs +39 -0
- package/cjs/__chunks/RLMRI6EX.cjs +45 -0
- package/cjs/__chunks/S6SU42H5.cjs +30 -0
- package/cjs/__chunks/SOPRUU56.cjs +19 -0
- package/cjs/__chunks/SWSQUGVG.cjs +108 -0
- package/cjs/__chunks/T4TB3AAZ.cjs +92 -0
- package/cjs/__chunks/TBYPXZ5H.cjs +102 -0
- package/cjs/__chunks/TIVUAJD3.cjs +337 -0
- package/cjs/__chunks/TZSSCEPY.cjs +55 -0
- package/cjs/__chunks/UHVME3EZ.cjs +46 -0
- package/cjs/__chunks/UIUFH5TV.cjs +41 -0
- package/cjs/__chunks/UYIFJ7U3.cjs +53 -0
- package/cjs/__chunks/VSKE43XZ.cjs +76 -0
- package/cjs/__chunks/VXIYZJTU.cjs +28 -0
- package/cjs/__chunks/W2ODSL37.cjs +130 -0
- package/cjs/__chunks/W5PBA4D6.cjs +9 -0
- package/cjs/__chunks/WPKIYKH6.cjs +290 -0
- package/cjs/__chunks/WYGT6WVD.cjs +51 -0
- package/cjs/__chunks/X2GXTE3P.cjs +21 -0
- package/cjs/__chunks/XFVLDGPP.cjs +31 -0
- package/cjs/__chunks/XKBGBOWQ.cjs +174 -0
- package/cjs/__chunks/Y5DDEPH5.cjs +67 -0
- package/cjs/__chunks/YAJKVIK2.cjs +116 -0
- package/cjs/__chunks/YHG3KGFW.cjs +28 -0
- package/cjs/__chunks/YITIRUCT.cjs +28 -0
- package/cjs/__chunks/ZNVMDYMM.cjs +78 -0
- package/cjs/__chunks/ZQAFJQIS.cjs +9 -0
- package/cjs/button/button.cjs +13 -0
- package/cjs/button/button.d.ts +26 -0
- package/cjs/checkbox/checkbox-check.cjs +10 -0
- package/cjs/checkbox/checkbox-check.d.ts +37 -0
- package/cjs/checkbox/checkbox-checked-context.cjs +6 -0
- package/cjs/checkbox/checkbox-checked-context.d.ts +1 -0
- package/cjs/checkbox/checkbox-store.cjs +13 -0
- package/cjs/checkbox/checkbox-store.d.ts +36 -0
- package/cjs/checkbox/checkbox.cjs +15 -0
- package/cjs/checkbox/checkbox.d.ts +65 -0
- package/cjs/collection/collection-context.cjs +6 -0
- package/cjs/collection/collection-context.d.ts +5 -0
- package/cjs/collection/collection-item.cjs +12 -0
- package/cjs/collection/collection-item.d.ts +55 -0
- package/cjs/collection/collection-store.cjs +13 -0
- package/cjs/collection/collection-store.d.ts +39 -0
- package/cjs/collection/collection.cjs +36 -0
- package/cjs/collection/collection.d.ts +42 -0
- package/cjs/combobox/combobox-cancel.cjs +75 -0
- package/cjs/combobox/combobox-cancel.d.ts +39 -0
- package/cjs/combobox/combobox-context.cjs +8 -0
- package/cjs/combobox/combobox-context.d.ts +3 -0
- package/cjs/combobox/combobox-disclosure.cjs +80 -0
- package/cjs/combobox/combobox-disclosure.d.ts +45 -0
- package/cjs/combobox/combobox-group-label.cjs +33 -0
- package/cjs/combobox/combobox-group-label.d.ts +43 -0
- package/cjs/combobox/combobox-group.cjs +29 -0
- package/cjs/combobox/combobox-group.d.ts +46 -0
- package/cjs/combobox/combobox-item-value.cjs +77 -0
- package/cjs/combobox/combobox-item-value.d.ts +64 -0
- package/cjs/combobox/combobox-item.cjs +151 -0
- package/cjs/combobox/combobox-item.d.ts +69 -0
- package/cjs/combobox/combobox-list.cjs +12 -0
- package/cjs/combobox/combobox-list.d.ts +42 -0
- package/cjs/combobox/combobox-popover.cjs +94 -0
- package/cjs/combobox/combobox-popover.d.ts +39 -0
- package/cjs/combobox/combobox-row.cjs +46 -0
- package/cjs/combobox/combobox-row.d.ts +50 -0
- package/cjs/combobox/combobox-separator.cjs +42 -0
- package/cjs/combobox/combobox-separator.d.ts +43 -0
- package/cjs/combobox/combobox-store.cjs +44 -0
- package/cjs/combobox/combobox-store.d.ts +81 -0
- package/cjs/combobox/combobox.cjs +324 -0
- package/cjs/combobox/combobox.d.ts +124 -0
- package/cjs/command/command.cjs +12 -0
- package/cjs/command/command.d.ts +38 -0
- package/cjs/composite/composite-container.cjs +14 -0
- package/cjs/composite/composite-container.d.ts +44 -0
- package/cjs/composite/composite-context.cjs +10 -0
- package/cjs/composite/composite-context.d.ts +9 -0
- package/cjs/composite/composite-group-label.cjs +13 -0
- package/cjs/composite/composite-group-label.d.ts +42 -0
- package/cjs/composite/composite-group.cjs +13 -0
- package/cjs/composite/composite-group.d.ts +44 -0
- package/cjs/composite/composite-hover.cjs +12 -0
- package/cjs/composite/composite-hover.d.ts +47 -0
- package/cjs/composite/composite-input.cjs +12 -0
- package/cjs/composite/composite-input.d.ts +39 -0
- package/cjs/composite/composite-item.cjs +17 -0
- package/cjs/composite/composite-item.d.ts +56 -0
- package/cjs/composite/composite-overflow-disclosure.cjs +74 -0
- package/cjs/composite/composite-overflow-disclosure.d.ts +45 -0
- package/cjs/composite/composite-overflow-store.cjs +32 -0
- package/cjs/composite/composite-overflow-store.d.ts +46 -0
- package/cjs/composite/composite-overflow.cjs +97 -0
- package/cjs/composite/composite-overflow.d.ts +46 -0
- package/cjs/composite/composite-row.cjs +12 -0
- package/cjs/composite/composite-row.d.ts +52 -0
- package/cjs/composite/composite-separator.cjs +11 -0
- package/cjs/composite/composite-separator.d.ts +40 -0
- package/cjs/composite/composite-store.cjs +14 -0
- package/cjs/composite/composite-store.d.ts +40 -0
- package/cjs/composite/composite-typeahead.cjs +13 -0
- package/cjs/composite/composite-typeahead.d.ts +43 -0
- package/cjs/composite/composite.cjs +14 -0
- package/cjs/composite/composite.d.ts +74 -0
- package/cjs/composite/utils.cjs +20 -0
- package/cjs/composite/utils.d.ts +69 -0
- package/cjs/dialog/dialog-backdrop.cjs +11 -0
- package/cjs/dialog/dialog-backdrop.d.ts +7 -0
- package/cjs/dialog/dialog-context.cjs +10 -0
- package/cjs/dialog/dialog-context.d.ts +5 -0
- package/cjs/dialog/dialog-description.cjs +12 -0
- package/cjs/dialog/dialog-description.d.ts +37 -0
- package/cjs/dialog/dialog-disclosure.cjs +15 -0
- package/cjs/dialog/dialog-disclosure.d.ts +33 -0
- package/cjs/dialog/dialog-dismiss.cjs +15 -0
- package/cjs/dialog/dialog-dismiss.d.ts +35 -0
- package/cjs/dialog/dialog-heading.cjs +14 -0
- package/cjs/dialog/dialog-heading.d.ts +37 -0
- package/cjs/dialog/dialog-store.cjs +14 -0
- package/cjs/dialog/dialog-store.d.ts +24 -0
- package/cjs/dialog/dialog.cjs +32 -0
- package/cjs/dialog/dialog.d.ts +120 -0
- package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +7 -0
- package/cjs/dialog/utils/disable-accessibility-tree-outside.d.ts +3 -0
- package/cjs/dialog/utils/disable-pointer-events-outside.cjs +7 -0
- package/cjs/dialog/utils/disable-pointer-events-outside.d.ts +3 -0
- package/cjs/dialog/utils/prepend-hidden-dismiss.cjs +6 -0
- package/cjs/dialog/utils/prepend-hidden-dismiss.d.ts +1 -0
- package/cjs/dialog/utils/use-champion-dialog.cjs +8 -0
- package/cjs/dialog/utils/use-champion-dialog.d.ts +6 -0
- package/cjs/dialog/utils/use-focus-on-child-unmount.cjs +6 -0
- package/cjs/dialog/utils/use-focus-on-child-unmount.d.ts +6 -0
- package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +9 -0
- package/cjs/dialog/utils/use-hide-on-interact-outside.d.ts +6 -0
- package/cjs/dialog/utils/use-nested-dialogs.cjs +8 -0
- package/cjs/dialog/utils/use-nested-dialogs.d.ts +10 -0
- package/cjs/dialog/utils/use-prevent-body-scroll.cjs +9 -0
- package/cjs/dialog/utils/use-prevent-body-scroll.d.ts +2 -0
- package/cjs/dialog/utils/use-previous-mouse-down-ref.cjs +6 -0
- package/cjs/dialog/utils/use-previous-mouse-down-ref.d.ts +1 -0
- package/cjs/dialog/utils/walk-tree-outside.cjs +8 -0
- package/cjs/dialog/utils/walk-tree-outside.d.ts +4 -0
- package/cjs/disclosure/disclosure-content.cjs +11 -0
- package/cjs/disclosure/disclosure-content.d.ts +32 -0
- package/cjs/disclosure/disclosure-store.cjs +13 -0
- package/cjs/disclosure/disclosure-store.d.ts +29 -0
- package/cjs/disclosure/disclosure.cjs +14 -0
- package/cjs/disclosure/disclosure.d.ts +42 -0
- package/cjs/focus-trap/focus-trap-region.cjs +13 -0
- package/cjs/focus-trap/focus-trap-region.d.ts +32 -0
- package/cjs/focus-trap/focus-trap.cjs +10 -0
- package/cjs/focus-trap/focus-trap.d.ts +23 -0
- package/cjs/focusable/focusable.cjs +11 -0
- package/cjs/focusable/focusable.d.ts +65 -0
- package/cjs/form/form-checkbox.cjs +65 -0
- package/cjs/form/form-checkbox.d.ts +37 -0
- package/cjs/form/form-context.cjs +6 -0
- package/cjs/form/form-context.d.ts +2 -0
- package/cjs/form/form-description.cjs +69 -0
- package/cjs/form/form-description.d.ts +47 -0
- package/cjs/form/form-error.cjs +72 -0
- package/cjs/form/form-error.d.ts +60 -0
- package/cjs/form/form-field.cjs +14 -0
- package/cjs/form/form-field.d.ts +72 -0
- package/cjs/form/form-group-label.cjs +32 -0
- package/cjs/form/form-group-label.d.ts +49 -0
- package/cjs/form/form-group.cjs +13 -0
- package/cjs/form/form-group.d.ts +49 -0
- package/cjs/form/form-input.cjs +62 -0
- package/cjs/form/form-input.d.ts +37 -0
- package/cjs/form/form-label.cjs +102 -0
- package/cjs/form/form-label.d.ts +51 -0
- package/cjs/form/form-push.cjs +109 -0
- package/cjs/form/form-push.d.ts +77 -0
- package/cjs/form/form-radio-group.cjs +34 -0
- package/cjs/form/form-radio-group.d.ts +39 -0
- package/cjs/form/form-radio.cjs +77 -0
- package/cjs/form/form-radio.d.ts +43 -0
- package/cjs/form/form-remove.cjs +92 -0
- package/cjs/form/form-remove.d.ts +76 -0
- package/cjs/form/form-reset.cjs +47 -0
- package/cjs/form/form-reset.d.ts +36 -0
- package/cjs/form/form-store.cjs +53 -0
- package/cjs/form/form-store.d.ts +104 -0
- package/cjs/form/form-submit.cjs +47 -0
- package/cjs/form/form-submit.d.ts +40 -0
- package/cjs/form/form.cjs +141 -0
- package/cjs/form/form.d.ts +63 -0
- package/cjs/group/group-label-context.cjs +6 -0
- package/cjs/group/group-label-context.d.ts +2 -0
- package/cjs/group/group-label.cjs +12 -0
- package/cjs/group/group-label.d.ts +28 -0
- package/cjs/group/group.cjs +12 -0
- package/cjs/group/group.d.ts +22 -0
- package/cjs/heading/heading-context.cjs +6 -0
- package/cjs/heading/heading-context.d.ts +2 -0
- package/cjs/heading/heading-level.cjs +7 -0
- package/cjs/heading/heading-level.d.ts +25 -0
- package/cjs/heading/heading.cjs +12 -0
- package/cjs/heading/heading.d.ts +34 -0
- package/cjs/heading/utils.cjs +1 -0
- package/cjs/heading/utils.d.ts +1 -0
- package/cjs/hovercard/hovercard-anchor.cjs +12 -0
- package/cjs/hovercard/hovercard-anchor.d.ts +40 -0
- package/cjs/hovercard/hovercard-arrow.cjs +31 -0
- package/cjs/hovercard/hovercard-arrow.d.ts +39 -0
- package/cjs/hovercard/hovercard-description.cjs +14 -0
- package/cjs/hovercard/hovercard-description.d.ts +38 -0
- package/cjs/hovercard/hovercard-disclosure.cjs +133 -0
- package/cjs/hovercard/hovercard-disclosure.d.ts +37 -0
- package/cjs/hovercard/hovercard-dismiss.cjs +17 -0
- package/cjs/hovercard/hovercard-dismiss.d.ts +36 -0
- package/cjs/hovercard/hovercard-heading.cjs +16 -0
- package/cjs/hovercard/hovercard-heading.d.ts +38 -0
- package/cjs/hovercard/hovercard-store.cjs +16 -0
- package/cjs/hovercard/hovercard-store.d.ts +36 -0
- package/cjs/hovercard/hovercard.cjs +36 -0
- package/cjs/hovercard/hovercard.d.ts +63 -0
- package/cjs/hovercard/utils/__tests__/polygon-test.d.ts +1 -0
- package/cjs/hovercard/utils/debug-polygon.cjs +36 -0
- package/cjs/hovercard/utils/debug-polygon.d.ts +2 -0
- package/cjs/hovercard/utils/polygon.cjs +10 -0
- package/cjs/hovercard/utils/polygon.d.ts +5 -0
- package/cjs/index.cjs +5 -0
- package/cjs/index.d.ts +2 -0
- package/cjs/menu/menu-arrow.cjs +28 -0
- package/cjs/menu/menu-arrow.d.ts +38 -0
- package/cjs/menu/menu-bar-store.cjs +31 -0
- package/cjs/menu/menu-bar-store.d.ts +30 -0
- package/cjs/menu/menu-bar.cjs +53 -0
- package/cjs/menu/menu-bar.d.ts +61 -0
- package/cjs/menu/menu-button-arrow.cjs +30 -0
- package/cjs/menu/menu-button-arrow.d.ts +47 -0
- package/cjs/menu/menu-button.cjs +177 -0
- package/cjs/menu/menu-button.d.ts +50 -0
- package/cjs/menu/menu-context.cjs +10 -0
- package/cjs/menu/menu-context.d.ts +5 -0
- package/cjs/menu/menu-description.cjs +34 -0
- package/cjs/menu/menu-description.d.ts +37 -0
- package/cjs/menu/menu-dismiss.cjs +33 -0
- package/cjs/menu/menu-dismiss.d.ts +36 -0
- package/cjs/menu/menu-group-label.cjs +31 -0
- package/cjs/menu/menu-group-label.d.ts +42 -0
- package/cjs/menu/menu-group.cjs +29 -0
- package/cjs/menu/menu-group.d.ts +45 -0
- package/cjs/menu/menu-heading.cjs +32 -0
- package/cjs/menu/menu-heading.d.ts +37 -0
- package/cjs/menu/menu-item-check.cjs +34 -0
- package/cjs/menu/menu-item-check.d.ts +44 -0
- package/cjs/menu/menu-item-checkbox.cjs +68 -0
- package/cjs/menu/menu-item-checkbox.d.ts +47 -0
- package/cjs/menu/menu-item-radio.cjs +91 -0
- package/cjs/menu/menu-item-radio.d.ts +54 -0
- package/cjs/menu/menu-item.cjs +22 -0
- package/cjs/menu/menu-item.d.ts +55 -0
- package/cjs/menu/menu-list.cjs +18 -0
- package/cjs/menu/menu-list.d.ts +40 -0
- package/cjs/menu/menu-separator.cjs +27 -0
- package/cjs/menu/menu-separator.d.ts +44 -0
- package/cjs/menu/menu-store.cjs +73 -0
- package/cjs/menu/menu-store.d.ts +86 -0
- package/cjs/menu/menu.cjs +182 -0
- package/cjs/menu/menu.d.ts +35 -0
- package/cjs/menu/utils.cjs +6 -0
- package/cjs/menu/utils.d.ts +2 -0
- package/cjs/popover/popover-anchor.cjs +11 -0
- package/cjs/popover/popover-anchor.d.ts +33 -0
- package/cjs/popover/popover-arrow-path.cjs +6 -0
- package/cjs/popover/popover-arrow-path.d.ts +1 -0
- package/cjs/popover/popover-arrow.cjs +13 -0
- package/cjs/popover/popover-arrow.d.ts +42 -0
- package/cjs/popover/popover-context.cjs +6 -0
- package/cjs/popover/popover-context.d.ts +2 -0
- package/cjs/popover/popover-description.cjs +13 -0
- package/cjs/popover/popover-description.d.ts +38 -0
- package/cjs/popover/popover-disclosure-arrow.cjs +10 -0
- package/cjs/popover/popover-disclosure-arrow.d.ts +44 -0
- package/cjs/popover/popover-disclosure.cjs +18 -0
- package/cjs/popover/popover-disclosure.d.ts +29 -0
- package/cjs/popover/popover-dismiss.cjs +16 -0
- package/cjs/popover/popover-dismiss.d.ts +36 -0
- package/cjs/popover/popover-heading.cjs +15 -0
- package/cjs/popover/popover-heading.d.ts +37 -0
- package/cjs/popover/popover-store.cjs +15 -0
- package/cjs/popover/popover-store.d.ts +36 -0
- package/cjs/popover/popover.cjs +34 -0
- package/cjs/popover/popover.d.ts +38 -0
- package/cjs/portal/portal-context.cjs +6 -0
- package/cjs/portal/portal-context.d.ts +17 -0
- package/cjs/portal/portal.cjs +14 -0
- package/cjs/portal/portal.d.ts +64 -0
- package/cjs/radio/radio-context.cjs +6 -0
- package/cjs/radio/radio-context.d.ts +2 -0
- package/cjs/radio/radio-group.cjs +47 -0
- package/cjs/radio/radio-group.d.ts +37 -0
- package/cjs/radio/radio-store.cjs +32 -0
- package/cjs/radio/radio-store.d.ts +42 -0
- package/cjs/radio/radio.cjs +20 -0
- package/cjs/radio/radio.d.ts +52 -0
- package/cjs/role/role.cjs +20 -0
- package/cjs/role/role.d.ts +24 -0
- package/cjs/select/select-arrow.cjs +11 -0
- package/cjs/select/select-arrow.d.ts +47 -0
- package/cjs/select/select-context.cjs +8 -0
- package/cjs/select/select-context.d.ts +3 -0
- package/cjs/select/select-group-label.cjs +33 -0
- package/cjs/select/select-group-label.d.ts +48 -0
- package/cjs/select/select-group.cjs +29 -0
- package/cjs/select/select-group.d.ts +46 -0
- package/cjs/select/select-item-check.cjs +36 -0
- package/cjs/select/select-item-check.d.ts +51 -0
- package/cjs/select/select-item.cjs +168 -0
- package/cjs/select/select-item.d.ts +74 -0
- package/cjs/select/select-label.cjs +51 -0
- package/cjs/select/select-label.d.ts +43 -0
- package/cjs/select/select-list.cjs +17 -0
- package/cjs/select/select-list.d.ts +57 -0
- package/cjs/select/select-popover.cjs +61 -0
- package/cjs/select/select-popover.d.ts +36 -0
- package/cjs/select/select-row.cjs +46 -0
- package/cjs/select/select-row.d.ts +47 -0
- package/cjs/select/select-separator.cjs +31 -0
- package/cjs/select/select-separator.d.ts +43 -0
- package/cjs/select/select-store.cjs +44 -0
- package/cjs/select/select-store.d.ts +86 -0
- package/cjs/select/select.cjs +248 -0
- package/cjs/select/select.d.ts +64 -0
- package/cjs/separator/separator.cjs +9 -0
- package/cjs/separator/separator.d.ts +28 -0
- package/cjs/tab/tab-context.cjs +6 -0
- package/cjs/tab/tab-context.d.ts +2 -0
- package/cjs/tab/tab-list.cjs +49 -0
- package/cjs/tab/tab-list.d.ts +41 -0
- package/cjs/tab/tab-panel.cjs +81 -0
- package/cjs/tab/tab-panel.d.ts +46 -0
- package/cjs/tab/tab-store.cjs +35 -0
- package/cjs/tab/tab-store.d.ts +60 -0
- package/cjs/tab/tab.cjs +92 -0
- package/cjs/tab/tab.d.ts +45 -0
- package/cjs/toolbar/toolbar-container.cjs +43 -0
- package/cjs/toolbar/toolbar-container.d.ts +35 -0
- package/cjs/toolbar/toolbar-context.cjs +6 -0
- package/cjs/toolbar/toolbar-context.d.ts +2 -0
- package/cjs/toolbar/toolbar-input.cjs +42 -0
- package/cjs/toolbar/toolbar-input.d.ts +31 -0
- package/cjs/toolbar/toolbar-item.cjs +18 -0
- package/cjs/toolbar/toolbar-item.d.ts +36 -0
- package/cjs/toolbar/toolbar-separator.cjs +31 -0
- package/cjs/toolbar/toolbar-separator.d.ts +40 -0
- package/cjs/toolbar/toolbar-store.cjs +31 -0
- package/cjs/toolbar/toolbar-store.d.ts +34 -0
- package/cjs/toolbar/toolbar.cjs +49 -0
- package/cjs/toolbar/toolbar.d.ts +37 -0
- package/cjs/tooltip/tooltip-anchor.cjs +72 -0
- package/cjs/tooltip/tooltip-anchor.d.ts +51 -0
- package/cjs/tooltip/tooltip-arrow.cjs +42 -0
- package/cjs/tooltip/tooltip-arrow.d.ts +40 -0
- package/cjs/tooltip/tooltip-context.cjs +6 -0
- package/cjs/tooltip/tooltip-context.d.ts +2 -0
- package/cjs/tooltip/tooltip-store.cjs +32 -0
- package/cjs/tooltip/tooltip-store.d.ts +36 -0
- package/cjs/tooltip/tooltip.cjs +111 -0
- package/cjs/tooltip/tooltip.d.ts +56 -0
- package/cjs/tsconfig.build.tsbuildinfo +1 -0
- package/cjs/utils/hooks.cjs +43 -0
- package/cjs/utils/hooks.d.ts +125 -0
- package/cjs/utils/misc.cjs +6 -0
- package/cjs/utils/misc.d.ts +5 -0
- package/cjs/utils/store.cjs +12 -0
- package/cjs/utils/store.d.ts +77 -0
- package/cjs/utils/system.cjs +12 -0
- package/cjs/utils/system.d.ts +74 -0
- package/cjs/utils/types.cjs +1 -0
- package/cjs/utils/types.d.ts +73 -0
- package/cjs/visually-hidden/visually-hidden.cjs +9 -0
- package/cjs/visually-hidden/visually-hidden.d.ts +29 -0
- package/collection/collection/package.json +7 -0
- package/collection/collection-context/package.json +7 -0
- package/collection/collection-item/package.json +7 -0
- package/collection/collection-store/package.json +7 -0
- package/combobox/combobox/package.json +7 -0
- package/combobox/combobox-cancel/package.json +7 -0
- package/combobox/combobox-context/package.json +7 -0
- package/combobox/combobox-disclosure/package.json +7 -0
- package/combobox/combobox-group/package.json +7 -0
- package/combobox/combobox-group-label/package.json +7 -0
- package/combobox/combobox-item/package.json +7 -0
- package/combobox/combobox-item-value/package.json +7 -0
- package/combobox/combobox-list/package.json +7 -0
- package/combobox/combobox-popover/package.json +7 -0
- package/combobox/combobox-row/package.json +7 -0
- package/combobox/combobox-separator/package.json +7 -0
- package/combobox/combobox-store/package.json +7 -0
- package/command/command/package.json +7 -0
- package/composite/composite/package.json +7 -0
- package/composite/composite-container/package.json +7 -0
- package/composite/composite-context/package.json +7 -0
- package/composite/composite-group/package.json +7 -0
- package/composite/composite-group-label/package.json +7 -0
- package/composite/composite-hover/package.json +7 -0
- package/composite/composite-input/package.json +7 -0
- package/composite/composite-item/package.json +7 -0
- package/composite/composite-overflow/package.json +7 -0
- package/composite/composite-overflow-disclosure/package.json +7 -0
- package/composite/composite-overflow-store/package.json +7 -0
- package/composite/composite-row/package.json +7 -0
- package/composite/composite-separator/package.json +7 -0
- package/composite/composite-store/package.json +7 -0
- package/composite/composite-typeahead/package.json +7 -0
- package/composite/utils/package.json +7 -0
- package/dialog/dialog/package.json +7 -0
- package/dialog/dialog-backdrop/package.json +7 -0
- package/dialog/dialog-context/package.json +7 -0
- package/dialog/dialog-description/package.json +7 -0
- package/dialog/dialog-disclosure/package.json +7 -0
- package/dialog/dialog-dismiss/package.json +7 -0
- package/dialog/dialog-heading/package.json +7 -0
- package/dialog/dialog-store/package.json +7 -0
- package/dialog/utils/disable-accessibility-tree-outside/package.json +7 -0
- package/dialog/utils/disable-pointer-events-outside/package.json +7 -0
- package/dialog/utils/prepend-hidden-dismiss/package.json +7 -0
- package/dialog/utils/use-champion-dialog/package.json +7 -0
- package/dialog/utils/use-focus-on-child-unmount/package.json +7 -0
- package/dialog/utils/use-hide-on-interact-outside/package.json +7 -0
- package/dialog/utils/use-nested-dialogs/package.json +7 -0
- package/dialog/utils/use-prevent-body-scroll/package.json +7 -0
- package/dialog/utils/use-previous-mouse-down-ref/package.json +7 -0
- package/dialog/utils/walk-tree-outside/package.json +7 -0
- package/disclosure/disclosure/package.json +7 -0
- package/disclosure/disclosure-content/package.json +7 -0
- package/disclosure/disclosure-store/package.json +7 -0
- package/esm/__chunks/2EP53RLR.js +39 -0
- package/esm/__chunks/2SVAPVVI.js +78 -0
- package/esm/__chunks/3OSYJZM5.js +213 -0
- package/esm/__chunks/47TE2UD5.js +29 -0
- package/esm/__chunks/4IVDKH63.js +82 -0
- package/esm/__chunks/4RNONDN5.js +142 -0
- package/esm/__chunks/4U6AOLE4.js +104 -0
- package/esm/__chunks/547F7FFZ.js +30 -0
- package/esm/__chunks/56XURSTF.js +27 -0
- package/esm/__chunks/57UTLR6J.js +76 -0
- package/esm/__chunks/5TGAWEHD.js +354 -0
- package/esm/__chunks/5VGBBGF5.js +13 -0
- package/esm/__chunks/6DAEYZ43.js +75 -0
- package/esm/__chunks/6GS36SYX.js +9 -0
- package/esm/__chunks/6I2PARRP.js +7 -0
- package/esm/__chunks/6OCAIYRY.js +130 -0
- package/esm/__chunks/6OMX4H3W.js +19 -0
- package/esm/__chunks/6THLPTJO.js +73 -0
- package/esm/__chunks/7JNF6I52.js +21 -0
- package/esm/__chunks/A2DUDEP2.js +28 -0
- package/esm/__chunks/B3AF63GK.js +28 -0
- package/esm/__chunks/B7MIN7YT.js +259 -0
- package/esm/__chunks/BIFSQ6O4.js +30 -0
- package/esm/__chunks/COQHFAEN.js +7 -0
- package/esm/__chunks/CWHDUB4A.js +28 -0
- package/esm/__chunks/DFUIIKXE.js +9 -0
- package/esm/__chunks/DGTYZREX.js +44 -0
- package/esm/__chunks/DRSUYUM5.js +102 -0
- package/esm/__chunks/DVR5Q5UR.js +30 -0
- package/esm/__chunks/EEVSGAZW.js +9 -0
- package/esm/__chunks/EJZ6BVXG.js +92 -0
- package/esm/__chunks/F5VAC7MB.js +7 -0
- package/esm/__chunks/FFRIGW5T.js +108 -0
- package/esm/__chunks/FXC76SFN.js +326 -0
- package/esm/__chunks/GM7XQV7F.js +6 -0
- package/esm/__chunks/GUVHAKSF.js +62 -0
- package/esm/__chunks/H5L4MRQM.js +67 -0
- package/esm/__chunks/HLAXMBLL.js +174 -0
- package/esm/__chunks/HMJVMCGK.js +30 -0
- package/esm/__chunks/HOVZF3TA.js +29 -0
- package/esm/__chunks/HRNQJHNJ.js +24 -0
- package/esm/__chunks/HS4EASQI.js +45 -0
- package/esm/__chunks/HTHL3GU7.js +46 -0
- package/esm/__chunks/HVBRRKV4.js +15 -0
- package/esm/__chunks/HVXLVRRR.js +28 -0
- package/esm/__chunks/I4MLEPTM.js +47 -0
- package/esm/__chunks/IACKFX3D.js +182 -0
- package/esm/__chunks/JE5NWDDX.js +53 -0
- package/esm/__chunks/JKSMOXA4.js +56 -0
- package/esm/__chunks/JUUV3EHC.js +116 -0
- package/esm/__chunks/KHFKAEA6.js +74 -0
- package/esm/__chunks/KO6UUYKG.js +28 -0
- package/esm/__chunks/LDDPB3PY.js +7 -0
- package/esm/__chunks/LFCJQX2O.js +96 -0
- package/esm/__chunks/LNHZLQEK.js +11 -0
- package/esm/__chunks/LZKGMRGC.js +112 -0
- package/esm/__chunks/M5KYRTQG.js +7 -0
- package/esm/__chunks/NDTB3OGK.js +39 -0
- package/esm/__chunks/NMA53LJC.js +44 -0
- package/esm/__chunks/NO5K4U2Q.js +437 -0
- package/esm/__chunks/NRA7DRSD.js +30 -0
- package/esm/__chunks/NV7HSBKK.js +31 -0
- package/esm/__chunks/NYJYNUSY.js +30 -0
- package/esm/__chunks/OGTE6FGV.js +29 -0
- package/esm/__chunks/OJNRBQKS.js +57 -0
- package/esm/__chunks/OXIHLN45.js +28 -0
- package/esm/__chunks/P3I4MECH.js +7 -0
- package/esm/__chunks/PU22SOKH.js +29 -0
- package/esm/__chunks/Q7WBN353.js +98 -0
- package/esm/__chunks/QYIULXLT.js +55 -0
- package/esm/__chunks/RFLPDFU5.js +123 -0
- package/esm/__chunks/RNWB46DZ.js +31 -0
- package/esm/__chunks/RSJJ72ZD.js +51 -0
- package/esm/__chunks/SAVDGYCC.js +138 -0
- package/esm/__chunks/SDULECC7.js +39 -0
- package/esm/__chunks/SE2URGHN.js +28 -0
- package/esm/__chunks/SE7IFIBU.js +41 -0
- package/esm/__chunks/SG5D3YRB.js +41 -0
- package/esm/__chunks/SJEKLK5Q.js +8 -0
- package/esm/__chunks/STKLF26R.js +83 -0
- package/esm/__chunks/SXC6BPOF.js +12 -0
- package/esm/__chunks/T3DJZG63.js +9 -0
- package/esm/__chunks/TCSUGBIK.js +30 -0
- package/esm/__chunks/TTILJGKR.js +28 -0
- package/esm/__chunks/TUP5WTZZ.js +125 -0
- package/esm/__chunks/UZKBEGMB.js +7 -0
- package/esm/__chunks/VDIWPJGE.js +80 -0
- package/esm/__chunks/WHN4PCW7.js +337 -0
- package/esm/__chunks/WO2RXMKK.js +31 -0
- package/esm/__chunks/WOX4XCVH.js +158 -0
- package/esm/__chunks/X7FKJQME.js +87 -0
- package/esm/__chunks/YDNX3N4B.js +116 -0
- package/esm/__chunks/Z3UAG7AM.js +290 -0
- package/esm/__chunks/Z3X3QN6P.js +13 -0
- package/esm/__chunks/Z5BJMNGY.js +9 -0
- package/esm/__chunks/ZVCQYVEV.js +44 -0
- package/esm/button/button.d.ts +26 -0
- package/esm/button/button.js +13 -0
- package/esm/checkbox/checkbox-check.d.ts +37 -0
- package/esm/checkbox/checkbox-check.js +10 -0
- package/esm/checkbox/checkbox-checked-context.d.ts +1 -0
- package/esm/checkbox/checkbox-checked-context.js +6 -0
- package/esm/checkbox/checkbox-store.d.ts +36 -0
- package/esm/checkbox/checkbox-store.js +13 -0
- package/esm/checkbox/checkbox.d.ts +65 -0
- package/esm/checkbox/checkbox.js +15 -0
- package/esm/collection/collection-context.d.ts +5 -0
- package/esm/collection/collection-context.js +6 -0
- package/esm/collection/collection-item.d.ts +55 -0
- package/esm/collection/collection-item.js +12 -0
- package/esm/collection/collection-store.d.ts +39 -0
- package/esm/collection/collection-store.js +13 -0
- package/esm/collection/collection.d.ts +42 -0
- package/esm/collection/collection.js +36 -0
- package/esm/combobox/combobox-cancel.d.ts +39 -0
- package/esm/combobox/combobox-cancel.js +75 -0
- package/esm/combobox/combobox-context.d.ts +3 -0
- package/esm/combobox/combobox-context.js +8 -0
- package/esm/combobox/combobox-disclosure.d.ts +45 -0
- package/esm/combobox/combobox-disclosure.js +80 -0
- package/esm/combobox/combobox-group-label.d.ts +43 -0
- package/esm/combobox/combobox-group-label.js +33 -0
- package/esm/combobox/combobox-group.d.ts +46 -0
- package/esm/combobox/combobox-group.js +29 -0
- package/esm/combobox/combobox-item-value.d.ts +64 -0
- package/esm/combobox/combobox-item-value.js +77 -0
- package/esm/combobox/combobox-item.d.ts +69 -0
- package/esm/combobox/combobox-item.js +151 -0
- package/esm/combobox/combobox-list.d.ts +42 -0
- package/esm/combobox/combobox-list.js +12 -0
- package/esm/combobox/combobox-popover.d.ts +39 -0
- package/esm/combobox/combobox-popover.js +94 -0
- package/esm/combobox/combobox-row.d.ts +50 -0
- package/esm/combobox/combobox-row.js +46 -0
- package/esm/combobox/combobox-separator.d.ts +43 -0
- package/esm/combobox/combobox-separator.js +42 -0
- package/esm/combobox/combobox-store.d.ts +81 -0
- package/esm/combobox/combobox-store.js +44 -0
- package/esm/combobox/combobox.d.ts +124 -0
- package/esm/combobox/combobox.js +324 -0
- package/esm/command/command.d.ts +38 -0
- package/esm/command/command.js +12 -0
- package/esm/composite/composite-container.d.ts +44 -0
- package/esm/composite/composite-container.js +14 -0
- package/esm/composite/composite-context.d.ts +9 -0
- package/esm/composite/composite-context.js +10 -0
- package/esm/composite/composite-group-label.d.ts +42 -0
- package/esm/composite/composite-group-label.js +13 -0
- package/esm/composite/composite-group.d.ts +44 -0
- package/esm/composite/composite-group.js +13 -0
- package/esm/composite/composite-hover.d.ts +47 -0
- package/esm/composite/composite-hover.js +12 -0
- package/esm/composite/composite-input.d.ts +39 -0
- package/esm/composite/composite-input.js +12 -0
- package/esm/composite/composite-item.d.ts +56 -0
- package/esm/composite/composite-item.js +17 -0
- package/esm/composite/composite-overflow-disclosure.d.ts +45 -0
- package/esm/composite/composite-overflow-disclosure.js +74 -0
- package/esm/composite/composite-overflow-store.d.ts +46 -0
- package/esm/composite/composite-overflow-store.js +32 -0
- package/esm/composite/composite-overflow.d.ts +46 -0
- package/esm/composite/composite-overflow.js +97 -0
- package/esm/composite/composite-row.d.ts +52 -0
- package/esm/composite/composite-row.js +12 -0
- package/esm/composite/composite-separator.d.ts +40 -0
- package/esm/composite/composite-separator.js +11 -0
- package/esm/composite/composite-store.d.ts +40 -0
- package/esm/composite/composite-store.js +14 -0
- package/esm/composite/composite-typeahead.d.ts +43 -0
- package/esm/composite/composite-typeahead.js +13 -0
- package/esm/composite/composite.d.ts +74 -0
- package/esm/composite/composite.js +14 -0
- package/esm/composite/utils.d.ts +69 -0
- package/esm/composite/utils.js +20 -0
- package/esm/dialog/dialog-backdrop.d.ts +7 -0
- package/esm/dialog/dialog-backdrop.js +11 -0
- package/esm/dialog/dialog-context.d.ts +5 -0
- package/esm/dialog/dialog-context.js +10 -0
- package/esm/dialog/dialog-description.d.ts +37 -0
- package/esm/dialog/dialog-description.js +12 -0
- package/esm/dialog/dialog-disclosure.d.ts +33 -0
- package/esm/dialog/dialog-disclosure.js +15 -0
- package/esm/dialog/dialog-dismiss.d.ts +35 -0
- package/esm/dialog/dialog-dismiss.js +15 -0
- package/esm/dialog/dialog-heading.d.ts +37 -0
- package/esm/dialog/dialog-heading.js +14 -0
- package/esm/dialog/dialog-store.d.ts +24 -0
- package/esm/dialog/dialog-store.js +14 -0
- package/esm/dialog/dialog.d.ts +120 -0
- package/esm/dialog/dialog.js +32 -0
- package/esm/dialog/utils/disable-accessibility-tree-outside.d.ts +3 -0
- package/esm/dialog/utils/disable-accessibility-tree-outside.js +7 -0
- package/esm/dialog/utils/disable-pointer-events-outside.d.ts +3 -0
- package/esm/dialog/utils/disable-pointer-events-outside.js +7 -0
- package/esm/dialog/utils/prepend-hidden-dismiss.d.ts +1 -0
- package/esm/dialog/utils/prepend-hidden-dismiss.js +6 -0
- package/esm/dialog/utils/use-champion-dialog.d.ts +6 -0
- package/esm/dialog/utils/use-champion-dialog.js +8 -0
- package/esm/dialog/utils/use-focus-on-child-unmount.d.ts +6 -0
- package/esm/dialog/utils/use-focus-on-child-unmount.js +6 -0
- package/esm/dialog/utils/use-hide-on-interact-outside.d.ts +6 -0
- package/esm/dialog/utils/use-hide-on-interact-outside.js +9 -0
- package/esm/dialog/utils/use-nested-dialogs.d.ts +10 -0
- package/esm/dialog/utils/use-nested-dialogs.js +8 -0
- package/esm/dialog/utils/use-prevent-body-scroll.d.ts +2 -0
- package/esm/dialog/utils/use-prevent-body-scroll.js +9 -0
- package/esm/dialog/utils/use-previous-mouse-down-ref.d.ts +1 -0
- package/esm/dialog/utils/use-previous-mouse-down-ref.js +6 -0
- package/esm/dialog/utils/walk-tree-outside.d.ts +4 -0
- package/esm/dialog/utils/walk-tree-outside.js +8 -0
- package/esm/disclosure/disclosure-content.d.ts +32 -0
- package/esm/disclosure/disclosure-content.js +11 -0
- package/esm/disclosure/disclosure-store.d.ts +29 -0
- package/esm/disclosure/disclosure-store.js +13 -0
- package/esm/disclosure/disclosure.d.ts +42 -0
- package/esm/disclosure/disclosure.js +14 -0
- package/esm/focus-trap/focus-trap-region.d.ts +32 -0
- package/esm/focus-trap/focus-trap-region.js +13 -0
- package/esm/focus-trap/focus-trap.d.ts +23 -0
- package/esm/focus-trap/focus-trap.js +10 -0
- package/esm/focusable/focusable.d.ts +65 -0
- package/esm/focusable/focusable.js +11 -0
- package/esm/form/form-checkbox.d.ts +37 -0
- package/esm/form/form-checkbox.js +65 -0
- package/esm/form/form-context.d.ts +2 -0
- package/esm/form/form-context.js +6 -0
- package/esm/form/form-description.d.ts +47 -0
- package/esm/form/form-description.js +69 -0
- package/esm/form/form-error.d.ts +60 -0
- package/esm/form/form-error.js +72 -0
- package/esm/form/form-field.d.ts +72 -0
- package/esm/form/form-field.js +14 -0
- package/esm/form/form-group-label.d.ts +49 -0
- package/esm/form/form-group-label.js +32 -0
- package/esm/form/form-group.d.ts +49 -0
- package/esm/form/form-group.js +13 -0
- package/esm/form/form-input.d.ts +37 -0
- package/esm/form/form-input.js +62 -0
- package/esm/form/form-label.d.ts +51 -0
- package/esm/form/form-label.js +102 -0
- package/esm/form/form-push.d.ts +77 -0
- package/esm/form/form-push.js +109 -0
- package/esm/form/form-radio-group.d.ts +39 -0
- package/esm/form/form-radio-group.js +34 -0
- package/esm/form/form-radio.d.ts +43 -0
- package/esm/form/form-radio.js +77 -0
- package/esm/form/form-remove.d.ts +76 -0
- package/esm/form/form-remove.js +92 -0
- package/esm/form/form-reset.d.ts +36 -0
- package/esm/form/form-reset.js +47 -0
- package/esm/form/form-store.d.ts +104 -0
- package/esm/form/form-store.js +53 -0
- package/esm/form/form-submit.d.ts +40 -0
- package/esm/form/form-submit.js +47 -0
- package/esm/form/form.d.ts +63 -0
- package/esm/form/form.js +141 -0
- package/esm/group/group-label-context.d.ts +2 -0
- package/esm/group/group-label-context.js +6 -0
- package/esm/group/group-label.d.ts +28 -0
- package/esm/group/group-label.js +12 -0
- package/esm/group/group.d.ts +22 -0
- package/esm/group/group.js +12 -0
- package/esm/heading/heading-context.d.ts +2 -0
- package/esm/heading/heading-context.js +6 -0
- package/esm/heading/heading-level.d.ts +25 -0
- package/esm/heading/heading-level.js +7 -0
- package/esm/heading/heading.d.ts +34 -0
- package/esm/heading/heading.js +12 -0
- package/esm/heading/utils.d.ts +1 -0
- package/esm/heading/utils.js +0 -0
- package/esm/hovercard/hovercard-anchor.d.ts +40 -0
- package/esm/hovercard/hovercard-anchor.js +12 -0
- package/esm/hovercard/hovercard-arrow.d.ts +39 -0
- package/esm/hovercard/hovercard-arrow.js +31 -0
- package/esm/hovercard/hovercard-description.d.ts +38 -0
- package/esm/hovercard/hovercard-description.js +14 -0
- package/esm/hovercard/hovercard-disclosure.d.ts +37 -0
- package/esm/hovercard/hovercard-disclosure.js +133 -0
- package/esm/hovercard/hovercard-dismiss.d.ts +36 -0
- package/esm/hovercard/hovercard-dismiss.js +17 -0
- package/esm/hovercard/hovercard-heading.d.ts +38 -0
- package/esm/hovercard/hovercard-heading.js +16 -0
- package/esm/hovercard/hovercard-store.d.ts +36 -0
- package/esm/hovercard/hovercard-store.js +16 -0
- package/esm/hovercard/hovercard.d.ts +63 -0
- package/esm/hovercard/hovercard.js +36 -0
- package/esm/hovercard/utils/__tests__/polygon-test.d.ts +1 -0
- package/esm/hovercard/utils/debug-polygon.d.ts +2 -0
- package/esm/hovercard/utils/debug-polygon.js +36 -0
- package/esm/hovercard/utils/polygon.d.ts +5 -0
- package/esm/hovercard/utils/polygon.js +10 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +5 -0
- package/esm/menu/menu-arrow.d.ts +38 -0
- package/esm/menu/menu-arrow.js +28 -0
- package/esm/menu/menu-bar-store.d.ts +30 -0
- package/esm/menu/menu-bar-store.js +31 -0
- package/esm/menu/menu-bar.d.ts +61 -0
- package/esm/menu/menu-bar.js +53 -0
- package/esm/menu/menu-button-arrow.d.ts +47 -0
- package/esm/menu/menu-button-arrow.js +30 -0
- package/esm/menu/menu-button.d.ts +50 -0
- package/esm/menu/menu-button.js +177 -0
- package/esm/menu/menu-context.d.ts +5 -0
- package/esm/menu/menu-context.js +10 -0
- package/esm/menu/menu-description.d.ts +37 -0
- package/esm/menu/menu-description.js +34 -0
- package/esm/menu/menu-dismiss.d.ts +36 -0
- package/esm/menu/menu-dismiss.js +33 -0
- package/esm/menu/menu-group-label.d.ts +42 -0
- package/esm/menu/menu-group-label.js +31 -0
- package/esm/menu/menu-group.d.ts +45 -0
- package/esm/menu/menu-group.js +29 -0
- package/esm/menu/menu-heading.d.ts +37 -0
- package/esm/menu/menu-heading.js +32 -0
- package/esm/menu/menu-item-check.d.ts +44 -0
- package/esm/menu/menu-item-check.js +34 -0
- package/esm/menu/menu-item-checkbox.d.ts +47 -0
- package/esm/menu/menu-item-checkbox.js +68 -0
- package/esm/menu/menu-item-radio.d.ts +54 -0
- package/esm/menu/menu-item-radio.js +91 -0
- package/esm/menu/menu-item.d.ts +55 -0
- package/esm/menu/menu-item.js +22 -0
- package/esm/menu/menu-list.d.ts +40 -0
- package/esm/menu/menu-list.js +18 -0
- package/esm/menu/menu-separator.d.ts +44 -0
- package/esm/menu/menu-separator.js +27 -0
- package/esm/menu/menu-store.d.ts +86 -0
- package/esm/menu/menu-store.js +73 -0
- package/esm/menu/menu.d.ts +35 -0
- package/esm/menu/menu.js +182 -0
- package/esm/menu/utils.d.ts +2 -0
- package/esm/menu/utils.js +6 -0
- package/esm/popover/popover-anchor.d.ts +33 -0
- package/esm/popover/popover-anchor.js +11 -0
- package/esm/popover/popover-arrow-path.d.ts +1 -0
- package/esm/popover/popover-arrow-path.js +6 -0
- package/esm/popover/popover-arrow.d.ts +42 -0
- package/esm/popover/popover-arrow.js +13 -0
- package/esm/popover/popover-context.d.ts +2 -0
- package/esm/popover/popover-context.js +6 -0
- package/esm/popover/popover-description.d.ts +38 -0
- package/esm/popover/popover-description.js +13 -0
- package/esm/popover/popover-disclosure-arrow.d.ts +44 -0
- package/esm/popover/popover-disclosure-arrow.js +10 -0
- package/esm/popover/popover-disclosure.d.ts +29 -0
- package/esm/popover/popover-disclosure.js +18 -0
- package/esm/popover/popover-dismiss.d.ts +36 -0
- package/esm/popover/popover-dismiss.js +16 -0
- package/esm/popover/popover-heading.d.ts +37 -0
- package/esm/popover/popover-heading.js +15 -0
- package/esm/popover/popover-store.d.ts +36 -0
- package/esm/popover/popover-store.js +15 -0
- package/esm/popover/popover.d.ts +38 -0
- package/esm/popover/popover.js +34 -0
- package/esm/portal/portal-context.d.ts +17 -0
- package/esm/portal/portal-context.js +6 -0
- package/esm/portal/portal.d.ts +64 -0
- package/esm/portal/portal.js +14 -0
- package/esm/radio/radio-context.d.ts +2 -0
- package/esm/radio/radio-context.js +6 -0
- package/esm/radio/radio-group.d.ts +37 -0
- package/esm/radio/radio-group.js +47 -0
- package/esm/radio/radio-store.d.ts +42 -0
- package/esm/radio/radio-store.js +32 -0
- package/esm/radio/radio.d.ts +52 -0
- package/esm/radio/radio.js +20 -0
- package/esm/role/role.d.ts +24 -0
- package/esm/role/role.js +20 -0
- package/esm/select/select-arrow.d.ts +47 -0
- package/esm/select/select-arrow.js +11 -0
- package/esm/select/select-context.d.ts +3 -0
- package/esm/select/select-context.js +8 -0
- package/esm/select/select-group-label.d.ts +48 -0
- package/esm/select/select-group-label.js +33 -0
- package/esm/select/select-group.d.ts +46 -0
- package/esm/select/select-group.js +29 -0
- package/esm/select/select-item-check.d.ts +51 -0
- package/esm/select/select-item-check.js +36 -0
- package/esm/select/select-item.d.ts +74 -0
- package/esm/select/select-item.js +168 -0
- package/esm/select/select-label.d.ts +43 -0
- package/esm/select/select-label.js +51 -0
- package/esm/select/select-list.d.ts +57 -0
- package/esm/select/select-list.js +17 -0
- package/esm/select/select-popover.d.ts +36 -0
- package/esm/select/select-popover.js +61 -0
- package/esm/select/select-row.d.ts +47 -0
- package/esm/select/select-row.js +46 -0
- package/esm/select/select-separator.d.ts +43 -0
- package/esm/select/select-separator.js +31 -0
- package/esm/select/select-store.d.ts +86 -0
- package/esm/select/select-store.js +44 -0
- package/esm/select/select.d.ts +64 -0
- package/esm/select/select.js +248 -0
- package/esm/separator/separator.d.ts +28 -0
- package/esm/separator/separator.js +9 -0
- package/esm/tab/tab-context.d.ts +2 -0
- package/esm/tab/tab-context.js +6 -0
- package/esm/tab/tab-list.d.ts +41 -0
- package/esm/tab/tab-list.js +49 -0
- package/esm/tab/tab-panel.d.ts +46 -0
- package/esm/tab/tab-panel.js +81 -0
- package/esm/tab/tab-store.d.ts +60 -0
- package/esm/tab/tab-store.js +35 -0
- package/esm/tab/tab.d.ts +45 -0
- package/esm/tab/tab.js +92 -0
- package/esm/toolbar/toolbar-container.d.ts +35 -0
- package/esm/toolbar/toolbar-container.js +43 -0
- package/esm/toolbar/toolbar-context.d.ts +2 -0
- package/esm/toolbar/toolbar-context.js +6 -0
- package/esm/toolbar/toolbar-input.d.ts +31 -0
- package/esm/toolbar/toolbar-input.js +42 -0
- package/esm/toolbar/toolbar-item.d.ts +36 -0
- package/esm/toolbar/toolbar-item.js +18 -0
- package/esm/toolbar/toolbar-separator.d.ts +40 -0
- package/esm/toolbar/toolbar-separator.js +31 -0
- package/esm/toolbar/toolbar-store.d.ts +34 -0
- package/esm/toolbar/toolbar-store.js +31 -0
- package/esm/toolbar/toolbar.d.ts +37 -0
- package/esm/toolbar/toolbar.js +49 -0
- package/esm/tooltip/tooltip-anchor.d.ts +51 -0
- package/esm/tooltip/tooltip-anchor.js +72 -0
- package/esm/tooltip/tooltip-arrow.d.ts +40 -0
- package/esm/tooltip/tooltip-arrow.js +42 -0
- package/esm/tooltip/tooltip-context.d.ts +2 -0
- package/esm/tooltip/tooltip-context.js +6 -0
- package/esm/tooltip/tooltip-store.d.ts +36 -0
- package/esm/tooltip/tooltip-store.js +32 -0
- package/esm/tooltip/tooltip.d.ts +56 -0
- package/esm/tooltip/tooltip.js +111 -0
- package/esm/tsconfig.build.tsbuildinfo +1 -0
- package/esm/utils/hooks.d.ts +125 -0
- package/esm/utils/hooks.js +43 -0
- package/esm/utils/misc.d.ts +5 -0
- package/esm/utils/misc.js +6 -0
- package/esm/utils/store.d.ts +77 -0
- package/esm/utils/store.js +12 -0
- package/esm/utils/system.d.ts +74 -0
- package/esm/utils/system.js +12 -0
- package/esm/utils/types.d.ts +73 -0
- package/esm/utils/types.js +0 -0
- package/esm/visually-hidden/visually-hidden.d.ts +29 -0
- package/esm/visually-hidden/visually-hidden.js +9 -0
- package/focus-trap/focus-trap/package.json +7 -0
- package/focus-trap/focus-trap-region/package.json +7 -0
- package/focusable/focusable/package.json +7 -0
- package/form/form/package.json +7 -0
- package/form/form-checkbox/package.json +7 -0
- package/form/form-context/package.json +7 -0
- package/form/form-description/package.json +7 -0
- package/form/form-error/package.json +7 -0
- package/form/form-field/package.json +7 -0
- package/form/form-group/package.json +7 -0
- package/form/form-group-label/package.json +7 -0
- package/form/form-input/package.json +7 -0
- package/form/form-label/package.json +7 -0
- package/form/form-push/package.json +7 -0
- package/form/form-radio/package.json +7 -0
- package/form/form-radio-group/package.json +7 -0
- package/form/form-remove/package.json +7 -0
- package/form/form-reset/package.json +7 -0
- package/form/form-store/package.json +7 -0
- package/form/form-submit/package.json +7 -0
- package/group/group/package.json +7 -0
- package/group/group-label/package.json +7 -0
- package/group/group-label-context/package.json +7 -0
- package/heading/heading/package.json +7 -0
- package/heading/heading-context/package.json +7 -0
- package/heading/heading-level/package.json +7 -0
- package/heading/utils/package.json +7 -0
- package/hovercard/hovercard/package.json +7 -0
- package/hovercard/hovercard-anchor/package.json +7 -0
- package/hovercard/hovercard-arrow/package.json +7 -0
- package/hovercard/hovercard-description/package.json +7 -0
- package/hovercard/hovercard-disclosure/package.json +7 -0
- package/hovercard/hovercard-dismiss/package.json +7 -0
- package/hovercard/hovercard-heading/package.json +7 -0
- package/hovercard/hovercard-store/package.json +7 -0
- package/hovercard/utils/debug-polygon/package.json +7 -0
- package/hovercard/utils/polygon/package.json +7 -0
- package/license +21 -0
- package/menu/menu/package.json +7 -0
- package/menu/menu-arrow/package.json +7 -0
- package/menu/menu-bar/package.json +7 -0
- package/menu/menu-bar-store/package.json +7 -0
- package/menu/menu-button/package.json +7 -0
- package/menu/menu-button-arrow/package.json +7 -0
- package/menu/menu-context/package.json +7 -0
- package/menu/menu-description/package.json +7 -0
- package/menu/menu-dismiss/package.json +7 -0
- package/menu/menu-group/package.json +7 -0
- package/menu/menu-group-label/package.json +7 -0
- package/menu/menu-heading/package.json +7 -0
- package/menu/menu-item/package.json +7 -0
- package/menu/menu-item-check/package.json +7 -0
- package/menu/menu-item-checkbox/package.json +7 -0
- package/menu/menu-item-radio/package.json +7 -0
- package/menu/menu-list/package.json +7 -0
- package/menu/menu-separator/package.json +7 -0
- package/menu/menu-store/package.json +7 -0
- package/menu/utils/package.json +7 -0
- package/package.json +729 -8
- package/popover/popover/package.json +7 -0
- package/popover/popover-anchor/package.json +7 -0
- package/popover/popover-arrow/package.json +7 -0
- package/popover/popover-arrow-path/package.json +7 -0
- package/popover/popover-context/package.json +7 -0
- package/popover/popover-description/package.json +7 -0
- package/popover/popover-disclosure/package.json +7 -0
- package/popover/popover-disclosure-arrow/package.json +7 -0
- package/popover/popover-dismiss/package.json +7 -0
- package/popover/popover-heading/package.json +7 -0
- package/popover/popover-store/package.json +7 -0
- package/portal/portal/package.json +7 -0
- package/portal/portal-context/package.json +7 -0
- package/radio/radio/package.json +7 -0
- package/radio/radio-context/package.json +7 -0
- package/radio/radio-group/package.json +7 -0
- package/radio/radio-store/package.json +7 -0
- package/role/role/package.json +7 -0
- package/select/select/package.json +7 -0
- package/select/select-arrow/package.json +7 -0
- package/select/select-context/package.json +7 -0
- package/select/select-group/package.json +7 -0
- package/select/select-group-label/package.json +7 -0
- package/select/select-item/package.json +7 -0
- package/select/select-item-check/package.json +7 -0
- package/select/select-label/package.json +7 -0
- package/select/select-list/package.json +7 -0
- package/select/select-popover/package.json +7 -0
- package/select/select-row/package.json +7 -0
- package/select/select-separator/package.json +7 -0
- package/select/select-store/package.json +7 -0
- package/separator/separator/package.json +7 -0
- package/tab/tab/package.json +7 -0
- package/tab/tab-context/package.json +7 -0
- package/tab/tab-list/package.json +7 -0
- package/tab/tab-panel/package.json +7 -0
- package/tab/tab-store/package.json +7 -0
- package/toolbar/toolbar/package.json +7 -0
- package/toolbar/toolbar-container/package.json +7 -0
- package/toolbar/toolbar-context/package.json +7 -0
- package/toolbar/toolbar-input/package.json +7 -0
- package/toolbar/toolbar-item/package.json +7 -0
- package/toolbar/toolbar-separator/package.json +7 -0
- package/toolbar/toolbar-store/package.json +7 -0
- package/tooltip/tooltip/package.json +7 -0
- package/tooltip/tooltip-anchor/package.json +7 -0
- package/tooltip/tooltip-arrow/package.json +7 -0
- package/tooltip/tooltip-context/package.json +7 -0
- package/tooltip/tooltip-store/package.json +7 -0
- package/tsconfig.build.json +4 -0
- package/utils/hooks/package.json +7 -0
- package/utils/misc/package.json +7 -0
- package/utils/store/package.json +7 -0
- package/utils/system/package.json +7 -0
- package/utils/types/package.json +7 -0
- package/visually-hidden/visually-hidden/package.json +7 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { ChangeEvent, MouseEvent, KeyboardEvent as ReactKeyboardEvent } from "react";
|
|
2
|
+
import type { BooleanOrCallback } from "@ariakit/core/utils/types";
|
|
3
|
+
import type { CompositeOptions } from "../composite/composite.js";
|
|
4
|
+
import type { PopoverAnchorOptions } from "../popover/popover-anchor.js";
|
|
5
|
+
import type { As, Props } from "../utils/types.js";
|
|
6
|
+
import type { ComboboxStore } from "./combobox-store.js";
|
|
7
|
+
/**
|
|
8
|
+
* Returns props to create a `Combobox` component.
|
|
9
|
+
* @see https://ariakit.org/components/combobox
|
|
10
|
+
* @example
|
|
11
|
+
* ```jsx
|
|
12
|
+
* const store = useComboboxStore();
|
|
13
|
+
* const props = useCombobox({ store });
|
|
14
|
+
* <Role {...props} />
|
|
15
|
+
* <ComboboxPopover store={store}>
|
|
16
|
+
* <ComboboxItem value="Apple" />
|
|
17
|
+
* <ComboboxItem value="Banana" />
|
|
18
|
+
* <ComboboxItem value="Orange" />
|
|
19
|
+
* </ComboboxPopover>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useCombobox: import("../utils/types.js").Hook<ComboboxOptions<"input">>;
|
|
23
|
+
/**
|
|
24
|
+
* Renders a combobox input.
|
|
25
|
+
* @see https://ariakit.org/components/combobox
|
|
26
|
+
* @example
|
|
27
|
+
* ```jsx
|
|
28
|
+
* const combobox = useComboboxStore();
|
|
29
|
+
* <Combobox store={combobox} />
|
|
30
|
+
* <ComboboxPopover store={combobox}>
|
|
31
|
+
* <ComboboxItem value="Apple" />
|
|
32
|
+
* <ComboboxItem value="Banana" />
|
|
33
|
+
* <ComboboxItem value="Orange" />
|
|
34
|
+
* </ComboboxPopover>
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare const Combobox: import("../utils/types.js").Component<ComboboxOptions<"input">>;
|
|
38
|
+
export interface ComboboxOptions<T extends As = "input"> extends CompositeOptions<T>, PopoverAnchorOptions<T> {
|
|
39
|
+
/**
|
|
40
|
+
* Object returned by the `useComboboxStore` hook.
|
|
41
|
+
*/
|
|
42
|
+
store: ComboboxStore;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the first item will be automatically selected when the combobox
|
|
45
|
+
* input value changes. When it's set to `true`, the exact behavior will
|
|
46
|
+
* depend on the value of `autoComplete` prop:
|
|
47
|
+
* - If `autoComplete` is `both` or `inline`, the first item is
|
|
48
|
+
* automatically focused when the popup opens, and the input value
|
|
49
|
+
* changes to reflect this. The inline completion string will be
|
|
50
|
+
* highlighted and will have a selected state.
|
|
51
|
+
* - If `autoComplete` is `list` or `none`, the first item is
|
|
52
|
+
* automatically focused when the popup opens, but the input value
|
|
53
|
+
* doesn't change.
|
|
54
|
+
* @default false
|
|
55
|
+
*/
|
|
56
|
+
autoSelect?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the items will be filtered based on `value` and whether the input
|
|
59
|
+
* value will temporarily change based on the active item. If `defaultList`
|
|
60
|
+
* or `list` are provided, this will be set to `list` by default, otherwise
|
|
61
|
+
* it'll default to `none`.
|
|
62
|
+
* - `both`: the items will be filtered based on `value` and the input
|
|
63
|
+
* value will temporarily change based on the active item.
|
|
64
|
+
* - `list`: the items will be filtered based on `value` and the input
|
|
65
|
+
* value will NOT change based on the active item.
|
|
66
|
+
* - `inline`: the items are static, that is, they won't be filtered based
|
|
67
|
+
* on `value`, but the input value will temporarily change based on the
|
|
68
|
+
* active item.
|
|
69
|
+
* - `none`: the items are static and the input value will NOT change
|
|
70
|
+
* based on the active item.
|
|
71
|
+
*/
|
|
72
|
+
autoComplete?: "both" | "inline" | "list" | "none";
|
|
73
|
+
/**
|
|
74
|
+
* Whether the combobox list/popover should be shown when the input value is
|
|
75
|
+
* changed.
|
|
76
|
+
* @default true
|
|
77
|
+
* @example
|
|
78
|
+
* ```jsx
|
|
79
|
+
* <Combobox showOnChange={(event) => event.target.value.length > 1} />
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
showOnChange?: BooleanOrCallback<ChangeEvent<HTMLElement>>;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the combobox store value will be updated when the input value
|
|
85
|
+
* changes. This is useful if you want to customize how the store value is
|
|
86
|
+
* updated based on the input value.
|
|
87
|
+
* @default true
|
|
88
|
+
*/
|
|
89
|
+
setValueOnChange?: BooleanOrCallback<ChangeEvent<HTMLElement>>;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the combobox list/popover should be shown when the input is
|
|
92
|
+
* clicked.
|
|
93
|
+
* @default true
|
|
94
|
+
* @example
|
|
95
|
+
* ```jsx
|
|
96
|
+
* const combobox = useComboboxStore();
|
|
97
|
+
* const canShow = combobox.useState((state) => state.value.length > 1);
|
|
98
|
+
* <Combobox store={combobox} showOnMouseDown={canShow} />
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
101
|
+
showOnMouseDown?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the combobox list/popover should be shown when the user presses
|
|
104
|
+
* the arrow up or down keys while focusing on the combobox input element.
|
|
105
|
+
* @default true
|
|
106
|
+
* @example
|
|
107
|
+
* ```jsx
|
|
108
|
+
* const combobox = useComboboxStore();
|
|
109
|
+
* const canShow = combobox.useState((state) => state.value.length > 1);
|
|
110
|
+
* <Combobox store={combobox} showOnKeyDown={canShow} />
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
showOnKeyDown?: BooleanOrCallback<ReactKeyboardEvent<HTMLElement>>;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the combobox store value will be updated when the combobox input
|
|
116
|
+
* element gets clicked. This usually only applies when `autoComplete` is
|
|
117
|
+
* `both` or `inline`, because the input value will temporarily change based
|
|
118
|
+
* on the active item and the store value will not be updated until the user
|
|
119
|
+
* confirms the selection.
|
|
120
|
+
* @default true
|
|
121
|
+
*/
|
|
122
|
+
setValueOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
123
|
+
}
|
|
124
|
+
export type ComboboxProps<T extends As = "input"> = Props<ComboboxOptions<T>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _EWCMH6G3cjs = require('../__chunks/EWCMH6G3.cjs');
|
|
5
|
+
require('../__chunks/44UMDBZE.cjs');
|
|
6
|
+
require('../__chunks/UYIFJ7U3.cjs');
|
|
7
|
+
require('../__chunks/5QY4WCTR.cjs');
|
|
8
|
+
require('../__chunks/2X5K3J7Y.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.Command = _EWCMH6G3cjs.Command; exports.useCommand = _EWCMH6G3cjs.useCommand;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { FocusableOptions } from "../focusable/focusable.js";
|
|
2
|
+
import type { As, Props } from "../utils/types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns props to create a `Command` component. If the element is not a native
|
|
5
|
+
* clickable element (like a button), this hook will return additional props to
|
|
6
|
+
* make sure it's accessible.
|
|
7
|
+
* @see https://ariakit.org/components/command
|
|
8
|
+
* @example
|
|
9
|
+
* ```jsx
|
|
10
|
+
* const props = useCommand({ as: "div" });
|
|
11
|
+
* <Role {...props}>Accessible button</Role>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const useCommand: import("../utils/types.js").Hook<CommandOptions<"button">>;
|
|
15
|
+
/**
|
|
16
|
+
* Renders a clickable element (like a button). If the underlying element is not
|
|
17
|
+
* a native clickable element, this component will pass additional attributes to
|
|
18
|
+
* make sure it's accessible.
|
|
19
|
+
* @see https://ariakit.org/components/command
|
|
20
|
+
* @example
|
|
21
|
+
* ```jsx
|
|
22
|
+
* <Command as="div">Accessible button</Command>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare const Command: import("../utils/types.js").Component<CommandOptions<"button">>;
|
|
26
|
+
export interface CommandOptions<T extends As = "button"> extends FocusableOptions<T> {
|
|
27
|
+
/**
|
|
28
|
+
* If true, pressing the enter key will trigger a click on the button.
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
clickOnEnter?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* If true, pressing the space key will trigger a click on the button.
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
clickOnSpace?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export type CommandProps<T extends As = "button"> = Props<CommandOptions<T>>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _ABU7PK6Gcjs = require('../__chunks/ABU7PK6G.cjs');
|
|
5
|
+
require('../__chunks/6622YWGR.cjs');
|
|
6
|
+
require('../__chunks/NVMBKFRB.cjs');
|
|
7
|
+
require('../__chunks/UYIFJ7U3.cjs');
|
|
8
|
+
require('../__chunks/F6IOE5QT.cjs');
|
|
9
|
+
require('../__chunks/5QY4WCTR.cjs');
|
|
10
|
+
require('../__chunks/2X5K3J7Y.cjs');
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.CompositeContainer = _ABU7PK6Gcjs.CompositeContainer; exports.useCompositeContainer = _ABU7PK6Gcjs.useCompositeContainer;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { As, Options, Props } from "../utils/types.js";
|
|
2
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns props to create a `CompositeContainer` component. This component
|
|
5
|
+
* renders interactive widgets inside composite items. This should be used in
|
|
6
|
+
* conjunction with the `CompositeItem` component, the `useCompositeItem` hook,
|
|
7
|
+
* or any other component/hook that uses `CompositeItem` underneath.
|
|
8
|
+
* @see https://ariakit.org/components/composite
|
|
9
|
+
* @example
|
|
10
|
+
* ```jsx
|
|
11
|
+
* const store = useCompositeStore();
|
|
12
|
+
* const props = useCompositeContainer({ store });
|
|
13
|
+
* <Composite store={store}>
|
|
14
|
+
* <CompositeItem {...props}>
|
|
15
|
+
* <input type="text" />
|
|
16
|
+
* </CompositeItem>
|
|
17
|
+
* </Composite>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useCompositeContainer: import("../utils/types.js").Hook<CompositeContainerOptions<"div">>;
|
|
21
|
+
/**
|
|
22
|
+
* Renders a container for interactive widgets inside composite items. This
|
|
23
|
+
* should be used in conjunction with the `CompositeItem` component or a
|
|
24
|
+
* component that uses `CompositeItem` underneath.
|
|
25
|
+
* @see https://ariakit.org/components/composite
|
|
26
|
+
* @example
|
|
27
|
+
* ```jsx
|
|
28
|
+
* const composite = useCompositeStore();
|
|
29
|
+
* <Composite store={composite}>
|
|
30
|
+
* <CompositeItem as={CompositeContainer}>
|
|
31
|
+
* <input type="text" />
|
|
32
|
+
* </CompositeItem>
|
|
33
|
+
* </Composite>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const CompositeContainer: import("../utils/types.js").Component<CompositeContainerOptions<"div">>;
|
|
37
|
+
export interface CompositeContainerOptions<T extends As = "div"> extends Options<T> {
|
|
38
|
+
/**
|
|
39
|
+
* Object returned by the `useCompositeStore` hook. If not provided, the
|
|
40
|
+
* parent `Composite` component's context will be used.
|
|
41
|
+
*/
|
|
42
|
+
store?: CompositeStore;
|
|
43
|
+
}
|
|
44
|
+
export type CompositeContainerProps<T extends As = "div"> = Props<CompositeContainerOptions<T>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _NVMBKFRBcjs = require('../__chunks/NVMBKFRB.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.CompositeContext = _NVMBKFRBcjs.CompositeContext; exports.CompositeItemContext = _NVMBKFRBcjs.CompositeItemContext; exports.CompositeRowContext = _NVMBKFRBcjs.CompositeRowContext;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
2
|
+
type ItemContext = {
|
|
3
|
+
baseElement?: HTMLElement;
|
|
4
|
+
id?: string;
|
|
5
|
+
} | undefined;
|
|
6
|
+
export declare const CompositeRowContext: import("react").Context<ItemContext>;
|
|
7
|
+
export declare const CompositeItemContext: import("react").Context<ItemContext>;
|
|
8
|
+
export declare const CompositeContext: import("react").Context<CompositeStore | undefined>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _EE77OJ6Wcjs = require('../__chunks/EE77OJ6W.cjs');
|
|
5
|
+
require('../__chunks/EFF3S3YM.cjs');
|
|
6
|
+
require('../__chunks/K56WQU76.cjs');
|
|
7
|
+
require('../__chunks/UYIFJ7U3.cjs');
|
|
8
|
+
require('../__chunks/5QY4WCTR.cjs');
|
|
9
|
+
require('../__chunks/2X5K3J7Y.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.CompositeGroupLabel = _EE77OJ6Wcjs.CompositeGroupLabel; exports.useCompositeGroupLabel = _EE77OJ6Wcjs.useCompositeGroupLabel;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { GroupLabelOptions } from "../group/group-label.js";
|
|
2
|
+
import type { As, Props } from "../utils/types.js";
|
|
3
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
4
|
+
/**
|
|
5
|
+
* Returns props to create a `CompositeGroupLabel` component. This hook must be
|
|
6
|
+
* used in a component that's wrapped with `CompositeGroup` so the
|
|
7
|
+
* `aria-labelledby` prop is properly set on the composite group element.
|
|
8
|
+
* @see https://ariakit.org/components/composite
|
|
9
|
+
* @example
|
|
10
|
+
* ```jsx
|
|
11
|
+
* // This component must be wrapped with CompositeGroup
|
|
12
|
+
* const props = useCompositeGroupLabel();
|
|
13
|
+
* <Role {...props}>Label</Role>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const useCompositeGroupLabel: import("../utils/types.js").Hook<CompositeGroupLabelOptions<"div">>;
|
|
17
|
+
/**
|
|
18
|
+
* Renders a label in a composite group. This component must be wrapped with
|
|
19
|
+
* `CompositeGroup` so the `aria-labelledby` prop is properly set on the
|
|
20
|
+
* composite group element.
|
|
21
|
+
* @see https://ariakit.org/components/composite
|
|
22
|
+
* @example
|
|
23
|
+
* ```jsx
|
|
24
|
+
* const composite = useCompositeStore();
|
|
25
|
+
* <Composite store={composite}>
|
|
26
|
+
* <CompositeGroup>
|
|
27
|
+
* <CompositeGroupLabel>Label</CompositeGroupLabel>
|
|
28
|
+
* <CompositeItem>Item 1</CompositeItem>
|
|
29
|
+
* <CompositeItem>Item 2</CompositeItem>
|
|
30
|
+
* </CompositeGroup>
|
|
31
|
+
* </Composite>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const CompositeGroupLabel: import("../utils/types.js").Component<CompositeGroupLabelOptions<"div">>;
|
|
35
|
+
export interface CompositeGroupLabelOptions<T extends As = "div"> extends GroupLabelOptions<T> {
|
|
36
|
+
/**
|
|
37
|
+
* Object returned by the `useCompositeStore` hook. If not provided, the
|
|
38
|
+
* parent `Composite` component's context will be used.
|
|
39
|
+
*/
|
|
40
|
+
store?: CompositeStore;
|
|
41
|
+
}
|
|
42
|
+
export type CompositeGroupLabelProps<T extends As = "div"> = Props<CompositeGroupLabelOptions<T>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _7AIJRTAHcjs = require('../__chunks/7AIJRTAH.cjs');
|
|
5
|
+
require('../__chunks/UIUFH5TV.cjs');
|
|
6
|
+
require('../__chunks/K56WQU76.cjs');
|
|
7
|
+
require('../__chunks/UYIFJ7U3.cjs');
|
|
8
|
+
require('../__chunks/5QY4WCTR.cjs');
|
|
9
|
+
require('../__chunks/2X5K3J7Y.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.CompositeGroup = _7AIJRTAHcjs.CompositeGroup; exports.useCompositeGroup = _7AIJRTAHcjs.useCompositeGroup;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { GroupOptions } from "../group/group.js";
|
|
2
|
+
import type { As, Props } from "../utils/types.js";
|
|
3
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
4
|
+
/**
|
|
5
|
+
* Returns props to create a `CompositeGroup` component.
|
|
6
|
+
* @see https://ariakit.org/components/composite
|
|
7
|
+
* @example
|
|
8
|
+
* ```jsx
|
|
9
|
+
* const store = useCompositeStore();
|
|
10
|
+
* const props = useCompositeGroup({ store });
|
|
11
|
+
* <Composite store={store}>
|
|
12
|
+
* <Role {...props}>
|
|
13
|
+
* <CompositeGroupLabel>Label</CompositeGroupLabel>
|
|
14
|
+
* <CompositeItem>Item 1</CompositeItem>
|
|
15
|
+
* <CompositeItem>Item 2</CompositeItem>
|
|
16
|
+
* </Role>
|
|
17
|
+
* </Composite>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useCompositeGroup: import("../utils/types.js").Hook<CompositeGroupOptions<"div">>;
|
|
21
|
+
/**
|
|
22
|
+
* Renders a group element for composite items.
|
|
23
|
+
* @see https://ariakit.org/components/composite
|
|
24
|
+
* @example
|
|
25
|
+
* ```jsx
|
|
26
|
+
* const composite = useCompositeStore();
|
|
27
|
+
* <Composite store={composite}>
|
|
28
|
+
* <CompositeGroup>
|
|
29
|
+
* <CompositeGroupLabel>Label</CompositeGroupLabel>
|
|
30
|
+
* <CompositeItem>Item 1</CompositeItem>
|
|
31
|
+
* <CompositeItem>Item 2</CompositeItem>
|
|
32
|
+
* </CompositeGroup>
|
|
33
|
+
* </Composite>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const CompositeGroup: import("../utils/types.js").Component<CompositeGroupOptions<"div">>;
|
|
37
|
+
export interface CompositeGroupOptions<T extends As = "div"> extends GroupOptions<T> {
|
|
38
|
+
/**
|
|
39
|
+
* Object returned by the `useCompositeStore` hook. If not provided, the
|
|
40
|
+
* parent `Composite` component's context will be used.
|
|
41
|
+
*/
|
|
42
|
+
store?: CompositeStore;
|
|
43
|
+
}
|
|
44
|
+
export type CompositeGroupProps<T extends As = "div"> = Props<CompositeGroupOptions<T>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _TBYPXZ5Hcjs = require('../__chunks/TBYPXZ5H.cjs');
|
|
5
|
+
require('../__chunks/NVMBKFRB.cjs');
|
|
6
|
+
require('../__chunks/UYIFJ7U3.cjs');
|
|
7
|
+
require('../__chunks/5QY4WCTR.cjs');
|
|
8
|
+
require('../__chunks/2X5K3J7Y.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.CompositeHover = _TBYPXZ5Hcjs.CompositeHover; exports.useCompositeHover = _TBYPXZ5Hcjs.useCompositeHover;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { MouseEvent as ReactMouseEvent } from "react";
|
|
2
|
+
import type { BooleanOrCallback } from "@ariakit/core/utils/types";
|
|
3
|
+
import type { As, Options, Props } from "../utils/types.js";
|
|
4
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
5
|
+
/**
|
|
6
|
+
* Returns props to create a `CompositeHover` component. The composite item that
|
|
7
|
+
* receives these props will get focused on mouse move and lose focus to the
|
|
8
|
+
* composite base element on mouse leave. This should be combined with the
|
|
9
|
+
* `CompositeItem` component, the `useCompositeItem` hook or any component/hook
|
|
10
|
+
* that uses them underneath.
|
|
11
|
+
* @see https://ariakit.org/components/composite
|
|
12
|
+
* @example
|
|
13
|
+
* ```jsx
|
|
14
|
+
* const store = useCompositeStore();
|
|
15
|
+
* const props = useCompositeHover({ store });
|
|
16
|
+
* <CompositeItem store={store} {...props}>Item</CompositeItem>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const useCompositeHover: import("../utils/types.js").Hook<CompositeHoverOptions<"div">>;
|
|
20
|
+
/**
|
|
21
|
+
* Renders an element in a composite widget that receives focus on mouse move
|
|
22
|
+
* and loses focus to the composite base element on mouse leave. This should be
|
|
23
|
+
* combined with the `CompositeItem` component, the `useCompositeItem` hook or
|
|
24
|
+
* any component/hook that uses them underneath.
|
|
25
|
+
* @see https://ariakit.org/components/composite
|
|
26
|
+
* @example
|
|
27
|
+
* ```jsx
|
|
28
|
+
* const composite = useCompositeStore();
|
|
29
|
+
* <Composite store={composite}>
|
|
30
|
+
* <CompositeHover as={CompositeItem}>Item</CompositeHover>
|
|
31
|
+
* </Composite>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const CompositeHover: import("../utils/types.js").Component<CompositeHoverOptions<"div">>;
|
|
35
|
+
export interface CompositeHoverOptions<T extends As = "div"> extends Options<T> {
|
|
36
|
+
/**
|
|
37
|
+
* Object returned by the `useCompositeStore` hook. If not provided, the
|
|
38
|
+
* parent `Composite` component's context will be used.
|
|
39
|
+
*/
|
|
40
|
+
store?: CompositeStore;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to focus the composite item on hover.
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
focusOnHover?: BooleanOrCallback<ReactMouseEvent<HTMLElement>>;
|
|
46
|
+
}
|
|
47
|
+
export type CompositeHoverProps<T extends As = "div"> = Props<CompositeHoverOptions<T>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _EZH72G5Tcjs = require('../__chunks/EZH72G5T.cjs');
|
|
5
|
+
require('../__chunks/6622YWGR.cjs');
|
|
6
|
+
require('../__chunks/UYIFJ7U3.cjs');
|
|
7
|
+
require('../__chunks/5QY4WCTR.cjs');
|
|
8
|
+
require('../__chunks/2X5K3J7Y.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.CompositeInput = _EZH72G5Tcjs.CompositeInput; exports.useCompositeInput = _EZH72G5Tcjs.useCompositeInput;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { As, Options, Props } from "../utils/types.js";
|
|
2
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns props to create a `CompositeInput` component. This should be used in
|
|
5
|
+
* conjunction with the `CompositeItem` component, the `useCompositeItem` hook,
|
|
6
|
+
* or any other component/hook that uses `CompositeItem` underneath.
|
|
7
|
+
* @see https://ariakit.org/components/composite
|
|
8
|
+
* @example
|
|
9
|
+
* ```jsx
|
|
10
|
+
* const store = useCompositeStore();
|
|
11
|
+
* const props = useCompositeInput({ store });
|
|
12
|
+
* <Composite store={store}>
|
|
13
|
+
* <CompositeItem {...props} />
|
|
14
|
+
* </Composite>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const useCompositeInput: import("../utils/types.js").Hook<CompositeInputOptions<"input">>;
|
|
18
|
+
/**
|
|
19
|
+
* Renders an input as a composite item. This should be used in conjunction with
|
|
20
|
+
* the `CompositeItem` component or a component that uses `CompositeItem`
|
|
21
|
+
* underneath.
|
|
22
|
+
* @see https://ariakit.org/components/composite
|
|
23
|
+
* @example
|
|
24
|
+
* ```jsx
|
|
25
|
+
* const composite = useCompositeStore();
|
|
26
|
+
* <Composite store={composite}>
|
|
27
|
+
* <CompositeItem as={CompositeInput} />
|
|
28
|
+
* </Composite>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const CompositeInput: import("../utils/types.js").Component<CompositeInputOptions<"input">>;
|
|
32
|
+
export interface CompositeInputOptions<T extends As = "input"> extends Options<T> {
|
|
33
|
+
/**
|
|
34
|
+
* Object returned by the `useCompositeStore` hook. If not provided, the
|
|
35
|
+
* parent `Composite` component's context will be used.
|
|
36
|
+
*/
|
|
37
|
+
store?: CompositeStore;
|
|
38
|
+
}
|
|
39
|
+
export type CompositeInputProps<T extends As = "input"> = Props<CompositeInputOptions<T>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _TIVUAJD3cjs = require('../__chunks/TIVUAJD3.cjs');
|
|
5
|
+
require('../__chunks/EWCMH6G3.cjs');
|
|
6
|
+
require('../__chunks/3QEUUQVB.cjs');
|
|
7
|
+
require('../__chunks/ZQAFJQIS.cjs');
|
|
8
|
+
require('../__chunks/6622YWGR.cjs');
|
|
9
|
+
require('../__chunks/44UMDBZE.cjs');
|
|
10
|
+
require('../__chunks/NVMBKFRB.cjs');
|
|
11
|
+
require('../__chunks/UYIFJ7U3.cjs');
|
|
12
|
+
require('../__chunks/5QY4WCTR.cjs');
|
|
13
|
+
require('../__chunks/2X5K3J7Y.cjs');
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.CompositeItem = _TIVUAJD3cjs.CompositeItem; exports.useCompositeItem = _TIVUAJD3cjs.useCompositeItem;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { KeyboardEvent } from "react";
|
|
2
|
+
import type { BooleanOrCallback } from "@ariakit/core/utils/types";
|
|
3
|
+
import type { CollectionItemOptions } from "../collection/collection-item.js";
|
|
4
|
+
import type { CommandOptions } from "../command/command.js";
|
|
5
|
+
import type { As, Props } from "../utils/types.js";
|
|
6
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
7
|
+
/**
|
|
8
|
+
* Returns props to create a `CompositeItem` component.
|
|
9
|
+
* @see https://ariakit.org/components/composite
|
|
10
|
+
* @example
|
|
11
|
+
* ```jsx
|
|
12
|
+
* const store = useCompositeStore();
|
|
13
|
+
* const props = useCompositeItem({ store });
|
|
14
|
+
* <Role {...props}>Item 1</Role>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const useCompositeItem: import("../utils/types.js").Hook<CompositeItemOptions<"button">>;
|
|
18
|
+
/**
|
|
19
|
+
* Renders a composite item.
|
|
20
|
+
* @see https://ariakit.org/components/composite
|
|
21
|
+
* @example
|
|
22
|
+
* ```jsx
|
|
23
|
+
* const composite = useCompositeStore();
|
|
24
|
+
* <Composite store={composite}>
|
|
25
|
+
* <CompositeItem>Item 1</CompositeItem>
|
|
26
|
+
* <CompositeItem>Item 2</CompositeItem>
|
|
27
|
+
* <CompositeItem>Item 3</CompositeItem>
|
|
28
|
+
* </Composite>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare const CompositeItem: import("../utils/types.js").Component<CompositeItemOptions<"button">>;
|
|
32
|
+
export interface CompositeItemOptions<T extends As = "button"> extends CommandOptions<T>, CollectionItemOptions<T> {
|
|
33
|
+
/**
|
|
34
|
+
* Object returned by the `useCompositeStore` hook. If not provided, the
|
|
35
|
+
* parent `Composite` component's context will be used.
|
|
36
|
+
*/
|
|
37
|
+
store?: CompositeStore;
|
|
38
|
+
/**
|
|
39
|
+
* The id that will be used to group items in the same row. This is usually
|
|
40
|
+
* retrieved by the `CompositeRow` component through context so in most cases
|
|
41
|
+
* you don't need to set it manually.
|
|
42
|
+
*/
|
|
43
|
+
rowId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Whether the scroll behavior should be prevented when pressing arrow keys on
|
|
46
|
+
* the first or the last items.
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
preventScrollOnKeyDown?: BooleanOrCallback<KeyboardEvent<HTMLElement>>;
|
|
50
|
+
/**
|
|
51
|
+
* Whether pressing arrow keys should move the focus to a different item.
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
moveOnKeyPress?: BooleanOrCallback<KeyboardEvent<HTMLElement>>;
|
|
55
|
+
}
|
|
56
|
+
export type CompositeItemProps<T extends As = "button"> = Props<CompositeItemOptions<T>>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _LICOAFSXcjs = require('../__chunks/LICOAFSX.cjs');
|
|
4
|
+
require('../__chunks/22VQR3WC.cjs');
|
|
5
|
+
require('../__chunks/VSKE43XZ.cjs');
|
|
6
|
+
require('../__chunks/GTWUFHVO.cjs');
|
|
7
|
+
require('../__chunks/W5PBA4D6.cjs');
|
|
8
|
+
require('../__chunks/BJTWNJAP.cjs');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _TIVUAJD3cjs = require('../__chunks/TIVUAJD3.cjs');
|
|
12
|
+
require('../__chunks/EWCMH6G3.cjs');
|
|
13
|
+
require('../__chunks/3QEUUQVB.cjs');
|
|
14
|
+
require('../__chunks/ZQAFJQIS.cjs');
|
|
15
|
+
require('../__chunks/6622YWGR.cjs');
|
|
16
|
+
require('../__chunks/44UMDBZE.cjs');
|
|
17
|
+
require('../__chunks/NVMBKFRB.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var _UYIFJ7U3cjs = require('../__chunks/UYIFJ7U3.cjs');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
var _5QY4WCTRcjs = require('../__chunks/5QY4WCTR.cjs');
|
|
27
|
+
require('../__chunks/2X5K3J7Y.cjs');
|
|
28
|
+
|
|
29
|
+
// src/composite/composite-overflow-disclosure.ts
|
|
30
|
+
var _react = require('react');
|
|
31
|
+
var useCompositeOverflowDisclosure = _UYIFJ7U3cjs.createHook.call(void 0, ({ store, ...props }) => {
|
|
32
|
+
const ref = _react.useRef.call(void 0, null);
|
|
33
|
+
const [shouldRegisterItem, setShouldRegisterItem] = _react.useState.call(void 0, false);
|
|
34
|
+
_react.useEffect.call(void 0, () => {
|
|
35
|
+
return store.sync(() => {
|
|
36
|
+
store.setDisclosureElement(ref.current);
|
|
37
|
+
}, ["disclosureElement"]);
|
|
38
|
+
}, [store]);
|
|
39
|
+
const onFocusProp = props.onFocus;
|
|
40
|
+
const onFocus = _5QY4WCTRcjs.useEvent.call(void 0, (event) => {
|
|
41
|
+
_optionalChain([onFocusProp, 'optionalCall', _ => _(event)]);
|
|
42
|
+
if (event.defaultPrevented)
|
|
43
|
+
return;
|
|
44
|
+
setShouldRegisterItem(true);
|
|
45
|
+
});
|
|
46
|
+
const onBlurProp = props.onBlur;
|
|
47
|
+
const onBlur = _5QY4WCTRcjs.useEvent.call(void 0, (event) => {
|
|
48
|
+
_optionalChain([onBlurProp, 'optionalCall', _2 => _2(event)]);
|
|
49
|
+
if (event.defaultPrevented)
|
|
50
|
+
return;
|
|
51
|
+
setShouldRegisterItem(false);
|
|
52
|
+
});
|
|
53
|
+
props = {
|
|
54
|
+
"aria-hidden": !shouldRegisterItem,
|
|
55
|
+
...props,
|
|
56
|
+
ref: _5QY4WCTRcjs.useForkRef.call(void 0, props.ref, ref),
|
|
57
|
+
onFocus,
|
|
58
|
+
onBlur
|
|
59
|
+
};
|
|
60
|
+
props = _TIVUAJD3cjs.useCompositeItem.call(void 0, { ...props, shouldRegisterItem });
|
|
61
|
+
props = _LICOAFSXcjs.usePopoverDisclosure.call(void 0, { store, ...props });
|
|
62
|
+
return props;
|
|
63
|
+
});
|
|
64
|
+
var CompositeOverflowDisclosure = _UYIFJ7U3cjs.createComponent.call(void 0, (props) => {
|
|
65
|
+
const htmlProps = useCompositeOverflowDisclosure(props);
|
|
66
|
+
return _UYIFJ7U3cjs.createElement.call(void 0, "button", htmlProps);
|
|
67
|
+
});
|
|
68
|
+
if (process.env.NODE_ENV !== "production") {
|
|
69
|
+
CompositeOverflowDisclosure.displayName = "CompositeOverflowDisclosure";
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
exports.CompositeOverflowDisclosure = CompositeOverflowDisclosure; exports.useCompositeOverflowDisclosure = useCompositeOverflowDisclosure;
|