@ariakit/react-core 0.3.4 → 0.3.6
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 +58 -0
- package/cjs/__chunks/{RU4K4ZH6.cjs → 23LJEFHI.cjs} +9 -8
- package/cjs/__chunks/{CQSUIL2D.cjs → 2BIO7R5N.cjs} +3 -1
- package/cjs/__chunks/2KDFQUU7.cjs +35 -0
- package/cjs/__chunks/{I2EPCLS6.cjs → 2WCJJQSK.cjs} +8 -7
- package/cjs/__chunks/{VTRMALP6.cjs → 344F3DYO.cjs} +8 -7
- package/cjs/__chunks/{BSOHJE7R.cjs → 35LC5W3M.cjs} +39 -29
- package/cjs/__chunks/3QW6ELTG.cjs +42 -0
- package/cjs/__chunks/{Q6W7IWNJ.cjs → 3W6FH6JK.cjs} +7 -6
- package/cjs/__chunks/{T222USYS.cjs → 45RPYV4J.cjs} +36 -35
- package/cjs/__chunks/4GLXDOKG.cjs +152 -0
- package/cjs/__chunks/{ZIEW4CQO.cjs → 5GQV7KPQ.cjs} +7 -6
- package/cjs/__chunks/{TLA46MN6.cjs → 5GTNIPQ6.cjs} +5 -4
- package/cjs/__chunks/{YCBMXOIO.cjs → 5T425W4R.cjs} +7 -6
- package/cjs/__chunks/{EZKYHQVF.cjs → 5UTRYT6E.cjs} +13 -12
- package/cjs/__chunks/{RWS2MAR2.cjs → 5ZOCN23X.cjs} +4 -3
- package/cjs/__chunks/62JWM3VQ.cjs +49 -0
- package/cjs/__chunks/{NER6RNCQ.cjs → 63UPRTFZ.cjs} +4 -3
- package/cjs/__chunks/{O6SYRTZH.cjs → 65GJIQK5.cjs} +9 -8
- package/cjs/__chunks/{56NPFF7P.cjs → 6IUEXB4L.cjs} +3 -1
- package/cjs/__chunks/7566TIRW.cjs +43 -0
- package/cjs/__chunks/{LHHW5ZQP.cjs → 75KXQZJX.cjs} +3 -1
- package/cjs/__chunks/{L2VQ4YLN.cjs → 7BSMGTGR.cjs} +26 -25
- package/cjs/__chunks/7LBZXSLY.cjs +32 -0
- package/cjs/__chunks/{X2GXTE3P.cjs → 7TN63K2T.cjs} +3 -1
- package/cjs/__chunks/{Z3TLXRS7.cjs → 7YLCVXZ7.cjs} +3 -1
- package/cjs/__chunks/{EMNY7J2W.cjs → 7ZVTEFD7.cjs} +15 -14
- package/cjs/__chunks/{232HWSNY.cjs → A5RWZSX7.cjs} +14 -13
- package/cjs/__chunks/{SQPRIHDR.cjs → ACTXAOA6.cjs} +8 -7
- package/cjs/__chunks/{4K6QJIPX.cjs → AH3CUB6N.cjs} +3 -1
- package/cjs/__chunks/{72I2GWXF.cjs → AV6KTKLE.cjs} +2 -1
- package/cjs/__chunks/{VAF2GKYW.cjs → AYDXWQBF.cjs} +10 -9
- package/cjs/__chunks/{ZHMGQCNX.cjs → AZV52Y77.cjs} +18 -17
- package/cjs/__chunks/{2H4Y2NEY.cjs → BY6ER73U.cjs} +54 -33
- package/cjs/__chunks/{NHZBX2RS.cjs → BZTDJIVT.cjs} +4 -3
- package/cjs/__chunks/{QBOBT66Y.cjs → CILQPSH2.cjs} +16 -15
- package/cjs/__chunks/{7WUTS26Y.cjs → CJDHQUBR.cjs} +5 -4
- package/cjs/__chunks/{NS56XHXG.cjs → CVD2AZE2.cjs} +3 -1
- package/cjs/__chunks/{SELCJFCB.cjs → CZOBQEIO.cjs} +40 -39
- package/cjs/__chunks/{HWZH54NB.cjs → DAJUUBUI.cjs} +26 -22
- package/cjs/__chunks/DTEFSZZZ.cjs +51 -0
- package/cjs/__chunks/{5WLTMVVQ.cjs → EO6LS72H.cjs} +17 -7
- package/cjs/__chunks/{FO6MB5HF.cjs → ERFHNHON.cjs} +3 -1
- package/cjs/__chunks/{QMFZ4CLT.cjs → F24A3PBW.cjs} +28 -27
- package/cjs/__chunks/{W6ZRSMO5.cjs → F2A2ZQDB.cjs} +7 -6
- package/cjs/__chunks/{NFFY66XZ.cjs → F34KLJKG.cjs} +12 -11
- package/cjs/__chunks/{K56WQU76.cjs → FE3YCURH.cjs} +3 -1
- package/cjs/__chunks/{YJVXQQJ3.cjs → FM5S6RAD.cjs} +14 -13
- package/cjs/__chunks/{HSOKUBYY.cjs → FQNGCFYY.cjs} +9 -8
- package/cjs/__chunks/{DC66R2NY.cjs → FQZOOWMH.cjs} +15 -14
- package/cjs/__chunks/{VLI66TFL.cjs → FROYTN4B.cjs} +7 -6
- package/cjs/__chunks/{EOLXNGMX.cjs → GJX4AG2L.cjs} +15 -14
- package/cjs/__chunks/{FPNO6JL5.cjs → HEEQY4DZ.cjs} +7 -6
- package/cjs/__chunks/{5ZP4D2SQ.cjs → HGT5CLDM.cjs} +46 -23
- package/cjs/__chunks/{HBZJ2UC5.cjs → I65V32V2.cjs} +7 -6
- package/cjs/__chunks/{VAY4A33A.cjs → ISGOCBDC.cjs} +30 -27
- package/cjs/__chunks/{SOPRUU56.cjs → J3OG6T3B.cjs} +5 -4
- package/cjs/__chunks/{W32FX7DM.cjs → JF225FQ5.cjs} +3 -1
- package/cjs/__chunks/{DFFFHQVQ.cjs → JVDUGICD.cjs} +14 -13
- package/cjs/__chunks/KAQBQZEG.cjs +82 -0
- package/cjs/__chunks/KQN7YDDZ.cjs +39 -0
- package/cjs/__chunks/{TFIVWWWL.cjs → KRB7URW5.cjs} +8 -7
- package/cjs/__chunks/{ELOQI33M.cjs → KREY6HXD.cjs} +4 -3
- package/cjs/__chunks/KSAZE5E2.cjs +44 -0
- package/cjs/__chunks/{OLGMV24U.cjs → KXQOQQ5B.cjs} +3 -1
- package/cjs/__chunks/{OAEUR56W.cjs → LAUATD5O.cjs} +8 -7
- package/cjs/__chunks/{VGU6RMHO.cjs → LFHNPG2L.cjs} +24 -28
- package/cjs/__chunks/{YLOTLD6S.cjs → LICANQTI.cjs} +19 -18
- package/cjs/__chunks/{DYNIQRKI.cjs → LVOI2KVN.cjs} +20 -17
- package/cjs/__chunks/{WSW5XX7F.cjs → LYIGAIJF.cjs} +7 -6
- package/cjs/__chunks/{UBRGEBVN.cjs → M5JJ43AT.cjs} +7 -6
- package/cjs/__chunks/MMLLSE2M.cjs +39 -0
- package/cjs/__chunks/{6UYPIKG4.cjs → MYMQ45UI.cjs} +19 -18
- package/cjs/__chunks/{UK2DHDQU.cjs → N6Q3QJ4G.cjs} +21 -20
- package/cjs/__chunks/{6RYSMHQY.cjs → NGEKJJDH.cjs} +20 -16
- package/cjs/__chunks/{COHI5HTS.cjs → NKR65BKC.cjs} +14 -13
- package/cjs/__chunks/{3DILH277.cjs → NLH3Z3GA.cjs} +8 -7
- package/cjs/__chunks/NY3D6JQT.cjs +41 -0
- package/cjs/__chunks/{EVNF7KMT.cjs → OALXXRFM.cjs} +13 -10
- package/cjs/__chunks/{GWFSX7RQ.cjs → OH2VU3VU.cjs} +44 -43
- package/cjs/__chunks/{GUWJ7VTO.cjs → P43G7USH.cjs} +52 -43
- package/cjs/__chunks/{F4RJLWZG.cjs → PZL34OVO.cjs} +8 -7
- package/cjs/__chunks/{35G5ZXPH.cjs → QCG6J6X5.cjs} +13 -12
- package/cjs/__chunks/QOD2KY3N.cjs +34 -0
- package/cjs/__chunks/QQCFY3MB.cjs +44 -0
- package/cjs/__chunks/{LCC3WQBM.cjs → QU2266CJ.cjs} +24 -23
- package/cjs/__chunks/{FMI5QF7N.cjs → R5A2WTWB.cjs} +14 -13
- package/cjs/__chunks/{KSFAO77E.cjs → R66IWXK6.cjs} +9 -8
- package/cjs/__chunks/{Z5PUIG6A.cjs → RNZNGEL4.cjs} +20 -19
- package/cjs/__chunks/{LPFT4ZFH.cjs → RRW7YVFR.cjs} +27 -15
- package/cjs/__chunks/{KLZID3QO.cjs → RV3PHHWM.cjs} +3 -1
- package/cjs/__chunks/{A2NMYLCG.cjs → S6UU7NA4.cjs} +4 -3
- package/cjs/__chunks/{MNZPRWGC.cjs → S6WUBPBB.cjs} +71 -27
- package/cjs/__chunks/{R7CSCUVW.cjs → SHOS7XOU.cjs} +18 -17
- package/cjs/__chunks/SSJIHRU6.cjs +22 -0
- package/cjs/__chunks/{P4F26HLT.cjs → T4KYZJUY.cjs} +12 -11
- package/cjs/__chunks/{FGAN5BEK.cjs → TK6GOI2V.cjs} +13 -12
- package/cjs/__chunks/{DGL5AMAW.cjs → TUDQDX77.cjs} +10 -9
- package/cjs/__chunks/{76UBACFC.cjs → TUVU5ERH.cjs} +7 -6
- package/cjs/__chunks/UKXZY6PK.cjs +33 -0
- package/cjs/__chunks/{J37FS72U.cjs → UL7JVGEU.cjs} +24 -23
- package/cjs/__chunks/UQ7KT5UO.cjs +18 -0
- package/cjs/__chunks/{AKOG5S2T.cjs → UVBBMANL.cjs} +7 -6
- package/cjs/__chunks/UXFBTIBY.cjs +41 -0
- package/cjs/__chunks/{H7R5D2FR.cjs → UZNYSPKP.cjs} +7 -6
- package/cjs/__chunks/{BWQVQDGC.cjs → V24PR4PW.cjs} +3 -1
- package/cjs/__chunks/{JJ22W2WS.cjs → VCDQISP7.cjs} +19 -18
- package/cjs/__chunks/{ZBG4TGVL.cjs → VEG6PRAG.cjs} +8 -7
- package/cjs/__chunks/{4YBHDRLG.cjs → VIUIA2WF.cjs} +8 -7
- package/cjs/__chunks/{OKMDKM3M.cjs → VJES6KQ3.cjs} +8 -7
- package/cjs/__chunks/{QK4GI6B3.cjs → VV6WA3I6.cjs} +11 -10
- package/cjs/__chunks/{ZZZ5MQHA.cjs → X3I2WFGC.cjs} +6 -5
- package/cjs/__chunks/{CKEXTQ2S.cjs → XB3G2EO2.cjs} +11 -10
- package/cjs/__chunks/{QFGI3BJE.cjs → XFPRAS3J.cjs} +70 -69
- package/cjs/__chunks/{CAKLNUKE.cjs → XMGFHUXO.cjs} +14 -13
- package/cjs/__chunks/{VVU2UQJ2.cjs → YEV7NEBU.cjs} +6 -5
- package/cjs/__chunks/{VIPX6GSM.cjs → YU7XEYUJ.cjs} +12 -11
- package/cjs/__chunks/{4QHHTATP.cjs → YZ7J6ELT.cjs} +11 -10
- package/cjs/__chunks/{GQAB4M3B.cjs → Z3GCTNW4.cjs} +23 -21
- package/cjs/button/button.cjs +11 -10
- package/cjs/button/button.d.cts +26 -0
- package/cjs/checkbox/checkbox-check.cjs +9 -8
- package/cjs/checkbox/checkbox-check.d.cts +37 -0
- package/cjs/checkbox/checkbox-checked-context.cjs +5 -4
- package/cjs/checkbox/checkbox-checked-context.d.cts +1 -0
- package/cjs/checkbox/checkbox-context.cjs +8 -7
- package/cjs/checkbox/checkbox-context.d.cts +19 -0
- package/cjs/checkbox/checkbox-provider.cjs +11 -10
- package/cjs/checkbox/checkbox-provider.d.cts +29 -0
- package/cjs/checkbox/checkbox-store.cjs +8 -7
- package/cjs/checkbox/checkbox-store.d.cts +35 -0
- package/cjs/checkbox/checkbox.cjs +14 -13
- package/cjs/checkbox/checkbox.d.cts +79 -0
- package/cjs/checkbox/checkbox.d.ts +4 -0
- package/cjs/collection/collection-context.cjs +8 -7
- package/cjs/collection/collection-context.d.cts +34 -0
- package/cjs/collection/collection-item.cjs +9 -8
- package/cjs/collection/collection-item.d.cts +55 -0
- package/cjs/collection/collection-provider.cjs +11 -10
- package/cjs/collection/collection-provider.d.cts +22 -0
- package/cjs/collection/collection-renderer.cjs +10 -9
- package/cjs/collection/collection-renderer.d.cts +449 -0
- package/cjs/collection/collection-renderer.d.ts +1 -1
- package/cjs/collection/collection-store.cjs +8 -7
- package/cjs/collection/collection-store.d.cts +38 -0
- package/cjs/collection/collection.cjs +14 -13
- package/cjs/collection/collection.d.cts +46 -0
- package/cjs/combobox/combobox-cancel.cjs +24 -23
- package/cjs/combobox/combobox-cancel.d.cts +44 -0
- package/cjs/combobox/combobox-context.cjs +13 -12
- package/cjs/combobox/combobox-context.d.cts +20 -0
- package/cjs/combobox/combobox-disclosure.cjs +27 -26
- package/cjs/combobox/combobox-disclosure.d.cts +50 -0
- package/cjs/combobox/combobox-group-label.cjs +13 -12
- package/cjs/combobox/combobox-group-label.d.cts +48 -0
- package/cjs/combobox/combobox-group.cjs +13 -12
- package/cjs/combobox/combobox-group.d.cts +51 -0
- package/cjs/combobox/combobox-item-value.cjs +19 -18
- package/cjs/combobox/combobox-item-value.d.cts +68 -0
- package/cjs/combobox/combobox-item.cjs +36 -35
- package/cjs/combobox/combobox-item.d.cts +94 -0
- package/cjs/combobox/combobox-list.cjs +18 -17
- package/cjs/combobox/combobox-list.d.cts +51 -0
- package/cjs/combobox/combobox-popover.cjs +54 -52
- package/cjs/combobox/combobox-popover.d.cts +40 -0
- package/cjs/combobox/combobox-provider.cjs +21 -20
- package/cjs/combobox/combobox-provider.d.cts +21 -0
- package/cjs/combobox/combobox-row.cjs +20 -19
- package/cjs/combobox/combobox-row.d.cts +55 -0
- package/cjs/combobox/combobox-separator.cjs +20 -19
- package/cjs/combobox/combobox-separator.d.cts +48 -0
- package/cjs/combobox/combobox-store.cjs +13 -12
- package/cjs/combobox/combobox-store.d.cts +43 -0
- package/cjs/combobox/combobox.cjs +44 -43
- package/cjs/combobox/combobox.d.cts +168 -0
- package/cjs/command/command.cjs +10 -9
- package/cjs/command/command.d.cts +51 -0
- package/cjs/composite/composite-container.cjs +12 -11
- package/cjs/composite/composite-container.d.cts +44 -0
- package/cjs/composite/composite-context.cjs +9 -8
- package/cjs/composite/composite-context.d.cts +30 -0
- package/cjs/composite/composite-group-label.cjs +10 -9
- package/cjs/composite/composite-group-label.d.cts +42 -0
- package/cjs/composite/composite-group.cjs +10 -9
- package/cjs/composite/composite-group.d.cts +44 -0
- package/cjs/composite/composite-hover.cjs +10 -9
- package/cjs/composite/composite-hover.d.cts +62 -0
- package/cjs/composite/composite-hover.d.ts +14 -3
- package/cjs/composite/composite-input.cjs +9 -8
- package/cjs/composite/composite-input.d.cts +39 -0
- package/cjs/composite/composite-item.cjs +16 -15
- package/cjs/composite/composite-item.d.cts +90 -0
- package/cjs/composite/composite-item.d.ts +38 -4
- package/cjs/composite/composite-overflow-disclosure.cjs +33 -32
- package/cjs/composite/composite-overflow-disclosure.d.cts +45 -0
- package/cjs/composite/composite-overflow-store.cjs +11 -10
- package/cjs/composite/composite-overflow-store.d.cts +33 -0
- package/cjs/composite/composite-overflow.cjs +49 -48
- package/cjs/composite/composite-overflow.d.cts +46 -0
- package/cjs/composite/composite-provider.cjs +13 -12
- package/cjs/composite/composite-provider.d.cts +24 -0
- package/cjs/composite/composite-renderer.cjs +12 -11
- package/cjs/composite/composite-renderer.d.cts +317 -0
- package/cjs/composite/composite-renderer.d.ts +1 -1
- package/cjs/composite/composite-row.cjs +10 -9
- package/cjs/composite/composite-row.d.cts +52 -0
- package/cjs/composite/composite-separator.cjs +11 -10
- package/cjs/composite/composite-separator.d.cts +40 -0
- package/cjs/composite/composite-store.cjs +9 -8
- package/cjs/composite/composite-store.d.cts +39 -0
- package/cjs/composite/composite-typeahead.cjs +11 -10
- package/cjs/composite/composite-typeahead.d.cts +43 -0
- package/cjs/composite/composite.cjs +13 -12
- package/cjs/composite/composite.d.cts +58 -0
- package/cjs/composite/utils.cjs +5 -4
- package/cjs/composite/utils.d.cts +69 -0
- package/cjs/dialog/dialog-backdrop.cjs +18 -17
- package/cjs/dialog/dialog-backdrop.d.cts +7 -0
- package/cjs/dialog/dialog-context.cjs +9 -8
- package/cjs/dialog/dialog-context.d.cts +22 -0
- package/cjs/dialog/dialog-description.cjs +10 -9
- package/cjs/dialog/dialog-description.d.cts +40 -0
- package/cjs/dialog/dialog-description.d.ts +10 -7
- package/cjs/dialog/dialog-disclosure.cjs +15 -14
- package/cjs/dialog/dialog-disclosure.d.cts +38 -0
- package/cjs/dialog/dialog-disclosure.d.ts +10 -5
- package/cjs/dialog/dialog-dismiss.cjs +14 -13
- package/cjs/dialog/dialog-dismiss.d.cts +39 -0
- package/cjs/dialog/dialog-dismiss.d.ts +8 -4
- package/cjs/dialog/dialog-heading.cjs +12 -11
- package/cjs/dialog/dialog-heading.d.cts +41 -0
- package/cjs/dialog/dialog-heading.d.ts +11 -7
- package/cjs/dialog/dialog-provider.cjs +13 -12
- package/cjs/dialog/dialog-provider.d.cts +16 -0
- package/cjs/dialog/dialog-store.cjs +9 -8
- package/cjs/dialog/dialog-store.d.cts +23 -0
- package/cjs/dialog/dialog.cjs +45 -44
- package/cjs/dialog/dialog.d.cts +232 -0
- package/cjs/dialog/dialog.d.ts +26 -12
- package/cjs/dialog/utils/disable-accessibility-tree-outside.cjs +8 -7
- package/cjs/dialog/utils/disable-accessibility-tree-outside.d.cts +4 -0
- package/cjs/dialog/utils/disable-tree.cjs +10 -9
- package/cjs/dialog/utils/disable-tree.d.cts +5 -0
- package/cjs/dialog/utils/is-backdrop.cjs +5 -4
- package/cjs/dialog/utils/is-backdrop.d.cts +1 -0
- package/cjs/dialog/utils/mark-tree-outside.cjs +8 -7
- package/cjs/dialog/utils/mark-tree-outside.d.cts +6 -0
- package/cjs/dialog/utils/orchestrate.cjs +5 -4
- package/cjs/dialog/utils/orchestrate.d.cts +4 -0
- package/cjs/dialog/utils/prepend-hidden-dismiss.cjs +5 -4
- package/cjs/dialog/utils/prepend-hidden-dismiss.d.cts +1 -0
- package/cjs/dialog/utils/supports-inert.cjs +5 -4
- package/cjs/dialog/utils/supports-inert.d.cts +1 -0
- package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +12 -11
- package/cjs/dialog/utils/use-hide-on-interact-outside.d.cts +3 -0
- package/cjs/dialog/utils/use-nested-dialogs.cjs +7 -6
- package/cjs/dialog/utils/use-nested-dialogs.d.cts +6 -0
- package/cjs/dialog/utils/use-prevent-body-scroll.cjs +9 -8
- package/cjs/dialog/utils/use-prevent-body-scroll.d.cts +1 -0
- package/cjs/dialog/utils/use-previous-mouse-down-ref.cjs +5 -4
- package/cjs/dialog/utils/use-previous-mouse-down-ref.d.cts +1 -0
- package/cjs/dialog/utils/use-root-dialog.cjs +7 -6
- package/cjs/dialog/utils/use-root-dialog.d.cts +8 -0
- package/cjs/dialog/utils/walk-tree-outside.cjs +6 -5
- package/cjs/dialog/utils/walk-tree-outside.d.cts +5 -0
- package/cjs/disclosure/disclosure-content.cjs +11 -10
- package/cjs/disclosure/disclosure-content.d.cts +74 -0
- package/cjs/disclosure/disclosure-context.cjs +8 -7
- package/cjs/disclosure/disclosure-context.d.cts +19 -0
- package/cjs/disclosure/disclosure-provider.cjs +11 -10
- package/cjs/disclosure/disclosure-provider.d.cts +17 -0
- package/cjs/disclosure/disclosure-store.cjs +8 -7
- package/cjs/disclosure/disclosure-store.d.cts +36 -0
- package/cjs/disclosure/disclosure.cjs +13 -12
- package/cjs/disclosure/disclosure.d.cts +49 -0
- package/cjs/focus-trap/focus-trap-region.cjs +16 -15
- package/cjs/focus-trap/focus-trap-region.d.cts +32 -0
- package/cjs/focus-trap/focus-trap.cjs +9 -8
- package/cjs/focus-trap/focus-trap.d.cts +23 -0
- package/cjs/focusable/focusable-container.cjs +9 -8
- package/cjs/focusable/focusable-container.d.cts +33 -0
- package/cjs/focusable/focusable-context.cjs +5 -4
- package/cjs/focusable/focusable-context.d.cts +1 -0
- package/cjs/focusable/focusable.cjs +9 -8
- package/cjs/focusable/focusable.d.cts +113 -0
- package/cjs/form/form-checkbox.cjs +26 -25
- package/cjs/form/form-checkbox.d.cts +41 -0
- package/cjs/form/form-checkbox.d.ts +1 -1
- package/cjs/form/form-context.cjs +9 -8
- package/cjs/form/form-context.d.cts +19 -0
- package/cjs/form/form-description.cjs +19 -18
- package/cjs/form/form-description.d.cts +54 -0
- package/cjs/form/form-error.cjs +19 -18
- package/cjs/form/form-error.d.cts +67 -0
- package/cjs/form/form-field.cjs +11 -10
- package/cjs/form/form-field.d.cts +80 -0
- package/cjs/form/form-group-label.cjs +13 -12
- package/cjs/form/form-group-label.d.cts +52 -0
- package/cjs/form/form-group.cjs +10 -9
- package/cjs/form/form-group.d.cts +52 -0
- package/cjs/form/form-input.cjs +21 -20
- package/cjs/form/form-input.d.cts +42 -0
- package/cjs/form/form-label.cjs +23 -22
- package/cjs/form/form-label.d.cts +58 -0
- package/cjs/form/form-provider.cjs +13 -12
- package/cjs/form/form-provider.d.cts +23 -0
- package/cjs/form/form-push.cjs +23 -22
- package/cjs/form/form-push.d.cts +80 -0
- package/cjs/form/form-radio-group.cjs +15 -14
- package/cjs/form/form-radio-group.d.cts +43 -0
- package/cjs/form/form-radio.cjs +28 -27
- package/cjs/form/form-radio.d.cts +47 -0
- package/cjs/form/form-radio.d.ts +1 -1
- package/cjs/form/form-remove.cjs +20 -19
- package/cjs/form/form-remove.d.cts +79 -0
- package/cjs/form/form-reset.cjs +19 -18
- package/cjs/form/form-reset.d.cts +40 -0
- package/cjs/form/form-store.cjs +9 -8
- package/cjs/form/form-store.d.cts +101 -0
- package/cjs/form/form-submit.cjs +19 -18
- package/cjs/form/form-submit.d.cts +43 -0
- package/cjs/form/form.cjs +23 -22
- package/cjs/form/form.d.cts +67 -0
- package/cjs/group/group-label-context.cjs +5 -4
- package/cjs/group/group-label-context.d.cts +2 -0
- package/cjs/group/group-label.cjs +9 -8
- package/cjs/group/group-label.d.cts +28 -0
- package/cjs/group/group.cjs +9 -8
- package/cjs/group/group.d.cts +22 -0
- package/cjs/heading/heading-context.cjs +5 -4
- package/cjs/heading/heading-context.d.cts +2 -0
- package/cjs/heading/heading-level.cjs +6 -5
- package/cjs/heading/heading-level.d.cts +25 -0
- package/cjs/heading/heading.cjs +9 -8
- package/cjs/heading/heading.d.cts +34 -0
- package/cjs/heading/utils.cjs +1 -1
- package/cjs/heading/utils.d.cts +1 -0
- package/cjs/hovercard/hovercard-anchor.cjs +14 -13
- package/cjs/hovercard/hovercard-anchor.d.cts +46 -0
- package/cjs/hovercard/hovercard-arrow.cjs +18 -17
- package/cjs/hovercard/hovercard-arrow.d.cts +44 -0
- package/cjs/hovercard/hovercard-context.cjs +11 -10
- package/cjs/hovercard/hovercard-context.d.cts +19 -0
- package/cjs/hovercard/hovercard-description.cjs +12 -11
- package/cjs/hovercard/hovercard-description.d.cts +43 -0
- package/cjs/hovercard/hovercard-disclosure.cjs +30 -29
- package/cjs/hovercard/hovercard-disclosure.d.cts +43 -0
- package/cjs/hovercard/hovercard-dismiss.cjs +18 -17
- package/cjs/hovercard/hovercard-dismiss.d.cts +41 -0
- package/cjs/hovercard/hovercard-heading.cjs +14 -13
- package/cjs/hovercard/hovercard-heading.d.cts +43 -0
- package/cjs/hovercard/hovercard-provider.cjs +17 -16
- package/cjs/hovercard/hovercard-provider.d.cts +17 -0
- package/cjs/hovercard/hovercard-store.cjs +11 -10
- package/cjs/hovercard/hovercard-store.d.cts +24 -0
- package/cjs/hovercard/hovercard.cjs +43 -42
- package/cjs/hovercard/hovercard.d.cts +60 -0
- package/cjs/hovercard/utils/__tests__/polygon-test.d.cts +1 -0
- package/cjs/hovercard/utils/debug-polygon.cjs +2 -1
- package/cjs/hovercard/utils/debug-polygon.d.cts +2 -0
- package/cjs/hovercard/utils/polygon.cjs +5 -4
- package/cjs/hovercard/utils/polygon.d.cts +5 -0
- package/cjs/index.cjs +2 -1
- package/cjs/index.d.cts +2 -0
- package/cjs/menu/menu-arrow.cjs +22 -20
- package/cjs/menu/menu-arrow.d.cts +42 -0
- package/cjs/menu/menu-bar-provider.cjs +15 -18
- package/cjs/menu/menu-bar-provider.d.cts +31 -0
- package/cjs/menu/menu-bar-provider.d.ts +7 -7
- package/cjs/menu/menu-bar-store.cjs +18 -9
- package/cjs/menu/menu-bar-store.d.cts +25 -0
- package/cjs/menu/menu-bar-store.d.ts +12 -9
- package/cjs/menu/menu-bar.cjs +22 -54
- package/cjs/menu/menu-bar.d.cts +55 -0
- package/cjs/menu/menu-bar.d.ts +6 -13
- package/cjs/menu/menu-button-arrow.cjs +21 -19
- package/cjs/menu/menu-button-arrow.d.cts +52 -0
- package/cjs/menu/menu-button.cjs +72 -66
- package/cjs/menu/menu-button.d.cts +58 -0
- package/cjs/menu/menu-button.d.ts +1 -1
- package/cjs/menu/menu-context.cjs +15 -13
- package/cjs/menu/menu-context.d.cts +41 -0
- package/cjs/menu/menu-context.d.ts +8 -6
- package/cjs/menu/menu-description.cjs +15 -14
- package/cjs/menu/menu-description.d.cts +42 -0
- package/cjs/menu/menu-dismiss.cjs +27 -25
- package/cjs/menu/menu-dismiss.d.cts +40 -0
- package/cjs/menu/menu-group-label.cjs +13 -12
- package/cjs/menu/menu-group-label.d.cts +47 -0
- package/cjs/menu/menu-group.cjs +13 -12
- package/cjs/menu/menu-group.d.cts +50 -0
- package/cjs/menu/menu-heading.cjs +17 -16
- package/cjs/menu/menu-heading.d.cts +41 -0
- package/cjs/menu/menu-item-check.cjs +22 -20
- package/cjs/menu/menu-item-check.d.cts +44 -0
- package/cjs/menu/menu-item-checkbox.cjs +114 -36
- package/cjs/menu/menu-item-checkbox.d.cts +64 -0
- package/cjs/menu/menu-item-checkbox.d.ts +12 -0
- package/cjs/menu/menu-item-radio.cjs +63 -38
- package/cjs/menu/menu-item-radio.d.cts +71 -0
- package/cjs/menu/menu-item-radio.d.ts +12 -0
- package/cjs/menu/menu-item.cjs +24 -23
- package/cjs/menu/menu-item.d.cts +62 -0
- package/cjs/menu/menu-item.d.ts +5 -5
- package/cjs/menu/menu-list.cjs +23 -21
- package/cjs/menu/menu-list.d.cts +46 -0
- package/cjs/menu/menu-provider.cjs +25 -23
- package/cjs/menu/menu-provider.d.cts +24 -0
- package/cjs/menu/menu-separator.cjs +22 -20
- package/cjs/menu/menu-separator.d.cts +48 -0
- package/cjs/menu/menu-store.cjs +24 -22
- package/cjs/menu/menu-store.d.cts +130 -0
- package/cjs/menu/menu-store.d.ts +4 -4
- package/cjs/menu/menu.cjs +67 -65
- package/cjs/menu/menu.d.cts +36 -0
- package/cjs/menubar/menubar-context.cjs +23 -0
- package/cjs/menubar/menubar-context.d.cts +20 -0
- package/cjs/menubar/menubar-context.d.ts +20 -0
- package/cjs/menubar/menubar-provider.cjs +18 -0
- package/cjs/menubar/menubar-provider.d.cts +31 -0
- package/cjs/menubar/menubar-provider.d.ts +31 -0
- package/cjs/menubar/menubar-store.cjs +15 -0
- package/cjs/menubar/menubar-store.d.cts +22 -0
- package/cjs/menubar/menubar-store.d.ts +22 -0
- package/cjs/menubar/menubar.cjs +24 -0
- package/cjs/menubar/menubar.d.cts +62 -0
- package/cjs/menubar/menubar.d.ts +62 -0
- package/cjs/popover/popover-anchor.cjs +11 -10
- package/cjs/popover/popover-anchor.d.cts +38 -0
- package/cjs/popover/popover-arrow-path.cjs +5 -4
- package/cjs/popover/popover-arrow-path.d.cts +1 -0
- package/cjs/popover/popover-arrow.cjs +12 -11
- package/cjs/popover/popover-arrow.d.cts +48 -0
- package/cjs/popover/popover-context.cjs +10 -9
- package/cjs/popover/popover-context.d.cts +19 -0
- package/cjs/popover/popover-description.cjs +11 -10
- package/cjs/popover/popover-description.d.cts +43 -0
- package/cjs/popover/popover-disclosure-arrow.cjs +11 -10
- package/cjs/popover/popover-disclosure-arrow.d.cts +52 -0
- package/cjs/popover/popover-disclosure.cjs +18 -17
- package/cjs/popover/popover-disclosure.d.cts +30 -0
- package/cjs/popover/popover-dismiss.cjs +16 -15
- package/cjs/popover/popover-dismiss.d.cts +42 -0
- package/cjs/popover/popover-heading.cjs +13 -12
- package/cjs/popover/popover-heading.d.cts +43 -0
- package/cjs/popover/popover-provider.cjs +15 -14
- package/cjs/popover/popover-provider.d.cts +17 -0
- package/cjs/popover/popover-store.cjs +10 -9
- package/cjs/popover/popover-store.d.cts +23 -0
- package/cjs/popover/popover.cjs +40 -39
- package/cjs/popover/popover.d.cts +162 -0
- package/cjs/popover/popover.d.ts +24 -0
- package/cjs/portal/portal-context.cjs +5 -4
- package/cjs/portal/portal-context.d.cts +17 -0
- package/cjs/portal/portal.cjs +11 -10
- package/cjs/portal/portal.d.cts +121 -0
- package/cjs/portal/portal.d.ts +51 -5
- package/cjs/radio/radio-context.cjs +10 -9
- package/cjs/radio/radio-context.d.cts +19 -0
- package/cjs/radio/radio-group.cjs +22 -21
- package/cjs/radio/radio-group.d.cts +41 -0
- package/cjs/radio/radio-provider.cjs +15 -14
- package/cjs/radio/radio-provider.d.cts +19 -0
- package/cjs/radio/radio-store.cjs +10 -9
- package/cjs/radio/radio-store.d.cts +29 -0
- package/cjs/radio/radio.cjs +18 -17
- package/cjs/radio/radio.d.cts +60 -0
- package/cjs/radio/radio.d.ts +4 -0
- package/cjs/role/role.cjs +8 -7
- package/cjs/role/role.d.cts +29 -0
- package/cjs/select/select-arrow.cjs +15 -14
- package/cjs/select/select-arrow.d.cts +52 -0
- package/cjs/select/select-context.cjs +13 -12
- package/cjs/select/select-context.d.cts +20 -0
- package/cjs/select/select-group-label.cjs +13 -12
- package/cjs/select/select-group-label.d.cts +53 -0
- package/cjs/select/select-group.cjs +13 -12
- package/cjs/select/select-group.d.cts +51 -0
- package/cjs/select/select-item-check.cjs +20 -19
- package/cjs/select/select-item-check.d.cts +57 -0
- package/cjs/select/select-item.cjs +37 -36
- package/cjs/select/select-item.d.cts +101 -0
- package/cjs/select/select-label.cjs +22 -21
- package/cjs/select/select-label.d.cts +47 -0
- package/cjs/select/select-list.cjs +21 -20
- package/cjs/select/select-list.d.cts +68 -0
- package/cjs/select/select-popover.cjs +55 -54
- package/cjs/select/select-popover.d.cts +37 -0
- package/cjs/select/select-provider.cjs +22 -21
- package/cjs/select/select-provider.d.cts +25 -0
- package/cjs/select/select-renderer.cjs +23 -22
- package/cjs/select/select-renderer.d.cts +39 -0
- package/cjs/select/select-row.cjs +20 -19
- package/cjs/select/select-row.d.cts +52 -0
- package/cjs/select/select-separator.cjs +20 -19
- package/cjs/select/select-separator.d.cts +48 -0
- package/cjs/select/select-store.cjs +20 -19
- package/cjs/select/select-store.d.cts +58 -0
- package/cjs/select/select.cjs +54 -43
- package/cjs/select/select.d.cts +86 -0
- package/cjs/separator/separator.cjs +8 -7
- package/cjs/separator/separator.d.cts +28 -0
- package/cjs/tab/tab-context.cjs +10 -9
- package/cjs/tab/tab-context.d.cts +19 -0
- package/cjs/tab/tab-list.cjs +22 -21
- package/cjs/tab/tab-list.d.cts +46 -0
- package/cjs/tab/tab-panel.cjs +32 -31
- package/cjs/tab/tab-panel.d.cts +54 -0
- package/cjs/tab/tab-provider.cjs +15 -14
- package/cjs/tab/tab-provider.d.cts +21 -0
- package/cjs/tab/tab-store.cjs +10 -9
- package/cjs/tab/tab-store.d.cts +74 -0
- package/cjs/tab/tab.cjs +27 -26
- package/cjs/tab/tab.d.cts +48 -0
- package/cjs/toolbar/toolbar-container.cjs +25 -24
- package/cjs/toolbar/toolbar-container.d.cts +34 -0
- package/cjs/toolbar/toolbar-context.cjs +10 -9
- package/cjs/toolbar/toolbar-context.d.cts +19 -0
- package/cjs/toolbar/toolbar-input.cjs +25 -24
- package/cjs/toolbar/toolbar-input.d.cts +30 -0
- package/cjs/toolbar/toolbar-item.cjs +18 -17
- package/cjs/toolbar/toolbar-item.d.cts +38 -0
- package/cjs/toolbar/toolbar-provider.cjs +15 -14
- package/cjs/toolbar/toolbar-provider.d.cts +20 -0
- package/cjs/toolbar/toolbar-separator.cjs +17 -16
- package/cjs/toolbar/toolbar-separator.d.cts +42 -0
- package/cjs/toolbar/toolbar-store.cjs +10 -9
- package/cjs/toolbar/toolbar-store.d.cts +26 -0
- package/cjs/toolbar/toolbar.cjs +27 -26
- package/cjs/toolbar/toolbar.d.cts +42 -0
- package/cjs/tooltip/tooltip-anchor.cjs +24 -23
- package/cjs/tooltip/tooltip-anchor.d.cts +40 -0
- package/cjs/tooltip/tooltip-arrow.cjs +19 -18
- package/cjs/tooltip/tooltip-arrow.d.cts +46 -0
- package/cjs/tooltip/tooltip-context.cjs +12 -11
- package/cjs/tooltip/tooltip-context.d.cts +19 -0
- package/cjs/tooltip/tooltip-provider.cjs +19 -18
- package/cjs/tooltip/tooltip-provider.d.cts +17 -0
- package/cjs/tooltip/tooltip-store.cjs +12 -11
- package/cjs/tooltip/tooltip-store.d.cts +23 -0
- package/cjs/tooltip/tooltip.cjs +54 -53
- package/cjs/tooltip/tooltip.d.cts +42 -0
- package/cjs/utils/hooks.cjs +8 -5
- package/cjs/utils/hooks.d.cts +145 -0
- package/cjs/utils/hooks.d.ts +10 -0
- package/cjs/utils/misc.cjs +5 -4
- package/cjs/utils/misc.d.cts +17 -0
- package/cjs/utils/store.cjs +7 -6
- package/cjs/utils/store.d.cts +62 -0
- package/cjs/utils/system.cjs +7 -6
- package/cjs/utils/system.d.cts +98 -0
- package/cjs/utils/system.d.ts +2 -2
- package/cjs/utils/types.cjs +1 -1
- package/cjs/utils/types.d.cts +79 -0
- package/cjs/utils/types.d.ts +2 -2
- package/cjs/visually-hidden/visually-hidden.cjs +8 -7
- package/cjs/visually-hidden/visually-hidden.d.cts +29 -0
- package/esm/__chunks/{6F7MKZK2.js → 24AKC2LC.js} +4 -3
- package/esm/__chunks/{I6Y4PDFW.js → 2CW6UMKT.js} +5 -4
- package/esm/__chunks/{IZFXPXHG.js → 2N7L2ZZE.js} +3 -2
- package/esm/__chunks/{ZYB5SMUW.js → 2QSQGCHB.js} +7 -6
- package/esm/__chunks/{HUAF5DID.js → 2TCVF54Q.js} +3 -2
- package/esm/__chunks/{CFEUKV6C.js → 3ORBWXWF.js} +4 -3
- package/esm/__chunks/{F5VAC7MB.js → 3X3MDQGM.js} +2 -0
- package/esm/__chunks/{DL4RBG46.js → 4B73HROV.js} +3 -2
- package/esm/__chunks/{DJJWAII5.js → 4CK3XZ4H.js} +3 -2
- package/esm/__chunks/{2BTPJSKW.js → 4KTUOVEM.js} +23 -22
- package/esm/__chunks/{PNRLI7OV.js → 4R3V3JGP.js} +1 -0
- package/esm/__chunks/{74KKBFVP.js → 4UUKJZ4V.js} +2 -1
- package/esm/__chunks/{HXYXHHNW.js → 4ZEZYKUR.js} +7 -6
- package/esm/__chunks/{YS46MLTR.js → 5A2VZUUV.js} +3 -2
- package/esm/__chunks/{US4OMDIO.js → 5HVNGX6D.js} +4 -3
- package/esm/__chunks/{RO34XBHA.js → 5LK2LG7Q.js} +4 -3
- package/esm/__chunks/{IQXVWBXC.js → 5PEPOQU7.js} +19 -10
- package/esm/__chunks/{E5S26AHF.js → 636A7WVS.js} +4 -3
- package/esm/__chunks/{KOVUJERF.js → 677M2CI3.js} +2 -0
- package/esm/__chunks/{3LGVTTHD.js → 6BJGLK2C.js} +5 -4
- package/esm/__chunks/{62DFK33R.js → 6GXEOXGT.js} +2 -0
- package/esm/__chunks/{7VC364FM.js → 6N2ESJUH.js} +3 -2
- package/esm/__chunks/{J7Q2EO23.js → 6O5OEQGF.js} +12 -2
- package/esm/__chunks/{OXPV2NBK.js → 6QXBPV75.js} +2 -0
- package/esm/__chunks/{M5KYRTQG.js → 6XBVQI3K.js} +2 -0
- package/esm/__chunks/{VRCYQ6JX.js → 72E5EPFF.js} +2 -1
- package/esm/__chunks/{LDDPB3PY.js → 7452U3HH.js} +2 -0
- package/esm/__chunks/{547DFODS.js → 7H5KSHHF.js} +3 -2
- package/esm/__chunks/{KK6NPMOP.js → A7CE3X6M.js} +7 -6
- package/esm/__chunks/{CX73JT3N.js → ANIYCUCU.js} +3 -2
- package/esm/__chunks/{OAQFZVKH.js → AY3L6CB6.js} +4 -3
- package/esm/__chunks/{6XXSNRNX.js → BG6HZDS7.js} +3 -2
- package/esm/__chunks/{LRDCOOWL.js → BHEJ6NUH.js} +15 -19
- package/esm/__chunks/{2Q7ASGJM.js → BI7ZXWGY.js} +3 -2
- package/esm/__chunks/{FV4UX26M.js → BNUFNEVY.js} +5 -4
- package/esm/__chunks/{XCH4OEEE.js → BRO2JF5P.js} +17 -5
- package/esm/__chunks/BTTOLUHC.js +82 -0
- package/esm/__chunks/{7VWXICM7.js → BULCTPRV.js} +4 -3
- package/esm/__chunks/{2FIUKXIM.js → CDFXNOHN.js} +6 -5
- package/esm/__chunks/{QW4PFVNF.js → CHKJ74UC.js} +4 -3
- package/esm/__chunks/{EGOOWJGN.js → CLF4PQ7T.js} +8 -7
- package/esm/__chunks/{DCODCZJS.js → CRADASSQ.js} +7 -6
- package/esm/__chunks/{CJI67A3R.js → CS347UVZ.js} +2 -1
- package/esm/__chunks/{OD3JT64N.js → CVWFS4PP.js} +3 -2
- package/esm/__chunks/{J2AZPLFF.js → D42GAV4S.js} +38 -17
- package/esm/__chunks/{PTJJY26M.js → DIP7XAI7.js} +5 -4
- package/esm/__chunks/{IDYHJHXJ.js → E3XM3D67.js} +55 -11
- package/esm/__chunks/{WRZGD4DH.js → ELWRSPQ7.js} +3 -2
- package/esm/__chunks/{JM3KBRED.js → ENRQQ6LK.js} +5 -4
- package/esm/__chunks/{WNHMGHG5.js → F6PRXTDU.js} +5 -4
- package/esm/__chunks/{OQUFN5QO.js → FGMA3QUS.js} +5 -4
- package/esm/__chunks/{56TAEBRJ.js → FHDXHZLB.js} +7 -6
- package/esm/__chunks/{24EUVZFE.js → FS2EVEJO.js} +6 -5
- package/esm/__chunks/{PGK6S5NC.js → FSFPRQFR.js} +2 -1
- package/esm/__chunks/{5YYGDU4E.js → G6BJYYBK.js} +3 -2
- package/esm/__chunks/{5EAW3TWZ.js → H3TG2CZP.js} +5 -4
- package/esm/__chunks/{YVYWIVKG.js → HBGJOTTX.js} +6 -5
- package/esm/__chunks/{REKKG4AV.js → HPP6CWMY.js} +5 -4
- package/esm/__chunks/{6W46XYWY.js → HXL5CHAC.js} +3 -2
- package/esm/__chunks/{5C7J4IAS.js → IB7YUKH5.js} +3 -2
- package/esm/__chunks/{HWJ7DGMR.js → IUB2BTEK.js} +2 -1
- package/esm/__chunks/{AE5ABTKC.js → IVPCRN7Q.js} +3 -2
- package/esm/__chunks/{4FNI7F6H.js → JCH6MLL2.js} +5 -4
- package/esm/__chunks/{5HSRXC5S.js → JHO32H4J.js} +4 -3
- package/esm/__chunks/{NXB7YL3C.js → JSLLR7RC.js} +7 -6
- package/esm/__chunks/KA4GX64Z.js +32 -0
- package/esm/__chunks/{H3CXUGYG.js → KB2HXEVC.js} +8 -5
- package/esm/__chunks/{E3ZC4HKO.js → KFUKDUTY.js} +7 -6
- package/esm/__chunks/{YTHH33BK.js → KK7H3W2B.js} +7 -5
- package/esm/__chunks/LNLZDJD4.js +22 -0
- package/esm/__chunks/{IXXFVVA2.js → MKDDWKFK.js} +2 -0
- package/esm/__chunks/{3QOG4FFB.js → MNFF5YOJ.js} +3 -2
- package/esm/__chunks/{QP4RN5UY.js → MTC2KUZZ.js} +4 -3
- package/esm/__chunks/{3Z4KAOQS.js → MW2F7SEA.js} +4 -3
- package/esm/__chunks/{3X3TLUHU.js → NE6JAKK6.js} +7 -6
- package/esm/__chunks/{3KBWC7LF.js → NKXUN25E.js} +6 -5
- package/esm/__chunks/{LBTB6WEV.js → NR6NHF6H.js} +5 -4
- package/esm/__chunks/{JGFZEURZ.js → NT7GEZQU.js} +5 -4
- package/esm/__chunks/{WJZPOH5E.js → NUNVG4IK.js} +5 -4
- package/esm/__chunks/{CAIAWNDV.js → NWCBQ4CV.js} +14 -10
- package/esm/__chunks/{56KWVYDN.js → OAYFXAQ2.js} +2 -1
- package/esm/__chunks/{7JNF6I52.js → OOBDFMJL.js} +2 -0
- package/esm/__chunks/{LFLKMTFW.js → P2V6GHKM.js} +3 -2
- package/esm/__chunks/{FK7TLQA3.js → P4FX6ZFL.js} +5 -4
- package/esm/__chunks/{MHJWVBOP.js → P5SOPKIM.js} +4 -3
- package/esm/__chunks/{DLZTS5NV.js → PHTJ3BCW.js} +12 -9
- package/esm/__chunks/{GM7XQV7F.js → QFL5V2DO.js} +2 -0
- package/esm/__chunks/{KXTLHNBI.js → QKWOT47C.js} +30 -20
- package/esm/__chunks/{JCUV76PT.js → R2QZ3KXH.js} +5 -4
- package/esm/__chunks/{PH5SSOBF.js → RJDEYIKS.js} +3 -2
- package/esm/__chunks/{BMLNRUFQ.js → SHA3WOPI.js} +2 -0
- package/esm/__chunks/{IPFII6JW.js → SOK7T35T.js} +3 -2
- package/esm/__chunks/{DE62M4L2.js → SZD4L3WR.js} +31 -8
- package/esm/__chunks/{3FLPLDNL.js → T2EXCD3L.js} +8 -7
- package/esm/__chunks/{5DA3HK6G.js → TI7CMBHW.js} +3 -2
- package/esm/__chunks/{FRKOFFMT.js → TL67WVI6.js} +4 -3
- package/esm/__chunks/{UXIMR4AS.js → U7WGY7YX.js} +29 -28
- package/esm/__chunks/{XIA3HAXM.js → UH3I23HL.js} +5 -4
- package/esm/__chunks/{3AVEDDB7.js → ULAW5PPH.js} +6 -5
- package/esm/__chunks/{QTZ67ALK.js → UNZQE6T7.js} +4 -3
- package/esm/__chunks/{QGZKN2N5.js → UP4ONTQS.js} +5 -4
- package/esm/__chunks/{6OMX4H3W.js → UYRJLDVS.js} +2 -1
- package/esm/__chunks/{NJS632IW.js → V4ZFXDFK.js} +3 -2
- package/esm/__chunks/{TONP6TZ5.js → VDNZBO4W.js} +5 -4
- package/esm/__chunks/{ICL2YIES.js → VPR2WHQV.js} +2 -1
- package/esm/__chunks/VVBJIO3T.js +18 -0
- package/esm/__chunks/{JRZOTPWS.js → W3TC4TID.js} +44 -17
- package/esm/__chunks/{FW6QFGFT.js → X6WIMZJE.js} +2 -0
- package/esm/__chunks/{NRFPH2ON.js → XEV62JUQ.js} +3 -2
- package/esm/__chunks/{WHAB4XD6.js → XF5ITC6P.js} +5 -2
- package/esm/__chunks/{7LB47D2O.js → XHJGS6Z5.js} +5 -4
- package/esm/__chunks/{IZ22SVTG.js → XHRZYRZ5.js} +6 -5
- package/esm/__chunks/{CP3U4HPL.js → XM66DUTO.js} +2 -1
- package/esm/__chunks/{COQHFAEN.js → XPF5GU3Q.js} +2 -0
- package/esm/__chunks/{F7UYWUBJ.js → YGJUONJM.js} +8 -7
- package/esm/__chunks/{2GC3IEM7.js → YGMEBI3A.js} +16 -12
- package/esm/__chunks/{X7FKJQME.js → YMV43K4F.js} +2 -0
- package/esm/__chunks/{J5LOLGUC.js → YZEJGRDQ.js} +3 -2
- package/esm/button/button.js +9 -8
- package/esm/checkbox/checkbox-check.js +7 -6
- package/esm/checkbox/checkbox-checked-context.js +3 -2
- package/esm/checkbox/checkbox-context.js +6 -5
- package/esm/checkbox/checkbox-provider.js +8 -7
- package/esm/checkbox/checkbox-store.js +6 -5
- package/esm/checkbox/checkbox.d.ts +4 -0
- package/esm/checkbox/checkbox.js +12 -11
- package/esm/collection/collection-context.js +6 -5
- package/esm/collection/collection-item.js +7 -6
- package/esm/collection/collection-provider.js +8 -7
- package/esm/collection/collection-renderer.d.ts +1 -1
- package/esm/collection/collection-renderer.js +8 -7
- package/esm/collection/collection-store.js +6 -5
- package/esm/collection/collection.js +6 -5
- package/esm/combobox/combobox-cancel.js +15 -14
- package/esm/combobox/combobox-context.js +11 -10
- package/esm/combobox/combobox-disclosure.js +17 -16
- package/esm/combobox/combobox-group-label.js +8 -7
- package/esm/combobox/combobox-group.js +8 -7
- package/esm/combobox/combobox-item-value.js +11 -10
- package/esm/combobox/combobox-item.js +19 -18
- package/esm/combobox/combobox-list.js +16 -15
- package/esm/combobox/combobox-popover.js +44 -42
- package/esm/combobox/combobox-provider.js +18 -17
- package/esm/combobox/combobox-row.js +12 -11
- package/esm/combobox/combobox-separator.js +13 -12
- package/esm/combobox/combobox-store.js +11 -10
- package/esm/combobox/combobox.js +16 -15
- package/esm/command/command.js +8 -7
- package/esm/composite/composite-container.js +10 -9
- package/esm/composite/composite-context.js +7 -6
- package/esm/composite/composite-group-label.js +8 -7
- package/esm/composite/composite-group.js +8 -7
- package/esm/composite/composite-hover.d.ts +14 -3
- package/esm/composite/composite-hover.js +8 -7
- package/esm/composite/composite-input.js +7 -6
- package/esm/composite/composite-item.d.ts +38 -4
- package/esm/composite/composite-item.js +14 -13
- package/esm/composite/composite-overflow-disclosure.js +22 -21
- package/esm/composite/composite-overflow-store.js +8 -7
- package/esm/composite/composite-overflow.js +38 -37
- package/esm/composite/composite-provider.js +10 -9
- package/esm/composite/composite-renderer.d.ts +1 -1
- package/esm/composite/composite-renderer.js +10 -9
- package/esm/composite/composite-row.js +8 -7
- package/esm/composite/composite-separator.js +9 -8
- package/esm/composite/composite-store.js +7 -6
- package/esm/composite/composite-typeahead.js +9 -8
- package/esm/composite/composite.js +11 -10
- package/esm/composite/utils.js +3 -2
- package/esm/dialog/dialog-backdrop.js +16 -15
- package/esm/dialog/dialog-context.js +7 -6
- package/esm/dialog/dialog-description.d.ts +10 -7
- package/esm/dialog/dialog-description.js +8 -7
- package/esm/dialog/dialog-disclosure.d.ts +10 -5
- package/esm/dialog/dialog-disclosure.js +13 -12
- package/esm/dialog/dialog-dismiss.d.ts +8 -4
- package/esm/dialog/dialog-dismiss.js +12 -11
- package/esm/dialog/dialog-heading.d.ts +11 -7
- package/esm/dialog/dialog-heading.js +10 -9
- package/esm/dialog/dialog-provider.js +10 -9
- package/esm/dialog/dialog-store.js +7 -6
- package/esm/dialog/dialog.d.ts +26 -12
- package/esm/dialog/dialog.js +36 -35
- package/esm/dialog/utils/disable-accessibility-tree-outside.js +6 -5
- package/esm/dialog/utils/disable-tree.js +8 -7
- package/esm/dialog/utils/is-backdrop.js +3 -2
- package/esm/dialog/utils/mark-tree-outside.js +6 -5
- package/esm/dialog/utils/orchestrate.js +3 -2
- package/esm/dialog/utils/prepend-hidden-dismiss.js +3 -2
- package/esm/dialog/utils/supports-inert.js +3 -2
- package/esm/dialog/utils/use-hide-on-interact-outside.js +10 -9
- package/esm/dialog/utils/use-nested-dialogs.js +5 -4
- package/esm/dialog/utils/use-prevent-body-scroll.js +7 -6
- package/esm/dialog/utils/use-previous-mouse-down-ref.js +3 -2
- package/esm/dialog/utils/use-root-dialog.js +5 -4
- package/esm/dialog/utils/walk-tree-outside.js +4 -3
- package/esm/disclosure/disclosure-content.js +9 -8
- package/esm/disclosure/disclosure-context.js +6 -5
- package/esm/disclosure/disclosure-provider.js +8 -7
- package/esm/disclosure/disclosure-store.js +6 -5
- package/esm/disclosure/disclosure.js +11 -10
- package/esm/focus-trap/focus-trap-region.js +7 -6
- package/esm/focus-trap/focus-trap.js +7 -6
- package/esm/focusable/focusable-container.js +7 -6
- package/esm/focusable/focusable-context.js +3 -2
- package/esm/focusable/focusable.js +7 -6
- package/esm/form/form-checkbox.d.ts +1 -1
- package/esm/form/form-checkbox.js +17 -16
- package/esm/form/form-context.js +7 -6
- package/esm/form/form-description.js +8 -7
- package/esm/form/form-error.js +8 -7
- package/esm/form/form-field.js +9 -8
- package/esm/form/form-group-label.js +7 -6
- package/esm/form/form-group.js +8 -7
- package/esm/form/form-input.js +11 -10
- package/esm/form/form-label.js +8 -7
- package/esm/form/form-provider.js +10 -9
- package/esm/form/form-push.js +12 -11
- package/esm/form/form-radio-group.js +8 -7
- package/esm/form/form-radio.d.ts +1 -1
- package/esm/form/form-radio.js +18 -17
- package/esm/form/form-remove.js +11 -10
- package/esm/form/form-reset.js +11 -10
- package/esm/form/form-store.js +7 -6
- package/esm/form/form-submit.js +11 -10
- package/esm/form/form.js +7 -6
- package/esm/group/group-label-context.js +3 -2
- package/esm/group/group-label.js +7 -6
- package/esm/group/group.js +7 -6
- package/esm/heading/heading-context.js +3 -2
- package/esm/heading/heading-level.js +4 -3
- package/esm/heading/heading.js +7 -6
- package/esm/heading/utils.js +1 -0
- package/esm/hovercard/hovercard-anchor.js +12 -11
- package/esm/hovercard/hovercard-arrow.js +11 -10
- package/esm/hovercard/hovercard-context.js +9 -8
- package/esm/hovercard/hovercard-description.js +10 -9
- package/esm/hovercard/hovercard-disclosure.js +16 -15
- package/esm/hovercard/hovercard-dismiss.js +16 -15
- package/esm/hovercard/hovercard-heading.js +12 -11
- package/esm/hovercard/hovercard-provider.js +14 -13
- package/esm/hovercard/hovercard-store.js +9 -8
- package/esm/hovercard/hovercard.js +41 -40
- package/esm/hovercard/utils/debug-polygon.js +2 -1
- package/esm/hovercard/utils/polygon.js +3 -2
- package/esm/index.js +2 -1
- package/esm/menu/menu-arrow.js +15 -13
- package/esm/menu/menu-bar-provider.d.ts +7 -7
- package/esm/menu/menu-bar-provider.js +16 -19
- package/esm/menu/menu-bar-store.d.ts +12 -9
- package/esm/menu/menu-bar-store.js +18 -9
- package/esm/menu/menu-bar.d.ts +6 -13
- package/esm/menu/menu-bar.js +21 -53
- package/esm/menu/menu-button-arrow.js +14 -12
- package/esm/menu/menu-button.d.ts +1 -1
- package/esm/menu/menu-button.js +55 -49
- package/esm/menu/menu-context.d.ts +8 -6
- package/esm/menu/menu-context.js +13 -11
- package/esm/menu/menu-description.js +10 -9
- package/esm/menu/menu-dismiss.js +20 -18
- package/esm/menu/menu-group-label.js +8 -7
- package/esm/menu/menu-group.js +8 -7
- package/esm/menu/menu-heading.js +12 -11
- package/esm/menu/menu-item-check.js +15 -13
- package/esm/menu/menu-item-checkbox.d.ts +12 -0
- package/esm/menu/menu-item-checkbox.js +107 -29
- package/esm/menu/menu-item-radio.d.ts +12 -0
- package/esm/menu/menu-item-radio.js +52 -27
- package/esm/menu/menu-item.d.ts +5 -5
- package/esm/menu/menu-item.js +22 -21
- package/esm/menu/menu-list.js +21 -19
- package/esm/menu/menu-provider.js +22 -20
- package/esm/menu/menu-separator.js +15 -13
- package/esm/menu/menu-store.d.ts +4 -4
- package/esm/menu/menu-store.js +22 -20
- package/esm/menu/menu.js +52 -50
- package/esm/menubar/menubar-context.d.ts +20 -0
- package/esm/menubar/menubar-context.js +23 -0
- package/esm/menubar/menubar-provider.d.ts +31 -0
- package/esm/menubar/menubar-provider.js +18 -0
- package/esm/menubar/menubar-store.d.ts +22 -0
- package/esm/menubar/menubar-store.js +15 -0
- package/esm/menubar/menubar.d.ts +62 -0
- package/esm/menubar/menubar.js +24 -0
- package/esm/popover/popover-anchor.js +9 -8
- package/esm/popover/popover-arrow-path.js +3 -2
- package/esm/popover/popover-arrow.js +10 -9
- package/esm/popover/popover-context.js +8 -7
- package/esm/popover/popover-description.js +9 -8
- package/esm/popover/popover-disclosure-arrow.js +9 -8
- package/esm/popover/popover-disclosure.js +16 -15
- package/esm/popover/popover-dismiss.js +14 -13
- package/esm/popover/popover-heading.js +11 -10
- package/esm/popover/popover-provider.js +12 -11
- package/esm/popover/popover-store.js +8 -7
- package/esm/popover/popover.d.ts +24 -0
- package/esm/popover/popover.js +38 -37
- package/esm/portal/portal-context.js +3 -2
- package/esm/portal/portal.d.ts +51 -5
- package/esm/portal/portal.js +9 -8
- package/esm/radio/radio-context.js +8 -7
- package/esm/radio/radio-group.js +12 -11
- package/esm/radio/radio-provider.js +12 -11
- package/esm/radio/radio-store.js +8 -7
- package/esm/radio/radio.d.ts +4 -0
- package/esm/radio/radio.js +16 -15
- package/esm/role/role.js +6 -5
- package/esm/select/select-arrow.js +13 -12
- package/esm/select/select-context.js +11 -10
- package/esm/select/select-group-label.js +8 -7
- package/esm/select/select-group.js +8 -7
- package/esm/select/select-item-check.js +13 -12
- package/esm/select/select-item.js +21 -20
- package/esm/select/select-label.js +11 -10
- package/esm/select/select-list.js +19 -18
- package/esm/select/select-popover.js +45 -44
- package/esm/select/select-provider.js +19 -18
- package/esm/select/select-renderer.js +14 -13
- package/esm/select/select-row.js +12 -11
- package/esm/select/select-separator.js +13 -12
- package/esm/select/select-store.js +18 -17
- package/esm/select/select.js +35 -24
- package/esm/separator/separator.js +6 -5
- package/esm/tab/tab-context.js +8 -7
- package/esm/tab/tab-list.js +12 -11
- package/esm/tab/tab-panel.js +16 -15
- package/esm/tab/tab-provider.js +12 -11
- package/esm/tab/tab-store.js +8 -7
- package/esm/tab/tab.js +17 -16
- package/esm/toolbar/toolbar-container.js +17 -16
- package/esm/toolbar/toolbar-context.js +8 -7
- package/esm/toolbar/toolbar-input.js +17 -16
- package/esm/toolbar/toolbar-item.js +16 -15
- package/esm/toolbar/toolbar-provider.js +12 -11
- package/esm/toolbar/toolbar-separator.js +10 -9
- package/esm/toolbar/toolbar-store.js +8 -7
- package/esm/toolbar/toolbar.js +16 -15
- package/esm/tooltip/tooltip-anchor.js +13 -12
- package/esm/tooltip/tooltip-arrow.js +12 -11
- package/esm/tooltip/tooltip-context.js +10 -9
- package/esm/tooltip/tooltip-provider.js +16 -15
- package/esm/tooltip/tooltip-store.js +10 -9
- package/esm/tooltip/tooltip.js +42 -41
- package/esm/utils/hooks.d.ts +10 -0
- package/esm/utils/hooks.js +6 -3
- package/esm/utils/misc.js +3 -2
- package/esm/utils/store.js +5 -4
- package/esm/utils/system.d.ts +2 -2
- package/esm/utils/system.js +5 -4
- package/esm/utils/types.d.ts +2 -2
- package/esm/utils/types.js +1 -0
- package/esm/visually-hidden/visually-hidden.js +6 -5
- package/menubar/menubar/package.json +8 -0
- package/menubar/menubar-context/package.json +8 -0
- package/menubar/menubar-provider/package.json +8 -0
- package/menubar/menubar-store/package.json +8 -0
- package/package.json +826 -205
- package/cjs/__chunks/7VE7IIRW.cjs +0 -34
- package/cjs/__chunks/A6H7IIHJ.cjs +0 -42
- package/cjs/__chunks/CYI34MDD.cjs +0 -33
- package/cjs/__chunks/DHBKOFHJ.cjs +0 -32
- package/cjs/__chunks/FTX6TAJC.cjs +0 -38
- package/cjs/__chunks/GZMKQINI.cjs +0 -40
- package/cjs/__chunks/KFXK3MNI.cjs +0 -11
- package/cjs/__chunks/OOFSNUBV.cjs +0 -40
- package/cjs/__chunks/OQROAZRY.cjs +0 -48
- package/cjs/__chunks/SE2X2FG7.cjs +0 -21
- package/cjs/__chunks/SW2AH2YO.cjs +0 -50
- package/cjs/__chunks/TDUVWW2F.cjs +0 -43
- package/cjs/__chunks/TYMYFAUI.cjs +0 -125
- package/cjs/__chunks/XH2CZ7VF.cjs +0 -41
- package/cjs/__chunks/ZMSJUL55.cjs +0 -43
- package/cjs/__chunks/ZQZC54NS.cjs +0 -38
- package/cjs/menu/utils.cjs +0 -7
- package/cjs/menu/utils.d.ts +0 -2
- package/cjs/tsconfig.build.tsbuildinfo +0 -1
- package/esm/__chunks/IADMQBOS.js +0 -21
- package/esm/__chunks/W7JXAQKF.js +0 -11
- package/esm/menu/utils.d.ts +0 -2
- package/esm/menu/utils.js +0 -7
- package/esm/tsconfig.build.tsbuildinfo +0 -1
- package/menu/utils/package.json +0 -8
|
@@ -15,13 +15,15 @@ import type { DialogStore } from "./dialog-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useDialogHeading: import("../utils/types.js").Hook<DialogHeadingOptions<"h1">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a heading in a dialog. This component must be wrapped with
|
|
19
|
-
* so the `aria-labelledby`
|
|
18
|
+
* Renders a heading in a dialog. This component must be wrapped with
|
|
19
|
+
* [`Dialog`](https://ariakit.org/reference/dialog) so the `aria-labelledby`
|
|
20
|
+
* prop is properly set on the dialog element.
|
|
20
21
|
* @see https://ariakit.org/components/dialog
|
|
21
22
|
* @example
|
|
22
|
-
* ```jsx
|
|
23
|
-
* const
|
|
24
|
-
*
|
|
23
|
+
* ```jsx {4}
|
|
24
|
+
* const [open, setOpen] = useState(false);
|
|
25
|
+
*
|
|
26
|
+
* <Dialog open={open} onClose={() => setOpen(false)}>
|
|
25
27
|
* <DialogHeading>Heading</DialogHeading>
|
|
26
28
|
* </Dialog>
|
|
27
29
|
* ```
|
|
@@ -29,8 +31,10 @@ export declare const useDialogHeading: import("../utils/types.js").Hook<DialogHe
|
|
|
29
31
|
export declare const DialogHeading: import("../utils/types.js").Component<DialogHeadingOptions<"h1">>;
|
|
30
32
|
export interface DialogHeadingOptions<T extends As = "h1"> extends HeadingOptions<T> {
|
|
31
33
|
/**
|
|
32
|
-
* Object returned by the
|
|
33
|
-
* `
|
|
34
|
+
* Object returned by the
|
|
35
|
+
* [`useDialogStore`](https://ariakit.org/reference/use-dialog-store) hook. If
|
|
36
|
+
* not provided, the closest [`Dialog`](https://ariakit.org/reference/dialog)
|
|
37
|
+
* component's context will be used.
|
|
34
38
|
*/
|
|
35
39
|
store?: DialogStore;
|
|
36
40
|
}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var _W6ZRSMO5cjs = require('../__chunks/W6ZRSMO5.cjs');
|
|
4
|
-
require('../__chunks/A2NMYLCG.cjs');
|
|
5
|
-
require('../__chunks/Z5PUIG6A.cjs');
|
|
6
3
|
|
|
4
|
+
var _F2A2ZQDBcjs = require('../__chunks/F2A2ZQDB.cjs');
|
|
5
|
+
require('../__chunks/S6UU7NA4.cjs');
|
|
6
|
+
require('../__chunks/RNZNGEL4.cjs');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
require('../__chunks/
|
|
10
|
-
require('../__chunks/
|
|
11
|
-
require('../__chunks/
|
|
12
|
-
require('../__chunks/
|
|
13
|
-
require('../__chunks/
|
|
8
|
+
|
|
9
|
+
var _X3I2WFGCcjs = require('../__chunks/X3I2WFGC.cjs');
|
|
10
|
+
require('../__chunks/FQNGCFYY.cjs');
|
|
11
|
+
require('../__chunks/OALXXRFM.cjs');
|
|
12
|
+
require('../__chunks/EO6LS72H.cjs');
|
|
13
|
+
require('../__chunks/CJDHQUBR.cjs');
|
|
14
|
+
require('../__chunks/AV6KTKLE.cjs');
|
|
14
15
|
|
|
15
16
|
// src/dialog/dialog-provider.tsx
|
|
16
17
|
var _jsxruntime = require('react/jsx-runtime');
|
|
17
18
|
function DialogProvider(props = {}) {
|
|
18
|
-
const store =
|
|
19
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19
|
+
const store = _X3I2WFGCcjs.useDialogStore.call(void 0, props);
|
|
20
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _F2A2ZQDBcjs.DialogContextProvider, { value: store, children: props.children });
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { DialogStoreProps } from "./dialog-store.js";
|
|
3
|
+
/**
|
|
4
|
+
* Provides a dialog store to Dialog components.
|
|
5
|
+
* @see https://ariakit.org/components/dialog
|
|
6
|
+
* @example
|
|
7
|
+
* ```jsx
|
|
8
|
+
* <DialogProvider>
|
|
9
|
+
* <Dialog />
|
|
10
|
+
* </DialogProvider>
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare function DialogProvider(props?: DialogProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface DialogProviderProps extends DialogStoreProps {
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _ZZZ5MQHAcjs = require('../__chunks/ZZZ5MQHA.cjs');
|
|
5
|
-
require('../__chunks/HSOKUBYY.cjs');
|
|
6
|
-
require('../__chunks/EVNF7KMT.cjs');
|
|
7
|
-
require('../__chunks/5WLTMVVQ.cjs');
|
|
8
|
-
require('../__chunks/7WUTS26Y.cjs');
|
|
9
|
-
require('../__chunks/72I2GWXF.cjs');
|
|
10
4
|
|
|
5
|
+
var _X3I2WFGCcjs = require('../__chunks/X3I2WFGC.cjs');
|
|
6
|
+
require('../__chunks/FQNGCFYY.cjs');
|
|
7
|
+
require('../__chunks/OALXXRFM.cjs');
|
|
8
|
+
require('../__chunks/EO6LS72H.cjs');
|
|
9
|
+
require('../__chunks/CJDHQUBR.cjs');
|
|
10
|
+
require('../__chunks/AV6KTKLE.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
exports.useDialogStore = _X3I2WFGCcjs.useDialogStore; exports.useDialogStoreProps = _X3I2WFGCcjs.useDialogStoreProps;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as Core from "@ariakit/core/dialog/dialog-store";
|
|
2
|
+
import type { DisclosureStoreFunctions, DisclosureStoreOptions, DisclosureStoreState } from "../disclosure/disclosure-store.js";
|
|
3
|
+
import type { Store } from "../utils/store.js";
|
|
4
|
+
export declare function useDialogStoreProps<T extends Core.DialogStore>(store: T, update: () => void, props: DialogStoreProps): T;
|
|
5
|
+
/**
|
|
6
|
+
* Creates a dialog store.
|
|
7
|
+
* @see https://ariakit.org/components/dialog
|
|
8
|
+
* @example
|
|
9
|
+
* ```jsx
|
|
10
|
+
* const dialog = useDialogStore();
|
|
11
|
+
* <button onClick={dialog.toggle}>Open dialog</button>
|
|
12
|
+
* <Dialog store={dialog}>Content</Dialog>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
export declare function useDialogStore(props?: DialogStoreProps): DialogStore;
|
|
16
|
+
export interface DialogStoreState extends Core.DialogStoreState, DisclosureStoreState {
|
|
17
|
+
}
|
|
18
|
+
export interface DialogStoreFunctions extends Core.DialogStoreFunctions, DisclosureStoreFunctions {
|
|
19
|
+
}
|
|
20
|
+
export interface DialogStoreOptions extends Core.DialogStoreOptions, DisclosureStoreOptions {
|
|
21
|
+
}
|
|
22
|
+
export type DialogStoreProps = DialogStoreOptions & Core.DialogStoreProps;
|
|
23
|
+
export type DialogStore = DialogStoreFunctions & Store<Core.DialogStore>;
|
package/cjs/dialog/dialog.cjs
CHANGED
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
require('../__chunks/
|
|
7
|
-
require('../__chunks/
|
|
8
|
-
require('../__chunks/
|
|
9
|
-
require('../__chunks/
|
|
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/
|
|
22
|
-
require('../__chunks/
|
|
23
|
-
require('../__chunks/
|
|
24
|
-
require('../__chunks/
|
|
25
|
-
require('../__chunks/
|
|
26
|
-
require('../__chunks/
|
|
27
|
-
require('../__chunks/
|
|
28
|
-
require('../__chunks/
|
|
29
|
-
require('../__chunks/
|
|
30
|
-
require('../__chunks/
|
|
31
|
-
require('../__chunks/
|
|
32
|
-
require('../__chunks/
|
|
33
|
-
require('../__chunks/
|
|
34
|
-
require('../__chunks/
|
|
35
|
-
require('../__chunks/
|
|
36
|
-
require('../__chunks/
|
|
37
|
-
require('../__chunks/
|
|
38
|
-
require('../__chunks/
|
|
39
|
-
require('../__chunks/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _XFPRAS3Jcjs = require('../__chunks/XFPRAS3J.cjs');
|
|
7
|
+
require('../__chunks/SHOS7XOU.cjs');
|
|
8
|
+
require('../__chunks/NKR65BKC.cjs');
|
|
9
|
+
require('../__chunks/PZL34OVO.cjs');
|
|
10
|
+
require('../__chunks/344F3DYO.cjs');
|
|
11
|
+
require('../__chunks/KREY6HXD.cjs');
|
|
12
|
+
require('../__chunks/5ZOCN23X.cjs');
|
|
13
|
+
require('../__chunks/JVDUGICD.cjs');
|
|
14
|
+
require('../__chunks/VV6WA3I6.cjs');
|
|
15
|
+
require('../__chunks/7YLCVXZ7.cjs');
|
|
16
|
+
require('../__chunks/7TN63K2T.cjs');
|
|
17
|
+
require('../__chunks/6IUEXB4L.cjs');
|
|
18
|
+
require('../__chunks/JF225FQ5.cjs');
|
|
19
|
+
require('../__chunks/5GTNIPQ6.cjs');
|
|
20
|
+
require('../__chunks/V24PR4PW.cjs');
|
|
21
|
+
require('../__chunks/7566TIRW.cjs');
|
|
22
|
+
require('../__chunks/J3OG6T3B.cjs');
|
|
23
|
+
require('../__chunks/S6WUBPBB.cjs');
|
|
24
|
+
require('../__chunks/XB3G2EO2.cjs');
|
|
25
|
+
require('../__chunks/CVD2AZE2.cjs');
|
|
26
|
+
require('../__chunks/2BIO7R5N.cjs');
|
|
27
|
+
require('../__chunks/LAUATD5O.cjs');
|
|
28
|
+
require('../__chunks/7BSMGTGR.cjs');
|
|
29
|
+
require('../__chunks/F2A2ZQDB.cjs');
|
|
30
|
+
require('../__chunks/S6UU7NA4.cjs');
|
|
31
|
+
require('../__chunks/Z3GCTNW4.cjs');
|
|
32
|
+
require('../__chunks/75KXQZJX.cjs');
|
|
33
|
+
require('../__chunks/R66IWXK6.cjs');
|
|
34
|
+
require('../__chunks/RNZNGEL4.cjs');
|
|
35
|
+
require('../__chunks/X3I2WFGC.cjs');
|
|
36
|
+
require('../__chunks/FQNGCFYY.cjs');
|
|
37
|
+
require('../__chunks/OALXXRFM.cjs');
|
|
38
|
+
require('../__chunks/EO6LS72H.cjs');
|
|
39
|
+
require('../__chunks/CJDHQUBR.cjs');
|
|
40
|
+
require('../__chunks/AV6KTKLE.cjs');
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
exports.Dialog = _XFPRAS3Jcjs.Dialog; exports.createDialogComponent = _XFPRAS3Jcjs.createDialogComponent; exports.useDialog = _XFPRAS3Jcjs.useDialog;
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef, ElementType, ReactElement, KeyboardEvent as ReactKeyboardEvent, RefObject, SyntheticEvent } from "react";
|
|
2
|
+
import type { BooleanOrCallback } from "@ariakit/core/utils/types";
|
|
3
|
+
import type { DisclosureContentOptions } from "../disclosure/disclosure-content.js";
|
|
4
|
+
import type { FocusableOptions } from "../focusable/focusable.js";
|
|
5
|
+
import type { PortalOptions } from "../portal/portal.js";
|
|
6
|
+
import type { As, Component, Props } from "../utils/types.js";
|
|
7
|
+
import type { DialogStore } from "./dialog-store.js";
|
|
8
|
+
/**
|
|
9
|
+
* Returns props to create a `Dialog` component.
|
|
10
|
+
* @see https://ariakit.org/components/dialog
|
|
11
|
+
* @example
|
|
12
|
+
* ```jsx
|
|
13
|
+
* const store = useDialogStore();
|
|
14
|
+
* const props = useDialog({ store });
|
|
15
|
+
* <Role {...props}>Dialog</Role>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const useDialog: import("../utils/types.js").Hook<DialogOptions<"div">>;
|
|
19
|
+
export declare function createDialogComponent<T extends DialogOptions>(Component: Component<T>, useProviderContext?: () => DialogStore | undefined): Component<T>;
|
|
20
|
+
/**
|
|
21
|
+
* Renders a dialog element.
|
|
22
|
+
* @see https://ariakit.org/components/dialog
|
|
23
|
+
* @example
|
|
24
|
+
* ```jsx {4-6}
|
|
25
|
+
* const [open, setOpen] = useState(false);
|
|
26
|
+
*
|
|
27
|
+
* <button onClick={() => setOpen(true)}>Open dialog</button>
|
|
28
|
+
* <Dialog open={open} onClose={() => setOpen(false)}>
|
|
29
|
+
* Dialog
|
|
30
|
+
* </Dialog>
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare const Dialog: Component<DialogOptions<"div">>;
|
|
34
|
+
export interface DialogOptions<T extends As = "div"> extends FocusableOptions<T>, PortalOptions<T>, DisclosureContentOptions<T> {
|
|
35
|
+
/**
|
|
36
|
+
* Object returned by the
|
|
37
|
+
* [`useDialogStore`](https://ariakit.org/reference/use-dialog-store) hook. If
|
|
38
|
+
* not provided, the closest
|
|
39
|
+
* [`DialogProvider`](https://ariakit.org/reference/dialog-provider)
|
|
40
|
+
* component's context will be used. Otherwise, an internal store will be
|
|
41
|
+
* created.
|
|
42
|
+
*/
|
|
43
|
+
store?: DialogStore;
|
|
44
|
+
/**
|
|
45
|
+
* Controls the open state of the dialog. This is similar to the
|
|
46
|
+
* [`open`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/open)
|
|
47
|
+
* attribute on native dialog elements.
|
|
48
|
+
*
|
|
49
|
+
* Live examples:
|
|
50
|
+
* - [Dialog with scrollable
|
|
51
|
+
* backdrop](https://ariakit.org/examples/dialog-backdrop-scrollable)
|
|
52
|
+
* - [Dialog with details &
|
|
53
|
+
* summary](https://ariakit.org/examples/dialog-details)
|
|
54
|
+
* - [Warning on Dialog
|
|
55
|
+
* hide](https://ariakit.org/examples/dialog-hide-warning)
|
|
56
|
+
* - [Dialog with Menu](https://ariakit.org/examples/dialog-menu)
|
|
57
|
+
*/
|
|
58
|
+
open?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* This is an event handler prop triggered when the dialog's `close` event is
|
|
61
|
+
* dispatched. The `close` event is similar to the native dialog
|
|
62
|
+
* [`close`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/close_event)
|
|
63
|
+
* event. The only difference is that this event can be cancelled with
|
|
64
|
+
* `event.preventDefault()`, which will prevent the dialog from hiding.
|
|
65
|
+
*
|
|
66
|
+
* It's important to note that this event only fires when the dialog store's
|
|
67
|
+
* [`open`](https://ariakit.org/reference/use-dialog-store#open) state is set
|
|
68
|
+
* to `false`. If the controlled
|
|
69
|
+
* [`open`](https://ariakit.org/reference/dialog#open) prop value changes, or
|
|
70
|
+
* if the dialog's visibility is altered in any other way (such as unmounting
|
|
71
|
+
* the dialog without adjusting the open state), this event won't be
|
|
72
|
+
* triggered.
|
|
73
|
+
*
|
|
74
|
+
* Live examples:
|
|
75
|
+
* - [Dialog with scrollable
|
|
76
|
+
* backdrop](https://ariakit.org/examples/dialog-backdrop-scrollable)
|
|
77
|
+
* - [Dialog with details &
|
|
78
|
+
* summary](https://ariakit.org/examples/dialog-details)
|
|
79
|
+
* - [Warning on Dialog
|
|
80
|
+
* hide](https://ariakit.org/examples/dialog-hide-warning)
|
|
81
|
+
* - [Dialog with Menu](https://ariakit.org/examples/dialog-menu)
|
|
82
|
+
*/
|
|
83
|
+
onClose?: (event: Event) => void;
|
|
84
|
+
/**
|
|
85
|
+
* Determines whether the dialog is modal. Modal dialogs have distinct states
|
|
86
|
+
* and behaviors:
|
|
87
|
+
* - The [`portal`](https://ariakit.org/reference/dialog#portal) and
|
|
88
|
+
* [`preventBodyScroll`](https://ariakit.org/reference/dialog#preventbodyscroll)
|
|
89
|
+
* props are set to `true`. They can still be manually set to `false`.
|
|
90
|
+
* - A visually hidden dismiss button will be rendered if the
|
|
91
|
+
* [`DialogDismiss`](https://ariakit.org/reference/dialog-dismiss) component
|
|
92
|
+
* hasn't been used. This allows screen reader users to close the dialog.
|
|
93
|
+
* - When the dialog is open, element tree outside it will be disabled.
|
|
94
|
+
* - When using the [`Heading`](https://ariakit.org/reference/heading) or
|
|
95
|
+
* [`DialogHeading`](https://ariakit.org/reference/dialog-heading)
|
|
96
|
+
* components within the dialog, their level will be reset so they start
|
|
97
|
+
* with `h1`.
|
|
98
|
+
*
|
|
99
|
+
* Live examples:
|
|
100
|
+
* - [Dialog with details &
|
|
101
|
+
* summary](https://ariakit.org/examples/dialog-details)
|
|
102
|
+
* - [Form with Select](https://ariakit.org/examples/form-select)
|
|
103
|
+
* - [Context menu](https://ariakit.org/examples/menu-context-menu)
|
|
104
|
+
* - [Responsive Popover](https://ariakit.org/examples/popover-responsive)
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
107
|
+
modal?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Determines whether there will be a backdrop behind the dialog. On modal
|
|
110
|
+
* dialogs, this is `true` by default. Besides a `boolean`, this prop can also
|
|
111
|
+
* be a React component or JSX element that will be rendered as the backdrop.
|
|
112
|
+
*
|
|
113
|
+
* **If a custom component is used, it must accept ref and spread all props to
|
|
114
|
+
* its underlying DOM element**, the same way a native element would.
|
|
115
|
+
*
|
|
116
|
+
* Live examples:
|
|
117
|
+
* - [Animated Dialog](https://ariakit.org/examples/dialog-animated)
|
|
118
|
+
* - [Dialog with scrollable
|
|
119
|
+
* backdrop](https://ariakit.org/examples/dialog-backdrop-scrollable)
|
|
120
|
+
* - [Dialog with Framer
|
|
121
|
+
* Motion](https://ariakit.org/examples/dialog-framer-motion)
|
|
122
|
+
* - [Dialog with Menu](https://ariakit.org/examples/dialog-menu)
|
|
123
|
+
* - [Nested Dialog](https://ariakit.org/examples/dialog-nested)
|
|
124
|
+
* - [Dialog with Next.js App
|
|
125
|
+
* Router](https://ariakit.org/examples/dialog-next-router)
|
|
126
|
+
* @example
|
|
127
|
+
* ```jsx
|
|
128
|
+
* <Dialog backdrop={<div className="backdrop" />} />
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
backdrop?: boolean | ReactElement<ComponentPropsWithRef<"div">> | ElementType<ComponentPropsWithRef<"div">>;
|
|
132
|
+
/**
|
|
133
|
+
* Props that will be passed to the backdrop element if
|
|
134
|
+
* [`backdrop`](https://ariakit.org/reference/dialog#backdrop) is `true`.
|
|
135
|
+
* @deprecated
|
|
136
|
+
* Use the [`backdrop`](https://ariakit.org/reference/dialog#backdrop) prop
|
|
137
|
+
* instead.
|
|
138
|
+
*/
|
|
139
|
+
backdropProps?: ComponentPropsWithRef<"div">;
|
|
140
|
+
/**
|
|
141
|
+
* Determines whether the dialog will be hidden when the user presses the
|
|
142
|
+
* Escape key.
|
|
143
|
+
* @default true
|
|
144
|
+
*/
|
|
145
|
+
hideOnEscape?: BooleanOrCallback<KeyboardEvent | ReactKeyboardEvent>;
|
|
146
|
+
/**
|
|
147
|
+
* Determines whether the dialog will be hidden when the user clicks or focus
|
|
148
|
+
* on an element outside of the dialog.
|
|
149
|
+
*
|
|
150
|
+
* Live examples:
|
|
151
|
+
* - [Selection Popover](https://ariakit.org/examples/popover-selection)
|
|
152
|
+
* @default true
|
|
153
|
+
*/
|
|
154
|
+
hideOnInteractOutside?: BooleanOrCallback<Event | SyntheticEvent>;
|
|
155
|
+
/**
|
|
156
|
+
* When a dialog is open, the elements outside of it will be disabled so they
|
|
157
|
+
* can't be interacted with if the dialog is modal. For non-modal dialogs,
|
|
158
|
+
* interacting with elements outside of the dialog will close it. With this
|
|
159
|
+
* function, you can return a collection of elements that will be considered
|
|
160
|
+
* part of the dialog and therefore will be excluded from this behavior.
|
|
161
|
+
*
|
|
162
|
+
* Live examples:
|
|
163
|
+
* - [Dialog with
|
|
164
|
+
* React-Toastify](https://ariakit.org/examples/dialog-react-toastify)
|
|
165
|
+
*/
|
|
166
|
+
getPersistentElements?: () => Iterable<Element>;
|
|
167
|
+
/**
|
|
168
|
+
* Determines whether the body scrolling will be prevented when the dialog is
|
|
169
|
+
* shown.
|
|
170
|
+
*/
|
|
171
|
+
preventBodyScroll?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* Determines whether an element inside the dialog will receive focus when the
|
|
174
|
+
* dialog is shown. By default, this is usually the first tabbable element in
|
|
175
|
+
* the dialog or the dialog itself. The `initialFocus` prop can be used to set
|
|
176
|
+
* a different element to receive focus.
|
|
177
|
+
*
|
|
178
|
+
* Live examples:
|
|
179
|
+
* - [Warning on Dialog
|
|
180
|
+
* hide](https://ariakit.org/examples/dialog-hide-warning)
|
|
181
|
+
* - [Sliding Menu](https://ariakit.org/examples/menu-slide)
|
|
182
|
+
* - [Selection Popover](https://ariakit.org/examples/popover-selection)
|
|
183
|
+
* @default true
|
|
184
|
+
*/
|
|
185
|
+
autoFocusOnShow?: BooleanOrCallback<HTMLElement | null>;
|
|
186
|
+
/**
|
|
187
|
+
* Determines whether an element outside of the dialog will be focused when
|
|
188
|
+
* the dialog is hidden if another element hasn't been focused in the action
|
|
189
|
+
* of hiding the dialog (for example, by clicking or tabbing into another
|
|
190
|
+
* tabbable element outside of the dialog).
|
|
191
|
+
*
|
|
192
|
+
* By default, this is usually the disclosure element. The
|
|
193
|
+
* [`finalFocus`](https://ariakit.org/reference/dialog#finalfocus) prop can be
|
|
194
|
+
* used to define a different element to be focused.
|
|
195
|
+
*
|
|
196
|
+
* Live examples:
|
|
197
|
+
* - [Dialog with Next.js App
|
|
198
|
+
* Router](https://ariakit.org/examples/dialog-next-router)
|
|
199
|
+
* - [Sliding menu](https://ariakit.org/examples/menu-slide)
|
|
200
|
+
* @default true
|
|
201
|
+
*/
|
|
202
|
+
autoFocusOnHide?: BooleanOrCallback<HTMLElement | null>;
|
|
203
|
+
/**
|
|
204
|
+
* Specifies the element that will receive focus when the dialog is first
|
|
205
|
+
* opened. It can be an `HTMLElement` or a `React.RefObject` with an
|
|
206
|
+
* `HTMLElement`.
|
|
207
|
+
*
|
|
208
|
+
* If
|
|
209
|
+
* [`autoFocusOnShow`](https://ariakit.org/reference/dialog#autofocusonshow)
|
|
210
|
+
* is set to `false`, this prop will have no effect. If left unset, the dialog
|
|
211
|
+
* will attempt to determine the initial focus element in the following order:
|
|
212
|
+
* 1. A [Focusable](https://ariakit.org/components/focusable) element with an
|
|
213
|
+
* [`autoFocus`](https://ariakit.org/reference/focusable#autofocus) prop.
|
|
214
|
+
* 2. The first tabbable element inside the dialog.
|
|
215
|
+
* 3. The first focusable element inside the dialog.
|
|
216
|
+
* 4. The dialog element itself.
|
|
217
|
+
*/
|
|
218
|
+
initialFocus?: HTMLElement | RefObject<HTMLElement> | null;
|
|
219
|
+
/**
|
|
220
|
+
* Determines the element that will receive focus once the dialog is closed,
|
|
221
|
+
* provided that no other element has been focused while the dialog was being
|
|
222
|
+
* hidden (e.g., by clicking or tabbing into another tabbable element outside
|
|
223
|
+
* of the dialog).
|
|
224
|
+
* - If
|
|
225
|
+
* [`autoFocusOnHide`](https://ariakit.org/reference/dialog#autofocusonhide)
|
|
226
|
+
* is set to `false`, this prop will have no effect.
|
|
227
|
+
* - If left unset, the element that was focused before the dialog was opened
|
|
228
|
+
* will be focused again.
|
|
229
|
+
*/
|
|
230
|
+
finalFocus?: HTMLElement | RefObject<HTMLElement> | null;
|
|
231
|
+
}
|
|
232
|
+
export type DialogProps<T extends As = "div"> = Props<DialogOptions<T>>;
|
package/cjs/dialog/dialog.d.ts
CHANGED
|
@@ -21,10 +21,13 @@ export declare function createDialogComponent<T extends DialogOptions>(Component
|
|
|
21
21
|
* Renders a dialog element.
|
|
22
22
|
* @see https://ariakit.org/components/dialog
|
|
23
23
|
* @example
|
|
24
|
-
* ```jsx
|
|
25
|
-
* const
|
|
26
|
-
*
|
|
27
|
-
* <
|
|
24
|
+
* ```jsx {4-6}
|
|
25
|
+
* const [open, setOpen] = useState(false);
|
|
26
|
+
*
|
|
27
|
+
* <button onClick={() => setOpen(true)}>Open dialog</button>
|
|
28
|
+
* <Dialog open={open} onClose={() => setOpen(false)}>
|
|
29
|
+
* Dialog
|
|
30
|
+
* </Dialog>
|
|
28
31
|
* ```
|
|
29
32
|
*/
|
|
30
33
|
export declare const Dialog: Component<DialogOptions<"div">>;
|
|
@@ -129,8 +132,9 @@ export interface DialogOptions<T extends As = "div"> extends FocusableOptions<T>
|
|
|
129
132
|
/**
|
|
130
133
|
* Props that will be passed to the backdrop element if
|
|
131
134
|
* [`backdrop`](https://ariakit.org/reference/dialog#backdrop) is `true`.
|
|
132
|
-
* @deprecated
|
|
133
|
-
* [`backdrop`](https://ariakit.org/reference/dialog#backdrop) prop
|
|
135
|
+
* @deprecated
|
|
136
|
+
* Use the [`backdrop`](https://ariakit.org/reference/dialog#backdrop) prop
|
|
137
|
+
* instead.
|
|
134
138
|
*/
|
|
135
139
|
backdropProps?: ComponentPropsWithRef<"div">;
|
|
136
140
|
/**
|
|
@@ -183,9 +187,16 @@ export interface DialogOptions<T extends As = "div"> extends FocusableOptions<T>
|
|
|
183
187
|
* Determines whether an element outside of the dialog will be focused when
|
|
184
188
|
* the dialog is hidden if another element hasn't been focused in the action
|
|
185
189
|
* of hiding the dialog (for example, by clicking or tabbing into another
|
|
186
|
-
* tabbable element outside of the dialog).
|
|
187
|
-
*
|
|
188
|
-
*
|
|
190
|
+
* tabbable element outside of the dialog).
|
|
191
|
+
*
|
|
192
|
+
* By default, this is usually the disclosure element. The
|
|
193
|
+
* [`finalFocus`](https://ariakit.org/reference/dialog#finalfocus) prop can be
|
|
194
|
+
* used to define a different element to be focused.
|
|
195
|
+
*
|
|
196
|
+
* Live examples:
|
|
197
|
+
* - [Dialog with Next.js App
|
|
198
|
+
* Router](https://ariakit.org/examples/dialog-next-router)
|
|
199
|
+
* - [Sliding menu](https://ariakit.org/examples/menu-slide)
|
|
189
200
|
* @default true
|
|
190
201
|
*/
|
|
191
202
|
autoFocusOnHide?: BooleanOrCallback<HTMLElement | null>;
|
|
@@ -209,9 +220,12 @@ export interface DialogOptions<T extends As = "div"> extends FocusableOptions<T>
|
|
|
209
220
|
* Determines the element that will receive focus once the dialog is closed,
|
|
210
221
|
* provided that no other element has been focused while the dialog was being
|
|
211
222
|
* hidden (e.g., by clicking or tabbing into another tabbable element outside
|
|
212
|
-
* of the dialog).
|
|
213
|
-
*
|
|
214
|
-
*
|
|
223
|
+
* of the dialog).
|
|
224
|
+
* - If
|
|
225
|
+
* [`autoFocusOnHide`](https://ariakit.org/reference/dialog#autofocusonhide)
|
|
226
|
+
* is set to `false`, this prop will have no effect.
|
|
227
|
+
* - If left unset, the element that was focused before the dialog was opened
|
|
228
|
+
* will be focused again.
|
|
215
229
|
*/
|
|
216
230
|
finalFocus?: HTMLElement | RefObject<HTMLElement> | null;
|
|
217
231
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _F4RJLWZGcjs = require('../../__chunks/F4RJLWZG.cjs');
|
|
5
|
-
require('../../__chunks/Z3TLXRS7.cjs');
|
|
6
|
-
require('../../__chunks/TLA46MN6.cjs');
|
|
7
|
-
require('../../__chunks/BWQVQDGC.cjs');
|
|
8
|
-
require('../../__chunks/72I2GWXF.cjs');
|
|
9
4
|
|
|
5
|
+
var _PZL34OVOcjs = require('../../__chunks/PZL34OVO.cjs');
|
|
6
|
+
require('../../__chunks/7YLCVXZ7.cjs');
|
|
7
|
+
require('../../__chunks/5GTNIPQ6.cjs');
|
|
8
|
+
require('../../__chunks/V24PR4PW.cjs');
|
|
9
|
+
require('../../__chunks/AV6KTKLE.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
exports.disableAccessibilityTreeOutside = _PZL34OVOcjs.disableAccessibilityTreeOutside; exports.hideElementFromAccessibilityTree = _PZL34OVOcjs.hideElementFromAccessibilityTree;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var _COHI5HTScjs = require('../../__chunks/COHI5HTS.cjs');
|
|
5
|
-
require('../../__chunks/F4RJLWZG.cjs');
|
|
6
|
-
require('../../__chunks/56NPFF7P.cjs');
|
|
7
|
-
require('../../__chunks/Z3TLXRS7.cjs');
|
|
8
|
-
require('../../__chunks/TLA46MN6.cjs');
|
|
9
|
-
require('../../__chunks/BWQVQDGC.cjs');
|
|
10
|
-
require('../../__chunks/72I2GWXF.cjs');
|
|
11
4
|
|
|
5
|
+
var _NKR65BKCcjs = require('../../__chunks/NKR65BKC.cjs');
|
|
6
|
+
require('../../__chunks/PZL34OVO.cjs');
|
|
7
|
+
require('../../__chunks/7YLCVXZ7.cjs');
|
|
8
|
+
require('../../__chunks/6IUEXB4L.cjs');
|
|
9
|
+
require('../../__chunks/5GTNIPQ6.cjs');
|
|
10
|
+
require('../../__chunks/V24PR4PW.cjs');
|
|
11
|
+
require('../../__chunks/AV6KTKLE.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
exports.disableTree = _NKR65BKCcjs.disableTree; exports.disableTreeOutside = _NKR65BKCcjs.disableTreeOutside;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { noop } from "@ariakit/core/utils/misc";
|
|
2
|
+
type Elements = Array<Element | null>;
|
|
3
|
+
export declare function disableTree(element: Element | HTMLElement, ignoredElements?: Elements): typeof noop;
|
|
4
|
+
export declare function disableTreeOutside(id: string, elements: Elements): () => void;
|
|
5
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
|
-
var _Z3TLXRS7cjs = require('../../__chunks/Z3TLXRS7.cjs');
|
|
4
|
-
require('../../__chunks/72I2GWXF.cjs');
|
|
5
3
|
|
|
4
|
+
var _7YLCVXZ7cjs = require('../../__chunks/7YLCVXZ7.cjs');
|
|
5
|
+
require('../../__chunks/AV6KTKLE.cjs');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
exports.isBackdrop = _7YLCVXZ7cjs.isBackdrop;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isBackdrop(element?: Element | null, ...ids: Array<string | null | undefined>): boolean;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var _QK4GI6B3cjs = require('../../__chunks/QK4GI6B3.cjs');
|
|
7
|
-
require('../../__chunks/Z3TLXRS7.cjs');
|
|
8
|
-
require('../../__chunks/TLA46MN6.cjs');
|
|
9
|
-
require('../../__chunks/BWQVQDGC.cjs');
|
|
10
|
-
require('../../__chunks/72I2GWXF.cjs');
|
|
11
6
|
|
|
7
|
+
var _VV6WA3I6cjs = require('../../__chunks/VV6WA3I6.cjs');
|
|
8
|
+
require('../../__chunks/7YLCVXZ7.cjs');
|
|
9
|
+
require('../../__chunks/5GTNIPQ6.cjs');
|
|
10
|
+
require('../../__chunks/V24PR4PW.cjs');
|
|
11
|
+
require('../../__chunks/AV6KTKLE.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
exports.isElementMarked = _VV6WA3I6cjs.isElementMarked; exports.markAncestor = _VV6WA3I6cjs.markAncestor; exports.markElement = _VV6WA3I6cjs.markElement; exports.markTreeOutside = _VV6WA3I6cjs.markTreeOutside;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type Elements = Array<Element | null>;
|
|
2
|
+
export declare function markElement(element: Element, id?: string): () => void;
|
|
3
|
+
export declare function markAncestor(element: Element, id?: string): () => void;
|
|
4
|
+
export declare function isElementMarked(element: Element, id?: string): boolean;
|
|
5
|
+
export declare function markTreeOutside(id: string, elements: Elements): () => void;
|
|
6
|
+
export {};
|