@ariakit/react-core 0.4.7 → 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 +14 -0
- package/cjs/__chunks/{BYOVTGKW.cjs → 32MRW5OT.cjs} +6 -6
- package/cjs/__chunks/{ALRD57MK.cjs → 35VA3E7J.cjs} +29 -41
- package/cjs/__chunks/3EGVYPXR.cjs +37 -0
- package/cjs/__chunks/{XNZYNVWR.cjs → 3HGFVGHB.cjs} +2 -4
- package/cjs/__chunks/{5WO5IPAV.cjs → 4GQ35G4W.cjs} +6 -6
- package/cjs/__chunks/5375OBKP.cjs +37 -0
- package/cjs/__chunks/{I4MVAAJP.cjs → 54XFMNDS.cjs} +10 -16
- package/cjs/__chunks/{XL63LIJ7.cjs → 55G3CDVQ.cjs} +2 -2
- package/cjs/__chunks/{K3BALMJM.cjs → 55IP6UF7.cjs} +12 -12
- package/cjs/__chunks/{N3OBAM6Q.cjs → 5KGVVKTB.cjs} +23 -28
- package/cjs/__chunks/{WJRUE2R2.cjs → 5KRJFKRD.cjs} +16 -16
- package/cjs/__chunks/{7VN5EZ4Y.cjs → 5XC2EBLV.cjs} +5 -5
- package/cjs/__chunks/{TL2ZGAUB.cjs → 5XRB5OJG.cjs} +6 -6
- package/cjs/__chunks/{SOECYHV7.cjs → 7D3WLJ6Y.cjs} +4 -4
- package/cjs/__chunks/{6EWVPQDA.cjs → 7JEGHXLQ.cjs} +17 -17
- package/cjs/__chunks/{7WJNX42F.cjs → ALUDDGPE.cjs} +36 -43
- package/cjs/__chunks/{Q3R7NEK6.cjs → AWEKOM65.cjs} +16 -18
- package/cjs/__chunks/{ZKONUU4L.cjs → AYLCDTBI.cjs} +19 -22
- package/cjs/__chunks/{B37P2XPZ.cjs → BNMYVASA.cjs} +27 -41
- package/cjs/__chunks/{6ZZYUFPW.cjs → BV5PE6PZ.cjs} +5 -10
- package/cjs/__chunks/{QKQVW2OL.cjs → BZ34A7Q7.cjs} +5 -5
- package/cjs/__chunks/{VSEZRJQP.cjs → CAVEC6QQ.cjs} +2 -2
- package/cjs/__chunks/{QHEY2OM5.cjs → CINY3Q6Q.cjs} +95 -148
- package/cjs/__chunks/{GQEDBQIJ.cjs → CQ3ILEKO.cjs} +5 -5
- package/cjs/__chunks/{RGBIX753.cjs → CTYV4VU3.cjs} +4 -4
- package/cjs/__chunks/{N7WKRWT7.cjs → D6GJ6H7T.cjs} +121 -182
- package/cjs/__chunks/{FWTMT3XN.cjs → DPVDBBFO.cjs} +12 -13
- package/cjs/__chunks/{B6WDC6K5.cjs → DTTG2PLR.cjs} +11 -11
- package/cjs/__chunks/{TLQ4Z6Y3.cjs → DYEW6UIB.cjs} +4 -6
- package/cjs/__chunks/{J3LHZMCN.cjs → EDR5S5CX.cjs} +63 -109
- package/cjs/__chunks/{KK65NZHC.cjs → EFOAIXM5.cjs} +7 -12
- package/cjs/__chunks/{Y35VEVEA.cjs → EY32VECZ.cjs} +17 -17
- package/cjs/__chunks/{CAWDTTCO.cjs → EZFLPAN5.cjs} +5 -5
- package/cjs/__chunks/{RBQK5YSP.cjs → F5OF3EOI.cjs} +5 -5
- package/cjs/__chunks/{J23ACBIS.cjs → FW7MMP43.cjs} +17 -17
- package/cjs/__chunks/{ZWJIMANM.cjs → GEDABTB5.cjs} +81 -123
- package/cjs/__chunks/{RJXJZXU4.cjs → GEF4CKCI.cjs} +7 -7
- package/cjs/__chunks/{QZTEAIEB.cjs → I2B6AUM7.cjs} +9 -9
- package/cjs/__chunks/{FKEHXOZH.cjs → I52OTQQ2.cjs} +6 -6
- package/cjs/__chunks/{V5HJPNDM.cjs → I62GZSMK.cjs} +18 -23
- package/cjs/__chunks/{JY4FTKAQ.cjs → IHRK7HOT.cjs} +5 -5
- package/cjs/__chunks/INEJRBLK.cjs +37 -0
- package/cjs/__chunks/{WJWRXAE2.cjs → J3QW3U2K.cjs} +10 -10
- package/cjs/__chunks/{7BWVJDM5.cjs → JB3ASB5F.cjs} +6 -6
- package/cjs/__chunks/{7SM32XGS.cjs → JNDKYZLH.cjs} +31 -41
- package/cjs/__chunks/{ZXXHG5BK.cjs → JOPR6ORJ.cjs} +5 -5
- package/cjs/__chunks/{NA6K3SI7.cjs → JT66FSLM.cjs} +30 -43
- package/cjs/__chunks/KEFNKTQ2.cjs +32 -0
- package/cjs/__chunks/{7SXMOZBC.cjs → KNWPYX4B.cjs} +6 -6
- package/cjs/__chunks/{H4A34XBV.cjs → KOJWH5YC.cjs} +5 -5
- package/cjs/__chunks/{LJFI6VVH.cjs → L2VXOCPG.cjs} +14 -15
- package/cjs/__chunks/{C5YBMSVA.cjs → LMD72BFO.cjs} +12 -12
- package/cjs/__chunks/{DXJ2T33U.cjs → LO2HIMYX.cjs} +5 -5
- package/cjs/__chunks/{Q6XPDC6H.cjs → M2NSCXQI.cjs} +8 -8
- package/cjs/__chunks/{NI34BXW7.cjs → MANSJYLV.cjs} +7 -7
- package/cjs/__chunks/{S5ZSEKI4.cjs → MHPAHLXS.cjs} +37 -51
- package/cjs/__chunks/{RZJIUKJK.cjs → MQ7GAESK.cjs} +5 -5
- package/cjs/__chunks/{7YLCVXZ7.cjs → MTP72GGY.cjs} +5 -10
- package/cjs/__chunks/{VQSZN4ZZ.cjs → MUQXBDUR.cjs} +13 -18
- package/cjs/__chunks/{73ENVLSL.cjs → MVSF6EJW.cjs} +12 -12
- package/cjs/__chunks/{XHX57Y3O.cjs → MYHF5JTH.cjs} +6 -6
- package/cjs/__chunks/N2SIFK7A.cjs +49 -0
- package/cjs/__chunks/{3VQCUG5S.cjs → NMKMMUOR.cjs} +6 -7
- package/cjs/__chunks/{6UJTOT6Y.cjs → NRLE3XE7.cjs} +2 -2
- package/cjs/__chunks/{XOGGS4JT.cjs → O7XO5LCL.cjs} +8 -8
- package/cjs/__chunks/{D5YFJQWS.cjs → ONFSQI2X.cjs} +7 -7
- package/cjs/__chunks/{J4TOY3CV.cjs → OR7WTDA4.cjs} +9 -11
- package/cjs/__chunks/OU2GPBZW.cjs +31 -0
- package/cjs/__chunks/{IZ2J6IIQ.cjs → OUWHJLQH.cjs} +15 -24
- package/cjs/__chunks/{DR6TZZCO.cjs → OVBWMHNO.cjs} +12 -21
- package/cjs/__chunks/OWLCE773.cjs +40 -0
- package/cjs/__chunks/{KSANDLPZ.cjs → OZFFK5VS.cjs} +16 -21
- package/cjs/__chunks/{SOLTCMT3.cjs → PB5FNOHD.cjs} +4 -4
- package/cjs/__chunks/{DIFM3L3J.cjs → PI2PMECI.cjs} +66 -90
- package/cjs/__chunks/{T6EOHNY7.cjs → PULY27HQ.cjs} +19 -29
- package/cjs/__chunks/{DQCMG5NY.cjs → PYKELHKQ.cjs} +15 -18
- package/cjs/__chunks/{SFHZVYRX.cjs → QA3YJPTA.cjs} +16 -16
- package/cjs/__chunks/{T26VEGNG.cjs → QC5YVEX2.cjs} +6 -6
- package/cjs/__chunks/{3P3P4ECD.cjs → QEHZIMM5.cjs} +14 -14
- package/cjs/__chunks/{H57E5ZUT.cjs → QW2GOYBN.cjs} +5 -5
- package/cjs/__chunks/{Z72SS67C.cjs → R27VYD4T.cjs} +36 -46
- package/cjs/__chunks/R6D5K5O4.cjs +40 -0
- package/cjs/__chunks/{BINHWFDM.cjs → RCX6DZ2C.cjs} +8 -8
- package/cjs/__chunks/{SMXQY72C.cjs → RVQKZ37U.cjs} +6 -6
- package/cjs/__chunks/{6YNUIZOM.cjs → SRE6U4QD.cjs} +24 -27
- package/cjs/__chunks/{S6LYARLY.cjs → STTOVFIA.cjs} +5 -5
- package/cjs/__chunks/{EEY4ZWA3.cjs → SY7NHEDF.cjs} +36 -46
- package/cjs/__chunks/{KN72PYUW.cjs → TGMTQMEK.cjs} +28 -36
- package/cjs/__chunks/{NYCVZQTV.cjs → THYF3LTR.cjs} +5 -5
- package/cjs/__chunks/{6FPOXFLO.cjs → TILYAERE.cjs} +7 -7
- package/cjs/__chunks/{2NU7KANK.cjs → TLYXF4HI.cjs} +36 -55
- package/cjs/__chunks/{GEMFHX6H.cjs → TPGAU7YB.cjs} +82 -142
- package/cjs/__chunks/{DSGXHMTR.cjs → TRKXX6UW.cjs} +5 -5
- package/cjs/__chunks/{JBIQ5SAD.cjs → TTDPJ5B7.cjs} +10 -10
- package/cjs/__chunks/{KGF55T6Z.cjs → VYADJOAV.cjs} +33 -47
- package/cjs/__chunks/{L6NXSTRB.cjs → VYTT2R6P.cjs} +33 -58
- package/cjs/__chunks/{RKAA2DJ6.cjs → VZGX2ILJ.cjs} +9 -9
- package/cjs/__chunks/{IU6B7LBR.cjs → W3DXC3KC.cjs} +8 -8
- package/cjs/__chunks/{OX5LLZZB.cjs → WBUSMWPW.cjs} +39 -57
- package/cjs/__chunks/{FZAUH4KL.cjs → WGNARUKE.cjs} +13 -13
- package/cjs/__chunks/{OJM6XVJZ.cjs → WSL22WT6.cjs} +31 -34
- package/cjs/__chunks/{KPQSDZEK.cjs → X7JQ6QHE.cjs} +9 -9
- package/cjs/__chunks/{3VKSP77V.cjs → XV4AOZNF.cjs} +30 -43
- package/cjs/__chunks/{LVHGII5Y.cjs → Y2LRH7ZH.cjs} +12 -12
- package/cjs/__chunks/Y56UQNH6.cjs +31 -0
- package/cjs/__chunks/{7X6S652E.cjs → YRGMTDX5.cjs} +14 -15
- package/cjs/__chunks/{3ND7K6FF.cjs → YS72JDSE.cjs} +5 -8
- package/cjs/__chunks/{IPFBKOFN.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-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-provider.cjs +9 -9
- package/cjs/collection/collection-renderer.cjs +8 -8
- package/cjs/collection/collection-renderer.d.cts +13 -15
- package/cjs/collection/collection-renderer.d.ts +13 -15
- package/cjs/collection/collection-store.cjs +6 -6
- package/cjs/collection/collection.cjs +12 -12
- package/cjs/combobox/combobox-cancel.cjs +25 -28
- 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 +17 -17
- package/cjs/combobox/combobox-item.cjs +48 -58
- package/cjs/combobox/combobox-label.cjs +17 -17
- package/cjs/combobox/combobox-list.cjs +14 -14
- package/cjs/combobox/combobox-popover.cjs +52 -60
- package/cjs/combobox/combobox-provider.cjs +20 -20
- 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 +98 -154
- package/cjs/combobox/combobox.d.cts +2 -1
- package/cjs/combobox/combobox.d.ts +2 -1
- 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-input.cjs +17 -20
- package/cjs/composite/composite-item.cjs +13 -13
- package/cjs/composite/composite-overflow-disclosure.cjs +34 -36
- package/cjs/composite/composite-overflow-store.cjs +9 -9
- package/cjs/composite/composite-overflow.cjs +40 -41
- package/cjs/composite/composite-provider.cjs +11 -11
- 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/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 +29 -29
- 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 +9 -9
- 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 +1 -1
- 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/focus-trap/focus-trap-region.cjs +16 -18
- 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/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-description.cjs +18 -18
- package/cjs/form/form-error.cjs +20 -22
- 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 +26 -30
- package/cjs/form/form-provider.cjs +11 -11
- package/cjs/form/form-push.cjs +27 -34
- package/cjs/form/form-radio-group.cjs +12 -12
- package/cjs/form/form-radio.cjs +27 -28
- package/cjs/form/form-remove.cjs +21 -25
- 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 +35 -49
- 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-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 +37 -47
- 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 +34 -34
- 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 +60 -77
- 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 +41 -48
- package/cjs/menu/menu-item-radio.cjs +38 -42
- package/cjs/menu/menu-item.cjs +21 -21
- package/cjs/menu/menu-list.cjs +20 -20
- package/cjs/menu/menu-provider.cjs +23 -23
- package/cjs/menu/menu-separator.cjs +20 -20
- package/cjs/menu/menu-store.cjs +22 -22
- package/cjs/menu/menu.cjs +75 -93
- 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 +31 -31
- 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/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 +44 -54
- package/cjs/select/select-label.cjs +22 -23
- package/cjs/select/select-list.cjs +18 -18
- package/cjs/select/select-popover.cjs +46 -46
- package/cjs/select/select-provider.cjs +20 -20
- package/cjs/select/select-renderer.cjs +28 -35
- 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.cjs +47 -57
- 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 +36 -41
- package/cjs/tab/tab-provider.cjs +18 -18
- package/cjs/tab/tab-store.cjs +16 -16
- package/cjs/tab/tab.cjs +45 -51
- package/cjs/tag/tag-context.cjs +8 -8
- package/cjs/tag/tag-input.cjs +40 -52
- package/cjs/tag/tag-list-label.cjs +15 -15
- package/cjs/tag/tag-list.cjs +26 -29
- package/cjs/tag/tag-provider.cjs +13 -13
- package/cjs/tag/tag-remove.cjs +24 -28
- 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 +28 -29
- package/cjs/tag/utils.cjs +1 -1
- 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 +30 -39
- 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 +53 -59
- package/cjs/utils/hooks.cjs +4 -4
- 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 +2 -2
- package/cjs/utils/system.d.ts +2 -2
- package/cjs/visually-hidden/visually-hidden.cjs +6 -6
- package/esm/__chunks/{IH5KTPNA.js → 2JP3PD4E.js} +4 -4
- package/esm/__chunks/{3M4W2SZ7.js → 2PGBN2Y4.js} +8 -13
- package/esm/__chunks/{QT5BCKOY.js → 2PNU5FDT.js} +4 -4
- package/esm/__chunks/{FXF6FFAU.js → 2YDG6Q4P.js} +3 -3
- package/esm/__chunks/{J7UNXP2A.js → 32IPIQBR.js} +2 -2
- package/esm/__chunks/{67ZQCY2E.js → 3JMGO6V3.js} +4 -4
- package/esm/__chunks/{NETDJWDX.js → 3RXEUV3E.js} +4 -4
- package/esm/__chunks/{Y2HD42YR.js → 42INOJH3.js} +4 -4
- package/esm/__chunks/{GRUZR3XS.js → 4CA6HQZC.js} +11 -16
- package/esm/__chunks/{O7HGX5PA.js → 4DJ5UIED.js} +19 -33
- package/esm/__chunks/{KMGRI767.js → 4FCYZKRB.js} +10 -15
- package/esm/__chunks/{DGQNUP7F.js → 4KVV4LMJ.js} +1 -1
- package/esm/__chunks/{B4SPVRVU.js → 4ZTL4ESZ.js} +2 -2
- package/esm/__chunks/{D6WBY7EV.js → 543BQAW5.js} +4 -4
- package/esm/__chunks/{5PY7H3O6.js → 56RR3YNE.js} +3 -3
- package/esm/__chunks/{KVYXDH67.js → 5E5BPAV7.js} +8 -11
- package/esm/__chunks/{MYBFWPQK.js → 5NAURCQI.js} +5 -6
- package/esm/__chunks/{3IEDWLST.js → 5VQZOHHZ.js} +5 -10
- package/esm/__chunks/{MKDDWKFK.js → 63XF7ACK.js} +5 -10
- package/esm/__chunks/{OJBHU3NX.js → 6524RV3R.js} +10 -13
- package/esm/__chunks/{272IHWKI.js → 673TSSFB.js} +16 -26
- package/esm/__chunks/{R3QDAIOX.js → 6JLOZRF5.js} +3 -3
- package/esm/__chunks/{PGA74ZJ4.js → 6K7HZETS.js} +3 -3
- package/esm/__chunks/{2INQ6K4L.js → 7ATJTJIY.js} +4 -4
- package/esm/__chunks/{MIE7UGQE.js → 7DP25ROA.js} +5 -6
- package/esm/__chunks/{7NGG3X6T.js → 7RXYRUSH.js} +4 -4
- package/esm/__chunks/{5EKYTDKF.js → 7UYST25M.js} +16 -28
- package/esm/__chunks/{SYLYP2IN.js → AJE6WNNP.js} +39 -63
- package/esm/__chunks/{VC5OPI3O.js → AMQNTLCG.js} +8 -11
- package/esm/__chunks/{UN4MKOLN.js → AOK4FW4L.js} +61 -114
- package/esm/__chunks/{4SXGPXPS.js → AOUGVQZ3.js} +10 -19
- package/esm/__chunks/{FPZBL2HG.js → B3R2D232.js} +3 -3
- package/esm/__chunks/{ZPKRQJBS.js → BEBUB5QN.js} +2 -2
- package/esm/__chunks/{PFZ7V44A.js → C3D7NSUP.js} +4 -4
- package/esm/__chunks/{DYAGAZRT.js → DRL2GNLJ.js} +49 -95
- package/esm/__chunks/{SORNFOKV.js → EAHBL67B.js} +2 -2
- package/esm/__chunks/{HGKZNVMH.js → EMQCY6SH.js} +2 -2
- package/esm/__chunks/{SJ5YBTFK.js → EQMNTDLB.js} +1 -1
- package/esm/__chunks/{SYFUIAXQ.js → ESSM74HH.js} +4 -5
- package/esm/__chunks/{EKUOHYM2.js → EWPDRBSA.js} +2 -2
- package/esm/__chunks/{S6GWHPQZ.js → FLYVORTY.js} +2 -2
- package/esm/__chunks/{DTNGDFNU.js → FQ77EHUR.js} +12 -22
- package/esm/__chunks/{DDNAPH23.js → FQDOBJ6H.js} +6 -11
- package/esm/__chunks/{5XYSEKV3.js → G2E65A35.js} +25 -44
- package/esm/__chunks/{3HD5ZDMZ.js → HZ7KGUEF.js} +13 -21
- package/esm/__chunks/{4Q67VK3V.js → IQY2XH5H.js} +26 -44
- package/esm/__chunks/{QFO5OLDL.js → ITUYV2MN.js} +65 -125
- package/esm/__chunks/{WHHX3V5K.js → IZO5ZR3O.js} +2 -2
- package/esm/__chunks/{3L4UCDWT.js → J4NXMVZC.js} +3 -3
- package/esm/__chunks/{53CQGCDZ.js → K2ZF5NU7.js} +5 -8
- package/esm/__chunks/{RD2VYBH6.js → KHRZRUNB.js} +8 -8
- package/esm/__chunks/{2N6FBM3O.js → KXBJFI2T.js} +2 -2
- package/esm/__chunks/{GN2MH2Y2.js → KYRH6BDE.js} +2 -2
- package/esm/__chunks/{6MDCAUOE.js → LEWNCT3G.js} +20 -34
- package/esm/__chunks/{OTPVYNVT.js → LNYYGYYJ.js} +28 -53
- package/esm/__chunks/{URSEQETI.js → M6ZUVZPG.js} +2 -2
- package/esm/__chunks/{PVRT36VL.js → MHEVUPUR.js} +2 -2
- package/esm/__chunks/{FU7RTSEI.js → MTODTZOP.js} +1 -1
- package/esm/__chunks/{G3HTND37.js → NEBRAPXZ.js} +1 -1
- package/esm/__chunks/{NXZX7GS5.js → NJLXK3RL.js} +6 -6
- package/esm/__chunks/{ZPGENCAP.js → NMSEBYDL.js} +2 -2
- package/esm/__chunks/{75IH3TOO.js → NSFBIL2Z.js} +9 -14
- package/esm/__chunks/{A22SDPU3.js → NY537TEH.js} +4 -4
- package/esm/__chunks/{WH6Q5C3D.js → O6W3KMIU.js} +2 -2
- package/esm/__chunks/{U2FYKKWI.js → OE4UNAC4.js} +6 -6
- package/esm/__chunks/{CBOSGWHO.js → PMFZK2Z4.js} +17 -30
- package/esm/__chunks/{2LDES2MP.js → PS5YNAJZ.js} +3 -3
- package/esm/__chunks/{YIF72NQG.js → PTCNA5XT.js} +5 -7
- package/esm/__chunks/{OEBCGVCG.js → PZGHQO5Y.js} +7 -10
- package/esm/__chunks/{42G2NDPP.js → QAL7XKAT.js} +6 -6
- package/esm/__chunks/{5BXPMNKT.js → QJCHJYGN.js} +3 -3
- package/esm/__chunks/{PKNBS4Q6.js → R7AVCKGB.js} +3 -5
- package/esm/__chunks/{PKN6MQJP.js → RR3QLTVJ.js} +15 -25
- package/esm/__chunks/{XHMHIT7V.js → RVGP4EDO.js} +2 -2
- package/esm/__chunks/{HOOW7GH2.js → RZ4N7DMG.js} +6 -6
- package/esm/__chunks/{7CGRXEUR.js → SEE6HN7H.js} +3 -3
- package/esm/__chunks/{2YFUM7X5.js → SEHEJ7XZ.js} +20 -34
- package/esm/__chunks/{P7YNSWBG.js → SEMTJMZO.js} +5 -7
- package/esm/__chunks/{4ROCFRIN.js → SK3NAZA3.js} +7 -13
- package/esm/__chunks/{GDEEEVWP.js → T3FPB6UI.js} +2 -2
- package/esm/__chunks/{X3TS2MQG.js → TCS6QBGM.js} +2 -2
- package/esm/__chunks/{53KINMNA.js → TN5Y26CD.js} +2 -2
- package/esm/__chunks/{HJER6CSZ.js → TROKLLXK.js} +6 -6
- package/esm/__chunks/{5UDX7WKK.js → TUWQEMG5.js} +2 -2
- package/esm/__chunks/{IOEKCBMU.js → TWVD2KYP.js} +2 -2
- package/esm/__chunks/{CN7DDZL2.js → U7BJ2WVN.js} +78 -139
- package/esm/__chunks/{FG25KND2.js → U7IXCFEO.js} +3 -3
- package/esm/__chunks/{RV6RYOXG.js → V3XGKTI7.js} +2 -2
- package/esm/__chunks/{G5PRNFCL.js → VBM67XZT.js} +2 -2
- package/esm/__chunks/{QESPTHDX.js → VJLRJATI.js} +2 -2
- package/esm/__chunks/{LAKDACE6.js → W3QZUDGA.js} +3 -3
- package/esm/__chunks/{UV4QOTER.js → W77M2ZU5.js} +18 -31
- package/esm/__chunks/{GO53B7AR.js → WB2VUSZO.js} +3 -3
- package/esm/__chunks/{ELXIVOWC.js → WESQERUS.js} +4 -4
- package/esm/__chunks/{TNHM3SUC.js → WOYVW654.js} +16 -26
- package/esm/__chunks/{OPTPHWV7.js → WX6L4ACS.js} +11 -20
- package/esm/__chunks/{IX2MD5WD.js → X3G4E3V2.js} +2 -2
- package/esm/__chunks/{ZUNM32WK.js → X474FLSI.js} +2 -2
- package/esm/__chunks/{SD6TYZJO.js → X7QOZUD3.js} +2 -4
- package/esm/__chunks/{A6ABOV6V.js → XKTQ6BEH.js} +6 -7
- package/esm/__chunks/{X5ETRS5D.js → XRRE3XFB.js} +2 -2
- package/esm/__chunks/{CLDRDBYI.js → XV4RNL66.js} +2 -2
- package/esm/__chunks/{F6GOJSFF.js → XY6RPG62.js} +2 -2
- package/esm/__chunks/{QMBMAMY2.js → Y54YOYNA.js} +48 -90
- package/esm/__chunks/{OIFL4DQB.js → YJGBNUVO.js} +5 -5
- package/esm/__chunks/{PDTGHX74.js → ZAL25FJZ.js} +15 -22
- package/esm/__chunks/{FNENEDAU.js → ZS47AUQK.js} +2 -2
- package/esm/__chunks/{RW4EN5HP.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.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.js +6 -6
- package/esm/collection/collection-provider.js +7 -7
- package/esm/collection/collection-renderer.d.ts +13 -15
- 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.js +16 -19
- 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 +10 -10
- package/esm/combobox/combobox-item.js +27 -37
- package/esm/combobox/combobox-label.js +10 -10
- package/esm/combobox/combobox-list.js +13 -13
- package/esm/combobox/combobox-popover.js +42 -50
- 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 +2 -1
- package/esm/combobox/combobox.js +70 -126
- 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.js +7 -7
- package/esm/composite/composite-input.js +8 -11
- package/esm/composite/composite-item.js +12 -12
- package/esm/composite/composite-overflow-disclosure.js +22 -24
- package/esm/composite/composite-overflow-store.js +7 -7
- package/esm/composite/composite-overflow.js +31 -32
- 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.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.js +28 -28
- 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 +8 -8
- 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 +1 -1
- 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.js +9 -9
- package/esm/focus-trap/focus-trap-region.js +8 -10
- 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.js +5 -5
- package/esm/form/form-checkbox.js +14 -14
- package/esm/form/form-context.js +6 -6
- package/esm/form/form-control.js +8 -8
- package/esm/form/form-description.js +7 -7
- package/esm/form/form-error.js +9 -11
- 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.js +11 -15
- package/esm/form/form-provider.js +9 -9
- package/esm/form/form-push.js +17 -24
- package/esm/form/form-radio-group.js +6 -6
- package/esm/form/form-radio.js +17 -18
- package/esm/form/form-remove.js +13 -17
- 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 +20 -34
- 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.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 +24 -34
- 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.js +33 -33
- 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 +41 -58
- 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 +30 -37
- package/esm/menu/menu-item-radio.js +26 -30
- package/esm/menu/menu-item.js +20 -20
- package/esm/menu/menu-list.js +19 -19
- 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 +59 -77
- 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.js +30 -30
- 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.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.js +27 -37
- package/esm/select/select-label.js +11 -12
- package/esm/select/select-list.js +17 -17
- package/esm/select/select-popover.js +37 -37
- package/esm/select/select-provider.js +18 -18
- package/esm/select/select-renderer.js +20 -27
- 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.js +11 -11
- package/esm/select/select.js +31 -41
- 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.js +19 -24
- package/esm/tab/tab-provider.js +16 -16
- package/esm/tab/tab-store.js +15 -15
- package/esm/tab/tab.js +33 -39
- package/esm/tag/tag-context.js +7 -7
- package/esm/tag/tag-input.js +25 -37
- package/esm/tag/tag-list-label.js +7 -7
- package/esm/tag/tag-list.js +13 -16
- package/esm/tag/tag-provider.js +11 -11
- package/esm/tag/tag-remove.js +12 -16
- 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.js +14 -15
- package/esm/tag/utils.js +1 -1
- 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 +20 -29
- 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 +40 -46
- 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 +2 -2
- package/esm/utils/system.js +4 -4
- package/esm/visually-hidden/visually-hidden.js +5 -5
- package/package.json +2 -2
- package/readme.md +18 -0
- package/cjs/__chunks/45GIRG26.cjs +0 -49
- package/cjs/__chunks/4F4TSYFA.cjs +0 -40
- package/cjs/__chunks/6E2KH4LZ.cjs +0 -40
- package/cjs/__chunks/DY4W6DUQ.cjs +0 -37
- package/cjs/__chunks/MTL37OGW.cjs +0 -37
- package/cjs/__chunks/TFB7L57Q.cjs +0 -37
- package/cjs/__chunks/Y6DDDMAK.cjs +0 -31
- package/cjs/__chunks/ZQW5MMXZ.cjs +0 -31
- package/cjs/__chunks/ZT7NR4G7.cjs +0 -32
- /package/cjs/__chunks/{AV6KTKLE.cjs → 3IVNQNIV.cjs} +0 -0
- /package/esm/__chunks/{4R3V3JGP.js → 3YLGPPWQ.js} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
DialogScopedContextProvider
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./32IPIQBR.js";
|
|
5
5
|
import {
|
|
6
6
|
useDisclosureProviderContext
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./EQMNTDLB.js";
|
|
8
8
|
import {
|
|
9
9
|
createElement,
|
|
10
10
|
createHook,
|
|
11
11
|
forwardRef
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./PTCNA5XT.js";
|
|
13
13
|
import {
|
|
14
14
|
useStoreState
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./FQ77EHUR.js";
|
|
16
16
|
import {
|
|
17
17
|
useId,
|
|
18
18
|
useMergeRefs,
|
|
19
19
|
useSafeLayoutEffect,
|
|
20
20
|
useWrapElement
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./WX6L4ACS.js";
|
|
22
22
|
import {
|
|
23
23
|
__objRest,
|
|
24
24
|
__spreadProps,
|
|
25
25
|
__spreadValues
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./3YLGPPWQ.js";
|
|
27
27
|
|
|
28
28
|
// src/disclosure/disclosure-content.tsx
|
|
29
29
|
import { invariant, removeUndefinedValues } from "@ariakit/core/utils/misc";
|
|
@@ -45,8 +45,7 @@ function parseCSSTime(...times) {
|
|
|
45
45
|
return times.join(", ").split(", ").reduce((longestTime, currentTimeString) => {
|
|
46
46
|
const multiplier = currentTimeString.endsWith("ms") ? 1 : 1e3;
|
|
47
47
|
const currentTime = Number.parseFloat(currentTimeString || "0s") * multiplier;
|
|
48
|
-
if (currentTime > longestTime)
|
|
49
|
-
return currentTime;
|
|
48
|
+
if (currentTime > longestTime) return currentTime;
|
|
50
49
|
return longestTime;
|
|
51
50
|
}, 0);
|
|
52
51
|
}
|
|
@@ -70,8 +69,7 @@ var useDisclosureContent = createHook(function useDisclosureContent2(_a) {
|
|
|
70
69
|
const contentElement = store.useState("contentElement");
|
|
71
70
|
const otherElement = useStoreState(store.disclosure, "contentElement");
|
|
72
71
|
useSafeLayoutEffect(() => {
|
|
73
|
-
if (!ref.current)
|
|
74
|
-
return;
|
|
72
|
+
if (!ref.current) return;
|
|
75
73
|
store == null ? void 0 : store.setContentElement(ref.current);
|
|
76
74
|
}, [store]);
|
|
77
75
|
useSafeLayoutEffect(() => {
|
|
@@ -81,14 +79,12 @@ var useDisclosureContent = createHook(function useDisclosureContent2(_a) {
|
|
|
81
79
|
return true;
|
|
82
80
|
});
|
|
83
81
|
return () => {
|
|
84
|
-
if (previousAnimated === void 0)
|
|
85
|
-
return;
|
|
82
|
+
if (previousAnimated === void 0) return;
|
|
86
83
|
store == null ? void 0 : store.setState("animated", previousAnimated);
|
|
87
84
|
};
|
|
88
85
|
}, [store]);
|
|
89
86
|
useSafeLayoutEffect(() => {
|
|
90
|
-
if (!animated)
|
|
91
|
-
return;
|
|
87
|
+
if (!animated) return;
|
|
92
88
|
if (!(contentElement == null ? void 0 : contentElement.isConnected)) {
|
|
93
89
|
setTransition(null);
|
|
94
90
|
return;
|
|
@@ -98,20 +94,16 @@ var useDisclosureContent = createHook(function useDisclosureContent2(_a) {
|
|
|
98
94
|
});
|
|
99
95
|
}, [animated, contentElement, open, mounted]);
|
|
100
96
|
useSafeLayoutEffect(() => {
|
|
101
|
-
if (!store)
|
|
102
|
-
|
|
103
|
-
if (!animated)
|
|
104
|
-
return;
|
|
97
|
+
if (!store) return;
|
|
98
|
+
if (!animated) return;
|
|
105
99
|
const stopAnimation = () => store == null ? void 0 : store.setState("animating", false);
|
|
106
100
|
const stopAnimationSync = () => flushSync(stopAnimation);
|
|
107
101
|
if (!transition || !contentElement) {
|
|
108
102
|
stopAnimation();
|
|
109
103
|
return;
|
|
110
104
|
}
|
|
111
|
-
if (transition === "leave" && open)
|
|
112
|
-
|
|
113
|
-
if (transition === "enter" && !open)
|
|
114
|
-
return;
|
|
105
|
+
if (transition === "leave" && open) return;
|
|
106
|
+
if (transition === "enter" && !open) return;
|
|
115
107
|
if (typeof animated === "number") {
|
|
116
108
|
const timeout2 = animated;
|
|
117
109
|
return afterTimeout(timeout2, stopAnimationSync);
|
|
@@ -160,8 +152,7 @@ var useDisclosureContent = createHook(function useDisclosureContent2(_a) {
|
|
|
160
152
|
const hidden = isHidden(mounted, props.hidden, alwaysVisible);
|
|
161
153
|
const styleProp = props.style;
|
|
162
154
|
const style = useMemo(() => {
|
|
163
|
-
if (hidden)
|
|
164
|
-
return __spreadProps(__spreadValues({}, styleProp), { display: "none" });
|
|
155
|
+
if (hidden) return __spreadProps(__spreadValues({}, styleProp), { display: "none" });
|
|
165
156
|
return styleProp;
|
|
166
157
|
}, [hidden, styleProp]);
|
|
167
158
|
props = __spreadProps(__spreadValues({
|
|
@@ -192,8 +183,7 @@ var DisclosureContent = forwardRef(function DisclosureContent2(_a) {
|
|
|
192
183
|
store,
|
|
193
184
|
(state) => !unmountOnHide || (state == null ? void 0 : state.mounted)
|
|
194
185
|
);
|
|
195
|
-
if (mounted === false)
|
|
196
|
-
return null;
|
|
186
|
+
if (mounted === false) return null;
|
|
197
187
|
return /* @__PURE__ */ jsx(DisclosureContentImpl, __spreadValues({}, props));
|
|
198
188
|
});
|
|
199
189
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
setRef
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./SK3NAZA3.js";
|
|
5
5
|
import {
|
|
6
6
|
__spreadProps,
|
|
7
7
|
__spreadValues
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./3YLGPPWQ.js";
|
|
9
9
|
|
|
10
10
|
// src/utils/hooks.ts
|
|
11
11
|
import { canUseDOM } from "@ariakit/core/utils/dom";
|
|
@@ -70,10 +70,8 @@ function useEvent(callback) {
|
|
|
70
70
|
function useTransactionState(callback) {
|
|
71
71
|
const [state, setState] = useState(null);
|
|
72
72
|
useSafeLayoutEffect(() => {
|
|
73
|
-
if (state == null)
|
|
74
|
-
|
|
75
|
-
if (!callback)
|
|
76
|
-
return;
|
|
73
|
+
if (state == null) return;
|
|
74
|
+
if (!callback) return;
|
|
77
75
|
let prevState = null;
|
|
78
76
|
callback((prev) => {
|
|
79
77
|
prevState = prev;
|
|
@@ -87,8 +85,7 @@ function useTransactionState(callback) {
|
|
|
87
85
|
}
|
|
88
86
|
function useMergeRefs(...refs) {
|
|
89
87
|
return useMemo(() => {
|
|
90
|
-
if (!refs.some(Boolean))
|
|
91
|
-
return;
|
|
88
|
+
if (!refs.some(Boolean)) return;
|
|
92
89
|
return (value) => {
|
|
93
90
|
for (const ref of refs) {
|
|
94
91
|
setRef(ref, value);
|
|
@@ -107,14 +104,12 @@ function useRefId(ref, deps) {
|
|
|
107
104
|
function useId(defaultId) {
|
|
108
105
|
if (useReactId) {
|
|
109
106
|
const reactId = useReactId();
|
|
110
|
-
if (defaultId)
|
|
111
|
-
return defaultId;
|
|
107
|
+
if (defaultId) return defaultId;
|
|
112
108
|
return reactId;
|
|
113
109
|
}
|
|
114
110
|
const [id, setId] = useState(defaultId);
|
|
115
111
|
useSafeLayoutEffect(() => {
|
|
116
|
-
if (defaultId || id)
|
|
117
|
-
return;
|
|
112
|
+
if (defaultId || id) return;
|
|
118
113
|
const random = Math.random().toString(36).substr(2, 6);
|
|
119
114
|
setId(`id-${random}`);
|
|
120
115
|
}, [defaultId, id]);
|
|
@@ -133,8 +128,7 @@ function useDeferredValue(value) {
|
|
|
133
128
|
}
|
|
134
129
|
function useTagName(refOrElement, type) {
|
|
135
130
|
const stringOrUndefined = (type2) => {
|
|
136
|
-
if (typeof type2 !== "string")
|
|
137
|
-
return;
|
|
131
|
+
if (typeof type2 !== "string") return;
|
|
138
132
|
return type2;
|
|
139
133
|
};
|
|
140
134
|
const [tagName, setTagName] = useState(() => stringOrUndefined(type));
|
|
@@ -148,12 +142,10 @@ function useAttribute(refOrElement, attributeName, defaultValue) {
|
|
|
148
142
|
const [attribute, setAttribute] = useState(defaultValue);
|
|
149
143
|
useSafeLayoutEffect(() => {
|
|
150
144
|
const element = refOrElement && "current" in refOrElement ? refOrElement.current : refOrElement;
|
|
151
|
-
if (!element)
|
|
152
|
-
return;
|
|
145
|
+
if (!element) return;
|
|
153
146
|
const callback = () => {
|
|
154
147
|
const value = element.getAttribute(attributeName);
|
|
155
|
-
if (value == null)
|
|
156
|
-
return;
|
|
148
|
+
if (value == null) return;
|
|
157
149
|
setAttribute(value);
|
|
158
150
|
};
|
|
159
151
|
const observer = new MutationObserver(callback);
|
|
@@ -282,8 +274,7 @@ function hasMouseMovement(event) {
|
|
|
282
274
|
return movementX || movementY || process.env.NODE_ENV === "test";
|
|
283
275
|
}
|
|
284
276
|
function setMouseMoving(event) {
|
|
285
|
-
if (!hasMouseMovement(event))
|
|
286
|
-
return;
|
|
277
|
+
if (!hasMouseMovement(event)) return;
|
|
287
278
|
mouseMoving = true;
|
|
288
279
|
}
|
|
289
280
|
function resetMouseMoving() {
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
createElement,
|
|
4
4
|
createHook,
|
|
5
5
|
forwardRef
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./PTCNA5XT.js";
|
|
7
7
|
import {
|
|
8
8
|
__objRest,
|
|
9
9
|
__spreadValues
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./3YLGPPWQ.js";
|
|
11
11
|
|
|
12
12
|
// src/separator/separator.tsx
|
|
13
13
|
var TagName = "hr";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
usePopoverDescription
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./4ZTL4ESZ.js";
|
|
5
5
|
import {
|
|
6
6
|
createElement,
|
|
7
7
|
createHook,
|
|
8
8
|
forwardRef
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./PTCNA5XT.js";
|
|
10
10
|
|
|
11
11
|
// src/hovercard/hovercard-description.tsx
|
|
12
12
|
var TagName = "p";
|
|
@@ -15,8 +15,7 @@ function isPointInPolygon(point, polygon) {
|
|
|
15
15
|
const where = (yi - yj) * (x - xi) - (xi - xj) * (y - yi);
|
|
16
16
|
if (yj < yi) {
|
|
17
17
|
if (y >= yj && y < yi) {
|
|
18
|
-
if (where === 0)
|
|
19
|
-
return true;
|
|
18
|
+
if (where === 0) return true;
|
|
20
19
|
if (where > 0) {
|
|
21
20
|
if (y === yj) {
|
|
22
21
|
if (y > vy) {
|
|
@@ -29,8 +28,7 @@ function isPointInPolygon(point, polygon) {
|
|
|
29
28
|
}
|
|
30
29
|
} else if (yi < yj) {
|
|
31
30
|
if (y > yi && y <= yj) {
|
|
32
|
-
if (where === 0)
|
|
33
|
-
return true;
|
|
31
|
+
if (where === 0) return true;
|
|
34
32
|
if (where < 0) {
|
|
35
33
|
if (y === yj) {
|
|
36
34
|
if (y < vy) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useButton
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./5NAURCQI.js";
|
|
5
5
|
import {
|
|
6
6
|
useDialogScopedContext
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./32IPIQBR.js";
|
|
8
8
|
import {
|
|
9
9
|
createElement,
|
|
10
10
|
createHook,
|
|
11
11
|
forwardRef
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./PTCNA5XT.js";
|
|
13
13
|
import {
|
|
14
14
|
useEvent
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./WX6L4ACS.js";
|
|
16
16
|
import {
|
|
17
17
|
__objRest,
|
|
18
18
|
__spreadProps,
|
|
19
19
|
__spreadValues
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./3YLGPPWQ.js";
|
|
21
21
|
|
|
22
22
|
// src/dialog/dialog-dismiss.tsx
|
|
23
23
|
import { useMemo } from "react";
|
|
@@ -31,8 +31,7 @@ var useDialogDismiss = createHook(
|
|
|
31
31
|
const onClickProp = props.onClick;
|
|
32
32
|
const onClick = useEvent((event) => {
|
|
33
33
|
onClickProp == null ? void 0 : onClickProp(event);
|
|
34
|
-
if (event.defaultPrevented)
|
|
35
|
-
return;
|
|
34
|
+
if (event.defaultPrevented) return;
|
|
36
35
|
store == null ? void 0 : store.hide();
|
|
37
36
|
});
|
|
38
37
|
const children = useMemo(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useDisclosureStoreProps
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./TUWQEMG5.js";
|
|
5
5
|
import {
|
|
6
6
|
useStore
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./FQ77EHUR.js";
|
|
8
8
|
|
|
9
9
|
// src/dialog/dialog-store.ts
|
|
10
10
|
import * as Core from "@ariakit/core/dialog/dialog-store";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useCompositeStoreProps
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./O6W3KMIU.js";
|
|
5
5
|
import {
|
|
6
6
|
useStore,
|
|
7
7
|
useStoreProps
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./FQ77EHUR.js";
|
|
9
9
|
|
|
10
10
|
// src/radio/radio-store.ts
|
|
11
11
|
import * as Core from "@ariakit/core/radio/radio-store";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CompositeContextProvider,
|
|
4
4
|
CompositeScopedContextProvider
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./TN5Y26CD.js";
|
|
6
6
|
import {
|
|
7
7
|
createStoreContext
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./PTCNA5XT.js";
|
|
9
9
|
|
|
10
10
|
// src/tag/tag-context.tsx
|
|
11
11
|
import { createContext } from "react";
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
groupItemsByRows,
|
|
6
6
|
isItem,
|
|
7
7
|
silentlyFocused
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./5VQZOHHZ.js";
|
|
9
9
|
import {
|
|
10
10
|
CompositeContextProvider,
|
|
11
11
|
useCompositeProviderContext
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./TN5Y26CD.js";
|
|
13
13
|
import {
|
|
14
14
|
useFocusable
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./DRL2GNLJ.js";
|
|
16
16
|
import {
|
|
17
17
|
createElement,
|
|
18
18
|
createHook,
|
|
19
19
|
forwardRef
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./PTCNA5XT.js";
|
|
21
21
|
import {
|
|
22
22
|
useBooleanEvent,
|
|
23
23
|
useEvent,
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
useSafeLayoutEffect,
|
|
26
26
|
useTransactionState,
|
|
27
27
|
useWrapElement
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./WX6L4ACS.js";
|
|
29
29
|
import {
|
|
30
30
|
__objRest,
|
|
31
31
|
__spreadProps,
|
|
32
32
|
__spreadValues
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./3YLGPPWQ.js";
|
|
34
34
|
|
|
35
35
|
// src/composite/composite.tsx
|
|
36
36
|
import { flatten2DArray, reverseArray } from "@ariakit/core/utils/array";
|
|
@@ -50,8 +50,7 @@ function isGrid(items) {
|
|
|
50
50
|
}
|
|
51
51
|
function isPrintableKey(event) {
|
|
52
52
|
const target = event.target;
|
|
53
|
-
if (target && !isTextField(target))
|
|
54
|
-
return false;
|
|
53
|
+
if (target && !isTextField(target)) return false;
|
|
55
54
|
return event.key.length === 1 && !event.ctrlKey && !event.metaKey;
|
|
56
55
|
}
|
|
57
56
|
function isModifierKey(event) {
|
|
@@ -61,20 +60,14 @@ function useKeyboardEventProxy(store, onKeyboardEvent, previousElementRef) {
|
|
|
61
60
|
return useEvent((event) => {
|
|
62
61
|
var _a;
|
|
63
62
|
onKeyboardEvent == null ? void 0 : onKeyboardEvent(event);
|
|
64
|
-
if (event.defaultPrevented)
|
|
65
|
-
|
|
66
|
-
if (event
|
|
67
|
-
|
|
68
|
-
if (
|
|
69
|
-
return;
|
|
70
|
-
if (isModifierKey(event))
|
|
71
|
-
return;
|
|
72
|
-
if (isPrintableKey(event))
|
|
73
|
-
return;
|
|
63
|
+
if (event.defaultPrevented) return;
|
|
64
|
+
if (event.isPropagationStopped()) return;
|
|
65
|
+
if (!isSelfTarget(event)) return;
|
|
66
|
+
if (isModifierKey(event)) return;
|
|
67
|
+
if (isPrintableKey(event)) return;
|
|
74
68
|
const state = store.getState();
|
|
75
69
|
const activeElement = (_a = getEnabledItem(store, state.activeId)) == null ? void 0 : _a.element;
|
|
76
|
-
if (!activeElement)
|
|
77
|
-
return;
|
|
70
|
+
if (!activeElement) return;
|
|
78
71
|
const _b = event, { view } = _b, eventInit = __objRest(_b, ["view"]);
|
|
79
72
|
const previousElement = previousElementRef == null ? void 0 : previousElementRef.current;
|
|
80
73
|
if (activeElement !== previousElement) {
|
|
@@ -101,10 +94,8 @@ function useScheduleFocus(store) {
|
|
|
101
94
|
);
|
|
102
95
|
useEffect(() => {
|
|
103
96
|
const activeElement = activeItem == null ? void 0 : activeItem.element;
|
|
104
|
-
if (!scheduled)
|
|
105
|
-
|
|
106
|
-
if (!activeElement)
|
|
107
|
-
return;
|
|
97
|
+
if (!scheduled) return;
|
|
98
|
+
if (!activeElement) return;
|
|
108
99
|
setScheduled(false);
|
|
109
100
|
activeElement.focus({ preventScroll: true });
|
|
110
101
|
}, [activeItem, scheduled]);
|
|
@@ -138,33 +129,23 @@ var useComposite = createHook(
|
|
|
138
129
|
);
|
|
139
130
|
useEffect(() => {
|
|
140
131
|
var _a2;
|
|
141
|
-
if (!store)
|
|
142
|
-
|
|
143
|
-
if (!
|
|
144
|
-
|
|
145
|
-
if (!composite)
|
|
146
|
-
return;
|
|
147
|
-
if (!focusOnMove)
|
|
148
|
-
return;
|
|
132
|
+
if (!store) return;
|
|
133
|
+
if (!moves) return;
|
|
134
|
+
if (!composite) return;
|
|
135
|
+
if (!focusOnMove) return;
|
|
149
136
|
const { activeId: activeId2 } = store.getState();
|
|
150
137
|
const itemElement = (_a2 = getEnabledItem(store, activeId2)) == null ? void 0 : _a2.element;
|
|
151
|
-
if (!itemElement)
|
|
152
|
-
return;
|
|
138
|
+
if (!itemElement) return;
|
|
153
139
|
focusIntoView(itemElement);
|
|
154
140
|
}, [store, moves, composite, focusOnMove]);
|
|
155
141
|
useSafeLayoutEffect(() => {
|
|
156
|
-
if (!store)
|
|
157
|
-
|
|
158
|
-
if (!
|
|
159
|
-
return;
|
|
160
|
-
if (!composite)
|
|
161
|
-
return;
|
|
142
|
+
if (!store) return;
|
|
143
|
+
if (!moves) return;
|
|
144
|
+
if (!composite) return;
|
|
162
145
|
const { baseElement, activeId: activeId2 } = store.getState();
|
|
163
146
|
const isSelfAcive = activeId2 === null;
|
|
164
|
-
if (!isSelfAcive)
|
|
165
|
-
|
|
166
|
-
if (!baseElement)
|
|
167
|
-
return;
|
|
147
|
+
if (!isSelfAcive) return;
|
|
148
|
+
if (!baseElement) return;
|
|
168
149
|
const previousElement = previousElementRef.current;
|
|
169
150
|
previousElementRef.current = null;
|
|
170
151
|
if (previousElement) {
|
|
@@ -178,20 +159,15 @@ var useComposite = createHook(
|
|
|
178
159
|
const virtualFocus = store.useState("virtualFocus");
|
|
179
160
|
useSafeLayoutEffect(() => {
|
|
180
161
|
var _a2;
|
|
181
|
-
if (!store)
|
|
182
|
-
|
|
183
|
-
if (!
|
|
184
|
-
return;
|
|
185
|
-
if (!virtualFocus)
|
|
186
|
-
return;
|
|
162
|
+
if (!store) return;
|
|
163
|
+
if (!composite) return;
|
|
164
|
+
if (!virtualFocus) return;
|
|
187
165
|
const previousElement = previousElementRef.current;
|
|
188
166
|
previousElementRef.current = null;
|
|
189
|
-
if (!previousElement)
|
|
190
|
-
return;
|
|
167
|
+
if (!previousElement) return;
|
|
191
168
|
const activeElement = (_a2 = getEnabledItem(store, activeId)) == null ? void 0 : _a2.element;
|
|
192
169
|
const relatedTarget = activeElement || getActiveElement(previousElement);
|
|
193
|
-
if (relatedTarget === previousElement)
|
|
194
|
-
return;
|
|
170
|
+
if (relatedTarget === previousElement) return;
|
|
195
171
|
fireBlurEvent(previousElement, { relatedTarget });
|
|
196
172
|
}, [store, activeId, virtualFocus, composite]);
|
|
197
173
|
const onKeyDownCapture = useKeyboardEventProxy(
|
|
@@ -207,13 +183,10 @@ var useComposite = createHook(
|
|
|
207
183
|
const onFocusCaptureProp = props.onFocusCapture;
|
|
208
184
|
const onFocusCapture = useEvent((event) => {
|
|
209
185
|
onFocusCaptureProp == null ? void 0 : onFocusCaptureProp(event);
|
|
210
|
-
if (event.defaultPrevented)
|
|
211
|
-
|
|
212
|
-
if (!store)
|
|
213
|
-
return;
|
|
186
|
+
if (event.defaultPrevented) return;
|
|
187
|
+
if (!store) return;
|
|
214
188
|
const { virtualFocus: virtualFocus2 } = store.getState();
|
|
215
|
-
if (!virtualFocus2)
|
|
216
|
-
return;
|
|
189
|
+
if (!virtualFocus2) return;
|
|
217
190
|
const previousActiveElement = event.relatedTarget;
|
|
218
191
|
const isSilentlyFocused = silentlyFocused(event.currentTarget);
|
|
219
192
|
if (isSelfTarget(event) && isSilentlyFocused) {
|
|
@@ -224,12 +197,9 @@ var useComposite = createHook(
|
|
|
224
197
|
const onFocusProp = props.onFocus;
|
|
225
198
|
const onFocus = useEvent((event) => {
|
|
226
199
|
onFocusProp == null ? void 0 : onFocusProp(event);
|
|
227
|
-
if (event.defaultPrevented)
|
|
228
|
-
|
|
229
|
-
if (!
|
|
230
|
-
return;
|
|
231
|
-
if (!store)
|
|
232
|
-
return;
|
|
200
|
+
if (event.defaultPrevented) return;
|
|
201
|
+
if (!composite) return;
|
|
202
|
+
if (!store) return;
|
|
233
203
|
const { relatedTarget } = event;
|
|
234
204
|
const { virtualFocus: virtualFocus2 } = store.getState();
|
|
235
205
|
if (virtualFocus2) {
|
|
@@ -244,13 +214,10 @@ var useComposite = createHook(
|
|
|
244
214
|
const onBlurCapture = useEvent((event) => {
|
|
245
215
|
var _a2;
|
|
246
216
|
onBlurCaptureProp == null ? void 0 : onBlurCaptureProp(event);
|
|
247
|
-
if (event.defaultPrevented)
|
|
248
|
-
|
|
249
|
-
if (!store)
|
|
250
|
-
return;
|
|
217
|
+
if (event.defaultPrevented) return;
|
|
218
|
+
if (!store) return;
|
|
251
219
|
const { virtualFocus: virtualFocus2, activeId: activeId2 } = store.getState();
|
|
252
|
-
if (!virtualFocus2)
|
|
253
|
-
return;
|
|
220
|
+
if (!virtualFocus2) return;
|
|
254
221
|
const activeElement = (_a2 = getEnabledItem(store, activeId2)) == null ? void 0 : _a2.element;
|
|
255
222
|
const nextActiveElement = event.relatedTarget;
|
|
256
223
|
const nextActiveElementIsItem = isItem(store, nextActiveElement);
|
|
@@ -279,22 +246,17 @@ var useComposite = createHook(
|
|
|
279
246
|
const onKeyDown = useEvent((event) => {
|
|
280
247
|
var _a2;
|
|
281
248
|
onKeyDownProp == null ? void 0 : onKeyDownProp(event);
|
|
282
|
-
if (event.defaultPrevented)
|
|
283
|
-
|
|
284
|
-
if (!
|
|
285
|
-
return;
|
|
286
|
-
if (!isSelfTarget(event))
|
|
287
|
-
return;
|
|
249
|
+
if (event.defaultPrevented) return;
|
|
250
|
+
if (!store) return;
|
|
251
|
+
if (!isSelfTarget(event)) return;
|
|
288
252
|
const { orientation, items, renderedItems, activeId: activeId2 } = store.getState();
|
|
289
253
|
const activeItem = getEnabledItem(store, activeId2);
|
|
290
|
-
if ((_a2 = activeItem == null ? void 0 : activeItem.element) == null ? void 0 : _a2.isConnected)
|
|
291
|
-
return;
|
|
254
|
+
if ((_a2 = activeItem == null ? void 0 : activeItem.element) == null ? void 0 : _a2.isConnected) return;
|
|
292
255
|
const isVertical = orientation !== "horizontal";
|
|
293
256
|
const isHorizontal = orientation !== "vertical";
|
|
294
257
|
const grid = isGrid(renderedItems);
|
|
295
258
|
const isHorizontalKey = event.key === "ArrowLeft" || event.key === "ArrowRight" || event.key === "Home" || event.key === "End";
|
|
296
|
-
if (isHorizontalKey && isTextField(event.currentTarget))
|
|
297
|
-
return;
|
|
259
|
+
if (isHorizontalKey && isTextField(event.currentTarget)) return;
|
|
298
260
|
const up = () => {
|
|
299
261
|
if (grid) {
|
|
300
262
|
const item = items && findFirstEnabledItemInTheLastRow(items);
|
|
@@ -316,8 +278,7 @@ var useComposite = createHook(
|
|
|
316
278
|
if (action) {
|
|
317
279
|
const id = action();
|
|
318
280
|
if (id !== void 0) {
|
|
319
|
-
if (!moveOnKeyPressProp(event))
|
|
320
|
-
return;
|
|
281
|
+
if (!moveOnKeyPressProp(event)) return;
|
|
321
282
|
event.preventDefault();
|
|
322
283
|
store.move(id);
|
|
323
284
|
}
|
|
@@ -330,12 +291,9 @@ var useComposite = createHook(
|
|
|
330
291
|
);
|
|
331
292
|
const activeDescendant = store.useState((state) => {
|
|
332
293
|
var _a2;
|
|
333
|
-
if (!store)
|
|
334
|
-
|
|
335
|
-
if (!
|
|
336
|
-
return;
|
|
337
|
-
if (!state.virtualFocus)
|
|
338
|
-
return;
|
|
294
|
+
if (!store) return;
|
|
295
|
+
if (!composite) return;
|
|
296
|
+
if (!state.virtualFocus) return;
|
|
339
297
|
return (_a2 = getEnabledItem(store, state.activeId)) == null ? void 0 : _a2.id;
|
|
340
298
|
});
|
|
341
299
|
props = __spreadProps(__spreadValues({
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useHeading
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./6JLOZRF5.js";
|
|
5
5
|
import {
|
|
6
6
|
DialogHeadingContext
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./32IPIQBR.js";
|
|
8
8
|
import {
|
|
9
9
|
createElement,
|
|
10
10
|
createHook,
|
|
11
11
|
forwardRef
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./PTCNA5XT.js";
|
|
13
13
|
import {
|
|
14
14
|
useId,
|
|
15
15
|
useSafeLayoutEffect
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./WX6L4ACS.js";
|
|
17
17
|
import {
|
|
18
18
|
__objRest,
|
|
19
19
|
__spreadValues
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./3YLGPPWQ.js";
|
|
21
21
|
|
|
22
22
|
// src/dialog/dialog-heading.tsx
|
|
23
23
|
import { useContext } from "react";
|