@ariakit/react-core 0.4.6 → 0.4.8
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 +22 -1
- package/cjs/__chunks/{ABTKVZY6.cjs → 32MRW5OT.cjs} +6 -6
- package/cjs/__chunks/{ZFDTYFQI.cjs → 35VA3E7J.cjs} +30 -42
- package/cjs/__chunks/3EGVYPXR.cjs +37 -0
- package/cjs/__chunks/{KXQOQQ5B.cjs → 3HGFVGHB.cjs} +3 -5
- package/cjs/__chunks/{J2TAMFLD.cjs → 4GQ35G4W.cjs} +6 -6
- package/cjs/__chunks/5375OBKP.cjs +37 -0
- package/cjs/__chunks/{U2WARLXR.cjs → 54XFMNDS.cjs} +11 -17
- package/cjs/__chunks/{WKI4JZZH.cjs → 55G3CDVQ.cjs} +2 -2
- package/cjs/__chunks/{7NTQGNM3.cjs → 55IP6UF7.cjs} +12 -12
- package/cjs/__chunks/{JDERC5LS.cjs → 5KGVVKTB.cjs} +24 -29
- package/cjs/__chunks/{M75ORKXH.cjs → 5KRJFKRD.cjs} +16 -16
- package/cjs/__chunks/{JE2SKI3E.cjs → 5XC2EBLV.cjs} +5 -5
- package/cjs/__chunks/{2OIGSMIR.cjs → 5XRB5OJG.cjs} +6 -6
- package/cjs/__chunks/{73ZRKUED.cjs → 7D3WLJ6Y.cjs} +4 -4
- package/cjs/__chunks/{QROIDWYF.cjs → 7JEGHXLQ.cjs} +18 -18
- package/cjs/__chunks/{YHNUJMOE.cjs → ALUDDGPE.cjs} +37 -44
- package/cjs/__chunks/{R2YVMKBR.cjs → AWEKOM65.cjs} +16 -18
- package/cjs/__chunks/{MX4DVGXA.cjs → AYLCDTBI.cjs} +20 -23
- package/cjs/__chunks/{LY5SWPQN.cjs → BNMYVASA.cjs} +28 -42
- package/cjs/__chunks/{6ZZYUFPW.cjs → BV5PE6PZ.cjs} +5 -10
- package/cjs/__chunks/{5J6PQR7O.cjs → BZ34A7Q7.cjs} +5 -5
- package/cjs/__chunks/{HD65OAFV.cjs → CAVEC6QQ.cjs} +2 -2
- package/cjs/__chunks/{X7NPMBM4.cjs → CINY3Q6Q.cjs} +97 -150
- package/cjs/__chunks/{ZPVTVHP7.cjs → CQ3ILEKO.cjs} +5 -5
- package/cjs/__chunks/{I7RSWTIE.cjs → CTYV4VU3.cjs} +4 -4
- package/cjs/__chunks/{DTP3WLMT.cjs → D6GJ6H7T.cjs} +123 -184
- package/cjs/__chunks/{N66KZH2B.cjs → DPVDBBFO.cjs} +13 -14
- package/cjs/__chunks/{IV3JK6OL.cjs → DTTG2PLR.cjs} +11 -11
- package/cjs/__chunks/{U5XLICWU.cjs → DYEW6UIB.cjs} +6 -8
- package/cjs/__chunks/{BJ3OD6EH.cjs → EDR5S5CX.cjs} +70 -114
- package/cjs/__chunks/{REFA5BON.cjs → EFOAIXM5.cjs} +8 -13
- package/cjs/__chunks/{NEH3GU2R.cjs → EY32VECZ.cjs} +17 -17
- package/cjs/__chunks/{JLR7GR2Q.cjs → EZFLPAN5.cjs} +5 -5
- package/cjs/__chunks/{YPADJBWR.cjs → F5OF3EOI.cjs} +5 -5
- package/cjs/__chunks/{ZOZB65G7.cjs → FW7MMP43.cjs} +17 -17
- package/cjs/__chunks/{7UGWYCZY.cjs → GEDABTB5.cjs} +82 -124
- package/cjs/__chunks/{3HDQJREU.cjs → GEF4CKCI.cjs} +7 -7
- package/cjs/__chunks/{UX3M5BHR.cjs → I2B6AUM7.cjs} +9 -9
- package/cjs/__chunks/{5VQNY2SR.cjs → I52OTQQ2.cjs} +6 -6
- package/cjs/__chunks/{EL44L6OV.cjs → I62GZSMK.cjs} +18 -23
- package/cjs/__chunks/{W24USSK5.cjs → IHRK7HOT.cjs} +5 -5
- package/cjs/__chunks/INEJRBLK.cjs +37 -0
- package/cjs/__chunks/{EWTZPN67.cjs → J3QW3U2K.cjs} +10 -10
- package/cjs/__chunks/{QEYSNJHC.cjs → JB3ASB5F.cjs} +6 -6
- package/cjs/__chunks/{VSJCO47J.cjs → JNDKYZLH.cjs} +32 -42
- package/cjs/__chunks/{DMALYPIH.cjs → JOPR6ORJ.cjs} +5 -5
- package/cjs/__chunks/{P5P3QJFD.cjs → JT66FSLM.cjs} +31 -44
- package/cjs/__chunks/KEFNKTQ2.cjs +32 -0
- package/cjs/__chunks/{F5HJABGP.cjs → KNWPYX4B.cjs} +6 -6
- package/cjs/__chunks/{3DWHCD7R.cjs → KOJWH5YC.cjs} +5 -5
- package/cjs/__chunks/{ZJ4PQNSB.cjs → L2VXOCPG.cjs} +14 -15
- package/cjs/__chunks/{M25FX4MN.cjs → LMD72BFO.cjs} +13 -13
- package/cjs/__chunks/{AO6DVG67.cjs → LO2HIMYX.cjs} +5 -5
- package/cjs/__chunks/{SGYYAWSU.cjs → M2NSCXQI.cjs} +9 -9
- package/cjs/__chunks/{MARNDFY5.cjs → MANSJYLV.cjs} +7 -7
- package/cjs/__chunks/{VAZ6XRF7.cjs → MHPAHLXS.cjs} +38 -52
- package/cjs/__chunks/{UIOFNKIW.cjs → MQ7GAESK.cjs} +5 -5
- package/cjs/__chunks/{7YLCVXZ7.cjs → MTP72GGY.cjs} +5 -10
- package/cjs/__chunks/{JKERATCG.cjs → MUQXBDUR.cjs} +16 -19
- package/cjs/__chunks/{TCINLTVN.cjs → MVSF6EJW.cjs} +13 -13
- package/cjs/__chunks/{GPVLSCXH.cjs → MYHF5JTH.cjs} +6 -6
- package/cjs/__chunks/N2SIFK7A.cjs +49 -0
- package/cjs/__chunks/{MU7F4QWJ.cjs → NMKMMUOR.cjs} +9 -8
- package/cjs/__chunks/{WT4MTRKY.cjs → NRLE3XE7.cjs} +2 -2
- package/cjs/__chunks/{QH6UXMHK.cjs → O7XO5LCL.cjs} +9 -9
- package/cjs/__chunks/{3MSB6GZA.cjs → ONFSQI2X.cjs} +7 -7
- package/cjs/__chunks/{ZS7SGIQS.cjs → OR7WTDA4.cjs} +11 -13
- package/cjs/__chunks/OU2GPBZW.cjs +31 -0
- package/cjs/__chunks/{QFX6UW2F.cjs → OUWHJLQH.cjs} +20 -27
- package/cjs/__chunks/{CXZMA435.cjs → OVBWMHNO.cjs} +16 -24
- package/cjs/__chunks/OWLCE773.cjs +40 -0
- package/cjs/__chunks/{BX2QEIBH.cjs → OZFFK5VS.cjs} +19 -22
- package/cjs/__chunks/{3YTZN7MF.cjs → PB5FNOHD.cjs} +4 -4
- package/cjs/__chunks/{Q6XCQ4JY.cjs → PI2PMECI.cjs} +72 -96
- package/cjs/__chunks/{IATQHLZT.cjs → PULY27HQ.cjs} +20 -30
- package/cjs/__chunks/{3Z76SMA3.cjs → PYKELHKQ.cjs} +16 -19
- package/cjs/__chunks/{V5NIBTGV.cjs → QA3YJPTA.cjs} +16 -16
- package/cjs/__chunks/{EO4IBCRN.cjs → QC5YVEX2.cjs} +6 -6
- package/cjs/__chunks/{3E3M36ON.cjs → QEHZIMM5.cjs} +14 -14
- package/cjs/__chunks/{UN3ROHNJ.cjs → QW2GOYBN.cjs} +5 -5
- package/cjs/__chunks/{5ME3SHTY.cjs → R27VYD4T.cjs} +37 -47
- package/cjs/__chunks/R6D5K5O4.cjs +40 -0
- package/cjs/__chunks/{XLLKYSFT.cjs → RCX6DZ2C.cjs} +8 -8
- package/cjs/__chunks/{LTLFGTV3.cjs → RVQKZ37U.cjs} +6 -6
- package/cjs/__chunks/{WH5BXRP3.cjs → SRE6U4QD.cjs} +25 -28
- package/cjs/__chunks/{ATZZKP7Z.cjs → STTOVFIA.cjs} +5 -5
- package/cjs/__chunks/{MEFT7IVK.cjs → SY7NHEDF.cjs} +38 -48
- package/cjs/__chunks/{4VT6OX2R.cjs → TGMTQMEK.cjs} +29 -37
- package/cjs/__chunks/{RIVRWNBE.cjs → THYF3LTR.cjs} +5 -5
- package/cjs/__chunks/{QNWDQG73.cjs → TILYAERE.cjs} +7 -7
- package/cjs/__chunks/{SNQE2ALB.cjs → TLYXF4HI.cjs} +36 -55
- package/cjs/__chunks/{JMOZZ5O3.cjs → TPGAU7YB.cjs} +86 -146
- package/cjs/__chunks/{LPRXHRSA.cjs → TRKXX6UW.cjs} +5 -5
- package/cjs/__chunks/{Z5PM2CEM.cjs → TTDPJ5B7.cjs} +11 -11
- package/cjs/__chunks/{POFUETU3.cjs → VYADJOAV.cjs} +39 -49
- package/cjs/__chunks/{4LX2WIBK.cjs → VYTT2R6P.cjs} +36 -61
- package/cjs/__chunks/{XCBGJNG4.cjs → VZGX2ILJ.cjs} +10 -10
- package/cjs/__chunks/{ZE2OFDPH.cjs → W3DXC3KC.cjs} +8 -8
- package/cjs/__chunks/{UO5OI2QG.cjs → WBUSMWPW.cjs} +39 -57
- package/cjs/__chunks/{735RBE72.cjs → WGNARUKE.cjs} +14 -14
- package/cjs/__chunks/{QO5ZGQQP.cjs → WSL22WT6.cjs} +32 -35
- package/cjs/__chunks/{WVKI3334.cjs → X7JQ6QHE.cjs} +9 -9
- package/cjs/__chunks/{DZCUHWKI.cjs → XV4AOZNF.cjs} +31 -44
- package/cjs/__chunks/{WZ66574O.cjs → Y2LRH7ZH.cjs} +12 -12
- package/cjs/__chunks/Y56UQNH6.cjs +31 -0
- package/cjs/__chunks/{X6IUU3GY.cjs → YRGMTDX5.cjs} +16 -17
- package/cjs/__chunks/{3ND7K6FF.cjs → YS72JDSE.cjs} +5 -8
- package/cjs/__chunks/{LQZPO2AV.cjs → YSGZGMEL.cjs} +4 -4
- package/cjs/button/button.cjs +8 -8
- package/cjs/checkbox/checkbox-check.cjs +6 -6
- package/cjs/checkbox/checkbox-checked-context.cjs +1 -1
- package/cjs/checkbox/checkbox-context.cjs +6 -6
- package/cjs/checkbox/checkbox-provider.cjs +9 -9
- package/cjs/checkbox/checkbox-provider.d.cts +1 -1
- package/cjs/checkbox/checkbox-provider.d.ts +1 -1
- package/cjs/checkbox/checkbox-store.cjs +6 -6
- package/cjs/checkbox/checkbox.cjs +10 -10
- package/cjs/collection/collection-context.cjs +6 -6
- package/cjs/collection/collection-item.cjs +7 -7
- package/cjs/collection/collection-item.d.cts +4 -2
- package/cjs/collection/collection-item.d.ts +4 -2
- package/cjs/collection/collection-provider.cjs +9 -9
- package/cjs/collection/collection-provider.d.cts +1 -1
- package/cjs/collection/collection-provider.d.ts +1 -1
- package/cjs/collection/collection-renderer.cjs +8 -8
- package/cjs/collection/collection-renderer.d.cts +14 -16
- package/cjs/collection/collection-renderer.d.ts +14 -16
- package/cjs/collection/collection-store.cjs +6 -6
- package/cjs/collection/collection.cjs +12 -12
- package/cjs/combobox/combobox-cancel.cjs +26 -29
- package/cjs/combobox/combobox-cancel.d.cts +1 -1
- package/cjs/combobox/combobox-cancel.d.ts +1 -1
- package/cjs/combobox/combobox-context.cjs +11 -11
- package/cjs/combobox/combobox-disclosure.cjs +28 -30
- package/cjs/combobox/combobox-group-label.cjs +10 -10
- package/cjs/combobox/combobox-group.cjs +19 -19
- package/cjs/combobox/combobox-item-check.cjs +17 -17
- package/cjs/combobox/combobox-item-value.cjs +18 -18
- package/cjs/combobox/combobox-item.cjs +49 -59
- package/cjs/combobox/combobox-item.d.cts +1 -1
- package/cjs/combobox/combobox-item.d.ts +1 -1
- package/cjs/combobox/combobox-label.cjs +17 -17
- package/cjs/combobox/combobox-list.cjs +14 -14
- package/cjs/combobox/combobox-popover.cjs +54 -62
- package/cjs/combobox/combobox-provider.cjs +20 -20
- package/cjs/combobox/combobox-provider.d.cts +1 -1
- package/cjs/combobox/combobox-provider.d.ts +1 -1
- package/cjs/combobox/combobox-row.cjs +18 -18
- package/cjs/combobox/combobox-separator.cjs +18 -18
- package/cjs/combobox/combobox-store.cjs +15 -15
- package/cjs/combobox/combobox-value.cjs +11 -11
- package/cjs/combobox/combobox.cjs +110 -160
- package/cjs/combobox/combobox.d.cts +3 -2
- package/cjs/combobox/combobox.d.ts +3 -2
- package/cjs/command/command.cjs +7 -7
- package/cjs/composite/composite-container.cjs +10 -10
- package/cjs/composite/composite-context.cjs +7 -7
- package/cjs/composite/composite-group-label.cjs +7 -7
- package/cjs/composite/composite-group.cjs +7 -7
- package/cjs/composite/composite-hover.cjs +8 -8
- package/cjs/composite/composite-hover.d.cts +5 -3
- package/cjs/composite/composite-hover.d.ts +5 -3
- package/cjs/composite/composite-input.cjs +18 -21
- package/cjs/composite/composite-item.cjs +13 -13
- package/cjs/composite/composite-item.d.cts +1 -1
- package/cjs/composite/composite-item.d.ts +1 -1
- package/cjs/composite/composite-overflow-disclosure.cjs +35 -37
- package/cjs/composite/composite-overflow-store.cjs +9 -9
- package/cjs/composite/composite-overflow.cjs +41 -42
- package/cjs/composite/composite-provider.cjs +11 -11
- package/cjs/composite/composite-provider.d.cts +1 -1
- package/cjs/composite/composite-provider.d.ts +1 -1
- package/cjs/composite/composite-renderer.cjs +10 -10
- package/cjs/composite/composite-renderer.d.cts +13 -15
- package/cjs/composite/composite-renderer.d.ts +13 -15
- package/cjs/composite/composite-row.cjs +8 -8
- package/cjs/composite/composite-separator.cjs +9 -9
- package/cjs/composite/composite-store.cjs +7 -7
- package/cjs/composite/composite-typeahead.cjs +9 -9
- package/cjs/composite/composite.cjs +10 -10
- package/cjs/composite/composite.d.cts +1 -1
- package/cjs/composite/composite.d.ts +1 -1
- package/cjs/composite/utils.cjs +3 -3
- package/cjs/dialog/dialog-backdrop.cjs +16 -16
- package/cjs/dialog/dialog-context.cjs +7 -7
- package/cjs/dialog/dialog-description.cjs +8 -8
- package/cjs/dialog/dialog-disclosure.cjs +12 -12
- package/cjs/dialog/dialog-dismiss.cjs +11 -11
- package/cjs/dialog/dialog-heading.cjs +9 -9
- package/cjs/dialog/dialog-provider.cjs +11 -11
- package/cjs/dialog/dialog-store.cjs +7 -7
- package/cjs/dialog/dialog.cjs +30 -30
- package/cjs/dialog/dialog.d.cts +2 -2
- package/cjs/dialog/dialog.d.ts +2 -2
- package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +6 -6
- package/cjs/dialog/utils/disable-tree.cjs +7 -7
- package/cjs/dialog/utils/is-backdrop.cjs +3 -3
- package/cjs/dialog/utils/mark-tree-outside.cjs +6 -6
- package/cjs/dialog/utils/orchestrate.cjs +3 -3
- package/cjs/dialog/utils/prepend-hidden-dismiss.cjs +1 -1
- package/cjs/dialog/utils/supports-inert.cjs +1 -1
- package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +12 -12
- package/cjs/dialog/utils/use-nested-dialogs.cjs +5 -5
- package/cjs/dialog/utils/use-prevent-body-scroll.cjs +7 -7
- package/cjs/dialog/utils/use-previous-mouse-down-ref.cjs +3 -3
- package/cjs/dialog/utils/use-root-dialog.cjs +5 -5
- package/cjs/dialog/utils/walk-tree-outside.cjs +4 -4
- package/cjs/disclosure/disclosure-content.cjs +9 -9
- package/cjs/disclosure/disclosure-context.cjs +6 -6
- package/cjs/disclosure/disclosure-provider.cjs +9 -9
- package/cjs/disclosure/disclosure-store.cjs +6 -6
- package/cjs/disclosure/disclosure.cjs +10 -10
- package/cjs/disclosure/disclosure.d.cts +1 -1
- package/cjs/disclosure/disclosure.d.ts +1 -1
- package/cjs/focus-trap/focus-trap-region.cjs +17 -19
- package/cjs/focus-trap/focus-trap.cjs +7 -7
- package/cjs/focusable/focusable-container.cjs +6 -6
- package/cjs/focusable/focusable-context.cjs +1 -1
- package/cjs/focusable/focusable.cjs +6 -6
- package/cjs/focusable/focusable.d.cts +3 -3
- package/cjs/focusable/focusable.d.ts +3 -3
- package/cjs/form/form-checkbox.cjs +23 -23
- package/cjs/form/form-context.cjs +7 -7
- package/cjs/form/form-control.cjs +9 -9
- package/cjs/form/form-control.d.cts +1 -1
- package/cjs/form/form-control.d.ts +1 -1
- package/cjs/form/form-description.cjs +19 -19
- package/cjs/form/form-description.d.cts +1 -1
- package/cjs/form/form-description.d.ts +1 -1
- package/cjs/form/form-error.cjs +21 -23
- package/cjs/form/form-error.d.cts +1 -1
- package/cjs/form/form-error.d.ts +1 -1
- package/cjs/form/form-field.cjs +13 -13
- package/cjs/form/form-group-label.cjs +10 -10
- package/cjs/form/form-group.cjs +7 -7
- package/cjs/form/form-input.cjs +20 -21
- package/cjs/form/form-label.cjs +27 -31
- package/cjs/form/form-label.d.cts +1 -1
- package/cjs/form/form-label.d.ts +1 -1
- package/cjs/form/form-provider.cjs +11 -11
- package/cjs/form/form-provider.d.cts +1 -1
- package/cjs/form/form-provider.d.ts +1 -1
- package/cjs/form/form-push.cjs +28 -35
- package/cjs/form/form-push.d.cts +1 -1
- package/cjs/form/form-push.d.ts +1 -1
- package/cjs/form/form-radio-group.cjs +12 -12
- package/cjs/form/form-radio.cjs +27 -28
- package/cjs/form/form-remove.cjs +23 -27
- package/cjs/form/form-remove.d.cts +1 -1
- package/cjs/form/form-remove.d.ts +1 -1
- package/cjs/form/form-reset.cjs +16 -16
- package/cjs/form/form-store.cjs +7 -7
- package/cjs/form/form-submit.cjs +16 -16
- package/cjs/form/form.cjs +36 -50
- package/cjs/group/group-label-context.cjs +1 -1
- package/cjs/group/group-label.cjs +6 -6
- package/cjs/group/group.cjs +6 -6
- package/cjs/heading/heading-context.cjs +1 -1
- package/cjs/heading/heading-level.cjs +1 -1
- package/cjs/heading/heading.cjs +6 -6
- package/cjs/hovercard/hovercard-anchor.cjs +11 -11
- package/cjs/hovercard/hovercard-anchor.d.cts +1 -1
- package/cjs/hovercard/hovercard-anchor.d.ts +1 -1
- package/cjs/hovercard/hovercard-arrow.cjs +15 -15
- package/cjs/hovercard/hovercard-context.cjs +9 -9
- package/cjs/hovercard/hovercard-description.cjs +10 -10
- package/cjs/hovercard/hovercard-disclosure.cjs +38 -48
- package/cjs/hovercard/hovercard-dismiss.cjs +15 -15
- package/cjs/hovercard/hovercard-heading.cjs +11 -11
- package/cjs/hovercard/hovercard-provider.cjs +15 -15
- package/cjs/hovercard/hovercard-store.cjs +9 -9
- package/cjs/hovercard/hovercard.cjs +35 -35
- package/cjs/hovercard/hovercard.d.cts +1 -1
- package/cjs/hovercard/hovercard.d.ts +1 -1
- package/cjs/hovercard/utils/debug-polygon.cjs +1 -1
- package/cjs/hovercard/utils/polygon.cjs +3 -3
- package/cjs/index.cjs +1 -1
- package/cjs/menu/menu-arrow.cjs +19 -19
- package/cjs/menu/menu-bar-provider.cjs +13 -13
- package/cjs/menu/menu-bar-store.cjs +9 -9
- package/cjs/menu/menu-bar.cjs +19 -19
- package/cjs/menu/menu-button-arrow.cjs +19 -19
- package/cjs/menu/menu-button.cjs +61 -78
- package/cjs/menu/menu-context.cjs +13 -13
- package/cjs/menu/menu-description.cjs +13 -13
- package/cjs/menu/menu-dismiss.cjs +26 -26
- package/cjs/menu/menu-group-label.cjs +10 -10
- package/cjs/menu/menu-group.cjs +10 -10
- package/cjs/menu/menu-heading.cjs +14 -14
- package/cjs/menu/menu-item-check.cjs +19 -19
- package/cjs/menu/menu-item-checkbox.cjs +42 -49
- package/cjs/menu/menu-item-radio.cjs +39 -43
- package/cjs/menu/menu-item.cjs +21 -21
- package/cjs/menu/menu-item.d.cts +1 -1
- package/cjs/menu/menu-item.d.ts +1 -1
- package/cjs/menu/menu-list.cjs +20 -20
- package/cjs/menu/menu-provider.cjs +23 -23
- package/cjs/menu/menu-provider.d.cts +1 -1
- package/cjs/menu/menu-provider.d.ts +1 -1
- package/cjs/menu/menu-separator.cjs +20 -20
- package/cjs/menu/menu-store.cjs +22 -22
- package/cjs/menu/menu.cjs +77 -95
- package/cjs/menubar/menubar-context.cjs +8 -8
- package/cjs/menubar/menubar-provider.cjs +13 -13
- package/cjs/menubar/menubar-store.cjs +8 -8
- package/cjs/menubar/menubar.cjs +16 -16
- package/cjs/popover/popover-anchor.cjs +9 -9
- package/cjs/popover/popover-arrow-path.cjs +1 -1
- package/cjs/popover/popover-arrow.cjs +9 -9
- package/cjs/popover/popover-context.cjs +8 -8
- package/cjs/popover/popover-description.cjs +9 -9
- package/cjs/popover/popover-disclosure-arrow.cjs +9 -9
- package/cjs/popover/popover-disclosure.cjs +15 -15
- package/cjs/popover/popover-dismiss.cjs +13 -13
- package/cjs/popover/popover-heading.cjs +10 -10
- package/cjs/popover/popover-provider.cjs +13 -13
- package/cjs/popover/popover-store.cjs +8 -8
- package/cjs/popover/popover.cjs +32 -32
- package/cjs/popover/popover.d.cts +3 -1
- package/cjs/popover/popover.d.ts +3 -1
- package/cjs/portal/portal-context.cjs +1 -1
- package/cjs/portal/portal.cjs +8 -8
- package/cjs/radio/radio-context.cjs +8 -8
- package/cjs/radio/radio-group.cjs +19 -19
- package/cjs/radio/radio-provider.cjs +13 -13
- package/cjs/radio/radio-store.cjs +8 -8
- package/cjs/radio/radio.cjs +15 -15
- package/cjs/radio/radio.d.cts +1 -1
- package/cjs/radio/radio.d.ts +1 -1
- package/cjs/role/role.cjs +6 -6
- package/cjs/select/select-arrow.cjs +13 -13
- package/cjs/select/select-context.cjs +11 -11
- package/cjs/select/select-dismiss.cjs +23 -23
- package/cjs/select/select-group-label.cjs +10 -10
- package/cjs/select/select-group.cjs +10 -10
- package/cjs/select/select-heading.cjs +21 -21
- package/cjs/select/select-item-check.cjs +17 -17
- package/cjs/select/select-item.cjs +45 -55
- package/cjs/select/select-item.d.cts +1 -1
- package/cjs/select/select-item.d.ts +1 -1
- package/cjs/select/select-label.cjs +22 -23
- package/cjs/select/select-list.cjs +18 -18
- package/cjs/select/select-list.d.cts +1 -1
- package/cjs/select/select-list.d.ts +1 -1
- package/cjs/select/select-popover.cjs +47 -47
- package/cjs/select/select-provider.cjs +20 -20
- package/cjs/select/select-provider.d.cts +1 -1
- package/cjs/select/select-provider.d.ts +1 -1
- package/cjs/select/select-renderer.cjs +29 -36
- package/cjs/select/select-row.cjs +18 -18
- package/cjs/select/select-separator.cjs +18 -18
- package/cjs/select/select-store.cjs +18 -18
- package/cjs/select/select-value.cjs +13 -13
- package/cjs/select/select-value.d.cts +1 -1
- package/cjs/select/select-value.d.ts +1 -1
- package/cjs/select/select.cjs +48 -58
- package/cjs/select/select.d.cts +1 -1
- package/cjs/select/select.d.ts +1 -1
- package/cjs/separator/separator.cjs +6 -6
- package/cjs/tab/tab-context.cjs +8 -8
- package/cjs/tab/tab-list.cjs +20 -20
- package/cjs/tab/tab-panel.cjs +37 -42
- package/cjs/tab/tab-panel.d.cts +3 -1
- package/cjs/tab/tab-panel.d.ts +3 -1
- package/cjs/tab/tab-provider.cjs +18 -18
- package/cjs/tab/tab-store.cjs +16 -16
- package/cjs/tab/tab-store.d.cts +5 -3
- package/cjs/tab/tab-store.d.ts +5 -3
- package/cjs/tab/tab.cjs +47 -53
- package/cjs/tag/tag-context.cjs +8 -8
- package/cjs/tag/tag-input.cjs +40 -52
- package/cjs/tag/tag-input.d.cts +1 -1
- package/cjs/tag/tag-input.d.ts +1 -1
- package/cjs/tag/tag-list-label.cjs +15 -15
- package/cjs/tag/tag-list.cjs +28 -31
- package/cjs/tag/tag-provider.cjs +13 -13
- package/cjs/tag/tag-remove.cjs +27 -31
- package/cjs/tag/tag-remove.d.cts +1 -1
- package/cjs/tag/tag-remove.d.ts +1 -1
- package/cjs/tag/tag-store.cjs +8 -8
- package/cjs/tag/tag-value.cjs +8 -8
- package/cjs/tag/tag-values.cjs +8 -8
- package/cjs/tag/tag.cjs +31 -32
- package/cjs/tag/tag.d.cts +1 -1
- package/cjs/tag/tag.d.ts +1 -1
- package/cjs/tag/utils.cjs +3 -3
- package/cjs/toolbar/toolbar-container.cjs +23 -23
- package/cjs/toolbar/toolbar-context.cjs +8 -8
- package/cjs/toolbar/toolbar-input.cjs +21 -21
- package/cjs/toolbar/toolbar-item.cjs +15 -15
- package/cjs/toolbar/toolbar-provider.cjs +13 -13
- package/cjs/toolbar/toolbar-separator.cjs +15 -15
- package/cjs/toolbar/toolbar-store.cjs +8 -8
- package/cjs/toolbar/toolbar.cjs +24 -24
- package/cjs/tooltip/tooltip-anchor.cjs +31 -40
- package/cjs/tooltip/tooltip-arrow.cjs +16 -16
- package/cjs/tooltip/tooltip-context.cjs +10 -10
- package/cjs/tooltip/tooltip-provider.cjs +17 -17
- package/cjs/tooltip/tooltip-store.cjs +10 -10
- package/cjs/tooltip/tooltip.cjs +54 -60
- package/cjs/utils/hooks.cjs +4 -4
- package/cjs/utils/hooks.d.cts +1 -1
- package/cjs/utils/hooks.d.ts +1 -1
- package/cjs/utils/misc.cjs +3 -3
- package/cjs/utils/store.cjs +5 -5
- package/cjs/utils/system.cjs +5 -5
- package/cjs/utils/system.d.cts +3 -3
- package/cjs/utils/system.d.ts +3 -3
- package/cjs/utils/types.d.cts +2 -4
- package/cjs/utils/types.d.ts +2 -4
- package/cjs/visually-hidden/visually-hidden.cjs +6 -6
- package/esm/__chunks/{BEM72Z3B.js → 2JP3PD4E.js} +4 -4
- package/esm/__chunks/{YNKDLCEK.js → 2PGBN2Y4.js} +11 -14
- package/esm/__chunks/{ANSLM3DW.js → 2PNU5FDT.js} +4 -4
- package/esm/__chunks/{OFHTR2QK.js → 2YDG6Q4P.js} +3 -3
- package/esm/__chunks/{UUT76IPH.js → 32IPIQBR.js} +2 -2
- package/esm/__chunks/{TR2S63FJ.js → 3JMGO6V3.js} +5 -5
- package/esm/__chunks/{T4K2JSQC.js → 3RXEUV3E.js} +4 -4
- package/esm/__chunks/{ELHILQJA.js → 42INOJH3.js} +4 -4
- package/esm/__chunks/{V3E5SLHB.js → 4CA6HQZC.js} +11 -16
- package/esm/__chunks/{J7DZFKDD.js → 4DJ5UIED.js} +20 -34
- package/esm/__chunks/{FQEEOOAZ.js → 4FCYZKRB.js} +11 -16
- package/esm/__chunks/{B2GB5ZIJ.js → 4KVV4LMJ.js} +1 -1
- package/esm/__chunks/{FZPKOE72.js → 4ZTL4ESZ.js} +2 -2
- package/esm/__chunks/{JZOR7AGF.js → 543BQAW5.js} +5 -5
- package/esm/__chunks/{AH6A6OH6.js → 56RR3YNE.js} +3 -3
- package/esm/__chunks/{A3SWRNEB.js → 5E5BPAV7.js} +9 -12
- package/esm/__chunks/{RKAHF5HE.js → 5NAURCQI.js} +6 -7
- package/esm/__chunks/{3IEDWLST.js → 5VQZOHHZ.js} +5 -10
- package/esm/__chunks/{MKDDWKFK.js → 63XF7ACK.js} +5 -10
- package/esm/__chunks/{VZRFHU6Z.js → 6524RV3R.js} +11 -14
- package/esm/__chunks/{JY2XFHRA.js → 673TSSFB.js} +17 -27
- package/esm/__chunks/{ARX2VAX4.js → 6JLOZRF5.js} +3 -3
- package/esm/__chunks/{LTJ75W3G.js → 6K7HZETS.js} +3 -3
- package/esm/__chunks/{3OQPDTG6.js → 7ATJTJIY.js} +4 -4
- package/esm/__chunks/{GOSM5J6C.js → 7DP25ROA.js} +7 -8
- package/esm/__chunks/{S6O3GDT5.js → 7RXYRUSH.js} +4 -4
- package/esm/__chunks/{57DQFKOT.js → 7UYST25M.js} +17 -29
- package/esm/__chunks/{44774DCU.js → AJE6WNNP.js} +47 -71
- package/esm/__chunks/{PPFXZOWJ.js → AMQNTLCG.js} +9 -12
- package/esm/__chunks/{6M3KVYNV.js → AOK4FW4L.js} +63 -116
- package/esm/__chunks/{5QL6BP6J.js → AOUGVQZ3.js} +15 -23
- package/esm/__chunks/{FFXEMTZO.js → B3R2D232.js} +3 -3
- package/esm/__chunks/{EDI7THRR.js → BEBUB5QN.js} +2 -2
- package/esm/__chunks/{MQ4NU7SL.js → C3D7NSUP.js} +5 -5
- package/esm/__chunks/{CGG6F755.js → DRL2GNLJ.js} +56 -100
- package/esm/__chunks/{56DLLBUB.js → EAHBL67B.js} +2 -2
- package/esm/__chunks/{IFYK7NB2.js → EMQCY6SH.js} +2 -2
- package/esm/__chunks/{JS4W7WDG.js → EQMNTDLB.js} +1 -1
- package/esm/__chunks/{4ZRXV5C7.js → ESSM74HH.js} +7 -6
- package/esm/__chunks/{NEXWONOD.js → EWPDRBSA.js} +3 -3
- package/esm/__chunks/{3ON5O2LG.js → FLYVORTY.js} +2 -2
- package/esm/__chunks/{S67MTDSB.js → FQ77EHUR.js} +13 -23
- package/esm/__chunks/{O4PHI74Y.js → FQDOBJ6H.js} +7 -12
- package/esm/__chunks/{2FJLP3YP.js → G2E65A35.js} +25 -44
- package/esm/__chunks/{V4QWNWTM.js → HZ7KGUEF.js} +14 -22
- package/esm/__chunks/{MEA5A3JL.js → IQY2XH5H.js} +26 -44
- package/esm/__chunks/{QNUG7VY6.js → ITUYV2MN.js} +69 -129
- package/esm/__chunks/{FFFEN6V6.js → IZO5ZR3O.js} +2 -2
- package/esm/__chunks/{WJUQFF4Z.js → J4NXMVZC.js} +3 -3
- package/esm/__chunks/{53CQGCDZ.js → K2ZF5NU7.js} +5 -8
- package/esm/__chunks/{XZTI53XS.js → KHRZRUNB.js} +8 -8
- package/esm/__chunks/{4YEPPC7Q.js → KXBJFI2T.js} +2 -2
- package/esm/__chunks/{XRQ5JUHN.js → KYRH6BDE.js} +2 -2
- package/esm/__chunks/{VN7YWKW2.js → LEWNCT3G.js} +21 -35
- package/esm/__chunks/{6BRYOMMU.js → LNYYGYYJ.js} +30 -55
- package/esm/__chunks/{THGRQCVD.js → M6ZUVZPG.js} +2 -2
- package/esm/__chunks/{GUZLDCCK.js → MHEVUPUR.js} +2 -2
- package/esm/__chunks/{J4JPXPLD.js → MTODTZOP.js} +1 -1
- package/esm/__chunks/{HLCXF2N4.js → NEBRAPXZ.js} +1 -1
- package/esm/__chunks/{BGZXKXEX.js → NJLXK3RL.js} +6 -6
- package/esm/__chunks/{BPJQU32H.js → NMSEBYDL.js} +2 -2
- package/esm/__chunks/{3TEK3C5Q.js → NSFBIL2Z.js} +12 -15
- package/esm/__chunks/{ZVTAGWLT.js → NY537TEH.js} +4 -4
- package/esm/__chunks/{HVBTERMS.js → O6W3KMIU.js} +2 -2
- package/esm/__chunks/{YRHO2RDO.js → OE4UNAC4.js} +6 -6
- package/esm/__chunks/{UVJHXCCZ.js → PMFZK2Z4.js} +18 -31
- package/esm/__chunks/{RIR54EMZ.js → PS5YNAJZ.js} +4 -4
- package/esm/__chunks/{I6MSISV2.js → PTCNA5XT.js} +5 -7
- package/esm/__chunks/{FXHYBSGZ.js → PZGHQO5Y.js} +8 -11
- package/esm/__chunks/{XMSX63X6.js → QAL7XKAT.js} +6 -6
- package/esm/__chunks/{DFMIKPTE.js → QJCHJYGN.js} +4 -4
- package/esm/__chunks/{EMAID2BX.js → R7AVCKGB.js} +5 -7
- package/esm/__chunks/{BMYMDDP6.js → RR3QLTVJ.js} +16 -26
- package/esm/__chunks/{ZXQSHM2S.js → RVGP4EDO.js} +2 -2
- package/esm/__chunks/{ZVORRLXS.js → RZ4N7DMG.js} +7 -7
- package/esm/__chunks/{JQTJY6G3.js → SEE6HN7H.js} +4 -4
- package/esm/__chunks/{RNXBTOTE.js → SEHEJ7XZ.js} +26 -36
- package/esm/__chunks/{6O2UZOXH.js → SEMTJMZO.js} +7 -9
- package/esm/__chunks/{KQWO6ME3.js → SK3NAZA3.js} +8 -14
- package/esm/__chunks/{AFRECUMM.js → T3FPB6UI.js} +2 -2
- package/esm/__chunks/{DYZ3QKCZ.js → TCS6QBGM.js} +2 -2
- package/esm/__chunks/{RA2MZPUM.js → TN5Y26CD.js} +2 -2
- package/esm/__chunks/{TZ2KTFYX.js → TROKLLXK.js} +6 -6
- package/esm/__chunks/{D6UA6CB7.js → TUWQEMG5.js} +2 -2
- package/esm/__chunks/{T3LVAWXA.js → TWVD2KYP.js} +2 -2
- package/esm/__chunks/{Z42C5PR3.js → U7BJ2WVN.js} +80 -141
- package/esm/__chunks/{TYZXREX7.js → U7IXCFEO.js} +3 -3
- package/esm/__chunks/{VU7XFALF.js → V3XGKTI7.js} +2 -2
- package/esm/__chunks/{UQGOBOQG.js → VBM67XZT.js} +2 -2
- package/esm/__chunks/{7HC4BNW6.js → VJLRJATI.js} +2 -2
- package/esm/__chunks/{ENOFSN2Q.js → W3QZUDGA.js} +3 -3
- package/esm/__chunks/{4SSKEKWE.js → W77M2ZU5.js} +19 -32
- package/esm/__chunks/{BJY6QMBB.js → WB2VUSZO.js} +3 -3
- package/esm/__chunks/{ABEAJXCY.js → WESQERUS.js} +4 -4
- package/esm/__chunks/{7AG4LN2H.js → WOYVW654.js} +18 -28
- package/esm/__chunks/{FPBGCFAS.js → WX6L4ACS.js} +17 -24
- package/esm/__chunks/{CMELOF3N.js → X3G4E3V2.js} +2 -2
- package/esm/__chunks/{LT754EDD.js → X474FLSI.js} +2 -2
- package/esm/__chunks/{YMV43K4F.js → X7QOZUD3.js} +3 -5
- package/esm/__chunks/{WSECHABH.js → XKTQ6BEH.js} +6 -7
- package/esm/__chunks/{QX2CMDZ5.js → XRRE3XFB.js} +2 -2
- package/esm/__chunks/{3UWYQQ7N.js → XV4RNL66.js} +2 -2
- package/esm/__chunks/{2TL4Z4I4.js → XY6RPG62.js} +2 -2
- package/esm/__chunks/{YRRYMVMY.js → Y54YOYNA.js} +49 -91
- package/esm/__chunks/{USZYRJNN.js → YJGBNUVO.js} +5 -5
- package/esm/__chunks/{JTUV5GA3.js → ZAL25FJZ.js} +16 -23
- package/esm/__chunks/{XFBNACRT.js → ZS47AUQK.js} +2 -2
- package/esm/__chunks/{7APUEP3A.js → ZU4IIYI2.js} +2 -2
- package/esm/button/button.js +7 -7
- package/esm/checkbox/checkbox-check.js +5 -5
- package/esm/checkbox/checkbox-checked-context.js +1 -1
- package/esm/checkbox/checkbox-context.js +5 -5
- package/esm/checkbox/checkbox-provider.d.ts +1 -1
- package/esm/checkbox/checkbox-provider.js +7 -7
- package/esm/checkbox/checkbox-store.js +5 -5
- package/esm/checkbox/checkbox.js +9 -9
- package/esm/collection/collection-context.js +5 -5
- package/esm/collection/collection-item.d.ts +4 -2
- package/esm/collection/collection-item.js +6 -6
- package/esm/collection/collection-provider.d.ts +1 -1
- package/esm/collection/collection-provider.js +7 -7
- package/esm/collection/collection-renderer.d.ts +14 -16
- package/esm/collection/collection-renderer.js +7 -7
- package/esm/collection/collection-store.js +5 -5
- package/esm/collection/collection.js +5 -5
- package/esm/combobox/combobox-cancel.d.ts +1 -1
- package/esm/combobox/combobox-cancel.js +17 -20
- package/esm/combobox/combobox-context.js +10 -10
- package/esm/combobox/combobox-disclosure.js +17 -19
- package/esm/combobox/combobox-group-label.js +6 -6
- package/esm/combobox/combobox-group.js +12 -12
- package/esm/combobox/combobox-item-check.js +11 -11
- package/esm/combobox/combobox-item-value.js +11 -11
- package/esm/combobox/combobox-item.d.ts +1 -1
- package/esm/combobox/combobox-item.js +28 -38
- package/esm/combobox/combobox-label.js +10 -10
- package/esm/combobox/combobox-list.js +13 -13
- package/esm/combobox/combobox-popover.js +44 -52
- package/esm/combobox/combobox-provider.d.ts +1 -1
- package/esm/combobox/combobox-provider.js +18 -18
- package/esm/combobox/combobox-row.js +11 -11
- package/esm/combobox/combobox-separator.js +12 -12
- package/esm/combobox/combobox-store.js +14 -14
- package/esm/combobox/combobox-value.js +10 -10
- package/esm/combobox/combobox.d.ts +3 -2
- package/esm/combobox/combobox.js +82 -132
- package/esm/command/command.js +6 -6
- package/esm/composite/composite-container.js +9 -9
- package/esm/composite/composite-context.js +6 -6
- package/esm/composite/composite-group-label.js +6 -6
- package/esm/composite/composite-group.js +6 -6
- package/esm/composite/composite-hover.d.ts +5 -3
- package/esm/composite/composite-hover.js +7 -7
- package/esm/composite/composite-input.js +9 -12
- package/esm/composite/composite-item.d.ts +1 -1
- package/esm/composite/composite-item.js +12 -12
- package/esm/composite/composite-overflow-disclosure.js +23 -25
- package/esm/composite/composite-overflow-store.js +7 -7
- package/esm/composite/composite-overflow.js +32 -33
- package/esm/composite/composite-provider.d.ts +1 -1
- package/esm/composite/composite-provider.js +9 -9
- package/esm/composite/composite-renderer.d.ts +13 -15
- package/esm/composite/composite-renderer.js +9 -9
- package/esm/composite/composite-row.js +7 -7
- package/esm/composite/composite-separator.js +8 -8
- package/esm/composite/composite-store.js +6 -6
- package/esm/composite/composite-typeahead.js +8 -8
- package/esm/composite/composite.d.ts +1 -1
- package/esm/composite/composite.js +9 -9
- package/esm/composite/utils.js +2 -2
- package/esm/dialog/dialog-backdrop.js +15 -15
- package/esm/dialog/dialog-context.js +6 -6
- package/esm/dialog/dialog-description.js +7 -7
- package/esm/dialog/dialog-disclosure.js +11 -11
- package/esm/dialog/dialog-dismiss.js +10 -10
- package/esm/dialog/dialog-heading.js +8 -8
- package/esm/dialog/dialog-provider.js +9 -9
- package/esm/dialog/dialog-store.js +6 -6
- package/esm/dialog/dialog.d.ts +2 -2
- package/esm/dialog/dialog.js +29 -29
- package/esm/dialog/utils/disable-accessibility-tree-outside.js +5 -5
- package/esm/dialog/utils/disable-tree.js +6 -6
- package/esm/dialog/utils/is-backdrop.js +2 -2
- package/esm/dialog/utils/mark-tree-outside.js +5 -5
- package/esm/dialog/utils/orchestrate.js +2 -2
- package/esm/dialog/utils/prepend-hidden-dismiss.js +1 -1
- package/esm/dialog/utils/supports-inert.js +1 -1
- package/esm/dialog/utils/use-hide-on-interact-outside.js +9 -9
- package/esm/dialog/utils/use-nested-dialogs.js +4 -4
- package/esm/dialog/utils/use-prevent-body-scroll.js +6 -6
- package/esm/dialog/utils/use-previous-mouse-down-ref.js +2 -2
- package/esm/dialog/utils/use-root-dialog.js +4 -4
- package/esm/dialog/utils/walk-tree-outside.js +3 -3
- package/esm/disclosure/disclosure-content.js +8 -8
- package/esm/disclosure/disclosure-context.js +5 -5
- package/esm/disclosure/disclosure-provider.js +7 -7
- package/esm/disclosure/disclosure-store.js +5 -5
- package/esm/disclosure/disclosure.d.ts +1 -1
- package/esm/disclosure/disclosure.js +9 -9
- package/esm/focus-trap/focus-trap-region.js +9 -11
- package/esm/focus-trap/focus-trap.js +6 -6
- package/esm/focusable/focusable-container.js +5 -5
- package/esm/focusable/focusable-context.js +1 -1
- package/esm/focusable/focusable.d.ts +3 -3
- package/esm/focusable/focusable.js +5 -5
- package/esm/form/form-checkbox.js +14 -14
- package/esm/form/form-context.js +6 -6
- package/esm/form/form-control.d.ts +1 -1
- package/esm/form/form-control.js +8 -8
- package/esm/form/form-description.d.ts +1 -1
- package/esm/form/form-description.js +8 -8
- package/esm/form/form-error.d.ts +1 -1
- package/esm/form/form-error.js +10 -12
- package/esm/form/form-field.js +8 -8
- package/esm/form/form-group-label.js +5 -5
- package/esm/form/form-group.js +6 -6
- package/esm/form/form-input.js +10 -11
- package/esm/form/form-label.d.ts +1 -1
- package/esm/form/form-label.js +12 -16
- package/esm/form/form-provider.d.ts +1 -1
- package/esm/form/form-provider.js +9 -9
- package/esm/form/form-push.d.ts +1 -1
- package/esm/form/form-push.js +18 -25
- package/esm/form/form-radio-group.js +6 -6
- package/esm/form/form-radio.js +17 -18
- package/esm/form/form-remove.d.ts +1 -1
- package/esm/form/form-remove.js +15 -19
- package/esm/form/form-reset.js +9 -9
- package/esm/form/form-store.js +6 -6
- package/esm/form/form-submit.js +9 -9
- package/esm/form/form.js +21 -35
- package/esm/group/group-label-context.js +1 -1
- package/esm/group/group-label.js +5 -5
- package/esm/group/group.js +5 -5
- package/esm/heading/heading-context.js +1 -1
- package/esm/heading/heading-level.js +1 -1
- package/esm/heading/heading.js +5 -5
- package/esm/hovercard/hovercard-anchor.d.ts +1 -1
- package/esm/hovercard/hovercard-anchor.js +10 -10
- package/esm/hovercard/hovercard-arrow.js +9 -9
- package/esm/hovercard/hovercard-context.js +8 -8
- package/esm/hovercard/hovercard-description.js +9 -9
- package/esm/hovercard/hovercard-disclosure.js +25 -35
- package/esm/hovercard/hovercard-dismiss.js +14 -14
- package/esm/hovercard/hovercard-heading.js +10 -10
- package/esm/hovercard/hovercard-provider.js +13 -13
- package/esm/hovercard/hovercard-store.js +8 -8
- package/esm/hovercard/hovercard.d.ts +1 -1
- package/esm/hovercard/hovercard.js +34 -34
- package/esm/hovercard/utils/debug-polygon.js +1 -1
- package/esm/hovercard/utils/polygon.js +2 -2
- package/esm/index.js +1 -1
- package/esm/menu/menu-arrow.js +13 -13
- package/esm/menu/menu-bar-provider.js +12 -12
- package/esm/menu/menu-bar-store.js +7 -7
- package/esm/menu/menu-bar.js +15 -15
- package/esm/menu/menu-button-arrow.js +13 -13
- package/esm/menu/menu-button.js +42 -59
- package/esm/menu/menu-context.js +12 -12
- package/esm/menu/menu-description.js +9 -9
- package/esm/menu/menu-dismiss.js +18 -18
- package/esm/menu/menu-group-label.js +6 -6
- package/esm/menu/menu-group.js +6 -6
- package/esm/menu/menu-heading.js +10 -10
- package/esm/menu/menu-item-check.js +13 -13
- package/esm/menu/menu-item-checkbox.js +31 -38
- package/esm/menu/menu-item-radio.js +27 -31
- package/esm/menu/menu-item.d.ts +1 -1
- package/esm/menu/menu-item.js +20 -20
- package/esm/menu/menu-list.js +19 -19
- package/esm/menu/menu-provider.d.ts +1 -1
- package/esm/menu/menu-provider.js +21 -21
- package/esm/menu/menu-separator.js +14 -14
- package/esm/menu/menu-store.js +21 -21
- package/esm/menu/menu.js +61 -79
- package/esm/menubar/menubar-context.js +7 -7
- package/esm/menubar/menubar-provider.js +12 -12
- package/esm/menubar/menubar-store.js +7 -7
- package/esm/menubar/menubar.js +15 -15
- package/esm/popover/popover-anchor.js +8 -8
- package/esm/popover/popover-arrow-path.js +1 -1
- package/esm/popover/popover-arrow.js +8 -8
- package/esm/popover/popover-context.js +7 -7
- package/esm/popover/popover-description.js +8 -8
- package/esm/popover/popover-disclosure-arrow.js +8 -8
- package/esm/popover/popover-disclosure.js +14 -14
- package/esm/popover/popover-dismiss.js +12 -12
- package/esm/popover/popover-heading.js +9 -9
- package/esm/popover/popover-provider.js +11 -11
- package/esm/popover/popover-store.js +7 -7
- package/esm/popover/popover.d.ts +3 -1
- package/esm/popover/popover.js +31 -31
- package/esm/portal/portal-context.js +1 -1
- package/esm/portal/portal.js +7 -7
- package/esm/radio/radio-context.js +7 -7
- package/esm/radio/radio-group.js +10 -10
- package/esm/radio/radio-provider.js +11 -11
- package/esm/radio/radio-store.js +7 -7
- package/esm/radio/radio.d.ts +1 -1
- package/esm/radio/radio.js +14 -14
- package/esm/role/role.js +5 -5
- package/esm/select/select-arrow.js +12 -12
- package/esm/select/select-context.js +10 -10
- package/esm/select/select-dismiss.js +15 -15
- package/esm/select/select-group-label.js +6 -6
- package/esm/select/select-group.js +6 -6
- package/esm/select/select-heading.js +13 -13
- package/esm/select/select-item-check.js +11 -11
- package/esm/select/select-item.d.ts +1 -1
- package/esm/select/select-item.js +28 -38
- package/esm/select/select-label.js +11 -12
- package/esm/select/select-list.d.ts +1 -1
- package/esm/select/select-list.js +17 -17
- package/esm/select/select-popover.js +38 -38
- package/esm/select/select-provider.d.ts +1 -1
- package/esm/select/select-provider.js +18 -18
- package/esm/select/select-renderer.js +21 -28
- package/esm/select/select-row.js +11 -11
- package/esm/select/select-separator.js +12 -12
- package/esm/select/select-store.js +17 -17
- package/esm/select/select-value.d.ts +1 -1
- package/esm/select/select-value.js +11 -11
- package/esm/select/select.d.ts +1 -1
- package/esm/select/select.js +32 -42
- package/esm/separator/separator.js +5 -5
- package/esm/tab/tab-context.js +7 -7
- package/esm/tab/tab-list.js +10 -10
- package/esm/tab/tab-panel.d.ts +3 -1
- package/esm/tab/tab-panel.js +20 -25
- package/esm/tab/tab-provider.js +16 -16
- package/esm/tab/tab-store.d.ts +5 -3
- package/esm/tab/tab-store.js +15 -15
- package/esm/tab/tab.js +35 -41
- package/esm/tag/tag-context.js +7 -7
- package/esm/tag/tag-input.d.ts +1 -1
- package/esm/tag/tag-input.js +25 -37
- package/esm/tag/tag-list-label.js +7 -7
- package/esm/tag/tag-list.js +14 -17
- package/esm/tag/tag-provider.js +11 -11
- package/esm/tag/tag-remove.d.ts +1 -1
- package/esm/tag/tag-remove.js +14 -18
- package/esm/tag/tag-store.js +7 -7
- package/esm/tag/tag-value.js +7 -7
- package/esm/tag/tag-values.js +7 -7
- package/esm/tag/tag.d.ts +1 -1
- package/esm/tag/tag.js +16 -17
- package/esm/tag/utils.js +2 -2
- package/esm/toolbar/toolbar-container.js +15 -15
- package/esm/toolbar/toolbar-context.js +7 -7
- package/esm/toolbar/toolbar-input.js +14 -14
- package/esm/toolbar/toolbar-item.js +14 -14
- package/esm/toolbar/toolbar-provider.js +11 -11
- package/esm/toolbar/toolbar-separator.js +9 -9
- package/esm/toolbar/toolbar-store.js +7 -7
- package/esm/toolbar/toolbar.js +14 -14
- package/esm/tooltip/tooltip-anchor.js +21 -30
- package/esm/tooltip/tooltip-arrow.js +10 -10
- package/esm/tooltip/tooltip-context.js +9 -9
- package/esm/tooltip/tooltip-provider.js +15 -15
- package/esm/tooltip/tooltip-store.js +9 -9
- package/esm/tooltip/tooltip.js +41 -47
- package/esm/utils/hooks.d.ts +1 -1
- package/esm/utils/hooks.js +3 -3
- package/esm/utils/misc.js +2 -2
- package/esm/utils/store.js +4 -4
- package/esm/utils/system.d.ts +3 -3
- package/esm/utils/system.js +4 -4
- package/esm/utils/types.d.ts +2 -4
- package/esm/visually-hidden/visually-hidden.js +5 -5
- package/package.json +5 -5
- package/readme.md +18 -0
- package/.eslintignore +0 -6
- package/cjs/__chunks/3HBRN3JL.cjs +0 -37
- package/cjs/__chunks/4M3KKEPE.cjs +0 -31
- package/cjs/__chunks/MSR4IN5G.cjs +0 -32
- package/cjs/__chunks/O57DX5AL.cjs +0 -37
- package/cjs/__chunks/PQYSRG5D.cjs +0 -40
- package/cjs/__chunks/R6EETZIU.cjs +0 -31
- package/cjs/__chunks/UGD3VGEV.cjs +0 -40
- package/cjs/__chunks/VVHW5XKK.cjs +0 -49
- package/cjs/__chunks/ZZ6LN2UL.cjs +0 -37
- package/cjs/__chunks/{AV6KTKLE.cjs → 3IVNQNIV.cjs} +0 -0
- package/cjs/__chunks/{ISJGSS4S.cjs → MMWRTFBG.cjs} +1 -1
- package/cjs/__chunks/{7TN63K2T.cjs → PNSA4OTL.cjs} +1 -1
- package/esm/__chunks/{4R3V3JGP.js → 3YLGPPWQ.js} +0 -0
- package/esm/__chunks/{L7IM35RU.js → FPWVE2AH.js} +1 -1
- package/esm/__chunks/{OOBDFMJL.js → HLTQOHKZ.js} +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _QC5YVEX2cjs = require('../__chunks/QC5YVEX2.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _OWLCE773cjs = require('../__chunks/OWLCE773.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('../__chunks/
|
|
12
|
-
require('../__chunks/
|
|
13
|
-
require('../__chunks/
|
|
14
|
-
require('../__chunks/
|
|
15
|
-
require('../__chunks/
|
|
16
|
-
require('../__chunks/
|
|
17
|
-
require('../__chunks/
|
|
10
|
+
var _GEDABTB5cjs = require('../__chunks/GEDABTB5.cjs');
|
|
11
|
+
require('../__chunks/BV5PE6PZ.cjs');
|
|
12
|
+
require('../__chunks/BZ34A7Q7.cjs');
|
|
13
|
+
require('../__chunks/55G3CDVQ.cjs');
|
|
14
|
+
require('../__chunks/5XC2EBLV.cjs');
|
|
15
|
+
require('../__chunks/CQ3ILEKO.cjs');
|
|
16
|
+
require('../__chunks/NRLE3XE7.cjs');
|
|
17
|
+
require('../__chunks/EDR5S5CX.cjs');
|
|
18
18
|
require('../__chunks/DYIDES27.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _AWEKOM65cjs = require('../__chunks/AWEKOM65.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -30,16 +30,15 @@ var _R2YVMKBRcjs = require('../__chunks/R2YVMKBR.cjs');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
34
|
-
require('../__chunks/
|
|
33
|
+
var _OUWHJLQHcjs = require('../__chunks/OUWHJLQH.cjs');
|
|
34
|
+
require('../__chunks/54XFMNDS.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _3IVNQNIVcjs = require('../__chunks/3IVNQNIV.cjs');
|
|
40
40
|
|
|
41
41
|
// src/combobox/combobox.tsx
|
|
42
|
-
var _react = require('react');
|
|
43
42
|
|
|
44
43
|
|
|
45
44
|
|
|
@@ -58,18 +57,16 @@ var _focus = require('@ariakit/core/utils/focus');
|
|
|
58
57
|
|
|
59
58
|
var _misc = require('@ariakit/core/utils/misc');
|
|
60
59
|
var _store = require('@ariakit/core/utils/store');
|
|
60
|
+
var _react = require('react');
|
|
61
61
|
var TagName = "input";
|
|
62
62
|
function isFirstItemAutoSelected(items, activeValue, autoSelect) {
|
|
63
|
-
if (!autoSelect)
|
|
64
|
-
return false;
|
|
63
|
+
if (!autoSelect) return false;
|
|
65
64
|
const firstItem = items.find((item) => !item.disabled && item.value);
|
|
66
65
|
return (firstItem == null ? void 0 : firstItem.value) === activeValue;
|
|
67
66
|
}
|
|
68
67
|
function hasCompletionString(value, activeValue) {
|
|
69
|
-
if (!activeValue)
|
|
70
|
-
|
|
71
|
-
if (value == null)
|
|
72
|
-
return false;
|
|
68
|
+
if (!activeValue) return false;
|
|
69
|
+
if (value == null) return false;
|
|
73
70
|
value = _misc.normalizeString.call(void 0, value);
|
|
74
71
|
return activeValue.length > value.length && activeValue.toLowerCase().indexOf(value.toLowerCase()) === 0;
|
|
75
72
|
}
|
|
@@ -82,13 +79,12 @@ function isAriaAutoCompleteValue(value) {
|
|
|
82
79
|
function getDefaultAutoSelectId(items) {
|
|
83
80
|
const item = items.find((item2) => {
|
|
84
81
|
var _a;
|
|
85
|
-
if (item2.disabled)
|
|
86
|
-
return false;
|
|
82
|
+
if (item2.disabled) return false;
|
|
87
83
|
return ((_a = item2.element) == null ? void 0 : _a.getAttribute("role")) !== "tab";
|
|
88
84
|
});
|
|
89
85
|
return item == null ? void 0 : item.id;
|
|
90
86
|
}
|
|
91
|
-
var useCombobox =
|
|
87
|
+
var useCombobox = _AWEKOM65cjs.createHook.call(void 0,
|
|
92
88
|
function useCombobox2(_a) {
|
|
93
89
|
var _b = _a, {
|
|
94
90
|
store,
|
|
@@ -106,7 +102,7 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
106
102
|
setValueOnClick = true,
|
|
107
103
|
moveOnKeyPress = true,
|
|
108
104
|
autoComplete = "list"
|
|
109
|
-
} = _b, props =
|
|
105
|
+
} = _b, props = _3IVNQNIVcjs.__objRest.call(void 0, _b, [
|
|
110
106
|
"store",
|
|
111
107
|
"focusable",
|
|
112
108
|
"autoSelect",
|
|
@@ -123,14 +119,14 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
123
119
|
"moveOnKeyPress",
|
|
124
120
|
"autoComplete"
|
|
125
121
|
]);
|
|
126
|
-
const context =
|
|
122
|
+
const context = _QC5YVEX2cjs.useComboboxProviderContext.call(void 0, );
|
|
127
123
|
store = store || context;
|
|
128
124
|
_misc.invariant.call(void 0,
|
|
129
125
|
store,
|
|
130
126
|
process.env.NODE_ENV !== "production" && "Combobox must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
131
127
|
);
|
|
132
128
|
const ref = _react.useRef.call(void 0, null);
|
|
133
|
-
const [valueUpdated, forceValueUpdate] =
|
|
129
|
+
const [valueUpdated, forceValueUpdate] = _OUWHJLQHcjs.useForceUpdate.call(void 0, );
|
|
134
130
|
const canAutoSelectRef = _react.useRef.call(void 0, false);
|
|
135
131
|
const composingRef = _react.useRef.call(void 0, false);
|
|
136
132
|
const autoSelect = store.useState(
|
|
@@ -138,9 +134,8 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
138
134
|
);
|
|
139
135
|
const inline = autoComplete === "inline" || autoComplete === "both";
|
|
140
136
|
const [canInline, setCanInline] = _react.useState.call(void 0, inline);
|
|
141
|
-
|
|
142
|
-
if (!inline)
|
|
143
|
-
return;
|
|
137
|
+
_OUWHJLQHcjs.useUpdateLayoutEffect.call(void 0, () => {
|
|
138
|
+
if (!inline) return;
|
|
144
139
|
setCanInline(true);
|
|
145
140
|
}, [inline]);
|
|
146
141
|
const storeValue = store.useState("value");
|
|
@@ -152,15 +147,11 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
152
147
|
}, []);
|
|
153
148
|
const inlineActiveValue = store.useState((state) => {
|
|
154
149
|
var _a2;
|
|
155
|
-
if (!inline)
|
|
156
|
-
|
|
157
|
-
if (!canInline)
|
|
158
|
-
return;
|
|
150
|
+
if (!inline) return;
|
|
151
|
+
if (!canInline) return;
|
|
159
152
|
if (state.activeValue && Array.isArray(state.selectedValue)) {
|
|
160
|
-
if (state.selectedValue.includes(state.activeValue))
|
|
161
|
-
|
|
162
|
-
if ((_a2 = prevSelectedValueRef.current) == null ? void 0 : _a2.includes(state.activeValue))
|
|
163
|
-
return;
|
|
153
|
+
if (state.selectedValue.includes(state.activeValue)) return;
|
|
154
|
+
if ((_a2 = prevSelectedValueRef.current) == null ? void 0 : _a2.includes(state.activeValue)) return;
|
|
164
155
|
}
|
|
165
156
|
return state.activeValue;
|
|
166
157
|
});
|
|
@@ -168,10 +159,8 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
168
159
|
const open = store.useState("open");
|
|
169
160
|
const contentElement = store.useState("contentElement");
|
|
170
161
|
const value = _react.useMemo.call(void 0, () => {
|
|
171
|
-
if (!inline)
|
|
172
|
-
|
|
173
|
-
if (!canInline)
|
|
174
|
-
return storeValue;
|
|
162
|
+
if (!inline) return storeValue;
|
|
163
|
+
if (!canInline) return storeValue;
|
|
175
164
|
const firstItemAutoSelected = isFirstItemAutoSelected(
|
|
176
165
|
items,
|
|
177
166
|
inlineActiveValue,
|
|
@@ -188,8 +177,7 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
188
177
|
}, [inline, canInline, items, inlineActiveValue, autoSelect, storeValue]);
|
|
189
178
|
_react.useEffect.call(void 0, () => {
|
|
190
179
|
const element = ref.current;
|
|
191
|
-
if (!element)
|
|
192
|
-
return;
|
|
180
|
+
if (!element) return;
|
|
193
181
|
const onCompositeItemMove = () => setCanInline(true);
|
|
194
182
|
element.addEventListener("combobox-item-move", onCompositeItemMove);
|
|
195
183
|
return () => {
|
|
@@ -197,38 +185,29 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
197
185
|
};
|
|
198
186
|
}, []);
|
|
199
187
|
_react.useEffect.call(void 0, () => {
|
|
200
|
-
if (!inline)
|
|
201
|
-
|
|
202
|
-
if (!
|
|
203
|
-
return;
|
|
204
|
-
if (!inlineActiveValue)
|
|
205
|
-
return;
|
|
188
|
+
if (!inline) return;
|
|
189
|
+
if (!canInline) return;
|
|
190
|
+
if (!inlineActiveValue) return;
|
|
206
191
|
const firstItemAutoSelected = isFirstItemAutoSelected(
|
|
207
192
|
items,
|
|
208
193
|
inlineActiveValue,
|
|
209
194
|
autoSelect
|
|
210
195
|
);
|
|
211
|
-
if (!firstItemAutoSelected)
|
|
212
|
-
|
|
213
|
-
if (!hasCompletionString(storeValue, inlineActiveValue))
|
|
214
|
-
return;
|
|
196
|
+
if (!firstItemAutoSelected) return;
|
|
197
|
+
if (!hasCompletionString(storeValue, inlineActiveValue)) return;
|
|
215
198
|
let cleanup = _misc.noop;
|
|
216
199
|
queueMicrotask(() => {
|
|
217
200
|
const element = ref.current;
|
|
218
|
-
if (!element)
|
|
219
|
-
return;
|
|
201
|
+
if (!element) return;
|
|
220
202
|
const { start: prevStart, end: prevEnd } = _dom.getTextboxSelection.call(void 0, element);
|
|
221
203
|
const nextStart = storeValue.length;
|
|
222
204
|
const nextEnd = inlineActiveValue.length;
|
|
223
205
|
_dom.setSelectionRange.call(void 0, element, nextStart, nextEnd);
|
|
224
206
|
cleanup = () => {
|
|
225
|
-
if (!_focus.hasFocus.call(void 0, element))
|
|
226
|
-
return;
|
|
207
|
+
if (!_focus.hasFocus.call(void 0, element)) return;
|
|
227
208
|
const { start, end } = _dom.getTextboxSelection.call(void 0, element);
|
|
228
|
-
if (start !== nextStart)
|
|
229
|
-
|
|
230
|
-
if (end !== nextEnd)
|
|
231
|
-
return;
|
|
209
|
+
if (start !== nextStart) return;
|
|
210
|
+
if (end !== nextEnd) return;
|
|
232
211
|
_dom.setSelectionRange.call(void 0, element, prevStart, prevEnd);
|
|
233
212
|
};
|
|
234
213
|
});
|
|
@@ -243,65 +222,53 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
243
222
|
storeValue
|
|
244
223
|
]);
|
|
245
224
|
const scrollingElementRef = _react.useRef.call(void 0, null);
|
|
246
|
-
const getAutoSelectIdProp =
|
|
225
|
+
const getAutoSelectIdProp = _OUWHJLQHcjs.useEvent.call(void 0, getAutoSelectId);
|
|
247
226
|
const autoSelectIdRef = _react.useRef.call(void 0, null);
|
|
248
227
|
_react.useEffect.call(void 0, () => {
|
|
249
|
-
if (!open)
|
|
250
|
-
|
|
251
|
-
if (!contentElement)
|
|
252
|
-
return;
|
|
228
|
+
if (!open) return;
|
|
229
|
+
if (!contentElement) return;
|
|
253
230
|
const scrollingElement = _dom.getScrollingElement.call(void 0, contentElement);
|
|
254
|
-
if (!scrollingElement)
|
|
255
|
-
return;
|
|
231
|
+
if (!scrollingElement) return;
|
|
256
232
|
scrollingElementRef.current = scrollingElement;
|
|
257
|
-
const
|
|
233
|
+
const onUserScroll = () => {
|
|
258
234
|
canAutoSelectRef.current = false;
|
|
259
235
|
};
|
|
260
236
|
const onScroll = () => {
|
|
261
|
-
if (!store)
|
|
262
|
-
|
|
263
|
-
if (!canAutoSelectRef.current)
|
|
264
|
-
return;
|
|
237
|
+
if (!store) return;
|
|
238
|
+
if (!canAutoSelectRef.current) return;
|
|
265
239
|
const { activeId } = store.getState();
|
|
266
|
-
if (activeId === null)
|
|
267
|
-
|
|
268
|
-
if (activeId === autoSelectIdRef.current)
|
|
269
|
-
return;
|
|
240
|
+
if (activeId === null) return;
|
|
241
|
+
if (activeId === autoSelectIdRef.current) return;
|
|
270
242
|
canAutoSelectRef.current = false;
|
|
271
243
|
};
|
|
272
244
|
const options = { passive: true, capture: true };
|
|
273
|
-
scrollingElement.addEventListener("wheel",
|
|
245
|
+
scrollingElement.addEventListener("wheel", onUserScroll, options);
|
|
246
|
+
scrollingElement.addEventListener("touchmove", onUserScroll, options);
|
|
274
247
|
scrollingElement.addEventListener("scroll", onScroll, options);
|
|
275
248
|
return () => {
|
|
276
|
-
scrollingElement.removeEventListener("wheel",
|
|
249
|
+
scrollingElement.removeEventListener("wheel", onUserScroll, true);
|
|
250
|
+
scrollingElement.removeEventListener("touchmove", onUserScroll, true);
|
|
277
251
|
scrollingElement.removeEventListener("scroll", onScroll, true);
|
|
278
252
|
};
|
|
279
253
|
}, [open, contentElement, store]);
|
|
280
|
-
|
|
281
|
-
if (!storeValue)
|
|
282
|
-
|
|
283
|
-
if (composingRef.current)
|
|
284
|
-
return;
|
|
254
|
+
_OUWHJLQHcjs.useSafeLayoutEffect.call(void 0, () => {
|
|
255
|
+
if (!storeValue) return;
|
|
256
|
+
if (composingRef.current) return;
|
|
285
257
|
canAutoSelectRef.current = true;
|
|
286
258
|
}, [storeValue]);
|
|
287
|
-
|
|
288
|
-
if (autoSelect !== "always" && open)
|
|
289
|
-
return;
|
|
259
|
+
_OUWHJLQHcjs.useSafeLayoutEffect.call(void 0, () => {
|
|
260
|
+
if (autoSelect !== "always" && open) return;
|
|
290
261
|
canAutoSelectRef.current = open;
|
|
291
262
|
}, [autoSelect, open]);
|
|
292
263
|
const resetValueOnSelect = store.useState("resetValueOnSelect");
|
|
293
|
-
|
|
264
|
+
_OUWHJLQHcjs.useUpdateEffect.call(void 0, () => {
|
|
294
265
|
var _a2, _b2;
|
|
295
266
|
const canAutoSelect = canAutoSelectRef.current;
|
|
296
|
-
if (!store)
|
|
297
|
-
|
|
298
|
-
if (!
|
|
299
|
-
return;
|
|
300
|
-
if ((!autoSelect || !canAutoSelect) && !resetValueOnSelect)
|
|
301
|
-
return;
|
|
267
|
+
if (!store) return;
|
|
268
|
+
if (!open) return;
|
|
269
|
+
if ((!autoSelect || !canAutoSelect) && !resetValueOnSelect) return;
|
|
302
270
|
const { baseElement, contentElement: contentElement2, activeId } = store.getState();
|
|
303
|
-
if (baseElement && !_focus.hasFocus.call(void 0, baseElement))
|
|
304
|
-
return;
|
|
271
|
+
if (baseElement && !_focus.hasFocus.call(void 0, baseElement)) return;
|
|
305
272
|
if (contentElement2 == null ? void 0 : contentElement2.hasAttribute("data-placing")) {
|
|
306
273
|
const observer = new MutationObserver(forceValueUpdate);
|
|
307
274
|
observer.observe(contentElement2, { attributeFilter: ["data-placing"] });
|
|
@@ -330,11 +297,9 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
330
297
|
items
|
|
331
298
|
]);
|
|
332
299
|
_react.useEffect.call(void 0, () => {
|
|
333
|
-
if (!inline)
|
|
334
|
-
return;
|
|
300
|
+
if (!inline) return;
|
|
335
301
|
const combobox = ref.current;
|
|
336
|
-
if (!combobox)
|
|
337
|
-
return;
|
|
302
|
+
if (!combobox) return;
|
|
338
303
|
const elements = [combobox, contentElement].filter(
|
|
339
304
|
(value2) => !!value2
|
|
340
305
|
);
|
|
@@ -343,9 +308,13 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
343
308
|
store == null ? void 0 : store.setValue(value);
|
|
344
309
|
}
|
|
345
310
|
};
|
|
346
|
-
|
|
311
|
+
for (const element of elements) {
|
|
312
|
+
element.addEventListener("focusout", onBlur2);
|
|
313
|
+
}
|
|
347
314
|
return () => {
|
|
348
|
-
|
|
315
|
+
for (const element of elements) {
|
|
316
|
+
element.removeEventListener("focusout", onBlur2);
|
|
317
|
+
}
|
|
349
318
|
};
|
|
350
319
|
}, [inline, contentElement, store, value]);
|
|
351
320
|
const canShow = (event) => {
|
|
@@ -353,18 +322,16 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
353
322
|
return currentTarget.value.length >= showMinLength;
|
|
354
323
|
};
|
|
355
324
|
const onChangeProp = props.onChange;
|
|
356
|
-
const showOnChangeProp =
|
|
357
|
-
const setValueOnChangeProp =
|
|
325
|
+
const showOnChangeProp = _OUWHJLQHcjs.useBooleanEvent.call(void 0, showOnChange != null ? showOnChange : canShow);
|
|
326
|
+
const setValueOnChangeProp = _OUWHJLQHcjs.useBooleanEvent.call(void 0,
|
|
358
327
|
// If the combobox is combined with tags, the value will be set by the tag
|
|
359
328
|
// input component.
|
|
360
329
|
setValueOnChange != null ? setValueOnChange : !store.tag
|
|
361
330
|
);
|
|
362
|
-
const onChange =
|
|
331
|
+
const onChange = _OUWHJLQHcjs.useEvent.call(void 0, (event) => {
|
|
363
332
|
onChangeProp == null ? void 0 : onChangeProp(event);
|
|
364
|
-
if (event.defaultPrevented)
|
|
365
|
-
|
|
366
|
-
if (!store)
|
|
367
|
-
return;
|
|
333
|
+
if (event.defaultPrevented) return;
|
|
334
|
+
if (!store) return;
|
|
368
335
|
const currentTarget = event.currentTarget;
|
|
369
336
|
const { value: value2, selectionStart, selectionEnd } = currentTarget;
|
|
370
337
|
const nativeEvent = event.nativeEvent;
|
|
@@ -398,32 +365,26 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
398
365
|
}
|
|
399
366
|
});
|
|
400
367
|
const onCompositionEndProp = props.onCompositionEnd;
|
|
401
|
-
const onCompositionEnd =
|
|
368
|
+
const onCompositionEnd = _OUWHJLQHcjs.useEvent.call(void 0, (event) => {
|
|
402
369
|
canAutoSelectRef.current = true;
|
|
403
370
|
composingRef.current = false;
|
|
404
371
|
onCompositionEndProp == null ? void 0 : onCompositionEndProp(event);
|
|
405
|
-
if (event.defaultPrevented)
|
|
406
|
-
|
|
407
|
-
if (!autoSelect)
|
|
408
|
-
return;
|
|
372
|
+
if (event.defaultPrevented) return;
|
|
373
|
+
if (!autoSelect) return;
|
|
409
374
|
forceValueUpdate();
|
|
410
375
|
});
|
|
411
376
|
const onMouseDownProp = props.onMouseDown;
|
|
412
|
-
const blurActiveItemOnClickProp =
|
|
377
|
+
const blurActiveItemOnClickProp = _OUWHJLQHcjs.useBooleanEvent.call(void 0,
|
|
413
378
|
blurActiveItemOnClick != null ? blurActiveItemOnClick : () => !!(store == null ? void 0 : store.getState().includesBaseElement)
|
|
414
379
|
);
|
|
415
|
-
const setValueOnClickProp =
|
|
416
|
-
const showOnClickProp =
|
|
417
|
-
const onMouseDown =
|
|
380
|
+
const setValueOnClickProp = _OUWHJLQHcjs.useBooleanEvent.call(void 0, setValueOnClick);
|
|
381
|
+
const showOnClickProp = _OUWHJLQHcjs.useBooleanEvent.call(void 0, showOnClick != null ? showOnClick : canShow);
|
|
382
|
+
const onMouseDown = _OUWHJLQHcjs.useEvent.call(void 0, (event) => {
|
|
418
383
|
onMouseDownProp == null ? void 0 : onMouseDownProp(event);
|
|
419
|
-
if (event.defaultPrevented)
|
|
420
|
-
|
|
421
|
-
if (event.
|
|
422
|
-
|
|
423
|
-
if (event.ctrlKey)
|
|
424
|
-
return;
|
|
425
|
-
if (!store)
|
|
426
|
-
return;
|
|
384
|
+
if (event.defaultPrevented) return;
|
|
385
|
+
if (event.button) return;
|
|
386
|
+
if (event.ctrlKey) return;
|
|
387
|
+
if (!store) return;
|
|
427
388
|
if (blurActiveItemOnClickProp(event)) {
|
|
428
389
|
store.setActiveId(null);
|
|
429
390
|
}
|
|
@@ -435,29 +396,21 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
435
396
|
}
|
|
436
397
|
});
|
|
437
398
|
const onKeyDownProp = props.onKeyDown;
|
|
438
|
-
const showOnKeyPressProp =
|
|
439
|
-
const onKeyDown =
|
|
399
|
+
const showOnKeyPressProp = _OUWHJLQHcjs.useBooleanEvent.call(void 0, showOnKeyPress != null ? showOnKeyPress : canShow);
|
|
400
|
+
const onKeyDown = _OUWHJLQHcjs.useEvent.call(void 0, (event) => {
|
|
440
401
|
onKeyDownProp == null ? void 0 : onKeyDownProp(event);
|
|
441
402
|
if (!event.repeat) {
|
|
442
403
|
canAutoSelectRef.current = false;
|
|
443
404
|
}
|
|
444
|
-
if (event.defaultPrevented)
|
|
445
|
-
|
|
446
|
-
if (event.
|
|
447
|
-
|
|
448
|
-
if (event.
|
|
449
|
-
|
|
450
|
-
if (event.shiftKey)
|
|
451
|
-
return;
|
|
452
|
-
if (event.metaKey)
|
|
453
|
-
return;
|
|
454
|
-
if (!store)
|
|
455
|
-
return;
|
|
405
|
+
if (event.defaultPrevented) return;
|
|
406
|
+
if (event.ctrlKey) return;
|
|
407
|
+
if (event.altKey) return;
|
|
408
|
+
if (event.shiftKey) return;
|
|
409
|
+
if (event.metaKey) return;
|
|
410
|
+
if (!store) return;
|
|
456
411
|
const { open: open2, activeId } = store.getState();
|
|
457
|
-
if (open2)
|
|
458
|
-
|
|
459
|
-
if (activeId !== null)
|
|
460
|
-
return;
|
|
412
|
+
if (open2) return;
|
|
413
|
+
if (activeId !== null) return;
|
|
461
414
|
if (event.key === "ArrowUp" || event.key === "ArrowDown") {
|
|
462
415
|
if (showOnKeyPressProp(event)) {
|
|
463
416
|
event.preventDefault();
|
|
@@ -466,16 +419,15 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
466
419
|
}
|
|
467
420
|
});
|
|
468
421
|
const onBlurProp = props.onBlur;
|
|
469
|
-
const onBlur =
|
|
422
|
+
const onBlur = _OUWHJLQHcjs.useEvent.call(void 0, (event) => {
|
|
470
423
|
canAutoSelectRef.current = false;
|
|
471
424
|
onBlurProp == null ? void 0 : onBlurProp(event);
|
|
472
|
-
if (event.defaultPrevented)
|
|
473
|
-
return;
|
|
425
|
+
if (event.defaultPrevented) return;
|
|
474
426
|
});
|
|
475
|
-
const id =
|
|
427
|
+
const id = _OUWHJLQHcjs.useId.call(void 0, props.id);
|
|
476
428
|
const ariaAutoComplete = isAriaAutoCompleteValue(autoComplete) ? autoComplete : void 0;
|
|
477
429
|
const isActiveItem = store.useState((state) => state.activeId === null);
|
|
478
|
-
props =
|
|
430
|
+
props = _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {
|
|
479
431
|
id,
|
|
480
432
|
role: "combobox",
|
|
481
433
|
"aria-autocomplete": ariaAutoComplete,
|
|
@@ -485,34 +437,32 @@ var useCombobox = _R2YVMKBRcjs.createHook.call(void 0,
|
|
|
485
437
|
"data-active-item": isActiveItem || void 0,
|
|
486
438
|
value
|
|
487
439
|
}, props), {
|
|
488
|
-
ref:
|
|
440
|
+
ref: _OUWHJLQHcjs.useMergeRefs.call(void 0, ref, props.ref),
|
|
489
441
|
onChange,
|
|
490
442
|
onCompositionEnd,
|
|
491
443
|
onMouseDown,
|
|
492
444
|
onKeyDown,
|
|
493
445
|
onBlur
|
|
494
446
|
});
|
|
495
|
-
props =
|
|
447
|
+
props = _GEDABTB5cjs.useComposite.call(void 0, _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {
|
|
496
448
|
store,
|
|
497
449
|
focusable
|
|
498
450
|
}, props), {
|
|
499
451
|
// Enable inline autocomplete when the user moves from the combobox input
|
|
500
452
|
// to an item.
|
|
501
453
|
moveOnKeyPress: (event) => {
|
|
502
|
-
if (_misc.isFalsyBooleanCallback.call(void 0, moveOnKeyPress, event))
|
|
503
|
-
|
|
504
|
-
if (inline)
|
|
505
|
-
setCanInline(true);
|
|
454
|
+
if (_misc.isFalsyBooleanCallback.call(void 0, moveOnKeyPress, event)) return false;
|
|
455
|
+
if (inline) setCanInline(true);
|
|
506
456
|
return true;
|
|
507
457
|
}
|
|
508
458
|
}));
|
|
509
|
-
props =
|
|
510
|
-
return
|
|
459
|
+
props = _OWLCE773cjs.usePopoverAnchor.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, { store }, props));
|
|
460
|
+
return _3IVNQNIVcjs.__spreadValues.call(void 0, { autoComplete: "off" }, props);
|
|
511
461
|
}
|
|
512
462
|
);
|
|
513
|
-
var Combobox =
|
|
463
|
+
var Combobox = _AWEKOM65cjs.forwardRef.call(void 0, function Combobox2(props) {
|
|
514
464
|
const htmlProps = useCombobox(props);
|
|
515
|
-
return
|
|
465
|
+
return _AWEKOM65cjs.createElement.call(void 0, TagName, htmlProps);
|
|
516
466
|
});
|
|
517
467
|
|
|
518
468
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AriaAttributes, ChangeEvent, ElementType, MouseEvent, KeyboardEvent as ReactKeyboardEvent } from "react";
|
|
2
1
|
import type { BooleanOrCallback, StringWithValue } from "@ariakit/core/utils/types";
|
|
2
|
+
import type { AriaAttributes, ChangeEvent, ElementType, MouseEvent, KeyboardEvent as ReactKeyboardEvent } from "react";
|
|
3
3
|
import type { CompositeOptions } from "../composite/composite.tsx";
|
|
4
4
|
import type { PopoverAnchorOptions } from "../popover/popover-anchor.tsx";
|
|
5
5
|
import type { Props } from "../utils/types.ts";
|
|
@@ -87,7 +87,8 @@ export interface ComboboxOptions<T extends ElementType = TagName> extends Compos
|
|
|
87
87
|
* `true`.
|
|
88
88
|
*
|
|
89
89
|
* By default, the first enabled item is auto selected. This function is handy
|
|
90
|
-
* if you prefer a different item to be auto selected.
|
|
90
|
+
* if you prefer a different item to be auto selected. Returning `undefined`
|
|
91
|
+
* from this function will result in the default behavior.
|
|
91
92
|
* @example
|
|
92
93
|
* ```jsx
|
|
93
94
|
* <Combobox
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AriaAttributes, ChangeEvent, ElementType, MouseEvent, KeyboardEvent as ReactKeyboardEvent } from "react";
|
|
2
1
|
import type { BooleanOrCallback, StringWithValue } from "@ariakit/core/utils/types";
|
|
2
|
+
import type { AriaAttributes, ChangeEvent, ElementType, MouseEvent, KeyboardEvent as ReactKeyboardEvent } from "react";
|
|
3
3
|
import type { CompositeOptions } from "../composite/composite.tsx";
|
|
4
4
|
import type { PopoverAnchorOptions } from "../popover/popover-anchor.tsx";
|
|
5
5
|
import type { Props } from "../utils/types.ts";
|
|
@@ -87,7 +87,8 @@ export interface ComboboxOptions<T extends ElementType = TagName> extends Compos
|
|
|
87
87
|
* `true`.
|
|
88
88
|
*
|
|
89
89
|
* By default, the first enabled item is auto selected. This function is handy
|
|
90
|
-
* if you prefer a different item to be auto selected.
|
|
90
|
+
* if you prefer a different item to be auto selected. Returning `undefined`
|
|
91
|
+
* from this function will result in the default behavior.
|
|
91
92
|
* @example
|
|
92
93
|
* ```jsx
|
|
93
94
|
* <Combobox
|
package/cjs/command/command.cjs
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../__chunks/
|
|
5
|
+
var _35VA3E7Jcjs = require('../__chunks/35VA3E7J.cjs');
|
|
6
|
+
require('../__chunks/EDR5S5CX.cjs');
|
|
7
7
|
require('../__chunks/DYIDES27.cjs');
|
|
8
|
-
require('../__chunks/
|
|
9
|
-
require('../__chunks/
|
|
10
|
-
require('../__chunks/
|
|
11
|
-
require('../__chunks/
|
|
8
|
+
require('../__chunks/AWEKOM65.cjs');
|
|
9
|
+
require('../__chunks/OUWHJLQH.cjs');
|
|
10
|
+
require('../__chunks/54XFMNDS.cjs');
|
|
11
|
+
require('../__chunks/3IVNQNIV.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.Command =
|
|
15
|
+
exports.Command = _35VA3E7Jcjs.Command; exports.useCommand = _35VA3E7Jcjs.useCommand;
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../__chunks/
|
|
7
|
-
require('../__chunks/
|
|
8
|
-
require('../__chunks/
|
|
9
|
-
require('../__chunks/
|
|
10
|
-
require('../__chunks/
|
|
11
|
-
require('../__chunks/
|
|
12
|
-
require('../__chunks/
|
|
13
|
-
require('../__chunks/
|
|
5
|
+
var _VYADJOAVcjs = require('../__chunks/VYADJOAV.cjs');
|
|
6
|
+
require('../__chunks/BV5PE6PZ.cjs');
|
|
7
|
+
require('../__chunks/BZ34A7Q7.cjs');
|
|
8
|
+
require('../__chunks/55G3CDVQ.cjs');
|
|
9
|
+
require('../__chunks/AWEKOM65.cjs');
|
|
10
|
+
require('../__chunks/PULY27HQ.cjs');
|
|
11
|
+
require('../__chunks/OUWHJLQH.cjs');
|
|
12
|
+
require('../__chunks/54XFMNDS.cjs');
|
|
13
|
+
require('../__chunks/3IVNQNIV.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.CompositeContainer =
|
|
17
|
+
exports.CompositeContainer = _VYADJOAVcjs.CompositeContainer; exports.useCompositeContainer = _VYADJOAVcjs.useCompositeContainer;
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('../__chunks/
|
|
12
|
-
require('../__chunks/
|
|
13
|
-
require('../__chunks/
|
|
14
|
-
require('../__chunks/
|
|
15
|
-
require('../__chunks/
|
|
10
|
+
var _BZ34A7Q7cjs = require('../__chunks/BZ34A7Q7.cjs');
|
|
11
|
+
require('../__chunks/55G3CDVQ.cjs');
|
|
12
|
+
require('../__chunks/AWEKOM65.cjs');
|
|
13
|
+
require('../__chunks/OUWHJLQH.cjs');
|
|
14
|
+
require('../__chunks/54XFMNDS.cjs');
|
|
15
|
+
require('../__chunks/3IVNQNIV.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -21,4 +21,4 @@ require('../__chunks/AV6KTKLE.cjs');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.CompositeContextProvider =
|
|
24
|
+
exports.CompositeContextProvider = _BZ34A7Q7cjs.CompositeContextProvider; exports.CompositeItemContext = _BZ34A7Q7cjs.CompositeItemContext; exports.CompositeRowContext = _BZ34A7Q7cjs.CompositeRowContext; exports.CompositeScopedContextProvider = _BZ34A7Q7cjs.CompositeScopedContextProvider; exports.useCompositeContext = _BZ34A7Q7cjs.useCompositeContext; exports.useCompositeProviderContext = _BZ34A7Q7cjs.useCompositeProviderContext; exports.useCompositeScopedContext = _BZ34A7Q7cjs.useCompositeScopedContext;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
require('../__chunks/
|
|
5
|
+
var _RCX6DZ2Ccjs = require('../__chunks/RCX6DZ2C.cjs');
|
|
6
|
+
require('../__chunks/VZGX2ILJ.cjs');
|
|
7
7
|
require('../__chunks/ZJMEXN3N.cjs');
|
|
8
|
-
require('../__chunks/
|
|
9
|
-
require('../__chunks/
|
|
10
|
-
require('../__chunks/
|
|
11
|
-
require('../__chunks/
|
|
8
|
+
require('../__chunks/AWEKOM65.cjs');
|
|
9
|
+
require('../__chunks/OUWHJLQH.cjs');
|
|
10
|
+
require('../__chunks/54XFMNDS.cjs');
|
|
11
|
+
require('../__chunks/3IVNQNIV.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
exports.CompositeGroupLabel =
|
|
15
|
+
exports.CompositeGroupLabel = _RCX6DZ2Ccjs.CompositeGroupLabel; exports.useCompositeGroupLabel = _RCX6DZ2Ccjs.useCompositeGroupLabel;
|