@ariakit/react-core 0.3.1 → 0.3.3
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/CHANGELOG.md +64 -0
- package/cjs/__chunks/{ZPTFLDSU.cjs → 2FBFVNEX.cjs} +7 -7
- package/cjs/__chunks/{OX7M6AXH.cjs → 2U6ETSVZ.cjs} +2 -2
- package/cjs/__chunks/{7F6H5HXC.cjs → 32BSJR36.cjs} +2 -2
- package/cjs/__chunks/{BPMML63M.cjs → 3MYGLY4O.cjs} +4 -4
- package/cjs/__chunks/{J63NAJOO.cjs → 45OYD4CU.cjs} +4 -4
- package/cjs/__chunks/{BPPAZUXP.cjs → 4WUYORFX.cjs} +2 -2
- package/cjs/__chunks/{4HKELPDA.cjs → 64S5KX7F.cjs} +6 -6
- package/cjs/__chunks/{EQEXTQQ6.cjs → 6G334OGZ.cjs} +5 -5
- package/cjs/__chunks/{V37GXOUJ.cjs → BMAPXRQV.cjs} +4 -4
- package/cjs/__chunks/{HYYXXXEK.cjs → BSOHJE7R.cjs} +2 -2
- package/cjs/__chunks/{INDMFBTS.cjs → COHI5HTS.cjs} +17 -16
- package/cjs/__chunks/{G33PRHOG.cjs → D3SPQ2OY.cjs} +10 -10
- package/cjs/__chunks/{DPLHWKRP.cjs → DFFFHQVQ.cjs} +3 -3
- package/cjs/__chunks/{NBCR3CLP.cjs → F4RJLWZG.cjs} +3 -3
- package/cjs/__chunks/{NPDPNCSD.cjs → FXRXBA2Y.cjs} +2 -2
- package/cjs/__chunks/{2C7LUQOS.cjs → G2U3D7Y6.cjs} +2 -2
- package/cjs/__chunks/{GBOZYA5C.cjs → H562FOJ4.cjs} +4 -4
- package/cjs/__chunks/{X3UARAKT.cjs → HADU3YYR.cjs} +2 -2
- package/cjs/__chunks/{C47ZNHA6.cjs → HIGZ476M.cjs} +7 -7
- package/cjs/__chunks/{6MLKTO2T.cjs → HRUFFILM.cjs} +7 -7
- package/cjs/__chunks/{2VQBXUAI.cjs → IK6X277S.cjs} +2 -2
- package/cjs/__chunks/{OAQQQ7LS.cjs → J72SOT4S.cjs} +8 -7
- package/cjs/__chunks/{FWCQCCG3.cjs → JDIVO6OK.cjs} +12 -12
- package/cjs/__chunks/{U33H4JTD.cjs → JQKZHT3K.cjs} +6 -6
- package/cjs/__chunks/{GCTYF2Y6.cjs → K5M7LOPE.cjs} +3 -3
- package/cjs/__chunks/{ZQTMT453.cjs → KMOIJMBF.cjs} +2 -2
- package/cjs/__chunks/{ZJ4ICN62.cjs → L4TB7MRW.cjs} +4 -4
- package/cjs/__chunks/{B4KDFSF3.cjs → LQZ6USCZ.cjs} +2 -2
- package/cjs/__chunks/{SL7OXEFQ.cjs → MITXZOVW.cjs} +8 -8
- package/cjs/__chunks/{B3TGB2C3.cjs → NPP6EMNE.cjs} +7 -7
- package/cjs/__chunks/{SKVJLFWS.cjs → O7UGQ5NR.cjs} +7 -7
- package/cjs/__chunks/{HDYD5S2P.cjs → ORDLD4QX.cjs} +3 -3
- package/cjs/__chunks/{ZEASCR4B.cjs → PQU457XU.cjs} +49 -23
- package/cjs/__chunks/{JKMBJCXA.cjs → QK4GI6B3.cjs} +7 -12
- package/cjs/__chunks/{WRVKUV4V.cjs → RSJXW4HU.cjs} +7 -7
- package/cjs/__chunks/{6BAHKJ5K.cjs → RWS2MAR2.cjs} +0 -7
- package/cjs/__chunks/{JNVNPB37.cjs → RXP7Z4XR.cjs} +2 -2
- package/cjs/__chunks/{6G5GJF5Q.cjs → SELCJFCB.cjs} +2 -2
- package/cjs/__chunks/TLA46MN6.cjs +79 -0
- package/cjs/__chunks/{I63PYP2U.cjs → UHRHLHM2.cjs} +4 -3
- package/cjs/__chunks/{LCKU3TYW.cjs → VI6T32XI.cjs} +12 -2
- package/cjs/__chunks/{PHDU6PLM.cjs → WUQKDMC4.cjs} +2 -2
- package/cjs/__chunks/{J77SNKFZ.cjs → Y66YQJ4L.cjs} +4 -4
- package/cjs/__chunks/{P2EILHN6.cjs → Z6EBOLR5.cjs} +5 -5
- package/cjs/__chunks/{27A4YAUB.cjs → ZA36X7UQ.cjs} +4 -4
- package/cjs/__chunks/{DNFCOHE4.cjs → ZKEGT5BQ.cjs} +2 -2
- package/cjs/__chunks/{2FEEKOTF.cjs → ZL7HIJU2.cjs} +2 -2
- package/cjs/__chunks/{S4UMINQJ.cjs → ZZHSM37C.cjs} +2 -2
- package/cjs/button/button.cjs +4 -4
- package/cjs/checkbox/checkbox-provider.cjs +3 -3
- package/cjs/checkbox/checkbox-store.cjs +3 -3
- package/cjs/checkbox/checkbox.cjs +5 -5
- package/cjs/checkbox/checkbox.d.ts +12 -9
- package/cjs/collection/collection-provider.cjs +3 -3
- package/cjs/collection/collection-renderer.cjs +3 -3
- package/cjs/collection/collection-store.cjs +3 -3
- package/cjs/collection/collection.d.ts +5 -1
- package/cjs/combobox/combobox-cancel.cjs +4 -4
- package/cjs/combobox/combobox-cancel.d.ts +14 -9
- package/cjs/combobox/combobox-disclosure.cjs +6 -6
- package/cjs/combobox/combobox-disclosure.d.ts +14 -9
- package/cjs/combobox/combobox-group-label.d.ts +16 -11
- package/cjs/combobox/combobox-group.d.ts +16 -11
- package/cjs/combobox/combobox-item-value.d.ts +14 -10
- package/cjs/combobox/combobox-item.cjs +5 -5
- package/cjs/combobox/combobox-item.d.ts +45 -20
- package/cjs/combobox/combobox-list.cjs +3 -3
- package/cjs/combobox/combobox-list.d.ts +17 -10
- package/cjs/combobox/combobox-popover.cjs +15 -15
- package/cjs/combobox/combobox-popover.d.ts +8 -7
- package/cjs/combobox/combobox-provider.cjs +8 -8
- package/cjs/combobox/combobox-row.d.ts +21 -16
- package/cjs/combobox/combobox-separator.d.ts +15 -10
- package/cjs/combobox/combobox-store.cjs +8 -8
- package/cjs/combobox/combobox-store.d.ts +9 -4
- package/cjs/combobox/combobox.cjs +3 -3
- package/cjs/combobox/combobox.d.ts +55 -36
- package/cjs/command/command.cjs +3 -3
- package/cjs/composite/composite-container.cjs +3 -3
- package/cjs/composite/composite-item.cjs +5 -5
- package/cjs/composite/composite-overflow-disclosure.cjs +10 -10
- package/cjs/composite/composite-overflow-store.cjs +6 -6
- package/cjs/composite/composite-overflow.cjs +13 -13
- package/cjs/composite/composite-provider.cjs +4 -4
- package/cjs/composite/composite-renderer.cjs +4 -4
- package/cjs/composite/composite-store.cjs +4 -4
- package/cjs/composite/composite-typeahead.d.ts +0 -4
- package/cjs/composite/composite.cjs +3 -3
- package/cjs/dialog/dialog-backdrop.cjs +6 -6
- package/cjs/dialog/dialog-disclosure.cjs +6 -6
- package/cjs/dialog/dialog-dismiss.cjs +5 -5
- package/cjs/dialog/dialog-provider.cjs +4 -4
- package/cjs/dialog/dialog-store.cjs +4 -4
- package/cjs/dialog/dialog.cjs +12 -12
- package/cjs/dialog/dialog.d.ts +25 -11
- package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +3 -3
- package/cjs/dialog/utils/disable-accessibility-tree-outside.d.ts +1 -1
- package/cjs/dialog/utils/disable-tree.cjs +14 -0
- package/cjs/dialog/utils/disable-tree.d.ts +5 -0
- package/cjs/dialog/utils/mark-tree-outside.cjs +3 -3
- package/cjs/dialog/utils/mark-tree-outside.d.ts +1 -1
- package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +4 -4
- package/cjs/dialog/utils/use-nested-dialogs.cjs +2 -2
- package/cjs/dialog/utils/walk-tree-outside.cjs +5 -2
- package/cjs/dialog/utils/walk-tree-outside.d.ts +3 -2
- package/cjs/disclosure/disclosure-content.d.ts +9 -4
- package/cjs/disclosure/disclosure-provider.cjs +3 -3
- package/cjs/disclosure/disclosure-store.cjs +3 -3
- package/cjs/disclosure/disclosure-store.d.ts +1 -2
- package/cjs/disclosure/disclosure.cjs +5 -5
- package/cjs/disclosure/disclosure.d.ts +13 -6
- package/cjs/focusable/focusable.cjs +2 -2
- package/cjs/form/form-checkbox.cjs +7 -7
- package/cjs/form/form-checkbox.d.ts +5 -1
- package/cjs/form/form-description.d.ts +10 -3
- package/cjs/form/form-error.d.ts +10 -3
- package/cjs/form/form-field.d.ts +17 -9
- package/cjs/form/form-group-label.d.ts +7 -4
- package/cjs/form/form-group.d.ts +5 -2
- package/cjs/form/form-input.cjs +2 -2
- package/cjs/form/form-input.d.ts +9 -4
- package/cjs/form/form-label.d.ts +10 -3
- package/cjs/form/form-provider.cjs +4 -4
- package/cjs/form/form-push.cjs +4 -4
- package/cjs/form/form-push.d.ts +5 -2
- package/cjs/form/form-radio-group.d.ts +5 -1
- package/cjs/form/form-radio.cjs +6 -6
- package/cjs/form/form-radio.d.ts +5 -1
- package/cjs/form/form-remove.cjs +4 -4
- package/cjs/form/form-remove.d.ts +5 -2
- package/cjs/form/form-reset.cjs +4 -4
- package/cjs/form/form-reset.d.ts +6 -2
- package/cjs/form/form-store.cjs +4 -4
- package/cjs/form/form-store.d.ts +5 -1
- package/cjs/form/form-submit.cjs +4 -4
- package/cjs/form/form-submit.d.ts +5 -2
- package/cjs/form/form.d.ts +5 -1
- package/cjs/hovercard/hovercard-anchor.cjs +3 -3
- package/cjs/hovercard/hovercard-anchor.d.ts +11 -5
- package/cjs/hovercard/hovercard-arrow.d.ts +13 -8
- package/cjs/hovercard/hovercard-description.d.ts +14 -9
- package/cjs/hovercard/hovercard-disclosure.cjs +6 -6
- package/cjs/hovercard/hovercard-disclosure.d.ts +14 -8
- package/cjs/hovercard/hovercard-dismiss.cjs +7 -7
- package/cjs/hovercard/hovercard-dismiss.d.ts +11 -6
- package/cjs/hovercard/hovercard-heading.d.ts +14 -9
- package/cjs/hovercard/hovercard-provider.cjs +6 -6
- package/cjs/hovercard/hovercard-store.cjs +6 -6
- package/cjs/hovercard/hovercard-store.d.ts +1 -0
- package/cjs/hovercard/hovercard.cjs +14 -14
- package/cjs/hovercard/hovercard.d.ts +11 -5
- package/cjs/menu/menu-arrow.d.ts +11 -7
- package/cjs/menu/menu-bar-provider.cjs +5 -5
- package/cjs/menu/menu-bar-store.cjs +5 -5
- package/cjs/menu/menu-bar.cjs +3 -3
- package/cjs/menu/menu-bar.d.ts +23 -22
- package/cjs/menu/menu-button-arrow.d.ts +16 -11
- package/cjs/menu/menu-button.cjs +14 -12
- package/cjs/menu/menu-button.d.ts +19 -11
- package/cjs/menu/menu-description.d.ts +13 -8
- package/cjs/menu/menu-dismiss.cjs +7 -7
- package/cjs/menu/menu-dismiss.d.ts +10 -6
- package/cjs/menu/menu-group-label.d.ts +15 -10
- package/cjs/menu/menu-group.d.ts +15 -10
- package/cjs/menu/menu-heading.d.ts +10 -6
- package/cjs/menu/menu-item-check.d.ts +15 -15
- package/cjs/menu/menu-item-checkbox.cjs +10 -10
- package/cjs/menu/menu-item-checkbox.d.ts +13 -8
- package/cjs/menu/menu-item-radio.cjs +8 -8
- package/cjs/menu/menu-item-radio.d.ts +18 -13
- package/cjs/menu/menu-item.cjs +6 -6
- package/cjs/menu/menu-item.d.ts +16 -9
- package/cjs/menu/menu-list.cjs +5 -5
- package/cjs/menu/menu-list.d.ts +12 -7
- package/cjs/menu/menu-provider.cjs +9 -9
- package/cjs/menu/menu-separator.d.ts +14 -10
- package/cjs/menu/menu-store.cjs +9 -9
- package/cjs/menu/menu-store.d.ts +15 -15
- package/cjs/menu/menu.cjs +34 -46
- package/cjs/menu/menu.d.ts +7 -6
- package/cjs/popover/popover-anchor.d.ts +9 -4
- package/cjs/popover/popover-arrow.d.ts +14 -8
- package/cjs/popover/popover-description.d.ts +13 -8
- package/cjs/popover/popover-disclosure-arrow.d.ts +18 -10
- package/cjs/popover/popover-disclosure.cjs +7 -7
- package/cjs/popover/popover-disclosure.d.ts +4 -3
- package/cjs/popover/popover-dismiss.cjs +6 -6
- package/cjs/popover/popover-dismiss.d.ts +13 -7
- package/cjs/popover/popover-heading.d.ts +14 -8
- package/cjs/popover/popover-provider.cjs +5 -5
- package/cjs/popover/popover-store.cjs +5 -5
- package/cjs/popover/popover.cjs +13 -13
- package/cjs/popover/popover.d.ts +13 -9
- package/cjs/portal/portal.d.ts +17 -6
- package/cjs/radio/radio-group.cjs +3 -3
- package/cjs/radio/radio-group.d.ts +5 -1
- package/cjs/radio/radio-provider.cjs +5 -5
- package/cjs/radio/radio-store.cjs +5 -5
- package/cjs/radio/radio-store.d.ts +0 -5
- package/cjs/radio/radio.cjs +6 -6
- package/cjs/radio/radio.d.ts +6 -2
- package/cjs/select/select-arrow.d.ts +17 -12
- package/cjs/select/select-group-label.d.ts +21 -16
- package/cjs/select/select-group.d.ts +16 -11
- package/cjs/select/select-item-check.d.ts +22 -16
- package/cjs/select/select-item.cjs +5 -5
- package/cjs/select/select-item.d.ts +51 -24
- package/cjs/select/select-label.d.ts +18 -14
- package/cjs/select/select-list.cjs +4 -4
- package/cjs/select/select-list.d.ts +26 -16
- package/cjs/select/select-popover.cjs +16 -16
- package/cjs/select/select-popover.d.ts +11 -10
- package/cjs/select/select-provider.cjs +8 -8
- package/cjs/select/select-renderer.cjs +7 -7
- package/cjs/select/select-row.d.ts +20 -15
- package/cjs/select/select-separator.d.ts +16 -11
- package/cjs/select/select-store.cjs +8 -8
- package/cjs/select/select-store.d.ts +2 -6
- package/cjs/select/select.cjs +7 -7
- package/cjs/select/select.d.ts +39 -17
- package/cjs/tab/tab-list.cjs +3 -3
- package/cjs/tab/tab-panel.cjs +5 -5
- package/cjs/tab/tab-provider.cjs +5 -5
- package/cjs/tab/tab-store.cjs +5 -5
- package/cjs/tab/tab.cjs +5 -5
- package/cjs/toolbar/toolbar-container.cjs +8 -8
- package/cjs/toolbar/toolbar-input.cjs +6 -6
- package/cjs/toolbar/toolbar-item.cjs +6 -6
- package/cjs/toolbar/toolbar-provider.cjs +5 -5
- package/cjs/toolbar/toolbar-store.cjs +5 -5
- package/cjs/toolbar/toolbar.cjs +8 -8
- package/cjs/tooltip/tooltip-anchor.cjs +3 -3
- package/cjs/tooltip/tooltip-provider.cjs +7 -7
- package/cjs/tooltip/tooltip-store.cjs +7 -7
- package/cjs/tooltip/tooltip.cjs +14 -14
- package/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/cjs/utils/store.cjs +2 -2
- package/dialog/utils/disable-tree/package.json +8 -0
- package/esm/__chunks/{EKIHOHWR.js → 26JVBZKI.js} +2 -2
- package/esm/__chunks/{3HFOFZP4.js → 2EIZAZYB.js} +1 -1
- package/esm/__chunks/{TQ2YQL6O.js → 3HY5ZQT3.js} +11 -1
- package/esm/__chunks/{FBTQUSIH.js → 3T4UFIWO.js} +2 -2
- package/esm/__chunks/{XXO3VVQU.js → 4LP74VAP.js} +4 -3
- package/esm/__chunks/{IZ6ZARCP.js → 4LQJSTB3.js} +1 -1
- package/esm/__chunks/{YJPXO6F5.js → 4VQSZLZX.js} +1 -1
- package/esm/__chunks/{72OJKUSZ.js → 54J7EHCU.js} +2 -2
- package/esm/__chunks/{HYNMOU7J.js → 56TAEBRJ.js} +1 -1
- package/esm/__chunks/{AYWP3ZW6.js → 5QIDAYL3.js} +1 -1
- package/esm/__chunks/{HJHTMRDC.js → 727IWAR7.js} +2 -2
- package/esm/__chunks/{HAVCR65N.js → 7LB47D2O.js} +1 -1
- package/esm/__chunks/{X5VV5CBA.js → 7VWXICM7.js} +3 -3
- package/esm/__chunks/{E6GADH6Y.js → BWOZSOC7.js} +3 -3
- package/esm/__chunks/{NWDF5QDV.js → C6MBVGZ2.js} +1 -1
- package/esm/__chunks/{R3N4R7UZ.js → CSCFKBRS.js} +3 -3
- package/esm/__chunks/{QPWEKAWF.js → D2BRO4YW.js} +1 -1
- package/esm/__chunks/{KZMKUBQH.js → D6CHFQY5.js} +1 -1
- package/esm/__chunks/{VDTDCNMP.js → DA5VDN5G.js} +2 -2
- package/esm/__chunks/{VPTWELSR.js → DHSMOVCA.js} +2 -2
- package/esm/__chunks/{HCTAKPNS.js → DJUMA466.js} +2 -2
- package/esm/__chunks/{XEZV3AK4.js → DO6GQUCF.js} +2 -2
- package/esm/__chunks/{QJMIKN5O.js → DX7BNVVX.js} +1 -1
- package/esm/__chunks/{XASENZA4.js → EGOOWJGN.js} +16 -15
- package/esm/__chunks/{WGAKICTY.js → EZ23JQKA.js} +2 -2
- package/esm/__chunks/{KGDYSCOM.js → FRKOFFMT.js} +6 -11
- package/esm/__chunks/{HGW6FZYU.js → G4QRTAYK.js} +2 -2
- package/esm/__chunks/{D5TF3EQR.js → GD5ZDP5D.js} +1 -1
- package/esm/__chunks/{PLOINBVB.js → HWJ7DGMR.js} +0 -7
- package/esm/__chunks/{NRLOAE2I.js → IAA7Y45N.js} +2 -2
- package/esm/__chunks/{MA5WD4CD.js → JE342XIS.js} +2 -2
- package/esm/__chunks/{35WVCYXU.js → KIYX5CLX.js} +2 -2
- package/esm/__chunks/{54DCICBS.js → KXTLHNBI.js} +1 -1
- package/esm/__chunks/{RVGVDX6B.js → MNVQ65E5.js} +1 -1
- package/esm/__chunks/{C5JX5C3O.js → NQQVRTV2.js} +2 -2
- package/esm/__chunks/{6LKB3PXM.js → O2VZZF7T.js} +3 -3
- package/esm/__chunks/{R4FKKQYI.js → OJDCQDIL.js} +2 -2
- package/esm/__chunks/{7AFOF5E7.js → R6PKH666.js} +1 -1
- package/esm/__chunks/{MXSIXS3C.js → SUD3LBWB.js} +1 -1
- package/esm/__chunks/{4JNX5L5C.js → T5VBGHBO.js} +1 -1
- package/esm/__chunks/{RJEKIG5Y.js → TWMREEKC.js} +1 -1
- package/esm/__chunks/VRCYQ6JX.js +79 -0
- package/esm/__chunks/{HMYMEP6U.js → W5ZMSHVN.js} +1 -1
- package/esm/__chunks/{RA2AAYOC.js → X6F6ND2A.js} +4 -3
- package/esm/__chunks/{LND6SMHN.js → XBIFFFUN.js} +1 -1
- package/esm/__chunks/{4WK6LN27.js → XQCQJGZ3.js} +2 -2
- package/esm/__chunks/{CJPLAYFB.js → YGEFENKI.js} +44 -18
- package/esm/__chunks/{K6BB6DTS.js → YI522MHJ.js} +2 -2
- package/esm/button/button.js +3 -3
- package/esm/checkbox/checkbox-provider.js +2 -2
- package/esm/checkbox/checkbox-store.js +2 -2
- package/esm/checkbox/checkbox.d.ts +12 -9
- package/esm/checkbox/checkbox.js +4 -4
- package/esm/collection/collection-provider.js +2 -2
- package/esm/collection/collection-renderer.js +2 -2
- package/esm/collection/collection-store.js +2 -2
- package/esm/collection/collection.d.ts +5 -1
- package/esm/combobox/combobox-cancel.d.ts +14 -9
- package/esm/combobox/combobox-cancel.js +3 -3
- package/esm/combobox/combobox-disclosure.d.ts +14 -9
- package/esm/combobox/combobox-disclosure.js +5 -5
- package/esm/combobox/combobox-group-label.d.ts +16 -11
- package/esm/combobox/combobox-group.d.ts +16 -11
- package/esm/combobox/combobox-item-value.d.ts +14 -10
- package/esm/combobox/combobox-item.d.ts +45 -20
- package/esm/combobox/combobox-item.js +4 -4
- package/esm/combobox/combobox-list.d.ts +17 -10
- package/esm/combobox/combobox-list.js +2 -2
- package/esm/combobox/combobox-popover.d.ts +8 -7
- package/esm/combobox/combobox-popover.js +13 -13
- package/esm/combobox/combobox-provider.js +7 -7
- package/esm/combobox/combobox-row.d.ts +21 -16
- package/esm/combobox/combobox-separator.d.ts +15 -10
- package/esm/combobox/combobox-store.d.ts +9 -4
- package/esm/combobox/combobox-store.js +7 -7
- package/esm/combobox/combobox.d.ts +55 -36
- package/esm/combobox/combobox.js +2 -2
- package/esm/command/command.js +2 -2
- package/esm/composite/composite-container.js +2 -2
- package/esm/composite/composite-item.js +4 -4
- package/esm/composite/composite-overflow-disclosure.js +8 -8
- package/esm/composite/composite-overflow-store.js +4 -4
- package/esm/composite/composite-overflow.js +12 -12
- package/esm/composite/composite-provider.js +3 -3
- package/esm/composite/composite-renderer.js +3 -3
- package/esm/composite/composite-store.js +3 -3
- package/esm/composite/composite-typeahead.d.ts +0 -4
- package/esm/composite/composite.js +2 -2
- package/esm/dialog/dialog-backdrop.js +5 -5
- package/esm/dialog/dialog-disclosure.js +5 -5
- package/esm/dialog/dialog-dismiss.js +4 -4
- package/esm/dialog/dialog-provider.js +3 -3
- package/esm/dialog/dialog-store.js +3 -3
- package/esm/dialog/dialog.d.ts +25 -11
- package/esm/dialog/dialog.js +11 -11
- package/esm/dialog/utils/disable-accessibility-tree-outside.d.ts +1 -1
- package/esm/dialog/utils/disable-accessibility-tree-outside.js +2 -2
- package/esm/dialog/utils/disable-tree.d.ts +5 -0
- package/esm/dialog/utils/{disable-tree-outside.js → disable-tree.js} +5 -3
- package/esm/dialog/utils/mark-tree-outside.d.ts +1 -1
- package/esm/dialog/utils/mark-tree-outside.js +2 -2
- package/esm/dialog/utils/use-hide-on-interact-outside.js +3 -3
- package/esm/dialog/utils/use-nested-dialogs.js +1 -1
- package/esm/dialog/utils/walk-tree-outside.d.ts +3 -2
- package/esm/dialog/utils/walk-tree-outside.js +4 -1
- package/esm/disclosure/disclosure-content.d.ts +9 -4
- package/esm/disclosure/disclosure-provider.js +2 -2
- package/esm/disclosure/disclosure-store.d.ts +1 -2
- package/esm/disclosure/disclosure-store.js +2 -2
- package/esm/disclosure/disclosure.d.ts +13 -6
- package/esm/disclosure/disclosure.js +4 -4
- package/esm/focusable/focusable.js +1 -1
- package/esm/form/form-checkbox.d.ts +5 -1
- package/esm/form/form-checkbox.js +5 -5
- package/esm/form/form-description.d.ts +10 -3
- package/esm/form/form-error.d.ts +10 -3
- package/esm/form/form-field.d.ts +17 -9
- package/esm/form/form-group-label.d.ts +7 -4
- package/esm/form/form-group.d.ts +5 -2
- package/esm/form/form-input.d.ts +9 -4
- package/esm/form/form-input.js +1 -1
- package/esm/form/form-label.d.ts +10 -3
- package/esm/form/form-provider.js +3 -3
- package/esm/form/form-push.d.ts +5 -2
- package/esm/form/form-push.js +3 -3
- package/esm/form/form-radio-group.d.ts +5 -1
- package/esm/form/form-radio.d.ts +5 -1
- package/esm/form/form-radio.js +5 -5
- package/esm/form/form-remove.d.ts +5 -2
- package/esm/form/form-remove.js +3 -3
- package/esm/form/form-reset.d.ts +6 -2
- package/esm/form/form-reset.js +3 -3
- package/esm/form/form-store.d.ts +5 -1
- package/esm/form/form-store.js +3 -3
- package/esm/form/form-submit.d.ts +5 -2
- package/esm/form/form-submit.js +3 -3
- package/esm/form/form.d.ts +5 -1
- package/esm/hovercard/hovercard-anchor.d.ts +11 -5
- package/esm/hovercard/hovercard-anchor.js +2 -2
- package/esm/hovercard/hovercard-arrow.d.ts +13 -8
- package/esm/hovercard/hovercard-description.d.ts +14 -9
- package/esm/hovercard/hovercard-disclosure.d.ts +14 -8
- package/esm/hovercard/hovercard-disclosure.js +5 -5
- package/esm/hovercard/hovercard-dismiss.d.ts +11 -6
- package/esm/hovercard/hovercard-dismiss.js +6 -6
- package/esm/hovercard/hovercard-heading.d.ts +14 -9
- package/esm/hovercard/hovercard-provider.js +5 -5
- package/esm/hovercard/hovercard-store.d.ts +1 -0
- package/esm/hovercard/hovercard-store.js +5 -5
- package/esm/hovercard/hovercard.d.ts +11 -5
- package/esm/hovercard/hovercard.js +13 -13
- package/esm/menu/menu-arrow.d.ts +11 -7
- package/esm/menu/menu-bar-provider.js +4 -4
- package/esm/menu/menu-bar-store.js +4 -4
- package/esm/menu/menu-bar.d.ts +23 -22
- package/esm/menu/menu-bar.js +2 -2
- package/esm/menu/menu-button-arrow.d.ts +16 -11
- package/esm/menu/menu-button.d.ts +19 -11
- package/esm/menu/menu-button.js +11 -9
- package/esm/menu/menu-description.d.ts +13 -8
- package/esm/menu/menu-dismiss.d.ts +10 -6
- package/esm/menu/menu-dismiss.js +6 -6
- package/esm/menu/menu-group-label.d.ts +15 -10
- package/esm/menu/menu-group.d.ts +15 -10
- package/esm/menu/menu-heading.d.ts +10 -6
- package/esm/menu/menu-item-check.d.ts +15 -15
- package/esm/menu/menu-item-checkbox.d.ts +13 -8
- package/esm/menu/menu-item-checkbox.js +7 -7
- package/esm/menu/menu-item-radio.d.ts +18 -13
- package/esm/menu/menu-item-radio.js +6 -6
- package/esm/menu/menu-item.d.ts +16 -9
- package/esm/menu/menu-item.js +5 -5
- package/esm/menu/menu-list.d.ts +12 -7
- package/esm/menu/menu-list.js +4 -4
- package/esm/menu/menu-provider.js +8 -8
- package/esm/menu/menu-separator.d.ts +14 -10
- package/esm/menu/menu-store.d.ts +15 -15
- package/esm/menu/menu-store.js +8 -8
- package/esm/menu/menu.d.ts +7 -6
- package/esm/menu/menu.js +33 -45
- package/esm/popover/popover-anchor.d.ts +9 -4
- package/esm/popover/popover-arrow.d.ts +14 -8
- package/esm/popover/popover-description.d.ts +13 -8
- package/esm/popover/popover-disclosure-arrow.d.ts +18 -10
- package/esm/popover/popover-disclosure.d.ts +4 -3
- package/esm/popover/popover-disclosure.js +6 -6
- package/esm/popover/popover-dismiss.d.ts +13 -7
- package/esm/popover/popover-dismiss.js +5 -5
- package/esm/popover/popover-heading.d.ts +14 -8
- package/esm/popover/popover-provider.js +4 -4
- package/esm/popover/popover-store.js +4 -4
- package/esm/popover/popover.d.ts +13 -9
- package/esm/popover/popover.js +12 -12
- package/esm/portal/portal.d.ts +17 -6
- package/esm/radio/radio-group.d.ts +5 -1
- package/esm/radio/radio-group.js +2 -2
- package/esm/radio/radio-provider.js +4 -4
- package/esm/radio/radio-store.d.ts +0 -5
- package/esm/radio/radio-store.js +4 -4
- package/esm/radio/radio.d.ts +6 -2
- package/esm/radio/radio.js +5 -5
- package/esm/select/select-arrow.d.ts +17 -12
- package/esm/select/select-group-label.d.ts +21 -16
- package/esm/select/select-group.d.ts +16 -11
- package/esm/select/select-item-check.d.ts +22 -16
- package/esm/select/select-item.d.ts +51 -24
- package/esm/select/select-item.js +4 -4
- package/esm/select/select-label.d.ts +18 -14
- package/esm/select/select-list.d.ts +26 -16
- package/esm/select/select-list.js +3 -3
- package/esm/select/select-popover.d.ts +11 -10
- package/esm/select/select-popover.js +14 -14
- package/esm/select/select-provider.js +7 -7
- package/esm/select/select-renderer.js +3 -3
- package/esm/select/select-row.d.ts +20 -15
- package/esm/select/select-separator.d.ts +16 -11
- package/esm/select/select-store.d.ts +2 -6
- package/esm/select/select-store.js +7 -7
- package/esm/select/select.d.ts +39 -17
- package/esm/select/select.js +6 -6
- package/esm/tab/tab-list.js +2 -2
- package/esm/tab/tab-panel.js +3 -3
- package/esm/tab/tab-provider.js +4 -4
- package/esm/tab/tab-store.js +4 -4
- package/esm/tab/tab.js +4 -4
- package/esm/toolbar/toolbar-container.js +6 -6
- package/esm/toolbar/toolbar-input.js +5 -5
- package/esm/toolbar/toolbar-item.js +5 -5
- package/esm/toolbar/toolbar-provider.js +4 -4
- package/esm/toolbar/toolbar-store.js +4 -4
- package/esm/toolbar/toolbar.js +6 -6
- package/esm/tooltip/tooltip-anchor.js +2 -2
- package/esm/tooltip/tooltip-provider.js +6 -6
- package/esm/tooltip/tooltip-store.js +6 -6
- package/esm/tooltip/tooltip.js +13 -13
- package/esm/tsconfig.build.tsbuildinfo +1 -1
- package/esm/utils/store.js +1 -1
- package/package.json +5 -5
- package/cjs/__chunks/PD5YFDLO.cjs +0 -41
- package/cjs/dialog/utils/disable-tree-outside.cjs +0 -12
- package/cjs/dialog/utils/disable-tree-outside.d.ts +0 -3
- package/dialog/utils/disable-tree-outside/package.json +0 -8
- package/esm/__chunks/5M4ITSXL.js +0 -41
- package/esm/dialog/utils/disable-tree-outside.d.ts +0 -3
- package/cjs/__chunks/{BFLDQF3L.cjs → GQAB4M3B.cjs} +3 -3
- package/esm/__chunks/{M4OAD5XF.js → YTHH33BK.js} +3 -3
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import {
|
|
2
|
+
setProperty
|
|
3
|
+
} from "./FW6QFGFT.js";
|
|
4
|
+
|
|
5
|
+
// src/dialog/utils/walk-tree-outside.ts
|
|
6
|
+
import { contains, getDocument } from "@ariakit/core/utils/dom";
|
|
7
|
+
import { chain } from "@ariakit/core/utils/misc";
|
|
8
|
+
var ignoreTags = ["SCRIPT", "STYLE"];
|
|
9
|
+
function getSnapshotPropertyName(id) {
|
|
10
|
+
return `__ariakit-dialog-snapshot-${id}`;
|
|
11
|
+
}
|
|
12
|
+
function inSnapshot(id, element) {
|
|
13
|
+
const doc = getDocument(element);
|
|
14
|
+
const propertyName = getSnapshotPropertyName(id);
|
|
15
|
+
if (!doc.body[propertyName])
|
|
16
|
+
return true;
|
|
17
|
+
do {
|
|
18
|
+
if (element === doc.body)
|
|
19
|
+
return false;
|
|
20
|
+
if (!!element[propertyName])
|
|
21
|
+
return true;
|
|
22
|
+
if (!element.parentElement)
|
|
23
|
+
return false;
|
|
24
|
+
element = element.parentElement;
|
|
25
|
+
} while (true);
|
|
26
|
+
}
|
|
27
|
+
function isValidElement(id, element, ignoredElements) {
|
|
28
|
+
if (ignoreTags.includes(element.tagName))
|
|
29
|
+
return false;
|
|
30
|
+
if (!inSnapshot(id, element))
|
|
31
|
+
return false;
|
|
32
|
+
return !ignoredElements.some(
|
|
33
|
+
(enabledElement) => enabledElement && contains(element, enabledElement)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function walkTreeOutside(id, elements, callback, ancestorCallback) {
|
|
37
|
+
for (let element of elements) {
|
|
38
|
+
if (!(element == null ? void 0 : element.isConnected))
|
|
39
|
+
continue;
|
|
40
|
+
const hasAncestorAlready = elements.some((maybeAncestor) => {
|
|
41
|
+
if (!maybeAncestor)
|
|
42
|
+
return false;
|
|
43
|
+
if (maybeAncestor === element)
|
|
44
|
+
return false;
|
|
45
|
+
return maybeAncestor.contains(element);
|
|
46
|
+
});
|
|
47
|
+
const doc = getDocument(element);
|
|
48
|
+
const originalElement = element;
|
|
49
|
+
while (element.parentElement && element !== doc.body) {
|
|
50
|
+
ancestorCallback == null ? void 0 : ancestorCallback(element.parentElement, originalElement);
|
|
51
|
+
if (!hasAncestorAlready) {
|
|
52
|
+
for (const child of element.parentElement.children) {
|
|
53
|
+
if (isValidElement(id, child, elements)) {
|
|
54
|
+
callback(child, originalElement);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
element = element.parentElement;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function createWalkTreeSnapshot(id, elements) {
|
|
63
|
+
const { body } = getDocument(elements[0]);
|
|
64
|
+
const cleanups = [];
|
|
65
|
+
const markElement = (element) => {
|
|
66
|
+
cleanups.push(setProperty(element, getSnapshotPropertyName(id), true));
|
|
67
|
+
};
|
|
68
|
+
walkTreeOutside(id, elements, markElement);
|
|
69
|
+
return chain(
|
|
70
|
+
setProperty(body, getSnapshotPropertyName(id), true),
|
|
71
|
+
() => cleanups.forEach((fn) => fn())
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export {
|
|
76
|
+
isValidElement,
|
|
77
|
+
walkTreeOutside,
|
|
78
|
+
createWalkTreeSnapshot
|
|
79
|
+
};
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./QP4RN5UY.js";
|
|
4
4
|
import {
|
|
5
5
|
useCompositeStoreProps
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./EZ23JQKA.js";
|
|
7
7
|
import {
|
|
8
8
|
usePopoverStoreProps
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./DO6GQUCF.js";
|
|
10
10
|
import {
|
|
11
11
|
useStore,
|
|
12
12
|
useStoreProps
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./4LP74VAP.js";
|
|
14
14
|
import {
|
|
15
15
|
useUpdateEffect
|
|
16
16
|
} from "./J7Q2EO23.js";
|
|
@@ -26,6 +26,7 @@ function useSelectStoreProps(store, update, props) {
|
|
|
26
26
|
store = useCompositeStoreProps(store, update, props);
|
|
27
27
|
store = usePopoverStoreProps(store, update, props);
|
|
28
28
|
useStoreProps(store, props, "value", "setValue");
|
|
29
|
+
useStoreProps(store, props, "setValueOnMove");
|
|
29
30
|
return Object.assign(store, { combobox: props.combobox });
|
|
30
31
|
}
|
|
31
32
|
function useSelectStore(props = {}) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCompositeStoreProps
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./EZ23JQKA.js";
|
|
4
4
|
import {
|
|
5
5
|
useStore,
|
|
6
6
|
useStoreProps
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./4LP74VAP.js";
|
|
8
8
|
|
|
9
9
|
// src/radio/radio-store.ts
|
|
10
10
|
import * as Core from "@ariakit/core/radio/radio-store";
|
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DialogBackdrop
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./IAA7Y45N.js";
|
|
4
4
|
import {
|
|
5
5
|
useNestedDialogs
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./HWJ7DGMR.js";
|
|
7
7
|
import {
|
|
8
8
|
useHideOnInteractOutside
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./7LB47D2O.js";
|
|
10
10
|
import {
|
|
11
11
|
prependHiddenDismiss
|
|
12
12
|
} from "./62DFK33R.js";
|
|
13
13
|
import {
|
|
14
14
|
isElementMarked,
|
|
15
15
|
markTreeOutside
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./FRKOFFMT.js";
|
|
17
17
|
import {
|
|
18
|
+
disableTree,
|
|
18
19
|
disableTreeOutside
|
|
19
|
-
} from "./
|
|
20
|
+
} from "./EGOOWJGN.js";
|
|
20
21
|
import {
|
|
21
22
|
disableAccessibilityTreeOutside
|
|
22
|
-
} from "./
|
|
23
|
+
} from "./7VWXICM7.js";
|
|
24
|
+
import {
|
|
25
|
+
createWalkTreeSnapshot
|
|
26
|
+
} from "./VRCYQ6JX.js";
|
|
23
27
|
import {
|
|
24
28
|
usePreventBodyScroll
|
|
25
29
|
} from "./3LGVTTHD.js";
|
|
@@ -44,7 +48,7 @@ import {
|
|
|
44
48
|
} from "./5YYGDU4E.js";
|
|
45
49
|
import {
|
|
46
50
|
useFocusable
|
|
47
|
-
} from "./
|
|
51
|
+
} from "./YTHH33BK.js";
|
|
48
52
|
import {
|
|
49
53
|
createComponent,
|
|
50
54
|
createElement,
|
|
@@ -240,14 +244,36 @@ var useDialog = createHook(
|
|
|
240
244
|
return;
|
|
241
245
|
return prependHiddenDismiss(dialog, store.hide);
|
|
242
246
|
}, [store, mounted, domReady, shouldDisableAccessibilityTree]);
|
|
243
|
-
const getPersistentElementsProp = useEvent(getPersistentElements);
|
|
244
247
|
useSafeLayoutEffect(() => {
|
|
245
|
-
if (
|
|
248
|
+
if (open)
|
|
249
|
+
return;
|
|
250
|
+
if (!mounted)
|
|
251
|
+
return;
|
|
252
|
+
if (!domReady)
|
|
253
|
+
return;
|
|
254
|
+
const dialog = ref.current;
|
|
255
|
+
if (!dialog)
|
|
256
|
+
return;
|
|
257
|
+
return disableTree(dialog);
|
|
258
|
+
}, [open, mounted, domReady]);
|
|
259
|
+
useSafeLayoutEffect(() => {
|
|
260
|
+
if (!id)
|
|
261
|
+
return;
|
|
262
|
+
if (!open)
|
|
246
263
|
return;
|
|
247
264
|
if (!domReady)
|
|
248
265
|
return;
|
|
266
|
+
const dialog = ref.current;
|
|
267
|
+
return createWalkTreeSnapshot(id, [dialog]);
|
|
268
|
+
}, [id, open, domReady]);
|
|
269
|
+
const getPersistentElementsProp = useEvent(getPersistentElements);
|
|
270
|
+
useSafeLayoutEffect(() => {
|
|
249
271
|
if (!id)
|
|
250
272
|
return;
|
|
273
|
+
if (!store)
|
|
274
|
+
return;
|
|
275
|
+
if (!domReady)
|
|
276
|
+
return;
|
|
251
277
|
if (!open)
|
|
252
278
|
return;
|
|
253
279
|
const { disclosureElement } = store.getState();
|
|
@@ -259,22 +285,22 @@ var useDialog = createHook(
|
|
|
259
285
|
...nestedDialogs.map((dialog2) => dialog2.getState().contentElement)
|
|
260
286
|
];
|
|
261
287
|
if (!shouldDisableAccessibilityTree) {
|
|
262
|
-
return markTreeOutside(id, disclosureElement, ...allElements);
|
|
288
|
+
return markTreeOutside(id, [disclosureElement, ...allElements]);
|
|
263
289
|
}
|
|
264
290
|
if (modal) {
|
|
265
291
|
return chain(
|
|
266
|
-
markTreeOutside(id,
|
|
267
|
-
disableTreeOutside(
|
|
292
|
+
markTreeOutside(id, allElements),
|
|
293
|
+
disableTreeOutside(id, allElements)
|
|
268
294
|
);
|
|
269
295
|
}
|
|
270
296
|
return chain(
|
|
271
|
-
markTreeOutside(id, disclosureElement, ...allElements),
|
|
272
|
-
disableAccessibilityTreeOutside(
|
|
297
|
+
markTreeOutside(id, [disclosureElement, ...allElements]),
|
|
298
|
+
disableAccessibilityTreeOutside(id, allElements)
|
|
273
299
|
);
|
|
274
300
|
}, [
|
|
301
|
+
id,
|
|
275
302
|
store,
|
|
276
303
|
domReady,
|
|
277
|
-
id,
|
|
278
304
|
open,
|
|
279
305
|
getPersistentElementsProp,
|
|
280
306
|
nestedDialogs,
|
|
@@ -422,7 +448,7 @@ var useDialog = createHook(
|
|
|
422
448
|
if (contains(dialog, target))
|
|
423
449
|
return true;
|
|
424
450
|
if (!disclosureElement)
|
|
425
|
-
return
|
|
451
|
+
return true;
|
|
426
452
|
if (contains(disclosureElement, target))
|
|
427
453
|
return true;
|
|
428
454
|
return false;
|
|
@@ -433,8 +459,8 @@ var useDialog = createHook(
|
|
|
433
459
|
return;
|
|
434
460
|
store.hide();
|
|
435
461
|
};
|
|
436
|
-
return addGlobalEventListener("keydown", onKeyDown);
|
|
437
|
-
}, [store,
|
|
462
|
+
return addGlobalEventListener("keydown", onKeyDown, true);
|
|
463
|
+
}, [store, domReady, mounted, hideOnEscapeProp]);
|
|
438
464
|
props = useWrapElement(
|
|
439
465
|
props,
|
|
440
466
|
(element) => /* @__PURE__ */ jsx(HeadingLevel, { level: modal ? 1 : void 0, children: element }),
|
package/esm/button/button.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Button,
|
|
3
3
|
useButton
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/D2BRO4YW.js";
|
|
5
|
+
import "../__chunks/XBIFFFUN.js";
|
|
6
|
+
import "../__chunks/YTHH33BK.js";
|
|
7
7
|
import "../__chunks/BMLNRUFQ.js";
|
|
8
8
|
import "../__chunks/CFEUKV6C.js";
|
|
9
9
|
import "../__chunks/J7Q2EO23.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCheckboxStore
|
|
3
|
-
} from "../__chunks/
|
|
3
|
+
} from "../__chunks/D6CHFQY5.js";
|
|
4
4
|
import {
|
|
5
5
|
CheckboxContextProvider
|
|
6
6
|
} from "../__chunks/ICL2YIES.js";
|
|
7
7
|
import "../__chunks/CFEUKV6C.js";
|
|
8
|
-
import "../__chunks/
|
|
8
|
+
import "../__chunks/4LP74VAP.js";
|
|
9
9
|
import "../__chunks/J7Q2EO23.js";
|
|
10
10
|
import "../__chunks/CP3U4HPL.js";
|
|
11
11
|
import "../__chunks/PNRLI7OV.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCheckboxStore,
|
|
3
3
|
useCheckboxStoreProps
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/D6CHFQY5.js";
|
|
5
|
+
import "../__chunks/4LP74VAP.js";
|
|
6
6
|
import "../__chunks/J7Q2EO23.js";
|
|
7
7
|
import "../__chunks/CP3U4HPL.js";
|
|
8
8
|
import "../__chunks/PNRLI7OV.js";
|
|
@@ -27,12 +27,15 @@ export declare const useCheckbox: import("../utils/types.js").Hook<CheckboxOptio
|
|
|
27
27
|
export declare const Checkbox: import("../utils/types.js").Component<CheckboxOptions<"input">>;
|
|
28
28
|
export interface CheckboxOptions<T extends As = "input"> extends CommandOptions<T> {
|
|
29
29
|
/**
|
|
30
|
-
* Object returned by the
|
|
31
|
-
*
|
|
30
|
+
* Object returned by the
|
|
31
|
+
* [`useCheckboxStore`](https://ariakit.org/reference/use-checkbox-store)
|
|
32
|
+
* hook. If not provided, the closest
|
|
33
|
+
* [`CheckboxProvider`](https://ariakit.org/reference/checkbox-provider)
|
|
34
|
+
* component's context will be used. Otherwise, the component will fall back
|
|
35
|
+
* to an internal store.
|
|
32
36
|
*
|
|
33
37
|
* Live examples:
|
|
34
38
|
* - [Checkbox as button](https://ariakit.org/examples/checkbox-as-button)
|
|
35
|
-
* - [Custom Checkbox](https://ariakit.org/examples/checkbox-custom)
|
|
36
39
|
*/
|
|
37
40
|
store?: CheckboxStore;
|
|
38
41
|
/**
|
|
@@ -42,14 +45,14 @@ export interface CheckboxOptions<T extends As = "input"> extends CommandOptions<
|
|
|
42
45
|
*
|
|
43
46
|
* Live examples:
|
|
44
47
|
* - [Checkbox group](https://ariakit.org/examples/checkbox-group)
|
|
48
|
+
* - [MenuItemCheckbox](https://ariakit.org/examples/menu-item-checkbox)
|
|
45
49
|
* @example
|
|
46
50
|
* ```jsx
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* <Checkbox store={checkbox} value="Watermelon" />
|
|
51
|
+
* <CheckboxProvider defaultValue={["Apple", "Orange"]}>
|
|
52
|
+
* <Checkbox value="Apple" />
|
|
53
|
+
* <Checkbox value="Orange" />
|
|
54
|
+
* <Checkbox value="Watermelon" />
|
|
55
|
+
* </CheckboxProvider>
|
|
53
56
|
* ```
|
|
54
57
|
*/
|
|
55
58
|
value?: InputHTMLAttributes<HTMLInputElement>["value"];
|
package/esm/checkbox/checkbox.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Checkbox,
|
|
3
3
|
useCheckbox
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/G4QRTAYK.js";
|
|
5
5
|
import "../__chunks/ICL2YIES.js";
|
|
6
6
|
import "../__chunks/M5KYRTQG.js";
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/XBIFFFUN.js";
|
|
8
|
+
import "../__chunks/YTHH33BK.js";
|
|
9
9
|
import "../__chunks/BMLNRUFQ.js";
|
|
10
10
|
import "../__chunks/CFEUKV6C.js";
|
|
11
|
-
import "../__chunks/
|
|
11
|
+
import "../__chunks/4LP74VAP.js";
|
|
12
12
|
import "../__chunks/J7Q2EO23.js";
|
|
13
13
|
import "../__chunks/CP3U4HPL.js";
|
|
14
14
|
import "../__chunks/PNRLI7OV.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCollectionStore
|
|
3
|
-
} from "../__chunks/
|
|
3
|
+
} from "../__chunks/C6MBVGZ2.js";
|
|
4
4
|
import {
|
|
5
5
|
CollectionContextProvider
|
|
6
6
|
} from "../__chunks/74KKBFVP.js";
|
|
7
7
|
import "../__chunks/CFEUKV6C.js";
|
|
8
|
-
import "../__chunks/
|
|
8
|
+
import "../__chunks/4LP74VAP.js";
|
|
9
9
|
import "../__chunks/J7Q2EO23.js";
|
|
10
10
|
import "../__chunks/CP3U4HPL.js";
|
|
11
11
|
import "../__chunks/PNRLI7OV.js";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
getCollectionRendererItem,
|
|
4
4
|
getCollectionRendererItemId,
|
|
5
5
|
useCollectionRenderer
|
|
6
|
-
} from "../__chunks/
|
|
6
|
+
} from "../__chunks/2EIZAZYB.js";
|
|
7
7
|
import "../__chunks/74KKBFVP.js";
|
|
8
8
|
import "../__chunks/CFEUKV6C.js";
|
|
9
|
-
import "../__chunks/
|
|
9
|
+
import "../__chunks/4LP74VAP.js";
|
|
10
10
|
import "../__chunks/J7Q2EO23.js";
|
|
11
11
|
import "../__chunks/CP3U4HPL.js";
|
|
12
12
|
import "../__chunks/PNRLI7OV.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCollectionStore,
|
|
3
3
|
useCollectionStoreProps
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/C6MBVGZ2.js";
|
|
5
|
+
import "../__chunks/4LP74VAP.js";
|
|
6
6
|
import "../__chunks/J7Q2EO23.js";
|
|
7
7
|
import "../__chunks/CP3U4HPL.js";
|
|
8
8
|
import "../__chunks/PNRLI7OV.js";
|
|
@@ -35,7 +35,11 @@ export declare const useCollection: import("../utils/types.js").Hook<CollectionO
|
|
|
35
35
|
export declare const Collection: import("../utils/types.js").Component<CollectionOptions<"div">>;
|
|
36
36
|
export interface CollectionOptions<T extends As = "div"> extends Options<T> {
|
|
37
37
|
/**
|
|
38
|
-
* Object returned by the
|
|
38
|
+
* Object returned by the
|
|
39
|
+
* [`useCollectionStore`](https://ariakit.org/reference/use-collection-store)
|
|
40
|
+
* hook. If not provided, the closest
|
|
41
|
+
* [`CollectionProvider`](https://ariakit.org/reference/collection-provider)
|
|
42
|
+
* component's context will be used.
|
|
39
43
|
*/
|
|
40
44
|
store?: CollectionStore;
|
|
41
45
|
}
|
|
@@ -19,20 +19,25 @@ export declare const useComboboxCancel: import("../utils/types.js").Hook<Combobo
|
|
|
19
19
|
* @see https://ariakit.org/components/combobox
|
|
20
20
|
* @example
|
|
21
21
|
* ```jsx
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
22
|
+
* <ComboboxProvider>
|
|
23
|
+
* <Combobox />
|
|
24
|
+
* <ComboboxCancel />
|
|
25
|
+
* <ComboboxPopover>
|
|
26
|
+
* <ComboboxItem value="Apple" />
|
|
27
|
+
* <ComboboxItem value="Banana" />
|
|
28
|
+
* <ComboboxItem value="Orange" />
|
|
29
|
+
* </ComboboxPopover>
|
|
30
|
+
* </ComboboxProvider>
|
|
30
31
|
* ```
|
|
31
32
|
*/
|
|
32
33
|
export declare const ComboboxCancel: import("../utils/types.js").Component<ComboboxCancelOptions<"button">>;
|
|
33
34
|
export interface ComboboxCancelOptions<T extends As = "button"> extends ButtonOptions<T> {
|
|
34
35
|
/**
|
|
35
|
-
* Object returned by the
|
|
36
|
+
* Object returned by the
|
|
37
|
+
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
38
|
+
* hook. If not provided, the closest
|
|
39
|
+
* [`ComboboxProvider`](https://ariakit.org/reference/combobox-provider)
|
|
40
|
+
* component's context will be used.
|
|
36
41
|
*/
|
|
37
42
|
store?: ComboboxStore;
|
|
38
43
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useButton
|
|
3
|
-
} from "../__chunks/
|
|
3
|
+
} from "../__chunks/D2BRO4YW.js";
|
|
4
4
|
import {
|
|
5
5
|
useComboboxProviderContext
|
|
6
6
|
} from "../__chunks/QP4RN5UY.js";
|
|
7
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/XBIFFFUN.js";
|
|
8
8
|
import "../__chunks/5C7J4IAS.js";
|
|
9
9
|
import "../__chunks/74KKBFVP.js";
|
|
10
10
|
import "../__chunks/547DFODS.js";
|
|
11
11
|
import "../__chunks/5YYGDU4E.js";
|
|
12
12
|
import "../__chunks/56KWVYDN.js";
|
|
13
|
-
import "../__chunks/
|
|
13
|
+
import "../__chunks/YTHH33BK.js";
|
|
14
14
|
import "../__chunks/BMLNRUFQ.js";
|
|
15
15
|
import {
|
|
16
16
|
createComponent,
|
|
@@ -25,20 +25,25 @@ export declare const useComboboxDisclosure: import("../utils/types.js").Hook<Com
|
|
|
25
25
|
* @see https://ariakit.org/components/combobox
|
|
26
26
|
* @example
|
|
27
27
|
* ```jsx
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
28
|
+
* <ComboboxProvider>
|
|
29
|
+
* <Combobox />
|
|
30
|
+
* <ComboboxDisclosure />
|
|
31
|
+
* <ComboboxPopover>
|
|
32
|
+
* <ComboboxItem value="Apple" />
|
|
33
|
+
* <ComboboxItem value="Banana" />
|
|
34
|
+
* <ComboboxItem value="Orange" />
|
|
35
|
+
* </ComboboxPopover>
|
|
36
|
+
* </ComboboxProvider>
|
|
36
37
|
* ```
|
|
37
38
|
*/
|
|
38
39
|
export declare const ComboboxDisclosure: import("../utils/types.js").Component<ComboboxDisclosureOptions<"button">>;
|
|
39
40
|
export interface ComboboxDisclosureOptions<T extends As = "button"> extends DialogDisclosureOptions<T> {
|
|
40
41
|
/**
|
|
41
|
-
* Object returned by the
|
|
42
|
+
* Object returned by the
|
|
43
|
+
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
44
|
+
* hook. If not provided, the closest
|
|
45
|
+
* [`ComboboxProvider`](https://ariakit.org/reference/combobox-provider)
|
|
46
|
+
* component's context will be used.
|
|
42
47
|
*/
|
|
43
48
|
store?: ComboboxStore;
|
|
44
49
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDialogDisclosure
|
|
3
|
-
} from "../__chunks/
|
|
4
|
-
import "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
3
|
+
} from "../__chunks/3HY5ZQT3.js";
|
|
4
|
+
import "../__chunks/R6PKH666.js";
|
|
5
|
+
import "../__chunks/D2BRO4YW.js";
|
|
6
6
|
import {
|
|
7
7
|
useComboboxProviderContext
|
|
8
8
|
} from "../__chunks/QP4RN5UY.js";
|
|
9
|
-
import "../__chunks/
|
|
9
|
+
import "../__chunks/XBIFFFUN.js";
|
|
10
10
|
import "../__chunks/5C7J4IAS.js";
|
|
11
11
|
import "../__chunks/74KKBFVP.js";
|
|
12
12
|
import "../__chunks/547DFODS.js";
|
|
13
13
|
import "../__chunks/5YYGDU4E.js";
|
|
14
14
|
import "../__chunks/56KWVYDN.js";
|
|
15
|
-
import "../__chunks/
|
|
15
|
+
import "../__chunks/YTHH33BK.js";
|
|
16
16
|
import "../__chunks/BMLNRUFQ.js";
|
|
17
17
|
import {
|
|
18
18
|
createComponent,
|
|
@@ -21,22 +21,27 @@ export declare const useComboboxGroupLabel: import("../utils/types.js").Hook<Com
|
|
|
21
21
|
* @see https://ariakit.org/components/combobox
|
|
22
22
|
* @example
|
|
23
23
|
* ```jsx
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
24
|
+
* <ComboboxProvider>
|
|
25
|
+
* <Combobox />
|
|
26
|
+
* <ComboboxPopover>
|
|
27
|
+
* <ComboboxGroup>
|
|
28
|
+
* <ComboboxGroupLabel>Fruits</ComboboxGroupLabel>
|
|
29
|
+
* <ComboboxItem value="Apple" />
|
|
30
|
+
* <ComboboxItem value="Banana" />
|
|
31
|
+
* </ComboboxGroup>
|
|
32
|
+
* </ComboboxPopover>
|
|
33
|
+
* </ComboboxProvider>
|
|
33
34
|
* ```
|
|
34
35
|
*/
|
|
35
36
|
export declare const ComboboxGroupLabel: import("../utils/types.js").Component<ComboboxGroupLabelOptions<"div">>;
|
|
36
37
|
export interface ComboboxGroupLabelOptions<T extends As = "div"> extends CompositeGroupLabelOptions<T> {
|
|
37
38
|
/**
|
|
38
|
-
* Object returned by the
|
|
39
|
-
* `
|
|
39
|
+
* Object returned by the
|
|
40
|
+
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
41
|
+
* hook. If not provided, the parent
|
|
42
|
+
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
43
|
+
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
44
|
+
* components' context will be used.
|
|
40
45
|
*/
|
|
41
46
|
store?: ComboboxStore;
|
|
42
47
|
}
|