@ariakit/react-core 0.4.7 → 0.4.9
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 +29 -0
- package/cjs/__chunks/{J23ACBIS.cjs → 2NFC7VSY.cjs} +17 -17
- package/cjs/__chunks/{6FPOXFLO.cjs → 2P4N5BIR.cjs} +7 -7
- package/cjs/__chunks/{XL63LIJ7.cjs → 32EK4BGY.cjs} +2 -2
- package/cjs/__chunks/{GEMFHX6H.cjs → 3GUEWEPJ.cjs} +82 -142
- package/cjs/__chunks/{XNZYNVWR.cjs → 3HGFVGHB.cjs} +2 -4
- package/cjs/__chunks/{QKQVW2OL.cjs → 3MQN464L.cjs} +5 -5
- package/cjs/__chunks/{2NU7KANK.cjs → 3RWROHBG.cjs} +36 -55
- package/cjs/__chunks/{RJXJZXU4.cjs → 4LXCDDOO.cjs} +7 -7
- package/cjs/__chunks/{IU6B7LBR.cjs → 4S6ECZOG.cjs} +8 -8
- package/cjs/__chunks/{I4MVAAJP.cjs → 54XFMNDS.cjs} +10 -16
- package/cjs/__chunks/{V5HJPNDM.cjs → 5KP7SROC.cjs} +18 -23
- package/cjs/__chunks/{J4TOY3CV.cjs → 67WF5W26.cjs} +9 -11
- package/cjs/__chunks/{Z72SS67C.cjs → 6HSWYGH7.cjs} +36 -46
- package/cjs/__chunks/{SMXQY72C.cjs → 6UCNERDT.cjs} +6 -6
- package/cjs/__chunks/7HGGYTZO.cjs +32 -0
- package/cjs/__chunks/{WJWRXAE2.cjs → 7JCD5H54.cjs} +10 -10
- package/cjs/__chunks/{6UJTOT6Y.cjs → 7K2RM2SD.cjs} +2 -2
- package/cjs/__chunks/{VSEZRJQP.cjs → 7LTYTJQA.cjs} +2 -2
- package/cjs/__chunks/{RGBIX753.cjs → 7YWAU7T3.cjs} +4 -4
- package/cjs/__chunks/{QHEY2OM5.cjs → AALEVRDH.cjs} +86 -174
- package/cjs/__chunks/{7VN5EZ4Y.cjs → AMARRBCF.cjs} +5 -5
- package/cjs/__chunks/{C5YBMSVA.cjs → AN5QHTDF.cjs} +12 -12
- package/cjs/__chunks/{SFHZVYRX.cjs → AVQVVBHC.cjs} +16 -16
- package/cjs/__chunks/{S5ZSEKI4.cjs → AWQRY4G6.cjs} +37 -51
- package/cjs/__chunks/{DIFM3L3J.cjs → B7ZXMKTZ.cjs} +66 -90
- package/cjs/__chunks/{RKAA2DJ6.cjs → BHVPU2FQ.cjs} +9 -9
- package/cjs/__chunks/{5WO5IPAV.cjs → BPP77UGW.cjs} +6 -6
- package/cjs/__chunks/{6ZZYUFPW.cjs → BV5PE6PZ.cjs} +5 -10
- package/cjs/__chunks/{D5YFJQWS.cjs → C55AGIGA.cjs} +7 -7
- package/cjs/__chunks/{73ENVLSL.cjs → C57QBLY4.cjs} +12 -12
- package/cjs/__chunks/{JBIQ5SAD.cjs → C6F3GNG7.cjs} +10 -10
- package/cjs/__chunks/{DSGXHMTR.cjs → CEAT6DDR.cjs} +5 -5
- package/cjs/__chunks/{CAWDTTCO.cjs → CGOV3ADF.cjs} +5 -5
- package/cjs/__chunks/{T6EOHNY7.cjs → DMH7HONV.cjs} +19 -29
- package/cjs/__chunks/{L6NXSTRB.cjs → DRV5RKI2.cjs} +33 -58
- package/cjs/__chunks/{KPQSDZEK.cjs → F3WSRIQH.cjs} +9 -9
- package/cjs/__chunks/{T26VEGNG.cjs → F4DU6MSG.cjs} +6 -6
- package/cjs/__chunks/FWLIMVEY.cjs +40 -0
- package/cjs/__chunks/{6EWVPQDA.cjs → G7N4ZNGS.cjs} +17 -17
- package/cjs/__chunks/{B6WDC6K5.cjs → GDXQYUZD.cjs} +11 -11
- package/cjs/__chunks/{ZXXHG5BK.cjs → HEJFPAL3.cjs} +5 -5
- package/cjs/__chunks/{GQEDBQIJ.cjs → HHTQYHYL.cjs} +5 -5
- package/cjs/__chunks/{TL2ZGAUB.cjs → HU3NFQOT.cjs} +6 -6
- package/cjs/__chunks/HWXUZE7H.cjs +49 -0
- package/cjs/__chunks/{3VKSP77V.cjs → I5DDKOOP.cjs} +30 -43
- package/cjs/__chunks/{3P3P4ECD.cjs → IKRINWVC.cjs} +14 -14
- package/cjs/__chunks/{LJFI6VVH.cjs → IUBWLCM6.cjs} +14 -15
- package/cjs/__chunks/{QZTEAIEB.cjs → K32UV4VJ.cjs} +9 -9
- package/cjs/__chunks/{FZAUH4KL.cjs → KDCRYBUX.cjs} +13 -13
- package/cjs/__chunks/{IPFBKOFN.cjs → KMTMWGHG.cjs} +4 -4
- package/cjs/__chunks/{OX5LLZZB.cjs → KSN22F3S.cjs} +39 -57
- package/cjs/__chunks/{KGF55T6Z.cjs → LGTMAYKZ.cjs} +33 -47
- package/cjs/__chunks/{NYCVZQTV.cjs → LKQMU2KU.cjs} +5 -5
- package/cjs/__chunks/{N7WKRWT7.cjs → LSIE3AZT.cjs} +121 -182
- package/cjs/__chunks/{Y35VEVEA.cjs → LXIK4XDQ.cjs} +17 -17
- package/cjs/__chunks/{Q3R7NEK6.cjs → M5IWBORB.cjs} +16 -18
- package/cjs/__chunks/{SOLTCMT3.cjs → MA4SJD6E.cjs} +4 -4
- package/cjs/__chunks/{N3OBAM6Q.cjs → MTP2XD7A.cjs} +23 -28
- package/cjs/__chunks/{7YLCVXZ7.cjs → MTP72GGY.cjs} +5 -10
- package/cjs/__chunks/{VQSZN4ZZ.cjs → MUQXBDUR.cjs} +13 -18
- package/cjs/__chunks/{DXJ2T33U.cjs → N2JBBOXS.cjs} +5 -5
- package/cjs/__chunks/{3VQCUG5S.cjs → NMKMMUOR.cjs} +6 -7
- package/cjs/__chunks/{XOGGS4JT.cjs → NYZXQT7P.cjs} +8 -8
- package/cjs/__chunks/{OJM6XVJZ.cjs → O2RDP7Y5.cjs} +31 -34
- package/cjs/__chunks/{JY4FTKAQ.cjs → O3ON5SWH.cjs} +5 -5
- package/cjs/__chunks/{H57E5ZUT.cjs → OMNFVKVS.cjs} +5 -5
- package/cjs/__chunks/OUJ2OAAV.cjs +37 -0
- package/cjs/__chunks/{DR6TZZCO.cjs → OVBWMHNO.cjs} +12 -21
- package/cjs/__chunks/{KSANDLPZ.cjs → OZFFK5VS.cjs} +16 -21
- package/cjs/__chunks/P3FJX7GU.cjs +31 -0
- package/cjs/__chunks/{FWTMT3XN.cjs → P7J6L26K.cjs} +12 -13
- package/cjs/__chunks/{XHX57Y3O.cjs → PNSEE5QV.cjs} +6 -6
- package/cjs/__chunks/{RZJIUKJK.cjs → PSYRVXCO.cjs} +5 -5
- package/cjs/__chunks/{B37P2XPZ.cjs → PUMYQXTD.cjs} +27 -41
- package/cjs/__chunks/{NI34BXW7.cjs → QF73DU45.cjs} +7 -7
- package/cjs/__chunks/{KN72PYUW.cjs → QMBTS2OC.cjs} +28 -36
- package/cjs/__chunks/{WJRUE2R2.cjs → R3DZOXNR.cjs} +16 -16
- package/cjs/__chunks/{FKEHXOZH.cjs → RBHGB7EB.cjs} +6 -6
- package/cjs/__chunks/{BYOVTGKW.cjs → RE5WCSMF.cjs} +6 -6
- package/cjs/__chunks/RMSWSIPT.cjs +40 -0
- package/cjs/__chunks/{DQCMG5NY.cjs → RRCMCI3I.cjs} +15 -18
- package/cjs/__chunks/{SOECYHV7.cjs → SDBASOGF.cjs} +4 -4
- package/cjs/__chunks/{6YNUIZOM.cjs → SQTAYASR.cjs} +24 -27
- package/cjs/__chunks/{S6LYARLY.cjs → SS36X3TM.cjs} +5 -5
- package/cjs/__chunks/{Q6XPDC6H.cjs → SZV5XBXJ.cjs} +8 -8
- package/cjs/__chunks/TGJYPCV6.cjs +31 -0
- package/cjs/__chunks/{TLQ4Z6Y3.cjs → TJR4NN4V.cjs} +4 -6
- package/cjs/__chunks/{7SM32XGS.cjs → TLYGB6DV.cjs} +31 -41
- package/cjs/__chunks/{NA6K3SI7.cjs → TNYFOC6H.cjs} +30 -43
- package/cjs/__chunks/{K3BALMJM.cjs → TTVWSMCC.cjs} +12 -12
- package/cjs/__chunks/TTZ2BSWN.cjs +37 -0
- package/cjs/__chunks/{LVHGII5Y.cjs → U46ICSYF.cjs} +12 -12
- package/cjs/__chunks/{7BWVJDM5.cjs → UISO72VU.cjs} +6 -6
- package/cjs/__chunks/{7SXMOZBC.cjs → UKQU3PPH.cjs} +6 -6
- package/cjs/__chunks/{ZKONUU4L.cjs → V2557HFX.cjs} +19 -22
- package/cjs/__chunks/{ZWJIMANM.cjs → VPKU3AVX.cjs} +81 -123
- package/cjs/__chunks/{ALRD57MK.cjs → VQ52RGDH.cjs} +29 -41
- package/cjs/__chunks/{EEY4ZWA3.cjs → VRPZ4HD5.cjs} +36 -46
- package/cjs/__chunks/{7WJNX42F.cjs → WAXJ4YD7.cjs} +36 -43
- package/cjs/__chunks/{KK65NZHC.cjs → WQXPJKQO.cjs} +7 -12
- package/cjs/__chunks/{IZ2J6IIQ.cjs → WT6AUJWV.cjs} +16 -69
- package/cjs/__chunks/{7X6S652E.cjs → WYGALZGN.cjs} +14 -15
- package/cjs/__chunks/{RBQK5YSP.cjs → Y27X3JNF.cjs} +5 -5
- package/cjs/__chunks/{BINHWFDM.cjs → YAI2LUHU.cjs} +8 -8
- package/cjs/__chunks/{J3LHZMCN.cjs → YGEHBXGA.cjs} +63 -109
- package/cjs/__chunks/{3ND7K6FF.cjs → YS72JDSE.cjs} +5 -8
- package/cjs/__chunks/{H4A34XBV.cjs → ZBR3CZBX.cjs} +5 -5
- package/cjs/__chunks/ZM7XHBNF.cjs +37 -0
- 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 +87 -46
- package/cjs/combobox/combobox-item-value.d.cts +27 -5
- package/cjs/combobox/combobox-item-value.d.ts +27 -5
- 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-push.d.cts +2 -2
- package/cjs/form/form-push.d.ts +2 -2
- 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-remove.d.cts +2 -2
- package/cjs/form/form-remove.d.ts +2 -2
- 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 -8
- package/cjs/utils/hooks.d.cts +1 -10
- package/cjs/utils/hooks.d.ts +1 -10
- package/cjs/utils/misc.cjs +3 -3
- package/cjs/utils/store.cjs +5 -5
- package/cjs/utils/store.d.cts +41 -0
- package/cjs/utils/store.d.ts +41 -0
- 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/{QESPTHDX.js → 2D53SX6Q.js} +2 -2
- package/esm/__chunks/{DTNGDFNU.js → 2GXGCHW6.js} +12 -22
- package/esm/__chunks/{3M4W2SZ7.js → 2PGBN2Y4.js} +8 -13
- package/esm/__chunks/{7NGG3X6T.js → 2UJDTHC7.js} +4 -4
- package/esm/__chunks/{QFO5OLDL.js → 2UWK5GNE.js} +65 -125
- package/esm/__chunks/{UN4MKOLN.js → 3CCTMYB6.js} +55 -143
- package/esm/__chunks/{MYBFWPQK.js → 3R3N43YO.js} +5 -6
- package/esm/__chunks/{2YFUM7X5.js → 42UBRT4A.js} +20 -34
- package/esm/__chunks/{OTPVYNVT.js → 43UOHFGG.js} +28 -53
- package/esm/__chunks/{GN2MH2Y2.js → 4FY2MBIB.js} +2 -2
- package/esm/__chunks/{URSEQETI.js → 54MGSIOI.js} +2 -2
- package/esm/__chunks/{3IEDWLST.js → 5VQZOHHZ.js} +5 -10
- package/esm/__chunks/{MKDDWKFK.js → 63XF7ACK.js} +5 -10
- package/esm/__chunks/{B4SPVRVU.js → 656RZDJD.js} +2 -2
- package/esm/__chunks/{67ZQCY2E.js → 6BE7QOX5.js} +4 -4
- package/esm/__chunks/{OIFL4DQB.js → 6FZVKQWP.js} +5 -5
- package/esm/__chunks/{VC5OPI3O.js → 6ZVAPMHT.js} +8 -11
- package/esm/__chunks/{IH5KTPNA.js → 74NFH3UH.js} +4 -4
- package/esm/__chunks/{42G2NDPP.js → 7BSNT25J.js} +6 -6
- package/esm/__chunks/{4SXGPXPS.js → AOUGVQZ3.js} +10 -19
- package/esm/__chunks/{G3HTND37.js → AUGWLYYL.js} +1 -1
- package/esm/__chunks/{DGQNUP7F.js → AXRBYZQP.js} +1 -1
- package/esm/__chunks/{ZUNM32WK.js → AYTT7WWV.js} +2 -2
- package/esm/__chunks/{4Q67VK3V.js → B6XZVSMQ.js} +26 -44
- package/esm/__chunks/{TNHM3SUC.js → BSEL4YAF.js} +16 -26
- package/esm/__chunks/{FNENEDAU.js → BTK3EXKD.js} +2 -2
- package/esm/__chunks/{5BXPMNKT.js → CAGM4AEJ.js} +3 -3
- package/esm/__chunks/{GO53B7AR.js → CBC47ZYL.js} +3 -3
- package/esm/__chunks/{ZPKRQJBS.js → CTQR3VDU.js} +2 -2
- package/esm/__chunks/{O7HGX5PA.js → DS36B3MQ.js} +19 -33
- package/esm/__chunks/{J7UNXP2A.js → DU4D3UCJ.js} +2 -2
- package/esm/__chunks/{3L4UCDWT.js → DWZ7E5TJ.js} +3 -3
- package/esm/__chunks/{CLDRDBYI.js → DYHFBFEH.js} +2 -2
- package/esm/__chunks/{RW4EN5HP.js → E5PXVSMA.js} +2 -2
- package/esm/__chunks/{GDEEEVWP.js → EJOTW52C.js} +2 -2
- package/esm/__chunks/{SYFUIAXQ.js → ESSM74HH.js} +4 -5
- package/esm/__chunks/{ELXIVOWC.js → FGSEH62K.js} +4 -4
- package/esm/__chunks/{FU7RTSEI.js → FMYQNSCK.js} +1 -1
- package/esm/__chunks/{G5PRNFCL.js → GO2SPXQX.js} +2 -2
- package/esm/__chunks/{PVRT36VL.js → H2MF5R7J.js} +2 -2
- package/esm/__chunks/{DYAGAZRT.js → HGZKAGPL.js} +49 -95
- package/esm/__chunks/{YIF72NQG.js → HKOOKEDE.js} +5 -7
- package/esm/__chunks/{SYLYP2IN.js → HQFKUKP3.js} +39 -63
- package/esm/__chunks/{5PY7H3O6.js → HT3UEUDM.js} +3 -3
- package/esm/__chunks/{PGA74ZJ4.js → IEKMDIUY.js} +3 -3
- package/esm/__chunks/{7CGRXEUR.js → IGFP5YPG.js} +3 -3
- package/esm/__chunks/{SORNFOKV.js → IIER4YBF.js} +2 -2
- package/esm/__chunks/{2N6FBM3O.js → ILNAUGA4.js} +2 -2
- package/esm/__chunks/{NXZX7GS5.js → IZAFJHVY.js} +6 -6
- package/esm/__chunks/{PKN6MQJP.js → JS55N6L7.js} +15 -25
- package/esm/__chunks/{HOOW7GH2.js → JZUY7XL6.js} +6 -6
- package/esm/__chunks/{53CQGCDZ.js → K2ZF5NU7.js} +5 -8
- package/esm/__chunks/{6MDCAUOE.js → K7FXVWIT.js} +20 -34
- package/esm/__chunks/{P7YNSWBG.js → KB6RR6FL.js} +5 -7
- package/esm/__chunks/{QT5BCKOY.js → KCVNYWKF.js} +4 -4
- package/esm/__chunks/{PFZ7V44A.js → KD77H3QU.js} +4 -4
- package/esm/__chunks/{5UDX7WKK.js → KGK2TTFO.js} +2 -2
- package/esm/__chunks/{OJBHU3NX.js → KHUR3XXK.js} +10 -13
- package/esm/__chunks/{FXF6FFAU.js → KZ2S4ZC5.js} +3 -3
- package/esm/__chunks/{HGKZNVMH.js → L3MGZQ3I.js} +2 -2
- package/esm/__chunks/{272IHWKI.js → L7GTXQJP.js} +16 -26
- package/esm/__chunks/{A22SDPU3.js → LG4RFBHV.js} +4 -4
- package/esm/__chunks/{IX2MD5WD.js → LOI6GHIP.js} +2 -2
- package/esm/__chunks/{FG25KND2.js → LWDIJ7XK.js} +3 -3
- package/esm/__chunks/{RD2VYBH6.js → MS4VD4RJ.js} +8 -8
- package/esm/__chunks/{NETDJWDX.js → N5E4LT7W.js} +4 -4
- package/esm/__chunks/{5EKYTDKF.js → NAXN2XAB.js} +16 -28
- package/esm/__chunks/{75IH3TOO.js → NSFBIL2Z.js} +9 -14
- package/esm/__chunks/{D6WBY7EV.js → O37V6X5C.js} +4 -4
- package/esm/__chunks/{KVYXDH67.js → O3TNZQBF.js} +8 -11
- package/esm/__chunks/{CBOSGWHO.js → OBZMLI6J.js} +17 -30
- package/esm/__chunks/{R3QDAIOX.js → OYB5INBF.js} +3 -3
- package/esm/__chunks/{F6GOJSFF.js → P2OTTZSX.js} +2 -2
- package/esm/__chunks/{U2FYKKWI.js → P5CRXI7E.js} +6 -6
- package/esm/__chunks/{OEBCGVCG.js → PLQDTVXM.js} +7 -10
- package/esm/__chunks/{UV4QOTER.js → QA27FYGF.js} +18 -31
- package/esm/__chunks/{MIE7UGQE.js → QS6GU7GL.js} +5 -6
- package/esm/__chunks/{Y2HD42YR.js → QVGW35GB.js} +4 -4
- package/esm/__chunks/{X5ETRS5D.js → QYS5FHDY.js} +2 -2
- package/esm/__chunks/{SJ5YBTFK.js → RGUP62TM.js} +1 -1
- package/esm/__chunks/{EKUOHYM2.js → RPLYUYNN.js} +2 -2
- package/esm/__chunks/{4ROCFRIN.js → SK3NAZA3.js} +7 -13
- package/esm/__chunks/{5XYSEKV3.js → SLQXY5KG.js} +25 -44
- package/esm/__chunks/{S6GWHPQZ.js → SOKV3TSX.js} +2 -2
- package/esm/__chunks/{PKNBS4Q6.js → T3RMEPVH.js} +3 -5
- package/esm/__chunks/{X3TS2MQG.js → TCAGH6BH.js} +2 -2
- package/esm/__chunks/{A6ABOV6V.js → THRI7H7K.js} +6 -7
- package/esm/__chunks/{XHMHIT7V.js → TNITL632.js} +2 -2
- package/esm/__chunks/{CN7DDZL2.js → TT2355LN.js} +78 -139
- package/esm/__chunks/{QMBMAMY2.js → TW35PKTK.js} +48 -90
- package/esm/__chunks/{RV6RYOXG.js → TWCRTUOB.js} +2 -2
- package/esm/__chunks/{PDTGHX74.js → ULASSYJG.js} +15 -22
- package/esm/__chunks/{3HD5ZDMZ.js → UNZQGRPO.js} +13 -21
- package/esm/__chunks/{LAKDACE6.js → UPCYNCRR.js} +3 -3
- package/esm/__chunks/{GRUZR3XS.js → UQBPM777.js} +11 -16
- package/esm/__chunks/{WH6Q5C3D.js → UVQLZ7T5.js} +2 -2
- package/esm/__chunks/{2INQ6K4L.js → WEEEI3KU.js} +4 -4
- package/esm/__chunks/{53KINMNA.js → WENSINUV.js} +2 -2
- package/esm/__chunks/{ZPGENCAP.js → WSQNIDGC.js} +2 -2
- package/esm/__chunks/{HJER6CSZ.js → X5LAA6JI.js} +6 -6
- package/esm/__chunks/{SD6TYZJO.js → X7QOZUD3.js} +2 -4
- package/esm/__chunks/{WHHX3V5K.js → XJENYSWS.js} +2 -2
- package/esm/__chunks/{IOEKCBMU.js → XMDAT5SM.js} +2 -2
- package/esm/__chunks/{FPZBL2HG.js → Y2MAXF6C.js} +3 -3
- package/esm/__chunks/{DDNAPH23.js → YJS26JVG.js} +6 -11
- package/esm/__chunks/{OPTPHWV7.js → Z32BISHQ.js} +11 -64
- package/esm/__chunks/{2LDES2MP.js → ZPO4YZYE.js} +3 -3
- package/esm/__chunks/{KMGRI767.js → ZRJAYXZW.js} +10 -15
- 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.d.ts +27 -5
- package/esm/combobox/combobox-item-value.js +81 -40
- 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.d.ts +2 -2
- 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.d.ts +2 -2
- 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.d.ts +1 -10
- package/esm/utils/hooks.js +3 -7
- package/esm/utils/misc.js +2 -2
- package/esm/utils/store.d.ts +41 -0
- 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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @ariakit/react-core
|
|
2
2
|
|
|
3
|
+
## 0.4.9
|
|
4
|
+
|
|
5
|
+
### `aria-selected` on composite items
|
|
6
|
+
|
|
7
|
+
Composite items like [`ComboboxItem`](https://ariakit.org/reference/combobox-item) no longer have the `aria-selected` attribute automatically set when focused. This attribute was previously used to address an old bug in Google Chrome, but it's no longer needed. Now, it's only set when the item is actually selected, such as in a select widget or a multi-selectable combobox.
|
|
8
|
+
|
|
9
|
+
This change shouldn't affect most users since the `aria-selected` attribute is not part of the public API and is not recommended as a [CSS selector](https://ariakit.org/guide/styling#css-selectors) (use [`[data-active-item]`](https://ariakit.org/guide/styling#data-active-item) instead). However, if you have snapshot tests, you may need to update them.
|
|
10
|
+
|
|
11
|
+
### Other updates
|
|
12
|
+
|
|
13
|
+
- Removed `useControlledState` and `useRefId` hooks.
|
|
14
|
+
- Added [`userValue`](https://ariakit.org/reference/combobox-item-value#uservalue) prop to [`ComboboxItemValue`](https://ariakit.org/reference/combobox-item-value).
|
|
15
|
+
- Improved JSDocs.
|
|
16
|
+
- Updated dependencies: `@ariakit/core@0.4.9`
|
|
17
|
+
|
|
18
|
+
## 0.4.8
|
|
19
|
+
|
|
20
|
+
### Accessing selected tabs when disabled
|
|
21
|
+
|
|
22
|
+
A [Tab](https://ariakit.org/components/tab) component that is both selected and disabled will now remain accessible to keyboard focus even if the [`accessibleWhenDisabled`](https://ariakit.org/reference/tab#accessiblewhendisabled) prop is set to `false`. This ensures users can navigate to other tabs using the keyboard.
|
|
23
|
+
|
|
24
|
+
### Other updates
|
|
25
|
+
|
|
26
|
+
- Fixed [Dialog](https://ariakit.org/components/dialog) to prevent smooth scrolling on hide.
|
|
27
|
+
- Fixed [Hovercard](https://ariakit.org/components/hovercard) unexpectedly hiding when scrolling in Safari.
|
|
28
|
+
- Added a README file to the package.
|
|
29
|
+
- Improved JSDocs.
|
|
30
|
+
- Updated dependencies: `@ariakit/core@0.4.8`
|
|
31
|
+
|
|
3
32
|
## 0.4.7
|
|
4
33
|
|
|
5
34
|
- Added React 19 to peer dependencies.
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _TTVWSMCCcjs = require('./TTVWSMCC.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _O3ON5SWHcjs = require('./O3ON5SWH.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _F4DU6MSGcjs = require('./F4DU6MSG.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _U46ICSYFcjs = require('./U46ICSYF.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _QF73DU45cjs = require('./QF73DU45.cjs');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _DMH7HONVcjs = require('./DMH7HONV.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _WT6AUJWVcjs = require('./WT6AUJWV.cjs');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _3IVNQNIVcjs = require('./3IVNQNIV.cjs');
|
|
28
28
|
|
|
29
29
|
// src/menu/menu-store.ts
|
|
30
30
|
var _menustore = require('@ariakit/core/menu/menu-store'); var Core = _interopRequireWildcard(_menustore);
|
|
31
31
|
function useMenuStoreProps(store, update, props) {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
_WT6AUJWVcjs.useUpdateEffect.call(void 0, update, [props.combobox, props.parent, props.menubar]);
|
|
33
|
+
_DMH7HONVcjs.useStoreProps.call(void 0, store, props, "values", "setValues");
|
|
34
34
|
return Object.assign(
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_QF73DU45cjs.useHovercardStoreProps.call(void 0,
|
|
36
|
+
_U46ICSYFcjs.useCompositeStoreProps.call(void 0, store, update, props),
|
|
37
37
|
update,
|
|
38
38
|
props
|
|
39
39
|
),
|
|
@@ -45,15 +45,15 @@ function useMenuStoreProps(store, update, props) {
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
function useMenuStore(props = {}) {
|
|
48
|
-
const parent =
|
|
49
|
-
const menubar =
|
|
50
|
-
const combobox =
|
|
51
|
-
props =
|
|
48
|
+
const parent = _TTVWSMCCcjs.useMenuContext.call(void 0, );
|
|
49
|
+
const menubar = _O3ON5SWHcjs.useMenubarContext.call(void 0, );
|
|
50
|
+
const combobox = _F4DU6MSGcjs.useComboboxProviderContext.call(void 0, );
|
|
51
|
+
props = _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {}, props), {
|
|
52
52
|
parent: props.parent !== void 0 ? props.parent : parent,
|
|
53
53
|
menubar: props.menubar !== void 0 ? props.menubar : menubar,
|
|
54
54
|
combobox: props.combobox !== void 0 ? props.combobox : combobox
|
|
55
55
|
});
|
|
56
|
-
const [store, update] =
|
|
56
|
+
const [store, update] = _DMH7HONVcjs.useStore.call(void 0, Core.createMenuStore, props);
|
|
57
57
|
return useMenuStoreProps(store, update, props);
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _M5IWBORBcjs = require('./M5IWBORB.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _3IVNQNIVcjs = require('./3IVNQNIV.cjs');
|
|
11
11
|
|
|
12
12
|
// src/visually-hidden/visually-hidden.tsx
|
|
13
13
|
var TagName = "span";
|
|
14
|
-
var useVisuallyHidden =
|
|
14
|
+
var useVisuallyHidden = _M5IWBORBcjs.createHook.call(void 0,
|
|
15
15
|
function useVisuallyHidden2(props) {
|
|
16
|
-
props =
|
|
17
|
-
style:
|
|
16
|
+
props = _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {}, props), {
|
|
17
|
+
style: _3IVNQNIVcjs.__spreadValues.call(void 0, {
|
|
18
18
|
border: 0,
|
|
19
19
|
clip: "rect(0 0 0 0)",
|
|
20
20
|
height: "1px",
|
|
@@ -29,9 +29,9 @@ var useVisuallyHidden = _Q3R7NEK6cjs.createHook.call(void 0,
|
|
|
29
29
|
return props;
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
var VisuallyHidden =
|
|
32
|
+
var VisuallyHidden = _M5IWBORBcjs.forwardRef.call(void 0, function VisuallyHidden2(props) {
|
|
33
33
|
const htmlProps = useVisuallyHidden(props);
|
|
34
|
-
return
|
|
34
|
+
return _M5IWBORBcjs.createElement.call(void 0, TagName, htmlProps);
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _M5IWBORBcjs = require('./M5IWBORB.cjs');
|
|
5
5
|
|
|
6
6
|
// src/collection/collection-context.tsx
|
|
7
|
-
var ctx =
|
|
7
|
+
var ctx = _M5IWBORBcjs.createStoreContext.call(void 0, );
|
|
8
8
|
var useCollectionContext = ctx.useContext;
|
|
9
9
|
var useCollectionScopedContext = ctx.useScopedContext;
|
|
10
10
|
var useCollectionProviderContext = ctx.useProviderContext;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _32EK4BGYcjs = require('./32EK4BGY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _M5IWBORBcjs = require('./M5IWBORB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _DMH7HONVcjs = require('./DMH7HONV.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -16,12 +16,12 @@ var _T6EOHNY7cjs = require('./T6EOHNY7.cjs');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _WT6AUJWVcjs = require('./WT6AUJWV.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _3IVNQNIVcjs = require('./3IVNQNIV.cjs');
|
|
25
25
|
|
|
26
26
|
// src/collection/collection-renderer.tsx
|
|
27
27
|
var _dom = require('@ariakit/core/utils/dom');
|
|
@@ -42,8 +42,7 @@ var CollectionRendererContext = _react.createContext.call(void 0, null);
|
|
|
42
42
|
function createTask() {
|
|
43
43
|
let raf = 0;
|
|
44
44
|
const run = (cb) => {
|
|
45
|
-
if (raf)
|
|
46
|
-
return;
|
|
45
|
+
if (raf) return;
|
|
47
46
|
raf = requestAnimationFrame(() => {
|
|
48
47
|
raf = 0;
|
|
49
48
|
cb();
|
|
@@ -61,15 +60,11 @@ function findNearestIndex(items, target, getValue) {
|
|
|
61
60
|
while (left <= right) {
|
|
62
61
|
const index = (left + right) / 2 | 0;
|
|
63
62
|
const value = getValue(index);
|
|
64
|
-
if (value === target)
|
|
65
|
-
|
|
66
|
-
else
|
|
67
|
-
left = index + 1;
|
|
68
|
-
else
|
|
69
|
-
right = index - 1;
|
|
63
|
+
if (value === target) return index;
|
|
64
|
+
else if (value < target) left = index + 1;
|
|
65
|
+
else right = index - 1;
|
|
70
66
|
}
|
|
71
|
-
if (left > 0)
|
|
72
|
-
return left - 1;
|
|
67
|
+
if (left > 0) return left - 1;
|
|
73
68
|
return 0;
|
|
74
69
|
}
|
|
75
70
|
function getItemsLength(items) {
|
|
@@ -89,15 +84,12 @@ function getItemId(item, index, baseId) {
|
|
|
89
84
|
}
|
|
90
85
|
function getItem(items, index) {
|
|
91
86
|
if (typeof items === "number") {
|
|
92
|
-
if (index >= items)
|
|
93
|
-
return null;
|
|
87
|
+
if (index >= items) return null;
|
|
94
88
|
return {};
|
|
95
89
|
}
|
|
96
90
|
const item = items[index];
|
|
97
|
-
if (!item)
|
|
98
|
-
|
|
99
|
-
if (typeof item === "object")
|
|
100
|
-
return item;
|
|
91
|
+
if (!item) return null;
|
|
92
|
+
if (typeof item === "object") return item;
|
|
101
93
|
return { value: item };
|
|
102
94
|
}
|
|
103
95
|
function getItemSize(item, horizontal, fallbackElement) {
|
|
@@ -108,8 +100,7 @@ function getItemSize(item, horizontal, fallbackElement) {
|
|
|
108
100
|
const style = itemObject.style;
|
|
109
101
|
if (style) {
|
|
110
102
|
const size = style[prop];
|
|
111
|
-
if (typeof size === "number")
|
|
112
|
-
return size;
|
|
103
|
+
if (typeof size === "number") return size;
|
|
113
104
|
}
|
|
114
105
|
const items = itemObject.items;
|
|
115
106
|
if (items == null ? void 0 : items.length) {
|
|
@@ -125,8 +116,7 @@ function getItemSize(item, horizontal, fallbackElement) {
|
|
|
125
116
|
(sum, item2) => sum + getItemSize(item2, horizontal),
|
|
126
117
|
initialSize
|
|
127
118
|
);
|
|
128
|
-
if (totalSize !== initialSize)
|
|
129
|
-
return totalSize;
|
|
119
|
+
if (totalSize !== initialSize) return totalSize;
|
|
130
120
|
}
|
|
131
121
|
const element = fallbackElement !== false ? itemObject.element || fallbackElement : null;
|
|
132
122
|
if (element == null ? void 0 : element.isConnected) {
|
|
@@ -165,19 +155,16 @@ function getScrollOffset(scroller, horizontal) {
|
|
|
165
155
|
}
|
|
166
156
|
function getViewport(scroller) {
|
|
167
157
|
const { defaultView, documentElement } = scroller.ownerDocument;
|
|
168
|
-
if (scroller === documentElement)
|
|
169
|
-
return defaultView;
|
|
158
|
+
if (scroller === documentElement) return defaultView;
|
|
170
159
|
return scroller;
|
|
171
160
|
}
|
|
172
161
|
function useScroller(rendererRef) {
|
|
173
162
|
const [scroller, setScroller] = _react.useState.call(void 0, null);
|
|
174
163
|
_react.useEffect.call(void 0, () => {
|
|
175
164
|
const renderer = rendererRef == null ? void 0 : rendererRef.current;
|
|
176
|
-
if (!renderer)
|
|
177
|
-
return;
|
|
165
|
+
if (!renderer) return;
|
|
178
166
|
const scroller2 = _dom.getScrollingElement.call(void 0, renderer);
|
|
179
|
-
if (!scroller2)
|
|
180
|
-
return;
|
|
167
|
+
if (!scroller2) return;
|
|
181
168
|
setScroller(scroller2);
|
|
182
169
|
}, [rendererRef]);
|
|
183
170
|
return scroller;
|
|
@@ -207,29 +194,24 @@ function getOffsets(renderer, scroller, horizontal) {
|
|
|
207
194
|
function getItemsEnd(props) {
|
|
208
195
|
const length = getItemsLength(props.items);
|
|
209
196
|
const totalPadding = props.paddingStart + props.paddingEnd;
|
|
210
|
-
if (!length)
|
|
211
|
-
return totalPadding;
|
|
197
|
+
if (!length) return totalPadding;
|
|
212
198
|
const lastIndex = length - 1;
|
|
213
199
|
const totalGap = lastIndex * props.gap;
|
|
214
200
|
if (props.itemSize != null) {
|
|
215
201
|
return length * props.itemSize + totalGap + totalPadding;
|
|
216
202
|
}
|
|
217
203
|
const defaultEnd = length * props.estimatedItemSize + totalGap + totalPadding;
|
|
218
|
-
if (!props.baseId)
|
|
219
|
-
return defaultEnd;
|
|
204
|
+
if (!props.baseId) return defaultEnd;
|
|
220
205
|
const lastItem = getItem(props.items, lastIndex);
|
|
221
206
|
const lastItemId = getItemId(lastItem, lastIndex, props.baseId);
|
|
222
207
|
const lastItemData = props.data.get(lastItemId);
|
|
223
|
-
if (lastItemData == null ? void 0 : lastItemData.end)
|
|
224
|
-
|
|
225
|
-
if (!Array.isArray(props.items))
|
|
226
|
-
return defaultEnd;
|
|
208
|
+
if (lastItemData == null ? void 0 : lastItemData.end) return lastItemData.end + props.paddingEnd;
|
|
209
|
+
if (!Array.isArray(props.items)) return defaultEnd;
|
|
227
210
|
const end = props.items.reduce(
|
|
228
211
|
(sum, item) => sum + getItemSize(item, props.horizontal, false),
|
|
229
212
|
0
|
|
230
213
|
);
|
|
231
|
-
if (!end)
|
|
232
|
-
return defaultEnd;
|
|
214
|
+
if (!end) return defaultEnd;
|
|
233
215
|
return end + totalGap + totalPadding;
|
|
234
216
|
}
|
|
235
217
|
function getData(props) {
|
|
@@ -287,7 +269,7 @@ function useCollectionRenderer(_a) {
|
|
|
287
269
|
renderOnScroll = true,
|
|
288
270
|
renderOnResize = !!renderOnScroll,
|
|
289
271
|
children: renderItem
|
|
290
|
-
} = _b, props =
|
|
272
|
+
} = _b, props = _3IVNQNIVcjs.__objRest.call(void 0, _b, [
|
|
291
273
|
"store",
|
|
292
274
|
"items",
|
|
293
275
|
"initialItems",
|
|
@@ -305,9 +287,9 @@ function useCollectionRenderer(_a) {
|
|
|
305
287
|
"children"
|
|
306
288
|
]);
|
|
307
289
|
var _a2, _b2;
|
|
308
|
-
const context =
|
|
290
|
+
const context = _32EK4BGYcjs.useCollectionContext.call(void 0, );
|
|
309
291
|
store = store || context;
|
|
310
|
-
const items =
|
|
292
|
+
const items = _DMH7HONVcjs.useStoreState.call(void 0,
|
|
311
293
|
store,
|
|
312
294
|
(state) => itemsProp != null ? itemsProp : state == null ? void 0 : state.items
|
|
313
295
|
);
|
|
@@ -323,30 +305,25 @@ function useCollectionRenderer(_a) {
|
|
|
323
305
|
const orientation = (_a2 = orientationProp != null ? orientationProp : parent == null ? void 0 : parent.orientation) != null ? _a2 : "vertical";
|
|
324
306
|
const overscan = (_b2 = overscanProp != null ? overscanProp : parent == null ? void 0 : parent.overscan) != null ? _b2 : 1;
|
|
325
307
|
const ref = _react.useRef.call(void 0, null);
|
|
326
|
-
const baseId =
|
|
308
|
+
const baseId = _WT6AUJWVcjs.useId.call(void 0, props.id);
|
|
327
309
|
const horizontal = orientation === "horizontal";
|
|
328
310
|
const elements = _react.useMemo.call(void 0, () => /* @__PURE__ */ new Map(), []);
|
|
329
|
-
const [elementsUpdated, updateElements] =
|
|
311
|
+
const [elementsUpdated, updateElements] = _WT6AUJWVcjs.useForceUpdate.call(void 0, );
|
|
330
312
|
const [defaultVisibleIndices, setVisibleIndices] = _react.useState.call(void 0, () => {
|
|
331
|
-
if (!initialItems)
|
|
332
|
-
return [];
|
|
313
|
+
if (!initialItems) return [];
|
|
333
314
|
const length = getItemsLength(items);
|
|
334
315
|
const initialLength = Math.min(length, Math.abs(initialItems));
|
|
335
316
|
return Array.from({ length: initialLength }, (_, index) => {
|
|
336
|
-
if (initialItems < 0)
|
|
337
|
-
return length - index - 1;
|
|
317
|
+
if (initialItems < 0) return length - index - 1;
|
|
338
318
|
return index;
|
|
339
319
|
});
|
|
340
320
|
});
|
|
341
321
|
const visibleIndices = _react.useMemo.call(void 0, () => {
|
|
342
|
-
if (!persistentIndices)
|
|
343
|
-
return defaultVisibleIndices;
|
|
322
|
+
if (!persistentIndices) return defaultVisibleIndices;
|
|
344
323
|
const nextIndices = defaultVisibleIndices.slice();
|
|
345
324
|
for (const index of persistentIndices) {
|
|
346
|
-
if (index < 0)
|
|
347
|
-
|
|
348
|
-
if (nextIndices.includes(index))
|
|
349
|
-
continue;
|
|
325
|
+
if (index < 0) continue;
|
|
326
|
+
if (nextIndices.includes(index)) continue;
|
|
350
327
|
nextIndices.push(index);
|
|
351
328
|
}
|
|
352
329
|
nextIndices.sort((a, b) => a - b);
|
|
@@ -356,13 +333,10 @@ function useCollectionRenderer(_a) {
|
|
|
356
333
|
return nextIndices;
|
|
357
334
|
}, [defaultVisibleIndices, persistentIndices]);
|
|
358
335
|
const [data, setData] = _react.useState.call(void 0, () => {
|
|
359
|
-
if (!baseId)
|
|
360
|
-
return /* @__PURE__ */ new Map();
|
|
336
|
+
if (!baseId) return /* @__PURE__ */ new Map();
|
|
361
337
|
const data2 = (parentData == null ? void 0 : parentData.get(baseId)) || /* @__PURE__ */ new Map();
|
|
362
|
-
if (itemSize != null)
|
|
363
|
-
|
|
364
|
-
if (!items)
|
|
365
|
-
return data2;
|
|
338
|
+
if (itemSize != null) return data2;
|
|
339
|
+
if (!items) return data2;
|
|
366
340
|
const nextData = getData({
|
|
367
341
|
baseId,
|
|
368
342
|
items,
|
|
@@ -400,17 +374,13 @@ function useCollectionRenderer(_a) {
|
|
|
400
374
|
paddingEnd
|
|
401
375
|
]);
|
|
402
376
|
_react.useEffect.call(void 0, () => {
|
|
403
|
-
if (!baseId)
|
|
404
|
-
return;
|
|
377
|
+
if (!baseId) return;
|
|
405
378
|
parentData == null ? void 0 : parentData.set(baseId, data);
|
|
406
379
|
}, [baseId, parentData, data]);
|
|
407
380
|
_react.useEffect.call(void 0, () => {
|
|
408
|
-
if (itemSize != null)
|
|
409
|
-
|
|
410
|
-
if (!
|
|
411
|
-
return;
|
|
412
|
-
if (!items)
|
|
413
|
-
return;
|
|
381
|
+
if (itemSize != null) return;
|
|
382
|
+
if (!baseId) return;
|
|
383
|
+
if (!items) return;
|
|
414
384
|
const nextData = getData({
|
|
415
385
|
baseId,
|
|
416
386
|
items,
|
|
@@ -441,21 +411,16 @@ function useCollectionRenderer(_a) {
|
|
|
441
411
|
const offsetsRef = _react.useRef.call(void 0, { start: 0, end: 0 });
|
|
442
412
|
const processVisibleIndices = _react.useCallback.call(void 0, () => {
|
|
443
413
|
const offsets = offsetsRef.current;
|
|
444
|
-
if (!items)
|
|
445
|
-
|
|
446
|
-
if (!
|
|
447
|
-
|
|
448
|
-
if (!offsets.end)
|
|
449
|
-
return;
|
|
450
|
-
if (!data.size && !itemSize)
|
|
451
|
-
return;
|
|
414
|
+
if (!items) return;
|
|
415
|
+
if (!baseId) return;
|
|
416
|
+
if (!offsets.end) return;
|
|
417
|
+
if (!data.size && !itemSize) return;
|
|
452
418
|
const length = getItemsLength(items);
|
|
453
419
|
const getItemOffset = (index, prop = "start") => {
|
|
454
420
|
var _a3;
|
|
455
421
|
if (itemSize) {
|
|
456
422
|
const start2 = itemSize * index + gap * index + paddingStart;
|
|
457
|
-
if (prop === "start")
|
|
458
|
-
return start2;
|
|
423
|
+
if (prop === "start") return start2;
|
|
459
424
|
return start2 + itemSize;
|
|
460
425
|
}
|
|
461
426
|
const item = getItem(items, index);
|
|
@@ -476,8 +441,7 @@ function useCollectionRenderer(_a) {
|
|
|
476
441
|
(_, index) => index + start
|
|
477
442
|
);
|
|
478
443
|
setVisibleIndices((prevIndices) => {
|
|
479
|
-
if (_misc.shallowEqual.call(void 0, prevIndices, indices))
|
|
480
|
-
return prevIndices;
|
|
444
|
+
if (_misc.shallowEqual.call(void 0, prevIndices, indices)) return prevIndices;
|
|
481
445
|
return indices;
|
|
482
446
|
});
|
|
483
447
|
}, [
|
|
@@ -491,34 +455,27 @@ function useCollectionRenderer(_a) {
|
|
|
491
455
|
overscan
|
|
492
456
|
]);
|
|
493
457
|
_react.useEffect.call(void 0, processVisibleIndices, [processVisibleIndices]);
|
|
494
|
-
const processVisibleIndicesEvent =
|
|
458
|
+
const processVisibleIndicesEvent = _WT6AUJWVcjs.useEvent.call(void 0, processVisibleIndices);
|
|
495
459
|
_react.useEffect.call(void 0, () => {
|
|
496
460
|
const renderer = ref.current;
|
|
497
|
-
if (!renderer)
|
|
498
|
-
|
|
499
|
-
if (!scroller)
|
|
500
|
-
return;
|
|
461
|
+
if (!renderer) return;
|
|
462
|
+
if (!scroller) return;
|
|
501
463
|
offsetsRef.current = getOffsets(renderer, scroller, horizontal);
|
|
502
464
|
processVisibleIndicesEvent();
|
|
503
465
|
}, [scroller, horizontal, processVisibleIndicesEvent]);
|
|
504
466
|
const mayRenderOnScroll = !!renderOnScroll;
|
|
505
|
-
const renderOnScrollProp =
|
|
467
|
+
const renderOnScrollProp = _WT6AUJWVcjs.useBooleanEvent.call(void 0, renderOnScroll);
|
|
506
468
|
_react.useEffect.call(void 0, () => {
|
|
507
|
-
if (!mayRenderOnScroll)
|
|
508
|
-
return;
|
|
469
|
+
if (!mayRenderOnScroll) return;
|
|
509
470
|
const renderer = ref.current;
|
|
510
|
-
if (!renderer)
|
|
511
|
-
|
|
512
|
-
if (!scroller)
|
|
513
|
-
return;
|
|
471
|
+
if (!renderer) return;
|
|
472
|
+
if (!scroller) return;
|
|
514
473
|
const viewport = getViewport(scroller);
|
|
515
|
-
if (!viewport)
|
|
516
|
-
return;
|
|
474
|
+
if (!viewport) return;
|
|
517
475
|
const task = createTask();
|
|
518
476
|
const onScroll = (event) => {
|
|
519
477
|
task.run(() => {
|
|
520
|
-
if (!renderOnScrollProp(event))
|
|
521
|
-
return;
|
|
478
|
+
if (!renderOnScrollProp(event)) return;
|
|
522
479
|
offsetsRef.current = getOffsets(renderer, scroller, horizontal);
|
|
523
480
|
processVisibleIndicesEvent();
|
|
524
481
|
});
|
|
@@ -536,22 +493,17 @@ function useCollectionRenderer(_a) {
|
|
|
536
493
|
processVisibleIndicesEvent
|
|
537
494
|
]);
|
|
538
495
|
const mayRenderOnResize = !!renderOnResize;
|
|
539
|
-
const renderOnResizeProp =
|
|
496
|
+
const renderOnResizeProp = _WT6AUJWVcjs.useBooleanEvent.call(void 0, renderOnResize);
|
|
540
497
|
_react.useEffect.call(void 0, () => {
|
|
541
|
-
if (!mayRenderOnResize)
|
|
542
|
-
return;
|
|
498
|
+
if (!mayRenderOnResize) return;
|
|
543
499
|
const renderer = ref.current;
|
|
544
|
-
if (!renderer)
|
|
545
|
-
|
|
546
|
-
if (!scroller)
|
|
547
|
-
return;
|
|
500
|
+
if (!renderer) return;
|
|
501
|
+
if (!scroller) return;
|
|
548
502
|
const viewport = getViewport(scroller);
|
|
549
|
-
if (!viewport)
|
|
550
|
-
return;
|
|
503
|
+
if (!viewport) return;
|
|
551
504
|
const task = createTask();
|
|
552
505
|
if (viewport === scroller) {
|
|
553
|
-
if (typeof ResizeObserver !== "function")
|
|
554
|
-
return;
|
|
506
|
+
if (typeof ResizeObserver !== "function") return;
|
|
555
507
|
let firstRun = true;
|
|
556
508
|
const observer = new ResizeObserver(() => {
|
|
557
509
|
if (firstRun) {
|
|
@@ -559,8 +511,7 @@ function useCollectionRenderer(_a) {
|
|
|
559
511
|
return;
|
|
560
512
|
}
|
|
561
513
|
task.run(() => {
|
|
562
|
-
if (!renderOnResizeProp(scroller))
|
|
563
|
-
return;
|
|
514
|
+
if (!renderOnResizeProp(scroller)) return;
|
|
564
515
|
offsetsRef.current = getOffsets(renderer, scroller, horizontal);
|
|
565
516
|
processVisibleIndicesEvent();
|
|
566
517
|
});
|
|
@@ -573,8 +524,7 @@ function useCollectionRenderer(_a) {
|
|
|
573
524
|
}
|
|
574
525
|
const onResize = () => {
|
|
575
526
|
task.run(() => {
|
|
576
|
-
if (!renderOnResizeProp(scroller))
|
|
577
|
-
return;
|
|
527
|
+
if (!renderOnResizeProp(scroller)) return;
|
|
578
528
|
offsetsRef.current = getOffsets(renderer, scroller, horizontal);
|
|
579
529
|
processVisibleIndicesEvent();
|
|
580
530
|
});
|
|
@@ -592,16 +542,12 @@ function useCollectionRenderer(_a) {
|
|
|
592
542
|
processVisibleIndicesEvent
|
|
593
543
|
]);
|
|
594
544
|
_react.useEffect.call(void 0, () => {
|
|
595
|
-
if (typeof IntersectionObserver !== "function")
|
|
596
|
-
return;
|
|
545
|
+
if (typeof IntersectionObserver !== "function") return;
|
|
597
546
|
const renderer = ref.current;
|
|
598
|
-
if (!renderer)
|
|
599
|
-
|
|
600
|
-
if (!scroller)
|
|
601
|
-
return;
|
|
547
|
+
if (!renderer) return;
|
|
548
|
+
if (!scroller) return;
|
|
602
549
|
const viewport = getViewport(scroller);
|
|
603
|
-
if (!viewport)
|
|
604
|
-
return;
|
|
550
|
+
if (!viewport) return;
|
|
605
551
|
const observer = new IntersectionObserver(
|
|
606
552
|
() => {
|
|
607
553
|
offsetsRef.current = getOffsets(renderer, scroller, horizontal);
|
|
@@ -615,18 +561,15 @@ function useCollectionRenderer(_a) {
|
|
|
615
561
|
};
|
|
616
562
|
}, [scroller, processVisibleIndicesEvent]);
|
|
617
563
|
const elementObserver = _react.useMemo.call(void 0, () => {
|
|
618
|
-
if (typeof ResizeObserver !== "function")
|
|
619
|
-
return;
|
|
564
|
+
if (typeof ResizeObserver !== "function") return;
|
|
620
565
|
return new ResizeObserver(() => {
|
|
621
566
|
_reactdom.flushSync.call(void 0, updateElements);
|
|
622
567
|
});
|
|
623
568
|
}, [updateElements]);
|
|
624
569
|
const itemRef = _react.useCallback.call(void 0,
|
|
625
570
|
(element) => {
|
|
626
|
-
if (!element)
|
|
627
|
-
|
|
628
|
-
if (itemSize)
|
|
629
|
-
return;
|
|
571
|
+
if (!element) return;
|
|
572
|
+
if (itemSize) return;
|
|
630
573
|
updateElements();
|
|
631
574
|
elements.set(element.id, element);
|
|
632
575
|
elementObserver == null ? void 0 : elementObserver.observe(element);
|
|
@@ -651,22 +594,19 @@ function useCollectionRenderer(_a) {
|
|
|
651
594
|
if (itemSize) {
|
|
652
595
|
baseItemProps.style[horizontal ? "width" : "height"] = itemSize;
|
|
653
596
|
}
|
|
654
|
-
if (item == null)
|
|
655
|
-
return baseItemProps;
|
|
597
|
+
if (item == null) return baseItemProps;
|
|
656
598
|
const itemProps = getItemObject(item);
|
|
657
|
-
return
|
|
658
|
-
style:
|
|
599
|
+
return _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {}, itemProps), baseItemProps), {
|
|
600
|
+
style: _3IVNQNIVcjs.__spreadValues.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {}, itemProps.style), baseItemProps.style)
|
|
659
601
|
});
|
|
660
602
|
},
|
|
661
603
|
[baseId, data, itemSize, paddingStart, gap, horizontal, itemRef]
|
|
662
604
|
);
|
|
663
605
|
const itemsProps = _react.useMemo.call(void 0, () => {
|
|
664
606
|
return visibleIndices.map((index) => {
|
|
665
|
-
if (index < 0)
|
|
666
|
-
return;
|
|
607
|
+
if (index < 0) return;
|
|
667
608
|
const item = getItem(items, index);
|
|
668
|
-
if (!item)
|
|
669
|
-
return;
|
|
609
|
+
if (!item) return;
|
|
670
610
|
return getItemProps(item, index);
|
|
671
611
|
}).filter((value) => value != null);
|
|
672
612
|
}, [items, visibleIndices, getItemProps]);
|
|
@@ -676,7 +616,7 @@ function useCollectionRenderer(_a) {
|
|
|
676
616
|
const styleProp = props.style;
|
|
677
617
|
const sizeProperty = horizontal ? "width" : "height";
|
|
678
618
|
const style = _react.useMemo.call(void 0,
|
|
679
|
-
() =>
|
|
619
|
+
() => _3IVNQNIVcjs.__spreadValues.call(void 0, {
|
|
680
620
|
flex: "none",
|
|
681
621
|
position: "relative",
|
|
682
622
|
[sizeProperty]: totalSize
|
|
@@ -688,22 +628,22 @@ function useCollectionRenderer(_a) {
|
|
|
688
628
|
() => ({ store, orientation, overscan, childrenData }),
|
|
689
629
|
[store, orientation, overscan, childrenData]
|
|
690
630
|
);
|
|
691
|
-
props =
|
|
631
|
+
props = _WT6AUJWVcjs.useWrapElement.call(void 0,
|
|
692
632
|
props,
|
|
693
633
|
(element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CollectionRendererContext.Provider, { value: providerValue, children: element }),
|
|
694
634
|
[providerValue]
|
|
695
635
|
);
|
|
696
|
-
props =
|
|
636
|
+
props = _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {
|
|
697
637
|
id: baseId
|
|
698
638
|
}, props), {
|
|
699
639
|
style,
|
|
700
|
-
ref:
|
|
640
|
+
ref: _WT6AUJWVcjs.useMergeRefs.call(void 0, ref, props.ref)
|
|
701
641
|
});
|
|
702
|
-
return
|
|
642
|
+
return _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {}, props), { children });
|
|
703
643
|
}
|
|
704
|
-
var CollectionRenderer =
|
|
644
|
+
var CollectionRenderer = _M5IWBORBcjs.forwardRef.call(void 0, function CollectionRenderer2(props) {
|
|
705
645
|
const htmlProps = useCollectionRenderer(props);
|
|
706
|
-
return
|
|
646
|
+
return _M5IWBORBcjs.createElement.call(void 0, TagName, htmlProps);
|
|
707
647
|
});
|
|
708
648
|
var getCollectionRendererItem = getItem;
|
|
709
649
|
var getCollectionRendererItemId = getItemId;
|
|
@@ -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) {
|