@ariakit/react-core 0.4.10 → 0.4.12
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 +70 -0
- package/cjs/__chunks/{SDBASOGF.cjs → 2BYHFNPP.cjs} +5 -6
- package/cjs/__chunks/{LSIE3AZT.cjs → 2JLI27ZJ.cjs} +92 -73
- package/cjs/__chunks/{WAXJ4YD7.cjs → 2NDXHG2M.cjs} +30 -31
- package/cjs/__chunks/{3MQN464L.cjs → 2P3WACML.cjs} +6 -7
- package/cjs/__chunks/{OZFFK5VS.cjs → 2XWRXJTW.cjs} +18 -15
- package/cjs/__chunks/3MUWK7XK.cjs +36 -0
- package/cjs/__chunks/{AH3CUB6N.cjs → 4K6QJIPX.cjs} +1 -3
- package/cjs/__chunks/{GDXQYUZD.cjs → 4RLNADFK.cjs} +12 -13
- package/cjs/__chunks/{YS72JDSE.cjs → 4SKDRUBR.cjs} +1 -3
- package/cjs/__chunks/{6IUEXB4L.cjs → 56NPFF7P.cjs} +1 -3
- package/cjs/__chunks/{HEJFPAL3.cjs → 5EJQOBUA.cjs} +6 -7
- package/cjs/__chunks/5UGU5HIQ.cjs +36 -0
- package/cjs/__chunks/{AMARRBCF.cjs → 5X5VM34K.cjs} +6 -7
- package/cjs/__chunks/{IKRINWVC.cjs → 6YKAKUSZ.cjs} +15 -16
- package/cjs/__chunks/{N2JBBOXS.cjs → 72JGZWYP.cjs} +6 -7
- package/cjs/__chunks/{6HSWYGH7.cjs → 7BT6R2A7.cjs} +27 -28
- package/cjs/__chunks/{3IVNQNIV.cjs → 7EQBAZ46.cjs} +1 -2
- package/cjs/__chunks/{5KP7SROC.cjs → 7ZBP2RUN.cjs} +17 -15
- package/cjs/__chunks/{MA4SJD6E.cjs → APWRQDRR.cjs} +5 -6
- package/cjs/__chunks/{MTP72GGY.cjs → AQ2LO7WV.cjs} +1 -3
- package/cjs/__chunks/{7YWAU7T3.cjs → AS742ABJ.cjs} +5 -6
- package/cjs/__chunks/{U46ICSYF.cjs → AY7QMXP6.cjs} +13 -14
- package/cjs/__chunks/{F4DU6MSG.cjs → BB26STNR.cjs} +7 -8
- package/cjs/__chunks/{VQ52RGDH.cjs → BBHOBWVO.cjs} +18 -19
- package/cjs/__chunks/{VPKU3AVX.cjs → BUKUAI2F.cjs} +40 -41
- package/cjs/__chunks/{2P4N5BIR.cjs → CSAYKKWD.cjs} +8 -9
- package/cjs/__chunks/{DRV5RKI2.cjs → CWQPJ74P.cjs} +21 -15
- package/cjs/__chunks/{MMWRTFBG.cjs → DIH46ZNH.cjs} +1 -3
- package/cjs/__chunks/{HHTQYHYL.cjs → E3JIN4WH.cjs} +6 -7
- package/cjs/__chunks/{PNSA4OTL.cjs → ENNAUHNH.cjs} +1 -3
- package/cjs/__chunks/{7K2RM2SD.cjs → EPHIWWY3.cjs} +3 -4
- package/cjs/__chunks/{RRCMCI3I.cjs → EPRWVKEC.cjs} +13 -14
- package/cjs/__chunks/{7LTYTJQA.cjs → ERZMIQMY.cjs} +3 -4
- package/cjs/__chunks/EVB266LV.cjs +31 -0
- package/cjs/__chunks/{CEAT6DDR.cjs → EVFHZIIB.cjs} +6 -7
- package/cjs/__chunks/{54XFMNDS.cjs → FDRJDQ5Y.cjs} +5 -6
- package/cjs/__chunks/{NMKMMUOR.cjs → FHMITJ2I.cjs} +7 -8
- package/cjs/__chunks/{TTVWSMCC.cjs → FKDBPJ3J.cjs} +13 -14
- package/cjs/__chunks/{2NFC7VSY.cjs → FKXV4VLC.cjs} +18 -19
- package/cjs/__chunks/{QMBTS2OC.cjs → GAIXLTBN.cjs} +28 -25
- package/cjs/__chunks/{CGOV3ADF.cjs → GCGWLTHW.cjs} +6 -7
- package/cjs/__chunks/{WYGALZGN.cjs → GECM5RKL.cjs} +17 -18
- package/cjs/__chunks/GV6SPEMW.cjs +36 -0
- package/cjs/__chunks/{O3ON5SWH.cjs → H3K3UH33.cjs} +6 -7
- package/cjs/__chunks/{AN5QHTDF.cjs → H4AANIGT.cjs} +13 -14
- package/cjs/__chunks/{67WF5W26.cjs → HOK4HLEC.cjs} +7 -8
- package/cjs/__chunks/{PNSEE5QV.cjs → I4WIEOTM.cjs} +7 -8
- package/cjs/__chunks/{TNYFOC6H.cjs → IGDYEWFG.cjs} +18 -19
- package/cjs/__chunks/{LKQMU2KU.cjs → IPGNMIMR.cjs} +6 -7
- package/cjs/__chunks/{WOYO6QOE.cjs → IRJEBRAW.cjs} +1 -3
- package/cjs/__chunks/{AVQVVBHC.cjs → IUTZ4R2D.cjs} +17 -18
- package/cjs/__chunks/{3LZQUHIB.cjs → JLMLKTUB.cjs} +1 -3
- package/cjs/__chunks/{O2RDP7Y5.cjs → JWSK57DV.cjs} +29 -30
- package/cjs/__chunks/{BPP77UGW.cjs → JX6R5EWD.cjs} +7 -8
- package/cjs/__chunks/{PSYRVXCO.cjs → JXWSXYUR.cjs} +6 -7
- package/cjs/__chunks/{MTP2XD7A.cjs → KGTSEO6I.cjs} +19 -20
- package/cjs/__chunks/{7JCD5H54.cjs → KWX2D5VI.cjs} +11 -12
- package/cjs/__chunks/{FAFAXYUE.cjs → L634CRNJ.cjs} +4 -5
- package/cjs/__chunks/{3HGFVGHB.cjs → L6CLLK7R.cjs} +1 -3
- package/cjs/__chunks/{I5DDKOOP.cjs → LDUVTD5N.cjs} +18 -19
- package/cjs/__chunks/{V2557HFX.cjs → LSQ5XROE.cjs} +17 -18
- package/cjs/__chunks/LTKKWFIO.cjs +63 -0
- package/cjs/__chunks/MA6WXJ2F.cjs +36 -0
- package/cjs/__chunks/{M5IWBORB.cjs → MFAH5VLW.cjs} +15 -16
- package/cjs/__chunks/{BV5PE6PZ.cjs → MIBORXQW.cjs} +1 -3
- package/cjs/__chunks/{AWQRY4G6.cjs → MZBKHHQG.cjs} +24 -25
- package/cjs/__chunks/{PUMYQXTD.cjs → NEZR6RYD.cjs} +14 -15
- package/cjs/__chunks/{TLYGB6DV.cjs → NZYDSBNN.cjs} +24 -25
- package/cjs/__chunks/{C6F3GNG7.cjs → O7N5RMXZ.cjs} +11 -12
- package/cjs/__chunks/{KMTMWGHG.cjs → OCCW4I5N.cjs} +5 -6
- package/cjs/__chunks/{SZV5XBXJ.cjs → OGGUYG3E.cjs} +11 -12
- package/cjs/__chunks/{3RWROHBG.cjs → OUQ47ZCN.cjs} +18 -19
- package/cjs/__chunks/{RBHGB7EB.cjs → P66OGEAY.cjs} +7 -8
- package/cjs/__chunks/{B7ZXMKTZ.cjs → PKNC3GXE.cjs} +36 -37
- package/cjs/__chunks/{WQXPJKQO.cjs → PRCTR2DH.cjs} +3 -4
- package/cjs/__chunks/{QF73DU45.cjs → PSEQY4EM.cjs} +8 -9
- package/cjs/__chunks/PXIYELVF.cjs +26 -0
- package/cjs/__chunks/{SQTAYASR.cjs → QFJHKTKB.cjs} +22 -23
- package/cjs/__chunks/{AALEVRDH.cjs → QJWSPVEU.cjs} +41 -42
- package/cjs/__chunks/QMCNFBPO.cjs +39 -0
- package/cjs/__chunks/{3GUEWEPJ.cjs → QUGY2I7R.cjs} +24 -25
- package/cjs/__chunks/{KDCRYBUX.cjs → QWONDERW.cjs} +14 -15
- package/cjs/__chunks/{ZBR3CZBX.cjs → RREOTJCI.cjs} +6 -7
- package/cjs/__chunks/{KSN22F3S.cjs → RX54RD25.cjs} +22 -23
- package/cjs/__chunks/RXDR4B6L.cjs +30 -0
- package/cjs/__chunks/{Y27X3JNF.cjs → SWLXIU2Q.cjs} +6 -7
- package/cjs/__chunks/{6UCNERDT.cjs → SY6ACUYS.cjs} +7 -8
- package/cjs/__chunks/{DYIDES27.cjs → T3QB4FR3.cjs} +1 -3
- package/cjs/__chunks/{WT6AUJWV.cjs → TM5Y6AJU.cjs} +12 -13
- package/cjs/__chunks/{UKQU3PPH.cjs → U4RXV3KO.cjs} +7 -8
- package/cjs/__chunks/{TJR4NN4V.cjs → UGPAREOW.cjs} +3 -4
- package/cjs/__chunks/{4LJ6O7GM.cjs → UI5KWBYV.cjs} +1 -3
- package/cjs/__chunks/{32EK4BGY.cjs → UJOJUNIC.cjs} +3 -4
- package/cjs/__chunks/{OMNFVKVS.cjs → UUVRUEKE.cjs} +6 -7
- package/cjs/__chunks/{UISO72VU.cjs → UWHW5XUZ.cjs} +7 -8
- package/cjs/__chunks/V3ORAN7D.cjs +43 -0
- package/cjs/__chunks/V7JASX7S.cjs +13 -0
- package/cjs/__chunks/{G7N4ZNGS.cjs → VCWX76BP.cjs} +18 -19
- package/cjs/__chunks/{LGTMAYKZ.cjs → VJBUKCAM.cjs} +20 -21
- package/cjs/__chunks/{4LXCDDOO.cjs → VVFYFHES.cjs} +8 -9
- package/cjs/__chunks/{C55AGIGA.cjs → VZG3Q4VA.cjs} +8 -9
- package/cjs/__chunks/{JF225FQ5.cjs → W32FX7DM.cjs} +1 -3
- package/cjs/__chunks/{R3DZOXNR.cjs → WDQA7RWO.cjs} +17 -18
- package/cjs/__chunks/{VRPZ4HD5.cjs → WFEIS2SR.cjs} +30 -29
- package/cjs/__chunks/{MUQXBDUR.cjs → WWQLUY5W.cjs} +10 -11
- package/cjs/__chunks/WZZ73NCM.cjs +28 -0
- package/cjs/__chunks/X22RH7X6.cjs +30 -0
- package/cjs/__chunks/X6YHEUBI.cjs +39 -0
- package/cjs/__chunks/{IUBWLCM6.cjs → XCCLPY67.cjs} +14 -15
- package/cjs/__chunks/{YGEHBXGA.cjs → XFOTDXSH.cjs} +36 -22
- package/cjs/__chunks/{P7J6L26K.cjs → XHEEGBWU.cjs} +12 -13
- package/cjs/__chunks/{K32UV4VJ.cjs → XQCGTEP2.cjs} +10 -11
- package/cjs/__chunks/{ZJMEXN3N.cjs → XRATBFDX.cjs} +1 -3
- package/cjs/__chunks/{DMH7HONV.cjs → Y7UE4JBR.cjs} +10 -11
- package/cjs/__chunks/{F3WSRIQH.cjs → YDC6XFYI.cjs} +12 -13
- package/cjs/__chunks/{NYZXQT7P.cjs → YEUBOUGL.cjs} +11 -12
- package/cjs/__chunks/{BHVPU2FQ.cjs → YFRKGEVD.cjs} +12 -13
- package/cjs/__chunks/{HU3NFQOT.cjs → YM77IVYX.cjs} +7 -8
- package/cjs/__chunks/{OVBWMHNO.cjs → YVOQ2BCB.cjs} +4 -5
- package/cjs/__chunks/{SS36X3TM.cjs → Z442OGUK.cjs} +6 -7
- package/cjs/__chunks/ZVTLSJ7G.cjs +48 -0
- package/cjs/button/button.cjs +10 -11
- package/cjs/checkbox/checkbox-check.cjs +8 -9
- package/cjs/checkbox/checkbox-checked-context.cjs +4 -5
- package/cjs/checkbox/checkbox-context.cjs +7 -8
- package/cjs/checkbox/checkbox-provider.cjs +10 -11
- package/cjs/checkbox/checkbox-store.cjs +7 -8
- package/cjs/checkbox/checkbox.cjs +13 -14
- package/cjs/collection/collection-context.cjs +7 -8
- package/cjs/collection/collection-item.cjs +8 -9
- package/cjs/collection/collection-provider.cjs +10 -11
- package/cjs/collection/collection-renderer.cjs +9 -10
- package/cjs/collection/collection-renderer.d.cts +2 -1
- package/cjs/collection/collection-renderer.d.ts +2 -1
- package/cjs/collection/collection-store.cjs +7 -8
- package/cjs/collection/collection.cjs +13 -14
- package/cjs/combobox/combobox-cancel.cjs +24 -25
- package/cjs/combobox/combobox-context.cjs +12 -13
- package/cjs/combobox/combobox-disclosure.cjs +26 -27
- package/cjs/combobox/combobox-group-label.cjs +12 -13
- package/cjs/combobox/combobox-group.cjs +21 -22
- package/cjs/combobox/combobox-item-check.cjs +19 -20
- package/cjs/combobox/combobox-item-value.cjs +20 -21
- package/cjs/combobox/combobox-item.cjs +40 -41
- package/cjs/combobox/combobox-label.cjs +18 -19
- package/cjs/combobox/combobox-list.cjs +15 -16
- package/cjs/combobox/combobox-popover.cjs +53 -53
- package/cjs/combobox/combobox-provider.cjs +21 -22
- package/cjs/combobox/combobox-row.cjs +19 -20
- package/cjs/combobox/combobox-separator.cjs +19 -20
- package/cjs/combobox/combobox-store.cjs +16 -17
- package/cjs/combobox/combobox-value.cjs +12 -13
- package/cjs/combobox/combobox.cjs +45 -47
- package/cjs/command/command.cjs +9 -10
- package/cjs/composite/composite-container.cjs +11 -12
- package/cjs/composite/composite-context.cjs +8 -9
- package/cjs/composite/composite-group-label.cjs +9 -10
- package/cjs/composite/composite-group.cjs +9 -10
- package/cjs/composite/composite-hover.cjs +9 -10
- package/cjs/composite/composite-input.cjs +15 -16
- package/cjs/composite/composite-item.cjs +15 -16
- package/cjs/composite/composite-overflow-disclosure.cjs +32 -33
- package/cjs/composite/composite-overflow-store.cjs +10 -11
- package/cjs/composite/composite-overflow.cjs +48 -48
- package/cjs/composite/composite-provider.cjs +12 -13
- package/cjs/composite/composite-renderer.cjs +11 -12
- package/cjs/composite/composite-renderer.d.cts +2 -1
- package/cjs/composite/composite-renderer.d.ts +2 -1
- package/cjs/composite/composite-row.cjs +9 -10
- package/cjs/composite/composite-separator.cjs +10 -11
- package/cjs/composite/composite-store.cjs +8 -9
- package/cjs/composite/composite-typeahead.cjs +10 -11
- package/cjs/composite/composite.cjs +12 -13
- package/cjs/composite/utils.cjs +4 -5
- package/cjs/dialog/dialog-backdrop.cjs +17 -18
- package/cjs/dialog/dialog-context.cjs +8 -9
- package/cjs/dialog/dialog-description.cjs +9 -10
- package/cjs/dialog/dialog-disclosure.cjs +14 -15
- package/cjs/dialog/dialog-dismiss.cjs +13 -14
- package/cjs/dialog/dialog-heading.cjs +11 -12
- package/cjs/dialog/dialog-provider.cjs +12 -13
- package/cjs/dialog/dialog-store.cjs +8 -9
- package/cjs/dialog/dialog.cjs +45 -45
- package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +7 -8
- package/cjs/dialog/utils/disable-tree.cjs +10 -10
- package/cjs/dialog/utils/is-backdrop.cjs +4 -5
- package/cjs/dialog/utils/is-focus-trap.cjs +7 -0
- package/cjs/dialog/utils/is-focus-trap.d.cts +1 -0
- package/cjs/dialog/utils/is-focus-trap.d.ts +1 -0
- package/cjs/dialog/utils/mark-tree-outside.cjs +7 -8
- package/cjs/dialog/utils/orchestrate.cjs +4 -5
- package/cjs/dialog/utils/prepend-hidden-dismiss.cjs +4 -5
- package/cjs/dialog/utils/supports-inert.cjs +4 -5
- package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +15 -12
- package/cjs/dialog/utils/use-nested-dialogs.cjs +6 -7
- package/cjs/dialog/utils/use-prevent-body-scroll.cjs +8 -9
- package/cjs/dialog/utils/use-previous-mouse-down-ref.cjs +4 -5
- package/cjs/dialog/utils/use-root-dialog.cjs +6 -7
- package/cjs/dialog/utils/walk-tree-outside.cjs +5 -6
- package/cjs/disclosure/disclosure-content.cjs +10 -11
- package/cjs/disclosure/disclosure-context.cjs +7 -8
- package/cjs/disclosure/disclosure-provider.cjs +10 -11
- package/cjs/disclosure/disclosure-store.cjs +7 -8
- package/cjs/disclosure/disclosure.cjs +12 -13
- package/cjs/focus-trap/focus-trap-region.cjs +15 -16
- package/cjs/focus-trap/focus-trap.cjs +8 -9
- package/cjs/focusable/focusable-container.cjs +8 -9
- package/cjs/focusable/focusable-context.cjs +4 -5
- package/cjs/focusable/focusable.cjs +9 -8
- package/cjs/focusable/focusable.d.cts +5 -0
- package/cjs/focusable/focusable.d.ts +5 -0
- package/cjs/form/form-checkbox.cjs +26 -27
- package/cjs/form/form-context.cjs +8 -9
- package/cjs/form/form-control.cjs +10 -11
- package/cjs/form/form-description.cjs +19 -20
- package/cjs/form/form-error.cjs +19 -20
- package/cjs/form/form-field.cjs +14 -15
- package/cjs/form/form-group-label.cjs +12 -13
- package/cjs/form/form-group.cjs +9 -10
- package/cjs/form/form-input.cjs +21 -22
- package/cjs/form/form-label.cjs +23 -24
- package/cjs/form/form-provider.cjs +12 -13
- package/cjs/form/form-push.cjs +22 -23
- package/cjs/form/form-radio-group.cjs +14 -15
- package/cjs/form/form-radio.cjs +28 -29
- package/cjs/form/form-remove.cjs +19 -20
- package/cjs/form/form-reset.cjs +18 -19
- package/cjs/form/form-store.cjs +8 -9
- package/cjs/form/form-submit.cjs +18 -19
- package/cjs/form/form.cjs +22 -23
- package/cjs/group/group-label-context.cjs +4 -5
- package/cjs/group/group-label.cjs +8 -9
- package/cjs/group/group.cjs +8 -9
- package/cjs/heading/heading-context.cjs +4 -5
- package/cjs/heading/heading-level.cjs +5 -6
- package/cjs/heading/heading.cjs +8 -9
- package/cjs/heading/utils.cjs +1 -1
- package/cjs/hovercard/hovercard-anchor.cjs +13 -14
- package/cjs/hovercard/hovercard-arrow.cjs +17 -18
- package/cjs/hovercard/hovercard-context.cjs +10 -11
- package/cjs/hovercard/hovercard-description.cjs +11 -12
- package/cjs/hovercard/hovercard-disclosure.cjs +29 -30
- package/cjs/hovercard/hovercard-dismiss.cjs +17 -18
- package/cjs/hovercard/hovercard-heading.cjs +13 -14
- package/cjs/hovercard/hovercard-provider.cjs +16 -17
- package/cjs/hovercard/hovercard-store.cjs +10 -11
- package/cjs/hovercard/hovercard.cjs +43 -43
- package/cjs/hovercard/utils/debug-polygon.cjs +1 -2
- package/cjs/hovercard/utils/polygon.cjs +4 -5
- package/cjs/index.cjs +1 -2
- package/cjs/menu/menu-arrow.cjs +21 -22
- package/cjs/menu/menu-bar-provider.cjs +14 -15
- package/cjs/menu/menu-bar-store.cjs +10 -11
- package/cjs/menu/menu-bar.cjs +21 -22
- package/cjs/menu/menu-button-arrow.cjs +20 -21
- package/cjs/menu/menu-button.cjs +47 -47
- package/cjs/menu/menu-context.cjs +14 -15
- package/cjs/menu/menu-description.cjs +14 -15
- package/cjs/menu/menu-dismiss.cjs +26 -27
- package/cjs/menu/menu-group-label.cjs +12 -13
- package/cjs/menu/menu-group.cjs +12 -13
- package/cjs/menu/menu-heading.cjs +16 -17
- package/cjs/menu/menu-item-check.cjs +21 -22
- package/cjs/menu/menu-item-checkbox.cjs +37 -38
- package/cjs/menu/menu-item-radio.cjs +36 -37
- package/cjs/menu/menu-item.cjs +23 -24
- package/cjs/menu/menu-list.cjs +22 -23
- package/cjs/menu/menu-provider.cjs +24 -25
- package/cjs/menu/menu-separator.cjs +21 -22
- package/cjs/menu/menu-store.cjs +23 -24
- package/cjs/menu/menu.cjs +66 -66
- package/cjs/menubar/menubar-context.cjs +9 -10
- package/cjs/menubar/menubar-provider.cjs +14 -15
- package/cjs/menubar/menubar-store.cjs +9 -10
- package/cjs/menubar/menubar.cjs +18 -19
- package/cjs/popover/popover-anchor.cjs +10 -11
- package/cjs/popover/popover-arrow-path.cjs +4 -5
- package/cjs/popover/popover-arrow.cjs +11 -12
- package/cjs/popover/popover-context.cjs +9 -10
- package/cjs/popover/popover-description.cjs +10 -11
- package/cjs/popover/popover-disclosure-arrow.cjs +10 -11
- package/cjs/popover/popover-disclosure.cjs +17 -18
- package/cjs/popover/popover-dismiss.cjs +15 -16
- package/cjs/popover/popover-heading.cjs +12 -13
- package/cjs/popover/popover-provider.cjs +14 -15
- package/cjs/popover/popover-store.cjs +9 -10
- package/cjs/popover/popover.cjs +40 -40
- package/cjs/portal/portal-context.cjs +4 -5
- package/cjs/portal/portal.cjs +10 -11
- package/cjs/radio/radio-context.cjs +9 -10
- package/cjs/radio/radio-group.cjs +21 -22
- package/cjs/radio/radio-provider.cjs +14 -15
- package/cjs/radio/radio-store.cjs +9 -10
- package/cjs/radio/radio.cjs +17 -18
- package/cjs/role/role.cjs +7 -8
- package/cjs/select/select-arrow.cjs +14 -15
- package/cjs/select/select-context.cjs +12 -13
- package/cjs/select/select-dismiss.cjs +23 -24
- package/cjs/select/select-group-label.cjs +12 -13
- package/cjs/select/select-group.cjs +12 -13
- package/cjs/select/select-heading.cjs +23 -24
- package/cjs/select/select-item-check.cjs +19 -20
- package/cjs/select/select-item.cjs +36 -37
- package/cjs/select/select-label.cjs +22 -23
- package/cjs/select/select-list.cjs +20 -21
- package/cjs/select/select-popover.cjs +55 -55
- package/cjs/select/select-provider.cjs +21 -22
- package/cjs/select/select-renderer.cjs +22 -23
- package/cjs/select/select-row.cjs +19 -20
- package/cjs/select/select-separator.cjs +19 -20
- package/cjs/select/select-store.cjs +19 -20
- package/cjs/select/select-value.cjs +14 -15
- package/cjs/select/select.cjs +39 -40
- package/cjs/separator/separator.cjs +7 -8
- package/cjs/tab/tab-context.cjs +9 -10
- package/cjs/tab/tab-list.cjs +22 -23
- package/cjs/tab/tab-panel.cjs +96 -53
- package/cjs/tab/tab-panel.d.cts +39 -1
- package/cjs/tab/tab-panel.d.ts +39 -1
- package/cjs/tab/tab-provider.cjs +19 -20
- package/cjs/tab/tab-store.cjs +17 -18
- package/cjs/tab/tab.cjs +33 -33
- package/cjs/tag/tag-context.cjs +9 -10
- package/cjs/tag/tag-input.cjs +30 -31
- package/cjs/tag/tag-list-label.cjs +16 -17
- package/cjs/tag/tag-list.cjs +27 -28
- package/cjs/tag/tag-provider.cjs +14 -15
- package/cjs/tag/tag-remove.cjs +23 -24
- package/cjs/tag/tag-store.cjs +9 -10
- package/cjs/tag/tag-value.cjs +9 -10
- package/cjs/tag/tag-values.cjs +9 -10
- package/cjs/tag/tag.cjs +31 -32
- package/cjs/tag/utils.cjs +4 -5
- package/cjs/toolbar/toolbar-container.cjs +25 -26
- package/cjs/toolbar/toolbar-context.cjs +9 -10
- package/cjs/toolbar/toolbar-input.cjs +23 -24
- package/cjs/toolbar/toolbar-item.cjs +17 -18
- package/cjs/toolbar/toolbar-provider.cjs +14 -15
- package/cjs/toolbar/toolbar-separator.cjs +16 -17
- package/cjs/toolbar/toolbar-store.cjs +9 -10
- package/cjs/toolbar/toolbar.cjs +26 -27
- package/cjs/tooltip/tooltip-anchor.cjs +23 -24
- package/cjs/tooltip/tooltip-arrow.cjs +18 -19
- package/cjs/tooltip/tooltip-context.cjs +11 -12
- package/cjs/tooltip/tooltip-provider.cjs +18 -19
- package/cjs/tooltip/tooltip-store.cjs +11 -12
- package/cjs/tooltip/tooltip.cjs +54 -54
- package/cjs/utils/hooks.cjs +5 -6
- package/cjs/utils/misc.cjs +4 -5
- package/cjs/utils/store.cjs +6 -7
- package/cjs/utils/system.cjs +6 -7
- package/cjs/utils/types.cjs +1 -1
- package/cjs/visually-hidden/visually-hidden.cjs +7 -8
- package/dialog/utils/is-focus-trap/package.json +8 -0
- package/esm/__chunks/{SLQXY5KG.js → 2AC4JPCN.js} +5 -5
- package/esm/__chunks/{ILNAUGA4.js → 2ATXICAB.js} +1 -1
- package/esm/__chunks/{LOI6GHIP.js → 33WVSQBK.js} +1 -1
- package/esm/__chunks/{KCVNYWKF.js → 35RDKJF6.js} +3 -3
- package/esm/__chunks/{DYHFBFEH.js → 3FB3COFJ.js} +2 -2
- package/esm/__chunks/{DWZ7E5TJ.js → 3LH6HMTR.js} +3 -3
- package/esm/__chunks/{P2OTTZSX.js → 3TGOYUTQ.js} +2 -2
- package/esm/__chunks/{AUGWLYYL.js → 3YZMJGQP.js} +1 -1
- package/esm/__chunks/{P5CRXI7E.js → 4JPBYLF3.js} +5 -5
- package/esm/__chunks/{MS4VD4RJ.js → 53XSP24K.js} +7 -7
- package/esm/__chunks/{L3MGZQ3I.js → 55NJ2WSC.js} +2 -2
- package/esm/__chunks/{42UBRT4A.js → 5EJKZ5JM.js} +4 -4
- package/esm/__chunks/{AXRBYZQP.js → 5HEBF2AL.js} +1 -1
- package/esm/__chunks/{L7GTXQJP.js → 6P23IZ5Z.js} +5 -5
- package/esm/__chunks/{HKOOKEDE.js → 7FZLUSKW.js} +1 -1
- package/esm/__chunks/{OYB5INBF.js → 7GRXGX7S.js} +2 -2
- package/esm/__chunks/{43UOHFGG.js → 7V5QX4SZ.js} +10 -3
- package/esm/__chunks/{CAGM4AEJ.js → A7OBCLOL.js} +2 -2
- package/esm/__chunks/{RPLYUYNN.js → AJFF2SUZ.js} +1 -1
- package/esm/__chunks/{WENSINUV.js → APGXEJ2Q.js} +2 -2
- package/esm/__chunks/{QYS5FHDY.js → B5WJDZ55.js} +2 -2
- package/esm/__chunks/{6BE7QOX5.js → BCUN2D7Y.js} +3 -3
- package/esm/__chunks/{N5E4LT7W.js → BDPFIQXC.js} +3 -3
- package/esm/__chunks/{TT2355LN.js → BLYP7OV6.js} +38 -18
- package/esm/__chunks/{K7FXVWIT.js → BQA3JPRO.js} +5 -5
- package/esm/__chunks/{QA27FYGF.js → BRBME7U5.js} +4 -4
- package/esm/__chunks/{TNITL632.js → BSRZWVZO.js} +2 -2
- package/esm/__chunks/{KGK2TTFO.js → C76P7QQC.js} +2 -2
- package/esm/__chunks/{GO2SPXQX.js → CHKZWOVX.js} +2 -2
- package/esm/__chunks/{DU4D3UCJ.js → CMXOY7UW.js} +2 -2
- package/esm/__chunks/{CBC47ZYL.js → CO7ZDQU2.js} +3 -3
- package/esm/__chunks/{54MGSIOI.js → COWZSPJ7.js} +2 -2
- package/esm/__chunks/{THRI7H7K.js → CRZAWNHO.js} +4 -4
- package/esm/__chunks/{2GXGCHW6.js → CTKPPFRS.js} +1 -1
- package/esm/__chunks/{DS36B3MQ.js → CWIRMIEN.js} +3 -3
- package/esm/__chunks/{NSFBIL2Z.js → D7GLA236.js} +4 -0
- package/esm/__chunks/{4FY2MBIB.js → DCBMRDNF.js} +2 -2
- package/esm/__chunks/{UPCYNCRR.js → DFTBBEAD.js} +2 -2
- package/esm/__chunks/{CTQR3VDU.js → DPAO6G5R.js} +2 -2
- package/esm/__chunks/{7BSNT25J.js → E6AN77M4.js} +5 -5
- package/esm/__chunks/{HT3UEUDM.js → EGBLFVR2.js} +2 -2
- package/esm/__chunks/{IEKMDIUY.js → ENWWPSY3.js} +2 -2
- package/esm/__chunks/{JZUY7XL6.js → ESGPC4B7.js} +5 -5
- package/esm/__chunks/{656RZDJD.js → FICKQG6J.js} +2 -2
- package/esm/__chunks/{6FZVKQWP.js → FUHTKLDR.js} +4 -4
- package/esm/__chunks/{FMYQNSCK.js → G4PVPWEW.js} +1 -1
- package/esm/__chunks/{JS55N6L7.js → GZJH7ZDI.js} +4 -4
- package/esm/__chunks/{Z32BISHQ.js → HNHAUIIY.js} +5 -5
- package/esm/__chunks/{Y2MAXF6C.js → HSDWSC5V.js} +2 -2
- package/esm/__chunks/{TWCRTUOB.js → IEMWKLTV.js} +2 -2
- package/esm/__chunks/IGR4SXG2.js +15 -0
- package/esm/__chunks/{TW35PKTK.js → IKLZZMLE.js} +4 -4
- package/esm/__chunks/{EJOTW52C.js → ISFXQ47C.js} +2 -2
- package/esm/__chunks/{T3RMEPVH.js → IT6VQU5B.js} +1 -1
- package/esm/__chunks/{B6XZVSMQ.js → J6ABGNEX.js} +7 -7
- package/esm/__chunks/{RGUP62TM.js → JDEWEW7S.js} +1 -1
- package/esm/__chunks/{3R3N43YO.js → JOBHIYEN.js} +3 -3
- package/esm/__chunks/{XMDAT5SM.js → JZ2NHXQS.js} +2 -2
- package/esm/__chunks/{2D53SX6Q.js → K3WOCAES.js} +2 -2
- package/esm/__chunks/{ZRJAYXZW.js → KKXTCJYN.js} +4 -4
- package/esm/__chunks/{OBZMLI6J.js → L63MOBXC.js} +3 -3
- package/esm/__chunks/{KD77H3QU.js → LD67HE6L.js} +3 -3
- package/esm/__chunks/{IIER4YBF.js → LDHO2NSJ.js} +2 -2
- package/esm/__chunks/{SOKV3TSX.js → MDCSFLUU.js} +2 -2
- package/esm/__chunks/{6ZVAPMHT.js → MRA6RHRU.js} +4 -4
- package/esm/__chunks/{UQBPM777.js → N6SE4TDR.js} +10 -7
- package/esm/__chunks/{LWDIJ7XK.js → ND57YZ3V.js} +2 -2
- package/esm/__chunks/{BSEL4YAF.js → NSKXVZEF.js} +8 -6
- package/esm/__chunks/{74NFH3UH.js → NWYOIOBE.js} +3 -3
- package/esm/__chunks/{UVQLZ7T5.js → OIB4PV4M.js} +2 -2
- package/esm/__chunks/{UNZQGRPO.js → OJXDGVKQ.js} +7 -3
- package/esm/__chunks/{KHUR3XXK.js → OLHPCJXY.js} +6 -6
- package/esm/__chunks/{QVGW35GB.js → OSVWXUOM.js} +3 -3
- package/esm/__chunks/{XJENYSWS.js → PQKUBRVU.js} +2 -2
- package/esm/__chunks/{IZAFJHVY.js → QE62MSCL.js} +5 -5
- package/esm/__chunks/{WEEEI3KU.js → QGD6VM2D.js} +3 -3
- package/esm/__chunks/{WSQNIDGC.js → QVEJ36PB.js} +2 -2
- package/esm/__chunks/{TCAGH6BH.js → QZUWIJQN.js} +2 -2
- package/esm/__chunks/{2UJDTHC7.js → R7IT6RIP.js} +3 -3
- package/esm/__chunks/{O3TNZQBF.js → RM6VCCZ7.js} +4 -4
- package/esm/__chunks/{3CCTMYB6.js → S5ELSLEU.js} +6 -6
- package/esm/__chunks/{YJS26JVG.js → SCDU7JWG.js} +1 -1
- package/esm/__chunks/{LG4RFBHV.js → SJPAIJOW.js} +4 -4
- package/esm/__chunks/{KZ2S4ZC5.js → SLHXTMPQ.js} +3 -3
- package/esm/__chunks/{BTK3EXKD.js → SNORBXW6.js} +2 -2
- package/esm/__chunks/{HQFKUKP3.js → SZ3ZPZZI.js} +5 -5
- package/esm/__chunks/{PLQDTVXM.js → SZHY72KI.js} +3 -3
- package/esm/__chunks/{IGFP5YPG.js → T5ZXM55C.js} +2 -2
- package/esm/__chunks/{ZPO4YZYE.js → T75KQT4U.js} +2 -2
- package/esm/__chunks/{KB6RR6FL.js → TBGPDHVR.js} +1 -1
- package/esm/__chunks/{O37V6X5C.js → TI35IBOT.js} +3 -3
- package/esm/__chunks/{QS6GU7GL.js → UPTSIFGR.js} +3 -3
- package/esm/__chunks/{E5PXVSMA.js → UZXETJJN.js} +2 -2
- package/esm/__chunks/{AYTT7WWV.js → VJLCZNVL.js} +2 -2
- package/esm/__chunks/{2UWK5GNE.js → WTPLYM5X.js} +5 -5
- package/esm/__chunks/{ULASSYJG.js → XFAKW3P3.js} +7 -7
- package/esm/__chunks/{X5LAA6JI.js → Y7TEGSHG.js} +5 -5
- package/esm/__chunks/{HGZKAGPL.js → Z4WWVOIF.js} +17 -2
- package/esm/__chunks/{NAXN2XAB.js → ZHUQ44XA.js} +3 -3
- package/esm/__chunks/{H2MF5R7J.js → ZVQU5EXS.js} +2 -2
- package/esm/__chunks/{FGSEH62K.js → ZVZ6OOER.js} +3 -3
- package/esm/button/button.js +5 -5
- package/esm/checkbox/checkbox-check.js +3 -3
- package/esm/checkbox/checkbox-context.js +3 -3
- package/esm/checkbox/checkbox-provider.js +7 -7
- package/esm/checkbox/checkbox-store.js +3 -3
- package/esm/checkbox/checkbox.js +7 -7
- package/esm/collection/collection-context.js +3 -3
- package/esm/collection/collection-item.js +4 -4
- package/esm/collection/collection-provider.js +5 -5
- package/esm/collection/collection-renderer.d.ts +2 -1
- package/esm/collection/collection-renderer.js +5 -5
- package/esm/collection/collection-store.js +3 -3
- package/esm/collection/collection.js +3 -3
- package/esm/combobox/combobox-cancel.js +11 -11
- package/esm/combobox/combobox-context.js +8 -8
- package/esm/combobox/combobox-disclosure.js +13 -13
- package/esm/combobox/combobox-group-label.js +4 -4
- package/esm/combobox/combobox-group.js +10 -10
- package/esm/combobox/combobox-item-check.js +9 -9
- package/esm/combobox/combobox-item-value.js +9 -9
- package/esm/combobox/combobox-item.js +14 -14
- package/esm/combobox/combobox-label.js +8 -8
- package/esm/combobox/combobox-list.js +11 -11
- package/esm/combobox/combobox-popover.js +28 -27
- package/esm/combobox/combobox-provider.js +16 -16
- package/esm/combobox/combobox-row.js +9 -9
- package/esm/combobox/combobox-separator.js +10 -10
- package/esm/combobox/combobox-store.js +12 -12
- package/esm/combobox/combobox-value.js +8 -8
- package/esm/combobox/combobox.js +12 -13
- package/esm/command/command.js +4 -4
- package/esm/composite/composite-container.js +6 -6
- package/esm/composite/composite-context.js +4 -4
- package/esm/composite/composite-group-label.js +4 -4
- package/esm/composite/composite-group.js +4 -4
- package/esm/composite/composite-hover.js +5 -5
- package/esm/composite/composite-input.js +2 -2
- package/esm/composite/composite-item.js +9 -9
- package/esm/composite/composite-overflow-disclosure.js +17 -17
- package/esm/composite/composite-overflow-store.js +5 -5
- package/esm/composite/composite-overflow.js +24 -23
- package/esm/composite/composite-provider.js +7 -7
- package/esm/composite/composite-renderer.d.ts +2 -1
- package/esm/composite/composite-renderer.js +7 -7
- package/esm/composite/composite-row.js +5 -5
- package/esm/composite/composite-separator.js +6 -6
- package/esm/composite/composite-store.js +4 -4
- package/esm/composite/composite-typeahead.js +5 -5
- package/esm/composite/composite.js +6 -6
- package/esm/dialog/dialog-backdrop.js +9 -9
- package/esm/dialog/dialog-context.js +4 -4
- package/esm/dialog/dialog-description.js +5 -5
- package/esm/dialog/dialog-disclosure.js +9 -9
- package/esm/dialog/dialog-dismiss.js +8 -8
- package/esm/dialog/dialog-heading.js +6 -6
- package/esm/dialog/dialog-provider.js +7 -7
- package/esm/dialog/dialog-store.js +4 -4
- package/esm/dialog/dialog.js +22 -21
- package/esm/dialog/utils/disable-tree.js +2 -1
- package/esm/dialog/utils/is-focus-trap.d.ts +1 -0
- package/esm/dialog/utils/is-focus-trap.js +8 -0
- package/esm/dialog/utils/use-hide-on-interact-outside.js +6 -2
- package/esm/dialog/utils/use-nested-dialogs.js +2 -2
- package/esm/dialog/utils/use-prevent-body-scroll.js +3 -3
- package/esm/dialog/utils/use-root-dialog.js +2 -2
- package/esm/disclosure/disclosure-content.js +6 -6
- package/esm/disclosure/disclosure-context.js +3 -3
- package/esm/disclosure/disclosure-provider.js +5 -5
- package/esm/disclosure/disclosure-store.js +3 -3
- package/esm/disclosure/disclosure.js +7 -7
- package/esm/focus-trap/focus-trap-region.js +4 -4
- package/esm/focus-trap/focus-trap.js +4 -4
- package/esm/focusable/focusable-container.js +3 -3
- package/esm/focusable/focusable.d.ts +5 -0
- package/esm/focusable/focusable.js +5 -3
- package/esm/form/form-checkbox.js +14 -14
- package/esm/form/form-context.js +4 -4
- package/esm/form/form-control.js +6 -6
- package/esm/form/form-description.js +5 -5
- package/esm/form/form-error.js +5 -5
- package/esm/form/form-field.js +6 -6
- package/esm/form/form-group-label.js +3 -3
- package/esm/form/form-group.js +4 -4
- package/esm/form/form-input.js +7 -7
- package/esm/form/form-label.js +5 -5
- package/esm/form/form-provider.js +7 -7
- package/esm/form/form-push.js +8 -8
- package/esm/form/form-radio-group.js +4 -4
- package/esm/form/form-radio.js +13 -13
- package/esm/form/form-remove.js +7 -7
- package/esm/form/form-reset.js +7 -7
- package/esm/form/form-store.js +4 -4
- package/esm/form/form-submit.js +7 -7
- package/esm/form/form.js +4 -4
- package/esm/group/group-label.js +3 -3
- package/esm/group/group.js +3 -3
- package/esm/heading/heading.js +3 -3
- package/esm/hovercard/hovercard-anchor.js +8 -8
- package/esm/hovercard/hovercard-arrow.js +7 -7
- package/esm/hovercard/hovercard-context.js +6 -6
- package/esm/hovercard/hovercard-description.js +7 -7
- package/esm/hovercard/hovercard-disclosure.js +12 -12
- package/esm/hovercard/hovercard-dismiss.js +12 -12
- package/esm/hovercard/hovercard-heading.js +8 -8
- package/esm/hovercard/hovercard-provider.js +11 -11
- package/esm/hovercard/hovercard-store.js +6 -6
- package/esm/hovercard/hovercard.js +26 -25
- package/esm/menu/menu-arrow.js +11 -11
- package/esm/menu/menu-bar-provider.js +10 -10
- package/esm/menu/menu-bar-store.js +5 -5
- package/esm/menu/menu-bar.js +12 -12
- package/esm/menu/menu-button-arrow.js +11 -11
- package/esm/menu/menu-button.js +23 -22
- package/esm/menu/menu-context.js +10 -10
- package/esm/menu/menu-description.js +7 -7
- package/esm/menu/menu-dismiss.js +16 -16
- package/esm/menu/menu-group-label.js +4 -4
- package/esm/menu/menu-group.js +4 -4
- package/esm/menu/menu-heading.js +8 -8
- package/esm/menu/menu-item-check.js +11 -11
- package/esm/menu/menu-item-checkbox.js +22 -22
- package/esm/menu/menu-item-radio.js +19 -19
- package/esm/menu/menu-item.js +17 -17
- package/esm/menu/menu-list.js +16 -16
- package/esm/menu/menu-provider.js +19 -19
- package/esm/menu/menu-separator.js +12 -12
- package/esm/menu/menu-store.js +19 -19
- package/esm/menu/menu.js +33 -32
- package/esm/menubar/menubar-context.js +5 -5
- package/esm/menubar/menubar-provider.js +10 -10
- package/esm/menubar/menubar-store.js +5 -5
- package/esm/menubar/menubar.js +12 -12
- package/esm/popover/popover-anchor.js +6 -6
- package/esm/popover/popover-arrow.js +6 -6
- package/esm/popover/popover-context.js +5 -5
- package/esm/popover/popover-description.js +6 -6
- package/esm/popover/popover-disclosure-arrow.js +6 -6
- package/esm/popover/popover-disclosure.js +12 -12
- package/esm/popover/popover-dismiss.js +10 -10
- package/esm/popover/popover-heading.js +7 -7
- package/esm/popover/popover-provider.js +9 -9
- package/esm/popover/popover-store.js +5 -5
- package/esm/popover/popover.js +24 -23
- package/esm/portal/portal.js +5 -5
- package/esm/radio/radio-context.js +5 -5
- package/esm/radio/radio-group.js +7 -7
- package/esm/radio/radio-provider.js +9 -9
- package/esm/radio/radio-store.js +5 -5
- package/esm/radio/radio.js +11 -11
- package/esm/role/role.js +3 -3
- package/esm/select/select-arrow.js +10 -10
- package/esm/select/select-context.js +8 -8
- package/esm/select/select-dismiss.js +13 -13
- package/esm/select/select-group-label.js +4 -4
- package/esm/select/select-group.js +4 -4
- package/esm/select/select-heading.js +11 -11
- package/esm/select/select-item-check.js +9 -9
- package/esm/select/select-item.js +14 -14
- package/esm/select/select-label.js +8 -8
- package/esm/select/select-list.js +14 -14
- package/esm/select/select-popover.js +30 -29
- package/esm/select/select-provider.js +16 -16
- package/esm/select/select-renderer.js +11 -11
- package/esm/select/select-row.js +9 -9
- package/esm/select/select-separator.js +10 -10
- package/esm/select/select-store.js +15 -15
- package/esm/select/select-value.js +9 -9
- package/esm/select/select.js +18 -18
- package/esm/separator/separator.js +3 -3
- package/esm/tab/tab-context.js +5 -5
- package/esm/tab/tab-list.js +7 -7
- package/esm/tab/tab-panel.d.ts +39 -1
- package/esm/tab/tab-panel.js +78 -34
- package/esm/tab/tab-provider.js +14 -14
- package/esm/tab/tab-store.js +13 -13
- package/esm/tab/tab.js +11 -10
- package/esm/tag/tag-context.js +5 -5
- package/esm/tag/tag-input.js +10 -10
- package/esm/tag/tag-list-label.js +5 -5
- package/esm/tag/tag-list.js +7 -7
- package/esm/tag/tag-provider.js +9 -9
- package/esm/tag/tag-remove.js +6 -6
- package/esm/tag/tag-store.js +5 -5
- package/esm/tag/tag-value.js +5 -5
- package/esm/tag/tag-values.js +5 -5
- package/esm/tag/tag.js +10 -10
- package/esm/toolbar/toolbar-container.js +12 -12
- package/esm/toolbar/toolbar-context.js +5 -5
- package/esm/toolbar/toolbar-input.js +11 -11
- package/esm/toolbar/toolbar-item.js +11 -11
- package/esm/toolbar/toolbar-provider.js +9 -9
- package/esm/toolbar/toolbar-separator.js +7 -7
- package/esm/toolbar/toolbar-store.js +5 -5
- package/esm/toolbar/toolbar.js +11 -11
- package/esm/tooltip/tooltip-anchor.js +9 -9
- package/esm/tooltip/tooltip-arrow.js +8 -8
- package/esm/tooltip/tooltip-context.js +7 -7
- package/esm/tooltip/tooltip-provider.js +13 -13
- package/esm/tooltip/tooltip-store.js +7 -7
- package/esm/tooltip/tooltip.js +27 -26
- package/esm/utils/hooks.js +1 -1
- package/esm/utils/store.js +2 -2
- package/esm/utils/system.js +2 -2
- package/esm/visually-hidden/visually-hidden.js +3 -3
- package/package.json +9 -2
- package/cjs/__chunks/4S6ECZOG.cjs +0 -37
- package/cjs/__chunks/7HGGYTZO.cjs +0 -32
- package/cjs/__chunks/C57QBLY4.cjs +0 -44
- package/cjs/__chunks/FWLIMVEY.cjs +0 -40
- package/cjs/__chunks/HWXUZE7H.cjs +0 -49
- package/cjs/__chunks/LXIK4XDQ.cjs +0 -64
- package/cjs/__chunks/OUJ2OAAV.cjs +0 -37
- package/cjs/__chunks/P3FJX7GU.cjs +0 -31
- package/cjs/__chunks/RE5WCSMF.cjs +0 -27
- package/cjs/__chunks/RMSWSIPT.cjs +0 -40
- package/cjs/__chunks/TGJYPCV6.cjs +0 -31
- package/cjs/__chunks/TTZ2BSWN.cjs +0 -37
- package/cjs/__chunks/YAI2LUHU.cjs +0 -29
- package/cjs/__chunks/ZM7XHBNF.cjs +0 -37
package/cjs/tab/tab-list.cjs
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _JXWSXYURcjs = require('../__chunks/JXWSXYUR.cjs');
|
|
4
5
|
|
|
5
|
-
var _PSYRVXCOcjs = require('../__chunks/PSYRVXCO.cjs');
|
|
6
6
|
|
|
7
|
+
var _BUKUAI2Fcjs = require('../__chunks/BUKUAI2F.cjs');
|
|
8
|
+
require('../__chunks/MIBORXQW.cjs');
|
|
9
|
+
require('../__chunks/2P3WACML.cjs');
|
|
10
|
+
require('../__chunks/UJOJUNIC.cjs');
|
|
11
|
+
require('../__chunks/XFOTDXSH.cjs');
|
|
12
|
+
require('../__chunks/T3QB4FR3.cjs');
|
|
7
13
|
|
|
8
|
-
var _VPKU3AVXcjs = require('../__chunks/VPKU3AVX.cjs');
|
|
9
|
-
require('../__chunks/BV5PE6PZ.cjs');
|
|
10
|
-
require('../__chunks/3MQN464L.cjs');
|
|
11
|
-
require('../__chunks/32EK4BGY.cjs');
|
|
12
|
-
require('../__chunks/YGEHBXGA.cjs');
|
|
13
|
-
require('../__chunks/DYIDES27.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
var _MFAH5VLWcjs = require('../__chunks/MFAH5VLW.cjs');
|
|
17
18
|
|
|
18
|
-
var _M5IWBORBcjs = require('../__chunks/M5IWBORB.cjs');
|
|
19
19
|
|
|
20
|
+
var _TM5Y6AJUcjs = require('../__chunks/TM5Y6AJU.cjs');
|
|
21
|
+
require('../__chunks/FDRJDQ5Y.cjs');
|
|
20
22
|
|
|
21
|
-
var _WT6AUJWVcjs = require('../__chunks/WT6AUJWV.cjs');
|
|
22
|
-
require('../__chunks/54XFMNDS.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
var _3IVNQNIVcjs = require('../__chunks/3IVNQNIV.cjs');
|
|
25
|
+
var _7EQBAZ46cjs = require('../__chunks/7EQBAZ46.cjs');
|
|
27
26
|
|
|
28
27
|
// src/tab/tab-list.tsx
|
|
29
28
|
var _misc = require('@ariakit/core/utils/misc');
|
|
30
29
|
var _jsxruntime = require('react/jsx-runtime');
|
|
31
30
|
var TagName = "div";
|
|
32
|
-
var useTabList =
|
|
31
|
+
var useTabList = _MFAH5VLWcjs.createHook.call(void 0,
|
|
33
32
|
function useTabList2(_a) {
|
|
34
|
-
var _b = _a, { store } = _b, props =
|
|
35
|
-
const context =
|
|
33
|
+
var _b = _a, { store } = _b, props = _7EQBAZ46cjs.__objRest.call(void 0, _b, ["store"]);
|
|
34
|
+
const context = _JXWSXYURcjs.useTabProviderContext.call(void 0, );
|
|
36
35
|
store = store || context;
|
|
37
36
|
_misc.invariant.call(void 0,
|
|
38
37
|
store,
|
|
@@ -41,27 +40,27 @@ var useTabList = _M5IWBORBcjs.createHook.call(void 0,
|
|
|
41
40
|
const orientation = store.useState(
|
|
42
41
|
(state) => state.orientation === "both" ? void 0 : state.orientation
|
|
43
42
|
);
|
|
44
|
-
props =
|
|
43
|
+
props = _TM5Y6AJUcjs.useWrapElement.call(void 0,
|
|
45
44
|
props,
|
|
46
|
-
(element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
45
|
+
(element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _JXWSXYURcjs.TabScopedContextProvider, { value: store, children: element }),
|
|
47
46
|
[store]
|
|
48
47
|
);
|
|
49
48
|
if (store.composite) {
|
|
50
|
-
props =
|
|
49
|
+
props = _7EQBAZ46cjs.__spreadValues.call(void 0, {
|
|
51
50
|
focusable: false
|
|
52
51
|
}, props);
|
|
53
52
|
}
|
|
54
|
-
props =
|
|
53
|
+
props = _7EQBAZ46cjs.__spreadValues.call(void 0, {
|
|
55
54
|
role: "tablist",
|
|
56
55
|
"aria-orientation": orientation
|
|
57
56
|
}, props);
|
|
58
|
-
props =
|
|
57
|
+
props = _BUKUAI2Fcjs.useComposite.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, { store }, props));
|
|
59
58
|
return props;
|
|
60
59
|
}
|
|
61
60
|
);
|
|
62
|
-
var TabList =
|
|
61
|
+
var TabList = _MFAH5VLWcjs.forwardRef.call(void 0, function TabList2(props) {
|
|
63
62
|
const htmlProps = useTabList(props);
|
|
64
|
-
return
|
|
63
|
+
return _MFAH5VLWcjs.createElement.call(void 0, TagName, htmlProps);
|
|
65
64
|
});
|
|
66
65
|
|
|
67
66
|
|
package/cjs/tab/tab-panel.cjs
CHANGED
|
@@ -1,72 +1,128 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _JXWSXYURcjs = require('../__chunks/JXWSXYUR.cjs');
|
|
4
5
|
|
|
5
|
-
var _PSYRVXCOcjs = require('../__chunks/PSYRVXCO.cjs');
|
|
6
6
|
|
|
7
|
+
var _EPRWVKECcjs = require('../__chunks/EPRWVKEC.cjs');
|
|
8
|
+
require('../__chunks/2P3WACML.cjs');
|
|
9
|
+
require('../__chunks/UJOJUNIC.cjs');
|
|
7
10
|
|
|
8
|
-
var _RRCMCI3Icjs = require('../__chunks/RRCMCI3I.cjs');
|
|
9
|
-
require('../__chunks/3MQN464L.cjs');
|
|
10
|
-
require('../__chunks/32EK4BGY.cjs');
|
|
11
11
|
|
|
12
|
+
var _WFEIS2SRcjs = require('../__chunks/WFEIS2SR.cjs');
|
|
13
|
+
require('../__chunks/E3JIN4WH.cjs');
|
|
14
|
+
require('../__chunks/EPHIWWY3.cjs');
|
|
12
15
|
|
|
13
|
-
var _VRPZ4HD5cjs = require('../__chunks/VRPZ4HD5.cjs');
|
|
14
|
-
require('../__chunks/HHTQYHYL.cjs');
|
|
15
|
-
require('../__chunks/7K2RM2SD.cjs');
|
|
16
16
|
|
|
17
|
+
var _XFOTDXSHcjs = require('../__chunks/XFOTDXSH.cjs');
|
|
18
|
+
require('../__chunks/T3QB4FR3.cjs');
|
|
17
19
|
|
|
18
|
-
var _YGEHBXGAcjs = require('../__chunks/YGEHBXGA.cjs');
|
|
19
|
-
require('../__chunks/DYIDES27.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
var _MFAH5VLWcjs = require('../__chunks/MFAH5VLW.cjs');
|
|
23
24
|
|
|
24
|
-
var _M5IWBORBcjs = require('../__chunks/M5IWBORB.cjs');
|
|
25
25
|
|
|
26
|
+
var _VZG3Q4VAcjs = require('../__chunks/VZG3Q4VA.cjs');
|
|
26
27
|
|
|
27
|
-
var _C55AGIGAcjs = require('../__chunks/C55AGIGA.cjs');
|
|
28
|
-
require('../__chunks/DMH7HONV.cjs');
|
|
29
28
|
|
|
29
|
+
var _Y7UE4JBRcjs = require('../__chunks/Y7UE4JBR.cjs');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var _WT6AUJWVcjs = require('../__chunks/WT6AUJWV.cjs');
|
|
35
|
-
require('../__chunks/54XFMNDS.cjs');
|
|
36
34
|
|
|
35
|
+
var _TM5Y6AJUcjs = require('../__chunks/TM5Y6AJU.cjs');
|
|
36
|
+
require('../__chunks/FDRJDQ5Y.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
|
|
41
|
+
var _7EQBAZ46cjs = require('../__chunks/7EQBAZ46.cjs');
|
|
41
42
|
|
|
42
43
|
// src/tab/tab-panel.tsx
|
|
43
|
-
var _tabstore = require('@ariakit/core/tab/tab-store');
|
|
44
44
|
var _focus = require('@ariakit/core/utils/focus');
|
|
45
45
|
var _misc = require('@ariakit/core/utils/misc');
|
|
46
46
|
var _react = require('react');
|
|
47
47
|
var _jsxruntime = require('react/jsx-runtime');
|
|
48
48
|
var TagName = "div";
|
|
49
|
-
var useTabPanel =
|
|
49
|
+
var useTabPanel = _MFAH5VLWcjs.createHook.call(void 0,
|
|
50
50
|
function useTabPanel2(_a) {
|
|
51
51
|
var _b = _a, {
|
|
52
52
|
store,
|
|
53
53
|
unmountOnHide,
|
|
54
54
|
tabId: tabIdProp,
|
|
55
|
-
getItem: getItemProp
|
|
56
|
-
|
|
55
|
+
getItem: getItemProp,
|
|
56
|
+
scrollRestoration,
|
|
57
|
+
scrollElement
|
|
58
|
+
} = _b, props = _7EQBAZ46cjs.__objRest.call(void 0, _b, [
|
|
57
59
|
"store",
|
|
58
60
|
"unmountOnHide",
|
|
59
61
|
"tabId",
|
|
60
|
-
"getItem"
|
|
62
|
+
"getItem",
|
|
63
|
+
"scrollRestoration",
|
|
64
|
+
"scrollElement"
|
|
61
65
|
]);
|
|
62
|
-
const context =
|
|
66
|
+
const context = _JXWSXYURcjs.useTabProviderContext.call(void 0, );
|
|
63
67
|
store = store || context;
|
|
64
68
|
_misc.invariant.call(void 0,
|
|
65
69
|
store,
|
|
66
70
|
process.env.NODE_ENV !== "production" && "TabPanel must receive a `store` prop or be wrapped in a TabProvider component."
|
|
67
71
|
);
|
|
68
72
|
const ref = _react.useRef.call(void 0, null);
|
|
69
|
-
const id =
|
|
73
|
+
const id = _TM5Y6AJUcjs.useId.call(void 0, props.id);
|
|
74
|
+
const tabId = _Y7UE4JBRcjs.useStoreState.call(void 0,
|
|
75
|
+
store.panels,
|
|
76
|
+
() => {
|
|
77
|
+
var _a2;
|
|
78
|
+
return tabIdProp || ((_a2 = store == null ? void 0 : store.panels.item(id)) == null ? void 0 : _a2.tabId);
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
const open = _Y7UE4JBRcjs.useStoreState.call(void 0,
|
|
82
|
+
store,
|
|
83
|
+
(state) => !!tabId && state.selectedId === tabId
|
|
84
|
+
);
|
|
85
|
+
const disclosure = _VZG3Q4VAcjs.useDisclosureStore.call(void 0, { open });
|
|
86
|
+
const mounted = _Y7UE4JBRcjs.useStoreState.call(void 0, disclosure, "mounted");
|
|
87
|
+
const scrollPositionRef = _react.useRef.call(void 0,
|
|
88
|
+
/* @__PURE__ */ new Map()
|
|
89
|
+
);
|
|
90
|
+
const getScrollElement = _TM5Y6AJUcjs.useEvent.call(void 0, () => {
|
|
91
|
+
const panelElement = ref.current;
|
|
92
|
+
if (!panelElement) return null;
|
|
93
|
+
if (!scrollElement) return panelElement;
|
|
94
|
+
if (typeof scrollElement === "function") {
|
|
95
|
+
return scrollElement(panelElement);
|
|
96
|
+
}
|
|
97
|
+
if ("current" in scrollElement) {
|
|
98
|
+
return scrollElement.current;
|
|
99
|
+
}
|
|
100
|
+
return scrollElement;
|
|
101
|
+
});
|
|
102
|
+
_react.useEffect.call(void 0, () => {
|
|
103
|
+
var _a2, _b2;
|
|
104
|
+
if (!scrollRestoration) return;
|
|
105
|
+
if (!mounted) return;
|
|
106
|
+
const element = getScrollElement();
|
|
107
|
+
if (!element) return;
|
|
108
|
+
if (scrollRestoration === "reset") {
|
|
109
|
+
element.scroll(0, 0);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (!tabId) return;
|
|
113
|
+
const position = scrollPositionRef.current.get(tabId);
|
|
114
|
+
element.scroll((_a2 = position == null ? void 0 : position.x) != null ? _a2 : 0, (_b2 = position == null ? void 0 : position.y) != null ? _b2 : 0);
|
|
115
|
+
const onScroll = () => {
|
|
116
|
+
scrollPositionRef.current.set(tabId, {
|
|
117
|
+
x: element.scrollLeft,
|
|
118
|
+
y: element.scrollTop
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
element.addEventListener("scroll", onScroll);
|
|
122
|
+
return () => {
|
|
123
|
+
element.removeEventListener("scroll", onScroll);
|
|
124
|
+
};
|
|
125
|
+
}, [scrollRestoration, mounted, tabId, getScrollElement, store]);
|
|
70
126
|
const [hasTabbableChildren, setHasTabbableChildren] = _react.useState.call(void 0, false);
|
|
71
127
|
_react.useEffect.call(void 0, () => {
|
|
72
128
|
const element = ref.current;
|
|
@@ -76,7 +132,7 @@ var useTabPanel = _M5IWBORBcjs.createHook.call(void 0,
|
|
|
76
132
|
}, []);
|
|
77
133
|
const getItem = _react.useCallback.call(void 0,
|
|
78
134
|
(item) => {
|
|
79
|
-
const nextItem =
|
|
135
|
+
const nextItem = _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {}, item), { id: id || item.id, tabId: tabIdProp });
|
|
80
136
|
if (getItemProp) {
|
|
81
137
|
return getItemProp(nextItem);
|
|
82
138
|
}
|
|
@@ -85,64 +141,51 @@ var useTabPanel = _M5IWBORBcjs.createHook.call(void 0,
|
|
|
85
141
|
[id, tabIdProp, getItemProp]
|
|
86
142
|
);
|
|
87
143
|
const onKeyDownProp = props.onKeyDown;
|
|
88
|
-
const onKeyDown =
|
|
144
|
+
const onKeyDown = _TM5Y6AJUcjs.useEvent.call(void 0, (event) => {
|
|
89
145
|
onKeyDownProp == null ? void 0 : onKeyDownProp(event);
|
|
90
146
|
if (event.defaultPrevented) return;
|
|
91
147
|
if (!(store == null ? void 0 : store.composite)) return;
|
|
92
|
-
const state = store.getState();
|
|
93
|
-
const tab = _tabstore.createTabStore.call(void 0, _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {}, state), { activeId: state.selectedId }));
|
|
94
|
-
tab.setState("renderedItems", state.renderedItems);
|
|
95
148
|
const keyMap = {
|
|
96
|
-
ArrowLeft:
|
|
97
|
-
ArrowRight:
|
|
98
|
-
Home:
|
|
99
|
-
End:
|
|
149
|
+
ArrowLeft: store.previous,
|
|
150
|
+
ArrowRight: store.next,
|
|
151
|
+
Home: store.first,
|
|
152
|
+
End: store.last
|
|
100
153
|
};
|
|
101
154
|
const action = keyMap[event.key];
|
|
102
155
|
if (!action) return;
|
|
103
|
-
const
|
|
156
|
+
const { selectedId } = store.getState();
|
|
157
|
+
const nextId = action({ activeId: selectedId });
|
|
104
158
|
if (!nextId) return;
|
|
105
159
|
event.preventDefault();
|
|
106
160
|
store.move(nextId);
|
|
107
161
|
});
|
|
108
|
-
props =
|
|
162
|
+
props = _TM5Y6AJUcjs.useWrapElement.call(void 0,
|
|
109
163
|
props,
|
|
110
|
-
(element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
164
|
+
(element) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _JXWSXYURcjs.TabScopedContextProvider, { value: store, children: element }),
|
|
111
165
|
[store]
|
|
112
166
|
);
|
|
113
|
-
|
|
114
|
-
() => {
|
|
115
|
-
var _a2;
|
|
116
|
-
return tabIdProp || ((_a2 = store == null ? void 0 : store.panels.item(id)) == null ? void 0 : _a2.tabId);
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
const open = store.useState(
|
|
120
|
-
(state) => !!tabId && state.selectedId === tabId
|
|
121
|
-
);
|
|
122
|
-
const disclosure = _C55AGIGAcjs.useDisclosureStore.call(void 0, { open });
|
|
123
|
-
const mounted = disclosure.useState("mounted");
|
|
124
|
-
props = _3IVNQNIVcjs.__spreadProps.call(void 0, _3IVNQNIVcjs.__spreadValues.call(void 0, {
|
|
167
|
+
props = _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {
|
|
125
168
|
id,
|
|
126
169
|
role: "tabpanel",
|
|
127
170
|
"aria-labelledby": tabId || void 0
|
|
128
171
|
}, props), {
|
|
129
172
|
children: unmountOnHide && !mounted ? null : props.children,
|
|
130
|
-
ref:
|
|
173
|
+
ref: _TM5Y6AJUcjs.useMergeRefs.call(void 0, ref, props.ref),
|
|
131
174
|
onKeyDown
|
|
132
175
|
});
|
|
133
|
-
props =
|
|
176
|
+
props = _XFOTDXSHcjs.useFocusable.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, {
|
|
134
177
|
// If the tab panel is rendered as part of another composite widget such
|
|
135
178
|
// as combobox, it should not be focusable.
|
|
136
179
|
focusable: !store.composite && !hasTabbableChildren
|
|
137
180
|
}, props));
|
|
138
|
-
props =
|
|
139
|
-
props =
|
|
181
|
+
props = _WFEIS2SRcjs.useDisclosureContent.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, { store: disclosure }, props));
|
|
182
|
+
props = _EPRWVKECcjs.useCollectionItem.call(void 0, _7EQBAZ46cjs.__spreadProps.call(void 0, _7EQBAZ46cjs.__spreadValues.call(void 0, { store: store.panels }, props), { getItem }));
|
|
140
183
|
return props;
|
|
141
184
|
}
|
|
142
185
|
);
|
|
143
|
-
var TabPanel =
|
|
186
|
+
var TabPanel = _MFAH5VLWcjs.forwardRef.call(void 0, function TabPanel2(props) {
|
|
144
187
|
const htmlProps = useTabPanel(props);
|
|
145
|
-
return
|
|
188
|
+
return _MFAH5VLWcjs.createElement.call(void 0, TagName, htmlProps);
|
|
146
189
|
});
|
|
147
190
|
|
|
148
191
|
|
package/cjs/tab/tab-panel.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElementType } from "react";
|
|
1
|
+
import type { ElementType, RefObject } from "react";
|
|
2
2
|
import type { CollectionItemOptions } from "../collection/collection-item.tsx";
|
|
3
3
|
import type { DisclosureContentOptions } from "../disclosure/disclosure-content.tsx";
|
|
4
4
|
import type { FocusableOptions } from "../focusable/focusable.tsx";
|
|
@@ -73,6 +73,44 @@ export interface TabPanelOptions<T extends ElementType = TagName> extends Focusa
|
|
|
73
73
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
74
74
|
*/
|
|
75
75
|
tabId?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Manages the scrolling behavior of the tab panel when it is hidden and then
|
|
78
|
+
* shown again.
|
|
79
|
+
*
|
|
80
|
+
* This is especially useful when using a single tab panel for multiple tabs,
|
|
81
|
+
* where you dynamically change the
|
|
82
|
+
* [`tabId`](https://ariakit.org/reference/tab-panel#tabid) prop and the
|
|
83
|
+
* panel's children, which would otherwise retain the current scroll position
|
|
84
|
+
* when switching tabs.
|
|
85
|
+
*
|
|
86
|
+
* When set to `true`, the component will save the scroll position and restore
|
|
87
|
+
* it when the panel is shown again. When set to `"reset"`, the scroll
|
|
88
|
+
* position will reset to the top when the panel is displayed again.
|
|
89
|
+
*
|
|
90
|
+
* The default scroll element is the tab panel itself. To scroll a different
|
|
91
|
+
* element, use the
|
|
92
|
+
* [`scrollElement`](https://ariakit.org/reference/tab-panel#scrollelement)
|
|
93
|
+
* prop.
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
scrollRestoration?: boolean | "reset";
|
|
97
|
+
/**
|
|
98
|
+
* When using the
|
|
99
|
+
* [`scrollRestoration`](https://ariakit.org/reference/tab-panel#scrollrestoration)
|
|
100
|
+
* prop, the tab panel element serves as the default scroll element. You can
|
|
101
|
+
* use this prop to designate a different element for scrolling.
|
|
102
|
+
*
|
|
103
|
+
* If a function is provided, it will be called with the tab panel element as
|
|
104
|
+
* an argument. The function should return the element to scroll.
|
|
105
|
+
* @example
|
|
106
|
+
* ```jsx
|
|
107
|
+
* <TabPanel
|
|
108
|
+
* scrollRestoration
|
|
109
|
+
* scrollElement={(panel) => panel.querySelector(".scrollable")}
|
|
110
|
+
* />
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
scrollElement?: HTMLElement | RefObject<HTMLElement> | ((panel: HTMLElement) => HTMLElement | null);
|
|
76
114
|
}
|
|
77
115
|
export type TabPanelProps<T extends ElementType = TagName> = Props<T, TabPanelOptions<T>>;
|
|
78
116
|
export {};
|
package/cjs/tab/tab-panel.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElementType } from "react";
|
|
1
|
+
import type { ElementType, RefObject } from "react";
|
|
2
2
|
import type { CollectionItemOptions } from "../collection/collection-item.tsx";
|
|
3
3
|
import type { DisclosureContentOptions } from "../disclosure/disclosure-content.tsx";
|
|
4
4
|
import type { FocusableOptions } from "../focusable/focusable.tsx";
|
|
@@ -73,6 +73,44 @@ export interface TabPanelOptions<T extends ElementType = TagName> extends Focusa
|
|
|
73
73
|
* Tabs](https://ariakit.org/examples/select-combobox-tab)
|
|
74
74
|
*/
|
|
75
75
|
tabId?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Manages the scrolling behavior of the tab panel when it is hidden and then
|
|
78
|
+
* shown again.
|
|
79
|
+
*
|
|
80
|
+
* This is especially useful when using a single tab panel for multiple tabs,
|
|
81
|
+
* where you dynamically change the
|
|
82
|
+
* [`tabId`](https://ariakit.org/reference/tab-panel#tabid) prop and the
|
|
83
|
+
* panel's children, which would otherwise retain the current scroll position
|
|
84
|
+
* when switching tabs.
|
|
85
|
+
*
|
|
86
|
+
* When set to `true`, the component will save the scroll position and restore
|
|
87
|
+
* it when the panel is shown again. When set to `"reset"`, the scroll
|
|
88
|
+
* position will reset to the top when the panel is displayed again.
|
|
89
|
+
*
|
|
90
|
+
* The default scroll element is the tab panel itself. To scroll a different
|
|
91
|
+
* element, use the
|
|
92
|
+
* [`scrollElement`](https://ariakit.org/reference/tab-panel#scrollelement)
|
|
93
|
+
* prop.
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
96
|
+
scrollRestoration?: boolean | "reset";
|
|
97
|
+
/**
|
|
98
|
+
* When using the
|
|
99
|
+
* [`scrollRestoration`](https://ariakit.org/reference/tab-panel#scrollrestoration)
|
|
100
|
+
* prop, the tab panel element serves as the default scroll element. You can
|
|
101
|
+
* use this prop to designate a different element for scrolling.
|
|
102
|
+
*
|
|
103
|
+
* If a function is provided, it will be called with the tab panel element as
|
|
104
|
+
* an argument. The function should return the element to scroll.
|
|
105
|
+
* @example
|
|
106
|
+
* ```jsx
|
|
107
|
+
* <TabPanel
|
|
108
|
+
* scrollRestoration
|
|
109
|
+
* scrollElement={(panel) => panel.querySelector(".scrollable")}
|
|
110
|
+
* />
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
scrollElement?: HTMLElement | RefObject<HTMLElement> | ((panel: HTMLElement) => HTMLElement | null);
|
|
76
114
|
}
|
|
77
115
|
export type TabPanelProps<T extends ElementType = TagName> = Props<T, TabPanelOptions<T>>;
|
|
78
116
|
export {};
|
package/cjs/tab/tab-provider.cjs
CHANGED
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
+
var _VCWX76BPcjs = require('../__chunks/VCWX76BP.cjs');
|
|
4
|
+
require('../__chunks/BB26STNR.cjs');
|
|
5
|
+
require('../__chunks/P66OGEAY.cjs');
|
|
3
6
|
|
|
4
|
-
var _G7N4ZNGScjs = require('../__chunks/G7N4ZNGS.cjs');
|
|
5
|
-
require('../__chunks/F4DU6MSG.cjs');
|
|
6
|
-
require('../__chunks/RBHGB7EB.cjs');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
require('../__chunks/
|
|
11
|
-
require('../__chunks/
|
|
12
|
-
require('../__chunks/
|
|
13
|
-
require('../__chunks/
|
|
14
|
-
require('../__chunks/
|
|
15
|
-
require('../__chunks/
|
|
16
|
-
require('../__chunks/
|
|
17
|
-
require('../__chunks/
|
|
18
|
-
require('../__chunks/
|
|
19
|
-
require('../__chunks/
|
|
20
|
-
require('../__chunks/
|
|
21
|
-
require('../__chunks/3IVNQNIV.cjs');
|
|
8
|
+
var _JXWSXYURcjs = require('../__chunks/JXWSXYUR.cjs');
|
|
9
|
+
require('../__chunks/AY7QMXP6.cjs');
|
|
10
|
+
require('../__chunks/Z442OGUK.cjs');
|
|
11
|
+
require('../__chunks/2P3WACML.cjs');
|
|
12
|
+
require('../__chunks/UJOJUNIC.cjs');
|
|
13
|
+
require('../__chunks/5X5VM34K.cjs');
|
|
14
|
+
require('../__chunks/E3JIN4WH.cjs');
|
|
15
|
+
require('../__chunks/EPHIWWY3.cjs');
|
|
16
|
+
require('../__chunks/MFAH5VLW.cjs');
|
|
17
|
+
require('../__chunks/Y7UE4JBR.cjs');
|
|
18
|
+
require('../__chunks/TM5Y6AJU.cjs');
|
|
19
|
+
require('../__chunks/FDRJDQ5Y.cjs');
|
|
20
|
+
require('../__chunks/7EQBAZ46.cjs');
|
|
22
21
|
|
|
23
22
|
// src/tab/tab-provider.tsx
|
|
24
23
|
var _jsxruntime = require('react/jsx-runtime');
|
|
25
24
|
function TabProvider(props = {}) {
|
|
26
|
-
const store =
|
|
27
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25
|
+
const store = _VCWX76BPcjs.useTabStore.call(void 0, props);
|
|
26
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _JXWSXYURcjs.TabContextProvider, { value: store, children: props.children });
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
|
package/cjs/tab/tab-store.cjs
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _VCWX76BPcjs = require('../__chunks/VCWX76BP.cjs');
|
|
5
|
+
require('../__chunks/BB26STNR.cjs');
|
|
6
|
+
require('../__chunks/P66OGEAY.cjs');
|
|
7
|
+
require('../__chunks/AY7QMXP6.cjs');
|
|
8
|
+
require('../__chunks/Z442OGUK.cjs');
|
|
9
|
+
require('../__chunks/2P3WACML.cjs');
|
|
10
|
+
require('../__chunks/UJOJUNIC.cjs');
|
|
11
|
+
require('../__chunks/5X5VM34K.cjs');
|
|
12
|
+
require('../__chunks/E3JIN4WH.cjs');
|
|
13
|
+
require('../__chunks/EPHIWWY3.cjs');
|
|
14
|
+
require('../__chunks/MFAH5VLW.cjs');
|
|
15
|
+
require('../__chunks/Y7UE4JBR.cjs');
|
|
16
|
+
require('../__chunks/TM5Y6AJU.cjs');
|
|
17
|
+
require('../__chunks/FDRJDQ5Y.cjs');
|
|
18
|
+
require('../__chunks/7EQBAZ46.cjs');
|
|
4
19
|
|
|
5
|
-
var _G7N4ZNGScjs = require('../__chunks/G7N4ZNGS.cjs');
|
|
6
|
-
require('../__chunks/F4DU6MSG.cjs');
|
|
7
|
-
require('../__chunks/RBHGB7EB.cjs');
|
|
8
|
-
require('../__chunks/U46ICSYF.cjs');
|
|
9
|
-
require('../__chunks/SS36X3TM.cjs');
|
|
10
|
-
require('../__chunks/3MQN464L.cjs');
|
|
11
|
-
require('../__chunks/32EK4BGY.cjs');
|
|
12
|
-
require('../__chunks/AMARRBCF.cjs');
|
|
13
|
-
require('../__chunks/HHTQYHYL.cjs');
|
|
14
|
-
require('../__chunks/7K2RM2SD.cjs');
|
|
15
|
-
require('../__chunks/M5IWBORB.cjs');
|
|
16
|
-
require('../__chunks/DMH7HONV.cjs');
|
|
17
|
-
require('../__chunks/WT6AUJWV.cjs');
|
|
18
|
-
require('../__chunks/54XFMNDS.cjs');
|
|
19
|
-
require('../__chunks/3IVNQNIV.cjs');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
exports.useTabStore = _G7N4ZNGScjs.useTabStore; exports.useTabStoreProps = _G7N4ZNGScjs.useTabStoreProps;
|
|
22
|
+
exports.useTabStore = _VCWX76BPcjs.useTabStore; exports.useTabStoreProps = _VCWX76BPcjs.useTabStoreProps;
|