@ariakit/react-core 0.3.2 → 0.3.4
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 +108 -0
- package/cjs/__chunks/{FWCQCCG3.cjs → 232HWSNY.cjs} +12 -12
- package/cjs/__chunks/{GBOZYA5C.cjs → 2H4Y2NEY.cjs} +4 -4
- package/cjs/__chunks/{LCKU3TYW.cjs → 35G5ZXPH.cjs} +12 -2
- package/cjs/__chunks/{LJBXMHCD.cjs → 3DILH277.cjs} +6 -6
- package/cjs/__chunks/{B3TGB2C3.cjs → 4QHHTATP.cjs} +7 -7
- package/cjs/__chunks/{ZJ4ICN62.cjs → 5ZP4D2SQ.cjs} +4 -4
- package/cjs/__chunks/{SKVJLFWS.cjs → 6UYPIKG4.cjs} +8 -8
- package/cjs/__chunks/{GCTYF2Y6.cjs → 76UBACFC.cjs} +3 -3
- package/cjs/__chunks/{HYYXXXEK.cjs → BSOHJE7R.cjs} +2 -2
- package/cjs/__chunks/{ZPTFLDSU.cjs → CAKLNUKE.cjs} +7 -7
- package/cjs/__chunks/{INDMFBTS.cjs → COHI5HTS.cjs} +17 -16
- package/cjs/__chunks/{DPLHWKRP.cjs → DFFFHQVQ.cjs} +3 -3
- package/cjs/__chunks/{HFISYIKE.cjs → DYNIQRKI.cjs} +7 -7
- package/cjs/__chunks/{S4UMINQJ.cjs → EMNY7J2W.cjs} +2 -2
- package/cjs/__chunks/{I63PYP2U.cjs → EVNF7KMT.cjs} +3 -35
- package/cjs/__chunks/{ZQTMT453.cjs → EZKYHQVF.cjs} +2 -2
- package/cjs/__chunks/{NBCR3CLP.cjs → F4RJLWZG.cjs} +3 -3
- package/cjs/__chunks/{G33PRHOG.cjs → GUWJ7VTO.cjs} +10 -10
- package/cjs/__chunks/{4HKELPDA.cjs → GWFSX7RQ.cjs} +8 -8
- package/cjs/__chunks/{2FEEKOTF.cjs → GZMKQINI.cjs} +2 -2
- package/cjs/__chunks/{3ULNMLN7.cjs → HSOKUBYY.cjs} +5 -5
- package/cjs/__chunks/{NPDPNCSD.cjs → HWZH54NB.cjs} +3 -2
- package/cjs/__chunks/{BPPAZUXP.cjs → J37FS72U.cjs} +2 -2
- package/cjs/__chunks/{5E5FKYEO.cjs → L2VQ4YLN.cjs} +18 -1
- package/cjs/__chunks/{7F6H5HXC.cjs → LCC3WQBM.cjs} +4 -4
- package/cjs/__chunks/{E4C2KZA5.cjs → O6SYRTZH.cjs} +5 -5
- package/cjs/__chunks/{2C7LUQOS.cjs → OOFSNUBV.cjs} +2 -2
- package/cjs/__chunks/{DMTOMUIM.cjs → QBOBT66Y.cjs} +8 -7
- package/cjs/__chunks/{QEG5AJH6.cjs → QFGI3BJE.cjs} +107 -58
- package/cjs/__chunks/{JKMBJCXA.cjs → QK4GI6B3.cjs} +7 -12
- package/cjs/__chunks/{OX7M6AXH.cjs → QMFZ4CLT.cjs} +4 -4
- package/cjs/__chunks/{HCQYEOCO.cjs → R7CSCUVW.cjs} +6 -6
- package/cjs/__chunks/{6UXB6PRK.cjs → RU4K4ZH6.cjs} +7 -7
- package/cjs/__chunks/{6BAHKJ5K.cjs → RWS2MAR2.cjs} +0 -7
- package/cjs/__chunks/{J77SNKFZ.cjs → SE2X2FG7.cjs} +4 -4
- package/cjs/__chunks/{6G5GJF5Q.cjs → SELCJFCB.cjs} +2 -2
- package/cjs/__chunks/{WBPFHFAX.cjs → T222USYS.cjs} +35 -35
- package/cjs/__chunks/TLA46MN6.cjs +79 -0
- package/cjs/__chunks/{V37GXOUJ.cjs → TYMYFAUI.cjs} +4 -4
- package/cjs/__chunks/{DNFCOHE4.cjs → UK2DHDQU.cjs} +2 -2
- package/cjs/__chunks/{4ULJINEP.cjs → VAF2GKYW.cjs} +8 -8
- package/cjs/__chunks/{XOHN6PER.cjs → VAY4A33A.cjs} +10 -6
- package/cjs/__chunks/{JNVNPB37.cjs → VGU6RMHO.cjs} +2 -2
- package/cjs/__chunks/{27A4YAUB.cjs → VVU2UQJ2.cjs} +4 -4
- package/cjs/__chunks/{EQEXTQQ6.cjs → YCBMXOIO.cjs} +5 -5
- package/cjs/__chunks/{2VQBXUAI.cjs → YLOTLD6S.cjs} +2 -2
- package/cjs/__chunks/{HDYD5S2P.cjs → ZIEW4CQO.cjs} +3 -3
- package/cjs/__chunks/{X3UARAKT.cjs → ZQZC54NS.cjs} +2 -2
- package/cjs/__chunks/{NATUYKIW.cjs → ZZZ5MQHA.cjs} +4 -4
- 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/collection/collection-provider.cjs +3 -3
- package/cjs/collection/collection-renderer.cjs +3 -3
- package/cjs/collection/collection-renderer.d.ts +53 -53
- package/cjs/collection/collection-store.cjs +3 -3
- package/cjs/combobox/combobox-cancel.cjs +4 -4
- package/cjs/combobox/combobox-disclosure.cjs +6 -6
- package/cjs/combobox/combobox-item.cjs +5 -5
- package/cjs/combobox/combobox-list.cjs +5 -4
- package/cjs/combobox/combobox-popover.cjs +24 -20
- package/cjs/combobox/combobox-provider.cjs +8 -8
- package/cjs/combobox/combobox-store.cjs +8 -8
- package/cjs/combobox/combobox.cjs +7 -5
- 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 +15 -14
- package/cjs/composite/composite-provider.cjs +4 -4
- package/cjs/composite/composite-renderer.cjs +4 -4
- package/cjs/composite/composite-renderer.d.ts +53 -53
- 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 +7 -7
- 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 +16 -13
- package/cjs/dialog/dialog.d.ts +83 -14
- 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.cjs +3 -2
- package/cjs/disclosure/disclosure-content.d.ts +14 -0
- package/cjs/disclosure/disclosure-provider.cjs +3 -3
- package/cjs/disclosure/disclosure-store.cjs +3 -3
- package/cjs/disclosure/disclosure.cjs +5 -5
- package/cjs/focusable/focusable.cjs +2 -2
- package/cjs/focusable/focusable.d.ts +2 -0
- package/cjs/form/form-checkbox.cjs +7 -7
- package/cjs/form/form-input.cjs +2 -2
- package/cjs/form/form-provider.cjs +4 -4
- package/cjs/form/form-push.cjs +4 -4
- package/cjs/form/form-radio.cjs +6 -6
- package/cjs/form/form-remove.cjs +4 -4
- package/cjs/form/form-reset.cjs +4 -4
- package/cjs/form/form-store.cjs +4 -4
- package/cjs/form/form-submit.cjs +4 -4
- package/cjs/hovercard/hovercard-anchor.cjs +3 -3
- package/cjs/hovercard/hovercard-disclosure.cjs +6 -6
- package/cjs/hovercard/hovercard-dismiss.cjs +7 -7
- package/cjs/hovercard/hovercard-provider.cjs +6 -6
- package/cjs/hovercard/hovercard-store.cjs +6 -6
- package/cjs/hovercard/hovercard.cjs +16 -15
- 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 +11 -11
- 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 +6 -6
- 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 +9 -9
- package/cjs/menu/menu.cjs +46 -52
- package/cjs/menu/menu.d.ts +9 -8
- 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 +15 -14
- 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 +18 -13
- package/cjs/select/select-group-label.d.ts +22 -17
- package/cjs/select/select-group.d.ts +17 -12
- package/cjs/select/select-item-check.d.ts +23 -17
- 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 +6 -5
- package/cjs/select/select-list.d.ts +26 -16
- package/cjs/select/select-popover.cjs +27 -21
- 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 +0 -4
- 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-list.d.ts +14 -9
- package/cjs/tab/tab-panel.cjs +7 -7
- package/cjs/tab/tab-panel.d.ts +15 -10
- package/cjs/tab/tab-provider.cjs +5 -5
- package/cjs/tab/tab-store.cjs +5 -5
- package/cjs/tab/tab-store.d.ts +0 -7
- package/cjs/tab/tab.cjs +5 -5
- package/cjs/tab/tab.d.ts +13 -10
- package/cjs/toolbar/toolbar-container.cjs +8 -8
- package/cjs/toolbar/toolbar-container.d.ts +3 -4
- package/cjs/toolbar/toolbar-input.cjs +6 -6
- package/cjs/toolbar/toolbar-input.d.ts +3 -4
- package/cjs/toolbar/toolbar-item.cjs +6 -6
- package/cjs/toolbar/toolbar-item.d.ts +7 -5
- package/cjs/toolbar/toolbar-provider.cjs +5 -5
- package/cjs/toolbar/toolbar-separator.d.ts +7 -5
- package/cjs/toolbar/toolbar-store.cjs +5 -5
- package/cjs/toolbar/toolbar.cjs +8 -8
- package/cjs/toolbar/toolbar.d.ts +8 -3
- package/cjs/tooltip/tooltip-anchor.cjs +3 -3
- package/cjs/tooltip/tooltip-anchor.d.ts +13 -8
- package/cjs/tooltip/tooltip-arrow.d.ts +16 -10
- package/cjs/tooltip/tooltip-provider.cjs +7 -7
- package/cjs/tooltip/tooltip-store.cjs +7 -7
- package/cjs/tooltip/tooltip.cjs +25 -19
- package/cjs/tooltip/tooltip.d.ts +10 -5
- package/cjs/tsconfig.build.tsbuildinfo +1 -1
- package/cjs/utils/store.cjs +2 -2
- package/cjs/utils/system.d.ts +2 -2
- package/dialog/utils/disable-tree/package.json +8 -0
- package/esm/__chunks/{VDTDCNMP.js → 2BTPJSKW.js} +3 -3
- package/esm/__chunks/{3HFOFZP4.js → 2FIUKXIM.js} +1 -1
- package/esm/__chunks/{KZMKUBQH.js → 2Q7ASGJM.js} +1 -1
- package/esm/__chunks/{QJMIKN5O.js → 3FLPLDNL.js} +2 -2
- package/esm/__chunks/{HMYMEP6U.js → 3KBWC7LF.js} +1 -1
- package/esm/__chunks/{4SB2BYFE.js → 3X3TLUHU.js} +4 -3
- package/esm/__chunks/{HYNMOU7J.js → 56TAEBRJ.js} +1 -1
- package/esm/__chunks/{TQ2YQL6O.js → 5EAW3TWZ.js} +11 -1
- package/esm/__chunks/{V5EW3YHP.js → 6F7MKZK2.js} +3 -3
- package/esm/__chunks/{UQFOL5I6.js → 6W46XYWY.js} +2 -2
- package/esm/__chunks/{HAVCR65N.js → 7LB47D2O.js} +1 -1
- package/esm/__chunks/{X5VV5CBA.js → 7VWXICM7.js} +3 -3
- package/esm/__chunks/{VPTWELSR.js → AE5ABTKC.js} +2 -2
- package/esm/__chunks/{LND6SMHN.js → CAIAWNDV.js} +2 -1
- package/esm/__chunks/{C5JX5C3O.js → DCODCZJS.js} +3 -3
- package/esm/__chunks/{R4FKKQYI.js → DE62M4L2.js} +2 -2
- package/esm/__chunks/{IFNQMENS.js → DLZTS5NV.js} +3 -3
- package/esm/__chunks/{D5TF3EQR.js → E3ZC4HKO.js} +2 -2
- package/esm/__chunks/{XASENZA4.js → EGOOWJGN.js} +16 -15
- package/esm/__chunks/{34JEM52B.js → F7UYWUBJ.js} +34 -34
- package/esm/__chunks/{KGDYSCOM.js → FRKOFFMT.js} +6 -11
- package/esm/__chunks/{GP4UGJIZ.js → H3CXUGYG.js} +9 -5
- package/esm/__chunks/{4WK6LN27.js → HUAF5DID.js} +2 -2
- package/esm/__chunks/{PLOINBVB.js → HWJ7DGMR.js} +0 -7
- package/esm/__chunks/{MXSIXS3C.js → HXYXHHNW.js} +1 -1
- package/esm/__chunks/{FBTQUSIH.js → I6Y4PDFW.js} +2 -2
- package/esm/__chunks/{K6BB6DTS.js → IADMQBOS.js} +2 -2
- package/esm/__chunks/{72OJKUSZ.js → IQXVWBXC.js} +2 -2
- package/esm/__chunks/{UY3UQ4QI.js → IZFXPXHG.js} +2 -2
- package/esm/__chunks/{HGW6FZYU.js → J2AZPLFF.js} +2 -2
- package/esm/__chunks/{EKIHOHWR.js → JRZOTPWS.js} +2 -2
- package/esm/__chunks/{3D7ZB3CS.js → KK6NPMOP.js} +18 -1
- package/esm/__chunks/{54DCICBS.js → KXTLHNBI.js} +1 -1
- package/esm/__chunks/{RJEKIG5Y.js → LBTB6WEV.js} +1 -1
- package/esm/__chunks/{HZPJPDJY.js → LFLKMTFW.js} +2 -2
- package/esm/__chunks/{7AFOF5E7.js → LRDCOOWL.js} +1 -1
- package/esm/__chunks/{W575AF63.js → NXB7YL3C.js} +3 -3
- package/esm/__chunks/{35WVCYXU.js → OAQFZVKH.js} +2 -2
- package/esm/__chunks/{A2ONBKVT.js → OD3JT64N.js} +1 -1
- package/esm/__chunks/{AYWP3ZW6.js → OQUFN5QO.js} +1 -1
- package/esm/__chunks/{H2BG4QDT.js → QTZ67ALK.js} +2 -2
- package/esm/__chunks/{QPWEKAWF.js → TONP6TZ5.js} +1 -1
- package/esm/__chunks/{4RP654JS.js → UXIMR4AS.js} +100 -51
- package/esm/__chunks/VRCYQ6JX.js +79 -0
- package/esm/__chunks/{XXO3VVQU.js → WHAB4XD6.js} +3 -35
- package/esm/__chunks/{4JNX5L5C.js → WNHMGHG5.js} +1 -1
- package/esm/__chunks/{WGAKICTY.js → WRZGD4DH.js} +2 -2
- package/esm/__chunks/{NWDF5QDV.js → YS46MLTR.js} +1 -1
- package/esm/__chunks/{IZ6ZARCP.js → ZYB5SMUW.js} +1 -1
- 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.js +4 -4
- package/esm/collection/collection-provider.js +2 -2
- package/esm/collection/collection-renderer.d.ts +53 -53
- package/esm/collection/collection-renderer.js +2 -2
- package/esm/collection/collection-store.js +2 -2
- package/esm/combobox/combobox-cancel.js +3 -3
- package/esm/combobox/combobox-disclosure.js +5 -5
- package/esm/combobox/combobox-item.js +4 -4
- package/esm/combobox/combobox-list.js +4 -3
- package/esm/combobox/combobox-popover.js +22 -18
- package/esm/combobox/combobox-provider.js +7 -7
- package/esm/combobox/combobox-store.js +7 -7
- package/esm/combobox/combobox.js +6 -4
- 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 +14 -13
- package/esm/composite/composite-provider.js +3 -3
- package/esm/composite/composite-renderer.d.ts +53 -53
- 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 +6 -6
- 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 +83 -14
- package/esm/dialog/dialog.js +15 -12
- 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 +14 -0
- package/esm/disclosure/disclosure-content.js +2 -1
- package/esm/disclosure/disclosure-provider.js +2 -2
- package/esm/disclosure/disclosure-store.js +2 -2
- package/esm/disclosure/disclosure.js +4 -4
- package/esm/focusable/focusable.d.ts +2 -0
- package/esm/focusable/focusable.js +1 -1
- package/esm/form/form-checkbox.js +5 -5
- package/esm/form/form-input.js +1 -1
- package/esm/form/form-provider.js +3 -3
- package/esm/form/form-push.js +3 -3
- package/esm/form/form-radio.js +5 -5
- package/esm/form/form-remove.js +3 -3
- package/esm/form/form-reset.js +3 -3
- package/esm/form/form-store.js +3 -3
- package/esm/form/form-submit.js +3 -3
- package/esm/hovercard/hovercard-anchor.js +2 -2
- package/esm/hovercard/hovercard-disclosure.js +5 -5
- package/esm/hovercard/hovercard-dismiss.js +6 -6
- package/esm/hovercard/hovercard-provider.js +5 -5
- package/esm/hovercard/hovercard-store.js +5 -5
- package/esm/hovercard/hovercard.js +15 -14
- 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 +8 -8
- 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 +5 -5
- package/esm/menu/menu-provider.js +8 -8
- package/esm/menu/menu-separator.d.ts +14 -10
- package/esm/menu/menu-store.d.ts +9 -9
- package/esm/menu/menu-store.js +8 -8
- package/esm/menu/menu.d.ts +9 -8
- package/esm/menu/menu.js +45 -51
- 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 +14 -13
- 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 +18 -13
- package/esm/select/select-group-label.d.ts +22 -17
- package/esm/select/select-group.d.ts +17 -12
- package/esm/select/select-item-check.d.ts +23 -17
- 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 +5 -4
- package/esm/select/select-popover.d.ts +11 -10
- package/esm/select/select-popover.js +25 -19
- 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 +0 -4
- 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.d.ts +14 -9
- package/esm/tab/tab-list.js +2 -2
- package/esm/tab/tab-panel.d.ts +15 -10
- package/esm/tab/tab-panel.js +4 -4
- package/esm/tab/tab-provider.js +4 -4
- package/esm/tab/tab-store.d.ts +0 -7
- package/esm/tab/tab-store.js +4 -4
- package/esm/tab/tab.d.ts +13 -10
- package/esm/tab/tab.js +4 -4
- package/esm/toolbar/toolbar-container.d.ts +3 -4
- package/esm/toolbar/toolbar-container.js +6 -6
- package/esm/toolbar/toolbar-input.d.ts +3 -4
- package/esm/toolbar/toolbar-input.js +5 -5
- package/esm/toolbar/toolbar-item.d.ts +7 -5
- package/esm/toolbar/toolbar-item.js +5 -5
- package/esm/toolbar/toolbar-provider.js +4 -4
- package/esm/toolbar/toolbar-separator.d.ts +7 -5
- package/esm/toolbar/toolbar-store.js +4 -4
- package/esm/toolbar/toolbar.d.ts +8 -3
- package/esm/toolbar/toolbar.js +6 -6
- package/esm/tooltip/tooltip-anchor.d.ts +13 -8
- package/esm/tooltip/tooltip-anchor.js +2 -2
- package/esm/tooltip/tooltip-arrow.d.ts +16 -10
- package/esm/tooltip/tooltip-provider.js +6 -6
- package/esm/tooltip/tooltip-store.js +6 -6
- package/esm/tooltip/tooltip.d.ts +10 -5
- package/esm/tooltip/tooltip.js +24 -18
- package/esm/tsconfig.build.tsbuildinfo +1 -1
- package/esm/utils/store.js +1 -1
- package/esm/utils/system.d.ts +2 -2
- 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,113 @@
|
|
|
1
1
|
# @ariakit/react-core
|
|
2
2
|
|
|
3
|
+
## 0.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`#2894`](https://github.com/ariakit/ariakit/pull/2894) Fixed [Command](https://ariakit.org/components/command) and related components not preventing the default behavior on <kbd>Space</kbd> keyup on non-native button elements.
|
|
8
|
+
|
|
9
|
+
- [`#2896`](https://github.com/ariakit/ariakit/pull/2896) Controlled store updates are no longer flushed synchronously.
|
|
10
|
+
|
|
11
|
+
Previously, we were wrapping _all_ controlled store updates with [`ReactDOM.flushSync`](https://react.dev/reference/react-dom/flushSync). This approach proved to be quite fragile and led to a few problems. Now, we only apply this to specific updates that require synchronous flushing.
|
|
12
|
+
|
|
13
|
+
This change shouldn't impact your application, unless you're already facing problems, which could be fixed by this. If you find any issues stemming from this change, please let us know. Regardless, you can always opt into the previous behavior by wrapping your own updates in `flushSync` when needed:
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const [open, setOpen] = useState(false);
|
|
17
|
+
|
|
18
|
+
useDialogStore({
|
|
19
|
+
open,
|
|
20
|
+
setOpen(open) {
|
|
21
|
+
ReactDOM.flushSync(() => setOpen(open));
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
- [`#2897`](https://github.com/ariakit/ariakit/pull/2897) Fixed `CompositeRenderer` missing its `items` state when used in a component with a `mounted` state.
|
|
27
|
+
|
|
28
|
+
- [`#2909`](https://github.com/ariakit/ariakit/pull/2909) Fixed [Disclosure](https://ariakit.org/components/disclosure) and related components not waiting for the exit animation to complete before hiding the content element.
|
|
29
|
+
|
|
30
|
+
- [`#2909`](https://github.com/ariakit/ariakit/pull/2909) The [Dialog](https://ariakit.org/components/dialog) and related components can now receive controlled [`open`](https://ariakit.org/reference/dialog#open) and [`onClose`](https://ariakit.org/reference/dialog#onclose) props, allowing them to be used without a store:
|
|
31
|
+
|
|
32
|
+
```jsx
|
|
33
|
+
const [open, setOpen] = useState(false);
|
|
34
|
+
|
|
35
|
+
<Dialog
|
|
36
|
+
open={open}
|
|
37
|
+
onClose={() => setOpen(false)}
|
|
38
|
+
>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- [`#2922`](https://github.com/ariakit/ariakit/pull/2922) Added [`unmountOnHide`](https://ariakit.org/reference/disclosure-content#unmountonhide) prop to [`DisclosureContent`](https://ariakit.org/reference/disclosure-content), [`Dialog`](https://ariakit.org/reference/dialog) and related components.
|
|
42
|
+
|
|
43
|
+
Conditionally rendering the [`Dialog`](https://ariakit.org/reference/dialog) and related components will continue to work as before:
|
|
44
|
+
|
|
45
|
+
```jsx
|
|
46
|
+
open && <Dialog>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Now, you can do the same thing using the [`unmountOnHide`](https://ariakit.org/reference/dialog#unmountonhide) prop:
|
|
50
|
+
|
|
51
|
+
```jsx
|
|
52
|
+
<Dialog unmountOnHide>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
- Improved JSDocs.
|
|
56
|
+
|
|
57
|
+
- Updated dependencies: `@ariakit/core@0.3.3`.
|
|
58
|
+
|
|
59
|
+
## 0.3.3
|
|
60
|
+
|
|
61
|
+
### Patch Changes
|
|
62
|
+
|
|
63
|
+
- [`#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).
|
|
64
|
+
|
|
65
|
+
- [`#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.
|
|
66
|
+
|
|
67
|
+
The following now works as expected:
|
|
68
|
+
|
|
69
|
+
```js
|
|
70
|
+
const store1 = useSelectStore();
|
|
71
|
+
const store2 = useSelectStore({ store: store1, setValueOnMove: true });
|
|
72
|
+
|
|
73
|
+
store1.useState("setValueOnMove") === store2.useState("setValueOnMove"); // true
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- [`#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`.
|
|
77
|
+
|
|
78
|
+
- [`#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.
|
|
79
|
+
|
|
80
|
+
- [`#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.
|
|
81
|
+
|
|
82
|
+
Previously, Ariakit didn't recognize the third-party dialog as a nested dialog when the lowest dialog opened.
|
|
83
|
+
|
|
84
|
+
- [`#2862`](https://github.com/ariakit/ariakit/pull/2862) The [`hideOnEscape`](https://ariakit.org/reference/dialog#hideonescape) prop is now triggered during the capture phase.
|
|
85
|
+
|
|
86
|
+
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):
|
|
87
|
+
|
|
88
|
+
```jsx
|
|
89
|
+
<Dialog
|
|
90
|
+
hideOnEscape={(event) => {
|
|
91
|
+
event.stopPropagation();
|
|
92
|
+
return true;
|
|
93
|
+
}}
|
|
94
|
+
/>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
- [`#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.
|
|
98
|
+
|
|
99
|
+
You can now render nested dialogs in the React tree and keep them open independently, provided they're not unmounted.
|
|
100
|
+
|
|
101
|
+
- [`#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.
|
|
102
|
+
|
|
103
|
+
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.
|
|
104
|
+
|
|
105
|
+
- [`#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.
|
|
106
|
+
|
|
107
|
+
- [`#2869`](https://github.com/ariakit/ariakit/pull/2869) Fixed uncaught `msg.startsWith` error.
|
|
108
|
+
|
|
109
|
+
- Improved JSDocs.
|
|
110
|
+
|
|
3
111
|
## 0.3.2
|
|
4
112
|
|
|
5
113
|
### Patch Changes
|
|
@@ -1,27 +1,27 @@
|
|
|
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 _76UBACFCcjs = require('./76UBACFC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _EVNF7KMTcjs = require('./EVNF7KMT.cjs');
|
|
8
8
|
|
|
9
9
|
// src/composite/composite-store.ts
|
|
10
10
|
var _compositestore = require('@ariakit/core/composite/composite-store'); var Core = _interopRequireWildcard(_compositestore);
|
|
11
11
|
function useCompositeStoreProps(store, update, props) {
|
|
12
|
-
store =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
store = _76UBACFCcjs.useCollectionStoreProps.call(void 0, store, update, props);
|
|
13
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "activeId", "setActiveId");
|
|
14
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "includesBaseElement");
|
|
15
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "virtualFocus");
|
|
16
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "orientation");
|
|
17
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "rtl");
|
|
18
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "focusLoop");
|
|
19
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "focusWrap");
|
|
20
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "focusShift");
|
|
21
21
|
return store;
|
|
22
22
|
}
|
|
23
23
|
function useCompositeStore(props = {}) {
|
|
24
|
-
const [store, update] =
|
|
24
|
+
const [store, update] = _EVNF7KMTcjs.useStore.call(void 0, Core.createCompositeStore, props);
|
|
25
25
|
return useCompositeStoreProps(store, update, props);
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -6,7 +6,7 @@ var _NER6RNCQcjs = require('./NER6RNCQ.cjs');
|
|
|
6
6
|
var _FO6MB5HFcjs = require('./FO6MB5HF.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _HWZH54NBcjs = require('./HWZH54NB.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 _EVNF7KMTcjs = require('./EVNF7KMT.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 = _EVNF7KMTcjs.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 = _HWZH54NBcjs.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 _VGU6RMHOcjs = require('./VGU6RMHO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _W6ZRSMO5cjs = require('./W6ZRSMO5.cjs');
|
|
@@ -15,12 +15,22 @@ var _Z5PUIG6Acjs = require('./Z5PUIG6A.cjs');
|
|
|
15
15
|
var _72I2GWXFcjs = require('./72I2GWXF.cjs');
|
|
16
16
|
|
|
17
17
|
// src/dialog/dialog-disclosure.ts
|
|
18
|
+
var _dom = require('@ariakit/core/utils/dom');
|
|
19
|
+
var _misc = require('@ariakit/core/utils/misc');
|
|
18
20
|
var useDialogDisclosure = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
19
21
|
(_a) => {
|
|
20
22
|
var _b = _a, { store } = _b, props = _72I2GWXFcjs.__objRest.call(void 0, _b, ["store"]);
|
|
21
23
|
const context = _W6ZRSMO5cjs.useDialogProviderContext.call(void 0, );
|
|
22
24
|
store = store || context;
|
|
23
|
-
|
|
25
|
+
_misc.invariant.call(void 0,
|
|
26
|
+
store,
|
|
27
|
+
process.env.NODE_ENV !== "production" && "DialogDisclosure must receive a `store` prop or be wrapped in a DialogProvider component."
|
|
28
|
+
);
|
|
29
|
+
const contentElement = store.useState("contentElement");
|
|
30
|
+
props = _72I2GWXFcjs.__spreadValues.call(void 0, {
|
|
31
|
+
"aria-haspopup": _dom.getPopupRole.call(void 0, contentElement, "dialog")
|
|
32
|
+
}, props);
|
|
33
|
+
props = _VGU6RMHOcjs.useDisclosure.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store }, props));
|
|
24
34
|
return props;
|
|
25
35
|
}
|
|
26
36
|
);
|
|
@@ -1,21 +1,21 @@
|
|
|
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 _RU4K4ZH6cjs = require('./RU4K4ZH6.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _EVNF7KMTcjs = require('./EVNF7KMT.cjs');
|
|
8
8
|
|
|
9
9
|
// src/tooltip/tooltip-store.ts
|
|
10
10
|
var _tooltipstore = require('@ariakit/core/tooltip/tooltip-store'); var Core = _interopRequireWildcard(_tooltipstore);
|
|
11
11
|
function useTooltipStoreProps(store, update, props) {
|
|
12
|
-
store =
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
store = _RU4K4ZH6cjs.useHovercardStoreProps.call(void 0, store, update, props);
|
|
13
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "type");
|
|
14
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "skipTimeout");
|
|
15
15
|
return store;
|
|
16
16
|
}
|
|
17
17
|
function useTooltipStore(props = {}) {
|
|
18
|
-
const [store, update] =
|
|
18
|
+
const [store, update] = _EVNF7KMTcjs.useStore.call(void 0, Core.createTooltipStore, props);
|
|
19
19
|
return useTooltipStoreProps(store, update, props);
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -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 _232HWSNYcjs = require('./232HWSNY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _EVNF7KMTcjs = require('./EVNF7KMT.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -14,14 +14,14 @@ var _72I2GWXFcjs = require('./72I2GWXF.cjs');
|
|
|
14
14
|
var _react = require('react');
|
|
15
15
|
var _tabstore = require('@ariakit/core/tab/tab-store'); var Core = _interopRequireWildcard(_tabstore);
|
|
16
16
|
function useTabStoreProps(store, update, props) {
|
|
17
|
-
store =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const [panels] =
|
|
17
|
+
store = _232HWSNYcjs.useCompositeStoreProps.call(void 0, store, update, props);
|
|
18
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "selectedId", "setSelectedId");
|
|
19
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "selectOnMove");
|
|
20
|
+
const [panels] = _EVNF7KMTcjs.useStore.call(void 0, () => store.panels, {});
|
|
21
21
|
return _react.useMemo.call(void 0, () => _72I2GWXFcjs.__spreadProps.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, {}, store), { panels }), []);
|
|
22
22
|
}
|
|
23
23
|
function useTabStore(props = {}) {
|
|
24
|
-
const [store, update] =
|
|
24
|
+
const [store, update] = _EVNF7KMTcjs.useStore.call(void 0, Core.createTabStore, props);
|
|
25
25
|
return useTabStoreProps(store, update, props);
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _FPNO6JL5cjs = require('./FPNO6JL5.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _GUWJ7VTOcjs = require('./GUWJ7VTO.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ var _G33PRHOGcjs = require('./G33PRHOG.cjs');
|
|
|
11
11
|
var _Z5PUIG6Acjs = require('./Z5PUIG6A.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _EVNF7KMTcjs = require('./EVNF7KMT.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -44,7 +44,7 @@ var useRadio = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
44
44
|
store = store || context;
|
|
45
45
|
const id = _5WLTMVVQcjs.useId.call(void 0, props.id);
|
|
46
46
|
const ref = _react.useRef.call(void 0, null);
|
|
47
|
-
const isChecked =
|
|
47
|
+
const isChecked = _EVNF7KMTcjs.useStoreState.call(void 0,
|
|
48
48
|
store,
|
|
49
49
|
(state) => checked != null ? checked : getIsChecked(value, state == null ? void 0 : state.value)
|
|
50
50
|
);
|
|
@@ -111,7 +111,7 @@ var useRadio = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
111
111
|
onClick,
|
|
112
112
|
onFocus
|
|
113
113
|
});
|
|
114
|
-
props =
|
|
114
|
+
props = _GUWJ7VTOcjs.useCompositeItem.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, { store, clickOnEnter: !nativeRadio }, props));
|
|
115
115
|
return _72I2GWXFcjs.__spreadValues.call(void 0, {
|
|
116
116
|
value: nativeRadio ? value : void 0,
|
|
117
117
|
checked: isChecked
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _J37FS72Ucjs = require('./J37FS72U.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _H7R5D2FRcjs = require('./H7R5D2FR.cjs');
|
|
@@ -11,7 +11,7 @@ var _H7R5D2FRcjs = require('./H7R5D2FR.cjs');
|
|
|
11
11
|
var _Z5PUIG6Acjs = require('./Z5PUIG6A.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _EVNF7KMTcjs = require('./EVNF7KMT.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _5WLTMVVQcjs = require('./5WLTMVVQ.cjs');
|
|
@@ -67,7 +67,7 @@ function findLast(items) {
|
|
|
67
67
|
function findById(items, id, baseId) {
|
|
68
68
|
return items.findIndex((item, index) => {
|
|
69
69
|
var _a;
|
|
70
|
-
const itemId =
|
|
70
|
+
const itemId = _J37FS72Ucjs.getCollectionRendererItemId.call(void 0, item, index, baseId);
|
|
71
71
|
if (itemId === id)
|
|
72
72
|
return true;
|
|
73
73
|
const object = getItemObject(item);
|
|
@@ -97,15 +97,15 @@ function useCompositeRenderer(_a) {
|
|
|
97
97
|
]);
|
|
98
98
|
const context = _H7R5D2FRcjs.useCompositeContext.call(void 0, );
|
|
99
99
|
store = store || context;
|
|
100
|
-
const orientation =
|
|
100
|
+
const orientation = _EVNF7KMTcjs.useStoreState.call(void 0,
|
|
101
101
|
store,
|
|
102
102
|
(state) => (orientationProp != null ? orientationProp : (state == null ? void 0 : state.orientation) === "both") ? "vertical" : state == null ? void 0 : state.orientation
|
|
103
103
|
);
|
|
104
|
-
const items =
|
|
104
|
+
const items = _EVNF7KMTcjs.useStoreState.call(void 0, store, (state) => {
|
|
105
105
|
var _a2;
|
|
106
106
|
if (!state)
|
|
107
107
|
return props.items;
|
|
108
|
-
if ("mounted" in state && state.mounted)
|
|
108
|
+
if ("mounted" in state && !state.mounted)
|
|
109
109
|
return 0;
|
|
110
110
|
return (_a2 = props.items) != null ? _a2 : state.items;
|
|
111
111
|
});
|
|
@@ -136,7 +136,7 @@ function useCompositeRenderer(_a) {
|
|
|
136
136
|
return -1;
|
|
137
137
|
return findLast(items);
|
|
138
138
|
}, [items]);
|
|
139
|
-
const activeId =
|
|
139
|
+
const activeId = _EVNF7KMTcjs.useStoreState.call(void 0, store, "activeId");
|
|
140
140
|
const activeIndex = _react.useMemo.call(void 0, () => {
|
|
141
141
|
if (!id)
|
|
142
142
|
return -1;
|
|
@@ -159,7 +159,7 @@ function useCompositeRenderer(_a) {
|
|
|
159
159
|
}
|
|
160
160
|
return indices;
|
|
161
161
|
}, [firstIndex, activeIndex, lastIndex, persistentIndicesProp]);
|
|
162
|
-
return
|
|
162
|
+
return _J37FS72Ucjs.useCollectionRenderer.call(void 0, _72I2GWXFcjs.__spreadProps.call(void 0, _72I2GWXFcjs.__spreadValues.call(void 0, {
|
|
163
163
|
id,
|
|
164
164
|
store,
|
|
165
165
|
orientation,
|
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _EVNF7KMTcjs = require('./EVNF7KMT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _5WLTMVVQcjs = require('./5WLTMVVQ.cjs');
|
|
@@ -10,11 +10,11 @@ var _5WLTMVVQcjs = require('./5WLTMVVQ.cjs');
|
|
|
10
10
|
var _collectionstore = require('@ariakit/core/collection/collection-store'); var Core = _interopRequireWildcard(_collectionstore);
|
|
11
11
|
function useCollectionStoreProps(store, update, props) {
|
|
12
12
|
_5WLTMVVQcjs.useUpdateEffect.call(void 0, update, [props.store]);
|
|
13
|
-
|
|
13
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "items", "setItems");
|
|
14
14
|
return store;
|
|
15
15
|
}
|
|
16
16
|
function useCollectionStore(props = {}) {
|
|
17
|
-
const [store, update] =
|
|
17
|
+
const [store, update] = _EVNF7KMTcjs.useStore.call(void 0, Core.createCollectionStore, props);
|
|
18
18
|
return useCollectionStoreProps(store, update, props);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -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,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 _76UBACFCcjs = require('./76UBACFC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _EVNF7KMTcjs = require('./EVNF7KMT.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 = _76UBACFCcjs.useCollectionStoreProps.call(void 0, store, update, props);
|
|
21
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "values", "setValues");
|
|
22
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "errors", "setErrors");
|
|
23
|
+
_EVNF7KMTcjs.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] = _EVNF7KMTcjs.useStore.call(void 0, Core.createFormStore, props);
|
|
55
55
|
return useFormStoreProps(store, update, props);
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -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 _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;
|
|
@@ -7,14 +7,14 @@ var _6RYSMHQYcjs = require('./6RYSMHQY.cjs');
|
|
|
7
7
|
var _ZBG4TGVLcjs = require('./ZBG4TGVL.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _232HWSNYcjs = require('./232HWSNY.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _RU4K4ZH6cjs = require('./RU4K4ZH6.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _EVNF7KMTcjs = require('./EVNF7KMT.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _5WLTMVVQcjs = require('./5WLTMVVQ.cjs');
|
|
@@ -27,9 +27,9 @@ var _72I2GWXFcjs = require('./72I2GWXF.cjs');
|
|
|
27
27
|
var _menustore = require('@ariakit/core/menu/menu-store'); var Core = _interopRequireWildcard(_menustore);
|
|
28
28
|
function useMenuStoreProps(store, update, props) {
|
|
29
29
|
_5WLTMVVQcjs.useUpdateEffect.call(void 0, update, [props.combobox, props.parent, props.menubar]);
|
|
30
|
-
store =
|
|
31
|
-
store =
|
|
32
|
-
|
|
30
|
+
store = _232HWSNYcjs.useCompositeStoreProps.call(void 0, store, update, props);
|
|
31
|
+
store = _RU4K4ZH6cjs.useHovercardStoreProps.call(void 0, store, update, props);
|
|
32
|
+
_EVNF7KMTcjs.useStoreProps.call(void 0, store, props, "values", "setValues");
|
|
33
33
|
return Object.assign(store, {
|
|
34
34
|
combobox: props.combobox,
|
|
35
35
|
parent: props.parent,
|
|
@@ -45,7 +45,7 @@ function useMenuStore(props = {}) {
|
|
|
45
45
|
menubar: props.menubar !== void 0 ? props.menubar : menubar,
|
|
46
46
|
combobox: props.combobox !== void 0 ? props.combobox : combobox
|
|
47
47
|
});
|
|
48
|
-
const [store, update] =
|
|
48
|
+
const [store, update] = _EVNF7KMTcjs.useStore.call(void 0, Core.createMenuStore, props);
|
|
49
49
|
return useMenuStoreProps(store, update, props);
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _EZKYHQVFcjs = require('./EZKYHQVF.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _W6ZRSMO5cjs = require('./W6ZRSMO5.cjs');
|
|
@@ -61,7 +61,7 @@ var useDialogDismiss = _Z5PUIG6Acjs.createHook.call(void 0,
|
|
|
61
61
|
}, props), {
|
|
62
62
|
onClick
|
|
63
63
|
});
|
|
64
|
-
props =
|
|
64
|
+
props = _EZKYHQVFcjs.useButton.call(void 0, props);
|
|
65
65
|
return props;
|
|
66
66
|
}
|
|
67
67
|
);
|