@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
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
HovercardContextProvider,
|
|
4
4
|
HovercardScopedContextProvider
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./CTQR3VDU.js";
|
|
6
6
|
import {
|
|
7
7
|
createStoreContext
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./HKOOKEDE.js";
|
|
9
9
|
|
|
10
10
|
// src/tooltip/tooltip-context.tsx
|
|
11
11
|
var ctx = createStoreContext(
|
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
import {
|
|
3
3
|
MenuScopedContextProvider,
|
|
4
4
|
useMenuProviderContext
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./LG4RFBHV.js";
|
|
6
6
|
import {
|
|
7
7
|
useCompositeTypeahead
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./DS36B3MQ.js";
|
|
9
9
|
import {
|
|
10
10
|
useComposite
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./TW35PKTK.js";
|
|
12
12
|
import {
|
|
13
13
|
isHidden
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./BSEL4YAF.js";
|
|
15
15
|
import {
|
|
16
16
|
createElement,
|
|
17
17
|
createHook,
|
|
18
18
|
forwardRef
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./HKOOKEDE.js";
|
|
20
20
|
import {
|
|
21
21
|
useStoreState
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./2GXGCHW6.js";
|
|
23
23
|
import {
|
|
24
24
|
useEvent,
|
|
25
25
|
useId,
|
|
26
26
|
useMergeRefs,
|
|
27
27
|
useWrapElement
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./Z32BISHQ.js";
|
|
29
29
|
import {
|
|
30
30
|
__objRest,
|
|
31
31
|
__spreadProps,
|
|
32
32
|
__spreadValues
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./3YLGPPWQ.js";
|
|
34
34
|
|
|
35
35
|
// src/menu/menu-list.tsx
|
|
36
36
|
import { invariant } from "@ariakit/core/utils/misc";
|
|
@@ -45,11 +45,9 @@ function useAriaLabelledBy(_a) {
|
|
|
45
45
|
const contentElement = useStoreState(store, "contentElement");
|
|
46
46
|
useEffect(() => {
|
|
47
47
|
const disclosure = disclosureElement;
|
|
48
|
-
if (!disclosure)
|
|
49
|
-
return;
|
|
48
|
+
if (!disclosure) return;
|
|
50
49
|
const menu = contentElement;
|
|
51
|
-
if (!menu)
|
|
52
|
-
return;
|
|
50
|
+
if (!menu) return;
|
|
53
51
|
const menuLabel = label || menu.hasAttribute("aria-label");
|
|
54
52
|
if (menuLabel) {
|
|
55
53
|
setId(void 0);
|
|
@@ -86,8 +84,7 @@ var useMenuList = createHook(
|
|
|
86
84
|
);
|
|
87
85
|
const onKeyDown = useEvent((event) => {
|
|
88
86
|
onKeyDownProp == null ? void 0 : onKeyDownProp(event);
|
|
89
|
-
if (event.defaultPrevented)
|
|
90
|
-
return;
|
|
87
|
+
if (event.defaultPrevented) return;
|
|
91
88
|
if (hasParentMenu || parentMenubar && !isHorizontal) {
|
|
92
89
|
const hideMap = {
|
|
93
90
|
ArrowRight: () => dir === "left" && !isHorizontal,
|
|
@@ -105,23 +102,19 @@ var useMenuList = createHook(
|
|
|
105
102
|
if (parentMenubar) {
|
|
106
103
|
const keyMap = {
|
|
107
104
|
ArrowRight: () => {
|
|
108
|
-
if (!isMenubarHorizontal)
|
|
109
|
-
return;
|
|
105
|
+
if (!isMenubarHorizontal) return;
|
|
110
106
|
return parentMenubar.next();
|
|
111
107
|
},
|
|
112
108
|
ArrowLeft: () => {
|
|
113
|
-
if (!isMenubarHorizontal)
|
|
114
|
-
return;
|
|
109
|
+
if (!isMenubarHorizontal) return;
|
|
115
110
|
return parentMenubar.previous();
|
|
116
111
|
},
|
|
117
112
|
ArrowDown: () => {
|
|
118
|
-
if (isMenubarHorizontal)
|
|
119
|
-
return;
|
|
113
|
+
if (isMenubarHorizontal) return;
|
|
120
114
|
return parentMenubar.next();
|
|
121
115
|
},
|
|
122
116
|
ArrowUp: () => {
|
|
123
|
-
if (isMenubarHorizontal)
|
|
124
|
-
return;
|
|
117
|
+
if (isMenubarHorizontal) return;
|
|
125
118
|
return parentMenubar.previous();
|
|
126
119
|
}
|
|
127
120
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
FocusTrap
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./LWDIJ7XK.js";
|
|
5
5
|
import {
|
|
6
6
|
PortalContext
|
|
7
7
|
} from "./AOQQTIBO.js";
|
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
createElement,
|
|
10
10
|
createHook,
|
|
11
11
|
forwardRef
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./HKOOKEDE.js";
|
|
13
13
|
import {
|
|
14
14
|
useMergeRefs,
|
|
15
15
|
useSafeLayoutEffect,
|
|
16
16
|
useWrapElement
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./Z32BISHQ.js";
|
|
18
18
|
import {
|
|
19
19
|
setRef
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./SK3NAZA3.js";
|
|
21
21
|
import {
|
|
22
22
|
__objRest,
|
|
23
23
|
__spreadProps,
|
|
24
24
|
__spreadValues
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./3YLGPPWQ.js";
|
|
26
26
|
|
|
27
27
|
// src/portal/portal.tsx
|
|
28
28
|
import { getDocument } from "@ariakit/core/utils/dom";
|
|
@@ -103,20 +103,16 @@ var usePortal = createHook(function usePortal2(_a) {
|
|
|
103
103
|
}
|
|
104
104
|
setPortalNode(portalEl);
|
|
105
105
|
setRef(portalRef, portalEl);
|
|
106
|
-
if (isPortalInDocument)
|
|
107
|
-
return;
|
|
106
|
+
if (isPortalInDocument) return;
|
|
108
107
|
return () => {
|
|
109
108
|
portalEl.remove();
|
|
110
109
|
setRef(portalRef, null);
|
|
111
110
|
};
|
|
112
111
|
}, [portal, portalElement, context, portalRef]);
|
|
113
112
|
useSafeLayoutEffect(() => {
|
|
114
|
-
if (!portal)
|
|
115
|
-
|
|
116
|
-
if (!
|
|
117
|
-
return;
|
|
118
|
-
if (!preserveTabOrderAnchor)
|
|
119
|
-
return;
|
|
113
|
+
if (!portal) return;
|
|
114
|
+
if (!preserveTabOrder) return;
|
|
115
|
+
if (!preserveTabOrderAnchor) return;
|
|
120
116
|
const doc = getDocument(preserveTabOrderAnchor);
|
|
121
117
|
const element = doc.createElement("span");
|
|
122
118
|
element.style.position = "fixed";
|
|
@@ -128,14 +124,11 @@ var usePortal = createHook(function usePortal2(_a) {
|
|
|
128
124
|
};
|
|
129
125
|
}, [portal, preserveTabOrder, preserveTabOrderAnchor]);
|
|
130
126
|
useEffect(() => {
|
|
131
|
-
if (!portalNode)
|
|
132
|
-
|
|
133
|
-
if (!preserveTabOrder)
|
|
134
|
-
return;
|
|
127
|
+
if (!portalNode) return;
|
|
128
|
+
if (!preserveTabOrder) return;
|
|
135
129
|
let raf = 0;
|
|
136
130
|
const onFocus = (event) => {
|
|
137
|
-
if (!isFocusEventOutside(event))
|
|
138
|
-
return;
|
|
131
|
+
if (!isFocusEventOutside(event)) return;
|
|
139
132
|
const focusing = event.type === "focusin";
|
|
140
133
|
cancelAnimationFrame(raf);
|
|
141
134
|
if (focusing) {
|
|
@@ -160,8 +153,7 @@ var usePortal = createHook(function usePortal2(_a) {
|
|
|
160
153
|
// current context to the portal context, otherwise it's going to
|
|
161
154
|
// reset to the body element on nested portals.
|
|
162
155
|
/* @__PURE__ */ jsx(PortalContext.Provider, { value: portalNode || context, children: element });
|
|
163
|
-
if (!portal)
|
|
164
|
-
return element;
|
|
156
|
+
if (!portal) return element;
|
|
165
157
|
if (!portalNode) {
|
|
166
158
|
return /* @__PURE__ */ jsx(
|
|
167
159
|
"span",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useGroup
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./ZPO4YZYE.js";
|
|
5
5
|
import {
|
|
6
6
|
createElement,
|
|
7
7
|
createHook,
|
|
8
8
|
forwardRef
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./HKOOKEDE.js";
|
|
10
10
|
import {
|
|
11
11
|
__objRest
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./3YLGPPWQ.js";
|
|
13
13
|
|
|
14
14
|
// src/form/form-group.tsx
|
|
15
15
|
var TagName = "div";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
markAncestor
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./2PGBN2Y4.js";
|
|
5
5
|
import {
|
|
6
6
|
useDisclosureContent
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./BSEL4YAF.js";
|
|
8
8
|
import {
|
|
9
9
|
Role
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./AXRBYZQP.js";
|
|
11
11
|
import {
|
|
12
12
|
useDisclosureStore
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./KGK2TTFO.js";
|
|
14
14
|
import {
|
|
15
15
|
useSafeLayoutEffect
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./Z32BISHQ.js";
|
|
17
17
|
import {
|
|
18
18
|
__spreadProps,
|
|
19
19
|
__spreadValues
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./3YLGPPWQ.js";
|
|
21
21
|
|
|
22
22
|
// src/dialog/dialog-backdrop.tsx
|
|
23
23
|
import { isValidElement, useRef } from "react";
|
|
@@ -34,19 +34,15 @@ function DialogBackdrop({
|
|
|
34
34
|
useSafeLayoutEffect(() => {
|
|
35
35
|
const backdrop2 = ref.current;
|
|
36
36
|
const dialog = contentElement;
|
|
37
|
-
if (!backdrop2)
|
|
38
|
-
|
|
39
|
-
if (!dialog)
|
|
40
|
-
return;
|
|
37
|
+
if (!backdrop2) return;
|
|
38
|
+
if (!dialog) return;
|
|
41
39
|
backdrop2.style.zIndex = getComputedStyle(dialog).zIndex;
|
|
42
40
|
}, [contentElement]);
|
|
43
41
|
useSafeLayoutEffect(() => {
|
|
44
42
|
const id = contentElement == null ? void 0 : contentElement.id;
|
|
45
|
-
if (!id)
|
|
46
|
-
return;
|
|
43
|
+
if (!id) return;
|
|
47
44
|
const backdrop2 = ref.current;
|
|
48
|
-
if (!backdrop2)
|
|
49
|
-
return;
|
|
45
|
+
if (!backdrop2) return;
|
|
50
46
|
return markAncestor(backdrop2, id);
|
|
51
47
|
}, [contentElement]);
|
|
52
48
|
const props = useDisclosureContent({
|
|
@@ -64,8 +60,7 @@ function DialogBackdrop({
|
|
|
64
60
|
left: 0
|
|
65
61
|
}
|
|
66
62
|
});
|
|
67
|
-
if (!backdrop)
|
|
68
|
-
return null;
|
|
63
|
+
if (!backdrop) return null;
|
|
69
64
|
if (isValidElement(backdrop)) {
|
|
70
65
|
return /* @__PURE__ */ jsx(Role, __spreadProps(__spreadValues({}, props), { render: backdrop }));
|
|
71
66
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useCollectionStoreProps
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./TCAGH6BH.js";
|
|
5
5
|
import {
|
|
6
6
|
useStore,
|
|
7
7
|
useStoreProps
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./2GXGCHW6.js";
|
|
9
9
|
|
|
10
10
|
// src/composite/composite-store.ts
|
|
11
11
|
import * as Core from "@ariakit/core/composite/composite-store";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useSeparator
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./LOI6GHIP.js";
|
|
5
5
|
import {
|
|
6
6
|
useCompositeContext
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./WENSINUV.js";
|
|
8
8
|
import {
|
|
9
9
|
createElement,
|
|
10
10
|
createHook,
|
|
11
11
|
forwardRef
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./HKOOKEDE.js";
|
|
13
13
|
import {
|
|
14
14
|
__objRest,
|
|
15
15
|
__spreadProps,
|
|
16
16
|
__spreadValues
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./3YLGPPWQ.js";
|
|
18
18
|
|
|
19
19
|
// src/composite/composite-separator.tsx
|
|
20
20
|
import { invariant } from "@ariakit/core/utils/misc";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CollectionContextProvider,
|
|
4
4
|
CollectionScopedContextProvider
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./FMYQNSCK.js";
|
|
6
6
|
import {
|
|
7
7
|
createStoreContext
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./HKOOKEDE.js";
|
|
9
9
|
|
|
10
10
|
// src/composite/composite-context.tsx
|
|
11
11
|
import { createContext } from "react";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CompositeContextProvider,
|
|
4
4
|
CompositeScopedContextProvider
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./WENSINUV.js";
|
|
6
6
|
import {
|
|
7
7
|
createStoreContext
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./HKOOKEDE.js";
|
|
9
9
|
|
|
10
10
|
// src/menubar/menubar-context.tsx
|
|
11
11
|
import { createContext } from "react";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useComboboxProviderContext
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./DWZ7E5TJ.js";
|
|
5
5
|
import {
|
|
6
6
|
useCompositeStoreProps
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./UVQLZ7T5.js";
|
|
8
8
|
import {
|
|
9
9
|
usePopoverStoreProps
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./CBC47ZYL.js";
|
|
11
11
|
import {
|
|
12
12
|
useStore,
|
|
13
13
|
useStoreProps
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./2GXGCHW6.js";
|
|
15
15
|
import {
|
|
16
16
|
useUpdateEffect
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./Z32BISHQ.js";
|
|
18
18
|
import {
|
|
19
19
|
__spreadProps,
|
|
20
20
|
__spreadValues
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./3YLGPPWQ.js";
|
|
22
22
|
|
|
23
23
|
// src/select/select-store.ts
|
|
24
24
|
import * as Core from "@ariakit/core/select/select-store";
|
|
@@ -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) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CollectionContextProvider,
|
|
4
4
|
CollectionScopedContextProvider
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./FMYQNSCK.js";
|
|
6
6
|
import {
|
|
7
7
|
createStoreContext
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./HKOOKEDE.js";
|
|
9
9
|
|
|
10
10
|
// src/form/form-context.tsx
|
|
11
11
|
var ctx = createStoreContext(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
usePopoverStoreProps
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./CBC47ZYL.js";
|
|
5
5
|
import {
|
|
6
6
|
useStore,
|
|
7
7
|
useStoreProps
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./2GXGCHW6.js";
|
|
9
9
|
|
|
10
10
|
// src/hovercard/hovercard-store.ts
|
|
11
11
|
import * as Core from "@ariakit/core/hovercard/hovercard-store";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useGroupLabel
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./IGFP5YPG.js";
|
|
5
5
|
import {
|
|
6
6
|
createElement,
|
|
7
7
|
createHook,
|
|
8
8
|
forwardRef
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./HKOOKEDE.js";
|
|
10
10
|
import {
|
|
11
11
|
__objRest
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./3YLGPPWQ.js";
|
|
13
13
|
|
|
14
14
|
// src/composite/composite-group-label.tsx
|
|
15
15
|
var TagName = "div";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useForceUpdate
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./Z32BISHQ.js";
|
|
5
5
|
|
|
6
6
|
// src/dialog/utils/use-root-dialog.ts
|
|
7
7
|
import { getDocument } from "@ariakit/core/utils/dom";
|
|
@@ -15,21 +15,16 @@ function useRootDialog({
|
|
|
15
15
|
}) {
|
|
16
16
|
const [updated, retry] = useForceUpdate();
|
|
17
17
|
const isRootDialog = useCallback(() => {
|
|
18
|
-
if (!enabled)
|
|
19
|
-
|
|
20
|
-
if (!contentElement)
|
|
21
|
-
return false;
|
|
18
|
+
if (!enabled) return false;
|
|
19
|
+
if (!contentElement) return false;
|
|
22
20
|
const { body } = getDocument(contentElement);
|
|
23
21
|
const id = body.getAttribute(attribute);
|
|
24
22
|
return !id || id === contentId;
|
|
25
23
|
}, [updated, enabled, contentElement, attribute, contentId]);
|
|
26
24
|
useEffect(() => {
|
|
27
|
-
if (!enabled)
|
|
28
|
-
|
|
29
|
-
if (!
|
|
30
|
-
return;
|
|
31
|
-
if (!contentElement)
|
|
32
|
-
return;
|
|
25
|
+
if (!enabled) return;
|
|
26
|
+
if (!contentId) return;
|
|
27
|
+
if (!contentElement) return;
|
|
33
28
|
const { body } = getDocument(contentElement);
|
|
34
29
|
if (isRootDialog()) {
|
|
35
30
|
body.setAttribute(attribute, contentId);
|
|
@@ -1,16 +1,15 @@
|
|
|
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";
|
|
12
12
|
import { addGlobalEventListener } from "@ariakit/core/utils/events";
|
|
13
|
-
import { applyState } from "@ariakit/core/utils/misc";
|
|
14
13
|
import {
|
|
15
14
|
useCallback,
|
|
16
15
|
useEffect,
|
|
@@ -70,10 +69,8 @@ function useEvent(callback) {
|
|
|
70
69
|
function useTransactionState(callback) {
|
|
71
70
|
const [state, setState] = useState(null);
|
|
72
71
|
useSafeLayoutEffect(() => {
|
|
73
|
-
if (state == null)
|
|
74
|
-
|
|
75
|
-
if (!callback)
|
|
76
|
-
return;
|
|
72
|
+
if (state == null) return;
|
|
73
|
+
if (!callback) return;
|
|
77
74
|
let prevState = null;
|
|
78
75
|
callback((prev) => {
|
|
79
76
|
prevState = prev;
|
|
@@ -87,8 +84,7 @@ function useTransactionState(callback) {
|
|
|
87
84
|
}
|
|
88
85
|
function useMergeRefs(...refs) {
|
|
89
86
|
return useMemo(() => {
|
|
90
|
-
if (!refs.some(Boolean))
|
|
91
|
-
return;
|
|
87
|
+
if (!refs.some(Boolean)) return;
|
|
92
88
|
return (value) => {
|
|
93
89
|
for (const ref of refs) {
|
|
94
90
|
setRef(ref, value);
|
|
@@ -96,25 +92,15 @@ function useMergeRefs(...refs) {
|
|
|
96
92
|
};
|
|
97
93
|
}, refs);
|
|
98
94
|
}
|
|
99
|
-
function useRefId(ref, deps) {
|
|
100
|
-
const [id, setId] = useState(void 0);
|
|
101
|
-
useSafeLayoutEffect(() => {
|
|
102
|
-
var _a;
|
|
103
|
-
setId((_a = ref == null ? void 0 : ref.current) == null ? void 0 : _a.id);
|
|
104
|
-
}, deps);
|
|
105
|
-
return id;
|
|
106
|
-
}
|
|
107
95
|
function useId(defaultId) {
|
|
108
96
|
if (useReactId) {
|
|
109
97
|
const reactId = useReactId();
|
|
110
|
-
if (defaultId)
|
|
111
|
-
return defaultId;
|
|
98
|
+
if (defaultId) return defaultId;
|
|
112
99
|
return reactId;
|
|
113
100
|
}
|
|
114
101
|
const [id, setId] = useState(defaultId);
|
|
115
102
|
useSafeLayoutEffect(() => {
|
|
116
|
-
if (defaultId || id)
|
|
117
|
-
return;
|
|
103
|
+
if (defaultId || id) return;
|
|
118
104
|
const random = Math.random().toString(36).substr(2, 6);
|
|
119
105
|
setId(`id-${random}`);
|
|
120
106
|
}, [defaultId, id]);
|
|
@@ -133,8 +119,7 @@ function useDeferredValue(value) {
|
|
|
133
119
|
}
|
|
134
120
|
function useTagName(refOrElement, type) {
|
|
135
121
|
const stringOrUndefined = (type2) => {
|
|
136
|
-
if (typeof type2 !== "string")
|
|
137
|
-
return;
|
|
122
|
+
if (typeof type2 !== "string") return;
|
|
138
123
|
return type2;
|
|
139
124
|
};
|
|
140
125
|
const [tagName, setTagName] = useState(() => stringOrUndefined(type));
|
|
@@ -148,12 +133,10 @@ function useAttribute(refOrElement, attributeName, defaultValue) {
|
|
|
148
133
|
const [attribute, setAttribute] = useState(defaultValue);
|
|
149
134
|
useSafeLayoutEffect(() => {
|
|
150
135
|
const element = refOrElement && "current" in refOrElement ? refOrElement.current : refOrElement;
|
|
151
|
-
if (!element)
|
|
152
|
-
return;
|
|
136
|
+
if (!element) return;
|
|
153
137
|
const callback = () => {
|
|
154
138
|
const value = element.getAttribute(attributeName);
|
|
155
|
-
if (value == null)
|
|
156
|
-
return;
|
|
139
|
+
if (value == null) return;
|
|
157
140
|
setAttribute(value);
|
|
158
141
|
};
|
|
159
142
|
const observer = new MutationObserver(callback);
|
|
@@ -193,39 +176,6 @@ function useUpdateLayoutEffect(effect, deps) {
|
|
|
193
176
|
[]
|
|
194
177
|
);
|
|
195
178
|
}
|
|
196
|
-
function useControlledState(defaultState, state, setState) {
|
|
197
|
-
const [localState, setLocalState] = useState(defaultState);
|
|
198
|
-
const nextState = state !== void 0 ? state : localState;
|
|
199
|
-
const stateRef = useLiveRef(state);
|
|
200
|
-
const setStateRef = useLiveRef(setState);
|
|
201
|
-
const nextStateRef = useLiveRef(nextState);
|
|
202
|
-
const setNextState = useCallback((prevValue) => {
|
|
203
|
-
const setStateProp = setStateRef.current;
|
|
204
|
-
if (setStateProp) {
|
|
205
|
-
if (isSetNextState(setStateProp)) {
|
|
206
|
-
setStateProp(prevValue);
|
|
207
|
-
} else {
|
|
208
|
-
const nextValue = applyState(prevValue, nextStateRef.current);
|
|
209
|
-
nextStateRef.current = nextValue;
|
|
210
|
-
setStateProp(nextValue);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
if (stateRef.current === void 0) {
|
|
214
|
-
setLocalState(prevValue);
|
|
215
|
-
}
|
|
216
|
-
}, []);
|
|
217
|
-
defineSetNextState(setNextState);
|
|
218
|
-
return [nextState, setNextState];
|
|
219
|
-
}
|
|
220
|
-
var SET_NEXT_STATE = Symbol("setNextState");
|
|
221
|
-
function isSetNextState(arg) {
|
|
222
|
-
return arg[SET_NEXT_STATE] === true;
|
|
223
|
-
}
|
|
224
|
-
function defineSetNextState(arg) {
|
|
225
|
-
if (!isSetNextState(arg)) {
|
|
226
|
-
Object.defineProperty(arg, SET_NEXT_STATE, { value: true });
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
179
|
function useForceUpdate() {
|
|
230
180
|
return useReducer(() => [], []);
|
|
231
181
|
}
|
|
@@ -282,8 +232,7 @@ function hasMouseMovement(event) {
|
|
|
282
232
|
return movementX || movementY || process.env.NODE_ENV === "test";
|
|
283
233
|
}
|
|
284
234
|
function setMouseMoving(event) {
|
|
285
|
-
if (!hasMouseMovement(event))
|
|
286
|
-
return;
|
|
235
|
+
if (!hasMouseMovement(event)) return;
|
|
287
236
|
mouseMoving = true;
|
|
288
237
|
}
|
|
289
238
|
function resetMouseMoving() {
|
|
@@ -299,14 +248,12 @@ export {
|
|
|
299
248
|
useEvent,
|
|
300
249
|
useTransactionState,
|
|
301
250
|
useMergeRefs,
|
|
302
|
-
useRefId,
|
|
303
251
|
useId,
|
|
304
252
|
useDeferredValue,
|
|
305
253
|
useTagName,
|
|
306
254
|
useAttribute,
|
|
307
255
|
useUpdateEffect,
|
|
308
256
|
useUpdateLayoutEffect,
|
|
309
|
-
useControlledState,
|
|
310
257
|
useForceUpdate,
|
|
311
258
|
useBooleanEvent,
|
|
312
259
|
useWrapElement,
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
createElement,
|
|
7
7
|
createHook,
|
|
8
8
|
forwardRef
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./HKOOKEDE.js";
|
|
10
10
|
import {
|
|
11
11
|
useWrapElement
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./Z32BISHQ.js";
|
|
13
13
|
import {
|
|
14
14
|
__spreadValues
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./3YLGPPWQ.js";
|
|
16
16
|
|
|
17
17
|
// src/group/group.tsx
|
|
18
18
|
import { removeUndefinedValues } from "@ariakit/core/utils/misc";
|