@ariakit/react-core 0.3.12 → 0.3.14
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 +20 -0
- package/cjs/__chunks/{7HJPL3H2.cjs → I2KHXDVL.cjs} +4 -4
- package/cjs/__chunks/{VCDQISP7.cjs → N3XK7EAH.cjs} +7 -7
- package/cjs/__chunks/{KDG57VZV.cjs → OUEE5HOS.cjs} +3 -3
- package/cjs/__chunks/{EKB76T2U.cjs → ZL5DC555.cjs} +5 -5
- package/cjs/button/button.d.cts +1 -1
- package/cjs/button/button.d.ts +1 -1
- package/cjs/checkbox/checkbox-check.d.cts +17 -9
- package/cjs/checkbox/checkbox-check.d.ts +17 -9
- package/cjs/checkbox/checkbox-provider.cjs +2 -2
- package/cjs/checkbox/checkbox-provider.d.cts +4 -2
- package/cjs/checkbox/checkbox-provider.d.ts +4 -2
- package/cjs/checkbox/checkbox-store.d.cts +5 -3
- package/cjs/checkbox/checkbox-store.d.ts +5 -3
- package/cjs/checkbox/checkbox.d.cts +14 -9
- package/cjs/checkbox/checkbox.d.ts +14 -9
- package/cjs/collection/collection-item.d.cts +23 -9
- package/cjs/collection/collection-item.d.ts +23 -9
- package/cjs/collection/collection-provider.d.cts +2 -1
- package/cjs/collection/collection-provider.d.ts +2 -1
- package/cjs/collection/collection-renderer.d.cts +1 -1
- package/cjs/collection/collection-renderer.d.ts +1 -1
- package/cjs/collection/collection-store.d.cts +6 -3
- package/cjs/collection/collection-store.d.ts +6 -3
- package/cjs/collection/collection.d.cts +4 -3
- package/cjs/collection/collection.d.ts +4 -3
- package/cjs/combobox/combobox-cancel.d.cts +3 -2
- package/cjs/combobox/combobox-cancel.d.ts +3 -2
- package/cjs/combobox/combobox-disclosure.d.cts +7 -2
- package/cjs/combobox/combobox-disclosure.d.ts +7 -2
- package/cjs/combobox/combobox-group-label.d.cts +4 -4
- package/cjs/combobox/combobox-group-label.d.ts +4 -4
- package/cjs/combobox/combobox-group.d.cts +7 -3
- package/cjs/combobox/combobox-group.d.ts +7 -3
- package/cjs/combobox/combobox-item-check.d.cts +9 -16
- package/cjs/combobox/combobox-item-check.d.ts +9 -16
- package/cjs/combobox/combobox-item-value.d.cts +13 -8
- package/cjs/combobox/combobox-item-value.d.ts +13 -8
- package/cjs/combobox/combobox-item.d.cts +11 -9
- package/cjs/combobox/combobox-item.d.ts +11 -9
- package/cjs/combobox/combobox-list.d.cts +1 -4
- package/cjs/combobox/combobox-list.d.ts +1 -4
- package/cjs/combobox/combobox-popover.cjs +7 -7
- package/cjs/combobox/combobox-popover.d.cts +2 -3
- package/cjs/combobox/combobox-popover.d.ts +2 -3
- package/cjs/combobox/combobox-provider.d.cts +2 -1
- package/cjs/combobox/combobox-provider.d.ts +2 -1
- package/cjs/combobox/combobox-row.d.cts +6 -3
- package/cjs/combobox/combobox-row.d.ts +6 -3
- package/cjs/combobox/combobox-separator.d.cts +4 -3
- package/cjs/combobox/combobox-separator.d.ts +4 -3
- package/cjs/combobox/combobox-store.d.cts +11 -7
- package/cjs/combobox/combobox-store.d.ts +11 -7
- package/cjs/combobox/combobox.d.cts +45 -33
- package/cjs/combobox/combobox.d.ts +45 -33
- package/cjs/command/command.d.cts +1 -1
- package/cjs/command/command.d.ts +1 -1
- package/cjs/composite/composite-container.d.cts +18 -11
- package/cjs/composite/composite-container.d.ts +18 -11
- package/cjs/composite/composite-group-label.d.cts +18 -13
- package/cjs/composite/composite-group-label.d.ts +18 -13
- package/cjs/composite/composite-group.d.cts +20 -12
- package/cjs/composite/composite-group.d.ts +20 -12
- package/cjs/composite/composite-hover.d.cts +17 -8
- package/cjs/composite/composite-hover.d.ts +17 -8
- package/cjs/composite/composite-input.d.cts +15 -9
- package/cjs/composite/composite-input.d.ts +15 -9
- package/cjs/composite/composite-item.d.cts +49 -9
- package/cjs/composite/composite-item.d.ts +49 -9
- package/cjs/composite/composite-overflow.cjs +6 -6
- package/cjs/composite/composite-provider.d.cts +2 -1
- package/cjs/composite/composite-provider.d.ts +2 -1
- package/cjs/composite/composite-renderer.d.cts +1 -1
- package/cjs/composite/composite-renderer.d.ts +1 -1
- package/cjs/composite/composite-row.d.cts +26 -19
- package/cjs/composite/composite-row.d.ts +26 -19
- package/cjs/composite/composite-separator.d.cts +23 -10
- package/cjs/composite/composite-separator.d.ts +23 -10
- package/cjs/composite/composite-store.d.cts +3 -1
- package/cjs/composite/composite-store.d.ts +3 -1
- package/cjs/composite/composite-typeahead.d.cts +20 -8
- package/cjs/composite/composite-typeahead.d.ts +20 -8
- package/cjs/composite/composite.d.cts +65 -10
- package/cjs/composite/composite.d.ts +65 -10
- package/cjs/dialog/dialog-disclosure.d.cts +2 -1
- package/cjs/dialog/dialog-disclosure.d.ts +2 -1
- package/cjs/dialog/dialog-dismiss.d.cts +2 -1
- package/cjs/dialog/dialog-dismiss.d.ts +2 -1
- package/cjs/dialog/dialog-provider.d.cts +2 -1
- package/cjs/dialog/dialog-provider.d.ts +2 -1
- package/cjs/dialog/dialog-store.d.cts +3 -1
- package/cjs/dialog/dialog-store.d.ts +3 -1
- package/cjs/dialog/dialog.cjs +5 -5
- package/cjs/dialog/dialog.d.cts +51 -20
- package/cjs/dialog/dialog.d.ts +51 -20
- package/cjs/dialog/utils/disable-tree.cjs +3 -3
- package/cjs/dialog/utils/use-hide-on-interact-outside.cjs +1 -1
- package/cjs/disclosure/disclosure-content.d.cts +6 -5
- package/cjs/disclosure/disclosure-content.d.ts +6 -5
- package/cjs/disclosure/disclosure-provider.d.cts +2 -1
- package/cjs/disclosure/disclosure-provider.d.ts +2 -1
- package/cjs/disclosure/disclosure-store.d.cts +6 -4
- package/cjs/disclosure/disclosure-store.d.ts +6 -4
- package/cjs/disclosure/disclosure.d.cts +3 -2
- package/cjs/disclosure/disclosure.d.ts +3 -2
- package/cjs/focus-trap/focus-trap-region.d.cts +4 -2
- package/cjs/focus-trap/focus-trap-region.d.ts +4 -2
- package/cjs/focusable/focusable-container.d.cts +7 -5
- package/cjs/focusable/focusable-container.d.ts +7 -5
- package/cjs/focusable/focusable.d.cts +5 -2
- package/cjs/focusable/focusable.d.ts +5 -2
- package/cjs/form/form-checkbox.cjs +5 -5
- package/cjs/form/form-checkbox.d.cts +6 -4
- package/cjs/form/form-checkbox.d.ts +6 -4
- package/cjs/form/form-control.cjs +16 -0
- package/cjs/form/form-control.d.cts +93 -0
- package/cjs/form/form-control.d.ts +93 -0
- package/cjs/form/form-description.d.cts +14 -3
- package/cjs/form/form-description.d.ts +14 -3
- package/cjs/form/form-error.d.cts +11 -4
- package/cjs/form/form-error.d.ts +11 -4
- package/cjs/form/form-field.cjs +19 -4
- package/cjs/form/form-field.d.cts +16 -30
- package/cjs/form/form-field.d.ts +16 -30
- package/cjs/form/form-group-label.d.cts +6 -4
- package/cjs/form/form-group-label.d.ts +6 -4
- package/cjs/form/form-group.d.cts +6 -2
- package/cjs/form/form-group.d.ts +6 -2
- package/cjs/form/form-input.cjs +2 -2
- package/cjs/form/form-input.d.cts +7 -6
- package/cjs/form/form-input.d.ts +7 -6
- package/cjs/form/form-label.d.cts +18 -7
- package/cjs/form/form-label.d.ts +18 -7
- package/cjs/form/form-provider.d.cts +2 -1
- package/cjs/form/form-provider.d.ts +2 -1
- package/cjs/form/form-push.d.cts +17 -3
- package/cjs/form/form-push.d.ts +17 -3
- package/cjs/form/form-radio-group.d.cts +7 -2
- package/cjs/form/form-radio-group.d.ts +7 -2
- package/cjs/form/form-radio.cjs +2 -2
- package/cjs/form/form-radio.d.cts +8 -4
- package/cjs/form/form-radio.d.ts +8 -4
- package/cjs/form/form-remove.d.cts +17 -2
- package/cjs/form/form-remove.d.ts +17 -2
- package/cjs/form/form-reset.d.cts +5 -2
- package/cjs/form/form-reset.d.ts +5 -2
- package/cjs/form/form-store.d.cts +31 -14
- package/cjs/form/form-store.d.ts +31 -14
- package/cjs/form/form-submit.d.cts +8 -2
- package/cjs/form/form-submit.d.ts +8 -2
- package/cjs/form/form.d.cts +37 -11
- package/cjs/form/form.d.ts +37 -11
- package/cjs/group/group-label.d.cts +3 -2
- package/cjs/group/group-label.d.ts +3 -2
- package/cjs/group/group.d.cts +3 -1
- package/cjs/group/group.d.ts +3 -1
- package/cjs/heading/heading-level.d.cts +4 -2
- package/cjs/heading/heading-level.d.ts +4 -2
- package/cjs/heading/heading.d.cts +4 -3
- package/cjs/heading/heading.d.ts +4 -3
- package/cjs/hovercard/hovercard-anchor.d.cts +5 -2
- package/cjs/hovercard/hovercard-anchor.d.ts +5 -2
- package/cjs/hovercard/hovercard-arrow.d.cts +4 -2
- package/cjs/hovercard/hovercard-arrow.d.ts +4 -2
- package/cjs/hovercard/hovercard-description.d.cts +2 -2
- package/cjs/hovercard/hovercard-description.d.ts +2 -2
- package/cjs/hovercard/hovercard-disclosure.d.cts +1 -1
- package/cjs/hovercard/hovercard-disclosure.d.ts +1 -1
- package/cjs/hovercard/hovercard-dismiss.d.cts +3 -2
- package/cjs/hovercard/hovercard-dismiss.d.ts +3 -2
- package/cjs/hovercard/hovercard-heading.d.cts +2 -2
- package/cjs/hovercard/hovercard-heading.d.ts +2 -2
- package/cjs/hovercard/hovercard-provider.d.cts +2 -1
- package/cjs/hovercard/hovercard-provider.d.ts +2 -1
- package/cjs/hovercard/hovercard-store.d.cts +2 -1
- package/cjs/hovercard/hovercard-store.d.ts +2 -1
- package/cjs/hovercard/hovercard.cjs +7 -7
- package/cjs/hovercard/hovercard.d.cts +20 -8
- package/cjs/hovercard/hovercard.d.ts +20 -8
- package/cjs/menu/menu-arrow.d.cts +4 -2
- package/cjs/menu/menu-arrow.d.ts +4 -2
- package/cjs/menu/menu-bar.d.cts +1 -2
- package/cjs/menu/menu-bar.d.ts +1 -2
- package/cjs/menu/menu-button-arrow.d.cts +9 -4
- package/cjs/menu/menu-button-arrow.d.ts +9 -4
- package/cjs/menu/menu-button.d.cts +8 -7
- package/cjs/menu/menu-button.d.ts +8 -7
- package/cjs/menu/menu-description.d.cts +2 -2
- package/cjs/menu/menu-description.d.ts +2 -2
- package/cjs/menu/menu-dismiss.d.cts +3 -2
- package/cjs/menu/menu-dismiss.d.ts +3 -2
- package/cjs/menu/menu-group-label.d.cts +4 -4
- package/cjs/menu/menu-group-label.d.ts +4 -4
- package/cjs/menu/menu-group.d.cts +5 -2
- package/cjs/menu/menu-group.d.ts +5 -2
- package/cjs/menu/menu-heading.d.cts +3 -2
- package/cjs/menu/menu-heading.d.ts +3 -2
- package/cjs/menu/menu-item-check.d.cts +10 -18
- package/cjs/menu/menu-item-check.d.ts +10 -18
- package/cjs/menu/menu-item-checkbox.cjs +3 -3
- package/cjs/menu/menu-item-checkbox.d.cts +38 -6
- package/cjs/menu/menu-item-checkbox.d.ts +38 -6
- package/cjs/menu/menu-item-radio.d.cts +21 -9
- package/cjs/menu/menu-item-radio.d.ts +21 -9
- package/cjs/menu/menu-item.d.cts +10 -11
- package/cjs/menu/menu-item.d.ts +10 -11
- package/cjs/menu/menu-list.d.cts +7 -2
- package/cjs/menu/menu-list.d.ts +7 -2
- package/cjs/menu/menu-provider.d.cts +2 -1
- package/cjs/menu/menu-provider.d.ts +2 -1
- package/cjs/menu/menu-separator.d.cts +5 -2
- package/cjs/menu/menu-separator.d.ts +5 -2
- package/cjs/menu/menu-store.d.cts +18 -7
- package/cjs/menu/menu-store.d.ts +18 -7
- package/cjs/menu/menu.cjs +8 -8
- package/cjs/menu/menu.d.cts +8 -2
- package/cjs/menu/menu.d.ts +8 -2
- package/cjs/menubar/menubar-provider.d.cts +2 -1
- package/cjs/menubar/menubar-provider.d.ts +2 -1
- package/cjs/menubar/menubar-store.d.cts +3 -1
- package/cjs/menubar/menubar-store.d.ts +3 -1
- package/cjs/menubar/menubar.d.cts +3 -2
- package/cjs/menubar/menubar.d.ts +3 -2
- package/cjs/popover/popover-anchor.d.cts +4 -3
- package/cjs/popover/popover-anchor.d.ts +4 -3
- package/cjs/popover/popover-arrow.d.cts +6 -2
- package/cjs/popover/popover-arrow.d.ts +6 -2
- package/cjs/popover/popover-description.d.cts +1 -1
- package/cjs/popover/popover-description.d.ts +1 -1
- package/cjs/popover/popover-disclosure-arrow.d.cts +6 -4
- package/cjs/popover/popover-disclosure-arrow.d.ts +6 -4
- package/cjs/popover/popover-disclosure.d.cts +3 -2
- package/cjs/popover/popover-disclosure.d.ts +3 -2
- package/cjs/popover/popover-dismiss.d.cts +1 -1
- package/cjs/popover/popover-dismiss.d.ts +1 -1
- package/cjs/popover/popover-heading.d.cts +1 -1
- package/cjs/popover/popover-heading.d.ts +1 -1
- package/cjs/popover/popover-provider.d.cts +2 -1
- package/cjs/popover/popover-provider.d.ts +2 -1
- package/cjs/popover/popover-store.d.cts +2 -1
- package/cjs/popover/popover-store.d.ts +2 -1
- package/cjs/popover/popover.cjs +6 -6
- package/cjs/popover/popover.d.cts +8 -3
- package/cjs/popover/popover.d.ts +8 -3
- package/cjs/portal/portal.d.cts +18 -1
- package/cjs/portal/portal.d.ts +18 -1
- package/cjs/radio/radio-group.d.cts +8 -6
- package/cjs/radio/radio-group.d.ts +8 -6
- package/cjs/radio/radio-provider.d.cts +2 -1
- package/cjs/radio/radio-provider.d.ts +2 -1
- package/cjs/radio/radio-store.d.cts +6 -2
- package/cjs/radio/radio-store.d.ts +6 -2
- package/cjs/radio/radio.d.cts +21 -13
- package/cjs/radio/radio.d.ts +21 -13
- package/cjs/role/role.d.cts +3 -3
- package/cjs/role/role.d.ts +3 -3
- package/cjs/select/select-group-label.d.cts +2 -2
- package/cjs/select/select-group-label.d.ts +2 -2
- package/cjs/select/select-group.d.cts +4 -1
- package/cjs/select/select-group.d.ts +4 -1
- package/cjs/select/select-item-check.d.cts +9 -15
- package/cjs/select/select-item-check.d.ts +9 -15
- package/cjs/select/select-item.d.cts +1 -5
- package/cjs/select/select-item.d.ts +1 -5
- package/cjs/select/select-list.d.cts +7 -4
- package/cjs/select/select-list.d.ts +7 -4
- package/cjs/select/select-popover.cjs +7 -7
- package/cjs/select/select-provider.d.cts +2 -1
- package/cjs/select/select-provider.d.ts +2 -1
- package/cjs/select/select-renderer.d.cts +1 -1
- package/cjs/select/select-renderer.d.ts +1 -1
- package/cjs/select/select-row.d.cts +4 -1
- package/cjs/select/select-row.d.ts +4 -1
- package/cjs/select/select-separator.d.cts +2 -1
- package/cjs/select/select-separator.d.ts +2 -1
- package/cjs/select/select-store.d.cts +17 -10
- package/cjs/select/select-store.d.ts +17 -10
- package/cjs/select/select.cjs +8 -6
- package/cjs/select/select.d.cts +25 -15
- package/cjs/select/select.d.ts +25 -15
- package/cjs/tab/tab-list.d.cts +2 -1
- package/cjs/tab/tab-list.d.ts +2 -1
- package/cjs/tab/tab-panel.d.cts +19 -3
- package/cjs/tab/tab-panel.d.ts +19 -3
- package/cjs/tab/tab-provider.d.cts +1 -1
- package/cjs/tab/tab-provider.d.ts +1 -1
- package/cjs/tab/tab-store.d.cts +3 -1
- package/cjs/tab/tab-store.d.ts +3 -1
- package/cjs/tab/tab.d.cts +2 -2
- package/cjs/tab/tab.d.ts +2 -2
- package/cjs/toolbar/toolbar-container.d.cts +1 -1
- package/cjs/toolbar/toolbar-container.d.ts +1 -1
- package/cjs/toolbar/toolbar-input.d.cts +2 -1
- package/cjs/toolbar/toolbar-input.d.ts +2 -1
- package/cjs/toolbar/toolbar-item.d.cts +2 -1
- package/cjs/toolbar/toolbar-item.d.ts +2 -1
- package/cjs/toolbar/toolbar-provider.d.cts +2 -1
- package/cjs/toolbar/toolbar-provider.d.ts +2 -1
- package/cjs/toolbar/toolbar-separator.d.cts +2 -1
- package/cjs/toolbar/toolbar-separator.d.ts +2 -1
- package/cjs/toolbar/toolbar-store.d.cts +3 -1
- package/cjs/toolbar/toolbar-store.d.ts +3 -1
- package/cjs/tooltip/tooltip-anchor.d.cts +3 -3
- package/cjs/tooltip/tooltip-anchor.d.ts +3 -3
- package/cjs/tooltip/tooltip-arrow.d.cts +1 -1
- package/cjs/tooltip/tooltip-arrow.d.ts +1 -1
- package/cjs/tooltip/tooltip-provider.d.cts +2 -1
- package/cjs/tooltip/tooltip-provider.d.ts +2 -1
- package/cjs/tooltip/tooltip-store.d.cts +3 -1
- package/cjs/tooltip/tooltip-store.d.ts +3 -1
- package/cjs/tooltip/tooltip.cjs +8 -8
- package/cjs/tooltip/tooltip.d.cts +3 -1
- package/cjs/tooltip/tooltip.d.ts +3 -1
- package/esm/__chunks/{FS2EVEJO.js → 4GO43MST.js} +8 -8
- package/esm/__chunks/{A6XC27R5.js → IRX7SFUJ.js} +1 -1
- package/esm/__chunks/{PGAEII2Q.js → NERBASET.js} +4 -4
- package/esm/__chunks/{EPBRINPG.js → QWSZGSIG.js} +2 -2
- package/esm/button/button.d.ts +1 -1
- package/esm/checkbox/checkbox-check.d.ts +17 -9
- package/esm/checkbox/checkbox-provider.d.ts +4 -2
- package/esm/checkbox/checkbox-provider.js +3 -3
- package/esm/checkbox/checkbox-store.d.ts +5 -3
- package/esm/checkbox/checkbox.d.ts +14 -9
- package/esm/collection/collection-item.d.ts +23 -9
- package/esm/collection/collection-provider.d.ts +2 -1
- package/esm/collection/collection-renderer.d.ts +1 -1
- package/esm/collection/collection-store.d.ts +6 -3
- package/esm/collection/collection.d.ts +4 -3
- package/esm/combobox/combobox-cancel.d.ts +3 -2
- package/esm/combobox/combobox-disclosure.d.ts +7 -2
- package/esm/combobox/combobox-group-label.d.ts +4 -4
- package/esm/combobox/combobox-group.d.ts +7 -3
- package/esm/combobox/combobox-item-check.d.ts +9 -16
- package/esm/combobox/combobox-item-value.d.ts +13 -8
- package/esm/combobox/combobox-item.d.ts +11 -9
- package/esm/combobox/combobox-list.d.ts +1 -4
- package/esm/combobox/combobox-popover.d.ts +2 -3
- package/esm/combobox/combobox-popover.js +5 -5
- package/esm/combobox/combobox-provider.d.ts +2 -1
- package/esm/combobox/combobox-row.d.ts +6 -3
- package/esm/combobox/combobox-separator.d.ts +4 -3
- package/esm/combobox/combobox-store.d.ts +11 -7
- package/esm/combobox/combobox.d.ts +45 -33
- package/esm/command/command.d.ts +1 -1
- package/esm/composite/composite-container.d.ts +18 -11
- package/esm/composite/composite-group-label.d.ts +18 -13
- package/esm/composite/composite-group.d.ts +20 -12
- package/esm/composite/composite-hover.d.ts +17 -8
- package/esm/composite/composite-input.d.ts +15 -9
- package/esm/composite/composite-item.d.ts +49 -9
- package/esm/composite/composite-overflow.js +5 -5
- package/esm/composite/composite-provider.d.ts +2 -1
- package/esm/composite/composite-renderer.d.ts +1 -1
- package/esm/composite/composite-row.d.ts +26 -19
- package/esm/composite/composite-separator.d.ts +23 -10
- package/esm/composite/composite-store.d.ts +3 -1
- package/esm/composite/composite-typeahead.d.ts +20 -8
- package/esm/composite/composite.d.ts +65 -10
- package/esm/dialog/dialog-disclosure.d.ts +2 -1
- package/esm/dialog/dialog-dismiss.d.ts +2 -1
- package/esm/dialog/dialog-provider.d.ts +2 -1
- package/esm/dialog/dialog-store.d.ts +3 -1
- package/esm/dialog/dialog.d.ts +51 -20
- package/esm/dialog/dialog.js +4 -4
- package/esm/dialog/utils/disable-tree.js +2 -2
- package/esm/dialog/utils/use-hide-on-interact-outside.js +1 -1
- package/esm/disclosure/disclosure-content.d.ts +6 -5
- package/esm/disclosure/disclosure-provider.d.ts +2 -1
- package/esm/disclosure/disclosure-store.d.ts +6 -4
- package/esm/disclosure/disclosure.d.ts +3 -2
- package/esm/focus-trap/focus-trap-region.d.ts +4 -2
- package/esm/focusable/focusable-container.d.ts +7 -5
- package/esm/focusable/focusable.d.ts +5 -2
- package/esm/form/form-checkbox.d.ts +6 -4
- package/esm/form/form-checkbox.js +6 -6
- package/esm/form/form-control.d.ts +93 -0
- package/esm/form/form-control.js +16 -0
- package/esm/form/form-description.d.ts +14 -3
- package/esm/form/form-error.d.ts +11 -4
- package/esm/form/form-field.d.ts +16 -30
- package/esm/form/form-field.js +19 -4
- package/esm/form/form-group-label.d.ts +6 -4
- package/esm/form/form-group.d.ts +6 -2
- package/esm/form/form-input.d.ts +7 -6
- package/esm/form/form-input.js +3 -3
- package/esm/form/form-label.d.ts +18 -7
- package/esm/form/form-provider.d.ts +2 -1
- package/esm/form/form-push.d.ts +17 -3
- package/esm/form/form-radio-group.d.ts +7 -2
- package/esm/form/form-radio.d.ts +8 -4
- package/esm/form/form-radio.js +3 -3
- package/esm/form/form-remove.d.ts +17 -2
- package/esm/form/form-reset.d.ts +5 -2
- package/esm/form/form-store.d.ts +31 -14
- package/esm/form/form-submit.d.ts +8 -2
- package/esm/form/form.d.ts +37 -11
- package/esm/group/group-label.d.ts +3 -2
- package/esm/group/group.d.ts +3 -1
- package/esm/heading/heading-level.d.ts +4 -2
- package/esm/heading/heading.d.ts +4 -3
- package/esm/hovercard/hovercard-anchor.d.ts +5 -2
- package/esm/hovercard/hovercard-arrow.d.ts +4 -2
- package/esm/hovercard/hovercard-description.d.ts +2 -2
- package/esm/hovercard/hovercard-disclosure.d.ts +1 -1
- package/esm/hovercard/hovercard-dismiss.d.ts +3 -2
- package/esm/hovercard/hovercard-heading.d.ts +2 -2
- package/esm/hovercard/hovercard-provider.d.ts +2 -1
- package/esm/hovercard/hovercard-store.d.ts +2 -1
- package/esm/hovercard/hovercard.d.ts +20 -8
- package/esm/hovercard/hovercard.js +6 -6
- package/esm/menu/menu-arrow.d.ts +4 -2
- package/esm/menu/menu-bar.d.ts +1 -2
- package/esm/menu/menu-button-arrow.d.ts +9 -4
- package/esm/menu/menu-button.d.ts +8 -7
- package/esm/menu/menu-description.d.ts +2 -2
- package/esm/menu/menu-dismiss.d.ts +3 -2
- package/esm/menu/menu-group-label.d.ts +4 -4
- package/esm/menu/menu-group.d.ts +5 -2
- package/esm/menu/menu-heading.d.ts +3 -2
- package/esm/menu/menu-item-check.d.ts +10 -18
- package/esm/menu/menu-item-checkbox.d.ts +38 -6
- package/esm/menu/menu-item-checkbox.js +3 -3
- package/esm/menu/menu-item-radio.d.ts +21 -9
- package/esm/menu/menu-item.d.ts +10 -11
- package/esm/menu/menu-list.d.ts +7 -2
- package/esm/menu/menu-provider.d.ts +2 -1
- package/esm/menu/menu-separator.d.ts +5 -2
- package/esm/menu/menu-store.d.ts +18 -7
- package/esm/menu/menu.d.ts +8 -2
- package/esm/menu/menu.js +6 -6
- package/esm/menubar/menubar-provider.d.ts +2 -1
- package/esm/menubar/menubar-store.d.ts +3 -1
- package/esm/menubar/menubar.d.ts +3 -2
- package/esm/popover/popover-anchor.d.ts +4 -3
- package/esm/popover/popover-arrow.d.ts +6 -2
- package/esm/popover/popover-description.d.ts +1 -1
- package/esm/popover/popover-disclosure-arrow.d.ts +6 -4
- package/esm/popover/popover-disclosure.d.ts +3 -2
- package/esm/popover/popover-dismiss.d.ts +1 -1
- package/esm/popover/popover-heading.d.ts +1 -1
- package/esm/popover/popover-provider.d.ts +2 -1
- package/esm/popover/popover-store.d.ts +2 -1
- package/esm/popover/popover.d.ts +8 -3
- package/esm/popover/popover.js +5 -5
- package/esm/portal/portal.d.ts +18 -1
- package/esm/radio/radio-group.d.ts +8 -6
- package/esm/radio/radio-provider.d.ts +2 -1
- package/esm/radio/radio-store.d.ts +6 -2
- package/esm/radio/radio.d.ts +21 -13
- package/esm/role/role.d.ts +3 -3
- package/esm/select/select-group-label.d.ts +2 -2
- package/esm/select/select-group.d.ts +4 -1
- package/esm/select/select-item-check.d.ts +9 -15
- package/esm/select/select-item.d.ts +1 -5
- package/esm/select/select-list.d.ts +7 -4
- package/esm/select/select-popover.js +5 -5
- package/esm/select/select-provider.d.ts +2 -1
- package/esm/select/select-renderer.d.ts +1 -1
- package/esm/select/select-row.d.ts +4 -1
- package/esm/select/select-separator.d.ts +2 -1
- package/esm/select/select-store.d.ts +17 -10
- package/esm/select/select.d.ts +25 -15
- package/esm/select/select.js +8 -6
- package/esm/tab/tab-list.d.ts +2 -1
- package/esm/tab/tab-panel.d.ts +19 -3
- package/esm/tab/tab-provider.d.ts +1 -1
- package/esm/tab/tab-store.d.ts +3 -1
- package/esm/tab/tab.d.ts +2 -2
- package/esm/toolbar/toolbar-container.d.ts +1 -1
- package/esm/toolbar/toolbar-input.d.ts +2 -1
- package/esm/toolbar/toolbar-item.d.ts +2 -1
- package/esm/toolbar/toolbar-provider.d.ts +2 -1
- package/esm/toolbar/toolbar-separator.d.ts +2 -1
- package/esm/toolbar/toolbar-store.d.ts +3 -1
- package/esm/tooltip/tooltip-anchor.d.ts +3 -3
- package/esm/tooltip/tooltip-arrow.d.ts +1 -1
- package/esm/tooltip/tooltip-provider.d.ts +2 -1
- package/esm/tooltip/tooltip-store.d.ts +3 -1
- package/esm/tooltip/tooltip.d.ts +3 -1
- package/esm/tooltip/tooltip.js +6 -6
- package/form/form-control/package.json +8 -0
- package/package.json +9 -2
- package/cjs/__chunks/{NKR65BKC.cjs → KSPMHEYZ.cjs} +3 -3
- package/esm/__chunks/{CLF4PQ7T.js → TQYOGOE2.js} +3 -3
|
@@ -15,10 +15,11 @@ import type { HovercardStore } from "./hovercard-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useHovercardDismiss: import("../utils/types.js").Hook<HovercardDismissOptions<"button">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a button that hides a
|
|
18
|
+
* Renders a button that hides a
|
|
19
|
+
* [`Hovercard`](https://ariakit.org/reference/hovercard) when clicked.
|
|
19
20
|
* @see https://ariakit.org/components/hovercard
|
|
20
21
|
* @example
|
|
21
|
-
* ```jsx
|
|
22
|
+
* ```jsx {3}
|
|
22
23
|
* <HovercardProvider>
|
|
23
24
|
* <Hovercard>
|
|
24
25
|
* <HovercardDismiss />
|
|
@@ -15,10 +15,11 @@ import type { HovercardStore } from "./hovercard-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useHovercardDismiss: import("../utils/types.js").Hook<HovercardDismissOptions<"button">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a button that hides a
|
|
18
|
+
* Renders a button that hides a
|
|
19
|
+
* [`Hovercard`](https://ariakit.org/reference/hovercard) when clicked.
|
|
19
20
|
* @see https://ariakit.org/components/hovercard
|
|
20
21
|
* @example
|
|
21
|
-
* ```jsx
|
|
22
|
+
* ```jsx {3}
|
|
22
23
|
* <HovercardProvider>
|
|
23
24
|
* <Hovercard>
|
|
24
25
|
* <HovercardDismiss />
|
|
@@ -17,10 +17,10 @@ export declare const useHovercardHeading: import("../utils/types.js").Hook<Hover
|
|
|
17
17
|
/**
|
|
18
18
|
* Renders a heading in a hovercard. This component must be wrapped within
|
|
19
19
|
* [`Hovercard`](https://ariakit.org/reference/hovercard) so the
|
|
20
|
-
* `aria-labelledby` prop is properly set on the
|
|
20
|
+
* `aria-labelledby` prop is properly set on the content element.
|
|
21
21
|
* @see https://ariakit.org/components/hovercard
|
|
22
22
|
* @example
|
|
23
|
-
* ```jsx
|
|
23
|
+
* ```jsx {3}
|
|
24
24
|
* <HovercardProvider>
|
|
25
25
|
* <Hovercard>
|
|
26
26
|
* <HovercardHeading>Heading</HovercardHeading>
|
|
@@ -17,10 +17,10 @@ export declare const useHovercardHeading: import("../utils/types.js").Hook<Hover
|
|
|
17
17
|
/**
|
|
18
18
|
* Renders a heading in a hovercard. This component must be wrapped within
|
|
19
19
|
* [`Hovercard`](https://ariakit.org/reference/hovercard) so the
|
|
20
|
-
* `aria-labelledby` prop is properly set on the
|
|
20
|
+
* `aria-labelledby` prop is properly set on the content element.
|
|
21
21
|
* @see https://ariakit.org/components/hovercard
|
|
22
22
|
* @example
|
|
23
|
-
* ```jsx
|
|
23
|
+
* ```jsx {3}
|
|
24
24
|
* <HovercardProvider>
|
|
25
25
|
* <Hovercard>
|
|
26
26
|
* <HovercardHeading>Heading</HovercardHeading>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { HovercardStoreProps } from "./hovercard-store.js";
|
|
3
3
|
/**
|
|
4
|
-
* Provides a hovercard store to
|
|
4
|
+
* Provides a hovercard store to
|
|
5
|
+
* [Hovercard](https://ariakit.org/components/hovercard) components.
|
|
5
6
|
* @see https://ariakit.org/components/hovercard
|
|
6
7
|
* @example
|
|
7
8
|
* ```jsx
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { HovercardStoreProps } from "./hovercard-store.js";
|
|
3
3
|
/**
|
|
4
|
-
* Provides a hovercard store to
|
|
4
|
+
* Provides a hovercard store to
|
|
5
|
+
* [Hovercard](https://ariakit.org/components/hovercard) components.
|
|
5
6
|
* @see https://ariakit.org/components/hovercard
|
|
6
7
|
* @example
|
|
7
8
|
* ```jsx
|
|
@@ -3,7 +3,8 @@ import type { PopoverStoreFunctions, PopoverStoreOptions, PopoverStoreState } fr
|
|
|
3
3
|
import type { Store } from "../utils/store.js";
|
|
4
4
|
export declare function useHovercardStoreProps<T extends Core.HovercardStore>(store: T, update: () => void, props: HovercardStoreProps): T;
|
|
5
5
|
/**
|
|
6
|
-
* Creates a hovercard store
|
|
6
|
+
* Creates a hovercard store to control the state of
|
|
7
|
+
* [Hovercard](https://ariakit.org/reference/hovercard) components.
|
|
7
8
|
* @see https://ariakit.org/components/hovercard
|
|
8
9
|
* @example
|
|
9
10
|
* ```jsx
|
|
@@ -3,7 +3,8 @@ import type { PopoverStoreFunctions, PopoverStoreOptions, PopoverStoreState } fr
|
|
|
3
3
|
import type { Store } from "../utils/store.js";
|
|
4
4
|
export declare function useHovercardStoreProps<T extends Core.HovercardStore>(store: T, update: () => void, props: HovercardStoreProps): T;
|
|
5
5
|
/**
|
|
6
|
-
* Creates a hovercard store
|
|
6
|
+
* Creates a hovercard store to control the state of
|
|
7
|
+
* [Hovercard](https://ariakit.org/reference/hovercard) components.
|
|
7
8
|
* @see https://ariakit.org/components/hovercard
|
|
8
9
|
* @example
|
|
9
10
|
* ```jsx
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _I2KHXDVLcjs = require('../__chunks/I2KHXDVL.cjs');
|
|
6
6
|
require('../__chunks/KXQOQQ5B.cjs');
|
|
7
|
-
require('../__chunks/
|
|
8
|
-
require('../__chunks/
|
|
7
|
+
require('../__chunks/OUEE5HOS.cjs');
|
|
8
|
+
require('../__chunks/ZL5DC555.cjs');
|
|
9
9
|
require('../__chunks/WZ3DRKGP.cjs');
|
|
10
|
-
require('../__chunks/
|
|
10
|
+
require('../__chunks/KSPMHEYZ.cjs');
|
|
11
11
|
require('../__chunks/PZL34OVO.cjs');
|
|
12
12
|
require('../__chunks/344F3DYO.cjs');
|
|
13
13
|
require('../__chunks/KREY6HXD.cjs');
|
|
@@ -15,11 +15,11 @@ require('../__chunks/5ZOCN23X.cjs');
|
|
|
15
15
|
require('../__chunks/JVDUGICD.cjs');
|
|
16
16
|
require('../__chunks/VV6WA3I6.cjs');
|
|
17
17
|
require('../__chunks/7YLCVXZ7.cjs');
|
|
18
|
+
require('../__chunks/5GTNIPQ6.cjs');
|
|
18
19
|
require('../__chunks/7TN63K2T.cjs');
|
|
20
|
+
require('../__chunks/V24PR4PW.cjs');
|
|
19
21
|
require('../__chunks/6IUEXB4L.cjs');
|
|
20
22
|
require('../__chunks/JF225FQ5.cjs');
|
|
21
|
-
require('../__chunks/5GTNIPQ6.cjs');
|
|
22
|
-
require('../__chunks/V24PR4PW.cjs');
|
|
23
23
|
require('../__chunks/7566TIRW.cjs');
|
|
24
24
|
require('../__chunks/J3OG6T3B.cjs');
|
|
25
25
|
require('../__chunks/65LGW5LY.cjs');
|
|
@@ -45,4 +45,4 @@ require('../__chunks/AV6KTKLE.cjs');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
exports.Hovercard =
|
|
48
|
+
exports.Hovercard = _I2KHXDVLcjs.Hovercard; exports.useHovercard = _I2KHXDVLcjs.useHovercard;
|
|
@@ -20,7 +20,7 @@ export declare const useHovercard: import("../utils/types.js").Hook<HovercardOpt
|
|
|
20
20
|
* [`HovercardAnchor`](https://ariakit.org/reference/hovercard-anchor).
|
|
21
21
|
* @see https://ariakit.org/components/hovercard
|
|
22
22
|
* @example
|
|
23
|
-
* ```jsx
|
|
23
|
+
* ```jsx {3}
|
|
24
24
|
* <HovercardProvider>
|
|
25
25
|
* <HovercardAnchor>@username</HovercardAnchor>
|
|
26
26
|
* <Hovercard>Details</Hovercard>
|
|
@@ -38,17 +38,29 @@ export interface HovercardOptions<T extends As = "div"> extends PopoverOptions<T
|
|
|
38
38
|
*/
|
|
39
39
|
store?: HovercardStore;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* Determines whether the popover should hide when the mouse leaves the
|
|
42
|
+
* popover or the anchor element and there's no _hover intent_, meaning, the
|
|
43
|
+
* mouse isn't moving toward the popover.
|
|
44
|
+
*
|
|
45
|
+
* This can be either a boolean or a callback receiving the mouse move event
|
|
46
|
+
* that initiated the behavior. The callback should return a boolean.
|
|
47
|
+
*
|
|
48
|
+
* **Note**: This behavior won't be triggered when the popover or any of its
|
|
49
|
+
* descendants are in focus.
|
|
44
50
|
* @default true
|
|
45
51
|
*/
|
|
46
52
|
hideOnHoverOutside?: BooleanOrCallback<MouseEvent>;
|
|
47
53
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
54
|
+
* Determines if the pointer events outside of the popover and its anchor
|
|
55
|
+
* element should be disabled during _hover intent_, that is, when the mouse
|
|
56
|
+
* is moving toward the popover.
|
|
57
|
+
*
|
|
58
|
+
* This is required as these external events may trigger focus on other
|
|
59
|
+
* elements and close the popover while the user is attempting to hover over
|
|
60
|
+
* it.
|
|
61
|
+
*
|
|
62
|
+
* This can be either a boolean or a callback receiving the mouse event
|
|
63
|
+
* happening during hover intent. The callback should return a boolean.
|
|
52
64
|
* @default true
|
|
53
65
|
*/
|
|
54
66
|
disablePointerEventsOnApproach?: BooleanOrCallback<MouseEvent>;
|
|
@@ -20,7 +20,7 @@ export declare const useHovercard: import("../utils/types.js").Hook<HovercardOpt
|
|
|
20
20
|
* [`HovercardAnchor`](https://ariakit.org/reference/hovercard-anchor).
|
|
21
21
|
* @see https://ariakit.org/components/hovercard
|
|
22
22
|
* @example
|
|
23
|
-
* ```jsx
|
|
23
|
+
* ```jsx {3}
|
|
24
24
|
* <HovercardProvider>
|
|
25
25
|
* <HovercardAnchor>@username</HovercardAnchor>
|
|
26
26
|
* <Hovercard>Details</Hovercard>
|
|
@@ -38,17 +38,29 @@ export interface HovercardOptions<T extends As = "div"> extends PopoverOptions<T
|
|
|
38
38
|
*/
|
|
39
39
|
store?: HovercardStore;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* Determines whether the popover should hide when the mouse leaves the
|
|
42
|
+
* popover or the anchor element and there's no _hover intent_, meaning, the
|
|
43
|
+
* mouse isn't moving toward the popover.
|
|
44
|
+
*
|
|
45
|
+
* This can be either a boolean or a callback receiving the mouse move event
|
|
46
|
+
* that initiated the behavior. The callback should return a boolean.
|
|
47
|
+
*
|
|
48
|
+
* **Note**: This behavior won't be triggered when the popover or any of its
|
|
49
|
+
* descendants are in focus.
|
|
44
50
|
* @default true
|
|
45
51
|
*/
|
|
46
52
|
hideOnHoverOutside?: BooleanOrCallback<MouseEvent>;
|
|
47
53
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
54
|
+
* Determines if the pointer events outside of the popover and its anchor
|
|
55
|
+
* element should be disabled during _hover intent_, that is, when the mouse
|
|
56
|
+
* is moving toward the popover.
|
|
57
|
+
*
|
|
58
|
+
* This is required as these external events may trigger focus on other
|
|
59
|
+
* elements and close the popover while the user is attempting to hover over
|
|
60
|
+
* it.
|
|
61
|
+
*
|
|
62
|
+
* This can be either a boolean or a callback receiving the mouse event
|
|
63
|
+
* happening during hover intent. The callback should return a boolean.
|
|
52
64
|
* @default true
|
|
53
65
|
*/
|
|
54
66
|
disablePointerEventsOnApproach?: BooleanOrCallback<MouseEvent>;
|
|
@@ -16,10 +16,12 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const useMenuArrow: import("../utils/types.js").Hook<MenuArrowOptions<"div">>;
|
|
18
18
|
/**
|
|
19
|
-
* Renders an arrow inside
|
|
19
|
+
* Renders an arrow element inside a
|
|
20
|
+
* [`Menu`](https://ariakit.org/reference/menu) component that points to its
|
|
21
|
+
* [`MenuButton`](https://ariakit.org/reference/menu-button).
|
|
20
22
|
* @see https://ariakit.org/components/menu
|
|
21
23
|
* @example
|
|
22
|
-
* ```jsx
|
|
24
|
+
* ```jsx {4}
|
|
23
25
|
* <MenuProvider>
|
|
24
26
|
* <MenuButton>Menu</MenuButton>
|
|
25
27
|
* <Menu>
|
package/cjs/menu/menu-arrow.d.ts
CHANGED
|
@@ -16,10 +16,12 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const useMenuArrow: import("../utils/types.js").Hook<MenuArrowOptions<"div">>;
|
|
18
18
|
/**
|
|
19
|
-
* Renders an arrow inside
|
|
19
|
+
* Renders an arrow element inside a
|
|
20
|
+
* [`Menu`](https://ariakit.org/reference/menu) component that points to its
|
|
21
|
+
* [`MenuButton`](https://ariakit.org/reference/menu-button).
|
|
20
22
|
* @see https://ariakit.org/components/menu
|
|
21
23
|
* @example
|
|
22
|
-
* ```jsx
|
|
24
|
+
* ```jsx {4}
|
|
23
25
|
* <MenuProvider>
|
|
24
26
|
* <MenuButton>Menu</MenuButton>
|
|
25
27
|
* <Menu>
|
package/cjs/menu/menu-bar.d.cts
CHANGED
|
@@ -2,8 +2,7 @@ import type { MenubarOptions } from "../menubar/menubar.js";
|
|
|
2
2
|
import type { As, Props } from "../utils/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Returns props to create a `MenuBar` component.
|
|
5
|
-
* @deprecated
|
|
6
|
-
* Use [`useMenubar`](https://ariakit.org/reference/use-menubar) instead.
|
|
5
|
+
* @deprecated Use `useMenubar` instead.
|
|
7
6
|
* @example
|
|
8
7
|
* ```jsx
|
|
9
8
|
* const store = useMenuBarStore();
|
package/cjs/menu/menu-bar.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ import type { MenubarOptions } from "../menubar/menubar.js";
|
|
|
2
2
|
import type { As, Props } from "../utils/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Returns props to create a `MenuBar` component.
|
|
5
|
-
* @deprecated
|
|
6
|
-
* Use [`useMenubar`](https://ariakit.org/reference/use-menubar) instead.
|
|
5
|
+
* @deprecated Use `useMenubar` instead.
|
|
7
6
|
* @example
|
|
8
7
|
* ```jsx
|
|
9
8
|
* const store = useMenuBarStore();
|
|
@@ -20,12 +20,17 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const useMenuButtonArrow: import("../utils/types.js").Hook<MenuButtonArrowOptions<"span">>;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* `MenuButton
|
|
23
|
+
* Displays an arrow within a
|
|
24
|
+
* [`MenuButton`](https://ariakit.org/reference/menu-button), pointing to the
|
|
25
|
+
* [`Menu`](https://ariakit.org/reference/menu) position. It's typically based
|
|
26
|
+
* on the [`placement`](https://ariakit.org/reference/menu-provider#placement)
|
|
27
|
+
* state from the menu store, but this can be overridden with the
|
|
28
|
+
* [`placement`](https://ariakit.org/reference/menu-button-arrow#placement)
|
|
29
|
+
* prop.
|
|
25
30
|
* @see https://ariakit.org/components/menu
|
|
26
31
|
* @example
|
|
27
|
-
* ```jsx
|
|
28
|
-
* <MenuProvider>
|
|
32
|
+
* ```jsx {4}
|
|
33
|
+
* <MenuProvider placement="bottom-start">
|
|
29
34
|
* <MenuButton>
|
|
30
35
|
* Edit
|
|
31
36
|
* <MenuButtonArrow />
|
|
@@ -20,12 +20,17 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const useMenuButtonArrow: import("../utils/types.js").Hook<MenuButtonArrowOptions<"span">>;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* `MenuButton
|
|
23
|
+
* Displays an arrow within a
|
|
24
|
+
* [`MenuButton`](https://ariakit.org/reference/menu-button), pointing to the
|
|
25
|
+
* [`Menu`](https://ariakit.org/reference/menu) position. It's typically based
|
|
26
|
+
* on the [`placement`](https://ariakit.org/reference/menu-provider#placement)
|
|
27
|
+
* state from the menu store, but this can be overridden with the
|
|
28
|
+
* [`placement`](https://ariakit.org/reference/menu-button-arrow#placement)
|
|
29
|
+
* prop.
|
|
25
30
|
* @see https://ariakit.org/components/menu
|
|
26
31
|
* @example
|
|
27
|
-
* ```jsx
|
|
28
|
-
* <MenuProvider>
|
|
32
|
+
* ```jsx {4}
|
|
33
|
+
* <MenuProvider placement="bottom-start">
|
|
29
34
|
* <MenuButton>
|
|
30
35
|
* Edit
|
|
31
36
|
* <MenuButtonArrow />
|
|
@@ -19,13 +19,12 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const useMenuButton: import("../utils/types.js").Hook<MenuButtonOptions<"button" | "div">>;
|
|
21
21
|
/**
|
|
22
|
-
* Renders a menu button that
|
|
23
|
-
* [`Menu`](https://ariakit.org/reference/menu) component
|
|
24
|
-
*
|
|
25
|
-
* as a menu item inside another menu, it'll be rendered as a `div`.
|
|
22
|
+
* Renders a menu button that toggles the visibility of a
|
|
23
|
+
* [`Menu`](https://ariakit.org/reference/menu) component when clicked or when
|
|
24
|
+
* using arrow keys.
|
|
26
25
|
* @see https://ariakit.org/components/menu
|
|
27
26
|
* @example
|
|
28
|
-
* ```jsx
|
|
27
|
+
* ```jsx {2}
|
|
29
28
|
* <MenuProvider>
|
|
30
29
|
* <MenuButton>Edit</MenuButton>
|
|
31
30
|
* <Menu>
|
|
@@ -49,8 +48,10 @@ export interface MenuButtonOptions<T extends As = "button" | "div"> extends Hove
|
|
|
49
48
|
* Determines whether pressing a character key while focusing on the
|
|
50
49
|
* [`MenuButton`](https://ariakit.org/reference/menu-button) should move focus
|
|
51
50
|
* to the [`MenuItem`](https://ariakit.org/reference/menu-item) starting with
|
|
52
|
-
* that character.
|
|
53
|
-
*
|
|
51
|
+
* that character.
|
|
52
|
+
*
|
|
53
|
+
* By default, it's `true` for menu buttons in a
|
|
54
|
+
* [`Menubar`](https://ariakit.org/reference/menubar), but `false` for other
|
|
54
55
|
* menu buttons.
|
|
55
56
|
*/
|
|
56
57
|
typeahead?: boolean;
|
|
@@ -19,13 +19,12 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const useMenuButton: import("../utils/types.js").Hook<MenuButtonOptions<"button" | "div">>;
|
|
21
21
|
/**
|
|
22
|
-
* Renders a menu button that
|
|
23
|
-
* [`Menu`](https://ariakit.org/reference/menu) component
|
|
24
|
-
*
|
|
25
|
-
* as a menu item inside another menu, it'll be rendered as a `div`.
|
|
22
|
+
* Renders a menu button that toggles the visibility of a
|
|
23
|
+
* [`Menu`](https://ariakit.org/reference/menu) component when clicked or when
|
|
24
|
+
* using arrow keys.
|
|
26
25
|
* @see https://ariakit.org/components/menu
|
|
27
26
|
* @example
|
|
28
|
-
* ```jsx
|
|
27
|
+
* ```jsx {2}
|
|
29
28
|
* <MenuProvider>
|
|
30
29
|
* <MenuButton>Edit</MenuButton>
|
|
31
30
|
* <Menu>
|
|
@@ -49,8 +48,10 @@ export interface MenuButtonOptions<T extends As = "button" | "div"> extends Hove
|
|
|
49
48
|
* Determines whether pressing a character key while focusing on the
|
|
50
49
|
* [`MenuButton`](https://ariakit.org/reference/menu-button) should move focus
|
|
51
50
|
* to the [`MenuItem`](https://ariakit.org/reference/menu-item) starting with
|
|
52
|
-
* that character.
|
|
53
|
-
*
|
|
51
|
+
* that character.
|
|
52
|
+
*
|
|
53
|
+
* By default, it's `true` for menu buttons in a
|
|
54
|
+
* [`Menubar`](https://ariakit.org/reference/menubar), but `false` for other
|
|
54
55
|
* menu buttons.
|
|
55
56
|
*/
|
|
56
57
|
typeahead?: boolean;
|
|
@@ -15,12 +15,12 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useMenuDescription: import("../utils/types.js").Hook<MenuDescriptionOptions<"p">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a description in a menu. This component must be wrapped with
|
|
18
|
+
* Renders a description in a menu. This component must be wrapped with a
|
|
19
19
|
* [`Menu`](https://ariakit.org/reference/menu) component so the
|
|
20
20
|
* `aria-describedby` prop is properly set on the menu element.
|
|
21
21
|
* @see https://ariakit.org/components/menu
|
|
22
22
|
* @example
|
|
23
|
-
* ```jsx
|
|
23
|
+
* ```jsx {3}
|
|
24
24
|
* <MenuProvider>
|
|
25
25
|
* <Menu>
|
|
26
26
|
* <MenuDescription>Description</MenuDescription>
|
|
@@ -15,12 +15,12 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useMenuDescription: import("../utils/types.js").Hook<MenuDescriptionOptions<"p">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a description in a menu. This component must be wrapped with
|
|
18
|
+
* Renders a description in a menu. This component must be wrapped with a
|
|
19
19
|
* [`Menu`](https://ariakit.org/reference/menu) component so the
|
|
20
20
|
* `aria-describedby` prop is properly set on the menu element.
|
|
21
21
|
* @see https://ariakit.org/components/menu
|
|
22
22
|
* @example
|
|
23
|
-
* ```jsx
|
|
23
|
+
* ```jsx {3}
|
|
24
24
|
* <MenuProvider>
|
|
25
25
|
* <Menu>
|
|
26
26
|
* <MenuDescription>Description</MenuDescription>
|
|
@@ -15,10 +15,11 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useMenuDismiss: import("../utils/types.js").Hook<MenuDismissOptions<"button">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a button that hides a menu
|
|
18
|
+
* Renders a button that hides a [`Menu`](https://ariakit.org/reference/menu)
|
|
19
|
+
* when clicked.
|
|
19
20
|
* @see https://ariakit.org/components/menu
|
|
20
21
|
* @example
|
|
21
|
-
* ```jsx
|
|
22
|
+
* ```jsx {3}
|
|
22
23
|
* <MenuProvider>
|
|
23
24
|
* <Menu>
|
|
24
25
|
* <MenuDismiss />
|
|
@@ -15,10 +15,11 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useMenuDismiss: import("../utils/types.js").Hook<MenuDismissOptions<"button">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a button that hides a menu
|
|
18
|
+
* Renders a button that hides a [`Menu`](https://ariakit.org/reference/menu)
|
|
19
|
+
* when clicked.
|
|
19
20
|
* @see https://ariakit.org/components/menu
|
|
20
21
|
* @example
|
|
21
|
-
* ```jsx
|
|
22
|
+
* ```jsx {3}
|
|
22
23
|
* <MenuProvider>
|
|
23
24
|
* <Menu>
|
|
24
25
|
* <MenuDismiss />
|
|
@@ -15,12 +15,12 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useMenuGroupLabel: import("../utils/types.js").Hook<MenuGroupLabelOptions<"div">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a label in a menu group. This component
|
|
19
|
-
* `MenuGroup` so the
|
|
20
|
-
* element.
|
|
18
|
+
* Renders a label in a menu group. This component should be wrapped with
|
|
19
|
+
* [`MenuGroup`](https://ariakit.org/reference/menu-group) so the
|
|
20
|
+
* `aria-labelledby` is correctly set on the group element.
|
|
21
21
|
* @see https://ariakit.org/components/menu
|
|
22
22
|
* @example
|
|
23
|
-
* ```jsx
|
|
23
|
+
* ```jsx {5}
|
|
24
24
|
* <MenuProvider>
|
|
25
25
|
* <MenuButton>Recent Items</MenuButton>
|
|
26
26
|
* <Menu>
|
|
@@ -15,12 +15,12 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useMenuGroupLabel: import("../utils/types.js").Hook<MenuGroupLabelOptions<"div">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a label in a menu group. This component
|
|
19
|
-
* `MenuGroup` so the
|
|
20
|
-
* element.
|
|
18
|
+
* Renders a label in a menu group. This component should be wrapped with
|
|
19
|
+
* [`MenuGroup`](https://ariakit.org/reference/menu-group) so the
|
|
20
|
+
* `aria-labelledby` is correctly set on the group element.
|
|
21
21
|
* @see https://ariakit.org/components/menu
|
|
22
22
|
* @example
|
|
23
|
-
* ```jsx
|
|
23
|
+
* ```jsx {5}
|
|
24
24
|
* <MenuProvider>
|
|
25
25
|
* <MenuButton>Recent Items</MenuButton>
|
|
26
26
|
* <Menu>
|
|
@@ -20,10 +20,13 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const useMenuGroup: import("../utils/types.js").Hook<MenuGroupOptions<"div">>;
|
|
22
22
|
/**
|
|
23
|
-
* Renders a
|
|
23
|
+
* Renders a group for [`MenuItem`](https://ariakit.org/reference/menu-item)
|
|
24
|
+
* elements. Optionally, a
|
|
25
|
+
* [`MenuGroupLabel`](https://ariakit.org/reference/menu-group-label) can be
|
|
26
|
+
* rendered as a child to provide a label for the group.
|
|
24
27
|
* @see https://ariakit.org/components/menu
|
|
25
28
|
* @example
|
|
26
|
-
* ```jsx
|
|
29
|
+
* ```jsx {4-8}
|
|
27
30
|
* <MenuProvider>
|
|
28
31
|
* <MenuButton>Recent Items</MenuButton>
|
|
29
32
|
* <Menu>
|
package/cjs/menu/menu-group.d.ts
CHANGED
|
@@ -20,10 +20,13 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const useMenuGroup: import("../utils/types.js").Hook<MenuGroupOptions<"div">>;
|
|
22
22
|
/**
|
|
23
|
-
* Renders a
|
|
23
|
+
* Renders a group for [`MenuItem`](https://ariakit.org/reference/menu-item)
|
|
24
|
+
* elements. Optionally, a
|
|
25
|
+
* [`MenuGroupLabel`](https://ariakit.org/reference/menu-group-label) can be
|
|
26
|
+
* rendered as a child to provide a label for the group.
|
|
24
27
|
* @see https://ariakit.org/components/menu
|
|
25
28
|
* @example
|
|
26
|
-
* ```jsx
|
|
29
|
+
* ```jsx {4-8}
|
|
27
30
|
* <MenuProvider>
|
|
28
31
|
* <MenuButton>Recent Items</MenuButton>
|
|
29
32
|
* <Menu>
|
|
@@ -15,8 +15,9 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useMenuHeading: import("../utils/types.js").Hook<MenuHeadingOptions<"h1">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a heading in a menu. This component must be wrapped
|
|
19
|
-
* the `aria-labelledby` prop is
|
|
18
|
+
* Renders a heading in a menu. This component must be wrapped within
|
|
19
|
+
* [`Menu`](https://ariakit.org/reference/menu) so the `aria-labelledby` prop is
|
|
20
|
+
* properly set on the content element.
|
|
20
21
|
* @see https://ariakit.org/components/menu
|
|
21
22
|
* @example
|
|
22
23
|
* ```jsx
|
|
@@ -15,8 +15,9 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const useMenuHeading: import("../utils/types.js").Hook<MenuHeadingOptions<"h1">>;
|
|
17
17
|
/**
|
|
18
|
-
* Renders a heading in a menu. This component must be wrapped
|
|
19
|
-
* the `aria-labelledby` prop is
|
|
18
|
+
* Renders a heading in a menu. This component must be wrapped within
|
|
19
|
+
* [`Menu`](https://ariakit.org/reference/menu) so the `aria-labelledby` prop is
|
|
20
|
+
* properly set on the content element.
|
|
20
21
|
* @see https://ariakit.org/components/menu
|
|
21
22
|
* @example
|
|
22
23
|
* ```jsx
|
|
@@ -12,12 +12,18 @@ import type { MenuStore } from "./menu-store.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const useMenuItemCheck: import("../utils/types.js").Hook<MenuItemCheckOptions<"span">>;
|
|
14
14
|
/**
|
|
15
|
-
* Renders a checkmark
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* Renders a checkmark icon when the
|
|
16
|
+
* [`checked`](https://ariakit.org/reference/menu-item-check#checked) prop is
|
|
17
|
+
* `true`. The icon can be overridden by providing a different one as children.
|
|
18
|
+
*
|
|
19
|
+
* When rendered inside
|
|
20
|
+
* [`MenuItemCheckbox`](https://ariakit.org/reference/menu-item-checkbox) or
|
|
21
|
+
* [`MenuItemRadio`](https://ariakit.org/reference/menu-item-radio) components,
|
|
22
|
+
* the [`checked`](https://ariakit.org/reference/menu-item-check#checked) prop
|
|
23
|
+
* is automatically derived from the context.
|
|
18
24
|
* @see https://ariakit.org/components/menu
|
|
19
25
|
* @example
|
|
20
|
-
* ```jsx
|
|
26
|
+
* ```jsx {5,9}
|
|
21
27
|
* <MenuProvider defaultValues={{ apple: true, orange: false }}>
|
|
22
28
|
* <MenuButton>Fruits</MenuButton>
|
|
23
29
|
* <Menu>
|
|
@@ -40,19 +46,5 @@ export interface MenuItemCheckOptions<T extends As = "span"> extends Omit<Checkb
|
|
|
40
46
|
* [`useMenuStore`](https://ariakit.org/reference/use-menu-store) hook.
|
|
41
47
|
*/
|
|
42
48
|
store?: MenuStore;
|
|
43
|
-
/**
|
|
44
|
-
* Determines if the check mark should be displayed. This value is automatically
|
|
45
|
-
* derived from the parent
|
|
46
|
-
* [`MenuItemRadio`](https://ariakit.org/reference/menu-item-radio) or
|
|
47
|
-
* [`MenuItemCheckbox`](https://ariakit.org/reference/menu-item-checkbox)
|
|
48
|
-
* component.
|
|
49
|
-
*
|
|
50
|
-
* Manually setting this prop will supersede the derived value.
|
|
51
|
-
*
|
|
52
|
-
* Live examples:
|
|
53
|
-
* - [Submenu with
|
|
54
|
-
* Combobox](https://ariakit.org/examples/menu-nested-combobox)
|
|
55
|
-
*/
|
|
56
|
-
checked?: CheckboxCheckOptions<T>["checked"];
|
|
57
49
|
}
|
|
58
50
|
export type MenuItemCheckProps<T extends As = "span"> = Props<MenuItemCheckOptions<T>>;
|