@ariakit/react-components 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/button/button.d.ts +2 -0
- package/dist/button/button.js +53 -0
- package/dist/button/button.js.map +1 -0
- package/dist/button-Cp853csH.d.ts +34 -0
- package/dist/button-Cp853csH.d.ts.map +1 -0
- package/dist/checkbox/checkbox-check.d.ts +56 -0
- package/dist/checkbox/checkbox-check.d.ts.map +1 -0
- package/dist/checkbox/checkbox-check.js +77 -0
- package/dist/checkbox/checkbox-check.js.map +1 -0
- package/dist/checkbox/checkbox-checked-context.d.ts +5 -0
- package/dist/checkbox/checkbox-checked-context.d.ts.map +1 -0
- package/dist/checkbox/checkbox-checked-context.js +8 -0
- package/dist/checkbox/checkbox-checked-context.js.map +1 -0
- package/dist/checkbox/checkbox-context.d.ts +24 -0
- package/dist/checkbox/checkbox-context.d.ts.map +1 -0
- package/dist/checkbox/checkbox-context.js +26 -0
- package/dist/checkbox/checkbox-context.js.map +1 -0
- package/dist/checkbox/checkbox-provider.d.ts +35 -0
- package/dist/checkbox/checkbox-provider.d.ts.map +1 -0
- package/dist/checkbox/checkbox-provider.js +15 -0
- package/dist/checkbox/checkbox-provider.js.map +1 -0
- package/dist/checkbox/checkbox-store.d.ts +2 -0
- package/dist/checkbox/checkbox-store.js +18 -0
- package/dist/checkbox/checkbox-store.js.map +1 -0
- package/dist/checkbox/checkbox.d.ts +91 -0
- package/dist/checkbox/checkbox.d.ts.map +1 -0
- package/dist/checkbox/checkbox.js +148 -0
- package/dist/checkbox/checkbox.js.map +1 -0
- package/dist/checkbox-store-CYZPR4N4.d.ts +38 -0
- package/dist/checkbox-store-CYZPR4N4.d.ts.map +1 -0
- package/dist/collection/collection-context.d.ts +24 -0
- package/dist/collection/collection-context.d.ts.map +1 -0
- package/dist/collection/collection-context.js +26 -0
- package/dist/collection/collection-context.js.map +1 -0
- package/dist/collection/collection-item-offscreen.d.ts +2 -0
- package/dist/collection/collection-item-offscreen.js +88 -0
- package/dist/collection/collection-item-offscreen.js.map +1 -0
- package/dist/collection/collection-item.d.ts +2 -0
- package/dist/collection/collection-item.js +69 -0
- package/dist/collection/collection-item.js.map +1 -0
- package/dist/collection/collection-provider.d.ts +26 -0
- package/dist/collection/collection-provider.d.ts.map +1 -0
- package/dist/collection/collection-provider.js +15 -0
- package/dist/collection/collection-provider.js.map +1 -0
- package/dist/collection/collection-renderer.d.ts +2 -0
- package/dist/collection/collection-renderer.js +580 -0
- package/dist/collection/collection-renderer.js.map +1 -0
- package/dist/collection/collection-store.d.ts +2 -0
- package/dist/collection/collection-store.js +18 -0
- package/dist/collection/collection-store.js.map +1 -0
- package/dist/collection/collection.d.ts +55 -0
- package/dist/collection/collection.d.ts.map +1 -0
- package/dist/collection/collection.js +55 -0
- package/dist/collection/collection.js.map +1 -0
- package/dist/collection-item-C-g2BwVF.d.ts +84 -0
- package/dist/collection-item-C-g2BwVF.d.ts.map +1 -0
- package/dist/collection-item-offscreen-DyXa-sqj.d.ts +30 -0
- package/dist/collection-item-offscreen-DyXa-sqj.d.ts.map +1 -0
- package/dist/collection-renderer-DsPD9ksD.d.ts +469 -0
- package/dist/collection-renderer-DsPD9ksD.d.ts.map +1 -0
- package/dist/collection-store-CbwzYsWf.d.ts +42 -0
- package/dist/collection-store-CbwzYsWf.d.ts.map +1 -0
- package/dist/combobox/combobox-cancel.d.ts +62 -0
- package/dist/combobox/combobox-cancel.d.ts.map +1 -0
- package/dist/combobox/combobox-cancel.js +98 -0
- package/dist/combobox/combobox-cancel.js.map +1 -0
- package/dist/combobox/combobox-context.d.ts +27 -0
- package/dist/combobox/combobox-context.d.ts.map +1 -0
- package/dist/combobox/combobox-context.js +32 -0
- package/dist/combobox/combobox-context.js.map +1 -0
- package/dist/combobox/combobox-disclosure.d.ts +63 -0
- package/dist/combobox/combobox-disclosure.d.ts.map +1 -0
- package/dist/combobox/combobox-disclosure.js +108 -0
- package/dist/combobox/combobox-disclosure.js.map +1 -0
- package/dist/combobox/combobox-group-label.d.ts +56 -0
- package/dist/combobox/combobox-group-label.d.ts.map +1 -0
- package/dist/combobox/combobox-group-label.js +47 -0
- package/dist/combobox/combobox-group-label.js.map +1 -0
- package/dist/combobox/combobox-group.d.ts +63 -0
- package/dist/combobox/combobox-group.d.ts.map +1 -0
- package/dist/combobox/combobox-group.js +67 -0
- package/dist/combobox/combobox-group.js.map +1 -0
- package/dist/combobox/combobox-item-check.d.ts +61 -0
- package/dist/combobox/combobox-item-check.d.ts.map +1 -0
- package/dist/combobox/combobox-item-check.js +62 -0
- package/dist/combobox/combobox-item-check.js.map +1 -0
- package/dist/combobox/combobox-item-offscreen.d.ts +34 -0
- package/dist/combobox/combobox-item-offscreen.d.ts.map +1 -0
- package/dist/combobox/combobox-item-offscreen.js +53 -0
- package/dist/combobox/combobox-item-offscreen.js.map +1 -0
- package/dist/combobox/combobox-item-value.d.ts +103 -0
- package/dist/combobox/combobox-item-value.d.ts.map +1 -0
- package/dist/combobox/combobox-item-value.js +143 -0
- package/dist/combobox/combobox-item-value.js.map +1 -0
- package/dist/combobox/combobox-item.d.ts +146 -0
- package/dist/combobox/combobox-item.d.ts.map +1 -0
- package/dist/combobox/combobox-item.js +157 -0
- package/dist/combobox/combobox-item.js.map +1 -0
- package/dist/combobox/combobox-label.d.ts +50 -0
- package/dist/combobox/combobox-label.d.ts.map +1 -0
- package/dist/combobox/combobox-label.js +51 -0
- package/dist/combobox/combobox-label.js.map +1 -0
- package/dist/combobox/combobox-list.d.ts +55 -0
- package/dist/combobox/combobox-list.d.ts.map +1 -0
- package/dist/combobox/combobox-list.js +106 -0
- package/dist/combobox/combobox-list.js.map +1 -0
- package/dist/combobox/combobox-popover.d.ts +46 -0
- package/dist/combobox/combobox-popover.d.ts.map +1 -0
- package/dist/combobox/combobox-popover.js +115 -0
- package/dist/combobox/combobox-popover.js.map +1 -0
- package/dist/combobox/combobox-provider.d.ts +30 -0
- package/dist/combobox/combobox-provider.d.ts.map +1 -0
- package/dist/combobox/combobox-provider.js +15 -0
- package/dist/combobox/combobox-provider.js.map +1 -0
- package/dist/combobox/combobox-row.d.ts +66 -0
- package/dist/combobox/combobox-row.d.ts.map +1 -0
- package/dist/combobox/combobox-row.js +70 -0
- package/dist/combobox/combobox-row.js.map +1 -0
- package/dist/combobox/combobox-separator.d.ts +61 -0
- package/dist/combobox/combobox-separator.d.ts.map +1 -0
- package/dist/combobox/combobox-separator.js +60 -0
- package/dist/combobox/combobox-separator.js.map +1 -0
- package/dist/combobox/combobox-store.d.ts +2 -0
- package/dist/combobox/combobox-store.js +33 -0
- package/dist/combobox/combobox-store.js.map +1 -0
- package/dist/combobox/combobox-value.d.ts +49 -0
- package/dist/combobox/combobox-value.d.ts.map +1 -0
- package/dist/combobox/combobox-value.js +40 -0
- package/dist/combobox/combobox-value.js.map +1 -0
- package/dist/combobox/combobox.d.ts +268 -0
- package/dist/combobox/combobox.d.ts.map +1 -0
- package/dist/combobox/combobox.js +399 -0
- package/dist/combobox/combobox.js.map +1 -0
- package/dist/combobox-store-DEVQ45mZ.d.ts +80 -0
- package/dist/combobox-store-DEVQ45mZ.d.ts.map +1 -0
- package/dist/command/command.d.ts +2 -0
- package/dist/command/command.js +130 -0
- package/dist/command/command.js.map +1 -0
- package/dist/command-DckndCUK.d.ts +59 -0
- package/dist/command-DckndCUK.d.ts.map +1 -0
- package/dist/composite/composite-container.d.ts +59 -0
- package/dist/composite/composite-container.d.ts.map +1 -0
- package/dist/composite/composite-container.js +164 -0
- package/dist/composite/composite-container.js.map +1 -0
- package/dist/composite/composite-context.d.ts +34 -0
- package/dist/composite/composite-context.d.ts.map +1 -0
- package/dist/composite/composite-context.js +30 -0
- package/dist/composite/composite-context.js.map +1 -0
- package/dist/composite/composite-group-label.d.ts +55 -0
- package/dist/composite/composite-group-label.d.ts.map +1 -0
- package/dist/composite/composite-group-label.js +46 -0
- package/dist/composite/composite-group-label.js.map +1 -0
- package/dist/composite/composite-group.d.ts +60 -0
- package/dist/composite/composite-group.d.ts.map +1 -0
- package/dist/composite/composite-group.js +51 -0
- package/dist/composite/composite-group.js.map +1 -0
- package/dist/composite/composite-hover.d.ts +2 -0
- package/dist/composite/composite-hover.js +114 -0
- package/dist/composite/composite-hover.js.map +1 -0
- package/dist/composite/composite-input.d.ts +55 -0
- package/dist/composite/composite-input.d.ts.map +1 -0
- package/dist/composite/composite-input.js +91 -0
- package/dist/composite/composite-input.js.map +1 -0
- package/dist/composite/composite-item-offscreen.d.ts +39 -0
- package/dist/composite/composite-item-offscreen.d.ts.map +1 -0
- package/dist/composite/composite-item-offscreen.js +72 -0
- package/dist/composite/composite-item-offscreen.js.map +1 -0
- package/dist/composite/composite-item.d.ts +2 -0
- package/dist/composite/composite-item.js +290 -0
- package/dist/composite/composite-item.js.map +1 -0
- package/dist/composite/composite-overflow-disclosure.d.ts +53 -0
- package/dist/composite/composite-overflow-disclosure.d.ts.map +1 -0
- package/dist/composite/composite-overflow-disclosure.js +84 -0
- package/dist/composite/composite-overflow-disclosure.js.map +1 -0
- package/dist/composite/composite-overflow-store.d.ts +38 -0
- package/dist/composite/composite-overflow-store.d.ts.map +1 -0
- package/dist/composite/composite-overflow-store.js +36 -0
- package/dist/composite/composite-overflow-store.js.map +1 -0
- package/dist/composite/composite-overflow.d.ts +54 -0
- package/dist/composite/composite-overflow.d.ts.map +1 -0
- package/dist/composite/composite-overflow.js +82 -0
- package/dist/composite/composite-overflow.js.map +1 -0
- package/dist/composite/composite-provider.d.ts +28 -0
- package/dist/composite/composite-provider.d.ts.map +1 -0
- package/dist/composite/composite-provider.js +15 -0
- package/dist/composite/composite-provider.js.map +1 -0
- package/dist/composite/composite-renderer.d.ts +329 -0
- package/dist/composite/composite-renderer.d.ts.map +1 -0
- package/dist/composite/composite-renderer.js +121 -0
- package/dist/composite/composite-renderer.js.map +1 -0
- package/dist/composite/composite-row.d.ts +67 -0
- package/dist/composite/composite-row.d.ts.map +1 -0
- package/dist/composite/composite-row.js +86 -0
- package/dist/composite/composite-row.js.map +1 -0
- package/dist/composite/composite-separator.d.ts +61 -0
- package/dist/composite/composite-separator.d.ts.map +1 -0
- package/dist/composite/composite-separator.js +55 -0
- package/dist/composite/composite-separator.js.map +1 -0
- package/dist/composite/composite-store.d.ts +2 -0
- package/dist/composite/composite-store.js +33 -0
- package/dist/composite/composite-store.js.map +1 -0
- package/dist/composite/composite-typeahead.d.ts +2 -0
- package/dist/composite/composite-typeahead.js +126 -0
- package/dist/composite/composite-typeahead.js.map +1 -0
- package/dist/composite/composite.d.ts +2 -0
- package/dist/composite/composite.js +273 -0
- package/dist/composite/composite.js.map +1 -0
- package/dist/composite/utils.d.ts +52 -0
- package/dist/composite/utils.d.ts.map +1 -0
- package/dist/composite/utils.js +93 -0
- package/dist/composite/utils.js.map +1 -0
- package/dist/composite-DLvyFHMq.d.ts +124 -0
- package/dist/composite-DLvyFHMq.d.ts.map +1 -0
- package/dist/composite-hover-C7ul163w.d.ts +103 -0
- package/dist/composite-hover-C7ul163w.d.ts.map +1 -0
- package/dist/composite-item-B4WTelVz.d.ts +141 -0
- package/dist/composite-item-B4WTelVz.d.ts.map +1 -0
- package/dist/composite-store-DyJc-XRA.d.ts +43 -0
- package/dist/composite-store-DyJc-XRA.d.ts.map +1 -0
- package/dist/composite-typeahead-DDhpyKqm.d.ts +63 -0
- package/dist/composite-typeahead-DDhpyKqm.d.ts.map +1 -0
- package/dist/dialog/dialog-backdrop.d.ts +16 -0
- package/dist/dialog/dialog-backdrop.d.ts.map +1 -0
- package/dist/dialog/dialog-backdrop.js +58 -0
- package/dist/dialog/dialog-backdrop.js.map +1 -0
- package/dist/dialog/dialog-context.d.ts +27 -0
- package/dist/dialog/dialog-context.d.ts.map +1 -0
- package/dist/dialog/dialog-context.js +30 -0
- package/dist/dialog/dialog-context.js.map +1 -0
- package/dist/dialog/dialog-description.d.ts +2 -0
- package/dist/dialog/dialog-description.js +53 -0
- package/dist/dialog/dialog-description.js.map +1 -0
- package/dist/dialog/dialog-disclosure.d.ts +2 -0
- package/dist/dialog/dialog-disclosure.js +52 -0
- package/dist/dialog/dialog-disclosure.js.map +1 -0
- package/dist/dialog/dialog-dismiss.d.ts +2 -0
- package/dist/dialog/dialog-dismiss.js +80 -0
- package/dist/dialog/dialog-dismiss.js.map +1 -0
- package/dist/dialog/dialog-heading.d.ts +2 -0
- package/dist/dialog/dialog-heading.js +54 -0
- package/dist/dialog/dialog-heading.js.map +1 -0
- package/dist/dialog/dialog-provider.d.ts +22 -0
- package/dist/dialog/dialog-provider.d.ts.map +1 -0
- package/dist/dialog/dialog-provider.js +26 -0
- package/dist/dialog/dialog-provider.js.map +1 -0
- package/dist/dialog/dialog-store.d.ts +2 -0
- package/dist/dialog/dialog-store.js +28 -0
- package/dist/dialog/dialog-store.js.map +1 -0
- package/dist/dialog/dialog.d.ts +2 -0
- package/dist/dialog/dialog.js +429 -0
- package/dist/dialog/dialog.js.map +1 -0
- package/dist/dialog/utils/disable-accessibility-tree-outside.d.ts +7 -0
- package/dist/dialog/utils/disable-accessibility-tree-outside.d.ts.map +1 -0
- package/dist/dialog/utils/disable-accessibility-tree-outside.js +24 -0
- package/dist/dialog/utils/disable-accessibility-tree-outside.js.map +1 -0
- package/dist/dialog/utils/disable-tree.d.ts +9 -0
- package/dist/dialog/utils/disable-tree.d.ts.map +1 -0
- package/dist/dialog/utils/disable-tree.js +48 -0
- package/dist/dialog/utils/disable-tree.js.map +1 -0
- package/dist/dialog/utils/is-backdrop.d.ts +5 -0
- package/dist/dialog/utils/is-backdrop.d.ts.map +1 -0
- package/dist/dialog/utils/is-backdrop.js +15 -0
- package/dist/dialog/utils/is-backdrop.js.map +1 -0
- package/dist/dialog/utils/is-focus-trap.d.ts +5 -0
- package/dist/dialog/utils/is-focus-trap.d.ts.map +1 -0
- package/dist/dialog/utils/is-focus-trap.js +14 -0
- package/dist/dialog/utils/is-focus-trap.js.map +1 -0
- package/dist/dialog/utils/mark-tree-outside.d.ts +9 -0
- package/dist/dialog/utils/mark-tree-outside.d.ts.map +1 -0
- package/dist/dialog/utils/mark-tree-outside.js +44 -0
- package/dist/dialog/utils/mark-tree-outside.js.map +1 -0
- package/dist/dialog/utils/orchestrate.d.ts +9 -0
- package/dist/dialog/utils/orchestrate.d.ts.map +1 -0
- package/dist/dialog/utils/orchestrate.js +77 -0
- package/dist/dialog/utils/orchestrate.js.map +1 -0
- package/dist/dialog/utils/prepend-hidden-dismiss.d.ts +5 -0
- package/dist/dialog/utils/prepend-hidden-dismiss.d.ts.map +1 -0
- package/dist/dialog/utils/prepend-hidden-dismiss.js +31 -0
- package/dist/dialog/utils/prepend-hidden-dismiss.js.map +1 -0
- package/dist/dialog/utils/supports-inert.d.ts +5 -0
- package/dist/dialog/utils/supports-inert.d.ts.map +1 -0
- package/dist/dialog/utils/supports-inert.js +9 -0
- package/dist/dialog/utils/supports-inert.js.map +1 -0
- package/dist/dialog/utils/use-hide-on-interact-outside.d.ts +9 -0
- package/dist/dialog/utils/use-hide-on-interact-outside.d.ts.map +1 -0
- package/dist/dialog/utils/use-hide-on-interact-outside.js +123 -0
- package/dist/dialog/utils/use-hide-on-interact-outside.js.map +1 -0
- package/dist/dialog/utils/use-nested-dialogs.d.ts +11 -0
- package/dist/dialog/utils/use-nested-dialogs.d.ts.map +1 -0
- package/dist/dialog/utils/use-nested-dialogs.js +40 -0
- package/dist/dialog/utils/use-nested-dialogs.js.map +1 -0
- package/dist/dialog/utils/use-prevent-body-scroll.d.ts +5 -0
- package/dist/dialog/utils/use-prevent-body-scroll.d.ts.map +1 -0
- package/dist/dialog/utils/use-prevent-body-scroll.js +60 -0
- package/dist/dialog/utils/use-prevent-body-scroll.js.map +1 -0
- package/dist/dialog/utils/use-previous-mouse-down-ref.d.ts +5 -0
- package/dist/dialog/utils/use-previous-mouse-down-ref.d.ts.map +1 -0
- package/dist/dialog/utils/use-previous-mouse-down-ref.js +22 -0
- package/dist/dialog/utils/use-previous-mouse-down-ref.js.map +1 -0
- package/dist/dialog/utils/use-root-dialog.d.ts +16 -0
- package/dist/dialog/utils/use-root-dialog.d.ts.map +1 -0
- package/dist/dialog/utils/use-root-dialog.js +47 -0
- package/dist/dialog/utils/use-root-dialog.js.map +1 -0
- package/dist/dialog/utils/walk-tree-outside.d.ts +8 -0
- package/dist/dialog/utils/walk-tree-outside.d.ts.map +1 -0
- package/dist/dialog/utils/walk-tree-outside.js +58 -0
- package/dist/dialog/utils/walk-tree-outside.js.map +1 -0
- package/dist/dialog-C__C-zX2.d.ts +267 -0
- package/dist/dialog-C__C-zX2.d.ts.map +1 -0
- package/dist/dialog-description-BCZJ1Kyd.d.ts +48 -0
- package/dist/dialog-description-BCZJ1Kyd.d.ts.map +1 -0
- package/dist/dialog-disclosure-DLD10zlb.d.ts +47 -0
- package/dist/dialog-disclosure-DLD10zlb.d.ts.map +1 -0
- package/dist/dialog-dismiss-CnwEbzc6.d.ts +48 -0
- package/dist/dialog-dismiss-CnwEbzc6.d.ts.map +1 -0
- package/dist/dialog-heading-DQvnOfZH.d.ts +49 -0
- package/dist/dialog-heading-DQvnOfZH.d.ts.map +1 -0
- package/dist/dialog-store-Cjt12T_Y.d.ts +29 -0
- package/dist/dialog-store-Cjt12T_Y.d.ts.map +1 -0
- package/dist/disclosure/disclosure-content.d.ts +2 -0
- package/dist/disclosure/disclosure-content.js +171 -0
- package/dist/disclosure/disclosure-content.js.map +1 -0
- package/dist/disclosure/disclosure-context.d.ts +24 -0
- package/dist/disclosure/disclosure-context.d.ts.map +1 -0
- package/dist/disclosure/disclosure-context.js +26 -0
- package/dist/disclosure/disclosure-context.js.map +1 -0
- package/dist/disclosure/disclosure-provider.d.ts +23 -0
- package/dist/disclosure/disclosure-provider.d.ts.map +1 -0
- package/dist/disclosure/disclosure-provider.js +27 -0
- package/dist/disclosure/disclosure-provider.js.map +1 -0
- package/dist/disclosure/disclosure-store.d.ts +2 -0
- package/dist/disclosure/disclosure-store.js +32 -0
- package/dist/disclosure/disclosure-store.js.map +1 -0
- package/dist/disclosure/disclosure.d.ts +2 -0
- package/dist/disclosure/disclosure.js +83 -0
- package/dist/disclosure/disclosure.js.map +1 -0
- package/dist/disclosure-CQ37hPVP.d.ts +60 -0
- package/dist/disclosure-CQ37hPVP.d.ts.map +1 -0
- package/dist/disclosure-content-BbPkZgAc.d.ts +88 -0
- package/dist/disclosure-content-BbPkZgAc.d.ts.map +1 -0
- package/dist/disclosure-store-BsaBaRKv.d.ts +58 -0
- package/dist/disclosure-store-BsaBaRKv.d.ts.map +1 -0
- package/dist/focus-trap/focus-trap-region.d.ts +42 -0
- package/dist/focus-trap/focus-trap-region.d.ts.map +1 -0
- package/dist/focus-trap/focus-trap-region.js +69 -0
- package/dist/focus-trap/focus-trap-region.js.map +1 -0
- package/dist/focus-trap/focus-trap.d.ts +31 -0
- package/dist/focus-trap/focus-trap.d.ts.map +1 -0
- package/dist/focus-trap/focus-trap.js +45 -0
- package/dist/focus-trap/focus-trap.js.map +1 -0
- package/dist/focusable/focusable-container.d.ts +43 -0
- package/dist/focusable/focusable-container.d.ts.map +1 -0
- package/dist/focusable/focusable-container.js +41 -0
- package/dist/focusable/focusable-container.js.map +1 -0
- package/dist/focusable/focusable-context.d.ts +5 -0
- package/dist/focusable/focusable-context.d.ts.map +1 -0
- package/dist/focusable/focusable-context.js +8 -0
- package/dist/focusable/focusable-context.js.map +1 -0
- package/dist/focusable/focusable.d.ts +2 -0
- package/dist/focusable/focusable.js +273 -0
- package/dist/focusable/focusable.js.map +1 -0
- package/dist/focusable-B00tOxtB.d.ts +142 -0
- package/dist/focusable-B00tOxtB.d.ts.map +1 -0
- package/dist/form/form-checkbox.d.ts +50 -0
- package/dist/form/form-checkbox.d.ts.map +1 -0
- package/dist/form/form-checkbox.js +73 -0
- package/dist/form/form-checkbox.js.map +1 -0
- package/dist/form/form-context.d.ts +24 -0
- package/dist/form/form-context.d.ts.map +1 -0
- package/dist/form/form-context.js +27 -0
- package/dist/form/form-context.js.map +1 -0
- package/dist/form/form-control.d.ts +100 -0
- package/dist/form/form-control.d.ts.map +1 -0
- package/dist/form/form-control.js +139 -0
- package/dist/form/form-control.js.map +1 -0
- package/dist/form/form-description.d.ts +73 -0
- package/dist/form/form-description.d.ts.map +1 -0
- package/dist/form/form-description.js +83 -0
- package/dist/form/form-description.js.map +1 -0
- package/dist/form/form-error.d.ts +82 -0
- package/dist/form/form-error.d.ts.map +1 -0
- package/dist/form/form-error.js +102 -0
- package/dist/form/form-error.js.map +1 -0
- package/dist/form/form-field.d.ts +73 -0
- package/dist/form/form-field.d.ts.map +1 -0
- package/dist/form/form-field.js +74 -0
- package/dist/form/form-field.js.map +1 -0
- package/dist/form/form-group-label.d.ts +62 -0
- package/dist/form/form-group-label.d.ts.map +1 -0
- package/dist/form/form-group-label.js +54 -0
- package/dist/form/form-group-label.js.map +1 -0
- package/dist/form/form-group.d.ts +64 -0
- package/dist/form/form-group.d.ts.map +1 -0
- package/dist/form/form-group.js +56 -0
- package/dist/form/form-group.js.map +1 -0
- package/dist/form/form-input.d.ts +50 -0
- package/dist/form/form-input.d.ts.map +1 -0
- package/dist/form/form-input.js +74 -0
- package/dist/form/form-input.js.map +1 -0
- package/dist/form/form-label.d.ts +77 -0
- package/dist/form/form-label.d.ts.map +1 -0
- package/dist/form/form-label.js +120 -0
- package/dist/form/form-label.js.map +1 -0
- package/dist/form/form-provider.d.ts +28 -0
- package/dist/form/form-provider.d.ts.map +1 -0
- package/dist/form/form-provider.js +15 -0
- package/dist/form/form-provider.js.map +1 -0
- package/dist/form/form-push.d.ts +102 -0
- package/dist/form/form-push.d.ts.map +1 -0
- package/dist/form/form-push.js +134 -0
- package/dist/form/form-push.js.map +1 -0
- package/dist/form/form-radio-group.d.ts +56 -0
- package/dist/form/form-radio-group.d.ts.map +1 -0
- package/dist/form/form-radio-group.js +68 -0
- package/dist/form/form-radio-group.js.map +1 -0
- package/dist/form/form-radio.d.ts +58 -0
- package/dist/form/form-radio.d.ts.map +1 -0
- package/dist/form/form-radio.js +90 -0
- package/dist/form/form-radio.js.map +1 -0
- package/dist/form/form-remove.d.ts +102 -0
- package/dist/form/form-remove.d.ts.map +1 -0
- package/dist/form/form-remove.js +116 -0
- package/dist/form/form-remove.js.map +1 -0
- package/dist/form/form-reset.d.ts +51 -0
- package/dist/form/form-reset.d.ts.map +1 -0
- package/dist/form/form-reset.js +54 -0
- package/dist/form/form-reset.js.map +1 -0
- package/dist/form/form-store.d.ts +2 -0
- package/dist/form/form-store.js +41 -0
- package/dist/form/form-store.js.map +1 -0
- package/dist/form/form-submit.d.ts +57 -0
- package/dist/form/form-submit.d.ts.map +1 -0
- package/dist/form/form-submit.js +59 -0
- package/dist/form/form-submit.js.map +1 -0
- package/dist/form/form.d.ts +101 -0
- package/dist/form/form.d.ts.map +1 -0
- package/dist/form/form.js +146 -0
- package/dist/form/form.js.map +1 -0
- package/dist/form-store-C4Kf5QHm.d.ts +120 -0
- package/dist/form-store-C4Kf5QHm.d.ts.map +1 -0
- package/dist/group/group-label-context.d.ts +7 -0
- package/dist/group/group-label-context.d.ts.map +1 -0
- package/dist/group/group-label-context.js +8 -0
- package/dist/group/group-label-context.js.map +1 -0
- package/dist/group/group-label.d.ts +2 -0
- package/dist/group/group-label.js +52 -0
- package/dist/group/group-label.js.map +1 -0
- package/dist/group/group.d.ts +2 -0
- package/dist/group/group.js +47 -0
- package/dist/group/group.js.map +1 -0
- package/dist/group-CamegDJA.d.ts +32 -0
- package/dist/group-CamegDJA.d.ts.map +1 -0
- package/dist/group-label-C16IDs1b.d.ts +37 -0
- package/dist/group-label-C16IDs1b.d.ts.map +1 -0
- package/dist/heading/heading-context.d.ts +7 -0
- package/dist/heading/heading-context.d.ts.map +1 -0
- package/dist/heading/heading-context.js +8 -0
- package/dist/heading/heading-context.js.map +1 -0
- package/dist/heading/heading-level.d.ts +35 -0
- package/dist/heading/heading-level.d.ts.map +1 -0
- package/dist/heading/heading-level.js +33 -0
- package/dist/heading/heading-level.js.map +1 -0
- package/dist/heading/heading.d.ts +2 -0
- package/dist/heading/heading.js +56 -0
- package/dist/heading/heading.js.map +1 -0
- package/dist/heading/utils.d.ts +2 -0
- package/dist/heading/utils.js +1 -0
- package/dist/heading-zY9g_9K-.d.ts +42 -0
- package/dist/heading-zY9g_9K-.d.ts.map +1 -0
- package/dist/hovercard/hovercard-anchor.d.ts +59 -0
- package/dist/hovercard/hovercard-anchor.d.ts.map +1 -0
- package/dist/hovercard/hovercard-anchor.js +106 -0
- package/dist/hovercard/hovercard-anchor.js.map +1 -0
- package/dist/hovercard/hovercard-arrow.d.ts +54 -0
- package/dist/hovercard/hovercard-arrow.d.ts.map +1 -0
- package/dist/hovercard/hovercard-arrow.js +51 -0
- package/dist/hovercard/hovercard-arrow.js.map +1 -0
- package/dist/hovercard/hovercard-context.d.ts +24 -0
- package/dist/hovercard/hovercard-context.d.ts.map +1 -0
- package/dist/hovercard/hovercard-context.js +27 -0
- package/dist/hovercard/hovercard-context.js.map +1 -0
- package/dist/hovercard/hovercard-description.d.ts +51 -0
- package/dist/hovercard/hovercard-description.d.ts.map +1 -0
- package/dist/hovercard/hovercard-description.js +42 -0
- package/dist/hovercard/hovercard-description.js.map +1 -0
- package/dist/hovercard/hovercard-disclosure.d.ts +51 -0
- package/dist/hovercard/hovercard-disclosure.d.ts.map +1 -0
- package/dist/hovercard/hovercard-disclosure.js +122 -0
- package/dist/hovercard/hovercard-disclosure.js.map +1 -0
- package/dist/hovercard/hovercard-dismiss.d.ts +50 -0
- package/dist/hovercard/hovercard-dismiss.d.ts.map +1 -0
- package/dist/hovercard/hovercard-dismiss.js +47 -0
- package/dist/hovercard/hovercard-dismiss.js.map +1 -0
- package/dist/hovercard/hovercard-heading.d.ts +51 -0
- package/dist/hovercard/hovercard-heading.d.ts.map +1 -0
- package/dist/hovercard/hovercard-heading.js +42 -0
- package/dist/hovercard/hovercard-heading.js.map +1 -0
- package/dist/hovercard/hovercard-provider.d.ts +23 -0
- package/dist/hovercard/hovercard-provider.d.ts.map +1 -0
- package/dist/hovercard/hovercard-provider.js +27 -0
- package/dist/hovercard/hovercard-provider.js.map +1 -0
- package/dist/hovercard/hovercard-store.d.ts +2 -0
- package/dist/hovercard/hovercard-store.js +31 -0
- package/dist/hovercard/hovercard-store.js.map +1 -0
- package/dist/hovercard/hovercard.d.ts +80 -0
- package/dist/hovercard/hovercard.d.ts.map +1 -0
- package/dist/hovercard/hovercard.js +240 -0
- package/dist/hovercard/hovercard.js.map +1 -0
- package/dist/hovercard/utils/debug-polygon.d.ts +7 -0
- package/dist/hovercard/utils/debug-polygon.d.ts.map +1 -0
- package/dist/hovercard/utils/debug-polygon.js +33 -0
- package/dist/hovercard/utils/debug-polygon.js.map +1 -0
- package/dist/hovercard/utils/polygon.d.ts +9 -0
- package/dist/hovercard/utils/polygon.d.ts.map +1 -0
- package/dist/hovercard/utils/polygon.js +70 -0
- package/dist/hovercard/utils/polygon.js.map +1 -0
- package/dist/hovercard-store-gIeoQEn_.d.ts +30 -0
- package/dist/hovercard-store-gIeoQEn_.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/menu/menu-arrow.d.ts +52 -0
- package/dist/menu/menu-arrow.d.ts.map +1 -0
- package/dist/menu/menu-arrow.js +49 -0
- package/dist/menu/menu-arrow.js.map +1 -0
- package/dist/menu/menu-bar-provider.d.ts +35 -0
- package/dist/menu/menu-bar-provider.d.ts.map +1 -0
- package/dist/menu/menu-bar-provider.js +42 -0
- package/dist/menu/menu-bar-provider.js.map +1 -0
- package/dist/menu/menu-bar-store.d.ts +25 -0
- package/dist/menu/menu-bar-store.d.ts.map +1 -0
- package/dist/menu/menu-bar-store.js +28 -0
- package/dist/menu/menu-bar-store.js.map +1 -0
- package/dist/menu/menu-bar.d.ts +61 -0
- package/dist/menu/menu-bar.d.ts.map +1 -0
- package/dist/menu/menu-bar.js +66 -0
- package/dist/menu/menu-bar.js.map +1 -0
- package/dist/menu/menu-button-arrow.d.ts +65 -0
- package/dist/menu/menu-button-arrow.d.ts.map +1 -0
- package/dist/menu/menu-button-arrow.js +62 -0
- package/dist/menu/menu-button-arrow.js.map +1 -0
- package/dist/menu/menu-button.d.ts +67 -0
- package/dist/menu/menu-button.d.ts.map +1 -0
- package/dist/menu/menu-button.js +183 -0
- package/dist/menu/menu-button.js.map +1 -0
- package/dist/menu/menu-context.d.ts +47 -0
- package/dist/menu/menu-context.d.ts.map +1 -0
- package/dist/menu/menu-context.js +52 -0
- package/dist/menu/menu-context.js.map +1 -0
- package/dist/menu/menu-description.d.ts +50 -0
- package/dist/menu/menu-description.d.ts.map +1 -0
- package/dist/menu/menu-description.js +42 -0
- package/dist/menu/menu-description.js.map +1 -0
- package/dist/menu/menu-dismiss.d.ts +49 -0
- package/dist/menu/menu-dismiss.d.ts.map +1 -0
- package/dist/menu/menu-dismiss.js +47 -0
- package/dist/menu/menu-dismiss.js.map +1 -0
- package/dist/menu/menu-group-label.d.ts +55 -0
- package/dist/menu/menu-group-label.d.ts.map +1 -0
- package/dist/menu/menu-group-label.js +47 -0
- package/dist/menu/menu-group-label.js.map +1 -0
- package/dist/menu/menu-group.d.ts +61 -0
- package/dist/menu/menu-group.d.ts.map +1 -0
- package/dist/menu/menu-group.js +53 -0
- package/dist/menu/menu-group.js.map +1 -0
- package/dist/menu/menu-heading.d.ts +50 -0
- package/dist/menu/menu-heading.d.ts.map +1 -0
- package/dist/menu/menu-heading.js +42 -0
- package/dist/menu/menu-heading.js.map +1 -0
- package/dist/menu/menu-item-check.d.ts +58 -0
- package/dist/menu/menu-item-check.d.ts.map +1 -0
- package/dist/menu/menu-item-check.js +60 -0
- package/dist/menu/menu-item-check.js.map +1 -0
- package/dist/menu/menu-item-checkbox.d.ts +104 -0
- package/dist/menu/menu-item-checkbox.d.ts.map +1 -0
- package/dist/menu/menu-item-checkbox.js +151 -0
- package/dist/menu/menu-item-checkbox.js.map +1 -0
- package/dist/menu/menu-item-radio.d.ts +91 -0
- package/dist/menu/menu-item-radio.d.ts.map +1 -0
- package/dist/menu/menu-item-radio.js +121 -0
- package/dist/menu/menu-item-radio.js.map +1 -0
- package/dist/menu/menu-item.d.ts +75 -0
- package/dist/menu/menu-item.d.ts.map +1 -0
- package/dist/menu/menu-item.js +122 -0
- package/dist/menu/menu-item.js.map +1 -0
- package/dist/menu/menu-list.d.ts +59 -0
- package/dist/menu/menu-list.d.ts.map +1 -0
- package/dist/menu/menu-list.js +168 -0
- package/dist/menu/menu-list.js.map +1 -0
- package/dist/menu/menu-provider.d.ts +29 -0
- package/dist/menu/menu-provider.d.ts.map +1 -0
- package/dist/menu/menu-provider.js +15 -0
- package/dist/menu/menu-provider.js.map +1 -0
- package/dist/menu/menu-separator.d.ts +59 -0
- package/dist/menu/menu-separator.d.ts.map +1 -0
- package/dist/menu/menu-separator.js +57 -0
- package/dist/menu/menu-separator.js.map +1 -0
- package/dist/menu/menu-store.d.ts +2 -0
- package/dist/menu/menu-store.js +40 -0
- package/dist/menu/menu-store.js.map +1 -0
- package/dist/menu/menu.d.ts +49 -0
- package/dist/menu/menu.d.ts.map +1 -0
- package/dist/menu/menu.js +169 -0
- package/dist/menu/menu.js.map +1 -0
- package/dist/menu-store-0CKKmNek.d.ts +83 -0
- package/dist/menu-store-0CKKmNek.d.ts.map +1 -0
- package/dist/menubar/menubar-context.d.ts +25 -0
- package/dist/menubar/menubar-context.d.ts.map +1 -0
- package/dist/menubar/menubar-context.js +29 -0
- package/dist/menubar/menubar-context.js.map +1 -0
- package/dist/menubar/menubar-provider.d.ts +37 -0
- package/dist/menubar/menubar-provider.d.ts.map +1 -0
- package/dist/menubar/menubar-provider.js +41 -0
- package/dist/menubar/menubar-provider.js.map +1 -0
- package/dist/menubar/menubar-store.d.ts +2 -0
- package/dist/menubar/menubar-store.js +27 -0
- package/dist/menubar/menubar-store.js.map +1 -0
- package/dist/menubar/menubar.d.ts +71 -0
- package/dist/menubar/menubar.d.ts.map +1 -0
- package/dist/menubar/menubar.js +88 -0
- package/dist/menubar/menubar.js.map +1 -0
- package/dist/menubar-store-3h0eNIbS.d.ts +26 -0
- package/dist/menubar-store-3h0eNIbS.d.ts.map +1 -0
- package/dist/popover/popover-anchor.d.ts +2 -0
- package/dist/popover/popover-anchor.js +45 -0
- package/dist/popover/popover-anchor.js.map +1 -0
- package/dist/popover/popover-arrow-path.d.ts +5 -0
- package/dist/popover/popover-arrow-path.d.ts.map +1 -0
- package/dist/popover/popover-arrow-path.js +7 -0
- package/dist/popover/popover-arrow-path.js.map +1 -0
- package/dist/popover/popover-arrow.d.ts +65 -0
- package/dist/popover/popover-arrow.d.ts.map +1 -0
- package/dist/popover/popover-arrow.js +160 -0
- package/dist/popover/popover-arrow.js.map +1 -0
- package/dist/popover/popover-context.d.ts +24 -0
- package/dist/popover/popover-context.d.ts.map +1 -0
- package/dist/popover/popover-context.js +27 -0
- package/dist/popover/popover-context.js.map +1 -0
- package/dist/popover/popover-description.d.ts +2 -0
- package/dist/popover/popover-description.js +42 -0
- package/dist/popover/popover-description.js.map +1 -0
- package/dist/popover/popover-disclosure-arrow.d.ts +62 -0
- package/dist/popover/popover-disclosure-arrow.d.ts.map +1 -0
- package/dist/popover/popover-disclosure-arrow.js +81 -0
- package/dist/popover/popover-disclosure-arrow.js.map +1 -0
- package/dist/popover/popover-disclosure.d.ts +38 -0
- package/dist/popover/popover-disclosure.d.ts.map +1 -0
- package/dist/popover/popover-disclosure.js +66 -0
- package/dist/popover/popover-disclosure.js.map +1 -0
- package/dist/popover/popover-dismiss.d.ts +2 -0
- package/dist/popover/popover-dismiss.js +47 -0
- package/dist/popover/popover-dismiss.js.map +1 -0
- package/dist/popover/popover-heading.d.ts +2 -0
- package/dist/popover/popover-heading.js +42 -0
- package/dist/popover/popover-heading.js.map +1 -0
- package/dist/popover/popover-provider.d.ts +23 -0
- package/dist/popover/popover-provider.d.ts.map +1 -0
- package/dist/popover/popover-provider.js +27 -0
- package/dist/popover/popover-provider.js.map +1 -0
- package/dist/popover/popover-store.d.ts +2 -0
- package/dist/popover/popover-store.js +30 -0
- package/dist/popover/popover-store.js.map +1 -0
- package/dist/popover/popover.d.ts +2 -0
- package/dist/popover/popover.js +312 -0
- package/dist/popover/popover.js.map +1 -0
- package/dist/popover-CCqiRKqg.d.ts +181 -0
- package/dist/popover-CCqiRKqg.d.ts.map +1 -0
- package/dist/popover-anchor-PgfeXyzs.d.ts +47 -0
- package/dist/popover-anchor-PgfeXyzs.d.ts.map +1 -0
- package/dist/popover-description-DU753dah.d.ts +51 -0
- package/dist/popover-description-DU753dah.d.ts.map +1 -0
- package/dist/popover-dismiss-DPeI6Zse.d.ts +50 -0
- package/dist/popover-dismiss-DPeI6Zse.d.ts.map +1 -0
- package/dist/popover-heading-DGsr6D5W.d.ts +51 -0
- package/dist/popover-heading-DGsr6D5W.d.ts.map +1 -0
- package/dist/popover-store-Bc-l5VVO.d.ts +29 -0
- package/dist/popover-store-Bc-l5VVO.d.ts.map +1 -0
- package/dist/portal/portal-context.d.ts +21 -0
- package/dist/portal/portal-context.d.ts.map +1 -0
- package/dist/portal/portal-context.js +24 -0
- package/dist/portal/portal-context.js.map +1 -0
- package/dist/portal/portal.d.ts +2 -0
- package/dist/portal/portal.js +242 -0
- package/dist/portal/portal.js.map +1 -0
- package/dist/portal-CMBWiayp.d.ts +149 -0
- package/dist/portal-CMBWiayp.d.ts.map +1 -0
- package/dist/radio/radio-context.d.ts +24 -0
- package/dist/radio/radio-context.d.ts.map +1 -0
- package/dist/radio/radio-context.js +27 -0
- package/dist/radio/radio-context.js.map +1 -0
- package/dist/radio/radio-group.d.ts +51 -0
- package/dist/radio/radio-group.d.ts.map +1 -0
- package/dist/radio/radio-group.js +60 -0
- package/dist/radio/radio-group.js.map +1 -0
- package/dist/radio/radio-provider.d.ts +25 -0
- package/dist/radio/radio-provider.d.ts.map +1 -0
- package/dist/radio/radio-provider.js +29 -0
- package/dist/radio/radio-provider.js.map +1 -0
- package/dist/radio/radio-store.d.ts +2 -0
- package/dist/radio/radio-store.js +33 -0
- package/dist/radio/radio-store.js.map +1 -0
- package/dist/radio/radio.d.ts +76 -0
- package/dist/radio/radio.d.ts.map +1 -0
- package/dist/radio/radio.js +143 -0
- package/dist/radio/radio.js.map +1 -0
- package/dist/radio-store-DOZ_1RSk.d.ts +36 -0
- package/dist/radio-store-DOZ_1RSk.d.ts.map +1 -0
- package/dist/role/role.d.ts +34 -0
- package/dist/role/role.d.ts.map +1 -0
- package/dist/role/role.js +68 -0
- package/dist/role/role.js.map +1 -0
- package/dist/select/select-arrow.d.ts +60 -0
- package/dist/select/select-arrow.d.ts.map +1 -0
- package/dist/select/select-arrow.js +58 -0
- package/dist/select/select-arrow.js.map +1 -0
- package/dist/select/select-context.d.ts +27 -0
- package/dist/select/select-context.d.ts.map +1 -0
- package/dist/select/select-context.js +31 -0
- package/dist/select/select-context.js.map +1 -0
- package/dist/select/select-dismiss.d.ts +59 -0
- package/dist/select/select-dismiss.d.ts.map +1 -0
- package/dist/select/select-dismiss.js +56 -0
- package/dist/select/select-dismiss.js.map +1 -0
- package/dist/select/select-group-label.d.ts +61 -0
- package/dist/select/select-group-label.d.ts.map +1 -0
- package/dist/select/select-group-label.js +52 -0
- package/dist/select/select-group-label.js.map +1 -0
- package/dist/select/select-group.d.ts +62 -0
- package/dist/select/select-group.d.ts.map +1 -0
- package/dist/select/select-group.js +53 -0
- package/dist/select/select-group.js.map +1 -0
- package/dist/select/select-heading.d.ts +59 -0
- package/dist/select/select-heading.d.ts.map +1 -0
- package/dist/select/select-heading.js +62 -0
- package/dist/select/select-heading.js.map +1 -0
- package/dist/select/select-item-check.d.ts +59 -0
- package/dist/select/select-item-check.d.ts.map +1 -0
- package/dist/select/select-item-check.js +61 -0
- package/dist/select/select-item-check.js.map +1 -0
- package/dist/select/select-item-offscreen.d.ts +37 -0
- package/dist/select/select-item-offscreen.d.ts.map +1 -0
- package/dist/select/select-item-offscreen.js +38 -0
- package/dist/select/select-item-offscreen.js.map +1 -0
- package/dist/select/select-item.d.ts +108 -0
- package/dist/select/select-item.d.ts.map +1 -0
- package/dist/select/select-item.js +143 -0
- package/dist/select/select-item.js.map +1 -0
- package/dist/select/select-label.d.ts +55 -0
- package/dist/select/select-label.d.ts.map +1 -0
- package/dist/select/select-label.js +70 -0
- package/dist/select/select-label.js.map +1 -0
- package/dist/select/select-list.d.ts +80 -0
- package/dist/select/select-list.d.ts.map +1 -0
- package/dist/select/select-list.js +143 -0
- package/dist/select/select-list.js.map +1 -0
- package/dist/select/select-popover.d.ts +44 -0
- package/dist/select/select-popover.d.ts.map +1 -0
- package/dist/select/select-popover.js +59 -0
- package/dist/select/select-popover.js.map +1 -0
- package/dist/select/select-provider.d.ts +30 -0
- package/dist/select/select-provider.d.ts.map +1 -0
- package/dist/select/select-provider.js +15 -0
- package/dist/select/select-provider.js.map +1 -0
- package/dist/select/select-renderer.d.ts +44 -0
- package/dist/select/select-renderer.d.ts.map +1 -0
- package/dist/select/select-renderer.js +61 -0
- package/dist/select/select-renderer.js.map +1 -0
- package/dist/select/select-row.d.ts +63 -0
- package/dist/select/select-row.d.ts.map +1 -0
- package/dist/select/select-row.js +67 -0
- package/dist/select/select-row.js.map +1 -0
- package/dist/select/select-separator.d.ts +60 -0
- package/dist/select/select-separator.d.ts.map +1 -0
- package/dist/select/select-separator.js +57 -0
- package/dist/select/select-separator.js.map +1 -0
- package/dist/select/select-store.d.ts +2 -0
- package/dist/select/select-store.js +31 -0
- package/dist/select/select-store.js.map +1 -0
- package/dist/select/select-value.d.ts +84 -0
- package/dist/select/select-value.d.ts.map +1 -0
- package/dist/select/select-value.js +18 -0
- package/dist/select/select-value.js.map +1 -0
- package/dist/select/select.d.ts +89 -0
- package/dist/select/select.d.ts.map +1 -0
- package/dist/select/select.js +211 -0
- package/dist/select/select.js.map +1 -0
- package/dist/select-store-BsLTAyKh.d.ts +68 -0
- package/dist/select-store-BsLTAyKh.d.ts.map +1 -0
- package/dist/separator/separator.d.ts +2 -0
- package/dist/separator/separator.js +36 -0
- package/dist/separator/separator.js.map +1 -0
- package/dist/separator--ozQfMcK.d.ts +36 -0
- package/dist/separator--ozQfMcK.d.ts.map +1 -0
- package/dist/store.d.ts +1 -0
- package/dist/store.js +2 -0
- package/dist/tab/tab-context.d.ts +24 -0
- package/dist/tab/tab-context.d.ts.map +1 -0
- package/dist/tab/tab-context.js +27 -0
- package/dist/tab/tab-context.js.map +1 -0
- package/dist/tab/tab-list.d.ts +55 -0
- package/dist/tab/tab-list.d.ts.map +1 -0
- package/dist/tab/tab-list.js +71 -0
- package/dist/tab/tab-list.js.map +1 -0
- package/dist/tab/tab-panel.d.ts +122 -0
- package/dist/tab/tab-panel.d.ts.map +1 -0
- package/dist/tab/tab-panel.js +169 -0
- package/dist/tab/tab-panel.js.map +1 -0
- package/dist/tab/tab-provider.d.ts +26 -0
- package/dist/tab/tab-provider.d.ts.map +1 -0
- package/dist/tab/tab-provider.js +30 -0
- package/dist/tab/tab-provider.js.map +1 -0
- package/dist/tab/tab-store.d.ts +77 -0
- package/dist/tab/tab-store.d.ts.map +1 -0
- package/dist/tab/tab-store.js +55 -0
- package/dist/tab/tab-store.js.map +1 -0
- package/dist/tab/tab.d.ts +56 -0
- package/dist/tab/tab.d.ts.map +1 -0
- package/dist/tab/tab.js +115 -0
- package/dist/tab/tab.js.map +1 -0
- package/dist/tag/tag-context.d.ts +26 -0
- package/dist/tag/tag-context.d.ts.map +1 -0
- package/dist/tag/tag-context.js +30 -0
- package/dist/tag/tag-context.js.map +1 -0
- package/dist/tag/tag-input.d.ts +126 -0
- package/dist/tag/tag-input.d.ts.map +1 -0
- package/dist/tag/tag-input.js +162 -0
- package/dist/tag/tag-input.js.map +1 -0
- package/dist/tag/tag-list-label.d.ts +59 -0
- package/dist/tag/tag-list-label.d.ts.map +1 -0
- package/dist/tag/tag-list-label.js +62 -0
- package/dist/tag/tag-list-label.js.map +1 -0
- package/dist/tag/tag-list.d.ts +62 -0
- package/dist/tag/tag-list.d.ts.map +1 -0
- package/dist/tag/tag-list.js +127 -0
- package/dist/tag/tag-list.js.map +1 -0
- package/dist/tag/tag-provider.d.ts +34 -0
- package/dist/tag/tag-provider.d.ts.map +1 -0
- package/dist/tag/tag-provider.js +38 -0
- package/dist/tag/tag-provider.js.map +1 -0
- package/dist/tag/tag-remove.d.ts +71 -0
- package/dist/tag/tag-remove.d.ts.map +1 -0
- package/dist/tag/tag-remove.js +102 -0
- package/dist/tag/tag-remove.js.map +1 -0
- package/dist/tag/tag-store.d.ts +2 -0
- package/dist/tag/tag-store.js +38 -0
- package/dist/tag/tag-store.js.map +1 -0
- package/dist/tag/tag-value.d.ts +49 -0
- package/dist/tag/tag-value.d.ts.map +1 -0
- package/dist/tag/tag-value.js +40 -0
- package/dist/tag/tag-value.js.map +1 -0
- package/dist/tag/tag-values.d.ts +60 -0
- package/dist/tag/tag-values.d.ts.map +1 -0
- package/dist/tag/tag-values.js +50 -0
- package/dist/tag/tag-values.js.map +1 -0
- package/dist/tag/tag.d.ts +78 -0
- package/dist/tag/tag.d.ts.map +1 -0
- package/dist/tag/tag.js +114 -0
- package/dist/tag/tag.js.map +1 -0
- package/dist/tag/utils.d.ts +5 -0
- package/dist/tag/utils.d.ts.map +1 -0
- package/dist/tag/utils.js +15 -0
- package/dist/tag/utils.js.map +1 -0
- package/dist/tag-store-xANOvuGo.d.ts +49 -0
- package/dist/tag-store-xANOvuGo.d.ts.map +1 -0
- package/dist/toolbar/toolbar-container.d.ts +41 -0
- package/dist/toolbar/toolbar-container.d.ts.map +1 -0
- package/dist/toolbar/toolbar-container.js +53 -0
- package/dist/toolbar/toolbar-container.js.map +1 -0
- package/dist/toolbar/toolbar-context.d.ts +24 -0
- package/dist/toolbar/toolbar-context.d.ts.map +1 -0
- package/dist/toolbar/toolbar-context.js +27 -0
- package/dist/toolbar/toolbar-context.js.map +1 -0
- package/dist/toolbar/toolbar-input.d.ts +39 -0
- package/dist/toolbar/toolbar-input.d.ts.map +1 -0
- package/dist/toolbar/toolbar-input.js +47 -0
- package/dist/toolbar/toolbar-input.js.map +1 -0
- package/dist/toolbar/toolbar-item.d.ts +47 -0
- package/dist/toolbar/toolbar-item.d.ts.map +1 -0
- package/dist/toolbar/toolbar-item.js +45 -0
- package/dist/toolbar/toolbar-item.js.map +1 -0
- package/dist/toolbar/toolbar-provider.d.ts +26 -0
- package/dist/toolbar/toolbar-provider.d.ts.map +1 -0
- package/dist/toolbar/toolbar-provider.js +30 -0
- package/dist/toolbar/toolbar-provider.js.map +1 -0
- package/dist/toolbar/toolbar-separator.d.ts +51 -0
- package/dist/toolbar/toolbar-separator.d.ts.map +1 -0
- package/dist/toolbar/toolbar-separator.js +49 -0
- package/dist/toolbar/toolbar-separator.js.map +1 -0
- package/dist/toolbar/toolbar-store.d.ts +2 -0
- package/dist/toolbar/toolbar-store.js +31 -0
- package/dist/toolbar/toolbar-store.js.map +1 -0
- package/dist/toolbar/toolbar.d.ts +50 -0
- package/dist/toolbar/toolbar.d.ts.map +1 -0
- package/dist/toolbar/toolbar.js +66 -0
- package/dist/toolbar/toolbar.js.map +1 -0
- package/dist/toolbar-store-Cs-9cGHx.d.ts +30 -0
- package/dist/toolbar-store-Cs-9cGHx.d.ts.map +1 -0
- package/dist/tooltip/tooltip-anchor.d.ts +53 -0
- package/dist/tooltip/tooltip-anchor.d.ts.map +1 -0
- package/dist/tooltip/tooltip-anchor.js +121 -0
- package/dist/tooltip/tooltip-anchor.js.map +1 -0
- package/dist/tooltip/tooltip-arrow.d.ts +54 -0
- package/dist/tooltip/tooltip-arrow.d.ts.map +1 -0
- package/dist/tooltip/tooltip-arrow.js +54 -0
- package/dist/tooltip/tooltip-arrow.js.map +1 -0
- package/dist/tooltip/tooltip-context.d.ts +24 -0
- package/dist/tooltip/tooltip-context.d.ts.map +1 -0
- package/dist/tooltip/tooltip-context.js +27 -0
- package/dist/tooltip/tooltip-context.js.map +1 -0
- package/dist/tooltip/tooltip-provider.d.ts +23 -0
- package/dist/tooltip/tooltip-provider.d.ts.map +1 -0
- package/dist/tooltip/tooltip-provider.js +27 -0
- package/dist/tooltip/tooltip-provider.js.map +1 -0
- package/dist/tooltip/tooltip-store.d.ts +30 -0
- package/dist/tooltip/tooltip-store.d.ts.map +1 -0
- package/dist/tooltip/tooltip-store.js +30 -0
- package/dist/tooltip/tooltip-store.js.map +1 -0
- package/dist/tooltip/tooltip.d.ts +61 -0
- package/dist/tooltip/tooltip.d.ts.map +1 -0
- package/dist/tooltip/tooltip.js +81 -0
- package/dist/tooltip/tooltip.js.map +1 -0
- package/dist/utils-DUF1aMov.d.ts +5 -0
- package/dist/utils-DUF1aMov.d.ts.map +1 -0
- package/dist/visually-hidden/visually-hidden.d.ts +37 -0
- package/dist/visually-hidden/visually-hidden.d.ts.map +1 -0
- package/dist/visually-hidden/visually-hidden.js +53 -0
- package/dist/visually-hidden/visually-hidden.js.map +1 -0
- package/license +21 -0
- package/package.json +936 -0
- package/readme.md +19 -0
- package/src/button/button.tsx +76 -0
- package/src/checkbox/checkbox-check.tsx +116 -0
- package/src/checkbox/checkbox-checked-context.tsx +3 -0
- package/src/checkbox/checkbox-context.tsx +27 -0
- package/src/checkbox/checkbox-provider.tsx +53 -0
- package/src/checkbox/checkbox-store.ts +76 -0
- package/src/checkbox/checkbox.tsx +271 -0
- package/src/collection/collection-context.tsx +27 -0
- package/src/collection/collection-item-offscreen.tsx +157 -0
- package/src/collection/collection-item.tsx +136 -0
- package/src/collection/collection-provider.tsx +47 -0
- package/src/collection/collection-renderer.tsx +994 -0
- package/src/collection/collection-store.ts +84 -0
- package/src/collection/collection.tsx +93 -0
- package/src/combobox/combobox-cancel.tsx +153 -0
- package/src/combobox/combobox-context.tsx +49 -0
- package/src/combobox/combobox-disclosure.tsx +162 -0
- package/src/combobox/combobox-group-label.tsx +74 -0
- package/src/combobox/combobox-group.tsx +100 -0
- package/src/combobox/combobox-item-check.tsx +83 -0
- package/src/combobox/combobox-item-offscreen.tsx +87 -0
- package/src/combobox/combobox-item-value.tsx +231 -0
- package/src/combobox/combobox-item.tsx +363 -0
- package/src/combobox/combobox-label.tsx +89 -0
- package/src/combobox/combobox-list.tsx +176 -0
- package/src/combobox/combobox-popover.tsx +179 -0
- package/src/combobox/combobox-provider.tsx +50 -0
- package/src/combobox/combobox-row.tsx +102 -0
- package/src/combobox/combobox-separator.tsx +90 -0
- package/src/combobox/combobox-store.ts +168 -0
- package/src/combobox/combobox-value.tsx +63 -0
- package/src/combobox/combobox.tsx +900 -0
- package/src/command/command.tsx +215 -0
- package/src/composite/composite-container.tsx +278 -0
- package/src/composite/composite-context.tsx +53 -0
- package/src/composite/composite-group-label.tsx +73 -0
- package/src/composite/composite-group.tsx +77 -0
- package/src/composite/composite-hover.tsx +230 -0
- package/src/composite/composite-input.tsx +147 -0
- package/src/composite/composite-item-offscreen.tsx +112 -0
- package/src/composite/composite-item.tsx +567 -0
- package/src/composite/composite-overflow-disclosure.ts +117 -0
- package/src/composite/composite-overflow-store.ts +61 -0
- package/src/composite/composite-overflow.tsx +123 -0
- package/src/composite/composite-provider.tsx +47 -0
- package/src/composite/composite-renderer.tsx +231 -0
- package/src/composite/composite-row.tsx +133 -0
- package/src/composite/composite-separator.tsx +96 -0
- package/src/composite/composite-store.ts +101 -0
- package/src/composite/composite-typeahead.tsx +246 -0
- package/src/composite/composite.tsx +592 -0
- package/src/composite/utils.ts +121 -0
- package/src/dialog/dialog-backdrop.tsx +71 -0
- package/src/dialog/dialog-context.tsx +43 -0
- package/src/dialog/dialog-description.tsx +86 -0
- package/src/dialog/dialog-disclosure.tsx +84 -0
- package/src/dialog/dialog-dismiss.tsx +113 -0
- package/src/dialog/dialog-heading.tsx +88 -0
- package/src/dialog/dialog-provider.tsx +28 -0
- package/src/dialog/dialog-store.ts +51 -0
- package/src/dialog/dialog.tsx +866 -0
- package/src/dialog/utils/disable-accessibility-tree-outside.ts +30 -0
- package/src/dialog/utils/disable-tree.ts +81 -0
- package/src/dialog/utils/is-backdrop.ts +12 -0
- package/src/dialog/utils/is-focus-trap.ts +11 -0
- package/src/dialog/utils/mark-tree-outside.ts +67 -0
- package/src/dialog/utils/orchestrate.ts +123 -0
- package/src/dialog/utils/prepend-hidden-dismiss.ts +35 -0
- package/src/dialog/utils/supports-inert.ts +5 -0
- package/src/dialog/utils/use-hide-on-interact-outside.ts +181 -0
- package/src/dialog/utils/use-nested-dialogs.tsx +55 -0
- package/src/dialog/utils/use-prevent-body-scroll.ts +86 -0
- package/src/dialog/utils/use-previous-mouse-down-ref.ts +19 -0
- package/src/dialog/utils/use-root-dialog.ts +49 -0
- package/src/dialog/utils/walk-tree-outside.ts +85 -0
- package/src/disclosure/disclosure-content.tsx +344 -0
- package/src/disclosure/disclosure-context.tsx +27 -0
- package/src/disclosure/disclosure-provider.tsx +29 -0
- package/src/disclosure/disclosure-store.ts +85 -0
- package/src/disclosure/disclosure.tsx +144 -0
- package/src/focus-trap/focus-trap-region.tsx +112 -0
- package/src/focus-trap/focus-trap.tsx +60 -0
- package/src/focusable/focusable-container.tsx +75 -0
- package/src/focusable/focusable-context.tsx +3 -0
- package/src/focusable/focusable.tsx +559 -0
- package/src/form/form-checkbox.tsx +106 -0
- package/src/form/form-context.tsx +34 -0
- package/src/form/form-control.tsx +227 -0
- package/src/form/form-description.tsx +142 -0
- package/src/form/form-error.tsx +156 -0
- package/src/form/form-field.tsx +94 -0
- package/src/form/form-group-label.tsx +79 -0
- package/src/form/form-group.tsx +79 -0
- package/src/form/form-input.tsx +104 -0
- package/src/form/form-label.tsx +192 -0
- package/src/form/form-provider.tsx +49 -0
- package/src/form/form-push.tsx +200 -0
- package/src/form/form-radio-group.tsx +93 -0
- package/src/form/form-radio.tsx +122 -0
- package/src/form/form-remove.tsx +198 -0
- package/src/form/form-reset.tsx +85 -0
- package/src/form/form-store.ts +195 -0
- package/src/form/form-submit.tsx +93 -0
- package/src/form/form.tsx +249 -0
- package/src/group/group-label-context.tsx +6 -0
- package/src/group/group-label.tsx +75 -0
- package/src/group/group.tsx +69 -0
- package/src/heading/heading-context.tsx +4 -0
- package/src/heading/heading-level.tsx +42 -0
- package/src/heading/heading.tsx +81 -0
- package/src/heading/utils.ts +1 -0
- package/src/hovercard/hovercard-anchor.tsx +195 -0
- package/src/hovercard/hovercard-arrow.tsx +74 -0
- package/src/hovercard/hovercard-context.tsx +34 -0
- package/src/hovercard/hovercard-description.tsx +69 -0
- package/src/hovercard/hovercard-disclosure.tsx +196 -0
- package/src/hovercard/hovercard-dismiss.tsx +70 -0
- package/src/hovercard/hovercard-heading.tsx +68 -0
- package/src/hovercard/hovercard-provider.tsx +29 -0
- package/src/hovercard/hovercard-store.ts +58 -0
- package/src/hovercard/hovercard.tsx +445 -0
- package/src/hovercard/utils/__tests__/polygon-test.ts +66 -0
- package/src/hovercard/utils/debug-polygon.ts +37 -0
- package/src/hovercard/utils/polygon.ts +96 -0
- package/src/index.ts +1 -0
- package/src/menu/menu-arrow.tsx +69 -0
- package/src/menu/menu-bar-provider.tsx +44 -0
- package/src/menu/menu-bar-store.ts +54 -0
- package/src/menu/menu-bar.tsx +84 -0
- package/src/menu/menu-button-arrow.tsx +85 -0
- package/src/menu/menu-button.tsx +338 -0
- package/src/menu/menu-context.tsx +76 -0
- package/src/menu/menu-description.tsx +67 -0
- package/src/menu/menu-dismiss.tsx +69 -0
- package/src/menu/menu-group-label.tsx +72 -0
- package/src/menu/menu-group.tsx +76 -0
- package/src/menu/menu-heading.tsx +67 -0
- package/src/menu/menu-item-check.tsx +79 -0
- package/src/menu/menu-item-checkbox.tsx +227 -0
- package/src/menu/menu-item-radio.tsx +198 -0
- package/src/menu/menu-item.tsx +223 -0
- package/src/menu/menu-list.tsx +230 -0
- package/src/menu/menu-provider.tsx +42 -0
- package/src/menu/menu-separator.tsx +79 -0
- package/src/menu/menu-store.ts +155 -0
- package/src/menu/menu.tsx +274 -0
- package/src/menubar/menubar-context.tsx +39 -0
- package/src/menubar/menubar-provider.tsx +43 -0
- package/src/menubar/menubar-store.ts +48 -0
- package/src/menubar/menubar.tsx +145 -0
- package/src/popover/popover-anchor.tsx +74 -0
- package/src/popover/popover-arrow-path.ts +21 -0
- package/src/popover/popover-arrow.tsx +228 -0
- package/src/popover/popover-context.tsx +34 -0
- package/src/popover/popover-description.tsx +69 -0
- package/src/popover/popover-disclosure-arrow.tsx +135 -0
- package/src/popover/popover-disclosure.tsx +101 -0
- package/src/popover/popover-dismiss.tsx +70 -0
- package/src/popover/popover-heading.tsx +68 -0
- package/src/popover/popover-provider.tsx +29 -0
- package/src/popover/popover-store.ts +53 -0
- package/src/popover/popover.tsx +649 -0
- package/src/portal/portal-context.tsx +19 -0
- package/src/portal/portal.tsx +493 -0
- package/src/radio/radio-context.tsx +34 -0
- package/src/radio/radio-group.tsx +103 -0
- package/src/radio/radio-provider.tsx +29 -0
- package/src/radio/radio-store.ts +64 -0
- package/src/radio/radio.tsx +242 -0
- package/src/role/role.tsx +88 -0
- package/src/select/select-arrow.tsx +80 -0
- package/src/select/select-context.tsx +46 -0
- package/src/select/select-dismiss.tsx +79 -0
- package/src/select/select-group-label.tsx +78 -0
- package/src/select/select-group.tsx +79 -0
- package/src/select/select-heading.tsx +98 -0
- package/src/select/select-item-check.tsx +80 -0
- package/src/select/select-item-offscreen.tsx +59 -0
- package/src/select/select-item.tsx +294 -0
- package/src/select/select-label.tsx +117 -0
- package/src/select/select-list.tsx +251 -0
- package/src/select/select-popover.tsx +67 -0
- package/src/select/select-provider.tsx +45 -0
- package/src/select/select-renderer.tsx +160 -0
- package/src/select/select-row.tsx +97 -0
- package/src/select/select-separator.tsx +80 -0
- package/src/select/select-store.ts +139 -0
- package/src/select/select-value.tsx +108 -0
- package/src/select/select.tsx +371 -0
- package/src/separator/separator.tsx +54 -0
- package/src/store.ts +1 -0
- package/src/tab/tab-context.tsx +34 -0
- package/src/tab/tab-list.tsx +120 -0
- package/src/tab/tab-panel.tsx +314 -0
- package/src/tab/tab-provider.tsx +30 -0
- package/src/tab/tab-store.ts +124 -0
- package/src/tab/tab.tsx +208 -0
- package/src/tag/tag-context.tsx +40 -0
- package/src/tag/tag-input.tsx +321 -0
- package/src/tag/tag-list-label.tsx +102 -0
- package/src/tag/tag-list.tsx +210 -0
- package/src/tag/tag-provider.tsx +38 -0
- package/src/tag/tag-remove.tsx +174 -0
- package/src/tag/tag-store.ts +72 -0
- package/src/tag/tag-value.tsx +63 -0
- package/src/tag/tag-values.tsx +74 -0
- package/src/tag/tag.tsx +199 -0
- package/src/tag/utils.ts +12 -0
- package/src/toolbar/toolbar-container.tsx +67 -0
- package/src/toolbar/toolbar-context.tsx +34 -0
- package/src/toolbar/toolbar-input.tsx +64 -0
- package/src/toolbar/toolbar-item.tsx +72 -0
- package/src/toolbar/toolbar-provider.tsx +32 -0
- package/src/toolbar/toolbar-separator.tsx +71 -0
- package/src/toolbar/toolbar-store.ts +52 -0
- package/src/toolbar/toolbar.tsx +119 -0
- package/src/tooltip/tooltip-anchor.tsx +210 -0
- package/src/tooltip/tooltip-arrow.tsx +84 -0
- package/src/tooltip/tooltip-context.tsx +34 -0
- package/src/tooltip/tooltip-provider.tsx +29 -0
- package/src/tooltip/tooltip-store.ts +53 -0
- package/src/tooltip/tooltip.tsx +153 -0
- package/src/visually-hidden/visually-hidden.tsx +67 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { t as CompositeStore } from "./composite-store-DyJc-XRA.js";
|
|
2
|
+
import { Options, Props } from "@ariakit/react-utils";
|
|
3
|
+
import { ElementType, MouseEvent } from "react";
|
|
4
|
+
import { BooleanOrCallback } from "@ariakit/utils";
|
|
5
|
+
|
|
6
|
+
//#region src/composite/composite-hover.d.ts
|
|
7
|
+
declare const TagName = "div";
|
|
8
|
+
type TagName = typeof TagName;
|
|
9
|
+
/**
|
|
10
|
+
* Returns props to create a `CompositeHover` component. The composite item that
|
|
11
|
+
* receives these props will get focused on mouse move and lose focus to the
|
|
12
|
+
* composite base element on mouse leave. This should be combined with the
|
|
13
|
+
* `CompositeItem` component, the `useCompositeItem` hook or any component/hook
|
|
14
|
+
* that uses them underneath.
|
|
15
|
+
* @see https://ariakit.com/components/composite
|
|
16
|
+
* @example
|
|
17
|
+
* ```jsx
|
|
18
|
+
* const store = useCompositeStore();
|
|
19
|
+
* const props = useCompositeHover({ store });
|
|
20
|
+
* <CompositeItem store={store} {...props}>Item</CompositeItem>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
declare const useCompositeHover: import("@ariakit/react-utils").Hook<"div", CompositeHoverOptions<"div">>;
|
|
24
|
+
/**
|
|
25
|
+
* Renders an element in a composite widget that receives focus on mouse move
|
|
26
|
+
* and loses focus to the composite base element on mouse leave.
|
|
27
|
+
*
|
|
28
|
+
* This should be combined with the
|
|
29
|
+
* [`CompositeItem`](https://ariakit.com/reference/composite-item) component.
|
|
30
|
+
* The
|
|
31
|
+
* [`focusOnHover`](https://ariakit.com/reference/composite-hover#focusonhover)
|
|
32
|
+
* and
|
|
33
|
+
* [`blurOnHoverEnd`](https://ariakit.com/reference/composite-hover#bluronhoverend)
|
|
34
|
+
* props can be used to customize the behavior.
|
|
35
|
+
* @see https://ariakit.com/components/composite
|
|
36
|
+
* @example
|
|
37
|
+
* ```jsx {3-5}
|
|
38
|
+
* <CompositeProvider>
|
|
39
|
+
* <Composite>
|
|
40
|
+
* <CompositeHover render={<CompositeItem />}>
|
|
41
|
+
* Item
|
|
42
|
+
* </CompositeHover>
|
|
43
|
+
* </Composite>
|
|
44
|
+
* </CompositeProvider>
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
declare const CompositeHover: (props: CompositeHoverProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
48
|
+
interface CompositeHoverOptions<_T extends ElementType = TagName> extends Options {
|
|
49
|
+
/**
|
|
50
|
+
* Object returned by the
|
|
51
|
+
* [`useCompositeStore`](https://ariakit.com/reference/use-composite-store)
|
|
52
|
+
* hook. If not provided, the closest
|
|
53
|
+
* [`Composite`](https://ariakit.com/reference/composite) or
|
|
54
|
+
* [`CompositeProvider`](https://ariakit.com/reference/composite-provider)
|
|
55
|
+
* components' context will be used.
|
|
56
|
+
*/
|
|
57
|
+
store?: CompositeStore;
|
|
58
|
+
/**
|
|
59
|
+
* Determines if the composite item should be _focused_ when hovered over.
|
|
60
|
+
*
|
|
61
|
+
* Note that the actual DOM focus will stay on the composite element. This
|
|
62
|
+
* item will get the
|
|
63
|
+
* [`data-active-item`](https://ariakit.com/guide/styling#data-active-item)
|
|
64
|
+
* attribute so it can be styled as if it's focused.
|
|
65
|
+
*
|
|
66
|
+
* Live examples:
|
|
67
|
+
* - [Multi-selectable
|
|
68
|
+
* Combobox](https://ariakit.com/examples/combobox-multiple)
|
|
69
|
+
* - [Combobox with integrated
|
|
70
|
+
* filter](https://ariakit.com/examples/combobox-filtering-integrated)
|
|
71
|
+
* - [Textarea with inline
|
|
72
|
+
* Combobox](https://ariakit.com/examples/combobox-textarea)
|
|
73
|
+
* - [Navigation Menubar](https://ariakit.com/examples/menubar-navigation)
|
|
74
|
+
* - [Submenu with
|
|
75
|
+
* Combobox](https://ariakit.com/examples/menu-nested-combobox)
|
|
76
|
+
* - [Combobox with Tabs](https://ariakit.com/examples/combobox-tabs)
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
focusOnHover?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
80
|
+
/**
|
|
81
|
+
* Determines if the composite item should lose focus when the mouse leaves.
|
|
82
|
+
* By default, this is set to `true` if
|
|
83
|
+
* [`focusOnHover`](https://ariakit.com/reference/composite-hover#focusonhover)
|
|
84
|
+
* is `true`.
|
|
85
|
+
*
|
|
86
|
+
* Live examples:
|
|
87
|
+
* - [Navigation Menubar](https://ariakit.com/examples/menubar-navigation)
|
|
88
|
+
* - [Combobox with integrated
|
|
89
|
+
* filter](https://ariakit.com/examples/combobox-filtering-integrated)
|
|
90
|
+
* - [Submenu with
|
|
91
|
+
* Combobox](https://ariakit.com/examples/menu-nested-combobox)
|
|
92
|
+
* - [Combobox with Tabs](https://ariakit.com/examples/combobox-tabs)
|
|
93
|
+
* - [Command Menu with
|
|
94
|
+
* Tabs](https://ariakit.com/examples/dialog-combobox-tab-command-menu)
|
|
95
|
+
* - [Select with Combobox and
|
|
96
|
+
* Tabs](https://ariakit.com/examples/select-combobox-tab)
|
|
97
|
+
*/
|
|
98
|
+
blurOnHoverEnd?: BooleanOrCallback<MouseEvent<HTMLElement>>;
|
|
99
|
+
}
|
|
100
|
+
type CompositeHoverProps<T extends ElementType = TagName> = Props<T, CompositeHoverOptions<T>>;
|
|
101
|
+
//#endregion
|
|
102
|
+
export { useCompositeHover as i, CompositeHoverOptions as n, CompositeHoverProps as r, CompositeHover as t };
|
|
103
|
+
//# sourceMappingURL=composite-hover-C7ul163w.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composite-hover-C7ul163w.d.ts","names":["Options","Props","BooleanOrCallback","ElementType","MouseEvent","ReactMouseEvent","CompositeStore","TagName","useCompositeHover","CompositeHoverOptions","Hook","CompositeHover","CompositeHoverProps","props","ReactElement","JSXElementConstructor","_T","HTMLElement","store","focusOnHover","blurOnHoverEnd","T"],"sources":["../src/composite/composite-hover.d.ts"],"mappings":";;;;;;cAIcO,OAAAA;AAAAA,KACTA,OAAAA,UAAiBA,OAAO;AAF8B;;;;AACtC;AAAA;;;;AACQ;AAe7B;;;;AAjB2D,cAiBtCC,iBAAAA,iCAAkDE,IAAAA,QAAYD,qBAAqB;AAwBxG;;;;;;;;;AAAqJ;AACrJ;;;;;;;;;;;;;AADA,cAAqBE,cAAAA,GAAiBE,KAAAA,EAAOD,mBAAmB,qBAAqBE,YAAAA,+BAA2CC,qBAAAA;AAAAA,UAC/GN,qBAAAA,YAAiCN,WAAAA,GAAcI,OAAAA,UAAiBP,OAAAA;EAA1CgB;;;;;;;;EASnCE,KAAAA,GAAQZ,cAAAA;EAsByCW;;;;;;AAmBa;AAElE;;;;;;;;;;;;;;EArBIE,YAAAA,GAAejB,iBAAAA,CAAkBG,UAAAA,CAAgBY,WAAAA;EAqBoBI;;;;AAA0B;;;;;;;;;;;;;;EAF/FD,cAAAA,GAAiBlB,iBAAAA,CAAkBG,UAAAA,CAAgBY,WAAAA;AAAAA;AAAAA,KAE3CL,mBAAAA,WAA8BT,WAAAA,GAAcI,OAAAA,IAAWN,KAAAA,CAAMoB,CAAAA,EAAGZ,qBAAAA,CAAsBY,CAAAA"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { n as CommandOptions } from "./command-DckndCUK.js";
|
|
2
|
+
import { n as CollectionItemOptions } from "./collection-item-C-g2BwVF.js";
|
|
3
|
+
import { t as CompositeStore } from "./composite-store-DyJc-XRA.js";
|
|
4
|
+
import { Props } from "@ariakit/react-utils";
|
|
5
|
+
import { ElementType, KeyboardEvent } from "react";
|
|
6
|
+
import { BooleanOrCallback } from "@ariakit/utils";
|
|
7
|
+
|
|
8
|
+
//#region src/composite/composite-item.d.ts
|
|
9
|
+
declare const TagName = "button";
|
|
10
|
+
type TagName = typeof TagName;
|
|
11
|
+
/**
|
|
12
|
+
* Returns props to create a `CompositeItem` component.
|
|
13
|
+
* @see https://ariakit.com/components/composite
|
|
14
|
+
* @example
|
|
15
|
+
* ```jsx
|
|
16
|
+
* const store = useCompositeStore();
|
|
17
|
+
* const props = useCompositeItem({ store });
|
|
18
|
+
* <Role {...props}>Item 1</Role>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare const useCompositeItem: import("@ariakit/react-utils").Hook<"button", CompositeItemOptions<"button">>;
|
|
22
|
+
/**
|
|
23
|
+
* Renders a focusable item as part of a composite widget. The `tabindex`
|
|
24
|
+
* attribute is automatically managed by this component based on the
|
|
25
|
+
* [`virtualFocus`](https://ariakit.com/reference/composite-provider#virtualfocus)
|
|
26
|
+
* option.
|
|
27
|
+
*
|
|
28
|
+
* When this component receives DOM focus or is virtually focused (when the
|
|
29
|
+
* [`virtualFocus`](https://ariakit.com/reference/composite-provider#virtualfocus)
|
|
30
|
+
* option is set to `true`), the element will automatically receive the
|
|
31
|
+
* [`data-active-item`](https://ariakit.com/guide/styling#data-active-item)
|
|
32
|
+
* attribute. This can be used to style the focused item, no matter the focus
|
|
33
|
+
* approach employed.
|
|
34
|
+
* @see https://ariakit.com/components/composite
|
|
35
|
+
* @example
|
|
36
|
+
* ```jsx {3-5}
|
|
37
|
+
* <CompositeProvider>
|
|
38
|
+
* <Composite>
|
|
39
|
+
* <CompositeItem>Item 1</CompositeItem>
|
|
40
|
+
* <CompositeItem>Item 2</CompositeItem>
|
|
41
|
+
* <CompositeItem>Item 3</CompositeItem>
|
|
42
|
+
* </Composite>
|
|
43
|
+
* </CompositeProvider>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
declare const CompositeItem: (props: CompositeItemProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
47
|
+
interface CompositeItemOptions<T extends ElementType = TagName> extends CommandOptions<T>, CollectionItemOptions<T> {
|
|
48
|
+
/**
|
|
49
|
+
* Object returned by the
|
|
50
|
+
* [`useCompositeStore`](https://ariakit.com/reference/use-composite-store)
|
|
51
|
+
* hook. If not provided, the closest
|
|
52
|
+
* [`Composite`](https://ariakit.com/reference/composite) or
|
|
53
|
+
* [`CompositeProvider`](https://ariakit.com/reference/composite-provider)
|
|
54
|
+
* components' context will be used.
|
|
55
|
+
*/
|
|
56
|
+
store?: CompositeStore;
|
|
57
|
+
/**
|
|
58
|
+
* Determines if the item should be registered as part of the collection. If
|
|
59
|
+
* this is set to `false`, the item won't be accessible via arrow keys.
|
|
60
|
+
*/
|
|
61
|
+
shouldRegisterItem?: CollectionItemOptions<T>["shouldRegisterItem"];
|
|
62
|
+
/**
|
|
63
|
+
* The id that will be used to group items in the same row. This is usually
|
|
64
|
+
* retrieved by the
|
|
65
|
+
* [`CompositeRow`](https://ariakit.com/reference/composite-row) component
|
|
66
|
+
* through context so in most cases you don't need to set it manually.
|
|
67
|
+
*
|
|
68
|
+
* Live examples:
|
|
69
|
+
* - [Command Menu with
|
|
70
|
+
* Tabs](https://ariakit.com/examples/dialog-combobox-tab-command-menu)
|
|
71
|
+
*/
|
|
72
|
+
rowId?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the scroll behavior should be prevented when pressing arrow keys on
|
|
75
|
+
* the first or the last items.
|
|
76
|
+
* @deprecated Use CSS
|
|
77
|
+
* [`scroll-margin`](https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-margin)
|
|
78
|
+
* instead.
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
preventScrollOnKeyDown?: BooleanOrCallback<KeyboardEvent<HTMLElement>>;
|
|
82
|
+
/**
|
|
83
|
+
* Determines if pressing arrow keys while this item is in focus should move
|
|
84
|
+
* focus to a different item.
|
|
85
|
+
*
|
|
86
|
+
* **Note**: To entirely disable focus moving within a composite widget, you
|
|
87
|
+
* can use the
|
|
88
|
+
* [`focusOnMove`](https://ariakit.com/reference/composite#focusonmove) prop
|
|
89
|
+
* on the composite component instead. If you want to control the behavior
|
|
90
|
+
* _only when arrow keys are pressed_, where
|
|
91
|
+
* [`focusOnMove`](https://ariakit.com/reference/composite#focusonmove) may
|
|
92
|
+
* not be applicable, this prop must be set on all composite items because
|
|
93
|
+
* they each manage their own key presses, as well as on the composite
|
|
94
|
+
* component itself.
|
|
95
|
+
* @default true
|
|
96
|
+
* @example
|
|
97
|
+
* ```jsx
|
|
98
|
+
* <Composite moveOnKeyPress={false}>
|
|
99
|
+
* <CompositeItem moveOnKeyPress={false} />
|
|
100
|
+
* <CompositeItem moveOnKeyPress={false} />
|
|
101
|
+
* </Composite>
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
moveOnKeyPress?: BooleanOrCallback<KeyboardEvent<HTMLElement>>;
|
|
105
|
+
/**
|
|
106
|
+
* When the `tabbable` prop is set to `true`, the [roving
|
|
107
|
+
* tabindex](https://www.w3.org/WAI/ARIA/apg/practices/keyboard-interface/#kbd_roving_tabindex)
|
|
108
|
+
* method is partially disabled for this element. This means that the
|
|
109
|
+
* `tabIndex` prop won't be assigned `-1` when the item is inactive. In
|
|
110
|
+
* addition to using arrow keys, users will be able to tab to this element,
|
|
111
|
+
* leading to the composite widget no longer existing as a single tab stop.
|
|
112
|
+
*
|
|
113
|
+
* As per the [ARIA spec](https://w3c.github.io/aria/#composite):
|
|
114
|
+
*
|
|
115
|
+
* > Authors **SHOULD** ensure that a composite widget exists as a single
|
|
116
|
+
* > navigation stop within the larger navigation system of the web page.
|
|
117
|
+
*
|
|
118
|
+
* Additionally, as stated in
|
|
119
|
+
* [RFC-2119](https://www.rfc-editor.org/rfc/rfc2119.txt):
|
|
120
|
+
*
|
|
121
|
+
* > **SHOULD** This word, or the adjective "RECOMMENDED", mean that there may
|
|
122
|
+
* > exist valid reasons in particular circumstances to ignore a particular
|
|
123
|
+
* > item, but the full implications must be understood and carefully weighed
|
|
124
|
+
* > before choosing a different course.
|
|
125
|
+
*
|
|
126
|
+
* Therefore, while this may be allowed, you should think carefully about the
|
|
127
|
+
* implications of using this prop.
|
|
128
|
+
*
|
|
129
|
+
* **Note**: This prop has no effect when the
|
|
130
|
+
* [`virtualFocus`](https://ariakit.com/reference/composite-provider#virtualfocus)
|
|
131
|
+
* option is enabled.
|
|
132
|
+
*
|
|
133
|
+
* Live examples:
|
|
134
|
+
* - [Navigation Menubar](https://ariakit.com/examples/menubar-navigation)
|
|
135
|
+
*/
|
|
136
|
+
tabbable?: boolean;
|
|
137
|
+
}
|
|
138
|
+
type CompositeItemProps<T extends ElementType = TagName> = Props<T, CompositeItemOptions<T>>;
|
|
139
|
+
//#endregion
|
|
140
|
+
export { useCompositeItem as i, CompositeItemOptions as n, CompositeItemProps as r, CompositeItem as t };
|
|
141
|
+
//# sourceMappingURL=composite-item-B4WTelVz.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composite-item-B4WTelVz.d.ts","names":["Props","BooleanOrCallback","ElementType","KeyboardEvent","CollectionItemOptions","CommandOptions","CompositeStore","TagName","useCompositeItem","CompositeItemOptions","Hook","CompositeItem","CompositeItemProps","props","ReactElement","JSXElementConstructor","T","HTMLElement","store","shouldRegisterItem","rowId","preventScrollOnKeyDown","moveOnKeyPress","tabbable"],"sources":["../src/composite/composite-item.d.ts"],"mappings":";;;;;;;;cAMcO,OAAAA;AAAAA,KACTA,OAAAA,UAAiBA,OAAO;AAF8B;;;;AACtC;AAAA;;;;AACQ;AAF8B,cAatCC,gBAAAA,iCAAiDE,IAAAA,WAAeD,oBAAoB;;;;AAAA;AAyBzG;;;;;;;;;AAAmJ;AACnJ;;;;;;;;;;cADqBE,aAAAA,GAAgBE,KAAAA,EAAOD,kBAAkB,qBAAqBE,YAAAA,+BAA2CC,qBAAAA;AAAAA,UAC7GN,oBAAAA,WAA+BP,WAAAA,GAAcK,OAAAA,UAAiBF,cAAAA,CAAeW,CAAAA,GAAIZ,qBAAAA,CAAsBY,CAAAA;EAkC3Ff;;;;;;;;EAzBzBiB,KAAAA,GAAQZ,cAAAA;EAToCJ;;;;EAc5CiB,kBAAAA,GAAqBf,qBAAAA,CAAsBY,CAAAA;EAdyEA;;;;;;;;;;EAyBpHI,KAAAA;EAgCAE;;;;;;AAgCQ;AAEZ;EAzDID,sBAAAA,GAAyBpB,iBAAAA,CAAkBE,aAAAA,CAAcc,WAAAA;EAyD/BD;;;;;;;;;;;;;;;;;AAAmE;;;;;EAlC7FM,cAAAA,GAAiBrB,iBAAAA,CAAkBE,aAAAA,CAAcc,WAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCjDM,QAAAA;AAAAA;AAAAA,KAEQX,kBAAAA,WAA6BV,WAAAA,GAAcK,OAAAA,IAAWP,KAAAA,CAAMgB,CAAAA,EAAGP,oBAAAA,CAAqBO,CAAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { i as CollectionStoreOptions, n as CollectionStoreFunctions, o as CollectionStoreState } from "./collection-store-CbwzYsWf.js";
|
|
2
|
+
import { PickRequired } from "@ariakit/utils";
|
|
3
|
+
import { Store } from "@ariakit/react-store";
|
|
4
|
+
import * as Core from "@ariakit/components/composite/composite-store";
|
|
5
|
+
|
|
6
|
+
//#region src/composite/composite-store.d.ts
|
|
7
|
+
declare function useCompositeStoreOptions<T extends Core.CompositeStoreOptions>(props: T): {
|
|
8
|
+
id: string | undefined;
|
|
9
|
+
} & T;
|
|
10
|
+
declare function useCompositeStoreProps<T extends Core.CompositeStore>(store: T, update: () => void, props: CompositeStoreProps): T;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a composite store to control the state of
|
|
13
|
+
* [Composite](https://ariakit.com/components/composite) components.
|
|
14
|
+
* @see https://ariakit.com/components/composite
|
|
15
|
+
* @example
|
|
16
|
+
* ```jsx
|
|
17
|
+
* const composite = useCompositeStore();
|
|
18
|
+
*
|
|
19
|
+
* <Composite store={composite}>
|
|
20
|
+
* <CompositeItem>Item</CompositeItem>
|
|
21
|
+
* <CompositeItem>Item</CompositeItem>
|
|
22
|
+
* <CompositeItem>Item</CompositeItem>
|
|
23
|
+
* </Composite>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
declare function useCompositeStore<T extends CompositeStoreItem = CompositeStoreItem>(props: PickRequired<CompositeStoreProps<T>, "items" | "defaultItems">): CompositeStore<T>;
|
|
27
|
+
declare function useCompositeStore(props?: CompositeStoreProps): CompositeStore;
|
|
28
|
+
interface CompositeStoreItem extends Core.CompositeStoreItem {}
|
|
29
|
+
interface CompositeStoreState<T extends CompositeStoreItem = CompositeStoreItem> extends Core.CompositeStoreState<T>, CollectionStoreState<T> {}
|
|
30
|
+
interface CompositeStoreFunctions<T extends CompositeStoreItem = CompositeStoreItem> extends Core.CompositeStoreFunctions<T>, CollectionStoreFunctions<T> {}
|
|
31
|
+
interface CompositeStoreOptions<T extends CompositeStoreItem = CompositeStoreItem> extends Core.CompositeStoreOptions<T>, CollectionStoreOptions<T> {
|
|
32
|
+
/**
|
|
33
|
+
* A callback that gets called when the
|
|
34
|
+
* [`activeId`](https://ariakit.com/reference/composite-provider#activeid)
|
|
35
|
+
* state changes.
|
|
36
|
+
*/
|
|
37
|
+
setActiveId?: (activeId: CompositeStoreState<T>["activeId"]) => void;
|
|
38
|
+
}
|
|
39
|
+
interface CompositeStoreProps<T extends CompositeStoreItem = CompositeStoreItem> extends CompositeStoreOptions<T>, Core.CompositeStoreProps<T> {}
|
|
40
|
+
interface CompositeStore<T extends CompositeStoreItem = CompositeStoreItem> extends CompositeStoreFunctions<T>, Store<Core.CompositeStore<T>> {}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { CompositeStoreProps as a, useCompositeStoreOptions as c, CompositeStoreOptions as i, useCompositeStoreProps as l, CompositeStoreFunctions as n, CompositeStoreState as o, CompositeStoreItem as r, useCompositeStore as s, CompositeStore as t };
|
|
43
|
+
//# sourceMappingURL=composite-store-DyJc-XRA.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composite-store-DyJc-XRA.d.ts","names":["Core","Store","PickRequired","CollectionStoreFunctions","CollectionStoreOptions","CollectionStoreState","useCompositeStoreOptions","T","CompositeStoreOptions","props","id","useCompositeStoreProps","CompositeStore","CompositeStoreProps","store","update","useCompositeStore","CompositeStoreItem","CompositeStoreState","CompositeStoreFunctions","setActiveId","activeId"],"sources":["../src/composite/composite-store.d.ts"],"mappings":";;;;;;iBAIwBM,wBAAAA,WAAmCN,IAAAA,CAAKQ,qBAAAA,CAAAA,CAAuBC,KAAAA,EAAOF,CAAAA;EAC1FG,EAAAA;AAAAA,IACAH,CAAAA;AAAAA,iBACoBI,sBAAAA,WAAiCX,IAAAA,CAAKY,cAAAA,CAAAA,CAAgBE,KAAAA,EAAOP,CAAAA,EAAGQ,MAAAA,cAAoBN,KAAAA,EAAOI,mBAAAA,GAAsBN,CAAAA;;;;;;;;;;;;;;;AADpI;iBAiBmBS,iBAAAA,WAA4BC,kBAAAA,GAAqBA,kBAAAA,CAAAA,CAAoBR,KAAAA,EAAOP,YAAAA,CAAaW,mBAAAA,CAAoBN,CAAAA,+BAAgCK,cAAAA,CAAeL,CAAAA;AAAAA,iBAC5JS,iBAAAA,CAAkBP,KAAAA,GAAQI,mBAAAA,GAAsBD,cAAc;AAAA,UACrEK,kBAAAA,SAA2BjB,IAAAA,CAAKiB,kBAAkB;AAAA,UAElDC,mBAAAA,WAA8BD,kBAAAA,GAAqBA,kBAAAA,UAA4BjB,IAAAA,CAAKkB,mBAAAA,CAAoBX,CAAAA,GAAIF,oBAAAA,CAAqBE,CAAAA;AAAAA,UAEjIY,uBAAAA,WAAkCF,kBAAAA,GAAqBA,kBAAAA,UAA4BjB,IAAAA,CAAKmB,uBAAAA,CAAwBZ,CAAAA,GAAIJ,wBAAAA,CAAyBI,CAAAA;AAAAA,UAE7IC,qBAAAA,WAAgCS,kBAAAA,GAAqBA,kBAAAA,UAA4BjB,IAAAA,CAAKQ,qBAAAA,CAAsBD,CAAAA,GAAIH,sBAAAA,CAAuBG,CAAAA;EAxBzGA;;;;;EA8B3Ca,WAAAA,IAAeC,QAAAA,EAAUH,mBAAAA,CAAoBX,CAAAA;AAAAA;AAAAA,UAEhCM,mBAAAA,WAA8BI,kBAAAA,GAAqBA,kBAAAA,UAA4BT,qBAAAA,CAAsBD,CAAAA,GAAIP,IAAAA,CAAKa,mBAAAA,CAAoBN,CAAAA;AAAAA,UAElIK,cAAAA,WAAyBK,kBAAAA,GAAqBA,kBAAAA,UAA4BE,uBAAAA,CAAwBZ,CAAAA,GAAIN,KAAAA,CAAMD,IAAAA,CAAKY,cAAAA,CAAeL,CAAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { t as CompositeStore } from "./composite-store-DyJc-XRA.js";
|
|
2
|
+
import { Options, Props } from "@ariakit/react-utils";
|
|
3
|
+
import { ElementType } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/composite/composite-typeahead.d.ts
|
|
6
|
+
declare const TagName = "div";
|
|
7
|
+
type TagName = typeof TagName;
|
|
8
|
+
/**
|
|
9
|
+
* Returns props to create a `CompositeTypeahead` component.
|
|
10
|
+
* @see https://ariakit.com/components/composite
|
|
11
|
+
* @example
|
|
12
|
+
* ```jsx
|
|
13
|
+
* const store = useCompositeStore();
|
|
14
|
+
* const props = useCompositeTypeahead({ store });
|
|
15
|
+
* <Composite store={store} {...props}>
|
|
16
|
+
* <CompositeItem>Item 1</CompositeItem>
|
|
17
|
+
* <CompositeItem>Item 2</CompositeItem>
|
|
18
|
+
* </Composite>
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
declare const useCompositeTypeahead: import("@ariakit/react-utils").Hook<"div", CompositeTypeaheadOptions<"div">>;
|
|
22
|
+
/**
|
|
23
|
+
* Renders a component that adds typeahead functionality to composite
|
|
24
|
+
* components.
|
|
25
|
+
*
|
|
26
|
+
* When the
|
|
27
|
+
* [`typeahead`](https://ariakit.com/reference/composite-typeahead#typeahead)
|
|
28
|
+
* prop is enabled, which it is by default, hitting printable character keys
|
|
29
|
+
* will move focus to the next composite item that begins with the input
|
|
30
|
+
* characters.
|
|
31
|
+
* @see https://ariakit.com/components/composite
|
|
32
|
+
* @example
|
|
33
|
+
* ```jsx
|
|
34
|
+
* <CompositeProvider>
|
|
35
|
+
* <Composite render={<CompositeTypeahead />}>
|
|
36
|
+
* <CompositeItem>Item 1</CompositeItem>
|
|
37
|
+
* <CompositeItem>Item 2</CompositeItem>
|
|
38
|
+
* </Composite>
|
|
39
|
+
* </CompositeProvider>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare const CompositeTypeahead: (props: CompositeTypeaheadProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
43
|
+
interface CompositeTypeaheadOptions<_T extends ElementType = TagName> extends Options {
|
|
44
|
+
/**
|
|
45
|
+
* Object returned by the
|
|
46
|
+
* [`useCompositeStore`](https://ariakit.com/reference/use-composite-store)
|
|
47
|
+
* hook. If not provided, the closest
|
|
48
|
+
* [`Composite`](https://ariakit.com/reference/composite) or
|
|
49
|
+
* [`CompositeProvider`](https://ariakit.com/reference/composite-provider)
|
|
50
|
+
* components' context will be used.
|
|
51
|
+
*/
|
|
52
|
+
store?: CompositeStore;
|
|
53
|
+
/**
|
|
54
|
+
* When enabled, pressing printable character keys will move focus to the next
|
|
55
|
+
* composite item that starts with the entered characters.
|
|
56
|
+
* @default true
|
|
57
|
+
*/
|
|
58
|
+
typeahead?: boolean;
|
|
59
|
+
}
|
|
60
|
+
type CompositeTypeaheadProps<T extends ElementType = TagName> = Props<T, CompositeTypeaheadOptions<T>>;
|
|
61
|
+
//#endregion
|
|
62
|
+
export { useCompositeTypeahead as i, CompositeTypeaheadOptions as n, CompositeTypeaheadProps as r, CompositeTypeahead as t };
|
|
63
|
+
//# sourceMappingURL=composite-typeahead-DDhpyKqm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composite-typeahead-DDhpyKqm.d.ts","names":["Options","Props","ElementType","CompositeStore","TagName","useCompositeTypeahead","CompositeTypeaheadOptions","Hook","CompositeTypeahead","CompositeTypeaheadProps","props","ReactElement","JSXElementConstructor","_T","store","typeahead","T"],"sources":["../src/composite/composite-typeahead.d.ts"],"mappings":";;;;;cAGcI,OAAAA;AAAAA,KACTA,OAAAA,UAAiBA,OAAO;AAF8B;;;;AACtC;AAAA;;;;AACQ;AAc7B;;;AAhB2D,cAgBtCC,qBAAAA,iCAAsDE,IAAAA,QAAYD,yBAAyB;AAAA;AAqBhH;;;;;;;;;AAA6J;AAC7J;;;;;;;;;AAtBgH,cAqB3FE,kBAAAA,GAAqBE,KAAAA,EAAOD,uBAAuB,qBAAqBE,YAAAA,+BAA2CC,qBAAAA;AAAAA,UACvHN,yBAAAA,YAAqCJ,WAAAA,GAAcE,OAAAA,UAAiBJ,OAAAA;EAAjBI;;;;;;AAevD;AAEb;EARIU,KAAAA,GAAQX,cAAAA;EAQuBa;;;;;EAF/BD,SAAAA;AAAAA;AAAAA,KAEQN,uBAAAA,WAAkCP,WAAAA,GAAcE,OAAAA,IAAWH,KAAAA,CAAMe,CAAAA,EAAGV,yBAAAA,CAA0BU,CAAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as DialogStore } from "../dialog-store-Cjt12T_Y.js";
|
|
2
|
+
import { r as DialogProps } from "../dialog-C__C-zX2.js";
|
|
3
|
+
|
|
4
|
+
//#region src/dialog/dialog-backdrop.d.ts
|
|
5
|
+
interface DialogBackdropProps extends Pick<DialogProps, "backdrop" | "alwaysVisible" | "hidden"> {
|
|
6
|
+
store: DialogStore;
|
|
7
|
+
}
|
|
8
|
+
declare function DialogBackdrop({
|
|
9
|
+
store,
|
|
10
|
+
backdrop,
|
|
11
|
+
alwaysVisible,
|
|
12
|
+
hidden
|
|
13
|
+
}: DialogBackdropProps): import("react/jsx-runtime").JSX.Element | null;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { DialogBackdrop };
|
|
16
|
+
//# sourceMappingURL=dialog-backdrop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-backdrop.d.ts","names":["DialogStore","DialogProps","DialogBackdropProps","Pick","store","DialogBackdrop","backdrop","alwaysVisible","hidden","JSX","Element"],"sources":["../../src/dialog/dialog-backdrop.d.ts"],"mappings":";;;;UAEUE,mBAAAA,SAA4BC,IAAAA,CAAKF,WAAAA;EACvCG,KAAAA,EAAOJ,WAAAA;AAAAA;AAAAA,iBAEaK,cAAAA,CAAAA;EAAiBD,KAAAA;EAAOE,QAAAA;EAAUC,aAAAA;EAAeC;AAAAA,GAAWN,mBAAAA,+BAAkDO,GAAAA,CAAIC,OAAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Role } from "../role/role.js";
|
|
3
|
+
import { useDisclosureContent } from "../disclosure/disclosure-content.js";
|
|
4
|
+
import { useDisclosureStore } from "../disclosure/disclosure-store.js";
|
|
5
|
+
import { markAncestor } from "./utils/mark-tree-outside.js";
|
|
6
|
+
import { useSafeLayoutEffect } from "@ariakit/react-utils";
|
|
7
|
+
import { isValidElement, useEffect, useRef } from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { useStoreState } from "@ariakit/react-store";
|
|
10
|
+
//#region src/dialog/dialog-backdrop.tsx
|
|
11
|
+
function DialogBackdrop({ store, backdrop, alwaysVisible, hidden }) {
|
|
12
|
+
const ref = useRef(null);
|
|
13
|
+
const disclosure = useDisclosureStore({ disclosure: store });
|
|
14
|
+
const contentElement = useStoreState(store, "contentElement");
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
const backdrop = ref.current;
|
|
17
|
+
const dialog = contentElement;
|
|
18
|
+
if (!backdrop) return;
|
|
19
|
+
if (!dialog) return;
|
|
20
|
+
backdrop.style.zIndex = getComputedStyle(dialog).zIndex;
|
|
21
|
+
}, [contentElement]);
|
|
22
|
+
useSafeLayoutEffect(() => {
|
|
23
|
+
const id = contentElement?.id;
|
|
24
|
+
if (!id) return;
|
|
25
|
+
const backdrop = ref.current;
|
|
26
|
+
if (!backdrop) return;
|
|
27
|
+
return markAncestor(backdrop, id);
|
|
28
|
+
}, [contentElement]);
|
|
29
|
+
const props = useDisclosureContent({
|
|
30
|
+
ref,
|
|
31
|
+
store: disclosure,
|
|
32
|
+
role: "presentation",
|
|
33
|
+
"data-backdrop": contentElement?.id || "",
|
|
34
|
+
alwaysVisible,
|
|
35
|
+
hidden: hidden != null ? hidden : void 0,
|
|
36
|
+
style: {
|
|
37
|
+
position: "fixed",
|
|
38
|
+
top: 0,
|
|
39
|
+
right: 0,
|
|
40
|
+
bottom: 0,
|
|
41
|
+
left: 0
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
if (!backdrop) return null;
|
|
45
|
+
if (isValidElement(backdrop)) return /* @__PURE__ */ jsx(Role, {
|
|
46
|
+
...props,
|
|
47
|
+
render: backdrop
|
|
48
|
+
});
|
|
49
|
+
const Component = typeof backdrop !== "boolean" ? backdrop : "div";
|
|
50
|
+
return /* @__PURE__ */ jsx(Role, {
|
|
51
|
+
...props,
|
|
52
|
+
render: /* @__PURE__ */ jsx(Component, {})
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { DialogBackdrop };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=dialog-backdrop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-backdrop.js","names":[],"sources":["../../src/dialog/dialog-backdrop.tsx"],"sourcesContent":["import { useStoreState } from \"@ariakit/react-store\";\nimport { useSafeLayoutEffect } from \"@ariakit/react-utils\";\nimport { isValidElement, useEffect, useRef } from \"react\";\nimport { useDisclosureContent } from \"../disclosure/disclosure-content.tsx\";\nimport { useDisclosureStore } from \"../disclosure/disclosure-store.ts\";\nimport { Role } from \"../role/role.tsx\";\nimport type { DialogStore } from \"./dialog-store.ts\";\nimport type { DialogProps } from \"./dialog.tsx\";\nimport { markAncestor } from \"./utils/mark-tree-outside.ts\";\n\ninterface DialogBackdropProps extends Pick<\n DialogProps,\n \"backdrop\" | \"alwaysVisible\" | \"hidden\"\n> {\n store: DialogStore;\n}\n\nexport function DialogBackdrop({\n store,\n backdrop,\n alwaysVisible,\n hidden,\n}: DialogBackdropProps) {\n const ref = useRef<HTMLDivElement>(null);\n const disclosure = useDisclosureStore({ disclosure: store });\n const contentElement = useStoreState(store, \"contentElement\");\n\n useEffect(() => {\n const backdrop = ref.current;\n const dialog = contentElement;\n if (!backdrop) return;\n if (!dialog) return;\n backdrop.style.zIndex = getComputedStyle(dialog).zIndex;\n }, [contentElement]);\n\n // Mark the backdrop element as an ancestor of the dialog, otherwise clicking\n // on it won't close the dialog when the dialog uses portal, in which case\n // elements are only marked outside the portal element.\n useSafeLayoutEffect(() => {\n const id = contentElement?.id;\n if (!id) return;\n const backdrop = ref.current;\n if (!backdrop) return;\n return markAncestor(backdrop, id);\n }, [contentElement]);\n\n const props = useDisclosureContent({\n ref,\n store: disclosure,\n role: \"presentation\",\n \"data-backdrop\": contentElement?.id || \"\",\n alwaysVisible,\n hidden: hidden != null ? hidden : undefined,\n style: {\n position: \"fixed\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n },\n });\n\n if (!backdrop) return null;\n\n if (isValidElement(backdrop)) {\n return <Role {...props} render={backdrop} />;\n }\n\n const Component = typeof backdrop !== \"boolean\" ? backdrop : \"div\";\n return <Role {...props} render={<Component />} />;\n}\n"],"mappings":";;;;;;;;;;SAuBQ,eAAiC,EAAA,OAAA,UAAA,eAAA,UAAA;CACvC,MAAM,MAAA,OAAa,IAAA;CACnB,MAAM,aAAA,mBAA+B,EAAA,YAAO,MAAA,CAAA;CAE5C,MAAA,iBAAgB,cAAA,OAAA,gBAAA;iBACR;EACN,MAAM,WAAS,IAAA;EACf,MAAK,SAAU;EACf,IAAI,CAAC,UAAQ;EACb,IAAA,CAAA,QAAS;EACX,SAAI,MAAA,SAAe,iBAAA,MAAA,EAAA;CAKnB,GAAA,CAAA,cAAA,CAAA;2BACa;EACX,MAAK,KAAI,gBAAA;EACT,IAAA,CAAA,IAAM;EACN,MAAK,WAAU,IAAA;EACf,IAAA,CAAA,UAAO;EACT,OAAI,aAAe,UAAA,EAAA;CAEnB,GAAA,CAAA,cAAc,CAAA;OACZ,QAAA,qBAAA;EACA;EACA,OAAM;EACN,MAAA;EACA,iBAAA,gBAAA,MAAA;EACA;EACA,QAAO,UAAA,OAAA,SAAA,KAAA;SACL;GACA,UAAK;GACL,KAAA;GACA,OAAA;GACA,QAAM;GACR,MAAA;EACD;CAED,CAAA;CAEA,IAAI,CAAA,UAAA,OAAe;KACA,eAAA,QAAA,GAAA,OAAA,oBAAA,MAAA;EAAO,GAAA;EAAmB,QAAA;CAG7C,CAAA;CACA,MAAA,YAAO,OAAA,aAAA,YAAA,WAAA;QAAU,oBAAA,MAAA;EAAO,GAAA;EAAwB,QAAA,oBAAA,WAAA,CAAA,CAAA;CAClD,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { t as DialogStore } from "../dialog-store-Cjt12T_Y.js";
|
|
2
|
+
import { SetState } from "@ariakit/utils";
|
|
3
|
+
|
|
4
|
+
//#region src/dialog/dialog-context.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Returns the dialog store from the nearest dialog container.
|
|
7
|
+
* @example
|
|
8
|
+
* function Dialog() {
|
|
9
|
+
* const store = useDialogContext();
|
|
10
|
+
*
|
|
11
|
+
* if (!store) {
|
|
12
|
+
* throw new Error("Dialog must be wrapped in DialogProvider");
|
|
13
|
+
* }
|
|
14
|
+
*
|
|
15
|
+
* // Use the store...
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
declare const useDialogContext: () => DialogStore | undefined;
|
|
19
|
+
declare const useDialogScopedContext: (onlyScoped?: boolean) => DialogStore | undefined;
|
|
20
|
+
declare const useDialogProviderContext: () => DialogStore | undefined;
|
|
21
|
+
declare const DialogContextProvider: (props: import("react").ProviderProps<DialogStore | undefined>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare const DialogScopedContextProvider: (props: import("react").ProviderProps<DialogStore | undefined>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare const DialogHeadingContext: import("react").Context<SetState<string | undefined> | undefined>;
|
|
24
|
+
declare const DialogDescriptionContext: import("react").Context<SetState<string | undefined> | undefined>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { DialogContextProvider, DialogDescriptionContext, DialogHeadingContext, DialogScopedContextProvider, useDialogContext, useDialogProviderContext, useDialogScopedContext };
|
|
27
|
+
//# sourceMappingURL=dialog-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-context.d.ts","names":["SetState","DialogStore","useDialogContext","useDialogScopedContext","onlyScoped","useDialogProviderContext","DialogContextProvider","ProviderProps","props","JSX","Element","DialogScopedContextProvider","DialogHeadingContext","Context","DialogDescriptionContext"],"sources":["../../src/dialog/dialog-context.d.ts"],"mappings":";;;;;;AAeA;;;;AAAwD;AACxD;;;;AAAkF;AAClF;cAFqBE,gBAAAA,QAAwBD,WAAW;AAAA,cACnCE,sBAAAA,GAAyBC,UAAAA,eAAyBH,WAAW;AAAA,cAC7DI,wBAAAA,QAAgCJ,WAAW;AAAA,cAC3CK,qBAAAA,GAAwBE,KAAAA,kBAAuBD,aAAAA,CAAcN,WAAW,8CAA8CQ,GAAAA,CAAIC,OAAAA;AAAAA,cAC1HC,2BAAAA,GAA8BH,KAAAA,kBAAuBD,aAAAA,CAAcN,WAAW,8CAA8CQ,GAAAA,CAAIC,OAAAA;AAAAA,cAChIE,oBAAAA,kBAAsCC,OAAAA,CAAQb,QAAQ;AAAA,cACtDc,wBAAAA,kBAA0CD,OAAAA,CAAQb,QAAQ"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { DisclosureContextProvider, DisclosureScopedContextProvider } from "../disclosure/disclosure-context.js";
|
|
3
|
+
import { createStoreContext } from "@ariakit/react-utils";
|
|
4
|
+
import { createContext } from "react";
|
|
5
|
+
//#region src/dialog/dialog-context.tsx
|
|
6
|
+
const ctx = createStoreContext([DisclosureContextProvider], [DisclosureScopedContextProvider]);
|
|
7
|
+
/**
|
|
8
|
+
* Returns the dialog store from the nearest dialog container.
|
|
9
|
+
* @example
|
|
10
|
+
* function Dialog() {
|
|
11
|
+
* const store = useDialogContext();
|
|
12
|
+
*
|
|
13
|
+
* if (!store) {
|
|
14
|
+
* throw new Error("Dialog must be wrapped in DialogProvider");
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* // Use the store...
|
|
18
|
+
* }
|
|
19
|
+
*/
|
|
20
|
+
const useDialogContext = ctx.useContext;
|
|
21
|
+
const useDialogScopedContext = ctx.useScopedContext;
|
|
22
|
+
const useDialogProviderContext = ctx.useProviderContext;
|
|
23
|
+
const DialogContextProvider = ctx.ContextProvider;
|
|
24
|
+
const DialogScopedContextProvider = ctx.ScopedContextProvider;
|
|
25
|
+
const DialogHeadingContext = createContext(void 0);
|
|
26
|
+
const DialogDescriptionContext = createContext(void 0);
|
|
27
|
+
//#endregion
|
|
28
|
+
export { DialogContextProvider, DialogDescriptionContext, DialogHeadingContext, DialogScopedContextProvider, useDialogContext, useDialogProviderContext, useDialogScopedContext };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=dialog-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-context.js","names":[],"sources":["../../src/dialog/dialog-context.tsx"],"sourcesContent":["import { createStoreContext } from \"@ariakit/react-utils\";\nimport type { SetState } from \"@ariakit/utils\";\nimport { createContext } from \"react\";\nimport {\n DisclosureContextProvider,\n DisclosureScopedContextProvider,\n} from \"../disclosure/disclosure-context.tsx\";\nimport type { DialogStore } from \"./dialog-store.ts\";\n\nconst ctx = createStoreContext<DialogStore>(\n [DisclosureContextProvider],\n [DisclosureScopedContextProvider],\n);\n\n/**\n * Returns the dialog store from the nearest dialog container.\n * @example\n * function Dialog() {\n * const store = useDialogContext();\n *\n * if (!store) {\n * throw new Error(\"Dialog must be wrapped in DialogProvider\");\n * }\n *\n * // Use the store...\n * }\n */\nexport const useDialogContext = ctx.useContext;\n\nexport const useDialogScopedContext = ctx.useScopedContext;\n\nexport const useDialogProviderContext = ctx.useProviderContext;\n\nexport const DialogContextProvider = ctx.ContextProvider;\n\nexport const DialogScopedContextProvider = ctx.ScopedContextProvider;\n\nexport const DialogHeadingContext = createContext<\n SetState<string | undefined> | undefined\n>(undefined);\nexport const DialogDescriptionContext = createContext<\n SetState<string | undefined> | undefined\n>(undefined);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA6BA,MAAa,mBAAA,IAAA;AAEb,MAAa,yBAAA,IAA2B;AAExC,MAAa,2BAAwB,IAAI;AAEzC,MAAa,wBAAA,IAAA;AAEb,MAAa,8BAAuB,IAAA;AAGpC,MAAa,uBAAA,cAA2B,KAEtC,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { DialogDescriptionContext } from "./dialog-context.js";
|
|
3
|
+
import { createElement, createHook, forwardRef, useId, useSafeLayoutEffect } from "@ariakit/react-utils";
|
|
4
|
+
import { removeUndefinedValues } from "@ariakit/utils";
|
|
5
|
+
import { useContext } from "react";
|
|
6
|
+
//#region src/dialog/dialog-description.tsx
|
|
7
|
+
const TagName = "p";
|
|
8
|
+
/**
|
|
9
|
+
* Returns props to create a `DialogDescription` component. This hook must be
|
|
10
|
+
* used in a component that's wrapped with `Dialog` so the `aria-describedby`
|
|
11
|
+
* prop is properly set on the dialog element.
|
|
12
|
+
* @see https://ariakit.com/components/dialog
|
|
13
|
+
* @example
|
|
14
|
+
* ```jsx
|
|
15
|
+
* // This component must be wrapped with Dialog
|
|
16
|
+
* const props = useDialogDescription();
|
|
17
|
+
* <Role {...props}>Description</Role>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
const useDialogDescription = createHook(function useDialogDescription({ store, ...props }) {
|
|
21
|
+
const setDescriptionId = useContext(DialogDescriptionContext);
|
|
22
|
+
const id = useId(props.id);
|
|
23
|
+
useSafeLayoutEffect(() => {
|
|
24
|
+
setDescriptionId?.(id);
|
|
25
|
+
return () => setDescriptionId?.(void 0);
|
|
26
|
+
}, [setDescriptionId, id]);
|
|
27
|
+
props = {
|
|
28
|
+
...props,
|
|
29
|
+
id
|
|
30
|
+
};
|
|
31
|
+
return removeUndefinedValues(props);
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* Renders a description in a dialog. This component must be wrapped with
|
|
35
|
+
* [`Dialog`](https://ariakit.com/reference/dialog) so the `aria-describedby`
|
|
36
|
+
* prop is properly set on the dialog element.
|
|
37
|
+
* @see https://ariakit.com/components/dialog
|
|
38
|
+
* @example
|
|
39
|
+
* ```jsx {4}
|
|
40
|
+
* const [open, setOpen] = useState(false);
|
|
41
|
+
*
|
|
42
|
+
* <Dialog open={open} onClose={() => setOpen(false)}>
|
|
43
|
+
* <DialogDescription>Description</DialogDescription>
|
|
44
|
+
* </Dialog>
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
const DialogDescription = forwardRef(function DialogDescription(props) {
|
|
48
|
+
return createElement(TagName, useDialogDescription(props));
|
|
49
|
+
});
|
|
50
|
+
//#endregion
|
|
51
|
+
export { DialogDescription, useDialogDescription };
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=dialog-description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog-description.js","names":[],"sources":["../../src/dialog/dialog-description.tsx"],"sourcesContent":["import {\n useId,\n useSafeLayoutEffect,\n createElement,\n createHook,\n forwardRef,\n} from \"@ariakit/react-utils\";\nimport type { Options, Props } from \"@ariakit/react-utils\";\nimport { removeUndefinedValues } from \"@ariakit/utils\";\nimport type { ElementType } from \"react\";\nimport { useContext } from \"react\";\nimport { DialogDescriptionContext } from \"./dialog-context.tsx\";\nimport type { DialogStore } from \"./dialog-store.ts\";\n\nconst TagName = \"p\" satisfies ElementType;\ntype TagName = typeof TagName;\n\n/**\n * Returns props to create a `DialogDescription` component. This hook must be\n * used in a component that's wrapped with `Dialog` so the `aria-describedby`\n * prop is properly set on the dialog element.\n * @see https://ariakit.com/components/dialog\n * @example\n * ```jsx\n * // This component must be wrapped with Dialog\n * const props = useDialogDescription();\n * <Role {...props}>Description</Role>\n * ```\n */\nexport const useDialogDescription = createHook<\n TagName,\n DialogDescriptionOptions\n>(function useDialogDescription({ store, ...props }) {\n const setDescriptionId = useContext(DialogDescriptionContext);\n const id = useId(props.id);\n\n useSafeLayoutEffect(() => {\n setDescriptionId?.(id);\n return () => setDescriptionId?.(undefined);\n }, [setDescriptionId, id]);\n\n props = {\n ...props,\n id,\n };\n\n return removeUndefinedValues(props);\n});\n\n/**\n * Renders a description in a dialog. This component must be wrapped with\n * [`Dialog`](https://ariakit.com/reference/dialog) so the `aria-describedby`\n * prop is properly set on the dialog element.\n * @see https://ariakit.com/components/dialog\n * @example\n * ```jsx {4}\n * const [open, setOpen] = useState(false);\n *\n * <Dialog open={open} onClose={() => setOpen(false)}>\n * <DialogDescription>Description</DialogDescription>\n * </Dialog>\n * ```\n */\nexport const DialogDescription = forwardRef(function DialogDescription(\n props: DialogDescriptionProps,\n) {\n const htmlProps = useDialogDescription(props);\n return createElement(TagName, htmlProps);\n});\n\nexport interface DialogDescriptionOptions<\n _T extends ElementType = TagName,\n> extends Options {\n /**\n * Object returned by the\n * [`useDialogStore`](https://ariakit.com/reference/use-dialog-store) hook. If\n * not provided, the closest [`Dialog`](https://ariakit.com/reference/dialog)\n * component's context will be used.\n */\n store?: DialogStore;\n}\n\nexport type DialogDescriptionProps<T extends ElementType = TagName> = Props<\n T,\n DialogDescriptionOptions<T>\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;MAiCE,uBAAyB,WAAW,SAAA,qBAAwB,EAAA,OAAA,GAAA,SAAA;CAC5D,MAAM,mBAAmB,WAAA,wBAAA;CAEzB,MAAA,KAAA,MAAA,MAAA,EAAA;2BACuB;EACrB,mBAAa,EAAA;EACf,aAAI,mBAAqB,KAAA,CAAA;CAEzB,GAAA,CAAA,kBAAQ,EAAA,CAAA;SACH;EACH,GAAA;EACF;CAEA;CACD,OAAA,sBAAA,KAAA;;;;;;;;;;;;;;;;MAoBC,oBAAqB,WADH,SAAA,kBACqB,OAAA;CACxC,OAAA,cAAA,SAAA,qBAAA,KAAA,CAAA"}
|