@ariakit/react-core 0.3.4 → 0.3.5
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 +24 -0
- package/cjs/__chunks/{CQSUIL2D.cjs → 2BIO7R5N.cjs} +3 -1
- package/cjs/__chunks/{OAEUR56W.cjs → 2TEJFTKY.cjs} +8 -7
- package/cjs/__chunks/{5ZP4D2SQ.cjs → 2UXXG7NZ.cjs} +46 -23
- package/cjs/__chunks/{FGAN5BEK.cjs → 3BMU6SYC.cjs} +13 -12
- package/cjs/__chunks/{HSOKUBYY.cjs → 4H55S5YC.cjs} +9 -8
- package/cjs/__chunks/4NC3T4TV.cjs +44 -0
- package/cjs/__chunks/{WSW5XX7F.cjs → 4YG3D3TM.cjs} +7 -6
- package/cjs/__chunks/{TLA46MN6.cjs → 5GTNIPQ6.cjs} +5 -4
- package/cjs/__chunks/5NKFHQZ2.cjs +35 -0
- package/cjs/__chunks/{KFXK3MNI.cjs → 6HAYK3MK.cjs} +3 -1
- package/cjs/__chunks/{56NPFF7P.cjs → 6IUEXB4L.cjs} +3 -1
- package/cjs/__chunks/{SELCJFCB.cjs → 6MOJZWML.cjs} +40 -39
- package/cjs/__chunks/6QAZTNB3.cjs +49 -0
- package/cjs/__chunks/{LHHW5ZQP.cjs → 75KXQZJX.cjs} +3 -1
- package/cjs/__chunks/{GQAB4M3B.cjs → 7ARL6QHN.cjs} +23 -21
- package/cjs/__chunks/{VVU2UQJ2.cjs → 7QGHCN3D.cjs} +6 -5
- package/cjs/__chunks/{X2GXTE3P.cjs → 7TN63K2T.cjs} +3 -1
- package/cjs/__chunks/{Z3TLXRS7.cjs → 7YLCVXZ7.cjs} +3 -1
- package/cjs/__chunks/{MNZPRWGC.cjs → AE6TH3T4.cjs} +24 -23
- package/cjs/__chunks/{YLOTLD6S.cjs → AET6NN6S.cjs} +19 -18
- package/cjs/__chunks/{4K6QJIPX.cjs → AH3CUB6N.cjs} +3 -1
- package/cjs/__chunks/{VIPX6GSM.cjs → AIPLRMQM.cjs} +12 -11
- package/cjs/__chunks/{BSOHJE7R.cjs → AX6LOJFX.cjs} +19 -18
- package/cjs/__chunks/{RU4K4ZH6.cjs → BRJSETQA.cjs} +9 -8
- package/cjs/__chunks/{4QHHTATP.cjs → BYH4RK4N.cjs} +11 -10
- package/cjs/__chunks/{CAKLNUKE.cjs → C62OAIZV.cjs} +14 -13
- package/cjs/__chunks/CU67FFZI.cjs +34 -0
- package/cjs/__chunks/{NS56XHXG.cjs → CVD2AZE2.cjs} +3 -1
- package/cjs/__chunks/{RWS2MAR2.cjs → D5XLZTLO.cjs} +4 -3
- package/cjs/__chunks/{COHI5HTS.cjs → DEZWSLIM.cjs} +14 -13
- package/cjs/__chunks/{DFFFHQVQ.cjs → DJLIJTDU.cjs} +14 -13
- package/cjs/__chunks/{FO6MB5HF.cjs → ERFHNHON.cjs} +3 -1
- package/cjs/__chunks/{LCC3WQBM.cjs → F55FAJ6A.cjs} +24 -23
- package/cjs/__chunks/F6CFLPMO.cjs +33 -0
- package/cjs/__chunks/{HWZH54NB.cjs → F7HB6RYG.cjs} +22 -19
- package/cjs/__chunks/{FPNO6JL5.cjs → FD3VCGWP.cjs} +7 -6
- package/cjs/__chunks/{K56WQU76.cjs → FE3YCURH.cjs} +3 -1
- package/cjs/__chunks/{3DILH277.cjs → FNDHFFQY.cjs} +8 -7
- package/cjs/__chunks/{H7R5D2FR.cjs → FQGSRSYD.cjs} +7 -6
- package/cjs/__chunks/G3CEEQUP.cjs +43 -0
- package/cjs/__chunks/GXNCC5AV.cjs +41 -0
- package/cjs/__chunks/{GUWJ7VTO.cjs → H2TTW65Q.cjs} +45 -42
- package/cjs/__chunks/{HBZJ2UC5.cjs → HDF3U5G4.cjs} +7 -6
- package/cjs/__chunks/{4YBHDRLG.cjs → HSIFMSHW.cjs} +8 -7
- package/cjs/__chunks/{FMI5QF7N.cjs → HY2NPBHW.cjs} +14 -13
- package/cjs/__chunks/{YJVXQQJ3.cjs → I2Z34PEH.cjs} +14 -13
- package/cjs/__chunks/{SE2X2FG7.cjs → I7FUZRNN.cjs} +6 -5
- package/cjs/__chunks/{VGU6RMHO.cjs → IBMLAICP.cjs} +18 -17
- package/cjs/__chunks/{O6SYRTZH.cjs → IE75SSVL.cjs} +9 -8
- package/cjs/__chunks/{SOPRUU56.cjs → J3OG6T3B.cjs} +5 -4
- package/cjs/__chunks/{VAY4A33A.cjs → JA2O66IU.cjs} +28 -27
- package/cjs/__chunks/{W32FX7DM.cjs → JF225FQ5.cjs} +3 -1
- package/cjs/__chunks/{UK2DHDQU.cjs → JLZMDZGE.cjs} +21 -20
- package/cjs/__chunks/{5WLTMVVQ.cjs → JTVNRMAC.cjs} +7 -6
- package/cjs/__chunks/{NHZBX2RS.cjs → JVORNAMD.cjs} +4 -3
- package/cjs/__chunks/{JJ22W2WS.cjs → KJQSD4SL.cjs} +19 -18
- package/cjs/__chunks/{EMNY7J2W.cjs → KKBPJ4X4.cjs} +15 -14
- package/cjs/__chunks/{NER6RNCQ.cjs → KU7YLZWT.cjs} +4 -3
- package/cjs/__chunks/{ZBG4TGVL.cjs → KXLF6YSN.cjs} +8 -7
- package/cjs/__chunks/{OLGMV24U.cjs → KXQOQQ5B.cjs} +3 -1
- package/cjs/__chunks/{AKOG5S2T.cjs → KZA6P235.cjs} +7 -6
- package/cjs/__chunks/{OKMDKM3M.cjs → L2N2X3HZ.cjs} +8 -7
- package/cjs/__chunks/{QFGI3BJE.cjs → L5APETYY.cjs} +70 -69
- package/cjs/__chunks/{7WUTS26Y.cjs → LNE2FWJO.cjs} +5 -4
- package/cjs/__chunks/{SQPRIHDR.cjs → LXGEK4ZH.cjs} +8 -7
- package/cjs/__chunks/{35G5ZXPH.cjs → LXIYFIHE.cjs} +13 -12
- package/cjs/__chunks/{I2EPCLS6.cjs → M3F5A3H5.cjs} +8 -7
- package/cjs/__chunks/{GWFSX7RQ.cjs → NFJS7B5M.cjs} +31 -30
- package/cjs/__chunks/{DGL5AMAW.cjs → NKMUYKJA.cjs} +10 -9
- package/cjs/__chunks/{NFFY66XZ.cjs → NKUO6VN5.cjs} +12 -11
- package/cjs/__chunks/NLP7FWTB.cjs +39 -0
- package/cjs/__chunks/{VAF2GKYW.cjs → NLTNFPAX.cjs} +10 -9
- package/cjs/__chunks/{T222USYS.cjs → OPSHLOSD.cjs} +36 -35
- package/cjs/__chunks/{TYMYFAUI.cjs → OQTZAPK7.cjs} +23 -22
- package/cjs/__chunks/{Q6W7IWNJ.cjs → ORT5QOHH.cjs} +7 -6
- package/cjs/__chunks/{VLI66TFL.cjs → P34T42GI.cjs} +7 -6
- package/cjs/__chunks/{CKEXTQ2S.cjs → PG7QUWN4.cjs} +11 -10
- package/cjs/__chunks/PH2Q5GQR.cjs +42 -0
- package/cjs/__chunks/{ELOQI33M.cjs → POBIUXYK.cjs} +4 -3
- package/cjs/__chunks/{VTRMALP6.cjs → PRN5A3P4.cjs} +8 -7
- package/cjs/__chunks/{6UYPIKG4.cjs → PY7LXBFA.cjs} +19 -18
- package/cjs/__chunks/{F4RJLWZG.cjs → PZL34OVO.cjs} +8 -7
- package/cjs/__chunks/{P4F26HLT.cjs → Q4NPNRJZ.cjs} +12 -11
- package/cjs/__chunks/{KSFAO77E.cjs → QCAPQDE7.cjs} +9 -8
- package/cjs/__chunks/{W6ZRSMO5.cjs → QKKT6RXX.cjs} +7 -6
- package/cjs/__chunks/{ZZZ5MQHA.cjs → QQNI2PXZ.cjs} +6 -5
- package/cjs/__chunks/{QBOBT66Y.cjs → QSZHJK4J.cjs} +16 -15
- package/cjs/__chunks/{LPFT4ZFH.cjs → QWH4QBHA.cjs} +16 -15
- package/cjs/__chunks/{ZIEW4CQO.cjs → QXQFY7FW.cjs} +7 -6
- package/cjs/__chunks/{EOLXNGMX.cjs → QZSAUMPI.cjs} +15 -14
- package/cjs/__chunks/{DYNIQRKI.cjs → RCYQROHJ.cjs} +18 -17
- package/cjs/__chunks/{UBRGEBVN.cjs → RGAVRWMY.cjs} +7 -6
- package/cjs/__chunks/RJZ35XFC.cjs +41 -0
- package/cjs/__chunks/{KLZID3QO.cjs → RV3PHHWM.cjs} +3 -1
- package/cjs/__chunks/{L2VQ4YLN.cjs → RXGXI75N.cjs} +26 -25
- package/cjs/__chunks/{A2NMYLCG.cjs → SMKW5GKS.cjs} +4 -3
- package/cjs/__chunks/{TFIVWWWL.cjs → TQ27KUD6.cjs} +8 -7
- package/cjs/__chunks/{YCBMXOIO.cjs → TRPJVP5K.cjs} +7 -6
- package/cjs/__chunks/{DC66R2NY.cjs → TUYB72LL.cjs} +15 -14
- package/cjs/__chunks/{232HWSNY.cjs → U74DRAW2.cjs} +14 -13
- package/cjs/__chunks/{2H4Y2NEY.cjs → UL3EZVAK.cjs} +54 -33
- package/cjs/__chunks/{BWQVQDGC.cjs → V24PR4PW.cjs} +3 -1
- package/cjs/__chunks/{Z5PUIG6A.cjs → VKYTJKYN.cjs} +20 -19
- package/cjs/__chunks/{J37FS72U.cjs → VPDW6TOS.cjs} +24 -23
- package/cjs/__chunks/VSO45UA5.cjs +51 -0
- package/cjs/__chunks/{QK4GI6B3.cjs → VV6WA3I6.cjs} +11 -10
- package/cjs/__chunks/VZI5MZ7D.cjs +44 -0
- package/cjs/__chunks/{76UBACFC.cjs → W23HEISM.cjs} +7 -6
- package/cjs/__chunks/{EVNF7KMT.cjs → WLJVTO7A.cjs} +13 -10
- package/cjs/__chunks/WP7ZSALI.cjs +39 -0
- package/cjs/__chunks/{QMFZ4CLT.cjs → WQHSXOMF.cjs} +28 -27
- package/cjs/__chunks/{72I2GWXF.cjs → WYXAWBLE.cjs} +2 -1
- package/cjs/__chunks/{EZKYHQVF.cjs → XCM6Y3AX.cjs} +13 -12
- package/cjs/__chunks/{6RYSMHQY.cjs → YRDDHZT7.cjs} +11 -10
- package/cjs/__chunks/{R7CSCUVW.cjs → YREZ6S36.cjs} +18 -17
- package/cjs/__chunks/{ZHMGQCNX.cjs → ZDTJSOSW.cjs} +18 -17
- 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-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 +52 -51
- 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 +51 -0
- 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 +56 -0
- 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-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 +231 -0
- package/cjs/dialog/dialog.d.ts +23 -10
- 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 +21 -20
- package/cjs/menu/menu-arrow.d.cts +42 -0
- package/cjs/menu/menu-bar-provider.cjs +19 -18
- package/cjs/menu/menu-bar-provider.d.cts +31 -0
- package/cjs/menu/menu-bar-store.cjs +10 -9
- package/cjs/menu/menu-bar-store.d.cts +22 -0
- package/cjs/menu/menu-bar.cjs +26 -25
- package/cjs/menu/menu-bar.d.cts +62 -0
- package/cjs/menu/menu-button-arrow.cjs +20 -19
- package/cjs/menu/menu-button-arrow.d.cts +52 -0
- package/cjs/menu/menu-button.cjs +49 -48
- package/cjs/menu/menu-button.d.cts +58 -0
- package/cjs/menu/menu-context.cjs +14 -13
- package/cjs/menu/menu-context.d.cts +39 -0
- package/cjs/menu/menu-description.cjs +15 -14
- package/cjs/menu/menu-description.d.cts +42 -0
- package/cjs/menu/menu-dismiss.cjs +26 -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 +21 -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-list.cjs +22 -21
- package/cjs/menu/menu-list.d.cts +46 -0
- package/cjs/menu/menu-provider.cjs +24 -23
- package/cjs/menu/menu-provider.d.cts +24 -0
- package/cjs/menu/menu-separator.cjs +21 -20
- package/cjs/menu/menu-separator.d.cts +48 -0
- package/cjs/menu/menu-store.cjs +23 -22
- package/cjs/menu/menu-store.d.cts +130 -0
- package/cjs/menu/menu.cjs +63 -62
- package/cjs/menu/menu.d.cts +36 -0
- package/cjs/menu/utils.cjs +5 -4
- package/cjs/menu/utils.d.cts +2 -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 +138 -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 +75 -0
- 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 +6 -5
- package/cjs/utils/hooks.d.cts +135 -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/visually-hidden/visually-hidden.cjs +8 -7
- package/cjs/visually-hidden/visually-hidden.d.cts +29 -0
- package/esm/__chunks/{WHAB4XD6.js → 2ID5JPOO.js} +5 -2
- package/esm/__chunks/{ZYB5SMUW.js → 2IYBCQM2.js} +7 -6
- package/esm/__chunks/{OQUFN5QO.js → 2J2XF6WW.js} +5 -4
- package/esm/__chunks/{PNRLI7OV.js → 2SMRF6AD.js} +1 -0
- package/esm/__chunks/{FK7TLQA3.js → 2UMXWJJP.js} +5 -4
- package/esm/__chunks/{PTJJY26M.js → 2VASUNFX.js} +5 -4
- package/esm/__chunks/{DCODCZJS.js → 37XXBWT2.js} +7 -6
- package/esm/__chunks/{MHJWVBOP.js → 3AAZQSAV.js} +4 -3
- package/esm/__chunks/{CJI67A3R.js → 3I4EOZD7.js} +2 -1
- package/esm/__chunks/{F5VAC7MB.js → 3X3MDQGM.js} +2 -0
- package/esm/__chunks/{UXIMR4AS.js → 4MXLDXAO.js} +21 -20
- package/esm/__chunks/{OD3JT64N.js → 4ORPOXHX.js} +3 -2
- package/esm/__chunks/{LBTB6WEV.js → 4TWFPBPU.js} +5 -4
- package/esm/__chunks/{QTZ67ALK.js → 5IIPAC4H.js} +4 -3
- package/esm/__chunks/{TONP6TZ5.js → 5O7V7O3A.js} +5 -4
- package/esm/__chunks/{IDYHJHXJ.js → 5TQMQMFE.js} +7 -6
- package/esm/__chunks/{KOVUJERF.js → 677M2CI3.js} +2 -0
- package/esm/__chunks/{62DFK33R.js → 6GXEOXGT.js} +2 -0
- package/esm/__chunks/{OXPV2NBK.js → 6QXBPV75.js} +2 -0
- package/esm/__chunks/{US4OMDIO.js → 6RJCEQC6.js} +4 -3
- package/esm/__chunks/{J7Q2EO23.js → 6WEF4WY5.js} +3 -2
- 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 → 7CRP5UGO.js} +3 -2
- package/esm/__chunks/{RO34XBHA.js → 7E5H65N4.js} +4 -3
- package/esm/__chunks/{YS46MLTR.js → 7GWB36ES.js} +3 -2
- package/esm/__chunks/{56TAEBRJ.js → 7PHIY4AC.js} +7 -6
- package/esm/__chunks/{IZ22SVTG.js → 7TX2LT7B.js} +6 -5
- package/esm/__chunks/{3AVEDDB7.js → A5SMLCUJ.js} +6 -5
- package/esm/__chunks/{5DA3HK6G.js → B4BLW6E7.js} +3 -2
- package/esm/__chunks/{6XXSNRNX.js → B6ZZAB7E.js} +3 -2
- package/esm/__chunks/{7VWXICM7.js → BULCTPRV.js} +4 -3
- package/esm/__chunks/{XIA3HAXM.js → BY5KOAGY.js} +5 -4
- package/esm/__chunks/{J5LOLGUC.js → C3N6W3CQ.js} +3 -2
- package/esm/__chunks/{6W46XYWY.js → C5MFNUHA.js} +3 -2
- package/esm/__chunks/{E3ZC4HKO.js → CDXDE4CH.js} +7 -6
- package/esm/__chunks/{IQXVWBXC.js → CQCRBYV6.js} +12 -9
- package/esm/__chunks/{EGOOWJGN.js → CU5FOQJK.js} +6 -5
- package/esm/__chunks/{CX73JT3N.js → CXC67JFB.js} +3 -2
- package/esm/__chunks/{AE5ABTKC.js → DLGO5RXE.js} +3 -2
- package/esm/__chunks/{NJS632IW.js → DPO6VSJT.js} +3 -2
- package/esm/__chunks/{PGK6S5NC.js → EAY52LAK.js} +2 -1
- package/esm/__chunks/{PH5SSOBF.js → F3YVHJBI.js} +3 -2
- package/esm/__chunks/{DL4RBG46.js → F4M2DDED.js} +3 -2
- package/esm/__chunks/{KXTLHNBI.js → FIFZJO4T.js} +8 -7
- package/esm/__chunks/{J2AZPLFF.js → FNSZIWLG.js} +38 -17
- package/esm/__chunks/{HWJ7DGMR.js → G5X3WBMZ.js} +2 -1
- package/esm/__chunks/{QP4RN5UY.js → H5NQMD66.js} +4 -3
- package/esm/__chunks/{3FLPLDNL.js → HDG2IPG7.js} +8 -7
- package/esm/__chunks/{YTHH33BK.js → HJIEYVEO.js} +7 -5
- package/esm/__chunks/{I6Y4PDFW.js → IIGNNJHA.js} +5 -4
- package/esm/__chunks/{4FNI7F6H.js → INBEQ5LA.js} +5 -4
- package/esm/__chunks/{DE62M4L2.js → IO2C6XLJ.js} +31 -8
- package/esm/__chunks/{QGZKN2N5.js → IPLYRPDL.js} +5 -4
- package/esm/__chunks/{NXB7YL3C.js → JQ2AMQCL.js} +7 -6
- package/esm/__chunks/{2Q7ASGJM.js → JWEPAU44.js} +3 -2
- package/esm/__chunks/{YVYWIVKG.js → KDNXDIJO.js} +6 -5
- package/esm/__chunks/{LFLKMTFW.js → KGKSIW34.js} +3 -2
- package/esm/__chunks/{74KKBFVP.js → KSMDNUGB.js} +2 -1
- package/esm/__chunks/{WNHMGHG5.js → LAO6LEBC.js} +5 -4
- package/esm/__chunks/{CFEUKV6C.js → LFJDOMBA.js} +4 -3
- package/esm/__chunks/{QW4PFVNF.js → LH4OUJXP.js} +4 -3
- package/esm/__chunks/{5EAW3TWZ.js → LW6KKRR6.js} +5 -4
- package/esm/__chunks/{IXXFVVA2.js → MKDDWKFK.js} +2 -0
- package/esm/__chunks/{3QOG4FFB.js → N4JWG5JC.js} +3 -2
- package/esm/__chunks/{XCH4OEEE.js → NDBJZBXZ.js} +5 -4
- package/esm/__chunks/{3KBWC7LF.js → O6OMRIAN.js} +6 -5
- package/esm/__chunks/{2FIUKXIM.js → OKQLSXJX.js} +6 -5
- package/esm/__chunks/{7JNF6I52.js → OOBDFMJL.js} +2 -0
- package/esm/__chunks/{JRZOTPWS.js → OXY6XIZF.js} +9 -8
- package/esm/__chunks/{CP3U4HPL.js → OZVWZODE.js} +2 -1
- package/esm/__chunks/{56KWVYDN.js → P3UIANB7.js} +2 -1
- package/esm/__chunks/{LRDCOOWL.js → PCYBL4RJ.js} +6 -5
- package/esm/__chunks/{JM3KBRED.js → PLOKN2PQ.js} +5 -4
- package/esm/__chunks/{E5S26AHF.js → PTUVC42S.js} +4 -3
- package/esm/__chunks/{DLZTS5NV.js → PX7P75CP.js} +8 -7
- package/esm/__chunks/{H3CXUGYG.js → QAVVMLZP.js} +6 -5
- package/esm/__chunks/{GM7XQV7F.js → QFL5V2DO.js} +2 -0
- package/esm/__chunks/{2GC3IEM7.js → QQ7MJHYB.js} +4 -3
- package/esm/__chunks/{KK6NPMOP.js → QUBURLUM.js} +7 -6
- package/esm/__chunks/{REKKG4AV.js → QZMQZL6N.js} +5 -4
- package/esm/__chunks/{HUAF5DID.js → R72A2MDW.js} +3 -2
- package/esm/__chunks/{FV4UX26M.js → RE3KBWM3.js} +5 -4
- package/esm/__chunks/{IPFII6JW.js → RGE4LYC4.js} +3 -2
- package/esm/__chunks/{ICL2YIES.js → RVUABR2G.js} +2 -1
- package/esm/__chunks/{JGFZEURZ.js → S6KFVXKD.js} +5 -4
- package/esm/__chunks/{5HSRXC5S.js → SFRUIDAI.js} +4 -3
- package/esm/__chunks/{BMLNRUFQ.js → SHA3WOPI.js} +2 -0
- package/esm/__chunks/{F7UYWUBJ.js → SJHIAJ6X.js} +8 -7
- package/esm/__chunks/{5YYGDU4E.js → SNQAYGW2.js} +3 -2
- package/esm/__chunks/{HXYXHHNW.js → SWFV62AU.js} +7 -6
- package/esm/__chunks/{FRKOFFMT.js → TL67WVI6.js} +4 -3
- package/esm/__chunks/{3X3TLUHU.js → UG6PMSDE.js} +7 -6
- package/esm/__chunks/{JCUV76PT.js → ULCTMK2H.js} +5 -4
- package/esm/__chunks/{6OMX4H3W.js → UYRJLDVS.js} +2 -1
- package/esm/__chunks/{7VC364FM.js → VHHTBGDA.js} +3 -2
- package/esm/__chunks/{IADMQBOS.js → VLYIZ6AL.js} +3 -2
- package/esm/__chunks/{WRZGD4DH.js → VUP7S67H.js} +3 -2
- package/esm/__chunks/{W7JXAQKF.js → VVC34BID.js} +2 -0
- package/esm/__chunks/{3Z4KAOQS.js → W2DLJJIX.js} +4 -3
- package/esm/__chunks/{6F7MKZK2.js → WEHPT3EV.js} +4 -3
- package/esm/__chunks/{OAQFZVKH.js → WWOEH5U6.js} +4 -3
- package/esm/__chunks/{5C7J4IAS.js → X3ATWMYX.js} +3 -2
- package/esm/__chunks/{FW6QFGFT.js → X6WIMZJE.js} +2 -0
- package/esm/__chunks/{COQHFAEN.js → XPF5GU3Q.js} +2 -0
- package/esm/__chunks/{CAIAWNDV.js → XVQ3TNPZ.js} +9 -6
- package/esm/__chunks/{IZFXPXHG.js → XWCMZCWT.js} +3 -2
- package/esm/__chunks/{2BTPJSKW.js → Y3DDLZ45.js} +9 -8
- package/esm/__chunks/{X7FKJQME.js → YMV43K4F.js} +2 -0
- package/esm/__chunks/{7LB47D2O.js → YPQ27YD7.js} +5 -4
- package/esm/__chunks/{24EUVZFE.js → ZF6AA2GH.js} +6 -5
- package/esm/__chunks/{3LGVTTHD.js → ZGFCAP4H.js} +3 -2
- package/esm/__chunks/{WJZPOH5E.js → ZOV347KO.js} +5 -4
- package/esm/__chunks/{NRFPH2ON.js → ZQKNDRGB.js} +3 -2
- package/esm/__chunks/{DJJWAII5.js → ZWLYZGQF.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.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 +42 -41
- 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.js +8 -7
- package/esm/composite/composite-input.js +7 -6
- 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.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 +23 -10
- 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 +14 -13
- package/esm/menu/menu-bar-provider.js +16 -15
- package/esm/menu/menu-bar-store.js +8 -7
- package/esm/menu/menu-bar.js +16 -15
- package/esm/menu/menu-button-arrow.js +13 -12
- package/esm/menu/menu-button.js +28 -27
- package/esm/menu/menu-context.js +12 -11
- package/esm/menu/menu-description.js +10 -9
- package/esm/menu/menu-dismiss.js +19 -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 +14 -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.js +22 -21
- package/esm/menu/menu-list.js +20 -19
- package/esm/menu/menu-provider.js +21 -20
- package/esm/menu/menu-separator.js +14 -13
- package/esm/menu/menu-store.js +21 -20
- package/esm/menu/menu.js +48 -47
- package/esm/menu/utils.js +3 -2
- 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.js +38 -37
- package/esm/portal/portal-context.js +3 -2
- 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.js +4 -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.js +1 -0
- package/esm/visually-hidden/visually-hidden.js +6 -5
- package/package.json +802 -202
- 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/OOFSNUBV.cjs +0 -40
- package/cjs/__chunks/OQROAZRY.cjs +0 -48
- package/cjs/__chunks/SW2AH2YO.cjs +0 -50
- package/cjs/__chunks/TDUVWW2F.cjs +0 -43
- package/cjs/__chunks/XH2CZ7VF.cjs +0 -41
- package/cjs/__chunks/ZMSJUL55.cjs +0 -43
- package/cjs/__chunks/ZQZC54NS.cjs +0 -38
- package/cjs/tsconfig.build.tsbuildinfo +0 -1
- package/esm/tsconfig.build.tsbuildinfo +0 -1
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import type { AriaAttributes, ChangeEvent, MouseEvent, KeyboardEvent as ReactKeyboardEvent } from "react";
|
|
2
|
+
import type { BooleanOrCallback, StringWithValue } from "@ariakit/core/utils/types";
|
|
3
|
+
import type { CompositeOptions } from "../composite/composite.js";
|
|
4
|
+
import type { PopoverAnchorOptions } from "../popover/popover-anchor.js";
|
|
5
|
+
import type { As, Props } from "../utils/types.js";
|
|
6
|
+
import type { ComboboxStore } from "./combobox-store.js";
|
|
7
|
+
/**
|
|
8
|
+
* Returns props to create a `Combobox` component.
|
|
9
|
+
* @see https://ariakit.org/components/combobox
|
|
10
|
+
* @example
|
|
11
|
+
* ```jsx
|
|
12
|
+
* const store = useComboboxStore();
|
|
13
|
+
* const props = useCombobox({ store });
|
|
14
|
+
* <Role {...props} />
|
|
15
|
+
* <ComboboxPopover store={store}>
|
|
16
|
+
* <ComboboxItem value="Apple" />
|
|
17
|
+
* <ComboboxItem value="Banana" />
|
|
18
|
+
* <ComboboxItem value="Orange" />
|
|
19
|
+
* </ComboboxPopover>
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare const useCombobox: import("../utils/types.js").Hook<ComboboxOptions<"input">>;
|
|
23
|
+
/**
|
|
24
|
+
* Renders a combobox input.
|
|
25
|
+
* @see https://ariakit.org/components/combobox
|
|
26
|
+
* @example
|
|
27
|
+
* ```jsx
|
|
28
|
+
* <ComboboxProvider>
|
|
29
|
+
* <Combobox />
|
|
30
|
+
* <ComboboxPopover>
|
|
31
|
+
* <ComboboxItem value="Apple" />
|
|
32
|
+
* <ComboboxItem value="Banana" />
|
|
33
|
+
* <ComboboxItem value="Orange" />
|
|
34
|
+
* </ComboboxPopover>
|
|
35
|
+
* </ComboboxProvider>
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
export declare const Combobox: import("../utils/types.js").Component<ComboboxOptions<"input">>;
|
|
39
|
+
export interface ComboboxOptions<T extends As = "input"> extends CompositeOptions<T>, PopoverAnchorOptions<T> {
|
|
40
|
+
/**
|
|
41
|
+
* Object returned by the
|
|
42
|
+
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
43
|
+
* hook. If not provided, the closest
|
|
44
|
+
* [`ComboboxProvider`](https://ariakit.org/reference/combobox-provider)
|
|
45
|
+
* component's context will be used.
|
|
46
|
+
*/
|
|
47
|
+
store?: ComboboxStore;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the first item will be automatically selected when the combobox
|
|
50
|
+
* input value changes. When it's set to `true`, the exact behavior will
|
|
51
|
+
* depend on the value of
|
|
52
|
+
* [`autoComplete`](https://ariakit.org/reference/combobox#autocomplete) prop:
|
|
53
|
+
* - If [`autoComplete`](https://ariakit.org/reference/combobox#autocomplete)
|
|
54
|
+
* is `both` or `inline`, the first item is automatically focused when the
|
|
55
|
+
* popup opens, and the input value changes to reflect this. The inline
|
|
56
|
+
* completion string will be highlighted and will have a selected state.
|
|
57
|
+
* - If [`autoComplete`](https://ariakit.org/reference/combobox#autocomplete)
|
|
58
|
+
* is `list` or `none`, the first item is automatically focused when the
|
|
59
|
+
* popup opens, but the input value doesn't change.
|
|
60
|
+
*
|
|
61
|
+
* Live examples:
|
|
62
|
+
* - [ComboboxCancel](https://ariakit.org/examples/combobox-cancel)
|
|
63
|
+
* - [ComboboxGroup](https://ariakit.org/examples/combobox-group)
|
|
64
|
+
* - [Combobox with links](https://ariakit.org/examples/combobox-links)
|
|
65
|
+
* - [Textarea with inline
|
|
66
|
+
* Combobox](https://ariakit.org/examples/combobox-textarea)
|
|
67
|
+
* - [Menu with Combobox](https://ariakit.org/examples/menu-combobox)
|
|
68
|
+
* - [Select with Combobox](https://ariakit.org/examples/select-combobox)
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
autoSelect?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Whether the items will be filtered based on
|
|
74
|
+
* [`value`](https://ariakit.org/reference/combobox-provider#value) and
|
|
75
|
+
* whether the input value will temporarily change based on the active item.
|
|
76
|
+
*
|
|
77
|
+
* This prop is based on the standard
|
|
78
|
+
* [`aria-autocomplete`](https://w3c.github.io/aria/#aria-autocomplete)
|
|
79
|
+
* attribute, accepting the same values:
|
|
80
|
+
* - `both`: indicates that the items will be filtered based on
|
|
81
|
+
* [`value`](https://ariakit.org/reference/combobox-provider#value) and the
|
|
82
|
+
* input value will temporarily change based on the active item. The
|
|
83
|
+
* filtering logic must be implemented by the consumer of this component,
|
|
84
|
+
* whereas Ariakit will automatically provide the inline autocompletion
|
|
85
|
+
* behavior.
|
|
86
|
+
* - `list` (default): indicates that the items will be filtered based on
|
|
87
|
+
* [`value`](https://ariakit.org/reference/combobox-provider#value) and the
|
|
88
|
+
* input value will NOT change based on the active item. The filtering logic
|
|
89
|
+
* must be implemented by the consumer of this component.
|
|
90
|
+
* - `inline`: indicates that the items are static, that is, they won't be
|
|
91
|
+
* filtered, but the input value will temporarily change based on the active
|
|
92
|
+
* item. Ariakit will automatically provide the inline autocompletion
|
|
93
|
+
* behavior
|
|
94
|
+
* - `none`: the items are static and the input value will NOT change based on
|
|
95
|
+
* the active item.
|
|
96
|
+
*
|
|
97
|
+
* Live examples:
|
|
98
|
+
* - [ComboboxGroup](https://ariakit.org/examples/combobox-group)
|
|
99
|
+
* @default "list"
|
|
100
|
+
*/
|
|
101
|
+
autoComplete?: StringWithValue<Required<AriaAttributes>["aria-autocomplete"]>;
|
|
102
|
+
/**
|
|
103
|
+
* Whether the combobox list/popover should be shown when the input value is
|
|
104
|
+
* changed.
|
|
105
|
+
*
|
|
106
|
+
* Live examples:
|
|
107
|
+
* - [Textarea with inline
|
|
108
|
+
* Combobox](https://ariakit.org/examples/combobox-textarea)
|
|
109
|
+
* @default true
|
|
110
|
+
* @example
|
|
111
|
+
* ```jsx
|
|
112
|
+
* <Combobox showOnChange={(event) => event.target.value.length > 1} />
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
showOnChange?: BooleanOrCallback<ChangeEvent<HTMLElement>>;
|
|
116
|
+
/**
|
|
117
|
+
* Whether the combobox store value will be updated when the input value
|
|
118
|
+
* changes. This is useful if you want to customize how the store value is
|
|
119
|
+
* updated based on the input value.
|
|
120
|
+
*
|
|
121
|
+
* Live examples:
|
|
122
|
+
* - [Textarea with inline
|
|
123
|
+
* Combobox](https://ariakit.org/examples/combobox-textarea)
|
|
124
|
+
* @default true
|
|
125
|
+
*/
|
|
126
|
+
setValueOnChange?: BooleanOrCallback<ChangeEvent<HTMLElement>>;
|
|
127
|
+
/**
|
|
128
|
+
* Whether the [`ComboboxList`](https://ariakit.org/reference/combobox-list)
|
|
129
|
+
* or [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
130
|
+
* components should be shown when the input is clicked.
|
|
131
|
+
*
|
|
132
|
+
* Live examples:
|
|
133
|
+
* - [Textarea with inline
|
|
134
|
+
* Combobox](https://ariakit.org/examples/combobox-textarea)
|
|
135
|
+
* @default true
|
|
136
|
+
* @example
|
|
137
|
+
* ```jsx
|
|
138
|
+
* <Combobox showOnMouseDown={value.length > 1} />
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
showOnMouseDown?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
142
|
+
/**
|
|
143
|
+
* Whether the [`ComboboxList`](https://ariakit.org/reference/combobox-list)
|
|
144
|
+
* or [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
145
|
+
* components should be shown when the user presses the arrow up or down keys
|
|
146
|
+
* while focusing on the combobox input element.
|
|
147
|
+
*
|
|
148
|
+
* Live examples:
|
|
149
|
+
* - [Textarea with inline
|
|
150
|
+
* Combobox](https://ariakit.org/examples/combobox-textarea)
|
|
151
|
+
* @default true
|
|
152
|
+
* @example
|
|
153
|
+
* ```jsx
|
|
154
|
+
* <Combobox showOnKeyDown={value.length > 1} />
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
showOnKeyDown?: BooleanOrCallback<ReactKeyboardEvent<HTMLElement>>;
|
|
158
|
+
/**
|
|
159
|
+
* Whether the combobox store value will be updated when the combobox input
|
|
160
|
+
* element gets clicked. This usually only applies when `autoComplete` is
|
|
161
|
+
* `both` or `inline`, because the input value will temporarily change based
|
|
162
|
+
* on the active item and the store value will not be updated until the user
|
|
163
|
+
* confirms the selection.
|
|
164
|
+
* @default true
|
|
165
|
+
*/
|
|
166
|
+
setValueOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
167
|
+
}
|
|
168
|
+
export type ComboboxProps<T extends As = "input"> = Props<ComboboxOptions<T>>;
|
package/cjs/command/command.cjs
CHANGED
|
@@ -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 _HWZH54NBcjs = require('../__chunks/HWZH54NB.cjs');
|
|
5
|
-
require('../__chunks/GQAB4M3B.cjs');
|
|
6
|
-
require('../__chunks/LHHW5ZQP.cjs');
|
|
7
|
-
require('../__chunks/Z5PUIG6A.cjs');
|
|
8
|
-
require('../__chunks/5WLTMVVQ.cjs');
|
|
9
|
-
require('../__chunks/7WUTS26Y.cjs');
|
|
10
|
-
require('../__chunks/72I2GWXF.cjs');
|
|
11
4
|
|
|
5
|
+
var _F7HB6RYGcjs = require('../__chunks/F7HB6RYG.cjs');
|
|
6
|
+
require('../__chunks/7ARL6QHN.cjs');
|
|
7
|
+
require('../__chunks/75KXQZJX.cjs');
|
|
8
|
+
require('../__chunks/VKYTJKYN.cjs');
|
|
9
|
+
require('../__chunks/JTVNRMAC.cjs');
|
|
10
|
+
require('../__chunks/LNE2FWJO.cjs');
|
|
11
|
+
require('../__chunks/WYXAWBLE.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
exports.Command = _F7HB6RYGcjs.Command; exports.useCommand = _F7HB6RYGcjs.useCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { FocusableOptions } from "../focusable/focusable.js";
|
|
2
|
+
import type { As, Props } from "../utils/types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns props to create a `Command` component. If the element is not a native
|
|
5
|
+
* clickable element (like a button), this hook will return additional props to
|
|
6
|
+
* make sure it's accessible.
|
|
7
|
+
* @see https://ariakit.org/components/command
|
|
8
|
+
* @example
|
|
9
|
+
* ```jsx
|
|
10
|
+
* const props = useCommand({ render: <div /> });
|
|
11
|
+
* <Role {...props}>Accessible button</Role>
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare const useCommand: import("../utils/types.js").Hook<CommandOptions<"button">>;
|
|
15
|
+
/**
|
|
16
|
+
* Renders a clickable element, which is a `button` by default, and inherits
|
|
17
|
+
* features from the [`Focusable`](https://ariakit.org/reference/focusable)
|
|
18
|
+
* component.
|
|
19
|
+
*
|
|
20
|
+
* If the base element isn't a native clickable one, this component will provide
|
|
21
|
+
* extra attributes and event handlers to ensure accessibility. It can be
|
|
22
|
+
* activated with the keyboard using the
|
|
23
|
+
* [`clickOnEnter`](https://ariakit.org/reference/command#clickonenter) and
|
|
24
|
+
* [`clickOnSpace`](https://ariakit.org/reference/command#clickonspace)
|
|
25
|
+
* props. Both are set to `true` by default.
|
|
26
|
+
* @see https://ariakit.org/components/command
|
|
27
|
+
* @example
|
|
28
|
+
* ```jsx
|
|
29
|
+
* <Command render={<div />}>Accessible button</Command>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const Command: import("../utils/types.js").Component<CommandOptions<"button">>;
|
|
33
|
+
export interface CommandOptions<T extends As = "button"> extends FocusableOptions<T> {
|
|
34
|
+
/**
|
|
35
|
+
* If set to `true`, pressing the enter key while this element is focused will
|
|
36
|
+
* trigger a click on the element, regardless of whether it's a native button
|
|
37
|
+
* or not. If this prop is set to `false`, pressing enter will not initiate a
|
|
38
|
+
* click.
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
clickOnEnter?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* If set to `true`, pressing and releasing the space key while this element
|
|
44
|
+
* is focused will trigger a click on the element, regardless of whether it's
|
|
45
|
+
* a native button or not. If this prop is set to `false`, space will not
|
|
46
|
+
* initiate a click.
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
clickOnSpace?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export type CommandProps<T extends As = "button"> = Props<CommandOptions<T>>;
|
|
@@ -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
|
-
var _UK2DHDQUcjs = require('../__chunks/UK2DHDQU.cjs');
|
|
5
|
-
require('../__chunks/KLZID3QO.cjs');
|
|
6
|
-
require('../__chunks/H7R5D2FR.cjs');
|
|
7
|
-
require('../__chunks/NHZBX2RS.cjs');
|
|
8
|
-
require('../__chunks/Z5PUIG6A.cjs');
|
|
9
|
-
require('../__chunks/EVNF7KMT.cjs');
|
|
10
|
-
require('../__chunks/5WLTMVVQ.cjs');
|
|
11
|
-
require('../__chunks/7WUTS26Y.cjs');
|
|
12
|
-
require('../__chunks/72I2GWXF.cjs');
|
|
13
4
|
|
|
5
|
+
var _JLZMDZGEcjs = require('../__chunks/JLZMDZGE.cjs');
|
|
6
|
+
require('../__chunks/RV3PHHWM.cjs');
|
|
7
|
+
require('../__chunks/FQGSRSYD.cjs');
|
|
8
|
+
require('../__chunks/JVORNAMD.cjs');
|
|
9
|
+
require('../__chunks/VKYTJKYN.cjs');
|
|
10
|
+
require('../__chunks/WLJVTO7A.cjs');
|
|
11
|
+
require('../__chunks/JTVNRMAC.cjs');
|
|
12
|
+
require('../__chunks/LNE2FWJO.cjs');
|
|
13
|
+
require('../__chunks/WYXAWBLE.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
exports.CompositeContainer = _JLZMDZGEcjs.CompositeContainer; exports.useCompositeContainer = _JLZMDZGEcjs.useCompositeContainer;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { As, Options, Props } from "../utils/types.js";
|
|
2
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns props to create a `CompositeContainer` component. This component
|
|
5
|
+
* renders interactive widgets inside composite items. This should be used in
|
|
6
|
+
* conjunction with the `CompositeItem` component, the `useCompositeItem` hook,
|
|
7
|
+
* or any other component/hook that uses `CompositeItem` underneath.
|
|
8
|
+
* @see https://ariakit.org/components/composite
|
|
9
|
+
* @example
|
|
10
|
+
* ```jsx
|
|
11
|
+
* const store = useCompositeStore();
|
|
12
|
+
* const props = useCompositeContainer({ store });
|
|
13
|
+
* <Composite store={store}>
|
|
14
|
+
* <CompositeItem {...props}>
|
|
15
|
+
* <input type="text" />
|
|
16
|
+
* </CompositeItem>
|
|
17
|
+
* </Composite>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useCompositeContainer: import("../utils/types.js").Hook<CompositeContainerOptions<"div">>;
|
|
21
|
+
/**
|
|
22
|
+
* Renders a container for interactive widgets inside composite items. This
|
|
23
|
+
* should be used in conjunction with the `CompositeItem` component or a
|
|
24
|
+
* component that uses `CompositeItem` underneath.
|
|
25
|
+
* @see https://ariakit.org/components/composite
|
|
26
|
+
* @example
|
|
27
|
+
* ```jsx
|
|
28
|
+
* const composite = useCompositeStore();
|
|
29
|
+
* <Composite store={composite}>
|
|
30
|
+
* <CompositeItem render={<CompositeContainer />}>
|
|
31
|
+
* <input type="text" />
|
|
32
|
+
* </CompositeItem>
|
|
33
|
+
* </Composite>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const CompositeContainer: import("../utils/types.js").Component<CompositeContainerOptions<"div">>;
|
|
37
|
+
export interface CompositeContainerOptions<T extends As = "div"> extends Options<T> {
|
|
38
|
+
/**
|
|
39
|
+
* Object returned by the `useCompositeStore` hook. If not provided, the
|
|
40
|
+
* parent `Composite` component's context will be used.
|
|
41
|
+
*/
|
|
42
|
+
store?: CompositeStore;
|
|
43
|
+
}
|
|
44
|
+
export type CompositeContainerProps<T extends As = "div"> = Props<CompositeContainerOptions<T>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var _H7R5D2FRcjs = require('../__chunks/H7R5D2FR.cjs');
|
|
10
|
-
require('../__chunks/NHZBX2RS.cjs');
|
|
11
|
-
require('../__chunks/Z5PUIG6A.cjs');
|
|
12
|
-
require('../__chunks/5WLTMVVQ.cjs');
|
|
13
|
-
require('../__chunks/7WUTS26Y.cjs');
|
|
14
|
-
require('../__chunks/72I2GWXF.cjs');
|
|
15
9
|
|
|
10
|
+
var _FQGSRSYDcjs = require('../__chunks/FQGSRSYD.cjs');
|
|
11
|
+
require('../__chunks/JVORNAMD.cjs');
|
|
12
|
+
require('../__chunks/VKYTJKYN.cjs');
|
|
13
|
+
require('../__chunks/JTVNRMAC.cjs');
|
|
14
|
+
require('../__chunks/LNE2FWJO.cjs');
|
|
15
|
+
require('../__chunks/WYXAWBLE.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -20,4 +20,5 @@ require('../__chunks/72I2GWXF.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
exports.CompositeContextProvider = _FQGSRSYDcjs.CompositeContextProvider; exports.CompositeItemContext = _FQGSRSYDcjs.CompositeItemContext; exports.CompositeRowContext = _FQGSRSYDcjs.CompositeRowContext; exports.CompositeScopedContextProvider = _FQGSRSYDcjs.CompositeScopedContextProvider; exports.useCompositeContext = _FQGSRSYDcjs.useCompositeContext; exports.useCompositeProviderContext = _FQGSRSYDcjs.useCompositeProviderContext; exports.useCompositeScopedContext = _FQGSRSYDcjs.useCompositeScopedContext;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the composite store from the nearest composite container.
|
|
4
|
+
* @example
|
|
5
|
+
* function CompositeItem() {
|
|
6
|
+
* const store = useCompositeContext();
|
|
7
|
+
*
|
|
8
|
+
* if (!store) {
|
|
9
|
+
* throw new Error("CompositeItem must be wrapped in CompositeProvider");
|
|
10
|
+
* }
|
|
11
|
+
*
|
|
12
|
+
* // Use the store...
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export declare const useCompositeContext: () => CompositeStore | undefined;
|
|
16
|
+
export declare const useCompositeScopedContext: (onlyScoped?: boolean) => CompositeStore | undefined;
|
|
17
|
+
export declare const useCompositeProviderContext: () => CompositeStore | undefined;
|
|
18
|
+
export declare const CompositeContextProvider: (props: import("react").ProviderProps<CompositeStore | undefined>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const CompositeScopedContextProvider: (props: import("react").ProviderProps<CompositeStore | undefined>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
interface ItemContext {
|
|
21
|
+
baseElement?: HTMLElement;
|
|
22
|
+
id?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const CompositeItemContext: import("react").Context<ItemContext | undefined>;
|
|
25
|
+
interface RowContext extends ItemContext {
|
|
26
|
+
ariaSetSize?: number;
|
|
27
|
+
ariaPosInSet?: number;
|
|
28
|
+
}
|
|
29
|
+
export declare const CompositeRowContext: import("react").Context<RowContext | undefined>;
|
|
30
|
+
export {};
|
|
@@ -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 _DGL5AMAWcjs = require('../__chunks/DGL5AMAW.cjs');
|
|
5
|
-
require('../__chunks/TDUVWW2F.cjs');
|
|
6
|
-
require('../__chunks/K56WQU76.cjs');
|
|
7
|
-
require('../__chunks/Z5PUIG6A.cjs');
|
|
8
|
-
require('../__chunks/5WLTMVVQ.cjs');
|
|
9
|
-
require('../__chunks/7WUTS26Y.cjs');
|
|
10
|
-
require('../__chunks/72I2GWXF.cjs');
|
|
11
4
|
|
|
5
|
+
var _NKMUYKJAcjs = require('../__chunks/NKMUYKJA.cjs');
|
|
6
|
+
require('../__chunks/VZI5MZ7D.cjs');
|
|
7
|
+
require('../__chunks/FE3YCURH.cjs');
|
|
8
|
+
require('../__chunks/VKYTJKYN.cjs');
|
|
9
|
+
require('../__chunks/JTVNRMAC.cjs');
|
|
10
|
+
require('../__chunks/LNE2FWJO.cjs');
|
|
11
|
+
require('../__chunks/WYXAWBLE.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
exports.CompositeGroupLabel = _NKMUYKJAcjs.CompositeGroupLabel; exports.useCompositeGroupLabel = _NKMUYKJAcjs.useCompositeGroupLabel;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { GroupLabelOptions } from "../group/group-label.js";
|
|
2
|
+
import type { As, Props } from "../utils/types.js";
|
|
3
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
4
|
+
/**
|
|
5
|
+
* Returns props to create a `CompositeGroupLabel` component. This hook must be
|
|
6
|
+
* used in a component that's wrapped with `CompositeGroup` so the
|
|
7
|
+
* `aria-labelledby` prop is properly set on the composite group element.
|
|
8
|
+
* @see https://ariakit.org/components/composite
|
|
9
|
+
* @example
|
|
10
|
+
* ```jsx
|
|
11
|
+
* // This component must be wrapped with CompositeGroup
|
|
12
|
+
* const props = useCompositeGroupLabel();
|
|
13
|
+
* <Role {...props}>Label</Role>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const useCompositeGroupLabel: import("../utils/types.js").Hook<CompositeGroupLabelOptions<"div">>;
|
|
17
|
+
/**
|
|
18
|
+
* Renders a label in a composite group. This component must be wrapped with
|
|
19
|
+
* `CompositeGroup` so the `aria-labelledby` prop is properly set on the
|
|
20
|
+
* composite group element.
|
|
21
|
+
* @see https://ariakit.org/components/composite
|
|
22
|
+
* @example
|
|
23
|
+
* ```jsx
|
|
24
|
+
* const composite = useCompositeStore();
|
|
25
|
+
* <Composite store={composite}>
|
|
26
|
+
* <CompositeGroup>
|
|
27
|
+
* <CompositeGroupLabel>Label</CompositeGroupLabel>
|
|
28
|
+
* <CompositeItem>Item 1</CompositeItem>
|
|
29
|
+
* <CompositeItem>Item 2</CompositeItem>
|
|
30
|
+
* </CompositeGroup>
|
|
31
|
+
* </Composite>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const CompositeGroupLabel: import("../utils/types.js").Component<CompositeGroupLabelOptions<"div">>;
|
|
35
|
+
export interface CompositeGroupLabelOptions<T extends As = "div"> extends GroupLabelOptions<T> {
|
|
36
|
+
/**
|
|
37
|
+
* Object returned by the `useCompositeStore` hook. If not provided, the
|
|
38
|
+
* parent `Composite` component's context will be used.
|
|
39
|
+
*/
|
|
40
|
+
store?: CompositeStore;
|
|
41
|
+
}
|
|
42
|
+
export type CompositeGroupLabelProps<T extends As = "div"> = Props<CompositeGroupLabelOptions<T>>;
|
|
@@ -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 _7VE7IIRWcjs = require('../__chunks/7VE7IIRW.cjs');
|
|
5
|
-
require('../__chunks/ZMSJUL55.cjs');
|
|
6
|
-
require('../__chunks/K56WQU76.cjs');
|
|
7
|
-
require('../__chunks/Z5PUIG6A.cjs');
|
|
8
|
-
require('../__chunks/5WLTMVVQ.cjs');
|
|
9
|
-
require('../__chunks/7WUTS26Y.cjs');
|
|
10
|
-
require('../__chunks/72I2GWXF.cjs');
|
|
11
4
|
|
|
5
|
+
var _5NKFHQZ2cjs = require('../__chunks/5NKFHQZ2.cjs');
|
|
6
|
+
require('../__chunks/4NC3T4TV.cjs');
|
|
7
|
+
require('../__chunks/FE3YCURH.cjs');
|
|
8
|
+
require('../__chunks/VKYTJKYN.cjs');
|
|
9
|
+
require('../__chunks/JTVNRMAC.cjs');
|
|
10
|
+
require('../__chunks/LNE2FWJO.cjs');
|
|
11
|
+
require('../__chunks/WYXAWBLE.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
exports.CompositeGroup = _5NKFHQZ2cjs.CompositeGroup; exports.useCompositeGroup = _5NKFHQZ2cjs.useCompositeGroup;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { GroupOptions } from "../group/group.js";
|
|
2
|
+
import type { As, Props } from "../utils/types.js";
|
|
3
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
4
|
+
/**
|
|
5
|
+
* Returns props to create a `CompositeGroup` component.
|
|
6
|
+
* @see https://ariakit.org/components/composite
|
|
7
|
+
* @example
|
|
8
|
+
* ```jsx
|
|
9
|
+
* const store = useCompositeStore();
|
|
10
|
+
* const props = useCompositeGroup({ store });
|
|
11
|
+
* <Composite store={store}>
|
|
12
|
+
* <Role {...props}>
|
|
13
|
+
* <CompositeGroupLabel>Label</CompositeGroupLabel>
|
|
14
|
+
* <CompositeItem>Item 1</CompositeItem>
|
|
15
|
+
* <CompositeItem>Item 2</CompositeItem>
|
|
16
|
+
* </Role>
|
|
17
|
+
* </Composite>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const useCompositeGroup: import("../utils/types.js").Hook<CompositeGroupOptions<"div">>;
|
|
21
|
+
/**
|
|
22
|
+
* Renders a group element for composite items.
|
|
23
|
+
* @see https://ariakit.org/components/composite
|
|
24
|
+
* @example
|
|
25
|
+
* ```jsx
|
|
26
|
+
* const composite = useCompositeStore();
|
|
27
|
+
* <Composite store={composite}>
|
|
28
|
+
* <CompositeGroup>
|
|
29
|
+
* <CompositeGroupLabel>Label</CompositeGroupLabel>
|
|
30
|
+
* <CompositeItem>Item 1</CompositeItem>
|
|
31
|
+
* <CompositeItem>Item 2</CompositeItem>
|
|
32
|
+
* </CompositeGroup>
|
|
33
|
+
* </Composite>
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export declare const CompositeGroup: import("../utils/types.js").Component<CompositeGroupOptions<"div">>;
|
|
37
|
+
export interface CompositeGroupOptions<T extends As = "div"> extends GroupOptions<T> {
|
|
38
|
+
/**
|
|
39
|
+
* Object returned by the `useCompositeStore` hook. If not provided, the
|
|
40
|
+
* parent `Composite` component's context will be used.
|
|
41
|
+
*/
|
|
42
|
+
store?: CompositeStore;
|
|
43
|
+
}
|
|
44
|
+
export type CompositeGroupProps<T extends As = "div"> = Props<CompositeGroupOptions<T>>;
|
|
@@ -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 _LPFT4ZFHcjs = require('../__chunks/LPFT4ZFH.cjs');
|
|
5
|
-
require('../__chunks/H7R5D2FR.cjs');
|
|
6
|
-
require('../__chunks/NHZBX2RS.cjs');
|
|
7
|
-
require('../__chunks/Z5PUIG6A.cjs');
|
|
8
|
-
require('../__chunks/5WLTMVVQ.cjs');
|
|
9
|
-
require('../__chunks/7WUTS26Y.cjs');
|
|
10
|
-
require('../__chunks/72I2GWXF.cjs');
|
|
11
4
|
|
|
5
|
+
var _QWH4QBHAcjs = require('../__chunks/QWH4QBHA.cjs');
|
|
6
|
+
require('../__chunks/FQGSRSYD.cjs');
|
|
7
|
+
require('../__chunks/JVORNAMD.cjs');
|
|
8
|
+
require('../__chunks/VKYTJKYN.cjs');
|
|
9
|
+
require('../__chunks/JTVNRMAC.cjs');
|
|
10
|
+
require('../__chunks/LNE2FWJO.cjs');
|
|
11
|
+
require('../__chunks/WYXAWBLE.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
exports.CompositeHover = _QWH4QBHAcjs.CompositeHover; exports.useCompositeHover = _QWH4QBHAcjs.useCompositeHover;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { MouseEvent as ReactMouseEvent } from "react";
|
|
2
|
+
import type { BooleanOrCallback } from "@ariakit/core/utils/types";
|
|
3
|
+
import type { As, Options, Props } from "../utils/types.js";
|
|
4
|
+
import type { CompositeStore } from "./composite-store.js";
|
|
5
|
+
/**
|
|
6
|
+
* Returns props to create a `CompositeHover` component. The composite item that
|
|
7
|
+
* receives these props will get focused on mouse move and lose focus to the
|
|
8
|
+
* composite base element on mouse leave. This should be combined with the
|
|
9
|
+
* `CompositeItem` component, the `useCompositeItem` hook or any component/hook
|
|
10
|
+
* that uses them underneath.
|
|
11
|
+
* @see https://ariakit.org/components/composite
|
|
12
|
+
* @example
|
|
13
|
+
* ```jsx
|
|
14
|
+
* const store = useCompositeStore();
|
|
15
|
+
* const props = useCompositeHover({ store });
|
|
16
|
+
* <CompositeItem store={store} {...props}>Item</CompositeItem>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const useCompositeHover: import("../utils/types.js").Hook<CompositeHoverOptions<"div">>;
|
|
20
|
+
/**
|
|
21
|
+
* Renders an element in a composite widget that receives focus on mouse move
|
|
22
|
+
* and loses focus to the composite base element on mouse leave. This should be
|
|
23
|
+
* combined with the `CompositeItem` component, the `useCompositeItem` hook or
|
|
24
|
+
* any component/hook that uses them underneath.
|
|
25
|
+
* @see https://ariakit.org/components/composite
|
|
26
|
+
* @example
|
|
27
|
+
* ```jsx
|
|
28
|
+
* const composite = useCompositeStore();
|
|
29
|
+
* <Composite store={composite}>
|
|
30
|
+
* <CompositeHover render={<CompositeItem />}>Item</CompositeHover>
|
|
31
|
+
* </Composite>
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const CompositeHover: import("../utils/types.js").Component<CompositeHoverOptions<"div">>;
|
|
35
|
+
export interface CompositeHoverOptions<T extends As = "div"> extends Options<T> {
|
|
36
|
+
/**
|
|
37
|
+
* Object returned by the `useCompositeStore` hook. If not provided, the
|
|
38
|
+
* parent `Composite` component's context will be used.
|
|
39
|
+
*/
|
|
40
|
+
store?: CompositeStore;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to focus the composite item on hover.
|
|
43
|
+
*
|
|
44
|
+
* Live examples:
|
|
45
|
+
* - [Textarea with inline
|
|
46
|
+
* Combobox](https://ariakit.org/examples/combobox-textarea)
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
focusOnHover?: BooleanOrCallback<ReactMouseEvent<HTMLElement>>;
|
|
50
|
+
}
|
|
51
|
+
export type CompositeHoverProps<T extends As = "div"> = Props<CompositeHoverOptions<T>>;
|
|
@@ -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 _YJVXQQJ3cjs = require('../__chunks/YJVXQQJ3.cjs');
|
|
5
|
-
require('../__chunks/KLZID3QO.cjs');
|
|
6
|
-
require('../__chunks/Z5PUIG6A.cjs');
|
|
7
|
-
require('../__chunks/5WLTMVVQ.cjs');
|
|
8
|
-
require('../__chunks/7WUTS26Y.cjs');
|
|
9
|
-
require('../__chunks/72I2GWXF.cjs');
|
|
10
4
|
|
|
5
|
+
var _I2Z34PEHcjs = require('../__chunks/I2Z34PEH.cjs');
|
|
6
|
+
require('../__chunks/RV3PHHWM.cjs');
|
|
7
|
+
require('../__chunks/VKYTJKYN.cjs');
|
|
8
|
+
require('../__chunks/JTVNRMAC.cjs');
|
|
9
|
+
require('../__chunks/LNE2FWJO.cjs');
|
|
10
|
+
require('../__chunks/WYXAWBLE.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
exports.CompositeInput = _I2Z34PEHcjs.CompositeInput; exports.useCompositeInput = _I2Z34PEHcjs.useCompositeInput;
|