@ariakit/react-core 0.3.14 → 0.4.0
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 +129 -0
- package/cjs/__chunks/2CZCHCJM.cjs +29 -0
- package/cjs/__chunks/{I2KHXDVL.cjs → 2FVHSC23.cjs} +14 -16
- package/cjs/__chunks/{RNGIWUQW.cjs → 3PW624M3.cjs} +11 -13
- package/cjs/__chunks/{HEEQY4DZ.cjs → 43LZBXXJ.cjs} +5 -5
- package/cjs/__chunks/47V4ED4R.cjs +45 -0
- package/cjs/__chunks/{T4KYZJUY.cjs → 4ITCBJNT.cjs} +8 -9
- package/cjs/__chunks/{KSPMHEYZ.cjs → 4OFNVXGN.cjs} +16 -5
- package/cjs/__chunks/{CGIHR7QS.cjs → 4R64K3WW.cjs} +19 -14
- package/cjs/__chunks/{UZNYSPKP.cjs → 4XFLDG56.cjs} +5 -5
- package/cjs/__chunks/{Z3GCTNW4.cjs → 5QD55NKL.cjs} +40 -36
- package/cjs/__chunks/5SRODZ4B.cjs +37 -0
- package/cjs/__chunks/5W6JBMZ4.cjs +40 -0
- package/cjs/__chunks/{LY6FB2NE.cjs → 6772TC3F.cjs} +9 -8
- package/cjs/__chunks/{WZ3DRKGP.cjs → 6RCPYDT6.cjs} +13 -18
- package/cjs/__chunks/6U7MUWYL.cjs +37 -0
- package/cjs/__chunks/7UBOHCYJ.cjs +78 -0
- package/cjs/__chunks/{W5LJEMLB.cjs → AD7LA3CE.cjs} +2 -2
- package/cjs/__chunks/AIKNQVVL.cjs +44 -0
- package/cjs/__chunks/{XW252ITL.cjs → ANKK6ORZ.cjs} +27 -29
- package/cjs/__chunks/BBRNIJWO.cjs +276 -0
- package/cjs/__chunks/BIK2473Z.cjs +37 -0
- package/cjs/__chunks/BTE5YB27.cjs +31 -0
- package/cjs/__chunks/{6LVRCU4J.cjs → C6G4FIVI.cjs} +6 -5
- package/cjs/__chunks/CL7FRJUH.cjs +31 -0
- package/cjs/__chunks/{4VMHQGZH.cjs → DCVHQ3MN.cjs} +2 -3
- package/cjs/__chunks/{FROYTN4B.cjs → F6NX4XH2.cjs} +5 -5
- package/cjs/__chunks/{QOD2KY3N.cjs → FG4Y7VYM.cjs} +6 -8
- package/cjs/__chunks/{UVBBMANL.cjs → FNVFJ5AF.cjs} +5 -5
- package/cjs/__chunks/{OZ4FTKEH.cjs → G5BGNCVU.cjs} +2 -3
- package/cjs/__chunks/{7LBZXSLY.cjs → GAHLF3OI.cjs} +5 -5
- package/cjs/__chunks/GMXGH5P5.cjs +45 -0
- package/cjs/__chunks/{NRGWVSB5.cjs → GOS3JJKQ.cjs} +2 -3
- package/cjs/__chunks/{NGEKJJDH.cjs → HD6KOF3G.cjs} +12 -12
- package/cjs/__chunks/HQKST6ZJ.cjs +40 -0
- package/cjs/__chunks/HSQMZHBZ.cjs +25 -0
- package/cjs/__chunks/I5SQKHRZ.cjs +186 -0
- package/cjs/__chunks/{OUEE5HOS.cjs → ID5QP4WT.cjs} +15 -19
- package/cjs/__chunks/IGGDPRFD.cjs +44 -0
- package/cjs/__chunks/{IPYAEPOT.cjs → JAG4YGQZ.cjs} +16 -13
- package/cjs/__chunks/JFOUIQSF.cjs +193 -0
- package/cjs/__chunks/{LFHNPG2L.cjs → JH5Y3M4V.cjs} +10 -12
- package/cjs/__chunks/JOJAOQVQ.cjs +27 -0
- package/cjs/__chunks/{QCG6J6X5.cjs → K5V42RR6.cjs} +12 -16
- package/cjs/__chunks/{AZV52Y77.cjs → LTCHZ5L3.cjs} +9 -11
- package/cjs/__chunks/{7ZVTEFD7.cjs → LTD4F7TZ.cjs} +10 -12
- package/cjs/__chunks/M327EENO.cjs +27 -0
- package/cjs/__chunks/{3W6FH6JK.cjs → M5PQIWTW.cjs} +5 -5
- package/cjs/__chunks/{NNINKJTT.cjs → MLHQHZEA.cjs} +22 -18
- package/cjs/__chunks/MMDU7VRJ.cjs +52 -0
- package/cjs/__chunks/{H6OLBVHA.cjs → NCXCQQBN.cjs} +11 -13
- package/cjs/__chunks/O2WTAUCQ.cjs +43 -0
- package/cjs/__chunks/{3QW6ELTG.cjs → O45NLQRZ.cjs} +8 -10
- package/cjs/__chunks/{3WCBE6SU.cjs → OBT2YMBC.cjs} +6 -6
- package/cjs/__chunks/OEWIM6B2.cjs +25 -0
- package/cjs/__chunks/{63UPRTFZ.cjs → OIGGI6DI.cjs} +2 -2
- package/cjs/__chunks/{F2A2ZQDB.cjs → OLPMMKKO.cjs} +5 -5
- package/cjs/__chunks/{CFKRWKZR.cjs → OUHSDH5B.cjs} +6 -4
- package/cjs/__chunks/{BBS4RP44.cjs → OUTZPTLJ.cjs} +16 -15
- package/cjs/__chunks/PR3MIXQD.cjs +64 -0
- package/cjs/__chunks/{N3XK7EAH.cjs → PTCYSU6G.cjs} +15 -14
- package/cjs/__chunks/{DTEFSZZZ.cjs → PVRCH7FU.cjs} +10 -12
- package/cjs/__chunks/{RNZNGEL4.cjs → Q67LZMDT.cjs} +7 -54
- package/cjs/__chunks/{BZTDJIVT.cjs → Q6CVYJBO.cjs} +2 -2
- package/cjs/__chunks/{JAQJG42R.cjs → QJZAESAR.cjs} +1 -1
- package/cjs/__chunks/{IO6J4PAN.cjs → QWP2WC6E.cjs} +23 -21
- package/cjs/__chunks/{I65V32V2.cjs → R3OO4M3N.cjs} +5 -5
- package/cjs/__chunks/RGJCGG4P.cjs +170 -0
- package/cjs/__chunks/{GJX4AG2L.cjs → RYQJ4G5H.cjs} +10 -12
- package/cjs/__chunks/{LAUATD5O.cjs → SFDUOV6F.cjs} +15 -12
- package/cjs/__chunks/{2WCJJQSK.cjs → STYNL4LL.cjs} +6 -6
- package/cjs/__chunks/T32XRZLL.cjs +87 -0
- package/cjs/__chunks/TTVVUWIY.cjs +37 -0
- package/cjs/__chunks/{M5JJ43AT.cjs → V7ENWBON.cjs} +5 -5
- package/cjs/__chunks/{XA62Y24Z.cjs → VJIEWS6G.cjs} +15 -17
- package/cjs/__chunks/{LYIGAIJF.cjs → VNRUW2L6.cjs} +5 -5
- package/cjs/__chunks/{ZWICHV7O.cjs → WUK3NG7Y.cjs} +15 -17
- package/cjs/__chunks/XAEBGC7D.cjs +51 -0
- package/cjs/__chunks/{NONPPWSF.cjs → XPNDTO4N.cjs} +11 -6
- package/cjs/__chunks/{S6UU7NA4.cjs → XRJBC7H7.cjs} +2 -2
- package/cjs/__chunks/XSRQB4KO.cjs +131 -0
- package/cjs/__chunks/{R5A2WTWB.cjs → XWCNZ2IP.cjs} +11 -15
- package/cjs/__chunks/{T7WLYFYV.cjs → YDATFQCD.cjs} +2 -2
- package/cjs/__chunks/{TGTVGYEZ.cjs → YEAKVHCK.cjs} +44 -50
- package/cjs/__chunks/YHNU4DBC.cjs +527 -0
- package/cjs/__chunks/{DAJUUBUI.cjs → ZMTZTMRS.cjs} +11 -13
- package/cjs/button/button.cjs +5 -5
- package/cjs/button/button.d.cts +10 -5
- package/cjs/button/button.d.ts +10 -5
- package/cjs/checkbox/checkbox-check.cjs +3 -3
- package/cjs/checkbox/checkbox-check.d.cts +9 -5
- package/cjs/checkbox/checkbox-check.d.ts +9 -5
- package/cjs/checkbox/checkbox-context.cjs +3 -3
- package/cjs/checkbox/checkbox-provider.cjs +3 -3
- package/cjs/checkbox/checkbox.cjs +6 -6
- package/cjs/checkbox/checkbox.d.cts +11 -8
- package/cjs/checkbox/checkbox.d.ts +11 -8
- package/cjs/collection/collection-context.cjs +3 -3
- package/cjs/collection/collection-item.cjs +4 -4
- package/cjs/collection/collection-item.d.cts +9 -5
- package/cjs/collection/collection-item.d.ts +9 -5
- package/cjs/collection/collection-provider.cjs +3 -3
- package/cjs/collection/collection-renderer.cjs +4 -4
- package/cjs/collection/collection-renderer.d.cts +11 -9
- package/cjs/collection/collection-renderer.d.ts +11 -9
- package/cjs/collection/collection.cjs +11 -12
- package/cjs/collection/collection.d.cts +9 -5
- package/cjs/collection/collection.d.ts +9 -5
- package/cjs/combobox/combobox-cancel.cjs +19 -23
- package/cjs/combobox/combobox-cancel.d.cts +9 -5
- package/cjs/combobox/combobox-cancel.d.ts +9 -5
- package/cjs/combobox/combobox-context.cjs +8 -8
- package/cjs/combobox/combobox-disclosure.cjs +56 -62
- package/cjs/combobox/combobox-disclosure.d.cts +9 -5
- package/cjs/combobox/combobox-disclosure.d.ts +9 -5
- package/cjs/combobox/combobox-group-label.cjs +12 -18
- package/cjs/combobox/combobox-group-label.d.cts +9 -5
- package/cjs/combobox/combobox-group-label.d.ts +9 -5
- package/cjs/combobox/combobox-group.cjs +16 -18
- package/cjs/combobox/combobox-group.d.cts +9 -5
- package/cjs/combobox/combobox-group.d.ts +9 -5
- package/cjs/combobox/combobox-item-check.cjs +20 -26
- package/cjs/combobox/combobox-item-check.d.cts +9 -5
- package/cjs/combobox/combobox-item-check.d.ts +9 -5
- package/cjs/combobox/combobox-item-value.cjs +38 -40
- package/cjs/combobox/combobox-item-value.d.cts +9 -5
- package/cjs/combobox/combobox-item-value.d.ts +9 -5
- package/cjs/combobox/combobox-item.cjs +24 -25
- package/cjs/combobox/combobox-item.d.cts +9 -6
- package/cjs/combobox/combobox-item.d.ts +9 -6
- package/cjs/combobox/combobox-label.cjs +17 -18
- package/cjs/combobox/combobox-label.d.cts +9 -5
- package/cjs/combobox/combobox-label.d.ts +9 -5
- package/cjs/combobox/combobox-list.cjs +10 -12
- package/cjs/combobox/combobox-list.d.cts +9 -6
- package/cjs/combobox/combobox-list.d.ts +9 -6
- package/cjs/combobox/combobox-popover.cjs +31 -33
- package/cjs/combobox/combobox-popover.d.cts +9 -5
- package/cjs/combobox/combobox-popover.d.ts +9 -5
- package/cjs/combobox/combobox-provider.cjs +13 -13
- package/cjs/combobox/combobox-row.cjs +15 -17
- package/cjs/combobox/combobox-row.d.cts +9 -5
- package/cjs/combobox/combobox-row.d.ts +9 -5
- package/cjs/combobox/combobox-separator.cjs +25 -31
- package/cjs/combobox/combobox-separator.d.cts +13 -5
- package/cjs/combobox/combobox-separator.d.ts +13 -5
- package/cjs/combobox/combobox-store.cjs +5 -5
- package/cjs/combobox/combobox-store.d.cts +7 -5
- package/cjs/combobox/combobox-store.d.ts +7 -5
- package/cjs/combobox/combobox.cjs +55 -61
- package/cjs/combobox/combobox.d.cts +9 -6
- package/cjs/combobox/combobox.d.ts +9 -6
- package/cjs/command/command.cjs +4 -4
- package/cjs/command/command.d.cts +9 -5
- package/cjs/command/command.d.ts +9 -5
- package/cjs/composite/composite-container.cjs +5 -5
- package/cjs/composite/composite-container.d.cts +9 -5
- package/cjs/composite/composite-container.d.ts +9 -5
- package/cjs/composite/composite-context.cjs +4 -4
- package/cjs/composite/composite-group-label.cjs +4 -4
- package/cjs/composite/composite-group-label.d.cts +9 -5
- package/cjs/composite/composite-group-label.d.ts +9 -5
- package/cjs/composite/composite-group.cjs +4 -4
- package/cjs/composite/composite-group.d.cts +9 -5
- package/cjs/composite/composite-group.d.ts +9 -5
- package/cjs/composite/composite-hover.cjs +5 -5
- package/cjs/composite/composite-hover.d.cts +9 -6
- package/cjs/composite/composite-hover.d.ts +9 -6
- package/cjs/composite/composite-input.cjs +3 -3
- package/cjs/composite/composite-input.d.cts +9 -5
- package/cjs/composite/composite-input.d.ts +9 -5
- package/cjs/composite/composite-item.cjs +8 -8
- package/cjs/composite/composite-item.d.cts +9 -6
- package/cjs/composite/composite-item.d.ts +9 -6
- package/cjs/composite/composite-overflow-disclosure.cjs +25 -25
- package/cjs/composite/composite-overflow-disclosure.d.cts +9 -5
- package/cjs/composite/composite-overflow-disclosure.d.ts +9 -5
- package/cjs/composite/composite-overflow-store.cjs +4 -4
- package/cjs/composite/composite-overflow-store.d.cts +7 -5
- package/cjs/composite/composite-overflow-store.d.ts +7 -5
- package/cjs/composite/composite-overflow.cjs +58 -72
- package/cjs/composite/composite-overflow.d.cts +9 -5
- package/cjs/composite/composite-overflow.d.ts +9 -5
- package/cjs/composite/composite-provider.cjs +4 -4
- package/cjs/composite/composite-renderer.cjs +6 -6
- package/cjs/composite/composite-renderer.d.cts +9 -5
- package/cjs/composite/composite-renderer.d.ts +9 -5
- package/cjs/composite/composite-row.cjs +5 -5
- package/cjs/composite/composite-row.d.cts +9 -5
- package/cjs/composite/composite-row.d.ts +9 -5
- package/cjs/composite/composite-separator.cjs +6 -6
- package/cjs/composite/composite-separator.d.cts +9 -5
- package/cjs/composite/composite-separator.d.ts +9 -5
- package/cjs/composite/composite-typeahead.cjs +5 -5
- package/cjs/composite/composite-typeahead.d.cts +9 -5
- package/cjs/composite/composite-typeahead.d.ts +9 -5
- package/cjs/composite/composite.cjs +6 -6
- package/cjs/composite/composite.d.cts +9 -6
- package/cjs/composite/composite.d.ts +9 -6
- package/cjs/dialog/dialog-backdrop.cjs +8 -8
- package/cjs/dialog/dialog-backdrop.d.cts +2 -2
- package/cjs/dialog/dialog-backdrop.d.ts +2 -2
- package/cjs/dialog/dialog-context.cjs +4 -4
- package/cjs/dialog/dialog-description.cjs +5 -5
- package/cjs/dialog/dialog-description.d.cts +9 -5
- package/cjs/dialog/dialog-description.d.ts +9 -5
- package/cjs/dialog/dialog-disclosure.cjs +9 -9
- package/cjs/dialog/dialog-disclosure.d.cts +9 -5
- package/cjs/dialog/dialog-disclosure.d.ts +9 -5
- package/cjs/dialog/dialog-dismiss.cjs +8 -8
- package/cjs/dialog/dialog-dismiss.d.cts +9 -5
- package/cjs/dialog/dialog-dismiss.d.ts +9 -5
- package/cjs/dialog/dialog-heading.cjs +6 -6
- package/cjs/dialog/dialog-heading.d.cts +9 -5
- package/cjs/dialog/dialog-heading.d.ts +9 -5
- package/cjs/dialog/dialog-provider.cjs +7 -7
- package/cjs/dialog/dialog-store.cjs +3 -3
- package/cjs/dialog/dialog-store.d.cts +7 -5
- package/cjs/dialog/dialog-store.d.ts +7 -5
- package/cjs/dialog/dialog.cjs +16 -16
- package/cjs/dialog/dialog.d.cts +10 -15
- package/cjs/dialog/dialog.d.ts +10 -15
- package/cjs/dialog/utils/disable-tree.cjs +2 -2
- package/cjs/disclosure/disclosure-content.cjs +5 -5
- package/cjs/disclosure/disclosure-content.d.cts +9 -5
- package/cjs/disclosure/disclosure-content.d.ts +9 -5
- package/cjs/disclosure/disclosure-context.cjs +3 -3
- package/cjs/disclosure/disclosure-provider.cjs +5 -5
- package/cjs/disclosure/disclosure-store.cjs +2 -2
- package/cjs/disclosure/disclosure-store.d.cts +14 -4
- package/cjs/disclosure/disclosure-store.d.ts +14 -4
- package/cjs/disclosure/disclosure.cjs +7 -7
- package/cjs/disclosure/disclosure.d.cts +9 -6
- package/cjs/disclosure/disclosure.d.ts +9 -6
- package/cjs/focus-trap/focus-trap-region.cjs +13 -16
- package/cjs/focus-trap/focus-trap-region.d.cts +9 -5
- package/cjs/focus-trap/focus-trap-region.d.ts +9 -5
- package/cjs/focus-trap/focus-trap.cjs +4 -4
- package/cjs/focus-trap/focus-trap.d.cts +9 -5
- package/cjs/focus-trap/focus-trap.d.ts +9 -5
- package/cjs/focusable/focusable-container.cjs +3 -3
- package/cjs/focusable/focusable-container.d.cts +10 -6
- package/cjs/focusable/focusable-container.d.ts +10 -6
- package/cjs/focusable/focusable.cjs +3 -3
- package/cjs/focusable/focusable.d.cts +13 -10
- package/cjs/focusable/focusable.d.ts +13 -10
- package/cjs/form/form-checkbox.cjs +33 -22
- package/cjs/form/form-checkbox.d.cts +9 -5
- package/cjs/form/form-checkbox.d.ts +9 -5
- package/cjs/form/form-context.cjs +4 -4
- package/cjs/form/form-control.cjs +6 -6
- package/cjs/form/form-control.d.cts +9 -6
- package/cjs/form/form-control.d.ts +9 -6
- package/cjs/form/form-description.cjs +23 -16
- package/cjs/form/form-description.d.cts +9 -5
- package/cjs/form/form-description.d.ts +9 -5
- package/cjs/form/form-error.cjs +25 -16
- package/cjs/form/form-error.d.cts +9 -5
- package/cjs/form/form-error.d.ts +9 -5
- package/cjs/form/form-field.cjs +18 -15
- package/cjs/form/form-field.d.cts +9 -5
- package/cjs/form/form-field.d.ts +9 -5
- package/cjs/form/form-group-label.cjs +10 -14
- package/cjs/form/form-group-label.d.cts +9 -5
- package/cjs/form/form-group-label.d.ts +9 -5
- package/cjs/form/form-group.cjs +4 -4
- package/cjs/form/form-group.d.cts +9 -5
- package/cjs/form/form-group.d.ts +9 -5
- package/cjs/form/form-input.cjs +19 -18
- package/cjs/form/form-input.d.cts +9 -5
- package/cjs/form/form-input.d.ts +9 -5
- package/cjs/form/form-label.cjs +25 -16
- package/cjs/form/form-label.d.cts +9 -5
- package/cjs/form/form-label.d.ts +9 -5
- package/cjs/form/form-provider.cjs +4 -4
- package/cjs/form/form-push.cjs +15 -17
- package/cjs/form/form-push.d.cts +9 -5
- package/cjs/form/form-push.d.ts +9 -5
- package/cjs/form/form-radio-group.cjs +11 -15
- package/cjs/form/form-radio-group.d.cts +9 -5
- package/cjs/form/form-radio-group.d.ts +9 -5
- package/cjs/form/form-radio.cjs +24 -23
- package/cjs/form/form-radio.d.cts +9 -5
- package/cjs/form/form-radio.d.ts +9 -5
- package/cjs/form/form-remove.cjs +24 -16
- package/cjs/form/form-remove.d.cts +9 -5
- package/cjs/form/form-remove.d.ts +9 -5
- package/cjs/form/form-reset.cjs +13 -15
- package/cjs/form/form-reset.d.cts +9 -5
- package/cjs/form/form-reset.d.ts +9 -5
- package/cjs/form/form-submit.cjs +13 -15
- package/cjs/form/form-submit.d.cts +9 -5
- package/cjs/form/form-submit.d.ts +9 -5
- package/cjs/form/form.cjs +117 -121
- package/cjs/form/form.d.cts +9 -5
- package/cjs/form/form.d.ts +9 -5
- package/cjs/group/group-label.cjs +3 -3
- package/cjs/group/group-label.d.cts +10 -5
- package/cjs/group/group-label.d.ts +10 -5
- package/cjs/group/group.cjs +3 -3
- package/cjs/group/group.d.cts +9 -5
- package/cjs/group/group.d.ts +9 -5
- package/cjs/heading/heading-level.d.cts +2 -2
- package/cjs/heading/heading-level.d.ts +2 -2
- package/cjs/heading/heading.cjs +3 -3
- package/cjs/heading/heading.d.cts +9 -5
- package/cjs/heading/heading.d.ts +9 -5
- package/cjs/hovercard/hovercard-anchor.cjs +8 -8
- package/cjs/hovercard/hovercard-anchor.d.cts +9 -6
- package/cjs/hovercard/hovercard-anchor.d.ts +9 -6
- package/cjs/hovercard/hovercard-arrow.cjs +15 -19
- package/cjs/hovercard/hovercard-arrow.d.cts +9 -5
- package/cjs/hovercard/hovercard-arrow.d.ts +9 -5
- package/cjs/hovercard/hovercard-context.cjs +6 -6
- package/cjs/hovercard/hovercard-description.cjs +7 -7
- package/cjs/hovercard/hovercard-description.d.cts +9 -5
- package/cjs/hovercard/hovercard-description.d.ts +9 -5
- package/cjs/hovercard/hovercard-disclosure.cjs +103 -109
- package/cjs/hovercard/hovercard-disclosure.d.cts +9 -5
- package/cjs/hovercard/hovercard-disclosure.d.ts +9 -5
- package/cjs/hovercard/hovercard-dismiss.cjs +12 -12
- package/cjs/hovercard/hovercard-dismiss.d.cts +9 -5
- package/cjs/hovercard/hovercard-dismiss.d.ts +9 -5
- package/cjs/hovercard/hovercard-heading.cjs +8 -8
- package/cjs/hovercard/hovercard-heading.d.cts +9 -5
- package/cjs/hovercard/hovercard-heading.d.ts +9 -5
- package/cjs/hovercard/hovercard-provider.cjs +11 -11
- package/cjs/hovercard/hovercard-store.cjs +5 -5
- package/cjs/hovercard/hovercard-store.d.cts +7 -5
- package/cjs/hovercard/hovercard-store.d.ts +7 -5
- package/cjs/hovercard/hovercard.cjs +20 -20
- package/cjs/hovercard/hovercard.d.cts +9 -5
- package/cjs/hovercard/hovercard.d.ts +9 -5
- package/cjs/menu/menu-arrow.cjs +17 -19
- package/cjs/menu/menu-arrow.d.cts +9 -5
- package/cjs/menu/menu-arrow.d.ts +9 -5
- package/cjs/menu/menu-bar-provider.cjs +15 -6
- package/cjs/menu/menu-bar-store.cjs +9 -0
- package/cjs/menu/menu-bar.cjs +24 -15
- package/cjs/menu/menu-bar.d.cts +9 -5
- package/cjs/menu/menu-bar.d.ts +9 -5
- package/cjs/menu/menu-button-arrow.cjs +19 -23
- package/cjs/menu/menu-button-arrow.d.cts +9 -5
- package/cjs/menu/menu-button-arrow.d.ts +9 -5
- package/cjs/menu/menu-button.cjs +41 -33
- package/cjs/menu/menu-button.d.cts +9 -5
- package/cjs/menu/menu-button.d.ts +9 -5
- package/cjs/menu/menu-context.cjs +10 -10
- package/cjs/menu/menu-description.cjs +14 -18
- package/cjs/menu/menu-description.d.cts +9 -5
- package/cjs/menu/menu-description.d.ts +9 -5
- package/cjs/menu/menu-dismiss.cjs +24 -26
- package/cjs/menu/menu-dismiss.d.cts +9 -5
- package/cjs/menu/menu-dismiss.d.ts +9 -5
- package/cjs/menu/menu-group-label.cjs +12 -14
- package/cjs/menu/menu-group-label.d.cts +9 -5
- package/cjs/menu/menu-group-label.d.ts +9 -5
- package/cjs/menu/menu-group.cjs +12 -12
- package/cjs/menu/menu-group.d.cts +9 -5
- package/cjs/menu/menu-group.d.ts +9 -5
- package/cjs/menu/menu-heading.cjs +16 -16
- package/cjs/menu/menu-heading.d.cts +9 -5
- package/cjs/menu/menu-heading.d.ts +9 -5
- package/cjs/menu/menu-item-check.cjs +17 -19
- package/cjs/menu/menu-item-check.d.cts +9 -5
- package/cjs/menu/menu-item-check.d.ts +9 -5
- package/cjs/menu/menu-item-checkbox.cjs +28 -29
- package/cjs/menu/menu-item-checkbox.d.cts +9 -5
- package/cjs/menu/menu-item-checkbox.d.ts +9 -5
- package/cjs/menu/menu-item-radio.cjs +30 -31
- package/cjs/menu/menu-item-radio.d.cts +9 -5
- package/cjs/menu/menu-item-radio.d.ts +9 -5
- package/cjs/menu/menu-item.cjs +16 -16
- package/cjs/menu/menu-item.d.cts +9 -6
- package/cjs/menu/menu-item.d.ts +9 -6
- package/cjs/menu/menu-list.cjs +15 -15
- package/cjs/menu/menu-list.d.cts +9 -5
- package/cjs/menu/menu-list.d.ts +9 -5
- package/cjs/menu/menu-provider.cjs +17 -17
- package/cjs/menu/menu-separator.cjs +18 -20
- package/cjs/menu/menu-separator.d.cts +9 -5
- package/cjs/menu/menu-separator.d.ts +9 -5
- package/cjs/menu/menu-store.cjs +16 -16
- package/cjs/menu/menu-store.d.cts +6 -4
- package/cjs/menu/menu-store.d.ts +6 -4
- package/cjs/menu/menu.cjs +178 -181
- package/cjs/menu/menu.d.cts +9 -5
- package/cjs/menu/menu.d.ts +9 -5
- package/cjs/menubar/menubar-context.cjs +5 -5
- package/cjs/menubar/menubar-provider.cjs +6 -6
- package/cjs/menubar/menubar.cjs +8 -8
- package/cjs/menubar/menubar.d.cts +9 -5
- package/cjs/menubar/menubar.d.ts +9 -5
- package/cjs/popover/popover-anchor.cjs +6 -6
- package/cjs/popover/popover-anchor.d.cts +9 -5
- package/cjs/popover/popover-anchor.d.ts +9 -5
- package/cjs/popover/popover-arrow.cjs +6 -6
- package/cjs/popover/popover-arrow.d.cts +9 -5
- package/cjs/popover/popover-arrow.d.ts +9 -5
- package/cjs/popover/popover-context.cjs +5 -5
- package/cjs/popover/popover-description.cjs +6 -6
- package/cjs/popover/popover-description.d.cts +9 -5
- package/cjs/popover/popover-description.d.ts +9 -5
- package/cjs/popover/popover-disclosure-arrow.cjs +6 -6
- package/cjs/popover/popover-disclosure-arrow.d.cts +9 -5
- package/cjs/popover/popover-disclosure-arrow.d.ts +9 -5
- package/cjs/popover/popover-disclosure.cjs +12 -12
- package/cjs/popover/popover-disclosure.d.cts +9 -5
- package/cjs/popover/popover-disclosure.d.ts +9 -5
- package/cjs/popover/popover-dismiss.cjs +10 -10
- package/cjs/popover/popover-dismiss.d.cts +9 -5
- package/cjs/popover/popover-dismiss.d.ts +9 -5
- package/cjs/popover/popover-heading.cjs +7 -7
- package/cjs/popover/popover-heading.d.cts +9 -5
- package/cjs/popover/popover-heading.d.ts +9 -5
- package/cjs/popover/popover-provider.cjs +9 -9
- package/cjs/popover/popover-store.cjs +4 -4
- package/cjs/popover/popover-store.d.cts +7 -5
- package/cjs/popover/popover-store.d.ts +7 -5
- package/cjs/popover/popover.cjs +18 -18
- package/cjs/popover/popover.d.cts +8 -6
- package/cjs/popover/popover.d.ts +8 -6
- package/cjs/portal/portal.cjs +5 -5
- package/cjs/portal/portal.d.cts +9 -6
- package/cjs/portal/portal.d.ts +9 -6
- package/cjs/radio/radio-context.cjs +5 -5
- package/cjs/radio/radio-group.cjs +14 -16
- package/cjs/radio/radio-group.d.cts +9 -5
- package/cjs/radio/radio-group.d.ts +9 -5
- package/cjs/radio/radio-provider.cjs +5 -5
- package/cjs/radio/radio.cjs +10 -10
- package/cjs/radio/radio.d.cts +11 -7
- package/cjs/radio/radio.d.ts +11 -7
- package/cjs/role/role.cjs +3 -3
- package/cjs/role/role.d.cts +10 -6
- package/cjs/role/role.d.ts +10 -6
- package/cjs/select/select-arrow.cjs +10 -10
- package/cjs/select/select-arrow.d.cts +9 -5
- package/cjs/select/select-arrow.d.ts +9 -5
- package/cjs/select/select-context.cjs +8 -8
- package/cjs/select/select-group-label.cjs +11 -15
- package/cjs/select/select-group-label.d.cts +9 -5
- package/cjs/select/select-group-label.d.ts +9 -5
- package/cjs/select/select-group.cjs +12 -12
- package/cjs/select/select-group.d.cts +9 -5
- package/cjs/select/select-group.d.ts +9 -5
- package/cjs/select/select-item-check.cjs +17 -21
- package/cjs/select/select-item-check.d.cts +9 -5
- package/cjs/select/select-item-check.d.ts +9 -5
- package/cjs/select/select-item.cjs +27 -26
- package/cjs/select/select-item.d.cts +9 -6
- package/cjs/select/select-item.d.ts +9 -6
- package/cjs/select/select-label.cjs +19 -18
- package/cjs/select/select-label.d.cts +9 -5
- package/cjs/select/select-label.d.ts +9 -5
- package/cjs/select/select-list.cjs +13 -13
- package/cjs/select/select-list.d.cts +9 -6
- package/cjs/select/select-list.d.ts +9 -6
- package/cjs/select/select-popover.cjs +33 -35
- package/cjs/select/select-popover.d.cts +9 -5
- package/cjs/select/select-popover.d.ts +9 -5
- package/cjs/select/select-provider.cjs +14 -14
- package/cjs/select/select-renderer.cjs +15 -14
- package/cjs/select/select-renderer.d.cts +4 -2
- package/cjs/select/select-renderer.d.ts +4 -2
- package/cjs/select/select-row.cjs +15 -17
- package/cjs/select/select-row.d.cts +9 -5
- package/cjs/select/select-row.d.ts +9 -5
- package/cjs/select/select-separator.cjs +18 -22
- package/cjs/select/select-separator.d.cts +12 -5
- package/cjs/select/select-separator.d.ts +12 -5
- package/cjs/select/select-store.cjs +12 -12
- package/cjs/select/select-store.d.cts +6 -4
- package/cjs/select/select-store.d.ts +6 -4
- package/cjs/select/select.cjs +228 -234
- package/cjs/select/select.d.cts +9 -6
- package/cjs/select/select.d.ts +9 -6
- package/cjs/separator/separator.cjs +3 -3
- package/cjs/separator/separator.d.cts +9 -5
- package/cjs/separator/separator.d.ts +9 -5
- package/cjs/tab/tab-context.cjs +5 -5
- package/cjs/tab/tab-list.cjs +34 -34
- package/cjs/tab/tab-list.d.cts +9 -5
- package/cjs/tab/tab-list.d.ts +9 -5
- package/cjs/tab/tab-panel.cjs +30 -24
- package/cjs/tab/tab-panel.d.cts +9 -5
- package/cjs/tab/tab-panel.d.ts +9 -5
- package/cjs/tab/tab-provider.cjs +5 -5
- package/cjs/tab/tab.cjs +74 -75
- package/cjs/tab/tab.d.cts +9 -5
- package/cjs/tab/tab.d.ts +9 -5
- package/cjs/toolbar/toolbar-container.cjs +21 -22
- package/cjs/toolbar/toolbar-container.d.cts +9 -5
- package/cjs/toolbar/toolbar-container.d.ts +9 -5
- package/cjs/toolbar/toolbar-context.cjs +5 -5
- package/cjs/toolbar/toolbar-input.cjs +21 -22
- package/cjs/toolbar/toolbar-input.d.cts +9 -5
- package/cjs/toolbar/toolbar-input.d.ts +9 -5
- package/cjs/toolbar/toolbar-item.cjs +10 -10
- package/cjs/toolbar/toolbar-item.d.cts +9 -5
- package/cjs/toolbar/toolbar-item.d.ts +9 -5
- package/cjs/toolbar/toolbar-provider.cjs +5 -5
- package/cjs/toolbar/toolbar-separator.cjs +15 -19
- package/cjs/toolbar/toolbar-separator.d.cts +9 -5
- package/cjs/toolbar/toolbar-separator.d.ts +9 -5
- package/cjs/toolbar/toolbar.cjs +14 -16
- package/cjs/toolbar/toolbar.d.cts +9 -5
- package/cjs/toolbar/toolbar.d.ts +9 -5
- package/cjs/tooltip/tooltip-anchor.cjs +17 -20
- package/cjs/tooltip/tooltip-anchor.d.cts +14 -5
- package/cjs/tooltip/tooltip-anchor.d.ts +14 -5
- package/cjs/tooltip/tooltip-arrow.cjs +14 -16
- package/cjs/tooltip/tooltip-arrow.d.cts +9 -5
- package/cjs/tooltip/tooltip-arrow.d.ts +9 -5
- package/cjs/tooltip/tooltip-context.cjs +7 -7
- package/cjs/tooltip/tooltip-provider.cjs +13 -13
- package/cjs/tooltip/tooltip-store.cjs +6 -6
- package/cjs/tooltip/tooltip-store.d.cts +7 -5
- package/cjs/tooltip/tooltip-store.d.ts +7 -5
- package/cjs/tooltip/tooltip.cjs +31 -33
- package/cjs/tooltip/tooltip.d.cts +14 -5
- package/cjs/tooltip/tooltip.d.ts +14 -5
- package/cjs/utils/system.cjs +2 -6
- package/cjs/utils/system.d.cts +6 -65
- package/cjs/utils/system.d.ts +6 -65
- package/cjs/utils/types.d.cts +30 -53
- package/cjs/utils/types.d.ts +30 -53
- package/cjs/visually-hidden/visually-hidden.cjs +3 -3
- package/cjs/visually-hidden/visually-hidden.d.cts +10 -5
- package/cjs/visually-hidden/visually-hidden.d.ts +10 -5
- package/esm/__chunks/{BNUFNEVY.js → 2O7COXT7.js} +10 -12
- package/esm/__chunks/{SOK7T35T.js → 2OCM6QMR.js} +2 -2
- package/esm/__chunks/{4B73HROV.js → 32VQXIYR.js} +2 -2
- package/esm/__chunks/{IB7YUKH5.js → 3D6OCOHF.js} +2 -2
- package/esm/__chunks/{MNFF5YOJ.js → 3OMHZVJD.js} +2 -2
- package/esm/__chunks/{3AHQ6JCP.js → 3PDOEITM.js} +16 -15
- package/esm/__chunks/{3ORBWXWF.js → 5M6RSQEC.js} +6 -53
- package/esm/__chunks/{NUNVG4IK.js → 6PC3IJNK.js} +9 -11
- package/esm/__chunks/{7QTPYGNZ.js → 6WQW7ZIA.js} +9 -11
- package/esm/__chunks/7HFLDZTS.js +51 -0
- package/esm/__chunks/{UH3I23HL.js → 7YKLTEOQ.js} +12 -16
- package/esm/__chunks/A3BKKI3B.js +44 -0
- package/esm/__chunks/{MW2F7SEA.js → BX7FFG2R.js} +9 -10
- package/esm/__chunks/{FSFPRQFR.js → CBTO7DFZ.js} +16 -13
- package/esm/__chunks/{LWHPHW7Q.js → CJ6B7ETA.js} +10 -15
- package/esm/__chunks/CK3UW3AQ.js +276 -0
- package/esm/__chunks/{FGMA3QUS.js → CQJLVEBA.js} +11 -15
- package/esm/__chunks/CWDOOAGR.js +45 -0
- package/esm/__chunks/DMSZFK7W.js +131 -0
- package/esm/__chunks/{XHRZYRZ5.js → E47ASM2Y.js} +9 -11
- package/esm/__chunks/{ZU7LQC5V.js → E5E7G32I.js} +2 -3
- package/esm/__chunks/ED7XMMMU.js +29 -0
- package/esm/__chunks/{VPR2WHQV.js → EUN6HFWO.js} +1 -1
- package/esm/__chunks/{F6PRXTDU.js → FY6FFKYI.js} +11 -15
- package/esm/__chunks/{NKXUN25E.js → G77JJQ4O.js} +9 -11
- package/esm/__chunks/G7KEAOBE.js +25 -0
- package/esm/__chunks/{V4ZFXDFK.js → GEIG6TES.js} +2 -2
- package/esm/__chunks/{SU2GU5JB.js → GYVFAVAN.js} +11 -13
- package/esm/__chunks/HA4U57LH.js +78 -0
- package/esm/__chunks/{SFCBA2JZ.js → HZJ2XALY.js} +1 -1
- package/esm/__chunks/{ZSELSBRM.js → I62TROYO.js} +1 -1
- package/esm/__chunks/IBZ5GRML.js +27 -0
- package/esm/__chunks/ID4VKXL5.js +52 -0
- package/esm/__chunks/IFT5JEUU.js +40 -0
- package/esm/__chunks/{YGMEBI3A.js → IG6NVGLB.js} +4 -4
- package/esm/__chunks/IKU53XMZ.js +44 -0
- package/esm/__chunks/{Y6467XPW.js → IU2VX2AY.js} +19 -15
- package/esm/__chunks/{OAYFXAQ2.js → J55AVALY.js} +1 -1
- package/esm/__chunks/{P5SOPKIM.js → K3QOUHVI.js} +8 -10
- package/esm/__chunks/{IRX7SFUJ.js → KMWSQ7OZ.js} +11 -15
- package/esm/__chunks/{7NHUGSTF.js → KTPXKSJN.js} +13 -12
- package/esm/__chunks/KTZEHGAP.js +186 -0
- package/esm/__chunks/{4UUKJZ4V.js → MADQZZRL.js} +1 -1
- package/esm/__chunks/{XJXP7ZSQ.js → MAMNGFY7.js} +16 -11
- package/esm/__chunks/{7X4DYKYU.js → NIWODFOI.js} +43 -49
- package/esm/__chunks/{JCH6MLL2.js → NLT7LY5Y.js} +8 -10
- package/esm/__chunks/{H3TG2CZP.js → NNMCIH2I.js} +11 -15
- package/esm/__chunks/{TQYOGOE2.js → NOYDL3YS.js} +16 -5
- package/esm/__chunks/P3YRKQQJ.js +25 -0
- package/esm/__chunks/{I4Q3C2VT.js → PW2PHOSG.js} +28 -30
- package/esm/__chunks/RZWNNUWF.js +64 -0
- package/esm/__chunks/{UK7JL7PY.js → S7DYINJG.js} +9 -11
- package/esm/__chunks/{YZEJGRDQ.js → SDQLXKEV.js} +7 -9
- package/esm/__chunks/SOGTNTQC.js +193 -0
- package/esm/__chunks/{4GO43MST.js → SP3GKE3F.js} +13 -12
- package/esm/__chunks/SSK5L4K7.js +527 -0
- package/esm/__chunks/{FMVHAVXA.js → SVBVYDIK.js} +10 -5
- package/esm/__chunks/{7H5KSHHF.js → TE637IA7.js} +2 -2
- package/esm/__chunks/TH2YTBRW.js +45 -0
- package/esm/__chunks/{5HVNGX6D.js → TKSBJDO3.js} +3 -3
- package/esm/__chunks/{BHEJ6NUH.js → TNUQLYBS.js} +9 -11
- package/esm/__chunks/{ZEXNX5JH.js → TTFA75QD.js} +13 -54
- package/esm/__chunks/{TI7CMBHW.js → TWDHCE7Y.js} +2 -2
- package/esm/__chunks/{HHNFDKU2.js → TZP63GN5.js} +11 -13
- package/esm/__chunks/{ULAW5PPH.js → UFM3D5TN.js} +10 -12
- package/esm/__chunks/{W76OTZCC.js → UNDSQXBK.js} +3 -3
- package/esm/__chunks/{KSKI4NLV.js → UPJMZO6L.js} +5 -4
- package/esm/__chunks/{ZKJ2WLF7.js → URCSOWGR.js} +6 -4
- package/esm/__chunks/{4HD64GHO.js → UZMGSJE4.js} +4 -3
- package/esm/__chunks/{KK7H3W2B.js → VA234QKF.js} +43 -39
- package/esm/__chunks/{KA4GX64Z.js → VBF5EZBB.js} +2 -2
- package/esm/__chunks/{QZLXIDNP.js → VVLSOSIG.js} +19 -17
- package/esm/__chunks/WCIYB4YS.js +37 -0
- package/esm/__chunks/WKBVQ2CE.js +170 -0
- package/esm/__chunks/{2QMN5E6B.js → WKII7I2E.js} +2 -3
- package/esm/__chunks/WKWX2XLD.js +43 -0
- package/esm/__chunks/{G6ONQ5EH.js → WL6TTPTB.js} +16 -13
- package/esm/__chunks/{QWSZGSIG.js → WWVP4SPG.js} +10 -12
- package/esm/__chunks/{MG4P3223.js → XWCFCD3Q.js} +2 -3
- package/esm/__chunks/{G6BJYYBK.js → XXVAHUAO.js} +2 -2
- package/esm/__chunks/{RIL2SEAH.js → Y44K72CZ.js} +1 -1
- package/esm/__chunks/{NWCBQ4CV.js → ZF6ZK5BT.js} +11 -13
- package/esm/__chunks/{636A7WVS.js → ZO6PSJHJ.js} +10 -14
- package/esm/__chunks/{XEV62JUQ.js → ZVFJIYOE.js} +2 -2
- package/esm/__chunks/ZXBIDNZ3.js +27 -0
- package/esm/button/button.d.ts +10 -5
- package/esm/button/button.js +4 -4
- package/esm/checkbox/checkbox-check.d.ts +9 -5
- package/esm/checkbox/checkbox-check.js +2 -2
- package/esm/checkbox/checkbox-context.js +2 -2
- package/esm/checkbox/checkbox-provider.js +2 -2
- package/esm/checkbox/checkbox.d.ts +11 -8
- package/esm/checkbox/checkbox.js +5 -5
- package/esm/collection/collection-context.js +2 -2
- package/esm/collection/collection-item.d.ts +9 -5
- package/esm/collection/collection-item.js +3 -3
- package/esm/collection/collection-provider.js +2 -2
- package/esm/collection/collection-renderer.d.ts +11 -9
- package/esm/collection/collection-renderer.js +3 -3
- package/esm/collection/collection.d.ts +9 -5
- package/esm/collection/collection.js +10 -11
- package/esm/combobox/combobox-cancel.d.ts +9 -5
- package/esm/combobox/combobox-cancel.js +18 -22
- package/esm/combobox/combobox-context.js +7 -7
- package/esm/combobox/combobox-disclosure.d.ts +9 -5
- package/esm/combobox/combobox-disclosure.js +56 -62
- package/esm/combobox/combobox-group-label.d.ts +9 -5
- package/esm/combobox/combobox-group-label.js +14 -20
- package/esm/combobox/combobox-group.d.ts +9 -5
- package/esm/combobox/combobox-group.js +15 -17
- package/esm/combobox/combobox-item-check.d.ts +9 -5
- package/esm/combobox/combobox-item-check.js +22 -28
- package/esm/combobox/combobox-item-value.d.ts +9 -5
- package/esm/combobox/combobox-item-value.js +41 -43
- package/esm/combobox/combobox-item.d.ts +9 -6
- package/esm/combobox/combobox-item.js +20 -21
- package/esm/combobox/combobox-label.d.ts +9 -5
- package/esm/combobox/combobox-label.js +17 -18
- package/esm/combobox/combobox-list.d.ts +9 -6
- package/esm/combobox/combobox-list.js +9 -11
- package/esm/combobox/combobox-popover.d.ts +9 -5
- package/esm/combobox/combobox-popover.js +27 -29
- package/esm/combobox/combobox-provider.js +11 -11
- package/esm/combobox/combobox-row.d.ts +9 -5
- package/esm/combobox/combobox-row.js +14 -16
- package/esm/combobox/combobox-separator.d.ts +13 -5
- package/esm/combobox/combobox-separator.js +27 -33
- package/esm/combobox/combobox-store.d.ts +7 -5
- package/esm/combobox/combobox-store.js +4 -4
- package/esm/combobox/combobox.d.ts +9 -6
- package/esm/combobox/combobox.js +53 -59
- package/esm/command/command.d.ts +9 -5
- package/esm/command/command.js +3 -3
- package/esm/composite/composite-container.d.ts +9 -5
- package/esm/composite/composite-container.js +4 -4
- package/esm/composite/composite-context.js +3 -3
- package/esm/composite/composite-group-label.d.ts +9 -5
- package/esm/composite/composite-group-label.js +3 -3
- package/esm/composite/composite-group.d.ts +9 -5
- package/esm/composite/composite-group.js +3 -3
- package/esm/composite/composite-hover.d.ts +9 -6
- package/esm/composite/composite-hover.js +4 -4
- package/esm/composite/composite-input.d.ts +9 -5
- package/esm/composite/composite-input.js +2 -2
- package/esm/composite/composite-item.d.ts +9 -6
- package/esm/composite/composite-item.js +7 -7
- package/esm/composite/composite-overflow-disclosure.d.ts +9 -5
- package/esm/composite/composite-overflow-disclosure.js +25 -25
- package/esm/composite/composite-overflow-store.d.ts +7 -5
- package/esm/composite/composite-overflow-store.js +3 -3
- package/esm/composite/composite-overflow.d.ts +9 -5
- package/esm/composite/composite-overflow.js +60 -74
- package/esm/composite/composite-provider.js +3 -3
- package/esm/composite/composite-renderer.d.ts +9 -5
- package/esm/composite/composite-renderer.js +5 -5
- package/esm/composite/composite-row.d.ts +9 -5
- package/esm/composite/composite-row.js +4 -4
- package/esm/composite/composite-separator.d.ts +9 -5
- package/esm/composite/composite-separator.js +5 -5
- package/esm/composite/composite-typeahead.d.ts +9 -5
- package/esm/composite/composite-typeahead.js +4 -4
- package/esm/composite/composite.d.ts +9 -6
- package/esm/composite/composite.js +5 -5
- package/esm/dialog/dialog-backdrop.d.ts +2 -2
- package/esm/dialog/dialog-backdrop.js +7 -7
- package/esm/dialog/dialog-context.js +3 -3
- package/esm/dialog/dialog-description.d.ts +9 -5
- package/esm/dialog/dialog-description.js +4 -4
- package/esm/dialog/dialog-disclosure.d.ts +9 -5
- package/esm/dialog/dialog-disclosure.js +8 -8
- package/esm/dialog/dialog-dismiss.d.ts +9 -5
- package/esm/dialog/dialog-dismiss.js +7 -7
- package/esm/dialog/dialog-heading.d.ts +9 -5
- package/esm/dialog/dialog-heading.js +5 -5
- package/esm/dialog/dialog-provider.js +5 -5
- package/esm/dialog/dialog-store.d.ts +7 -5
- package/esm/dialog/dialog-store.js +2 -2
- package/esm/dialog/dialog.d.ts +10 -15
- package/esm/dialog/dialog.js +15 -15
- package/esm/dialog/utils/disable-tree.js +1 -1
- package/esm/disclosure/disclosure-content.d.ts +9 -5
- package/esm/disclosure/disclosure-content.js +4 -4
- package/esm/disclosure/disclosure-context.js +2 -2
- package/esm/disclosure/disclosure-provider.js +3 -3
- package/esm/disclosure/disclosure-store.d.ts +14 -4
- package/esm/disclosure/disclosure-store.js +1 -1
- package/esm/disclosure/disclosure.d.ts +9 -6
- package/esm/disclosure/disclosure.js +6 -6
- package/esm/focus-trap/focus-trap-region.d.ts +9 -5
- package/esm/focus-trap/focus-trap-region.js +13 -16
- package/esm/focus-trap/focus-trap.d.ts +9 -5
- package/esm/focus-trap/focus-trap.js +3 -3
- package/esm/focusable/focusable-container.d.ts +10 -6
- package/esm/focusable/focusable-container.js +2 -2
- package/esm/focusable/focusable.d.ts +13 -10
- package/esm/focusable/focusable.js +2 -2
- package/esm/form/form-checkbox.d.ts +9 -5
- package/esm/form/form-checkbox.js +30 -19
- package/esm/form/form-context.js +3 -3
- package/esm/form/form-control.d.ts +9 -6
- package/esm/form/form-control.js +5 -5
- package/esm/form/form-description.d.ts +9 -5
- package/esm/form/form-description.js +21 -14
- package/esm/form/form-error.d.ts +9 -5
- package/esm/form/form-error.js +23 -14
- package/esm/form/form-field.d.ts +9 -5
- package/esm/form/form-field.js +19 -16
- package/esm/form/form-group-label.d.ts +9 -5
- package/esm/form/form-group-label.js +10 -14
- package/esm/form/form-group.d.ts +9 -5
- package/esm/form/form-group.js +3 -3
- package/esm/form/form-input.d.ts +9 -5
- package/esm/form/form-input.js +16 -15
- package/esm/form/form-label.d.ts +9 -5
- package/esm/form/form-label.js +23 -14
- package/esm/form/form-provider.js +3 -3
- package/esm/form/form-push.d.ts +9 -5
- package/esm/form/form-push.js +13 -15
- package/esm/form/form-radio-group.d.ts +9 -5
- package/esm/form/form-radio-group.js +11 -15
- package/esm/form/form-radio.d.ts +9 -5
- package/esm/form/form-radio.js +21 -20
- package/esm/form/form-remove.d.ts +9 -5
- package/esm/form/form-remove.js +23 -15
- package/esm/form/form-reset.d.ts +9 -5
- package/esm/form/form-reset.js +12 -14
- package/esm/form/form-submit.d.ts +9 -5
- package/esm/form/form-submit.js +12 -14
- package/esm/form/form.d.ts +9 -5
- package/esm/form/form.js +119 -123
- package/esm/group/group-label.d.ts +10 -5
- package/esm/group/group-label.js +2 -2
- package/esm/group/group.d.ts +9 -5
- package/esm/group/group.js +2 -2
- package/esm/heading/heading-level.d.ts +2 -2
- package/esm/heading/heading.d.ts +9 -5
- package/esm/heading/heading.js +2 -2
- package/esm/hovercard/hovercard-anchor.d.ts +9 -6
- package/esm/hovercard/hovercard-anchor.js +7 -7
- package/esm/hovercard/hovercard-arrow.d.ts +9 -5
- package/esm/hovercard/hovercard-arrow.js +14 -18
- package/esm/hovercard/hovercard-context.js +5 -5
- package/esm/hovercard/hovercard-description.d.ts +9 -5
- package/esm/hovercard/hovercard-description.js +6 -6
- package/esm/hovercard/hovercard-disclosure.d.ts +9 -5
- package/esm/hovercard/hovercard-disclosure.js +105 -111
- package/esm/hovercard/hovercard-dismiss.d.ts +9 -5
- package/esm/hovercard/hovercard-dismiss.js +11 -11
- package/esm/hovercard/hovercard-heading.d.ts +9 -5
- package/esm/hovercard/hovercard-heading.js +7 -7
- package/esm/hovercard/hovercard-provider.js +9 -9
- package/esm/hovercard/hovercard-store.d.ts +7 -5
- package/esm/hovercard/hovercard-store.js +4 -4
- package/esm/hovercard/hovercard.d.ts +9 -5
- package/esm/hovercard/hovercard.js +19 -19
- package/esm/menu/menu-arrow.d.ts +9 -5
- package/esm/menu/menu-arrow.js +16 -18
- package/esm/menu/menu-bar-provider.js +14 -5
- package/esm/menu/menu-bar-store.js +9 -0
- package/esm/menu/menu-bar.d.ts +9 -5
- package/esm/menu/menu-bar.js +26 -17
- package/esm/menu/menu-button-arrow.d.ts +9 -5
- package/esm/menu/menu-button-arrow.js +18 -22
- package/esm/menu/menu-button.d.ts +9 -5
- package/esm/menu/menu-button.js +36 -28
- package/esm/menu/menu-context.js +9 -9
- package/esm/menu/menu-description.d.ts +9 -5
- package/esm/menu/menu-description.js +14 -18
- package/esm/menu/menu-dismiss.d.ts +9 -5
- package/esm/menu/menu-dismiss.js +21 -23
- package/esm/menu/menu-group-label.d.ts +9 -5
- package/esm/menu/menu-group-label.js +14 -16
- package/esm/menu/menu-group.d.ts +9 -5
- package/esm/menu/menu-group.js +14 -14
- package/esm/menu/menu-heading.d.ts +9 -5
- package/esm/menu/menu-heading.js +18 -18
- package/esm/menu/menu-item-check.d.ts +9 -5
- package/esm/menu/menu-item-check.js +16 -18
- package/esm/menu/menu-item-checkbox.d.ts +9 -5
- package/esm/menu/menu-item-checkbox.js +25 -26
- package/esm/menu/menu-item-radio.d.ts +9 -5
- package/esm/menu/menu-item-radio.js +26 -27
- package/esm/menu/menu-item.d.ts +9 -6
- package/esm/menu/menu-item.js +15 -15
- package/esm/menu/menu-list.d.ts +9 -5
- package/esm/menu/menu-list.js +14 -14
- package/esm/menu/menu-provider.js +15 -15
- package/esm/menu/menu-separator.d.ts +9 -5
- package/esm/menu/menu-separator.js +17 -19
- package/esm/menu/menu-store.d.ts +6 -4
- package/esm/menu/menu-store.js +15 -15
- package/esm/menu/menu.d.ts +9 -5
- package/esm/menu/menu.js +178 -181
- package/esm/menubar/menubar-context.js +4 -4
- package/esm/menubar/menubar-provider.js +5 -5
- package/esm/menubar/menubar.d.ts +9 -5
- package/esm/menubar/menubar.js +7 -7
- package/esm/popover/popover-anchor.d.ts +9 -5
- package/esm/popover/popover-anchor.js +5 -5
- package/esm/popover/popover-arrow.d.ts +9 -5
- package/esm/popover/popover-arrow.js +5 -5
- package/esm/popover/popover-context.js +4 -4
- package/esm/popover/popover-description.d.ts +9 -5
- package/esm/popover/popover-description.js +5 -5
- package/esm/popover/popover-disclosure-arrow.d.ts +9 -5
- package/esm/popover/popover-disclosure-arrow.js +5 -5
- package/esm/popover/popover-disclosure.d.ts +9 -5
- package/esm/popover/popover-disclosure.js +11 -11
- package/esm/popover/popover-dismiss.d.ts +9 -5
- package/esm/popover/popover-dismiss.js +9 -9
- package/esm/popover/popover-heading.d.ts +9 -5
- package/esm/popover/popover-heading.js +6 -6
- package/esm/popover/popover-provider.js +7 -7
- package/esm/popover/popover-store.d.ts +7 -5
- package/esm/popover/popover-store.js +3 -3
- package/esm/popover/popover.d.ts +8 -6
- package/esm/popover/popover.js +17 -17
- package/esm/portal/portal.d.ts +9 -6
- package/esm/portal/portal.js +4 -4
- package/esm/radio/radio-context.js +4 -4
- package/esm/radio/radio-group.d.ts +9 -5
- package/esm/radio/radio-group.js +12 -14
- package/esm/radio/radio-provider.js +4 -4
- package/esm/radio/radio.d.ts +11 -7
- package/esm/radio/radio.js +9 -9
- package/esm/role/role.d.ts +10 -6
- package/esm/role/role.js +2 -2
- package/esm/select/select-arrow.d.ts +9 -5
- package/esm/select/select-arrow.js +9 -9
- package/esm/select/select-context.js +7 -7
- package/esm/select/select-group-label.d.ts +9 -5
- package/esm/select/select-group-label.js +11 -15
- package/esm/select/select-group.d.ts +9 -5
- package/esm/select/select-group.js +14 -14
- package/esm/select/select-item-check.d.ts +9 -5
- package/esm/select/select-item-check.js +16 -20
- package/esm/select/select-item.d.ts +9 -6
- package/esm/select/select-item.js +23 -22
- package/esm/select/select-label.d.ts +9 -5
- package/esm/select/select-label.js +19 -18
- package/esm/select/select-list.d.ts +9 -6
- package/esm/select/select-list.js +12 -12
- package/esm/select/select-popover.d.ts +9 -5
- package/esm/select/select-popover.js +29 -31
- package/esm/select/select-provider.js +12 -12
- package/esm/select/select-renderer.d.ts +4 -2
- package/esm/select/select-renderer.js +11 -10
- package/esm/select/select-row.d.ts +9 -5
- package/esm/select/select-row.js +14 -16
- package/esm/select/select-separator.d.ts +12 -5
- package/esm/select/select-separator.js +17 -21
- package/esm/select/select-store.d.ts +6 -4
- package/esm/select/select-store.js +11 -11
- package/esm/select/select.d.ts +9 -6
- package/esm/select/select.js +230 -236
- package/esm/separator/separator.d.ts +9 -5
- package/esm/separator/separator.js +2 -2
- package/esm/tab/tab-context.js +4 -4
- package/esm/tab/tab-list.d.ts +9 -5
- package/esm/tab/tab-list.js +36 -36
- package/esm/tab/tab-panel.d.ts +9 -5
- package/esm/tab/tab-panel.js +25 -19
- package/esm/tab/tab-provider.js +4 -4
- package/esm/tab/tab.d.ts +9 -5
- package/esm/tab/tab.js +75 -76
- package/esm/toolbar/toolbar-container.d.ts +9 -5
- package/esm/toolbar/toolbar-container.js +18 -19
- package/esm/toolbar/toolbar-context.js +4 -4
- package/esm/toolbar/toolbar-input.d.ts +9 -5
- package/esm/toolbar/toolbar-input.js +18 -19
- package/esm/toolbar/toolbar-item.d.ts +9 -5
- package/esm/toolbar/toolbar-item.js +9 -9
- package/esm/toolbar/toolbar-provider.js +4 -4
- package/esm/toolbar/toolbar-separator.d.ts +9 -5
- package/esm/toolbar/toolbar-separator.js +14 -18
- package/esm/toolbar/toolbar.d.ts +9 -5
- package/esm/toolbar/toolbar.js +12 -14
- package/esm/tooltip/tooltip-anchor.d.ts +14 -5
- package/esm/tooltip/tooltip-anchor.js +16 -19
- package/esm/tooltip/tooltip-arrow.d.ts +9 -5
- package/esm/tooltip/tooltip-arrow.js +13 -15
- package/esm/tooltip/tooltip-context.js +6 -6
- package/esm/tooltip/tooltip-provider.js +11 -11
- package/esm/tooltip/tooltip-store.d.ts +7 -5
- package/esm/tooltip/tooltip-store.js +5 -5
- package/esm/tooltip/tooltip.d.ts +14 -5
- package/esm/tooltip/tooltip.js +27 -29
- package/esm/utils/system.d.ts +6 -65
- package/esm/utils/system.js +1 -5
- package/esm/utils/types.d.ts +30 -53
- package/esm/visually-hidden/visually-hidden.d.ts +10 -5
- package/esm/visually-hidden/visually-hidden.js +2 -2
- package/package.json +2 -2
- package/cjs/__chunks/23HLSVKM.cjs +0 -39
- package/cjs/__chunks/2KDFQUU7.cjs +0 -35
- package/cjs/__chunks/5UTRYT6E.cjs +0 -52
- package/cjs/__chunks/62JWM3VQ.cjs +0 -49
- package/cjs/__chunks/65LGW5LY.cjs +0 -285
- package/cjs/__chunks/6PUZ4NWR.cjs +0 -137
- package/cjs/__chunks/7566TIRW.cjs +0 -43
- package/cjs/__chunks/ACTXAOA6.cjs +0 -29
- package/cjs/__chunks/D4TG5DM4.cjs +0 -128
- package/cjs/__chunks/F34KLJKG.cjs +0 -50
- package/cjs/__chunks/G2ZXRZ2R.cjs +0 -155
- package/cjs/__chunks/JQS6X2I5.cjs +0 -189
- package/cjs/__chunks/KQN7YDDZ.cjs +0 -39
- package/cjs/__chunks/KRB7URW5.cjs +0 -31
- package/cjs/__chunks/KSAZE5E2.cjs +0 -44
- package/cjs/__chunks/LICANQTI.cjs +0 -70
- package/cjs/__chunks/NY3D6JQT.cjs +0 -41
- package/cjs/__chunks/QQCFY3MB.cjs +0 -44
- package/cjs/__chunks/R66IWXK6.cjs +0 -42
- package/cjs/__chunks/TK6GOI2V.cjs +0 -51
- package/cjs/__chunks/TUDQDX77.cjs +0 -35
- package/cjs/__chunks/UKXZY6PK.cjs +0 -33
- package/cjs/__chunks/UXFBTIBY.cjs +0 -41
- package/cjs/__chunks/VIUIA2WF.cjs +0 -29
- package/cjs/__chunks/VJES6KQ3.cjs +0 -31
- package/cjs/__chunks/XB3G2EO2.cjs +0 -43
- package/cjs/__chunks/YPVQYY4J.cjs +0 -156
- package/cjs/__chunks/YU7XEYUJ.cjs +0 -80
- package/cjs/__chunks/ZL5DC555.cjs +0 -539
- package/esm/__chunks/346FK57L.js +0 -137
- package/esm/__chunks/4CK3XZ4H.js +0 -31
- package/esm/__chunks/4ZEZYKUR.js +0 -70
- package/esm/__chunks/5LK2LG7Q.js +0 -35
- package/esm/__chunks/6N2ESJUH.js +0 -31
- package/esm/__chunks/ANIYCUCU.js +0 -29
- package/esm/__chunks/BG6HZDS7.js +0 -42
- package/esm/__chunks/CHKJ74UC.js +0 -43
- package/esm/__chunks/CLE7NTOY.js +0 -156
- package/esm/__chunks/DIP7XAI7.js +0 -49
- package/esm/__chunks/ENRQQ6LK.js +0 -50
- package/esm/__chunks/HPP6CWMY.js +0 -43
- package/esm/__chunks/IMEG7JN4.js +0 -189
- package/esm/__chunks/JHO32H4J.js +0 -80
- package/esm/__chunks/JL6IRDFK.js +0 -155
- package/esm/__chunks/JPXNJYSO.js +0 -285
- package/esm/__chunks/NERBASET.js +0 -539
- package/esm/__chunks/NT7GEZQU.js +0 -44
- package/esm/__chunks/P4FX6ZFL.js +0 -51
- package/esm/__chunks/R2QZ3KXH.js +0 -44
- package/esm/__chunks/RJDEYIKS.js +0 -29
- package/esm/__chunks/VDNZBO4W.js +0 -52
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import type { MouseEvent } from "react";
|
|
1
|
+
import type { ElementType, MouseEvent } from "react";
|
|
2
2
|
import type { BooleanOrCallback } from "@ariakit/core/utils/types";
|
|
3
3
|
import type { ButtonOptions } from "../button/button.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { Props } from "../utils/types.js";
|
|
5
5
|
import type { DisclosureStore } from "./disclosure-store.js";
|
|
6
|
+
declare const TagName = "button";
|
|
7
|
+
type TagName = typeof TagName;
|
|
6
8
|
/**
|
|
7
9
|
* Returns props to create a `Disclosure` component.
|
|
8
10
|
* @see https://ariakit.org/components/disclosure
|
|
@@ -14,7 +16,7 @@ import type { DisclosureStore } from "./disclosure-store.js";
|
|
|
14
16
|
* <DisclosureContent store={store}>Content</DisclosureContent>
|
|
15
17
|
* ```
|
|
16
18
|
*/
|
|
17
|
-
export declare const useDisclosure: import("../utils/types.js").Hook<DisclosureOptions<"button">>;
|
|
19
|
+
export declare const useDisclosure: import("../utils/types.js").Hook<"button", DisclosureOptions<"button">>;
|
|
18
20
|
/**
|
|
19
21
|
* Renders an element that controls the visibility of a
|
|
20
22
|
* [`DisclosureContent`](https://ariakit.org/reference/disclosure-content)
|
|
@@ -28,8 +30,8 @@ export declare const useDisclosure: import("../utils/types.js").Hook<DisclosureO
|
|
|
28
30
|
* </DisclosureProvider>
|
|
29
31
|
* ```
|
|
30
32
|
*/
|
|
31
|
-
export declare const Disclosure: import("
|
|
32
|
-
export interface DisclosureOptions<T extends
|
|
33
|
+
export declare const Disclosure: (props: DisclosureProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
34
|
+
export interface DisclosureOptions<T extends ElementType = TagName> extends ButtonOptions<T> {
|
|
33
35
|
/**
|
|
34
36
|
* Object returned by the
|
|
35
37
|
* [`useDisclosureStore`](https://ariakit.org/reference/use-disclosure-store)
|
|
@@ -50,4 +52,5 @@ export interface DisclosureOptions<T extends As = "button"> extends ButtonOption
|
|
|
50
52
|
*/
|
|
51
53
|
toggleOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
52
54
|
}
|
|
53
|
-
export type DisclosureProps<T extends
|
|
55
|
+
export type DisclosureProps<T extends ElementType = TagName> = Props<T, DisclosureOptions<T>>;
|
|
56
|
+
export {};
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Disclosure,
|
|
4
4
|
useDisclosure
|
|
5
|
-
} from "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
9
|
-
import "../__chunks/
|
|
5
|
+
} from "../__chunks/TNUQLYBS.js";
|
|
6
|
+
import "../__chunks/ID4VKXL5.js";
|
|
7
|
+
import "../__chunks/ZF6ZK5BT.js";
|
|
8
|
+
import "../__chunks/J55AVALY.js";
|
|
9
|
+
import "../__chunks/VA234QKF.js";
|
|
10
10
|
import "../__chunks/SHA3WOPI.js";
|
|
11
|
-
import "../__chunks/
|
|
11
|
+
import "../__chunks/5M6RSQEC.js";
|
|
12
12
|
import "../__chunks/6O5OEQGF.js";
|
|
13
13
|
import "../__chunks/XM66DUTO.js";
|
|
14
14
|
import "../__chunks/4R3V3JGP.js";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
import type { Options, Props } from "../utils/types.js";
|
|
3
|
+
declare const TagName = "div";
|
|
4
|
+
type TagName = typeof TagName;
|
|
2
5
|
/**
|
|
3
6
|
* Returns props to create a `FocusTrapRegion` component.
|
|
4
7
|
* @see https://ariakit.org/components/focus-trap-region
|
|
@@ -8,7 +11,7 @@ import type { As, Options, Props } from "../utils/types.js";
|
|
|
8
11
|
* <Role {...props} />
|
|
9
12
|
* ```
|
|
10
13
|
*/
|
|
11
|
-
export declare const useFocusTrapRegion: import("../utils/types.js").Hook<FocusTrapRegionOptions<"div">>;
|
|
14
|
+
export declare const useFocusTrapRegion: import("../utils/types.js").Hook<"div", FocusTrapRegionOptions<"div">>;
|
|
12
15
|
/**
|
|
13
16
|
* Renders a wrapper element that traps the focus inside it when the
|
|
14
17
|
* [`enabled`](https://ariakit.org/reference/focus-trap-region#enabled) prop is
|
|
@@ -23,12 +26,13 @@ export declare const useFocusTrapRegion: import("../utils/types.js").Hook<FocusT
|
|
|
23
26
|
* </FocusTrapRegion>
|
|
24
27
|
* ```
|
|
25
28
|
*/
|
|
26
|
-
export declare const FocusTrapRegion: import("
|
|
27
|
-
export interface FocusTrapRegionOptions<
|
|
29
|
+
export declare const FocusTrapRegion: (props: FocusTrapRegionProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
30
|
+
export interface FocusTrapRegionOptions<_T extends ElementType = TagName> extends Options {
|
|
28
31
|
/**
|
|
29
32
|
* If true, it will trap the focus in the region.
|
|
30
33
|
* @default false
|
|
31
34
|
*/
|
|
32
35
|
enabled?: boolean;
|
|
33
36
|
}
|
|
34
|
-
export type FocusTrapRegionProps<T extends
|
|
37
|
+
export type FocusTrapRegionProps<T extends ElementType = TagName> = Props<T, FocusTrapRegionOptions<T>>;
|
|
38
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
FocusTrap
|
|
4
|
-
} from "../__chunks/
|
|
5
|
-
import "../__chunks/
|
|
4
|
+
} from "../__chunks/WKWX2XLD.js";
|
|
5
|
+
import "../__chunks/IFT5JEUU.js";
|
|
6
6
|
import {
|
|
7
|
-
createComponent,
|
|
8
7
|
createElement,
|
|
9
|
-
createHook
|
|
10
|
-
|
|
8
|
+
createHook,
|
|
9
|
+
forwardRef
|
|
10
|
+
} from "../__chunks/5M6RSQEC.js";
|
|
11
11
|
import {
|
|
12
12
|
useMergeRefs,
|
|
13
13
|
useWrapElement
|
|
@@ -22,9 +22,11 @@ import {
|
|
|
22
22
|
// src/focus-trap/focus-trap-region.tsx
|
|
23
23
|
import { useRef } from "react";
|
|
24
24
|
import { getAllTabbableIn } from "@ariakit/core/utils/focus";
|
|
25
|
+
import { removeUndefinedValues } from "@ariakit/core/utils/misc";
|
|
25
26
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
27
|
+
var TagName = "div";
|
|
26
28
|
var useFocusTrapRegion = createHook(
|
|
27
|
-
(_a)
|
|
29
|
+
function useFocusTrapRegion2(_a) {
|
|
28
30
|
var _b = _a, { enabled = false } = _b, props = __objRest(_b, ["enabled"]);
|
|
29
31
|
const ref = useRef(null);
|
|
30
32
|
props = useWrapElement(
|
|
@@ -67,18 +69,13 @@ var useFocusTrapRegion = createHook(
|
|
|
67
69
|
props = __spreadProps(__spreadValues({}, props), {
|
|
68
70
|
ref: useMergeRefs(ref, props.ref)
|
|
69
71
|
});
|
|
70
|
-
return props;
|
|
72
|
+
return removeUndefinedValues(props);
|
|
71
73
|
}
|
|
72
74
|
);
|
|
73
|
-
var FocusTrapRegion =
|
|
74
|
-
(props)
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
if (process.env.NODE_ENV !== "production") {
|
|
80
|
-
FocusTrapRegion.displayName = "FocusTrapRegion";
|
|
81
|
-
}
|
|
75
|
+
var FocusTrapRegion = forwardRef(function FocusTrapRegion2(props) {
|
|
76
|
+
const htmlProps = useFocusTrapRegion(props);
|
|
77
|
+
return createElement(TagName, htmlProps);
|
|
78
|
+
});
|
|
82
79
|
export {
|
|
83
80
|
FocusTrapRegion,
|
|
84
81
|
useFocusTrapRegion
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
import type { Props } from "../utils/types.js";
|
|
2
3
|
import type { VisuallyHiddenOptions } from "../visually-hidden/visually-hidden.js";
|
|
4
|
+
declare const TagName = "span";
|
|
5
|
+
type TagName = typeof TagName;
|
|
3
6
|
/**
|
|
4
7
|
* Returns props to create a `FocusTrap` component.
|
|
5
8
|
* @see https://ariakit.org/components/focus-trap
|
|
@@ -9,7 +12,7 @@ import type { VisuallyHiddenOptions } from "../visually-hidden/visually-hidden.j
|
|
|
9
12
|
* <Role {...props} />
|
|
10
13
|
* ```
|
|
11
14
|
*/
|
|
12
|
-
export declare const useFocusTrap: import("../utils/types.js").Hook<FocusTrapOptions<"span">>;
|
|
15
|
+
export declare const useFocusTrap: import("../utils/types.js").Hook<"span", FocusTrapOptions<"span">>;
|
|
13
16
|
/**
|
|
14
17
|
* Renders a focus trap element.
|
|
15
18
|
* @see https://ariakit.org/components/focus-trap
|
|
@@ -18,6 +21,7 @@ export declare const useFocusTrap: import("../utils/types.js").Hook<FocusTrapOpt
|
|
|
18
21
|
* <FocusTrap onFocus={focusSomethingElse} />
|
|
19
22
|
* ```
|
|
20
23
|
*/
|
|
21
|
-
export declare const FocusTrap: import("
|
|
22
|
-
export type FocusTrapOptions<T extends
|
|
23
|
-
export type FocusTrapProps<T extends
|
|
24
|
+
export declare const FocusTrap: (props: FocusTrapProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
25
|
+
export type FocusTrapOptions<T extends ElementType = TagName> = VisuallyHiddenOptions<T>;
|
|
26
|
+
export type FocusTrapProps<T extends ElementType = TagName> = Props<T, FocusTrapOptions<T>>;
|
|
27
|
+
export {};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FocusTrap,
|
|
4
4
|
useFocusTrap
|
|
5
|
-
} from "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
5
|
+
} from "../__chunks/WKWX2XLD.js";
|
|
6
|
+
import "../__chunks/IFT5JEUU.js";
|
|
7
|
+
import "../__chunks/5M6RSQEC.js";
|
|
8
8
|
import "../__chunks/6O5OEQGF.js";
|
|
9
9
|
import "../__chunks/XM66DUTO.js";
|
|
10
10
|
import "../__chunks/4R3V3JGP.js";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
import type { Options, Props } from "../utils/types.js";
|
|
3
|
+
declare const TagName = "div";
|
|
4
|
+
type TagName = typeof TagName;
|
|
2
5
|
/**
|
|
3
6
|
* Returns props to create a `FocusableContainer` component.
|
|
4
7
|
* @see https://ariakit.org/components/focusable
|
|
@@ -8,7 +11,7 @@ import type { As, Options, Props } from "../utils/types.js";
|
|
|
8
11
|
* <Role {...props} />
|
|
9
12
|
* ```
|
|
10
13
|
*/
|
|
11
|
-
export declare const useFocusableContainer: import("../utils/types.js").Hook<FocusableContainerOptions<"div">>;
|
|
14
|
+
export declare const useFocusableContainer: import("../utils/types.js").Hook<"div", FocusableContainerOptions<"div">>;
|
|
12
15
|
/**
|
|
13
16
|
* Renders a div that wraps
|
|
14
17
|
* [`Focusable`](https://ariakit.org/reference/focusable) components and
|
|
@@ -21,8 +24,8 @@ export declare const useFocusableContainer: import("../utils/types.js").Hook<Foc
|
|
|
21
24
|
* </FocusableContainer>
|
|
22
25
|
* ```
|
|
23
26
|
*/
|
|
24
|
-
export declare const FocusableContainer: import("
|
|
25
|
-
export
|
|
27
|
+
export declare const FocusableContainer: (props: FocusableContainerProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
28
|
+
export interface FocusableContainerOptions<_T extends ElementType = TagName> extends Options {
|
|
26
29
|
/**
|
|
27
30
|
* Determines whether [`Focusable`](https://ariakit.org/reference/focusable)
|
|
28
31
|
* elements inside the container should be automatically focused when the
|
|
@@ -31,5 +34,6 @@ export type FocusableContainerOptions<T extends As = "div"> = Options<T> & {
|
|
|
31
34
|
* @default true
|
|
32
35
|
*/
|
|
33
36
|
autoFocusOnShow?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export type FocusableContainerProps<T extends
|
|
37
|
+
}
|
|
38
|
+
export type FocusableContainerProps<T extends ElementType = TagName> = Props<T, FocusableContainerOptions<T>>;
|
|
39
|
+
export {};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FocusableContainer,
|
|
4
4
|
useFocusableContainer
|
|
5
|
-
} from "../__chunks/
|
|
5
|
+
} from "../__chunks/WCIYB4YS.js";
|
|
6
6
|
import "../__chunks/SHA3WOPI.js";
|
|
7
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/5M6RSQEC.js";
|
|
8
8
|
import "../__chunks/6O5OEQGF.js";
|
|
9
9
|
import "../__chunks/XM66DUTO.js";
|
|
10
10
|
import "../__chunks/4R3V3JGP.js";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { SyntheticEvent } from "react";
|
|
1
|
+
import type { ElementType, SyntheticEvent } from "react";
|
|
2
2
|
import type { BivariantCallback } from "@ariakit/core/utils/types";
|
|
3
|
-
import type {
|
|
3
|
+
import type { Options, Props } from "../utils/types.js";
|
|
4
|
+
declare const TagName = "div";
|
|
5
|
+
type TagName = typeof TagName;
|
|
4
6
|
/**
|
|
5
7
|
* Returns props to create a `Focusable` component.
|
|
6
8
|
* @see https://ariakit.org/components/focusable
|
|
@@ -10,7 +12,7 @@ import type { As, Options, Props } from "../utils/types.js";
|
|
|
10
12
|
* <Role {...props}>Focusable</Role>
|
|
11
13
|
* ```
|
|
12
14
|
*/
|
|
13
|
-
export declare const useFocusable: import("../utils/types.js").Hook<FocusableOptions<"div">>;
|
|
15
|
+
export declare const useFocusable: import("../utils/types.js").Hook<"div", FocusableOptions<"div">>;
|
|
14
16
|
/**
|
|
15
17
|
* Renders a focusable element. When this element gains keyboard focus, it gets
|
|
16
18
|
* a
|
|
@@ -32,8 +34,8 @@ export declare const useFocusable: import("../utils/types.js").Hook<FocusableOpt
|
|
|
32
34
|
* <Focusable>Focusable</Focusable>
|
|
33
35
|
* ```
|
|
34
36
|
*/
|
|
35
|
-
export declare const Focusable: import("
|
|
36
|
-
export interface FocusableOptions<
|
|
37
|
+
export declare const Focusable: (props: FocusableProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
38
|
+
export interface FocusableOptions<_T extends ElementType = TagName> extends Options {
|
|
37
39
|
/**
|
|
38
40
|
* Determines if the element is disabled. This sets the `aria-disabled`
|
|
39
41
|
* attribute accordingly, enabling support for all elements, including those
|
|
@@ -75,10 +77,10 @@ export interface FocusableOptions<T extends As = "div"> extends Options<T> {
|
|
|
75
77
|
* features should be active on non-native focusable elements.
|
|
76
78
|
*
|
|
77
79
|
* **Note**: This prop only turns off the additional features provided by the
|
|
78
|
-
* [Focusable](https://ariakit.org/
|
|
79
|
-
* focusable elements will lose their focusability entirely.
|
|
80
|
-
* focusable elements will retain their inherent focusability,
|
|
81
|
-
* added features such as improved
|
|
80
|
+
* [`Focusable`](https://ariakit.org/reference/focusable) component.
|
|
81
|
+
* Non-native focusable elements will lose their focusability entirely.
|
|
82
|
+
* However, native focusable elements will retain their inherent focusability,
|
|
83
|
+
* but without added features such as improved
|
|
82
84
|
* [`autoFocus`](https://ariakit.org/reference/focusable#autofocus),
|
|
83
85
|
* [`accessibleWhenDisabled`](https://ariakit.org/reference/focusable#accessiblewhendisabled),
|
|
84
86
|
* [`onFocusVisible`](https://ariakit.org/reference/focusable#onfocusvisible),
|
|
@@ -121,4 +123,5 @@ export interface FocusableOptions<T extends As = "div"> extends Options<T> {
|
|
|
121
123
|
*/
|
|
122
124
|
onFocusVisible?: BivariantCallback<(event: SyntheticEvent<HTMLElement>) => void>;
|
|
123
125
|
}
|
|
124
|
-
export type FocusableProps<T extends
|
|
126
|
+
export type FocusableProps<T extends ElementType = TagName> = Props<T, FocusableOptions<T>>;
|
|
127
|
+
export {};
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Focusable,
|
|
4
4
|
useFocusable
|
|
5
|
-
} from "../__chunks/
|
|
5
|
+
} from "../__chunks/VA234QKF.js";
|
|
6
6
|
import "../__chunks/SHA3WOPI.js";
|
|
7
|
-
import "../__chunks/
|
|
7
|
+
import "../__chunks/5M6RSQEC.js";
|
|
8
8
|
import "../__chunks/6O5OEQGF.js";
|
|
9
9
|
import "../__chunks/XM66DUTO.js";
|
|
10
10
|
import "../__chunks/4R3V3JGP.js";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
1
2
|
import type { CheckboxOptions } from "../checkbox/checkbox.js";
|
|
2
|
-
import type {
|
|
3
|
+
import type { Props } from "../utils/types.js";
|
|
3
4
|
import type { FormControlOptions } from "./form-control.js";
|
|
5
|
+
declare const TagName = "input";
|
|
6
|
+
type TagName = typeof TagName;
|
|
4
7
|
/**
|
|
5
8
|
* Returns props to create a `FormCheckbox` component.
|
|
6
9
|
* @see https://ariakit.org/components/form
|
|
@@ -16,7 +19,7 @@ import type { FormControlOptions } from "./form-control.js";
|
|
|
16
19
|
* </Form>
|
|
17
20
|
* ```
|
|
18
21
|
*/
|
|
19
|
-
export declare const useFormCheckbox: import("../utils/types.js").Hook<FormCheckboxOptions<"input">>;
|
|
22
|
+
export declare const useFormCheckbox: import("../utils/types.js").Hook<"input", FormCheckboxOptions<"input">>;
|
|
20
23
|
/**
|
|
21
24
|
* Renders a checkbox input as a form control, representing a boolean, string,
|
|
22
25
|
* number, or array value.
|
|
@@ -37,7 +40,8 @@ export declare const useFormCheckbox: import("../utils/types.js").Hook<FormCheck
|
|
|
37
40
|
* </Form>
|
|
38
41
|
* ```
|
|
39
42
|
*/
|
|
40
|
-
export declare const FormCheckbox: import("
|
|
41
|
-
export interface FormCheckboxOptions<T extends
|
|
43
|
+
export declare const FormCheckbox: (props: FormCheckboxProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
44
|
+
export interface FormCheckboxOptions<T extends ElementType = TagName> extends FormControlOptions<T>, Omit<CheckboxOptions<T>, "store" | "name"> {
|
|
42
45
|
}
|
|
43
|
-
export type FormCheckboxProps<T extends
|
|
46
|
+
export type FormCheckboxProps<T extends ElementType = TagName> = Props<T, FormCheckboxOptions<T>>;
|
|
47
|
+
export {};
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useFormControl
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/SP3GKE3F.js";
|
|
5
5
|
import {
|
|
6
6
|
useFormContext
|
|
7
|
-
} from "../__chunks/
|
|
7
|
+
} from "../__chunks/GEIG6TES.js";
|
|
8
8
|
import {
|
|
9
9
|
useCheckboxStore
|
|
10
10
|
} from "../__chunks/JIZ5C2JK.js";
|
|
11
11
|
import {
|
|
12
12
|
useCheckbox
|
|
13
|
-
} from "../__chunks/
|
|
14
|
-
import "../__chunks/
|
|
13
|
+
} from "../__chunks/3PDOEITM.js";
|
|
14
|
+
import "../__chunks/EUN6HFWO.js";
|
|
15
15
|
import "../__chunks/6XBVQI3K.js";
|
|
16
|
-
import "../__chunks/
|
|
17
|
-
import "../__chunks/
|
|
18
|
-
import "../__chunks/
|
|
19
|
-
import "../__chunks/
|
|
16
|
+
import "../__chunks/ZF6ZK5BT.js";
|
|
17
|
+
import "../__chunks/7YKLTEOQ.js";
|
|
18
|
+
import "../__chunks/MADQZZRL.js";
|
|
19
|
+
import "../__chunks/VA234QKF.js";
|
|
20
20
|
import "../__chunks/SHA3WOPI.js";
|
|
21
21
|
import {
|
|
22
22
|
createElement,
|
|
23
23
|
createHook,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
forwardRef,
|
|
25
|
+
memo
|
|
26
|
+
} from "../__chunks/5M6RSQEC.js";
|
|
26
27
|
import "../__chunks/EKQEJRUF.js";
|
|
27
28
|
import "../__chunks/6O5OEQGF.js";
|
|
28
29
|
import "../__chunks/XM66DUTO.js";
|
|
@@ -33,9 +34,22 @@ import {
|
|
|
33
34
|
|
|
34
35
|
// src/form/form-checkbox.ts
|
|
35
36
|
import { invariant } from "@ariakit/core/utils/misc";
|
|
37
|
+
var TagName = "input";
|
|
36
38
|
var useFormCheckbox = createHook(
|
|
37
|
-
(_a)
|
|
38
|
-
var _b = _a, {
|
|
39
|
+
function useFormCheckbox2(_a) {
|
|
40
|
+
var _b = _a, {
|
|
41
|
+
store,
|
|
42
|
+
name: nameProp,
|
|
43
|
+
value,
|
|
44
|
+
checked,
|
|
45
|
+
defaultChecked
|
|
46
|
+
} = _b, props = __objRest(_b, [
|
|
47
|
+
"store",
|
|
48
|
+
"name",
|
|
49
|
+
"value",
|
|
50
|
+
"checked",
|
|
51
|
+
"defaultChecked"
|
|
52
|
+
]);
|
|
39
53
|
const context = useFormContext();
|
|
40
54
|
store = store || context;
|
|
41
55
|
invariant(
|
|
@@ -56,15 +70,12 @@ var useFormCheckbox = createHook(
|
|
|
56
70
|
return props;
|
|
57
71
|
}
|
|
58
72
|
);
|
|
59
|
-
var FormCheckbox =
|
|
60
|
-
(props)
|
|
73
|
+
var FormCheckbox = memo(
|
|
74
|
+
forwardRef(function FormCheckbox2(props) {
|
|
61
75
|
const htmlProps = useFormCheckbox(props);
|
|
62
|
-
return createElement(
|
|
63
|
-
}
|
|
76
|
+
return createElement(TagName, htmlProps);
|
|
77
|
+
})
|
|
64
78
|
);
|
|
65
|
-
if (process.env.NODE_ENV !== "production") {
|
|
66
|
-
FormCheckbox.displayName = "FormCheckbox";
|
|
67
|
-
}
|
|
68
79
|
export {
|
|
69
80
|
FormCheckbox,
|
|
70
81
|
useFormCheckbox
|
package/esm/form/form-context.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
useFormContext,
|
|
6
6
|
useFormProviderContext,
|
|
7
7
|
useFormScopedContext
|
|
8
|
-
} from "../__chunks/
|
|
9
|
-
import "../__chunks/
|
|
10
|
-
import "../__chunks/
|
|
8
|
+
} from "../__chunks/GEIG6TES.js";
|
|
9
|
+
import "../__chunks/MADQZZRL.js";
|
|
10
|
+
import "../__chunks/5M6RSQEC.js";
|
|
11
11
|
import "../__chunks/6O5OEQGF.js";
|
|
12
12
|
import "../__chunks/XM66DUTO.js";
|
|
13
13
|
import "../__chunks/4R3V3JGP.js";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type { FocusEvent } from "react";
|
|
1
|
+
import type { ElementType, FocusEvent } from "react";
|
|
2
2
|
import type { StringLike } from "@ariakit/core/form/types";
|
|
3
3
|
import type { BooleanOrCallback } from "@ariakit/core/utils/types";
|
|
4
4
|
import type { CollectionItemOptions } from "../collection/collection-item.js";
|
|
5
|
-
import type {
|
|
5
|
+
import type { Props } from "../utils/types.js";
|
|
6
6
|
import type { FormStore } from "./form-store.js";
|
|
7
|
+
declare const TagName = "input";
|
|
8
|
+
type TagName = typeof TagName;
|
|
7
9
|
/**
|
|
8
10
|
* Returns props to create a `FormControl` component. Unlike `useFormInput`,
|
|
9
11
|
* this hook doesn't automatically returns the `value` and `onChange` props.
|
|
@@ -28,7 +30,7 @@ import type { FormStore } from "./form-store.js";
|
|
|
28
30
|
* </Form>
|
|
29
31
|
* ```
|
|
30
32
|
*/
|
|
31
|
-
export declare const useFormControl: import("../utils/types.js").Hook<FormControlOptions<"input">>;
|
|
33
|
+
export declare const useFormControl: import("../utils/types.js").Hook<"input", FormControlOptions<"input">>;
|
|
32
34
|
/**
|
|
33
35
|
* Abstract component that renders a form control. Unlike
|
|
34
36
|
* [`FormInput`](https://ariakit.org/reference/form-input), this component
|
|
@@ -61,8 +63,8 @@ export declare const useFormControl: import("../utils/types.js").Hook<FormContro
|
|
|
61
63
|
* </Form>
|
|
62
64
|
* ```
|
|
63
65
|
*/
|
|
64
|
-
export declare const FormControl: import("
|
|
65
|
-
export interface FormControlOptions<T extends
|
|
66
|
+
export declare const FormControl: (props: FormControlProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
67
|
+
export interface FormControlOptions<T extends ElementType = TagName> extends CollectionItemOptions<T> {
|
|
66
68
|
/**
|
|
67
69
|
* Object returned by the
|
|
68
70
|
* [`useFormStore`](https://ariakit.org/reference/use-form-store) hook. If not
|
|
@@ -90,4 +92,5 @@ export interface FormControlOptions<T extends As = "input"> extends CollectionIt
|
|
|
90
92
|
*/
|
|
91
93
|
touchOnBlur?: BooleanOrCallback<FocusEvent>;
|
|
92
94
|
}
|
|
93
|
-
export type FormControlProps<T extends
|
|
95
|
+
export type FormControlProps<T extends ElementType = TagName> = Props<T, FormControlOptions<T>>;
|
|
96
|
+
export {};
|
package/esm/form/form-control.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FormControl,
|
|
4
4
|
useFormControl
|
|
5
|
-
} from "../__chunks/
|
|
6
|
-
import "../__chunks/
|
|
7
|
-
import "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
9
|
-
import "../__chunks/
|
|
5
|
+
} from "../__chunks/SP3GKE3F.js";
|
|
6
|
+
import "../__chunks/GEIG6TES.js";
|
|
7
|
+
import "../__chunks/7YKLTEOQ.js";
|
|
8
|
+
import "../__chunks/MADQZZRL.js";
|
|
9
|
+
import "../__chunks/5M6RSQEC.js";
|
|
10
10
|
import "../__chunks/6O5OEQGF.js";
|
|
11
11
|
import "../__chunks/XM66DUTO.js";
|
|
12
12
|
import "../__chunks/4R3V3JGP.js";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
1
2
|
import type { StringLike } from "@ariakit/core/form/types";
|
|
2
3
|
import type { CollectionItemOptions } from "../collection/collection-item.js";
|
|
3
|
-
import type {
|
|
4
|
+
import type { Props } from "../utils/types.js";
|
|
4
5
|
import type { FormStore } from "./form-store.js";
|
|
6
|
+
declare const TagName = "div";
|
|
7
|
+
type TagName = typeof TagName;
|
|
5
8
|
/**
|
|
6
9
|
* Returns props to create a `FormDescription` component.
|
|
7
10
|
* @see https://ariakit.org/components/form
|
|
@@ -16,7 +19,7 @@ import type { FormStore } from "./form-store.js";
|
|
|
16
19
|
* </Form>
|
|
17
20
|
* ```
|
|
18
21
|
*/
|
|
19
|
-
export declare const useFormDescription: import("../utils/types.js").Hook<FormDescriptionOptions<"div">>;
|
|
22
|
+
export declare const useFormDescription: import("../utils/types.js").Hook<"div", FormDescriptionOptions<"div">>;
|
|
20
23
|
/**
|
|
21
24
|
* Renders a description element for a form field, which will automatically
|
|
22
25
|
* receive an `aria-describedby` attribute pointing to this element.
|
|
@@ -38,8 +41,8 @@ export declare const useFormDescription: import("../utils/types.js").Hook<FormDe
|
|
|
38
41
|
* </Form>
|
|
39
42
|
* ```
|
|
40
43
|
*/
|
|
41
|
-
export declare const FormDescription: import("
|
|
42
|
-
export interface FormDescriptionOptions<T extends
|
|
44
|
+
export declare const FormDescription: (props: FormDescriptionProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
45
|
+
export interface FormDescriptionOptions<T extends ElementType = TagName> extends CollectionItemOptions<T> {
|
|
43
46
|
/**
|
|
44
47
|
* Object returned by the
|
|
45
48
|
* [`useFormStore`](https://ariakit.org/reference/use-form-store) hook. If not
|
|
@@ -62,4 +65,5 @@ export interface FormDescriptionOptions<T extends As = "div"> extends Collection
|
|
|
62
65
|
*/
|
|
63
66
|
name: StringLike;
|
|
64
67
|
}
|
|
65
|
-
export type FormDescriptionProps<T extends
|
|
68
|
+
export type FormDescriptionProps<T extends ElementType = TagName> = Props<T, FormDescriptionOptions<T>>;
|
|
69
|
+
export {};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useFormContext
|
|
4
|
-
} from "../__chunks/
|
|
4
|
+
} from "../__chunks/GEIG6TES.js";
|
|
5
5
|
import {
|
|
6
6
|
useCollectionItem
|
|
7
|
-
} from "../__chunks/
|
|
8
|
-
import "../__chunks/
|
|
7
|
+
} from "../__chunks/7YKLTEOQ.js";
|
|
8
|
+
import "../__chunks/MADQZZRL.js";
|
|
9
9
|
import {
|
|
10
10
|
createElement,
|
|
11
11
|
createHook,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
forwardRef,
|
|
13
|
+
memo
|
|
14
|
+
} from "../__chunks/5M6RSQEC.js";
|
|
14
15
|
import {
|
|
15
16
|
useId,
|
|
16
17
|
useMergeRefs
|
|
@@ -25,9 +26,18 @@ import {
|
|
|
25
26
|
// src/form/form-description.ts
|
|
26
27
|
import { useCallback, useRef } from "react";
|
|
27
28
|
import { invariant } from "@ariakit/core/utils/misc";
|
|
29
|
+
var TagName = "div";
|
|
28
30
|
var useFormDescription = createHook(
|
|
29
|
-
(_a)
|
|
30
|
-
var _b = _a, {
|
|
31
|
+
function useFormDescription2(_a) {
|
|
32
|
+
var _b = _a, {
|
|
33
|
+
store,
|
|
34
|
+
name: nameProp,
|
|
35
|
+
getItem: getItemProp
|
|
36
|
+
} = _b, props = __objRest(_b, [
|
|
37
|
+
"store",
|
|
38
|
+
"name",
|
|
39
|
+
"getItem"
|
|
40
|
+
]);
|
|
31
41
|
const context = useFormContext();
|
|
32
42
|
store = store || context;
|
|
33
43
|
invariant(
|
|
@@ -60,15 +70,12 @@ var useFormDescription = createHook(
|
|
|
60
70
|
return props;
|
|
61
71
|
}
|
|
62
72
|
);
|
|
63
|
-
var FormDescription =
|
|
64
|
-
(props)
|
|
73
|
+
var FormDescription = memo(
|
|
74
|
+
forwardRef(function FormDescription2(props) {
|
|
65
75
|
const htmlProps = useFormDescription(props);
|
|
66
|
-
return createElement(
|
|
67
|
-
}
|
|
76
|
+
return createElement(TagName, htmlProps);
|
|
77
|
+
})
|
|
68
78
|
);
|
|
69
|
-
if (process.env.NODE_ENV !== "production") {
|
|
70
|
-
FormDescription.displayName = "FormDescription";
|
|
71
|
-
}
|
|
72
79
|
export {
|
|
73
80
|
FormDescription,
|
|
74
81
|
useFormDescription
|
package/esm/form/form-error.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
1
2
|
import type { StringLike } from "@ariakit/core/form/types";
|
|
2
3
|
import type { CollectionItemOptions } from "../collection/collection-item.js";
|
|
3
|
-
import type {
|
|
4
|
+
import type { Props } from "../utils/types.js";
|
|
4
5
|
import type { FormStore } from "./form-store.js";
|
|
6
|
+
declare const TagName = "div";
|
|
7
|
+
type TagName = typeof TagName;
|
|
5
8
|
/**
|
|
6
9
|
* Returns props to create a `FormDescription` component.
|
|
7
10
|
* @see https://ariakit.org/components/form
|
|
@@ -23,7 +26,7 @@ import type { FormStore } from "./form-store.js";
|
|
|
23
26
|
* </Form>
|
|
24
27
|
* ```
|
|
25
28
|
*/
|
|
26
|
-
export declare const useFormError: import("../utils/types.js").Hook<FormErrorOptions<"div">>;
|
|
29
|
+
export declare const useFormError: import("../utils/types.js").Hook<"div", FormErrorOptions<"div">>;
|
|
27
30
|
/**
|
|
28
31
|
* Renders an element that shows an error message. The `children` will
|
|
29
32
|
* automatically display the error message defined in the store.
|
|
@@ -49,8 +52,8 @@ export declare const useFormError: import("../utils/types.js").Hook<FormErrorOpt
|
|
|
49
52
|
* </Form>
|
|
50
53
|
* ```
|
|
51
54
|
*/
|
|
52
|
-
export declare const FormError: import("
|
|
53
|
-
export interface FormErrorOptions<T extends
|
|
55
|
+
export declare const FormError: (props: FormErrorProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
56
|
+
export interface FormErrorOptions<T extends ElementType = TagName> extends CollectionItemOptions<T> {
|
|
54
57
|
/**
|
|
55
58
|
* Object returned by the
|
|
56
59
|
* [`useFormStore`](https://ariakit.org/reference/use-form-store) hook. If not
|
|
@@ -71,4 +74,5 @@ export interface FormErrorOptions<T extends As = "div"> extends CollectionItemOp
|
|
|
71
74
|
*/
|
|
72
75
|
name: StringLike;
|
|
73
76
|
}
|
|
74
|
-
export type FormErrorProps<T extends
|
|
77
|
+
export type FormErrorProps<T extends ElementType = TagName> = Props<T, FormErrorOptions<T>>;
|
|
78
|
+
export {};
|