@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
# @ariakit/react-core
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`#2820`](https://github.com/ariakit/ariakit/pull/2820) Added missing `aria-haspopup` attribute to [`DialogDisclosure`](https://ariakit.org/reference/dialog-disclosure) and [`PopoverDisclosure`](https://ariakit.org/reference/popover-disclosure).
|
|
8
|
+
|
|
9
|
+
- [`#2858`](https://github.com/ariakit/ariakit/pull/2858) Fixed the [`setValueOnMove`](https://ariakit.org/reference/use-select-store#setvalueonmove) state on the [Select](https://ariakit.org/components/select) module not syncing between multiple stores.
|
|
10
|
+
|
|
11
|
+
The following now works as expected:
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
const store1 = useSelectStore();
|
|
15
|
+
const store2 = useSelectStore({ store: store1, setValueOnMove: true });
|
|
16
|
+
|
|
17
|
+
store1.useState("setValueOnMove") === store2.useState("setValueOnMove"); // true
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- [`#2862`](https://github.com/ariakit/ariakit/pull/2862) Renamed `@ariakit/react-core/dialog/utils/disable-tree-outside` module to `@ariakit/react-core/dialog/utils/disable-tree`.
|
|
21
|
+
|
|
22
|
+
- [`#2862`](https://github.com/ariakit/ariakit/pull/2862) Elements inside [Dialog](https://ariakit.org/components/dialog) and derived components are now properly disabled when the dialog is animating out.
|
|
23
|
+
|
|
24
|
+
- [`#2862`](https://github.com/ariakit/ariakit/pull/2862) Fixed a bug that occurred when rendering nested [Dialog](https://ariakit.org/components/dialog) elements with a third-party dialog interspersed.
|
|
25
|
+
|
|
26
|
+
Previously, Ariakit didn't recognize the third-party dialog as a nested dialog when the lowest dialog opened.
|
|
27
|
+
|
|
28
|
+
- [`#2862`](https://github.com/ariakit/ariakit/pull/2862) The [`hideOnEscape`](https://ariakit.org/reference/dialog#hideonescape) prop is now triggered during the capture phase.
|
|
29
|
+
|
|
30
|
+
Essentially, this means that you can now prevent the propagation of the <kbd>Escape</kbd> keydown event to other elements in the DOM when it's used to close an Ariakit [Dialog](https://ariakit.org/components/dialog):
|
|
31
|
+
|
|
32
|
+
```jsx
|
|
33
|
+
<Dialog
|
|
34
|
+
hideOnEscape={(event) => {
|
|
35
|
+
event.stopPropagation();
|
|
36
|
+
return true;
|
|
37
|
+
}}
|
|
38
|
+
/>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- [`#2862`](https://github.com/ariakit/ariakit/pull/2862) Fixed an issue where the [Dialog](https://ariakit.org/components/dialog) component would automatically hide when parent dialogs closed.
|
|
42
|
+
|
|
43
|
+
You can now render nested dialogs in the React tree and keep them open independently, provided they're not unmounted.
|
|
44
|
+
|
|
45
|
+
- [`#2862`](https://github.com/ariakit/ariakit/pull/2862) Fixed the [Focusable](https://ariakit.org/components/focusable) and its derived components that were incorrectly calling the [`onFocusVisible`](https://ariakit.org/reference/focusable#onfocusvisible) callback prop when the element had lost focus.
|
|
46
|
+
|
|
47
|
+
This didn't align with the behavior of the [`data-focus-visible`](https://ariakit.org/guide/styling#data-focus-visible) attribute. The behavior now mirrors the attribute, which will only be omitted from the element if `event.preventDefault()` is invoked from within the [`onFocusVisible`](https://ariakit.org/reference/focusable#onfocusvisible) callback.
|
|
48
|
+
|
|
49
|
+
- [`#2862`](https://github.com/ariakit/ariakit/pull/2862) The [`modal`](https://ariakit.org/reference/menu#modal) prop is now automatically disabled on nested [`Menu`](https://ariakit.org/reference/menu) components.
|
|
50
|
+
|
|
51
|
+
- [`#2869`](https://github.com/ariakit/ariakit/pull/2869) Fixed uncaught `msg.startsWith` error.
|
|
52
|
+
|
|
53
|
+
- Improved JSDocs.
|
|
54
|
+
|
|
55
|
+
## 0.3.2
|
|
56
|
+
|
|
57
|
+
### Patch Changes
|
|
58
|
+
|
|
59
|
+
- [`#2811`](https://github.com/ariakit/ariakit/pull/2811) **TypeScript**: Fixed missing `null` type on props from [`useMenuStore`](https://ariakit.org/reference/use-menu-store) ([`combobox`](https://ariakit.org/reference/use-menu-store#combobox), [`parent`](https://ariakit.org/reference/use-menu-store#parent), [`menubar`](https://ariakit.org/reference/use-menu-store#menubar)), and [`useSelectStore`](https://ariakit.org/reference/use-select-store) ([`combobox`](https://ariakit.org/reference/use-select-store#combobox)).
|
|
60
|
+
|
|
61
|
+
- [`#2812`](https://github.com/ariakit/ariakit/pull/2812) Fixed an infinite loop issue when using [`MenuButton`](https://ariakit.org/reference/menu-buton) with a [`store`](https://ariakit.org/reference/menu-button#store) that is synchronized with another store.
|
|
62
|
+
|
|
63
|
+
- Improved JSDocs.
|
|
64
|
+
|
|
65
|
+
- Updated dependencies: `@ariakit/core@0.3.2`.
|
|
66
|
+
|
|
3
67
|
## 0.3.1
|
|
4
68
|
|
|
5
69
|
### Patch Changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _K5M7LOPEcjs = require('./K5M7LOPE.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _UHRHLHM2cjs = require('./UHRHLHM2.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _5WLTMVVQcjs = require('./5WLTMVVQ.cjs');
|
|
@@ -17,10 +17,10 @@ var _72I2GWXFcjs = require('./72I2GWXF.cjs');
|
|
|
17
17
|
var _react = require('react');
|
|
18
18
|
var _formstore = require('@ariakit/core/form/form-store'); var Core = _interopRequireWildcard(_formstore);
|
|
19
19
|
function useFormStoreProps(store, update, props) {
|
|
20
|
-
store =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
store = _K5M7LOPEcjs.useCollectionStoreProps.call(void 0, store, update, props);
|
|
21
|
+
_UHRHLHM2cjs.useStoreProps.call(void 0, store, props, "values", "setValues");
|
|
22
|
+
_UHRHLHM2cjs.useStoreProps.call(void 0, store, props, "errors", "setErrors");
|
|
23
|
+
_UHRHLHM2cjs.useStoreProps.call(void 0, store, props, "touched", "setTouched");
|
|
24
24
|
const useValue = _react.useCallback.call(void 0,
|
|
25
25
|
(name) => store.useState(() => store.getValue(name)),
|
|
26
26
|
[store]
|
|
@@ -51,7 +51,7 @@ function useFormStoreProps(store, update, props) {
|
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
53
|
function useFormStore(props = {}) {
|
|
54
|
-
const [store, update] =
|
|
54
|
+
const [store, update] = _UHRHLHM2cjs.useStore.call(void 0, Core.createFormStore, props);
|
|
55
55
|
return useFormStoreProps(store, update, props);
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -7,7 +7,7 @@ var _DC66R2NYcjs = require('./DC66R2NY.cjs');
|
|
|
7
7
|
var _I2EPCLS6cjs = require('./I2EPCLS6.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _SELCJFCBcjs = require('./SELCJFCB.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _5E5FKYEOcjs = require('./5E5FKYEO.cjs');
|
|
@@ -116,7 +116,7 @@ var useSelectList = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
116
116
|
style,
|
|
117
117
|
onKeyDown
|
|
118
118
|
});
|
|
119
|
-
props =
|
|
119
|
+
props = _SELCJFCBcjs.useComposite.call(void 0, _72I2GWXFcjs.__spreadProps.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store }, props), { composite }));
|
|
120
120
|
props = _DC66R2NYcjs.useCompositeTypeahead.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, typeahead: !hasCombobox }, props));
|
|
121
121
|
return props;
|
|
122
122
|
}
|
|
@@ -7,7 +7,7 @@ var _ZBG4TGVLcjs = require('./ZBG4TGVL.cjs');
|
|
|
7
7
|
var _5E5FKYEOcjs = require('./5E5FKYEO.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _GQAB4M3Bcjs = require('./GQAB4M3B.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -101,7 +101,7 @@ var useComboboxList = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
101
101
|
onFocusVisible,
|
|
102
102
|
onBlur
|
|
103
103
|
});
|
|
104
|
-
props =
|
|
104
|
+
props = _GQAB4M3Bcjs.useFocusable.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { focusable }, props));
|
|
105
105
|
return props;
|
|
106
106
|
}
|
|
107
107
|
);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _HRUFFILMcjs = require('./HRUFFILM.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _UHRHLHM2cjs = require('./UHRHLHM2.cjs');
|
|
7
7
|
|
|
8
8
|
// src/dialog/dialog-store.ts
|
|
9
9
|
var _dialogstore = require('@ariakit/core/dialog/dialog-store'); var Core = _interopRequireWildcard(_dialogstore);
|
|
10
10
|
function useDialogStoreProps(store, update, props) {
|
|
11
|
-
return
|
|
11
|
+
return _HRUFFILMcjs.useDisclosureStoreProps.call(void 0, store, update, props);
|
|
12
12
|
}
|
|
13
13
|
function useDialogStore(props = {}) {
|
|
14
|
-
const [store, update] =
|
|
14
|
+
const [store, update] = _UHRHLHM2cjs.useStore.call(void 0, Core.createDialogStore, props);
|
|
15
15
|
return useDialogStoreProps(store, update, props);
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _QK4GI6B3cjs = require('./QK4GI6B3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _OAEUR56Wcjs = require('./OAEUR56W.cjs');
|
|
@@ -9,7 +9,7 @@ var _OAEUR56Wcjs = require('./OAEUR56W.cjs');
|
|
|
9
9
|
var _5E5FKYEOcjs = require('./5E5FKYEO.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _HRUFFILMcjs = require('./HRUFFILM.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -30,7 +30,7 @@ function DialogBackdrop({
|
|
|
30
30
|
hidden
|
|
31
31
|
}) {
|
|
32
32
|
const ref = _react.useRef.call(void 0, null);
|
|
33
|
-
const disclosure =
|
|
33
|
+
const disclosure = _HRUFFILMcjs.useDisclosureStore.call(void 0, { disclosure: store });
|
|
34
34
|
const contentElement = store.useState("contentElement");
|
|
35
35
|
_5WLTMVVQcjs.useSafeLayoutEffect.call(void 0, () => {
|
|
36
36
|
const backdrop2 = ref.current;
|
|
@@ -48,7 +48,7 @@ function DialogBackdrop({
|
|
|
48
48
|
const backdrop2 = ref.current;
|
|
49
49
|
if (!backdrop2)
|
|
50
50
|
return;
|
|
51
|
-
return
|
|
51
|
+
return _QK4GI6B3cjs.markAncestor.call(void 0, backdrop2, id);
|
|
52
52
|
}, [contentElement]);
|
|
53
53
|
if (hidden != null) {
|
|
54
54
|
backdropProps = _72I2GWXFcjs.__spreadProps.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, {}, backdropProps), { hidden });
|
|
@@ -7,7 +7,7 @@ var _NHZBX2RScjs = require('./NHZBX2RS.cjs');
|
|
|
7
7
|
var _Z5PUIG6Acjs = require('./Z5PUIG6A.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _UHRHLHM2cjs = require('./UHRHLHM2.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -305,7 +305,7 @@ function useCollectionRenderer(_a) {
|
|
|
305
305
|
var _a2, _b2;
|
|
306
306
|
const context = _NHZBX2RScjs.useCollectionContext.call(void 0, );
|
|
307
307
|
store = store || context;
|
|
308
|
-
const items =
|
|
308
|
+
const items = _UHRHLHM2cjs.useStoreState.call(void 0,
|
|
309
309
|
store,
|
|
310
310
|
(state) => itemsProp != null ? itemsProp : state == null ? void 0 : state.items
|
|
311
311
|
);
|
|
@@ -7,7 +7,7 @@ var _6RYSMHQYcjs = require('./6RYSMHQY.cjs');
|
|
|
7
7
|
var _DC66R2NYcjs = require('./DC66R2NY.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _SELCJFCBcjs = require('./SELCJFCB.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _5E5FKYEOcjs = require('./5E5FKYEO.cjs');
|
|
@@ -18,7 +18,7 @@ var _5E5FKYEOcjs = require('./5E5FKYEO.cjs');
|
|
|
18
18
|
var _Z5PUIG6Acjs = require('./Z5PUIG6A.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _UHRHLHM2cjs = require('./UHRHLHM2.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -39,8 +39,8 @@ function useAriaLabelledBy(_a) {
|
|
|
39
39
|
var _b = _a, { store } = _b, props = _72I2GWXFcjs.__objRest.call(void 0, _b, ["store"]);
|
|
40
40
|
const [id, setId] = _react.useState.call(void 0, void 0);
|
|
41
41
|
const label = props["aria-label"];
|
|
42
|
-
const disclosureElement =
|
|
43
|
-
const contentElement =
|
|
42
|
+
const disclosureElement = _UHRHLHM2cjs.useStoreState.call(void 0, store, "disclosureElement");
|
|
43
|
+
const contentElement = _UHRHLHM2cjs.useStoreState.call(void 0, store, "contentElement");
|
|
44
44
|
_react.useEffect.call(void 0, () => {
|
|
45
45
|
const disclosure = disclosureElement;
|
|
46
46
|
if (!disclosure)
|
|
@@ -78,7 +78,7 @@ var useMenuList = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
78
78
|
(state) => state.orientation === "both" ? void 0 : state.orientation
|
|
79
79
|
);
|
|
80
80
|
const isHorizontal = orientation !== "vertical";
|
|
81
|
-
const isMenuBarHorizontal =
|
|
81
|
+
const isMenuBarHorizontal = _UHRHLHM2cjs.useStoreState.call(void 0,
|
|
82
82
|
parentMenuBar,
|
|
83
83
|
(state) => !!state && state.orientation !== "vertical"
|
|
84
84
|
);
|
|
@@ -158,7 +158,7 @@ var useMenuList = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
158
158
|
"aria-orientation": orientation
|
|
159
159
|
}, props);
|
|
160
160
|
}
|
|
161
|
-
props =
|
|
161
|
+
props = _SELCJFCBcjs.useComposite.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, composite }, props));
|
|
162
162
|
props = _DC66R2NYcjs.useCompositeTypeahead.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, typeahead: !hasCombobox }, props));
|
|
163
163
|
return props;
|
|
164
164
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _JDIVO6OKcjs = require('./JDIVO6OK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _UHRHLHM2cjs = require('./UHRHLHM2.cjs');
|
|
8
8
|
|
|
9
9
|
// src/radio/radio-store.ts
|
|
10
10
|
var _radiostore = require('@ariakit/core/radio/radio-store'); var Core = _interopRequireWildcard(_radiostore);
|
|
11
11
|
function useRadioStoreProps(store, update, props) {
|
|
12
|
-
store =
|
|
13
|
-
|
|
12
|
+
store = _JDIVO6OKcjs.useCompositeStoreProps.call(void 0, store, update, props);
|
|
13
|
+
_UHRHLHM2cjs.useStoreProps.call(void 0, store, props, "value", "setValue");
|
|
14
14
|
return store;
|
|
15
15
|
}
|
|
16
16
|
function useRadioStore(props = {}) {
|
|
17
|
-
const [store, update] =
|
|
17
|
+
const [store, update] = _UHRHLHM2cjs.useStore.call(void 0, Core.createRadioStore, props);
|
|
18
18
|
return useRadioStoreProps(store, update, props);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -10,7 +10,7 @@ var _6RYSMHQYcjs = require('./6RYSMHQY.cjs');
|
|
|
10
10
|
var _LPFT4ZFHcjs = require('./LPFT4ZFH.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _D3SPQ2OYcjs = require('./D3SPQ2OY.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ var _G33PRHOGcjs = require('./G33PRHOG.cjs');
|
|
|
18
18
|
var _Z5PUIG6Acjs = require('./Z5PUIG6A.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _UHRHLHM2cjs = require('./UHRHLHM2.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -74,7 +74,7 @@ var useMenuItem = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
74
74
|
return;
|
|
75
75
|
hideMenu();
|
|
76
76
|
});
|
|
77
|
-
const contentElement =
|
|
77
|
+
const contentElement = _UHRHLHM2cjs.useStoreState.call(void 0,
|
|
78
78
|
store,
|
|
79
79
|
(state) => "contentElement" in state ? state.contentElement : null
|
|
80
80
|
);
|
|
@@ -84,7 +84,7 @@ var useMenuItem = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
84
84
|
}, props), {
|
|
85
85
|
onClick
|
|
86
86
|
});
|
|
87
|
-
props =
|
|
87
|
+
props = _D3SPQ2OYcjs.useCompositeItem.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, preventScrollOnKeyDown }, props));
|
|
88
88
|
props = _LPFT4ZFHcjs.useCompositeHover.call(void 0, _72I2GWXFcjs.__spreadProps.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, {
|
|
89
89
|
store
|
|
90
90
|
}, props), {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _Q6W7IWNJcjs = require('./Q6W7IWNJ.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _GQAB4M3Bcjs = require('./GQAB4M3B.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -91,7 +91,7 @@ var useHovercardAnchor = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
91
91
|
),
|
|
92
92
|
onMouseMove
|
|
93
93
|
});
|
|
94
|
-
props =
|
|
94
|
+
props = _GQAB4M3Bcjs.useFocusable.call(void 0, props);
|
|
95
95
|
return props;
|
|
96
96
|
}
|
|
97
97
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _F4RJLWZGcjs = require('./F4RJLWZG.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _56NPFF7Pcjs = require('./56NPFF7P.cjs');
|
|
@@ -9,25 +9,32 @@ var _56NPFF7Pcjs = require('./56NPFF7P.cjs');
|
|
|
9
9
|
var _Z3TLXRS7cjs = require('./Z3TLXRS7.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _TLA46MN6cjs = require('./TLA46MN6.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _BWQVQDGCcjs = require('./BWQVQDGC.cjs');
|
|
18
18
|
|
|
19
|
-
// src/dialog/utils/disable-tree
|
|
19
|
+
// src/dialog/utils/disable-tree.ts
|
|
20
20
|
var _dom = require('@ariakit/core/utils/dom');
|
|
21
21
|
var _focus = require('@ariakit/core/utils/focus');
|
|
22
22
|
var _misc = require('@ariakit/core/utils/misc');
|
|
23
|
-
function
|
|
23
|
+
function disableTree(element, ignoredElements) {
|
|
24
24
|
if (!("style" in element))
|
|
25
25
|
return _misc.noop;
|
|
26
26
|
if (_56NPFF7Pcjs.supportsInert.call(void 0, )) {
|
|
27
27
|
return _BWQVQDGCcjs.setProperty.call(void 0, element, "inert", true);
|
|
28
28
|
}
|
|
29
|
+
const tabbableElements = _focus.getAllTabbableIn.call(void 0, element, true);
|
|
30
|
+
const enableElements = tabbableElements.map((element2) => {
|
|
31
|
+
if (ignoredElements == null ? void 0 : ignoredElements.some((el) => el && _dom.contains.call(void 0, el, element2)))
|
|
32
|
+
return _misc.noop;
|
|
33
|
+
return _BWQVQDGCcjs.setAttribute.call(void 0, element2, "tabindex", "-1");
|
|
34
|
+
});
|
|
29
35
|
return _misc.chain.call(void 0,
|
|
30
|
-
|
|
36
|
+
...enableElements,
|
|
37
|
+
_F4RJLWZGcjs.hideElementFromAccessibilityTree.call(void 0, element),
|
|
31
38
|
_BWQVQDGCcjs.assignStyle.call(void 0, element, {
|
|
32
39
|
pointerEvents: "none",
|
|
33
40
|
userSelect: "none",
|
|
@@ -35,20 +42,13 @@ function disableElement(element) {
|
|
|
35
42
|
})
|
|
36
43
|
);
|
|
37
44
|
}
|
|
38
|
-
function disableTreeOutside(
|
|
45
|
+
function disableTreeOutside(id, elements) {
|
|
39
46
|
const cleanups = [];
|
|
40
47
|
const ids = elements.map((el) => el == null ? void 0 : el.id);
|
|
41
|
-
|
|
42
|
-
_focus.getAllTabbable.call(void 0, ).forEach((element) => {
|
|
43
|
-
if (elements.some((el) => el && _dom.contains.call(void 0, el, element)))
|
|
44
|
-
return;
|
|
45
|
-
cleanups.unshift(_BWQVQDGCcjs.setAttribute.call(void 0, element, "tabindex", "-1"));
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
_PD5YFDLOcjs.walkTreeOutside.call(void 0, elements, (element) => {
|
|
48
|
+
_TLA46MN6cjs.walkTreeOutside.call(void 0, id, elements, (element) => {
|
|
49
49
|
if (_Z3TLXRS7cjs.isBackdrop.call(void 0, element, ...ids))
|
|
50
50
|
return;
|
|
51
|
-
cleanups.unshift(
|
|
51
|
+
cleanups.unshift(disableTree(element, elements));
|
|
52
52
|
});
|
|
53
53
|
const restoreTreeOutside = () => {
|
|
54
54
|
cleanups.forEach((fn) => fn());
|
|
@@ -58,4 +58,5 @@ function disableTreeOutside(...elements) {
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
|
|
62
|
+
exports.disableTree = disableTree; exports.disableTreeOutside = disableTreeOutside;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _FXRXBA2Ycjs = require('./FXRXBA2Y.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _FMI5QF7Ncjs = require('./FMI5QF7N.cjs');
|
|
@@ -21,7 +21,7 @@ var _H7R5D2FRcjs = require('./H7R5D2FR.cjs');
|
|
|
21
21
|
var _Z5PUIG6Acjs = require('./Z5PUIG6A.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _UHRHLHM2cjs = require('./UHRHLHM2.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -165,7 +165,7 @@ var useCompositeItem = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
165
165
|
const id = _5WLTMVVQcjs.useId.call(void 0, props.id);
|
|
166
166
|
const ref = _react.useRef.call(void 0, null);
|
|
167
167
|
const row = _react.useContext.call(void 0, _H7R5D2FRcjs.CompositeRowContext);
|
|
168
|
-
const rowId =
|
|
168
|
+
const rowId = _UHRHLHM2cjs.useStoreState.call(void 0, store, (state) => {
|
|
169
169
|
if (rowIdProp)
|
|
170
170
|
return rowIdProp;
|
|
171
171
|
if (!state)
|
|
@@ -289,7 +289,7 @@ var useCompositeItem = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
});
|
|
292
|
-
const baseElement =
|
|
292
|
+
const baseElement = _UHRHLHM2cjs.useStoreState.call(void 0,
|
|
293
293
|
store,
|
|
294
294
|
(state) => (state == null ? void 0 : state.baseElement) || void 0
|
|
295
295
|
);
|
|
@@ -302,11 +302,11 @@ var useCompositeItem = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
302
302
|
(element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _H7R5D2FRcjs.CompositeItemContext.Provider, { value: providerValue, children: element }),
|
|
303
303
|
[providerValue]
|
|
304
304
|
);
|
|
305
|
-
const isActiveItem =
|
|
305
|
+
const isActiveItem = _UHRHLHM2cjs.useStoreState.call(void 0,
|
|
306
306
|
store,
|
|
307
307
|
(state) => !!state && state.activeId === id
|
|
308
308
|
);
|
|
309
|
-
const virtualFocus =
|
|
309
|
+
const virtualFocus = _UHRHLHM2cjs.useStoreState.call(void 0, store, "virtualFocus");
|
|
310
310
|
const role = useRole(ref, props);
|
|
311
311
|
let ariaSelected;
|
|
312
312
|
if (isActiveItem) {
|
|
@@ -316,7 +316,7 @@ var useCompositeItem = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
316
316
|
ariaSelected = true;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
const ariaSetSize =
|
|
319
|
+
const ariaSetSize = _UHRHLHM2cjs.useStoreState.call(void 0, store, (state) => {
|
|
320
320
|
if (ariaSetSizeProp != null)
|
|
321
321
|
return ariaSetSizeProp;
|
|
322
322
|
if (!state)
|
|
@@ -327,7 +327,7 @@ var useCompositeItem = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
327
327
|
return;
|
|
328
328
|
return row.ariaSetSize;
|
|
329
329
|
});
|
|
330
|
-
const ariaPosInSet =
|
|
330
|
+
const ariaPosInSet = _UHRHLHM2cjs.useStoreState.call(void 0, store, (state) => {
|
|
331
331
|
if (ariaPosInSetProp != null)
|
|
332
332
|
return ariaPosInSetProp;
|
|
333
333
|
if (!state)
|
|
@@ -341,7 +341,7 @@ var useCompositeItem = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
341
341
|
);
|
|
342
342
|
return row.ariaPosInSet + itemsInRow.findIndex((item) => item.id === id);
|
|
343
343
|
});
|
|
344
|
-
const isTabbable =
|
|
344
|
+
const isTabbable = _UHRHLHM2cjs.useStoreState.call(void 0, store, (state) => {
|
|
345
345
|
if (!(state == null ? void 0 : state.renderedItems.length))
|
|
346
346
|
return true;
|
|
347
347
|
return !state.virtualFocus && state.activeId === id;
|
|
@@ -357,7 +357,7 @@ var useCompositeItem = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
357
357
|
onBlurCapture,
|
|
358
358
|
onKeyDown
|
|
359
359
|
});
|
|
360
|
-
props =
|
|
360
|
+
props = _FXRXBA2Ycjs.useCommand.call(void 0, props);
|
|
361
361
|
props = _FMI5QF7Ncjs.useCollectionItem.call(void 0, _72I2GWXFcjs.__spreadProps.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, {
|
|
362
362
|
store
|
|
363
363
|
}, props), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _QK4GI6B3cjs = require('./QK4GI6B3.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _X2GXTE3Pcjs = require('./X2GXTE3P.cjs');
|
|
@@ -89,7 +89,7 @@ function useEventOutside({
|
|
|
89
89
|
if (isMouseEventOnDialog(event, contentElement))
|
|
90
90
|
return;
|
|
91
91
|
const focused = focusedRef.current;
|
|
92
|
-
if (focused && !
|
|
92
|
+
if (focused && !_QK4GI6B3cjs.isElementMarked.call(void 0, target, contentElement.id))
|
|
93
93
|
return;
|
|
94
94
|
callListener(event);
|
|
95
95
|
};
|
|
@@ -115,7 +115,7 @@ function useHideOnInteractOutside(store, hideOnInteractOutside, domReady) {
|
|
|
115
115
|
return;
|
|
116
116
|
if (!_dom.isVisible.call(void 0, previousMouseDown))
|
|
117
117
|
return;
|
|
118
|
-
if (!
|
|
118
|
+
if (!_QK4GI6B3cjs.isElementMarked.call(void 0, previousMouseDown, contentElement == null ? void 0 : contentElement.id))
|
|
119
119
|
return;
|
|
120
120
|
if (!shouldHideOnInteractOutside(hideOnInteractOutside, event))
|
|
121
121
|
return;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _Z3TLXRS7cjs = require('./Z3TLXRS7.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _TLA46MN6cjs = require('./TLA46MN6.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _BWQVQDGCcjs = require('./BWQVQDGC.cjs');
|
|
@@ -12,10 +12,10 @@ var _BWQVQDGCcjs = require('./BWQVQDGC.cjs');
|
|
|
12
12
|
function hideElementFromAccessibilityTree(element) {
|
|
13
13
|
return _BWQVQDGCcjs.setAttribute.call(void 0, element, "aria-hidden", "true");
|
|
14
14
|
}
|
|
15
|
-
function disableAccessibilityTreeOutside(
|
|
15
|
+
function disableAccessibilityTreeOutside(id, elements) {
|
|
16
16
|
const cleanups = [];
|
|
17
17
|
const ids = elements.map((el) => el == null ? void 0 : el.id);
|
|
18
|
-
|
|
18
|
+
_TLA46MN6cjs.walkTreeOutside.call(void 0, id, elements, (element) => {
|
|
19
19
|
if (_Z3TLXRS7cjs.isBackdrop.call(void 0, element, ...ids))
|
|
20
20
|
return;
|
|
21
21
|
cleanups.unshift(hideElementFromAccessibilityTree(element));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _GQAB4M3Bcjs = require('./GQAB4M3B.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -132,7 +132,7 @@ var useCommand = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
132
132
|
onKeyDown,
|
|
133
133
|
onKeyUp
|
|
134
134
|
});
|
|
135
|
-
props =
|
|
135
|
+
props = _GQAB4M3Bcjs.useFocusable.call(void 0, props);
|
|
136
136
|
return props;
|
|
137
137
|
}
|
|
138
138
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _ZL7HIJU2cjs = require('./ZL7HIJU2.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _Q6W7IWNJcjs = require('./Q6W7IWNJ.cjs');
|
|
@@ -20,7 +20,7 @@ var useHovercardDismiss = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
20
20
|
var _b = _a, { store } = _b, props = _72I2GWXFcjs.__objRest.call(void 0, _b, ["store"]);
|
|
21
21
|
const context = _Q6W7IWNJcjs.useHovercardScopedContext.call(void 0, );
|
|
22
22
|
store = store || context;
|
|
23
|
-
props =
|
|
23
|
+
props = _ZL7HIJU2cjs.usePopoverDismiss.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store }, props));
|
|
24
24
|
return props;
|
|
25
25
|
}
|
|
26
26
|
);
|
|
@@ -6,7 +6,7 @@ var _NER6RNCQcjs = require('./NER6RNCQ.cjs');
|
|
|
6
6
|
var _FO6MB5HFcjs = require('./FO6MB5HF.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _FXRXBA2Ycjs = require('./FXRXBA2Y.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ var _NPDPNCSDcjs = require('./NPDPNCSD.cjs');
|
|
|
14
14
|
var _Z5PUIG6Acjs = require('./Z5PUIG6A.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _UHRHLHM2cjs = require('./UHRHLHM2.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -62,7 +62,7 @@ var useCheckbox = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
62
62
|
const context = _NER6RNCQcjs.useCheckboxContext.call(void 0, );
|
|
63
63
|
store = store || context;
|
|
64
64
|
const [_checked, setChecked] = _react.useState.call(void 0, defaultChecked != null ? defaultChecked : false);
|
|
65
|
-
const checked =
|
|
65
|
+
const checked = _UHRHLHM2cjs.useStoreState.call(void 0, store, (state) => {
|
|
66
66
|
if (checkedProp !== void 0)
|
|
67
67
|
return checkedProp;
|
|
68
68
|
if ((state == null ? void 0 : state.value) === void 0)
|
|
@@ -143,7 +143,7 @@ var useCheckbox = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
143
143
|
onChange,
|
|
144
144
|
onClick
|
|
145
145
|
});
|
|
146
|
-
props =
|
|
146
|
+
props = _FXRXBA2Ycjs.useCommand.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { clickOnEnter: !nativeCheckbox }, props));
|
|
147
147
|
return _72I2GWXFcjs.__spreadValues.call(void 0, {
|
|
148
148
|
value: nativeCheckbox ? valueProp : void 0,
|
|
149
149
|
checked: isChecked
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _D3SPQ2OYcjs = require('./D3SPQ2OY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _WSW5XX7Fcjs = require('./WSW5XX7F.cjs');
|
|
@@ -20,7 +20,7 @@ var useToolbarItem = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
20
20
|
var _b = _a, { store } = _b, props = _72I2GWXFcjs.__objRest.call(void 0, _b, ["store"]);
|
|
21
21
|
const context = _WSW5XX7Fcjs.useToolbarContext.call(void 0, );
|
|
22
22
|
store = store || context;
|
|
23
|
-
props =
|
|
23
|
+
props = _D3SPQ2OYcjs.useCompositeItem.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store }, props));
|
|
24
24
|
return props;
|
|
25
25
|
}
|
|
26
26
|
);
|