@ariakit/react-core 0.3.12 → 0.3.13
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 +16 -0
- package/cjs/__chunks/{LICANQTI.cjs → 25ZFPUHH.cjs} +2 -2
- package/cjs/__chunks/{LFHNPG2L.cjs → 2FTVUUOK.cjs} +2 -2
- package/cjs/__chunks/{7ZVTEFD7.cjs → 2IMEEJHG.cjs} +2 -2
- package/cjs/__chunks/{BBS4RP44.cjs → 2UEWAQWG.cjs} +2 -2
- package/cjs/__chunks/{TGTVGYEZ.cjs → 4KFTI2WW.cjs} +2 -2
- package/cjs/__chunks/{KDG57VZV.cjs → CIZTEPFO.cjs} +3 -3
- package/cjs/__chunks/{UXFBTIBY.cjs → ER5DEJFH.cjs} +2 -2
- package/cjs/__chunks/{EKB76T2U.cjs → FGHQW2WS.cjs} +7 -7
- package/cjs/__chunks/{XA62Y24Z.cjs → GGMSVQ4G.cjs} +2 -2
- package/cjs/__chunks/{23HLSVKM.cjs → GMQZGKGV.cjs} +2 -2
- package/cjs/__chunks/{IO6J4PAN.cjs → GSETTLOU.cjs} +2 -2
- package/cjs/__chunks/{RNGIWUQW.cjs → HQEKHRPP.cjs} +2 -2
- package/cjs/__chunks/{7HJPL3H2.cjs → ITQETTAV.cjs} +4 -4
- package/cjs/__chunks/{NY3D6JQT.cjs → JFNPRZX3.cjs} +2 -2
- package/cjs/__chunks/{G2ZXRZ2R.cjs → MMRX6FNS.cjs} +2 -2
- package/cjs/__chunks/{VCDQISP7.cjs → N3XK7EAH.cjs} +7 -7
- package/cjs/__chunks/{QCG6J6X5.cjs → NLVGDNPE.cjs} +2 -2
- package/cjs/__chunks/{DAJUUBUI.cjs → OSTQZD2E.cjs} +2 -2
- package/cjs/__chunks/{ZWICHV7O.cjs → PJ646MI7.cjs} +2 -2
- package/cjs/__chunks/{NNINKJTT.cjs → QSU3WKMW.cjs} +2 -2
- package/cjs/__chunks/{H6OLBVHA.cjs → R7ERL264.cjs} +2 -2
- package/cjs/__chunks/{5UTRYT6E.cjs → REJALU3P.cjs} +2 -2
- package/cjs/__chunks/{D4TG5DM4.cjs → UPU6KE6C.cjs} +2 -2
- package/cjs/__chunks/{Z3GCTNW4.cjs → VUEWHLYH.cjs} +1 -1
- package/cjs/button/button.cjs +4 -4
- 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.cjs +4 -4
- 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.cjs +4 -4
- package/cjs/combobox/combobox-cancel.d.cts +3 -2
- package/cjs/combobox/combobox-cancel.d.ts +3 -2
- package/cjs/combobox/combobox-disclosure.cjs +6 -6
- 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.cjs +4 -4
- package/cjs/combobox/combobox-item.d.cts +11 -9
- package/cjs/combobox/combobox-item.d.ts +11 -9
- package/cjs/combobox/combobox-list.cjs +3 -3
- package/cjs/combobox/combobox-list.d.cts +1 -4
- package/cjs/combobox/combobox-list.d.ts +1 -4
- package/cjs/combobox/combobox-popover.cjs +10 -10
- 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.cjs +3 -3
- package/cjs/combobox/combobox.d.cts +45 -33
- package/cjs/combobox/combobox.d.ts +45 -33
- package/cjs/command/command.cjs +3 -3
- 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.cjs +4 -4
- package/cjs/composite/composite-item.d.cts +49 -9
- package/cjs/composite/composite-item.d.ts +49 -9
- package/cjs/composite/composite-overflow-disclosure.cjs +9 -9
- package/cjs/composite/composite-overflow.cjs +7 -7
- 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.cjs +3 -3
- package/cjs/composite/composite.d.cts +65 -10
- package/cjs/composite/composite.d.ts +65 -10
- package/cjs/dialog/dialog-disclosure.cjs +6 -6
- package/cjs/dialog/dialog-disclosure.d.cts +2 -1
- package/cjs/dialog/dialog-disclosure.d.ts +2 -1
- package/cjs/dialog/dialog-dismiss.cjs +5 -5
- 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 +6 -6
- 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.cjs +5 -5
- 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.cjs +2 -2
- package/cjs/focusable/focusable.d.cts +5 -2
- package/cjs/focusable/focusable.d.ts +5 -2
- package/cjs/form/form-checkbox.cjs +8 -8
- 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 +4 -4
- 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.cjs +4 -4
- 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 +7 -7
- package/cjs/form/form-radio.d.cts +8 -4
- package/cjs/form/form-radio.d.ts +8 -4
- package/cjs/form/form-remove.cjs +4 -4
- package/cjs/form/form-remove.d.cts +17 -2
- package/cjs/form/form-remove.d.ts +17 -2
- package/cjs/form/form-reset.cjs +4 -4
- 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.cjs +4 -4
- 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.cjs +3 -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.cjs +6 -6
- package/cjs/hovercard/hovercard-disclosure.d.cts +1 -1
- package/cjs/hovercard/hovercard-disclosure.d.ts +1 -1
- package/cjs/hovercard/hovercard-dismiss.cjs +7 -7
- 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 +8 -8
- 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.cjs +4 -4
- 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.cjs +9 -9
- 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.cjs +7 -7
- 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 +9 -9
- 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.cjs +7 -7
- 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.cjs +5 -5
- package/cjs/menu/menu-item.d.cts +10 -11
- package/cjs/menu/menu-item.d.ts +10 -11
- package/cjs/menu/menu-list.cjs +4 -4
- 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 +12 -12
- 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.cjs +4 -4
- 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.cjs +7 -7
- package/cjs/popover/popover-disclosure.d.cts +3 -2
- package/cjs/popover/popover-disclosure.d.ts +3 -2
- package/cjs/popover/popover-dismiss.cjs +6 -6
- 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 +7 -7
- 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.cjs +3 -3
- 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.cjs +5 -5
- 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.cjs +4 -4
- package/cjs/select/select-item.d.cts +1 -5
- package/cjs/select/select-item.d.ts +1 -5
- package/cjs/select/select-list.cjs +4 -4
- package/cjs/select/select-list.d.cts +7 -4
- package/cjs/select/select-list.d.ts +7 -4
- package/cjs/select/select-popover.cjs +11 -11
- 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 +15 -13
- package/cjs/select/select.d.cts +25 -15
- package/cjs/select/select.d.ts +25 -15
- package/cjs/tab/tab-list.cjs +3 -3
- package/cjs/tab/tab-list.d.cts +2 -1
- package/cjs/tab/tab-list.d.ts +2 -1
- package/cjs/tab/tab-panel.cjs +2 -2
- 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.cjs +4 -4
- package/cjs/tab/tab.d.cts +2 -2
- package/cjs/tab/tab.d.ts +2 -2
- package/cjs/toolbar/toolbar-container.cjs +5 -5
- package/cjs/toolbar/toolbar-container.d.cts +1 -1
- package/cjs/toolbar/toolbar-container.d.ts +1 -1
- package/cjs/toolbar/toolbar-input.cjs +5 -5
- package/cjs/toolbar/toolbar-input.d.cts +2 -1
- package/cjs/toolbar/toolbar-input.d.ts +2 -1
- package/cjs/toolbar/toolbar-item.cjs +5 -5
- 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/toolbar/toolbar.cjs +3 -3
- package/cjs/tooltip/tooltip-anchor.cjs +3 -3
- 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 +9 -9
- package/cjs/tooltip/tooltip.d.cts +3 -1
- package/cjs/tooltip/tooltip.d.ts +3 -1
- package/esm/__chunks/{7QTPYGNZ.js → 2P5JZHCE.js} +1 -1
- package/esm/__chunks/{FS2EVEJO.js → 4GO43MST.js} +8 -8
- package/esm/__chunks/{Y6467XPW.js → 53AZXSRJ.js} +1 -1
- package/esm/__chunks/{KK7H3W2B.js → 54DTKZT5.js} +1 -1
- package/esm/__chunks/{A6XC27R5.js → A2OYJMGS.js} +1 -1
- package/esm/__chunks/{NWCBQ4CV.js → BVNGIDQK.js} +1 -1
- package/esm/__chunks/{BHEJ6NUH.js → CM2MGWJJ.js} +1 -1
- package/esm/__chunks/{7NHUGSTF.js → E7J4UKND.js} +1 -1
- package/esm/__chunks/{EPBRINPG.js → EWG7ZSIX.js} +2 -2
- package/esm/__chunks/{3AHQ6JCP.js → H5L25YOA.js} +1 -1
- package/esm/__chunks/{NKXUN25E.js → H67RUTIW.js} +1 -1
- package/esm/__chunks/{7X4DYKYU.js → HKLZHXNQ.js} +1 -1
- package/esm/__chunks/{VDNZBO4W.js → JH4A3V7P.js} +1 -1
- package/esm/__chunks/{F6PRXTDU.js → O4GQD6D6.js} +1 -1
- package/esm/__chunks/{SU2GU5JB.js → OYQPK2TA.js} +1 -1
- package/esm/__chunks/{4ZEZYKUR.js → PHR7QED4.js} +1 -1
- package/esm/__chunks/{H3TG2CZP.js → PUBUTPR6.js} +1 -1
- package/esm/__chunks/{PGAEII2Q.js → SNX6RSV7.js} +5 -5
- package/esm/__chunks/{FGMA3QUS.js → ST3UVMBD.js} +1 -1
- package/esm/__chunks/{ZEXNX5JH.js → U5OL5Z27.js} +1 -1
- package/esm/__chunks/{UK7JL7PY.js → VR7H4JAI.js} +1 -1
- package/esm/__chunks/{QZLXIDNP.js → W7TET3D7.js} +1 -1
- package/esm/__chunks/{HHNFDKU2.js → WVGRWYXJ.js} +1 -1
- package/esm/__chunks/{JL6IRDFK.js → ZICNKKFD.js} +1 -1
- package/esm/button/button.d.ts +1 -1
- package/esm/button/button.js +3 -3
- 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/checkbox/checkbox.js +3 -3
- 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-cancel.js +3 -3
- package/esm/combobox/combobox-disclosure.d.ts +7 -2
- package/esm/combobox/combobox-disclosure.js +5 -5
- 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-item.js +3 -3
- package/esm/combobox/combobox-list.d.ts +1 -4
- package/esm/combobox/combobox-list.js +2 -2
- package/esm/combobox/combobox-popover.d.ts +2 -3
- package/esm/combobox/combobox-popover.js +7 -7
- 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/combobox/combobox.js +2 -2
- package/esm/command/command.d.ts +1 -1
- package/esm/command/command.js +2 -2
- 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-item.js +3 -3
- package/esm/composite/composite-overflow-disclosure.js +7 -7
- package/esm/composite/composite-overflow.js +6 -6
- 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/composite/composite.js +2 -2
- package/esm/dialog/dialog-disclosure.d.ts +2 -1
- package/esm/dialog/dialog-disclosure.js +5 -5
- package/esm/dialog/dialog-dismiss.d.ts +2 -1
- package/esm/dialog/dialog-dismiss.js +4 -4
- 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 +5 -5
- 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/disclosure/disclosure.js +4 -4
- 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/focusable/focusable.js +1 -1
- package/esm/form/form-checkbox.d.ts +6 -4
- package/esm/form/form-checkbox.js +9 -9
- 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 +4 -4
- 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-push.js +3 -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 +7 -7
- package/esm/form/form-remove.d.ts +17 -2
- package/esm/form/form-remove.js +3 -3
- package/esm/form/form-reset.d.ts +5 -2
- package/esm/form/form-reset.js +3 -3
- package/esm/form/form-store.d.ts +31 -14
- package/esm/form/form-submit.d.ts +8 -2
- package/esm/form/form-submit.js +3 -3
- 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-anchor.js +2 -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-disclosure.js +5 -5
- package/esm/hovercard/hovercard-dismiss.d.ts +3 -2
- package/esm/hovercard/hovercard-dismiss.js +6 -6
- 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 +7 -7
- package/esm/menu/menu-arrow.d.ts +4 -2
- package/esm/menu/menu-bar.d.ts +1 -2
- package/esm/menu/menu-bar.js +3 -3
- package/esm/menu/menu-button-arrow.d.ts +9 -4
- package/esm/menu/menu-button.d.ts +8 -7
- package/esm/menu/menu-button.js +7 -7
- package/esm/menu/menu-description.d.ts +2 -2
- package/esm/menu/menu-dismiss.d.ts +3 -2
- package/esm/menu/menu-dismiss.js +6 -6
- 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 +8 -8
- package/esm/menu/menu-item-radio.d.ts +21 -9
- package/esm/menu/menu-item-radio.js +5 -5
- package/esm/menu/menu-item.d.ts +10 -11
- package/esm/menu/menu-item.js +4 -4
- package/esm/menu/menu-list.d.ts +7 -2
- package/esm/menu/menu-list.js +3 -3
- 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 +9 -9
- 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/menubar/menubar.js +3 -3
- 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-disclosure.js +6 -6
- package/esm/popover/popover-dismiss.d.ts +1 -1
- package/esm/popover/popover-dismiss.js +5 -5
- 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 +6 -6
- package/esm/portal/portal.d.ts +18 -1
- package/esm/radio/radio-group.d.ts +8 -6
- package/esm/radio/radio-group.js +2 -2
- 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/radio/radio.js +4 -4
- 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-item.js +3 -3
- package/esm/select/select-list.d.ts +7 -4
- package/esm/select/select-list.js +3 -3
- package/esm/select/select-popover.js +8 -8
- 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 +14 -12
- package/esm/tab/tab-list.d.ts +2 -1
- package/esm/tab/tab-list.js +2 -2
- package/esm/tab/tab-panel.d.ts +19 -3
- package/esm/tab/tab-panel.js +1 -1
- 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/tab/tab.js +3 -3
- package/esm/toolbar/toolbar-container.d.ts +1 -1
- package/esm/toolbar/toolbar-container.js +4 -4
- package/esm/toolbar/toolbar-input.d.ts +2 -1
- package/esm/toolbar/toolbar-input.js +4 -4
- package/esm/toolbar/toolbar-item.d.ts +2 -1
- package/esm/toolbar/toolbar-item.js +4 -4
- 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/toolbar/toolbar.js +2 -2
- package/esm/tooltip/tooltip-anchor.d.ts +3 -3
- package/esm/tooltip/tooltip-anchor.js +2 -2
- 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 +7 -7
- 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
|
@@ -20,11 +20,16 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const useComboboxDisclosure: import("../utils/types.js").Hook<ComboboxDisclosureOptions<"button">>;
|
|
22
22
|
/**
|
|
23
|
-
* Renders a combobox disclosure button that toggles the
|
|
23
|
+
* Renders a combobox disclosure button that toggles the
|
|
24
|
+
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover) element's
|
|
24
25
|
* visibility when clicked.
|
|
26
|
+
*
|
|
27
|
+
* Although this button is not tabbable, it remains accessible to screen reader
|
|
28
|
+
* users. On clicking, it automatically shifts focus to the
|
|
29
|
+
* [`Combobox`](https://ariakit.org/reference/combobox) element.
|
|
25
30
|
* @see https://ariakit.org/components/combobox
|
|
26
31
|
* @example
|
|
27
|
-
* ```jsx
|
|
32
|
+
* ```jsx {3}
|
|
28
33
|
* <ComboboxProvider>
|
|
29
34
|
* <Combobox />
|
|
30
35
|
* <ComboboxDisclosure />
|
|
@@ -16,11 +16,11 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
16
16
|
export declare const useComboboxGroupLabel: import("../utils/types.js").Hook<ComboboxGroupLabelOptions<"div">>;
|
|
17
17
|
/**
|
|
18
18
|
* Renders a label in a combobox group. This component should be wrapped with
|
|
19
|
-
* `ComboboxGroup` so the
|
|
20
|
-
* group element.
|
|
19
|
+
* [`ComboboxGroup`](https://ariakit.org/reference/combobox-group) so the
|
|
20
|
+
* `aria-labelledby` is correctly set on the group element.
|
|
21
21
|
* @see https://ariakit.org/components/combobox
|
|
22
22
|
* @example
|
|
23
|
-
* ```jsx
|
|
23
|
+
* ```jsx {5}
|
|
24
24
|
* <ComboboxProvider>
|
|
25
25
|
* <Combobox />
|
|
26
26
|
* <ComboboxPopover>
|
|
@@ -38,7 +38,7 @@ export interface ComboboxGroupLabelOptions<T extends As = "div"> extends Composi
|
|
|
38
38
|
/**
|
|
39
39
|
* Object returned by the
|
|
40
40
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
41
|
-
* hook. If not provided, the
|
|
41
|
+
* hook. If not provided, the closest
|
|
42
42
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
43
43
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
44
44
|
* components' context will be used.
|
|
@@ -16,11 +16,11 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
16
16
|
export declare const useComboboxGroupLabel: import("../utils/types.js").Hook<ComboboxGroupLabelOptions<"div">>;
|
|
17
17
|
/**
|
|
18
18
|
* Renders a label in a combobox group. This component should be wrapped with
|
|
19
|
-
* `ComboboxGroup` so the
|
|
20
|
-
* group element.
|
|
19
|
+
* [`ComboboxGroup`](https://ariakit.org/reference/combobox-group) so the
|
|
20
|
+
* `aria-labelledby` is correctly set on the group element.
|
|
21
21
|
* @see https://ariakit.org/components/combobox
|
|
22
22
|
* @example
|
|
23
|
-
* ```jsx
|
|
23
|
+
* ```jsx {5}
|
|
24
24
|
* <ComboboxProvider>
|
|
25
25
|
* <Combobox />
|
|
26
26
|
* <ComboboxPopover>
|
|
@@ -38,7 +38,7 @@ export interface ComboboxGroupLabelOptions<T extends As = "div"> extends Composi
|
|
|
38
38
|
/**
|
|
39
39
|
* Object returned by the
|
|
40
40
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
41
|
-
* hook. If not provided, the
|
|
41
|
+
* hook. If not provided, the closest
|
|
42
42
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
43
43
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
44
44
|
* components' context will be used.
|
|
@@ -20,10 +20,14 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const useComboboxGroup: import("../utils/types.js").Hook<ComboboxGroupOptions<"div">>;
|
|
22
22
|
/**
|
|
23
|
-
* Renders a
|
|
23
|
+
* Renders a group for
|
|
24
|
+
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) elements.
|
|
25
|
+
* Optionally, a
|
|
26
|
+
* [`ComboboxGroupLabel`](https://ariakit.org/reference/combobox-group-label)
|
|
27
|
+
* can be rendered as a child to provide a label for the group.
|
|
24
28
|
* @see https://ariakit.org/components/combobox
|
|
25
29
|
* @example
|
|
26
|
-
* ```jsx
|
|
30
|
+
* ```jsx {4-8}
|
|
27
31
|
* <ComboboxProvider>
|
|
28
32
|
* <Combobox />
|
|
29
33
|
* <ComboboxPopover>
|
|
@@ -41,7 +45,7 @@ export interface ComboboxGroupOptions<T extends As = "div"> extends CompositeGro
|
|
|
41
45
|
/**
|
|
42
46
|
* Object returned by the
|
|
43
47
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
44
|
-
* hook. If not provided, the
|
|
48
|
+
* hook. If not provided, the closest
|
|
45
49
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
46
50
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
47
51
|
* components' context will be used.
|
|
@@ -20,10 +20,14 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const useComboboxGroup: import("../utils/types.js").Hook<ComboboxGroupOptions<"div">>;
|
|
22
22
|
/**
|
|
23
|
-
* Renders a
|
|
23
|
+
* Renders a group for
|
|
24
|
+
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) elements.
|
|
25
|
+
* Optionally, a
|
|
26
|
+
* [`ComboboxGroupLabel`](https://ariakit.org/reference/combobox-group-label)
|
|
27
|
+
* can be rendered as a child to provide a label for the group.
|
|
24
28
|
* @see https://ariakit.org/components/combobox
|
|
25
29
|
* @example
|
|
26
|
-
* ```jsx
|
|
30
|
+
* ```jsx {4-8}
|
|
27
31
|
* <ComboboxProvider>
|
|
28
32
|
* <Combobox />
|
|
29
33
|
* <ComboboxPopover>
|
|
@@ -41,7 +45,7 @@ export interface ComboboxGroupOptions<T extends As = "div"> extends CompositeGro
|
|
|
41
45
|
/**
|
|
42
46
|
* Object returned by the
|
|
43
47
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
44
|
-
* hook. If not provided, the
|
|
48
|
+
* hook. If not provided, the closest
|
|
45
49
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
46
50
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
47
51
|
* components' context will be used.
|
|
@@ -14,12 +14,15 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const useComboboxItemCheck: import("../utils/types.js").Hook<ComboboxItemCheckOptions<"span">>;
|
|
16
16
|
/**
|
|
17
|
-
* Renders a checkmark
|
|
18
|
-
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) component. This
|
|
19
|
-
* component must be wrapped with
|
|
20
|
-
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) or the
|
|
17
|
+
* Renders a checkmark icon when the
|
|
21
18
|
* [`checked`](https://ariakit.org/reference/combobox-item-check#checked) prop
|
|
22
|
-
*
|
|
19
|
+
* is `true`. The icon can be overridden by providing a different one as
|
|
20
|
+
* children.
|
|
21
|
+
*
|
|
22
|
+
* When rendered inside a
|
|
23
|
+
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) component, the
|
|
24
|
+
* [`checked`](https://ariakit.org/reference/combobox-item-check#checked) prop
|
|
25
|
+
* is automatically derived from the context.
|
|
23
26
|
* @see https://ariakit.org/components/combobox
|
|
24
27
|
* @example
|
|
25
28
|
* ```jsx {5,9}
|
|
@@ -43,18 +46,8 @@ export interface ComboboxItemCheckOptions<T extends As = "span"> extends Checkbo
|
|
|
43
46
|
/**
|
|
44
47
|
* Object returned by the
|
|
45
48
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
46
|
-
* hook.
|
|
47
|
-
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
48
|
-
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
49
|
-
* components' context will be used.
|
|
49
|
+
* hook.
|
|
50
50
|
*/
|
|
51
51
|
store?: ComboboxStore;
|
|
52
|
-
/**
|
|
53
|
-
* Whether the check mark should be shown. This value is automatically
|
|
54
|
-
* inferred from the parent
|
|
55
|
-
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) component.
|
|
56
|
-
* Manually setting this prop will override the inferred value.
|
|
57
|
-
*/
|
|
58
|
-
checked?: boolean;
|
|
59
52
|
}
|
|
60
53
|
export type ComboboxItemCheckProps<T extends As = "span"> = Props<ComboboxItemCheckOptions<T>>;
|
|
@@ -14,12 +14,15 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const useComboboxItemCheck: import("../utils/types.js").Hook<ComboboxItemCheckOptions<"span">>;
|
|
16
16
|
/**
|
|
17
|
-
* Renders a checkmark
|
|
18
|
-
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) component. This
|
|
19
|
-
* component must be wrapped with
|
|
20
|
-
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) or the
|
|
17
|
+
* Renders a checkmark icon when the
|
|
21
18
|
* [`checked`](https://ariakit.org/reference/combobox-item-check#checked) prop
|
|
22
|
-
*
|
|
19
|
+
* is `true`. The icon can be overridden by providing a different one as
|
|
20
|
+
* children.
|
|
21
|
+
*
|
|
22
|
+
* When rendered inside a
|
|
23
|
+
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) component, the
|
|
24
|
+
* [`checked`](https://ariakit.org/reference/combobox-item-check#checked) prop
|
|
25
|
+
* is automatically derived from the context.
|
|
23
26
|
* @see https://ariakit.org/components/combobox
|
|
24
27
|
* @example
|
|
25
28
|
* ```jsx {5,9}
|
|
@@ -43,18 +46,8 @@ export interface ComboboxItemCheckOptions<T extends As = "span"> extends Checkbo
|
|
|
43
46
|
/**
|
|
44
47
|
* Object returned by the
|
|
45
48
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
46
|
-
* hook.
|
|
47
|
-
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
48
|
-
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
49
|
-
* components' context will be used.
|
|
49
|
+
* hook.
|
|
50
50
|
*/
|
|
51
51
|
store?: ComboboxStore;
|
|
52
|
-
/**
|
|
53
|
-
* Whether the check mark should be shown. This value is automatically
|
|
54
|
-
* inferred from the parent
|
|
55
|
-
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) component.
|
|
56
|
-
* Manually setting this prop will override the inferred value.
|
|
57
|
-
*/
|
|
58
|
-
checked?: boolean;
|
|
59
52
|
}
|
|
60
53
|
export type ComboboxItemCheckProps<T extends As = "span"> = Props<ComboboxItemCheckOptions<T>>;
|
|
@@ -23,13 +23,16 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
23
23
|
*/
|
|
24
24
|
export declare const useComboboxItemValue: import("../utils/types.js").Hook<ComboboxItemValueOptions<"span">>;
|
|
25
25
|
/**
|
|
26
|
-
* Renders a value element inside a
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
26
|
+
* Renders a value element inside a
|
|
27
|
+
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item). The value will
|
|
28
|
+
* be split into span elements. The portions of the value that correspond to the
|
|
29
|
+
* combobox value will have a
|
|
30
|
+
* [`data-user-value`](https://ariakit.org/guide/styling#data-user-value)
|
|
31
|
+
* attribute. The other portions will have a [`data-autocomplete-value`](https://ariakit.org/guide/styling#data-autocomplete-value)
|
|
32
|
+
* attribute.
|
|
30
33
|
* @see https://ariakit.org/components/combobox
|
|
31
34
|
* @example
|
|
32
|
-
* ```jsx
|
|
35
|
+
* ```jsx {5} "value"
|
|
33
36
|
* <ComboboxProvider value="p">
|
|
34
37
|
* <Combobox />
|
|
35
38
|
* <ComboboxPopover>
|
|
@@ -53,15 +56,17 @@ export interface ComboboxItemValueOptions<T extends As = "span"> extends Options
|
|
|
53
56
|
/**
|
|
54
57
|
* Object returned by the
|
|
55
58
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
56
|
-
* hook. If not provided, the
|
|
59
|
+
* hook. If not provided, the closest
|
|
57
60
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
58
61
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
59
62
|
* components' context will be used.
|
|
60
63
|
*/
|
|
61
64
|
store?: ComboboxStore;
|
|
62
65
|
/**
|
|
63
|
-
* The current combobox item value. If not provided, the parent
|
|
64
|
-
* component's
|
|
66
|
+
* The current combobox item value. If not provided, the parent
|
|
67
|
+
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) component's
|
|
68
|
+
* [`value`](https://ariakit.org/reference/combobox-item#value) prop will be
|
|
69
|
+
* used.
|
|
65
70
|
*/
|
|
66
71
|
value?: string;
|
|
67
72
|
}
|
|
@@ -23,13 +23,16 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
23
23
|
*/
|
|
24
24
|
export declare const useComboboxItemValue: import("../utils/types.js").Hook<ComboboxItemValueOptions<"span">>;
|
|
25
25
|
/**
|
|
26
|
-
* Renders a value element inside a
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
26
|
+
* Renders a value element inside a
|
|
27
|
+
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item). The value will
|
|
28
|
+
* be split into span elements. The portions of the value that correspond to the
|
|
29
|
+
* combobox value will have a
|
|
30
|
+
* [`data-user-value`](https://ariakit.org/guide/styling#data-user-value)
|
|
31
|
+
* attribute. The other portions will have a [`data-autocomplete-value`](https://ariakit.org/guide/styling#data-autocomplete-value)
|
|
32
|
+
* attribute.
|
|
30
33
|
* @see https://ariakit.org/components/combobox
|
|
31
34
|
* @example
|
|
32
|
-
* ```jsx
|
|
35
|
+
* ```jsx {5} "value"
|
|
33
36
|
* <ComboboxProvider value="p">
|
|
34
37
|
* <Combobox />
|
|
35
38
|
* <ComboboxPopover>
|
|
@@ -53,15 +56,17 @@ export interface ComboboxItemValueOptions<T extends As = "span"> extends Options
|
|
|
53
56
|
/**
|
|
54
57
|
* Object returned by the
|
|
55
58
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
56
|
-
* hook. If not provided, the
|
|
59
|
+
* hook. If not provided, the closest
|
|
57
60
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
58
61
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
59
62
|
* components' context will be used.
|
|
60
63
|
*/
|
|
61
64
|
store?: ComboboxStore;
|
|
62
65
|
/**
|
|
63
|
-
* The current combobox item value. If not provided, the parent
|
|
64
|
-
* component's
|
|
66
|
+
* The current combobox item value. If not provided, the parent
|
|
67
|
+
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) component's
|
|
68
|
+
* [`value`](https://ariakit.org/reference/combobox-item#value) prop will be
|
|
69
|
+
* used.
|
|
65
70
|
*/
|
|
66
71
|
value?: string;
|
|
67
72
|
}
|
|
@@ -9,8 +9,8 @@ var _IPYAEPOTcjs = require('../__chunks/IPYAEPOT.cjs');
|
|
|
9
9
|
var _3WCBE6SUcjs = require('../__chunks/3WCBE6SU.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('../__chunks/
|
|
12
|
+
var _GSETTLOUcjs = require('../__chunks/GSETTLOU.cjs');
|
|
13
|
+
require('../__chunks/OSTQZD2E.cjs');
|
|
14
14
|
require('../__chunks/R5A2WTWB.cjs');
|
|
15
15
|
require('../__chunks/6ZZYUFPW.cjs');
|
|
16
16
|
require('../__chunks/UZNYSPKP.cjs');
|
|
@@ -18,7 +18,7 @@ require('../__chunks/BZTDJIVT.cjs');
|
|
|
18
18
|
require('../__chunks/UVBBMANL.cjs');
|
|
19
19
|
require('../__chunks/F2A2ZQDB.cjs');
|
|
20
20
|
require('../__chunks/S6UU7NA4.cjs');
|
|
21
|
-
require('../__chunks/
|
|
21
|
+
require('../__chunks/VUEWHLYH.cjs');
|
|
22
22
|
require('../__chunks/75KXQZJX.cjs');
|
|
23
23
|
|
|
24
24
|
|
|
@@ -169,7 +169,7 @@ var useComboboxItem = _RNZNGEL4cjs.createHook.call(void 0,
|
|
|
169
169
|
onKeyDown
|
|
170
170
|
});
|
|
171
171
|
const moveOnKeyPressProp = _EO6LS72Hcjs.useBooleanEvent.call(void 0, moveOnKeyPress);
|
|
172
|
-
props =
|
|
172
|
+
props = _GSETTLOUcjs.useCompositeItem.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
|
|
173
173
|
store
|
|
174
174
|
}, props), {
|
|
175
175
|
getItem,
|
|
@@ -16,19 +16,16 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const useComboboxItem: import("../utils/types.js").Hook<ComboboxItemOptions<"div">>;
|
|
18
18
|
/**
|
|
19
|
-
* Renders a combobox item inside
|
|
19
|
+
* Renders a combobox item inside
|
|
20
20
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
21
21
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
22
|
-
* components.
|
|
23
|
-
* `role` prop. For example, if the list `role` is set to `listbox` (default),
|
|
24
|
-
* the `ComboboxItem` `role` will be set to `option`.
|
|
22
|
+
* components.
|
|
25
23
|
*
|
|
26
|
-
* By default, the
|
|
27
|
-
*
|
|
28
|
-
* rendered as the children, but this can be overriden.
|
|
24
|
+
* By default, the [`value`](https://ariakit.org/reference/combobox-item#value)
|
|
25
|
+
* prop will be rendered as the children, but this can be overriden.
|
|
29
26
|
* @see https://ariakit.org/components/combobox
|
|
30
27
|
* @example
|
|
31
|
-
* ```jsx
|
|
28
|
+
* ```jsx {4-6}
|
|
32
29
|
* <ComboboxProvider>
|
|
33
30
|
* <Combobox />
|
|
34
31
|
* <ComboboxPopover>
|
|
@@ -44,10 +41,13 @@ export interface ComboboxItemOptions<T extends As = "div"> extends CompositeItem
|
|
|
44
41
|
/**
|
|
45
42
|
* Object returned by the
|
|
46
43
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
47
|
-
* hook. If not provided, the
|
|
44
|
+
* hook. If not provided, the closest
|
|
48
45
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
49
46
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
50
47
|
* components' context will be used.
|
|
48
|
+
*
|
|
49
|
+
* Live examples:
|
|
50
|
+
* - [Navigation Menubar](https://ariakit.org/examples/menubar-navigation)
|
|
51
51
|
*/
|
|
52
52
|
store?: ComboboxStore;
|
|
53
53
|
/**
|
|
@@ -86,6 +86,8 @@ export interface ComboboxItemOptions<T extends As = "div"> extends CompositeItem
|
|
|
86
86
|
*
|
|
87
87
|
* Live examples:
|
|
88
88
|
* - [Combobox with links](https://ariakit.org/examples/combobox-links)
|
|
89
|
+
* - [Submenu with
|
|
90
|
+
* Combobox](https://ariakit.org/examples/menu-nested-combobox)
|
|
89
91
|
*/
|
|
90
92
|
hideOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
91
93
|
/**
|
|
@@ -16,19 +16,16 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const useComboboxItem: import("../utils/types.js").Hook<ComboboxItemOptions<"div">>;
|
|
18
18
|
/**
|
|
19
|
-
* Renders a combobox item inside
|
|
19
|
+
* Renders a combobox item inside
|
|
20
20
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
21
21
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
22
|
-
* components.
|
|
23
|
-
* `role` prop. For example, if the list `role` is set to `listbox` (default),
|
|
24
|
-
* the `ComboboxItem` `role` will be set to `option`.
|
|
22
|
+
* components.
|
|
25
23
|
*
|
|
26
|
-
* By default, the
|
|
27
|
-
*
|
|
28
|
-
* rendered as the children, but this can be overriden.
|
|
24
|
+
* By default, the [`value`](https://ariakit.org/reference/combobox-item#value)
|
|
25
|
+
* prop will be rendered as the children, but this can be overriden.
|
|
29
26
|
* @see https://ariakit.org/components/combobox
|
|
30
27
|
* @example
|
|
31
|
-
* ```jsx
|
|
28
|
+
* ```jsx {4-6}
|
|
32
29
|
* <ComboboxProvider>
|
|
33
30
|
* <Combobox />
|
|
34
31
|
* <ComboboxPopover>
|
|
@@ -44,10 +41,13 @@ export interface ComboboxItemOptions<T extends As = "div"> extends CompositeItem
|
|
|
44
41
|
/**
|
|
45
42
|
* Object returned by the
|
|
46
43
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
47
|
-
* hook. If not provided, the
|
|
44
|
+
* hook. If not provided, the closest
|
|
48
45
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
49
46
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
50
47
|
* components' context will be used.
|
|
48
|
+
*
|
|
49
|
+
* Live examples:
|
|
50
|
+
* - [Navigation Menubar](https://ariakit.org/examples/menubar-navigation)
|
|
51
51
|
*/
|
|
52
52
|
store?: ComboboxStore;
|
|
53
53
|
/**
|
|
@@ -86,6 +86,8 @@ export interface ComboboxItemOptions<T extends As = "div"> extends CompositeItem
|
|
|
86
86
|
*
|
|
87
87
|
* Live examples:
|
|
88
88
|
* - [Combobox with links](https://ariakit.org/examples/combobox-links)
|
|
89
|
+
* - [Submenu with
|
|
90
|
+
* Combobox](https://ariakit.org/examples/menu-nested-combobox)
|
|
89
91
|
*/
|
|
90
92
|
hideOnClick?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
91
93
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _UPU6KE6Ccjs = require('../__chunks/UPU6KE6C.cjs');
|
|
6
6
|
require('../__chunks/3WCBE6SU.cjs');
|
|
7
7
|
require('../__chunks/UZNYSPKP.cjs');
|
|
8
8
|
require('../__chunks/BZTDJIVT.cjs');
|
|
@@ -10,7 +10,7 @@ require('../__chunks/YPVQYY4J.cjs');
|
|
|
10
10
|
require('../__chunks/UVBBMANL.cjs');
|
|
11
11
|
require('../__chunks/F2A2ZQDB.cjs');
|
|
12
12
|
require('../__chunks/S6UU7NA4.cjs');
|
|
13
|
-
require('../__chunks/
|
|
13
|
+
require('../__chunks/VUEWHLYH.cjs');
|
|
14
14
|
require('../__chunks/75KXQZJX.cjs');
|
|
15
15
|
require('../__chunks/RNZNGEL4.cjs');
|
|
16
16
|
require('../__chunks/OLOZ5JT2.cjs');
|
|
@@ -20,4 +20,4 @@ require('../__chunks/AV6KTKLE.cjs');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
exports.ComboboxList =
|
|
23
|
+
exports.ComboboxList = _UPU6KE6Ccjs.ComboboxList; exports.useComboboxList = _UPU6KE6Ccjs.useComboboxList;
|
|
@@ -21,12 +21,9 @@ export declare const useComboboxList: import("../utils/types.js").Hook<ComboboxL
|
|
|
21
21
|
* Renders a combobox list. The `role` prop is set to `listbox` by default, but
|
|
22
22
|
* can be overriden by any other valid combobox popup role (`listbox`, `menu`,
|
|
23
23
|
* `tree`, `grid` or `dialog`).
|
|
24
|
-
*
|
|
25
|
-
* The `aria-labelledby` prop is set to the combobox input element's `id` by
|
|
26
|
-
* default.
|
|
27
24
|
* @see https://ariakit.org/components/combobox
|
|
28
25
|
* @example
|
|
29
|
-
* ```jsx
|
|
26
|
+
* ```jsx {3-7}
|
|
30
27
|
* <ComboboxProvider>
|
|
31
28
|
* <Combobox />
|
|
32
29
|
* <ComboboxList>
|
|
@@ -21,12 +21,9 @@ export declare const useComboboxList: import("../utils/types.js").Hook<ComboboxL
|
|
|
21
21
|
* Renders a combobox list. The `role` prop is set to `listbox` by default, but
|
|
22
22
|
* can be overriden by any other valid combobox popup role (`listbox`, `menu`,
|
|
23
23
|
* `tree`, `grid` or `dialog`).
|
|
24
|
-
*
|
|
25
|
-
* The `aria-labelledby` prop is set to the combobox input element's `id` by
|
|
26
|
-
* default.
|
|
27
24
|
* @see https://ariakit.org/components/combobox
|
|
28
25
|
* @example
|
|
29
|
-
* ```jsx
|
|
26
|
+
* ```jsx {3-7}
|
|
30
27
|
* <ComboboxProvider>
|
|
31
28
|
* <Combobox />
|
|
32
29
|
* <ComboboxList>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _UPU6KE6Ccjs = require('../__chunks/UPU6KE6C.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _3WCBE6SUcjs = require('../__chunks/3WCBE6SU.cjs');
|
|
@@ -9,12 +9,12 @@ require('../__chunks/UZNYSPKP.cjs');
|
|
|
9
9
|
require('../__chunks/BZTDJIVT.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _CIZTEPFOcjs = require('../__chunks/CIZTEPFO.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _FGHQW2WScjs = require('../__chunks/FGHQW2WS.cjs');
|
|
16
16
|
require('../__chunks/WZ3DRKGP.cjs');
|
|
17
|
-
require('../__chunks/
|
|
17
|
+
require('../__chunks/KSPMHEYZ.cjs');
|
|
18
18
|
require('../__chunks/PZL34OVO.cjs');
|
|
19
19
|
require('../__chunks/344F3DYO.cjs');
|
|
20
20
|
require('../__chunks/KREY6HXD.cjs');
|
|
@@ -22,11 +22,11 @@ require('../__chunks/5ZOCN23X.cjs');
|
|
|
22
22
|
require('../__chunks/JVDUGICD.cjs');
|
|
23
23
|
require('../__chunks/VV6WA3I6.cjs');
|
|
24
24
|
require('../__chunks/7YLCVXZ7.cjs');
|
|
25
|
+
require('../__chunks/5GTNIPQ6.cjs');
|
|
25
26
|
require('../__chunks/7TN63K2T.cjs');
|
|
27
|
+
require('../__chunks/V24PR4PW.cjs');
|
|
26
28
|
require('../__chunks/6IUEXB4L.cjs');
|
|
27
29
|
require('../__chunks/JF225FQ5.cjs');
|
|
28
|
-
require('../__chunks/5GTNIPQ6.cjs');
|
|
29
|
-
require('../__chunks/V24PR4PW.cjs');
|
|
30
30
|
require('../__chunks/7566TIRW.cjs');
|
|
31
31
|
require('../__chunks/J3OG6T3B.cjs');
|
|
32
32
|
require('../__chunks/65LGW5LY.cjs');
|
|
@@ -38,7 +38,7 @@ require('../__chunks/YPVQYY4J.cjs');
|
|
|
38
38
|
require('../__chunks/UVBBMANL.cjs');
|
|
39
39
|
require('../__chunks/F2A2ZQDB.cjs');
|
|
40
40
|
require('../__chunks/S6UU7NA4.cjs');
|
|
41
|
-
require('../__chunks/
|
|
41
|
+
require('../__chunks/VUEWHLYH.cjs');
|
|
42
42
|
require('../__chunks/75KXQZJX.cjs');
|
|
43
43
|
require('../__chunks/R66IWXK6.cjs');
|
|
44
44
|
|
|
@@ -93,8 +93,8 @@ var useComboboxPopover = _RNZNGEL4cjs.createHook.call(void 0,
|
|
|
93
93
|
process.env.NODE_ENV !== "production" && "ComboboxPopover must receive a `store` prop or be wrapped in a ComboboxProvider component."
|
|
94
94
|
);
|
|
95
95
|
const baseElement = store.useState("baseElement");
|
|
96
|
-
props =
|
|
97
|
-
props =
|
|
96
|
+
props = _UPU6KE6Ccjs.useComboboxList.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, { store, alwaysVisible }, props));
|
|
97
|
+
props = _CIZTEPFOcjs.usePopover.call(void 0, _AV6KTKLEcjs.__spreadProps.call(void 0, _AV6KTKLEcjs.__spreadValues.call(void 0, {
|
|
98
98
|
store,
|
|
99
99
|
modal,
|
|
100
100
|
alwaysVisible,
|
|
@@ -150,7 +150,7 @@ var useComboboxPopover = _RNZNGEL4cjs.createHook.call(void 0,
|
|
|
150
150
|
return props;
|
|
151
151
|
}
|
|
152
152
|
);
|
|
153
|
-
var ComboboxPopover =
|
|
153
|
+
var ComboboxPopover = _FGHQW2WScjs.createDialogComponent.call(void 0,
|
|
154
154
|
_RNZNGEL4cjs.createComponent.call(void 0, (props) => {
|
|
155
155
|
const htmlProps = useComboboxPopover(props);
|
|
156
156
|
return _RNZNGEL4cjs.createElement.call(void 0, "div", htmlProps);
|
|
@@ -19,11 +19,10 @@ export declare const useComboboxPopover: import("../utils/types.js").Hook<Combob
|
|
|
19
19
|
/**
|
|
20
20
|
* Renders a combobox popover. The `role` prop is set to `listbox` by default,
|
|
21
21
|
* but can be overriden by any other valid combobox popup role (`listbox`,
|
|
22
|
-
* `menu`, `tree`, `grid` or `dialog`).
|
|
23
|
-
* combobox input element's `id` by default.
|
|
22
|
+
* `menu`, `tree`, `grid` or `dialog`).
|
|
24
23
|
* @see https://ariakit.org/components/combobox
|
|
25
24
|
* @example
|
|
26
|
-
* ```jsx
|
|
25
|
+
* ```jsx {3-7}
|
|
27
26
|
* <ComboboxProvider>
|
|
28
27
|
* <Combobox />
|
|
29
28
|
* <ComboboxPopover>
|
|
@@ -19,11 +19,10 @@ export declare const useComboboxPopover: import("../utils/types.js").Hook<Combob
|
|
|
19
19
|
/**
|
|
20
20
|
* Renders a combobox popover. The `role` prop is set to `listbox` by default,
|
|
21
21
|
* but can be overriden by any other valid combobox popup role (`listbox`,
|
|
22
|
-
* `menu`, `tree`, `grid` or `dialog`).
|
|
23
|
-
* combobox input element's `id` by default.
|
|
22
|
+
* `menu`, `tree`, `grid` or `dialog`).
|
|
24
23
|
* @see https://ariakit.org/components/combobox
|
|
25
24
|
* @example
|
|
26
|
-
* ```jsx
|
|
25
|
+
* ```jsx {3-7}
|
|
27
26
|
* <ComboboxProvider>
|
|
28
27
|
* <Combobox />
|
|
29
28
|
* <ComboboxPopover>
|
|
@@ -3,7 +3,8 @@ import type { PickRequired } from "@ariakit/core/utils/types";
|
|
|
3
3
|
import type { ComboboxStoreProps, ComboboxStoreSelectedValue } from "./combobox-store.js";
|
|
4
4
|
type Value = ComboboxStoreSelectedValue;
|
|
5
5
|
/**
|
|
6
|
-
* Provides a combobox store
|
|
6
|
+
* Provides a combobox store that controls the state of
|
|
7
|
+
* [Combobox](https://ariakit.org/components/combobox) components.
|
|
7
8
|
* @see https://ariakit.org/components/combobox
|
|
8
9
|
* @example
|
|
9
10
|
* ```jsx
|
|
@@ -3,7 +3,8 @@ import type { PickRequired } from "@ariakit/core/utils/types";
|
|
|
3
3
|
import type { ComboboxStoreProps, ComboboxStoreSelectedValue } from "./combobox-store.js";
|
|
4
4
|
type Value = ComboboxStoreSelectedValue;
|
|
5
5
|
/**
|
|
6
|
-
* Provides a combobox store
|
|
6
|
+
* Provides a combobox store that controls the state of
|
|
7
|
+
* [Combobox](https://ariakit.org/components/combobox) components.
|
|
7
8
|
* @see https://ariakit.org/components/combobox
|
|
8
9
|
* @example
|
|
9
10
|
* ```jsx
|
|
@@ -19,10 +19,13 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const useComboboxRow: import("../utils/types.js").Hook<ComboboxRowOptions<"div">>;
|
|
21
21
|
/**
|
|
22
|
-
* Renders a combobox row.
|
|
22
|
+
* Renders a combobox row that allows two-dimensional arrow key navigation.
|
|
23
|
+
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) elements
|
|
24
|
+
* wrapped within this component will automatically receive a
|
|
25
|
+
* [`rowId`](https://ariakit.org/reference/combobox-item#rowid) prop.
|
|
23
26
|
* @see https://ariakit.org/components/combobox
|
|
24
27
|
* @example
|
|
25
|
-
* ```jsx
|
|
28
|
+
* ```jsx {4-13}
|
|
26
29
|
* <ComboboxProvider>
|
|
27
30
|
* <Combobox />
|
|
28
31
|
* <ComboboxPopover>
|
|
@@ -45,7 +48,7 @@ export interface ComboboxRowOptions<T extends As = "div"> extends CompositeRowOp
|
|
|
45
48
|
/**
|
|
46
49
|
* Object returned by the
|
|
47
50
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
48
|
-
* hook. If not provided, the
|
|
51
|
+
* hook. If not provided, the closest
|
|
49
52
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
50
53
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
51
54
|
* components' context will be used.
|
|
@@ -19,10 +19,13 @@ import type { ComboboxStore } from "./combobox-store.js";
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const useComboboxRow: import("../utils/types.js").Hook<ComboboxRowOptions<"div">>;
|
|
21
21
|
/**
|
|
22
|
-
* Renders a combobox row.
|
|
22
|
+
* Renders a combobox row that allows two-dimensional arrow key navigation.
|
|
23
|
+
* [`ComboboxItem`](https://ariakit.org/reference/combobox-item) elements
|
|
24
|
+
* wrapped within this component will automatically receive a
|
|
25
|
+
* [`rowId`](https://ariakit.org/reference/combobox-item#rowid) prop.
|
|
23
26
|
* @see https://ariakit.org/components/combobox
|
|
24
27
|
* @example
|
|
25
|
-
* ```jsx
|
|
28
|
+
* ```jsx {4-13}
|
|
26
29
|
* <ComboboxProvider>
|
|
27
30
|
* <Combobox />
|
|
28
31
|
* <ComboboxPopover>
|
|
@@ -45,7 +48,7 @@ export interface ComboboxRowOptions<T extends As = "div"> extends CompositeRowOp
|
|
|
45
48
|
/**
|
|
46
49
|
* Object returned by the
|
|
47
50
|
* [`useComboboxStore`](https://ariakit.org/reference/use-combobox-store)
|
|
48
|
-
* hook. If not provided, the
|
|
51
|
+
* hook. If not provided, the closest
|
|
49
52
|
* [`ComboboxList`](https://ariakit.org/reference/combobox-list) or
|
|
50
53
|
* [`ComboboxPopover`](https://ariakit.org/reference/combobox-popover)
|
|
51
54
|
* components' context will be used.
|