@funstack/ui 0.1.0-alpha.22 → 0.1.0-alpha.24
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/dist/accordion/accordion-context.mjs +1 -2
- package/dist/accordion/accordion-item.d.mts +1 -3
- package/dist/accordion/accordion-item.d.mts.map +1 -1
- package/dist/accordion/accordion-item.mjs +14 -8
- package/dist/accordion/accordion-item.mjs.map +1 -1
- package/dist/accordion/accordion-panel.d.mts +1 -3
- package/dist/accordion/accordion-panel.d.mts.map +1 -1
- package/dist/accordion/accordion-panel.mjs +3 -4
- package/dist/accordion/accordion-root.d.mts +1 -3
- package/dist/accordion/accordion-root.d.mts.map +1 -1
- package/dist/accordion/accordion-root.mjs +12 -15
- package/dist/accordion/accordion-root.mjs.map +1 -1
- package/dist/accordion/accordion-trigger.d.mts +1 -3
- package/dist/accordion/accordion-trigger.d.mts.map +1 -1
- package/dist/accordion/accordion-trigger.mjs +4 -5
- package/dist/accordion/index.d.mts +0 -2
- package/dist/accordion/index.d.mts.map +1 -1
- package/dist/accordion/index.mjs +1 -2
- package/dist/alert-dialog/alert-dialog-action.d.mts +5 -5
- package/dist/alert-dialog/alert-dialog-action.d.mts.map +1 -1
- package/dist/alert-dialog/alert-dialog-action.mjs +1 -2
- package/dist/alert-dialog/alert-dialog-action.mjs.map +1 -1
- package/dist/alert-dialog/alert-dialog-cancel.d.mts +0 -2
- package/dist/alert-dialog/alert-dialog-cancel.d.mts.map +1 -1
- package/dist/alert-dialog/alert-dialog-cancel.mjs +4 -5
- package/dist/alert-dialog/alert-dialog-context.mjs +2 -3
- package/dist/alert-dialog/alert-dialog-description.d.mts +0 -2
- package/dist/alert-dialog/alert-dialog-description.d.mts.map +1 -1
- package/dist/alert-dialog/alert-dialog-description.mjs +1 -2
- package/dist/alert-dialog/alert-dialog-form.d.mts +0 -2
- package/dist/alert-dialog/alert-dialog-form.d.mts.map +1 -1
- package/dist/alert-dialog/alert-dialog-form.mjs +1 -2
- package/dist/alert-dialog/alert-dialog-popup.d.mts +1 -3
- package/dist/alert-dialog/alert-dialog-popup.d.mts.map +1 -1
- package/dist/alert-dialog/alert-dialog-popup.mjs +3 -4
- package/dist/alert-dialog/alert-dialog-root.d.mts +0 -2
- package/dist/alert-dialog/alert-dialog-root.d.mts.map +1 -1
- package/dist/alert-dialog/alert-dialog-root.mjs +1 -2
- package/dist/alert-dialog/alert-dialog-title.d.mts +0 -2
- package/dist/alert-dialog/alert-dialog-title.d.mts.map +1 -1
- package/dist/alert-dialog/alert-dialog-title.mjs +1 -2
- package/dist/alert-dialog/alert-dialog-trigger.d.mts +0 -2
- package/dist/alert-dialog/alert-dialog-trigger.d.mts.map +1 -1
- package/dist/alert-dialog/alert-dialog-trigger.mjs +1 -2
- package/dist/alert-dialog/index.d.mts +0 -2
- package/dist/alert-dialog/index.d.mts.map +1 -1
- package/dist/alert-dialog/index.mjs +1 -2
- package/dist/avatar/avatar-context.mjs +1 -2
- package/dist/avatar/avatar-fallback.d.mts +1 -3
- package/dist/avatar/avatar-fallback.d.mts.map +1 -1
- package/dist/avatar/avatar-fallback.mjs +1 -2
- package/dist/avatar/avatar-image.d.mts +1 -3
- package/dist/avatar/avatar-image.d.mts.map +1 -1
- package/dist/avatar/avatar-image.mjs +2 -3
- package/dist/avatar/avatar-root.d.mts +1 -3
- package/dist/avatar/avatar-root.d.mts.map +1 -1
- package/dist/avatar/avatar-root.mjs +2 -3
- package/dist/avatar/index.d.mts +1 -3
- package/dist/avatar/index.d.mts.map +1 -1
- package/dist/avatar/index.mjs +1 -2
- package/dist/bin/skill-installer.mjs +1 -2
- package/dist/button/button.d.mts +1 -3
- package/dist/button/button.d.mts.map +1 -1
- package/dist/button/button.mjs +4 -5
- package/dist/checkbox/checkbox.d.mts +1 -3
- package/dist/checkbox/checkbox.d.mts.map +1 -1
- package/dist/checkbox/checkbox.mjs +2 -3
- package/dist/checkbox-group/checkbox-group-context.mjs +1 -2
- package/dist/checkbox-group/checkbox-group-item.d.mts +1 -3
- package/dist/checkbox-group/checkbox-group-item.d.mts.map +1 -1
- package/dist/checkbox-group/checkbox-group-item.mjs +5 -6
- package/dist/checkbox-group/checkbox-group-label.d.mts +1 -3
- package/dist/checkbox-group/checkbox-group-label.d.mts.map +1 -1
- package/dist/checkbox-group/checkbox-group-label.mjs +1 -2
- package/dist/checkbox-group/checkbox-group-parent.d.mts +1 -3
- package/dist/checkbox-group/checkbox-group-parent.d.mts.map +1 -1
- package/dist/checkbox-group/checkbox-group-parent.mjs +7 -8
- package/dist/checkbox-group/checkbox-group-parent.mjs.map +1 -1
- package/dist/checkbox-group/checkbox-group-root.d.mts +1 -3
- package/dist/checkbox-group/checkbox-group-root.d.mts.map +1 -1
- package/dist/checkbox-group/checkbox-group-root.mjs +7 -8
- package/dist/checkbox-group/index.d.mts +1 -3
- package/dist/checkbox-group/index.d.mts.map +1 -1
- package/dist/checkbox-group/index.mjs +1 -2
- package/dist/collapsible/collapsible-context.mjs +1 -2
- package/dist/collapsible/collapsible-panel.d.mts +1 -3
- package/dist/collapsible/collapsible-panel.d.mts.map +1 -1
- package/dist/collapsible/collapsible-panel.mjs +3 -4
- package/dist/collapsible/collapsible-root.d.mts +1 -3
- package/dist/collapsible/collapsible-root.d.mts.map +1 -1
- package/dist/collapsible/collapsible-root.mjs +18 -18
- package/dist/collapsible/collapsible-root.mjs.map +1 -1
- package/dist/collapsible/collapsible-trigger.d.mts +1 -3
- package/dist/collapsible/collapsible-trigger.d.mts.map +1 -1
- package/dist/collapsible/collapsible-trigger.mjs +4 -5
- package/dist/collapsible/index.d.mts +0 -2
- package/dist/collapsible/index.d.mts.map +1 -1
- package/dist/collapsible/index.mjs +1 -2
- package/dist/combobox/chip-text.mjs +1 -2
- package/dist/combobox/combobox-chips.d.mts +1 -3
- package/dist/combobox/combobox-chips.d.mts.map +1 -1
- package/dist/combobox/combobox-chips.mjs +3 -4
- package/dist/combobox/combobox-clear.d.mts +1 -3
- package/dist/combobox/combobox-clear.d.mts.map +1 -1
- package/dist/combobox/combobox-clear.mjs +2 -3
- package/dist/combobox/combobox-context.mjs +1 -2
- package/dist/combobox/combobox-group.d.mts +1 -3
- package/dist/combobox/combobox-group.d.mts.map +1 -1
- package/dist/combobox/combobox-group.mjs +2 -3
- package/dist/combobox/combobox-input.d.mts +1 -3
- package/dist/combobox/combobox-input.d.mts.map +1 -1
- package/dist/combobox/combobox-input.mjs +5 -6
- package/dist/combobox/combobox-keyboard.mjs +4 -4
- package/dist/combobox/combobox-keyboard.mjs.map +1 -1
- package/dist/combobox/combobox-label.d.mts +1 -3
- package/dist/combobox/combobox-label.d.mts.map +1 -1
- package/dist/combobox/combobox-label.mjs +2 -3
- package/dist/combobox/combobox-list.d.mts +1 -3
- package/dist/combobox/combobox-list.d.mts.map +1 -1
- package/dist/combobox/combobox-list.mjs +3 -4
- package/dist/combobox/combobox-option.d.mts +1 -3
- package/dist/combobox/combobox-option.d.mts.map +1 -1
- package/dist/combobox/combobox-option.mjs +2 -3
- package/dist/combobox/combobox-popup.d.mts +1 -3
- package/dist/combobox/combobox-popup.d.mts.map +1 -1
- package/dist/combobox/combobox-popup.mjs +4 -5
- package/dist/combobox/combobox-root.d.mts +1 -3
- package/dist/combobox/combobox-root.d.mts.map +1 -1
- package/dist/combobox/combobox-root.mjs +14 -15
- package/dist/combobox/combobox-trigger.d.mts +1 -3
- package/dist/combobox/combobox-trigger.d.mts.map +1 -1
- package/dist/combobox/combobox-trigger.mjs +5 -6
- package/dist/combobox/index.d.mts +1 -3
- package/dist/combobox/index.d.mts.map +1 -1
- package/dist/combobox/index.mjs +1 -2
- package/dist/combobox/use-combobox-form.mjs +3 -5
- package/dist/combobox/use-combobox-form.mjs.map +1 -1
- package/dist/combobox/use-combobox-text.mjs +3 -4
- package/dist/csp/csp-provider.d.mts +0 -2
- package/dist/csp/csp-provider.d.mts.map +1 -1
- package/dist/csp/csp-provider.mjs +2 -3
- package/dist/csp/style-hashes.d.mts +0 -2
- package/dist/csp/style-hashes.d.mts.map +1 -1
- package/dist/csp/style-hashes.mjs +1 -2
- package/dist/dialog/dialog-close.d.mts +10 -6
- package/dist/dialog/dialog-close.d.mts.map +1 -1
- package/dist/dialog/dialog-close.mjs +5 -5
- package/dist/dialog/dialog-close.mjs.map +1 -1
- package/dist/dialog/dialog-context.mjs +1 -2
- package/dist/dialog/dialog-description.d.mts +1 -3
- package/dist/dialog/dialog-description.d.mts.map +1 -1
- package/dist/dialog/dialog-description.mjs +1 -2
- package/dist/dialog/dialog-dismiss.mjs +52 -21
- package/dist/dialog/dialog-dismiss.mjs.map +1 -1
- package/dist/dialog/dialog-form.d.mts +1 -3
- package/dist/dialog/dialog-form.d.mts.map +1 -1
- package/dist/dialog/dialog-form.mjs +6 -7
- package/dist/dialog/dialog-popup.d.mts +2 -4
- package/dist/dialog/dialog-popup.d.mts.map +1 -1
- package/dist/dialog/dialog-popup.mjs +10 -11
- package/dist/dialog/dialog-root.d.mts +1 -3
- package/dist/dialog/dialog-root.d.mts.map +1 -1
- package/dist/dialog/dialog-root.mjs +3 -4
- package/dist/dialog/dialog-title.d.mts +1 -3
- package/dist/dialog/dialog-title.d.mts.map +1 -1
- package/dist/dialog/dialog-title.mjs +1 -2
- package/dist/dialog/dialog-trigger.d.mts +1 -3
- package/dist/dialog/dialog-trigger.d.mts.map +1 -1
- package/dist/dialog/dialog-trigger.mjs +4 -5
- package/dist/dialog/index.d.mts +1 -3
- package/dist/dialog/index.d.mts.map +1 -1
- package/dist/dialog/index.mjs +1 -2
- package/dist/docs/components/accordion.md +1 -1
- package/dist/docs/components/alert-dialog.md +15 -7
- package/dist/docs/components/collapsible.md +1 -1
- package/dist/docs/components/dialog.md +14 -6
- package/dist/docs/components/drawer.md +3 -3
- package/dist/docs/components/field.md +2 -2
- package/dist/docs/components/menu.md +3 -3
- package/dist/docs/components/popover.md +6 -6
- package/dist/docs/concepts/pending-and-optimistic.md +1 -0
- package/dist/docs/roadmap.md +4 -0
- package/dist/drawer/drawer-close.d.mts +0 -2
- package/dist/drawer/drawer-close.d.mts.map +1 -1
- package/dist/drawer/drawer-close.mjs +1 -2
- package/dist/drawer/drawer-description.d.mts +0 -2
- package/dist/drawer/drawer-description.d.mts.map +1 -1
- package/dist/drawer/drawer-description.mjs +1 -2
- package/dist/drawer/drawer-form.d.mts +0 -2
- package/dist/drawer/drawer-form.d.mts.map +1 -1
- package/dist/drawer/drawer-form.mjs +1 -2
- package/dist/drawer/drawer-popup.d.mts +2 -4
- package/dist/drawer/drawer-popup.d.mts.map +1 -1
- package/dist/drawer/drawer-popup.mjs +3 -4
- package/dist/drawer/drawer-root.d.mts +0 -2
- package/dist/drawer/drawer-root.d.mts.map +1 -1
- package/dist/drawer/drawer-root.mjs +1 -2
- package/dist/drawer/drawer-swipe.d.mts +0 -2
- package/dist/drawer/drawer-swipe.d.mts.map +1 -1
- package/dist/drawer/drawer-swipe.mjs +1 -2
- package/dist/drawer/drawer-swipe.mjs.map +1 -1
- package/dist/drawer/drawer-title.d.mts +0 -2
- package/dist/drawer/drawer-title.d.mts.map +1 -1
- package/dist/drawer/drawer-title.mjs +1 -2
- package/dist/drawer/drawer-trigger.d.mts +0 -2
- package/dist/drawer/drawer-trigger.d.mts.map +1 -1
- package/dist/drawer/drawer-trigger.mjs +1 -2
- package/dist/drawer/index.d.mts +0 -2
- package/dist/drawer/index.d.mts.map +1 -1
- package/dist/drawer/index.mjs +1 -2
- package/dist/field/field-control.d.mts +2 -4
- package/dist/field/field-control.d.mts.map +1 -1
- package/dist/field/field-control.mjs +6 -7
- package/dist/field/field-description.d.mts +2 -4
- package/dist/field/field-description.d.mts.map +1 -1
- package/dist/field/field-description.mjs +2 -3
- package/dist/field/field-error.d.mts +2 -4
- package/dist/field/field-error.d.mts.map +1 -1
- package/dist/field/field-error.mjs +3 -4
- package/dist/field/field-label.d.mts +2 -4
- package/dist/field/field-label.d.mts.map +1 -1
- package/dist/field/field-label.mjs +3 -4
- package/dist/field/field-root.d.mts +2 -4
- package/dist/field/field-root.d.mts.map +1 -1
- package/dist/field/field-root.mjs +81 -31
- package/dist/field/field-root.mjs.map +1 -1
- package/dist/field/index.d.mts +0 -2
- package/dist/field/index.d.mts.map +1 -1
- package/dist/field/index.mjs +1 -2
- package/dist/field/use-server-error-visibility.mjs +22 -8
- package/dist/field/use-server-error-visibility.mjs.map +1 -1
- package/dist/form/form-root.d.mts +1 -3
- package/dist/form/form-root.d.mts.map +1 -1
- package/dist/form/form-root.mjs +8 -9
- package/dist/form/form-submit.d.mts +1 -3
- package/dist/form/form-submit.d.mts.map +1 -1
- package/dist/form/form-submit.mjs +3 -4
- package/dist/form/index.d.mts +0 -2
- package/dist/form/index.d.mts.map +1 -1
- package/dist/form/index.mjs +1 -2
- package/dist/hover-card/hover-card-context.mjs +1 -2
- package/dist/hover-card/hover-card-popup.d.mts +2 -4
- package/dist/hover-card/hover-card-popup.d.mts.map +1 -1
- package/dist/hover-card/hover-card-popup.mjs +6 -7
- package/dist/hover-card/hover-card-root.d.mts +1 -3
- package/dist/hover-card/hover-card-root.d.mts.map +1 -1
- package/dist/hover-card/hover-card-root.mjs +3 -4
- package/dist/hover-card/hover-card-trigger.d.mts +1 -3
- package/dist/hover-card/hover-card-trigger.d.mts.map +1 -1
- package/dist/hover-card/hover-card-trigger.mjs +5 -6
- package/dist/hover-card/index.d.mts +0 -2
- package/dist/hover-card/index.d.mts.map +1 -1
- package/dist/hover-card/index.mjs +1 -2
- package/dist/hover-card/use-hover-card-interest.mjs +7 -22
- package/dist/hover-card/use-hover-card-interest.mjs.map +1 -1
- package/dist/index.d.mts +41 -35
- package/dist/internal/action/action-details.mjs +1 -2
- package/dist/internal/action/call-urgent-handler.mjs +1 -2
- package/dist/internal/action/report-dropped.mjs +1 -2
- package/dist/internal/action/use-action-trigger.mjs +2 -3
- package/dist/internal/action/use-connected.mjs +1 -2
- package/dist/internal/action/use-controllable-action.mjs +4 -5
- package/dist/internal/action/use-multiple-selection.mjs +4 -5
- package/dist/internal/action/use-pure-trigger.mjs +1 -2
- package/dist/internal/action/use-pure-trigger.mjs.map +1 -1
- package/dist/internal/action/use-step-commit.mjs +3 -4
- package/dist/internal/after-dispatch.mjs +23 -0
- package/dist/internal/after-dispatch.mjs.map +1 -0
- package/dist/internal/announce.mjs +1 -2
- package/dist/internal/arrow-keys.mjs +1 -2
- package/dist/internal/csp-context.mjs +1 -2
- package/dist/internal/data-attr.mjs +1 -2
- package/dist/internal/decimal.mjs +1 -2
- package/dist/internal/details-summary.mjs +51 -3
- package/dist/internal/details-summary.mjs.map +1 -1
- package/dist/internal/dev-warn.mjs +1 -2
- package/dist/internal/dom-order.mjs +1 -2
- package/dist/internal/escape-key.mjs +20 -0
- package/dist/internal/escape-key.mjs.map +1 -0
- package/dist/internal/form/field-context.d.mts +0 -2
- package/dist/internal/form/field-context.d.mts.map +1 -1
- package/dist/internal/form/field-context.mjs +2 -3
- package/dist/internal/form/focus-first-invalid.mjs +2 -3
- package/dist/internal/form/form-status-watcher.mjs +1 -2
- package/dist/internal/form/group-member.mjs +1 -2
- package/dist/internal/form/hidden-values.mjs +1 -2
- package/dist/internal/form/sync-presence.mjs +1 -2
- package/dist/internal/form/use-checkable-input.mjs +2 -3
- package/dist/internal/form/use-field-control.mjs +3 -4
- package/dist/internal/form/use-fieldset-group.mjs +3 -4
- package/dist/internal/form/use-form-owner-event.mjs +1 -2
- package/dist/internal/form/use-form-reset.mjs +10 -8
- package/dist/internal/form/use-form-reset.mjs.map +1 -1
- package/dist/internal/form/use-native-checked.mjs +2 -3
- package/dist/internal/form/use-native-group-reconciliation.mjs +3 -4
- package/dist/internal/form/use-native-select-value.mjs +2 -3
- package/dist/internal/form/validity.d.mts +0 -2
- package/dist/internal/form/validity.d.mts.map +1 -1
- package/dist/internal/form/validity.mjs +1 -2
- package/dist/internal/menubar-context.mjs +1 -2
- package/dist/internal/merge-props.mjs +1 -2
- package/dist/internal/overlay/anchor-position.d.mts +0 -2
- package/dist/internal/overlay/anchor-position.d.mts.map +1 -1
- package/dist/internal/overlay/anchor-position.mjs +1 -2
- package/dist/internal/overlay/content-focus-probe.mjs +1 -2
- package/dist/internal/overlay/css-transition-cut.mjs +1 -2
- package/dist/internal/overlay/css-transition-cut.mjs.map +1 -1
- package/dist/internal/overlay/focus-visible.mjs +1 -2
- package/dist/internal/overlay/invokers.mjs +1 -2
- package/dist/internal/overlay/modal-registry.mjs +1 -2
- package/dist/internal/overlay/open-layer.mjs +31 -0
- package/dist/internal/overlay/open-layer.mjs.map +1 -0
- package/dist/internal/overlay/overlay-popup.mjs +2 -3
- package/dist/internal/overlay/overlay-show.mjs +1 -2
- package/dist/internal/overlay/popover-open.mjs +1 -2
- package/dist/internal/overlay/trigger-ref.mjs +1 -2
- package/dist/internal/overlay/use-apply-open-state.mjs +1 -2
- package/dist/internal/overlay/use-exit-animation.mjs +1 -2
- package/dist/internal/overlay/use-exit-animation.mjs.map +1 -1
- package/dist/internal/overlay/use-interest-dismiss.mjs +3 -4
- package/dist/internal/overlay/use-modal-registration.mjs +2 -3
- package/dist/internal/overlay/use-overlay-close.mjs +11 -9
- package/dist/internal/overlay/use-overlay-close.mjs.map +1 -1
- package/dist/internal/overlay/use-overlay-root.d.mts +2 -2
- package/dist/internal/overlay/use-overlay-root.mjs +6 -7
- package/dist/internal/overlay/use-popover-popup.mjs +6 -7
- package/dist/internal/overlay/use-popover-trigger.d.mts +2 -4
- package/dist/internal/overlay/use-popover-trigger.d.mts.map +1 -1
- package/dist/internal/overlay/use-popover-trigger.mjs +4 -5
- package/dist/internal/overlay/use-resolved-placement.mjs +4 -5
- package/dist/internal/platform-attributes.d.mts +0 -2
- package/dist/internal/platform-attributes.d.mts.map +1 -1
- package/dist/internal/pointer-capture.mjs +1 -2
- package/dist/internal/range-value.mjs +1 -2
- package/dist/internal/render-element.d.mts +2 -2
- package/dist/internal/render-element.mjs +2 -3
- package/dist/internal/shipped-styles.mjs +1 -2
- package/dist/internal/swipe-arithmetic.mjs +0 -1
- package/dist/internal/swipe.mjs +2 -3
- package/dist/internal/toolbar-context.mjs +1 -2
- package/dist/internal/transition-boundary.mjs +2 -3
- package/dist/internal/transition-types.mjs +1 -2
- package/dist/internal/typeahead.mjs +0 -1
- package/dist/internal/types.d.mts +0 -2
- package/dist/internal/types.d.mts.map +1 -1
- package/dist/internal/use-active-option.mjs +1 -2
- package/dist/internal/use-deferred-leave.mjs +2 -3
- package/dist/internal/use-delayed-pair.mjs +1 -2
- package/dist/internal/use-dev-warning.mjs +0 -1
- package/dist/internal/use-element-check.mjs +1 -2
- package/dist/internal/use-hydrated-mount.mjs +1 -2
- package/dist/internal/use-item-order.mjs +2 -3
- package/dist/internal/use-latest.mjs +1 -2
- package/dist/internal/use-merged-refs.mjs +2 -3
- package/dist/internal/use-mount-fixed.mjs +2 -3
- package/dist/internal/use-name-warning.mjs +1 -2
- package/dist/internal/use-native-focusgroup.mjs +1 -2
- package/dist/internal/use-option-registry.mjs +3 -4
- package/dist/internal/use-register-count.mjs +1 -2
- package/dist/internal/use-render.d.mts +2 -2
- package/dist/internal/use-render.mjs +2 -3
- package/dist/internal/use-roving-focus.mjs +2 -3
- package/dist/internal/use-value-set.mjs +2 -3
- package/dist/internal/value-set.mjs +1 -2
- package/dist/menu/index.d.mts +2 -4
- package/dist/menu/index.d.mts.map +1 -1
- package/dist/menu/index.mjs +2 -3
- package/dist/menu/menu-checkbox-item.d.mts +1 -3
- package/dist/menu/menu-checkbox-item.d.mts.map +1 -1
- package/dist/menu/menu-checkbox-item.mjs +3 -4
- package/dist/menu/menu-context-trigger.d.mts +1 -3
- package/dist/menu/menu-context-trigger.d.mts.map +1 -1
- package/dist/menu/menu-context-trigger.mjs +4 -5
- package/dist/menu/menu-context.mjs +1 -2
- package/dist/menu/menu-dom.mjs +1 -2
- package/dist/menu/menu-gestures.mjs +1 -2
- package/dist/menu/menu-group.d.mts +1 -3
- package/dist/menu/menu-group.d.mts.map +1 -1
- package/dist/menu/menu-group.mjs +2 -3
- package/dist/menu/menu-hover.mjs +1 -2
- package/dist/menu/menu-item.d.mts +3 -4
- package/dist/menu/menu-item.d.mts.map +1 -1
- package/dist/menu/menu-item.mjs +6 -3
- package/dist/menu/menu-item.mjs.map +1 -1
- package/dist/menu/menu-outside.mjs +1 -2
- package/dist/menu/menu-point.mjs +1 -2
- package/dist/menu/menu-popup.d.mts +2 -4
- package/dist/menu/menu-popup.d.mts.map +1 -1
- package/dist/menu/menu-popup.mjs +13 -14
- package/dist/menu/menu-radio-group.d.mts +1 -3
- package/dist/menu/menu-radio-group.d.mts.map +1 -1
- package/dist/menu/menu-radio-group.mjs +3 -4
- package/dist/menu/menu-radio-item.d.mts +1 -3
- package/dist/menu/menu-radio-item.d.mts.map +1 -1
- package/dist/menu/menu-radio-item.mjs +2 -3
- package/dist/menu/menu-root.d.mts +1 -3
- package/dist/menu/menu-root.d.mts.map +1 -1
- package/dist/menu/menu-root.mjs +4 -5
- package/dist/menu/menu-submenu-trigger.d.mts +1 -3
- package/dist/menu/menu-submenu-trigger.d.mts.map +1 -1
- package/dist/menu/menu-submenu-trigger.mjs +5 -6
- package/dist/menu/menu-trigger.d.mts +1 -3
- package/dist/menu/menu-trigger.d.mts.map +1 -1
- package/dist/menu/menu-trigger.mjs +5 -6
- package/dist/menu/use-menu-item.mjs +2 -3
- package/dist/menu/use-menu-keyboard.mjs +2 -3
- package/dist/menubar/menubar.d.mts +1 -3
- package/dist/menubar/menubar.d.mts.map +1 -1
- package/dist/menubar/menubar.mjs +9 -9
- package/dist/menubar/menubar.mjs.map +1 -1
- package/dist/meter/index.d.mts +1 -3
- package/dist/meter/index.d.mts.map +1 -1
- package/dist/meter/index.mjs +1 -2
- package/dist/meter/meter-context.mjs +1 -2
- package/dist/meter/meter-indicator.d.mts +1 -3
- package/dist/meter/meter-indicator.d.mts.map +1 -1
- package/dist/meter/meter-indicator.mjs +1 -2
- package/dist/meter/meter-label.d.mts +1 -3
- package/dist/meter/meter-label.d.mts.map +1 -1
- package/dist/meter/meter-label.mjs +1 -2
- package/dist/meter/meter-region.d.mts +0 -2
- package/dist/meter/meter-region.d.mts.map +1 -1
- package/dist/meter/meter-region.mjs +1 -2
- package/dist/meter/meter-root.d.mts +1 -3
- package/dist/meter/meter-root.d.mts.map +1 -1
- package/dist/meter/meter-root.mjs +4 -5
- package/dist/meter/meter-track.d.mts +1 -3
- package/dist/meter/meter-track.d.mts.map +1 -1
- package/dist/meter/meter-track.mjs +1 -2
- package/dist/meter/meter-value.d.mts +1 -3
- package/dist/meter/meter-value.d.mts.map +1 -1
- package/dist/meter/meter-value.mjs +1 -2
- package/dist/multi-select/index.d.mts +1 -3
- package/dist/multi-select/index.d.mts.map +1 -1
- package/dist/multi-select/index.mjs +1 -2
- package/dist/multi-select/multi-select-context.mjs +1 -2
- package/dist/multi-select/multi-select-group.d.mts +1 -3
- package/dist/multi-select/multi-select-group.d.mts.map +1 -1
- package/dist/multi-select/multi-select-group.mjs +2 -3
- package/dist/multi-select/multi-select-keyboard.mjs +3 -3
- package/dist/multi-select/multi-select-keyboard.mjs.map +1 -1
- package/dist/multi-select/multi-select-label.d.mts +1 -3
- package/dist/multi-select/multi-select-label.d.mts.map +1 -1
- package/dist/multi-select/multi-select-label.mjs +2 -3
- package/dist/multi-select/multi-select-list.d.mts +1 -3
- package/dist/multi-select/multi-select-list.d.mts.map +1 -1
- package/dist/multi-select/multi-select-list.mjs +3 -4
- package/dist/multi-select/multi-select-option.d.mts +1 -3
- package/dist/multi-select/multi-select-option.d.mts.map +1 -1
- package/dist/multi-select/multi-select-option.mjs +3 -4
- package/dist/multi-select/multi-select-popup.d.mts +1 -3
- package/dist/multi-select/multi-select-popup.d.mts.map +1 -1
- package/dist/multi-select/multi-select-popup.mjs +5 -6
- package/dist/multi-select/multi-select-root.d.mts +1 -3
- package/dist/multi-select/multi-select-root.d.mts.map +1 -1
- package/dist/multi-select/multi-select-root.mjs +12 -13
- package/dist/multi-select/multi-select-trigger.d.mts +1 -3
- package/dist/multi-select/multi-select-trigger.d.mts.map +1 -1
- package/dist/multi-select/multi-select-trigger.mjs +8 -9
- package/dist/multi-select/multi-select-value.d.mts +1 -3
- package/dist/multi-select/multi-select-value.d.mts.map +1 -1
- package/dist/multi-select/multi-select-value.mjs +1 -2
- package/dist/navigation-menu/index.d.mts +0 -2
- package/dist/navigation-menu/index.d.mts.map +1 -1
- package/dist/navigation-menu/index.mjs +1 -2
- package/dist/navigation-menu/navigation-menu-context.mjs +1 -2
- package/dist/navigation-menu/navigation-menu-item.d.mts +1 -3
- package/dist/navigation-menu/navigation-menu-item.d.mts.map +1 -1
- package/dist/navigation-menu/navigation-menu-item.mjs +3 -4
- package/dist/navigation-menu/navigation-menu-link.d.mts +1 -3
- package/dist/navigation-menu/navigation-menu-link.d.mts.map +1 -1
- package/dist/navigation-menu/navigation-menu-link.mjs +4 -5
- package/dist/navigation-menu/navigation-menu-list.d.mts +1 -3
- package/dist/navigation-menu/navigation-menu-list.d.mts.map +1 -1
- package/dist/navigation-menu/navigation-menu-list.mjs +1 -2
- package/dist/navigation-menu/navigation-menu-popup.d.mts +2 -4
- package/dist/navigation-menu/navigation-menu-popup.d.mts.map +1 -1
- package/dist/navigation-menu/navigation-menu-popup.mjs +8 -9
- package/dist/navigation-menu/navigation-menu-root.d.mts +1 -3
- package/dist/navigation-menu/navigation-menu-root.d.mts.map +1 -1
- package/dist/navigation-menu/navigation-menu-root.mjs +1 -2
- package/dist/navigation-menu/navigation-menu-trigger.d.mts +0 -2
- package/dist/navigation-menu/navigation-menu-trigger.d.mts.map +1 -1
- package/dist/navigation-menu/navigation-menu-trigger.mjs +2 -3
- package/dist/number-field/index.d.mts +2 -4
- package/dist/number-field/index.d.mts.map +1 -1
- package/dist/number-field/index.mjs +1 -2
- package/dist/number-field/number-field-arithmetic.mjs +1 -2
- package/dist/number-field/number-field-context.d.mts +1 -3
- package/dist/number-field/number-field-context.d.mts.map +1 -1
- package/dist/number-field/number-field-context.mjs +1 -2
- package/dist/number-field/number-field-decrement.d.mts +0 -2
- package/dist/number-field/number-field-decrement.d.mts.map +1 -1
- package/dist/number-field/number-field-decrement.mjs +1 -2
- package/dist/number-field/number-field-format.mjs +1 -2
- package/dist/number-field/number-field-increment.d.mts +0 -2
- package/dist/number-field/number-field-increment.d.mts.map +1 -1
- package/dist/number-field/number-field-increment.mjs +1 -2
- package/dist/number-field/number-field-input.d.mts +1 -3
- package/dist/number-field/number-field-input.d.mts.map +1 -1
- package/dist/number-field/number-field-input.mjs +4 -5
- package/dist/number-field/number-field-label.d.mts +1 -3
- package/dist/number-field/number-field-label.d.mts.map +1 -1
- package/dist/number-field/number-field-label.mjs +3 -4
- package/dist/number-field/number-field-root.d.mts +1 -3
- package/dist/number-field/number-field-root.d.mts.map +1 -1
- package/dist/number-field/number-field-root.mjs +9 -9
- package/dist/number-field/number-field-root.mjs.map +1 -1
- package/dist/number-field/use-number-field-dev-warnings.mjs +2 -3
- package/dist/number-field/use-step-button.d.mts +1 -3
- package/dist/number-field/use-step-button.d.mts.map +1 -1
- package/dist/number-field/use-step-button.mjs +2 -3
- package/dist/otp-field/index.d.mts +2 -4
- package/dist/otp-field/index.d.mts.map +1 -1
- package/dist/otp-field/index.mjs +1 -2
- package/dist/otp-field/otp-field-context.mjs +1 -2
- package/dist/otp-field/otp-field-filter.d.mts +0 -2
- package/dist/otp-field/otp-field-filter.d.mts.map +1 -1
- package/dist/otp-field/otp-field-filter.mjs +1 -2
- package/dist/otp-field/otp-field-input.d.mts +1 -3
- package/dist/otp-field/otp-field-input.d.mts.map +1 -1
- package/dist/otp-field/otp-field-input.mjs +6 -7
- package/dist/otp-field/otp-field-root.d.mts +1 -3
- package/dist/otp-field/otp-field-root.d.mts.map +1 -1
- package/dist/otp-field/otp-field-root.mjs +10 -11
- package/dist/otp-field/otp-field-slot.d.mts +1 -3
- package/dist/otp-field/otp-field-slot.d.mts.map +1 -1
- package/dist/otp-field/otp-field-slot.mjs +2 -3
- package/dist/popover/index.d.mts +2 -4
- package/dist/popover/index.d.mts.map +1 -1
- package/dist/popover/index.mjs +1 -2
- package/dist/popover/popover-close.d.mts +10 -6
- package/dist/popover/popover-close.d.mts.map +1 -1
- package/dist/popover/popover-close.mjs +3 -3
- package/dist/popover/popover-close.mjs.map +1 -1
- package/dist/popover/popover-context.mjs +1 -2
- package/dist/popover/popover-description.d.mts +1 -3
- package/dist/popover/popover-description.d.mts.map +1 -1
- package/dist/popover/popover-description.mjs +1 -2
- package/dist/popover/popover-popup.d.mts +2 -4
- package/dist/popover/popover-popup.d.mts.map +1 -1
- package/dist/popover/popover-popup.mjs +4 -5
- package/dist/popover/popover-root.d.mts +1 -3
- package/dist/popover/popover-root.d.mts.map +1 -1
- package/dist/popover/popover-root.mjs +2 -3
- package/dist/popover/popover-title.d.mts +1 -3
- package/dist/popover/popover-title.d.mts.map +1 -1
- package/dist/popover/popover-title.mjs +1 -2
- package/dist/popover/popover-trigger.d.mts +1 -3
- package/dist/popover/popover-trigger.d.mts.map +1 -1
- package/dist/popover/popover-trigger.mjs +2 -3
- package/dist/progress/index.d.mts +1 -3
- package/dist/progress/index.d.mts.map +1 -1
- package/dist/progress/index.mjs +1 -2
- package/dist/progress/progress-context.mjs +1 -2
- package/dist/progress/progress-indicator.d.mts +1 -3
- package/dist/progress/progress-indicator.d.mts.map +1 -1
- package/dist/progress/progress-indicator.mjs +1 -2
- package/dist/progress/progress-label.d.mts +1 -3
- package/dist/progress/progress-label.d.mts.map +1 -1
- package/dist/progress/progress-label.mjs +1 -2
- package/dist/progress/progress-root.d.mts +1 -3
- package/dist/progress/progress-root.d.mts.map +1 -1
- package/dist/progress/progress-root.mjs +4 -5
- package/dist/progress/progress-track.d.mts +1 -3
- package/dist/progress/progress-track.d.mts.map +1 -1
- package/dist/progress/progress-track.mjs +1 -2
- package/dist/progress/progress-value.d.mts +1 -3
- package/dist/progress/progress-value.d.mts.map +1 -1
- package/dist/progress/progress-value.mjs +1 -2
- package/dist/radio-group/index.d.mts +1 -3
- package/dist/radio-group/index.d.mts.map +1 -1
- package/dist/radio-group/index.mjs +1 -2
- package/dist/radio-group/radio-group-context.mjs +1 -2
- package/dist/radio-group/radio-group-item.d.mts +1 -3
- package/dist/radio-group/radio-group-item.d.mts.map +1 -1
- package/dist/radio-group/radio-group-item.mjs +3 -4
- package/dist/radio-group/radio-group-label.d.mts +1 -3
- package/dist/radio-group/radio-group-label.d.mts.map +1 -1
- package/dist/radio-group/radio-group-label.mjs +1 -2
- package/dist/radio-group/radio-group-root.d.mts +1 -3
- package/dist/radio-group/radio-group-root.d.mts.map +1 -1
- package/dist/radio-group/radio-group-root.mjs +4 -5
- package/dist/select/index.d.mts +1 -3
- package/dist/select/index.d.mts.map +1 -1
- package/dist/select/index.mjs +1 -2
- package/dist/select/select-context.mjs +1 -2
- package/dist/select/select-dom.mjs +2 -3
- package/dist/select/select-group-label.d.mts +1 -3
- package/dist/select/select-group-label.d.mts.map +1 -1
- package/dist/select/select-group-label.mjs +1 -2
- package/dist/select/select-group.d.mts +1 -3
- package/dist/select/select-group.d.mts.map +1 -1
- package/dist/select/select-group.mjs +2 -3
- package/dist/select/select-option.d.mts +1 -3
- package/dist/select/select-option.d.mts.map +1 -1
- package/dist/select/select-option.mjs +3 -4
- package/dist/select/select-root.d.mts +1 -3
- package/dist/select/select-root.d.mts.map +1 -1
- package/dist/select/select-root.mjs +6 -7
- package/dist/select/select-separator.d.mts +1 -3
- package/dist/select/select-separator.d.mts.map +1 -1
- package/dist/select/select-separator.mjs +1 -2
- package/dist/select/select-trigger.d.mts +1 -3
- package/dist/select/select-trigger.d.mts.map +1 -1
- package/dist/select/select-trigger.mjs +1 -2
- package/dist/select/select-value.d.mts +1 -3
- package/dist/select/select-value.d.mts.map +1 -1
- package/dist/select/select-value.mjs +3 -4
- package/dist/select/select-value.mjs.map +1 -1
- package/dist/separator/separator.d.mts +1 -3
- package/dist/separator/separator.d.mts.map +1 -1
- package/dist/separator/separator.mjs +1 -2
- package/dist/slider/index.d.mts +2 -4
- package/dist/slider/index.d.mts.map +1 -1
- package/dist/slider/index.mjs +1 -2
- package/dist/slider/slider-arithmetic.mjs +1 -2
- package/dist/slider/slider-context.mjs +1 -2
- package/dist/slider/slider-indicator.d.mts +1 -3
- package/dist/slider/slider-indicator.d.mts.map +1 -1
- package/dist/slider/slider-indicator.mjs +1 -2
- package/dist/slider/slider-label.d.mts +1 -3
- package/dist/slider/slider-label.d.mts.map +1 -1
- package/dist/slider/slider-label.mjs +3 -4
- package/dist/slider/slider-root.d.mts +1 -3
- package/dist/slider/slider-root.d.mts.map +1 -1
- package/dist/slider/slider-root.mjs +8 -9
- package/dist/slider/slider-thumb.d.mts +1 -3
- package/dist/slider/slider-thumb.d.mts.map +1 -1
- package/dist/slider/slider-thumb.mjs +5 -6
- package/dist/slider/slider-track.d.mts +1 -3
- package/dist/slider/slider-track.d.mts.map +1 -1
- package/dist/slider/slider-track.mjs +2 -3
- package/dist/slider/slider-value.d.mts +1 -3
- package/dist/slider/slider-value.d.mts.map +1 -1
- package/dist/slider/slider-value.mjs +1 -2
- package/dist/slider/use-slider-dev-warnings.mjs +2 -3
- package/dist/slider/use-thumb-registry.mjs +1 -2
- package/dist/switch/switch.d.mts +1 -3
- package/dist/switch/switch.d.mts.map +1 -1
- package/dist/switch/switch.mjs +2 -3
- package/dist/tabs/index.d.mts +0 -2
- package/dist/tabs/index.d.mts.map +1 -1
- package/dist/tabs/index.mjs +1 -2
- package/dist/tabs/tabs-context.d.mts +0 -2
- package/dist/tabs/tabs-context.d.mts.map +1 -1
- package/dist/tabs/tabs-context.mjs +1 -2
- package/dist/tabs/tabs-ids.mjs +1 -2
- package/dist/tabs/tabs-indicator.d.mts +1 -3
- package/dist/tabs/tabs-indicator.d.mts.map +1 -1
- package/dist/tabs/tabs-indicator.mjs +1 -2
- package/dist/tabs/tabs-list.d.mts +1 -3
- package/dist/tabs/tabs-list.d.mts.map +1 -1
- package/dist/tabs/tabs-list.mjs +4 -5
- package/dist/tabs/tabs-panel.d.mts +1 -3
- package/dist/tabs/tabs-panel.d.mts.map +1 -1
- package/dist/tabs/tabs-panel.mjs +4 -5
- package/dist/tabs/tabs-root.d.mts +1 -3
- package/dist/tabs/tabs-root.d.mts.map +1 -1
- package/dist/tabs/tabs-root.mjs +5 -6
- package/dist/tabs/tabs-tab.d.mts +1 -3
- package/dist/tabs/tabs-tab.d.mts.map +1 -1
- package/dist/tabs/tabs-tab.mjs +3 -4
- package/dist/tabs/use-until-found.mjs +1 -2
- package/dist/toast/index.d.mts +2 -4
- package/dist/toast/index.d.mts.map +1 -1
- package/dist/toast/index.mjs +2 -3
- package/dist/toast/toast-action.d.mts +1 -3
- package/dist/toast/toast-action.d.mts.map +1 -1
- package/dist/toast/toast-action.mjs +2 -3
- package/dist/toast/toast-close.d.mts +1 -3
- package/dist/toast/toast-close.d.mts.map +1 -1
- package/dist/toast/toast-close.mjs +2 -3
- package/dist/toast/toast-context.mjs +1 -2
- package/dist/toast/toast-description.d.mts +1 -3
- package/dist/toast/toast-description.d.mts.map +1 -1
- package/dist/toast/toast-description.mjs +2 -3
- package/dist/toast/toast-hotkey.mjs +1 -2
- package/dist/toast/toast-queue.mjs +1 -2
- package/dist/toast/toast-root.d.mts +1 -3
- package/dist/toast/toast-root.d.mts.map +1 -1
- package/dist/toast/toast-root.mjs +8 -6
- package/dist/toast/toast-root.mjs.map +1 -1
- package/dist/toast/toast-timers.mjs +1 -2
- package/dist/toast/toast-title.d.mts +1 -3
- package/dist/toast/toast-title.d.mts.map +1 -1
- package/dist/toast/toast-title.mjs +2 -3
- package/dist/toast/toast-viewport.d.mts +1 -3
- package/dist/toast/toast-viewport.d.mts.map +1 -1
- package/dist/toast/toast-viewport.mjs +9 -10
- package/dist/toast/toast.d.mts +1 -3
- package/dist/toast/toast.d.mts.map +1 -1
- package/dist/toast/toast.mjs +1 -2
- package/dist/toast/use-modal-portal-host.mjs +2 -3
- package/dist/toast/use-toast-announcements.mjs +2 -3
- package/dist/toast/use-toast-announcements.mjs.map +1 -1
- package/dist/toast/use-toast-focus.mjs +2 -3
- package/dist/toast/use-toast-pauses.mjs +2 -3
- package/dist/toggle/toggle.d.mts +1 -3
- package/dist/toggle/toggle.d.mts.map +1 -1
- package/dist/toggle/toggle.mjs +3 -4
- package/dist/toggle-group/index.d.mts +0 -2
- package/dist/toggle-group/index.d.mts.map +1 -1
- package/dist/toggle-group/index.mjs +1 -2
- package/dist/toggle-group/toggle-group-context.d.mts +0 -2
- package/dist/toggle-group/toggle-group-context.d.mts.map +1 -1
- package/dist/toggle-group/toggle-group-context.mjs +1 -2
- package/dist/toggle-group/toggle-group-item.d.mts +1 -3
- package/dist/toggle-group/toggle-group-item.d.mts.map +1 -1
- package/dist/toggle-group/toggle-group-item.mjs +2 -3
- package/dist/toggle-group/toggle-group-root.d.mts +1 -3
- package/dist/toggle-group/toggle-group-root.d.mts.map +1 -1
- package/dist/toggle-group/toggle-group-root.mjs +8 -9
- package/dist/toolbar/index.d.mts +0 -2
- package/dist/toolbar/index.d.mts.map +1 -1
- package/dist/toolbar/index.mjs +1 -2
- package/dist/toolbar/toolbar-root.d.mts +1 -3
- package/dist/toolbar/toolbar-root.d.mts.map +1 -1
- package/dist/toolbar/toolbar-root.mjs +3 -4
- package/dist/toolbar/toolbar-separator.d.mts +1 -3
- package/dist/toolbar/toolbar-separator.d.mts.map +1 -1
- package/dist/toolbar/toolbar-separator.mjs +1 -2
- package/dist/tooltip/index.d.mts +0 -2
- package/dist/tooltip/index.d.mts.map +1 -1
- package/dist/tooltip/index.mjs +1 -2
- package/dist/tooltip/tooltip-arrow.d.mts +1 -3
- package/dist/tooltip/tooltip-arrow.d.mts.map +1 -1
- package/dist/tooltip/tooltip-arrow.mjs +2 -3
- package/dist/tooltip/tooltip-context.d.mts +0 -2
- package/dist/tooltip/tooltip-context.d.mts.map +1 -1
- package/dist/tooltip/tooltip-context.mjs +1 -2
- package/dist/tooltip/tooltip-popup.d.mts +1 -3
- package/dist/tooltip/tooltip-popup.d.mts.map +1 -1
- package/dist/tooltip/tooltip-popup.mjs +4 -5
- package/dist/tooltip/tooltip-root.d.mts +1 -3
- package/dist/tooltip/tooltip-root.d.mts.map +1 -1
- package/dist/tooltip/tooltip-root.mjs +2 -3
- package/dist/tooltip/tooltip-trigger.d.mts +1 -3
- package/dist/tooltip/tooltip-trigger.d.mts.map +1 -1
- package/dist/tooltip/tooltip-trigger.mjs +6 -7
- package/dist/tooltip/tooltip-warm.mjs +1 -2
- package/dist/tooltip/use-tooltip-interaction.mjs +5 -5
- package/dist/tooltip/use-tooltip-interaction.mjs.map +1 -1
- package/package.json +8 -8
- package/skills/funstack-ui-knowledge/SKILL.md +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-overlay-close.mjs","names":[],"sources":["../../../src/internal/overlay/use-overlay-close.ts"],"sourcesContent":["\"use client\";\nimport type { ComponentPropsWithRef, CSSProperties, MouseEvent, ReactNode } from \"react\";\nimport { dataAttr } from \"../data-attr.js\";\nimport type { Action, ActionDetails, RenderProp, StateValue, WhilePending } from \"../types.js\";\nimport { useElementCheck } from \"../use-element-check.js\";\nimport { usePureTrigger } from \"../action/use-pure-trigger.js\";\nimport { cancelClick, disabledButton, rendersButton, useRender } from \"../use-render.js\";\nimport type { DataAttributes } from \"../use-render.js\";\n\nconst isDev = process.env.NODE_ENV !== \"production\";\n\n/** The state of Popover.Close and Dialog.Close. */\nexport interface OverlayCloseState {\n
|
|
1
|
+
{"version":3,"file":"use-overlay-close.mjs","names":[],"sources":["../../../src/internal/overlay/use-overlay-close.ts"],"sourcesContent":["\"use client\";\nimport type { ComponentPropsWithRef, CSSProperties, MouseEvent, ReactNode } from \"react\";\nimport { dataAttr } from \"../data-attr.js\";\nimport type { Action, ActionDetails, RenderProp, StateValue, WhilePending } from \"../types.js\";\nimport { useElementCheck } from \"../use-element-check.js\";\nimport { usePureTrigger } from \"../action/use-pure-trigger.js\";\nimport { cancelClick, disabledButton, rendersButton, useRender } from \"../use-render.js\";\nimport type { DataAttributes } from \"../use-render.js\";\n\nconst isDev = process.env.NODE_ENV !== \"production\";\n\n/** The state of Popover.Close and Dialog.Close. */\nexport interface OverlayCloseState {\n /**\n * From the click until the close this part asked for has committed: the `action` in flight,\n * then the Root's close (an awaited `openChangeAction(false)`, or an async action the close is\n * entangled with), with or without `action` (conventions 4.3).\n */\n readonly pending: boolean;\n readonly disabled: boolean;\n}\n\nexport interface OverlayCloseOptions<Details extends ActionDetails> {\n /** Public name of the part (`\"Popover.Close\"`). */\n readonly part: string;\n /** What the part closes, for the development warning (`\"popover\"`). */\n readonly noun: string;\n readonly isLibrary: boolean;\n /** The popup's id (`commandfor`) and the native command. */\n readonly popupId: string;\n readonly command: \"hide-popover\" | \"request-close\";\n readonly openGeneration: () => number;\n readonly action: Action<[details: Details]> | undefined;\n /**\n * The part's `whilePending` prop; `\"ignore\"` when omitted, and `\"run\"` whatever it says\n * without `action` (conventions 2.5.1).\n */\n readonly whilePending: WhilePending | undefined;\n /** The `action`'s details, built at the click. */\n readonly details: (event: Event) => Details;\n /** The close after the action (or at once without one): through the Root, or natively. */\n readonly close: (event: Event) => void;\n /** Owned keys after `command` (Dialog.Close's `value`). */\n readonly ownProps?: ComponentPropsWithRef<\"button\">;\n readonly disabled: boolean;\n readonly className: StateValue<string | undefined, OverlayCloseState> | undefined;\n readonly style: StateValue<CSSProperties | undefined, OverlayCloseState> | undefined;\n readonly children: StateValue<ReactNode, OverlayCloseState> | undefined;\n readonly render: RenderProp<ComponentPropsWithRef<\"button\">, OverlayCloseState> | undefined;\n readonly rest: Omit<ComponentPropsWithRef<\"button\">, \"className\" | \"style\" | \"children\">;\n}\n\n/**\n * The Close part of a popover-like or dialog overlay (design/components/popover.md 3.4,\n * dialog.md 3.4): `<button type=\"button\" commandfor command>` without `action`, a plain\n * `<button type=\"button\">` with one (#182). In JS-free mode without `action`\n * the browser runs the command. Otherwise the click is cancelled, refused while disabled, and\n * `close` runs, after the `action` when there is one, inside this part's own transition, so the\n * part is pending until that close has committed (conventions 4.3). Without `action` the close\n * is requested synchronously in the click and a second click requests it again (`whilePending`\n * resolves to `\"run\"`: no pending `aria-disabled`). With one, a second click meanwhile starts\n * nothing (`whilePending`, default `\"ignore\"`) or runs the action again (`\"run\"`; the close\n * happens once, after the last run and only if the latest one resolved), and a close whose open\n * was superseded by a\n * newer one (dismissed and re-opened meanwhile) is dropped (the open-generation guard).\n */\nexport function useOverlayClose<Details extends ActionDetails>(\n options: OverlayCloseOptions<Details>,\n): ReactNode {\n const { part, noun, isLibrary, popupId, command, action, disabled, render } = options;\n // A Close with `action` is no native invoker (#182, alert-dialog.md 3.2): before hydration a\n // click would close the popup without running the action. It renders a plain button, and the\n // click handler is the only thing that closes it.\n const nativeCommand = action === undefined;\n // The library owns the close, so a Close ignores clicks while pending by default (2.5.1).\n // Without `action` there is no run of its own to guard: `\"run\"`, no pending `aria-disabled`.\n const trigger = usePureTrigger({\n whilePending: action === undefined ? \"run\" : options.whilePending,\n defaultWhilePending: \"ignore\",\n openGeneration: options.openGeneration,\n });\n const { pending } = trigger;\n const installClick = isLibrary || action !== undefined;\n // JS-free mode without `action` is the browser's command, which only native `disabled` stops.\n const disabledProps = disabledButton(render, disabled, { handlesClick: installClick });\n\n const ref = useElementCheck(\n isDev &&\n ((element) =>\n !installClick && element.tagName !== \"BUTTON\"\n ? `${part}: rendered a <${element.tagName.toLowerCase()}> in JS-free mode without ` +\n `\\`action\\`. Only a <button> runs \\`command=\"${command}\"\\`; this element will not ` +\n `close the ${noun}.`\n : null),\n [installClick],\n );\n\n const onClick = (event: MouseEvent<HTMLElement>) => {\n // Cancelling the click cancels the command.\n event.preventDefault();\n if (disabled) return;\n const native = event.nativeEvent;\n if (action === undefined) {\n // In the part's own transition, so it shows `data-pending` until the close commits\n // (conventions 4.3). The request is made synchronously in the click: the synchronous\n // prefix of `openChangeAction` still runs during the event dispatch (2.3 item 3).\n trigger.run(() => options.close(native));\n return;\n }\n const details = options.details(native);\n // An ignored run needs no extra cancel: the click is already cancelled above.\n trigger.run(\n () => action(details),\n () => options.close(native),\n );\n };\n\n const libraryProps: ComponentPropsWithRef<\"button\"> & DataAttributes = {\n ...(rendersButton(render) && { type: \"button\" as const }),\n // Owned: a render element must not re-enable a disabled Close.\n disabled: disabledProps.props.disabled,\n // Only on a button (or a component, assumed to render one): another element is no invoker.\n // Not rendered with `action` (above).\n commandfor:\n nativeCommand && disabledProps.invoker && rendersButton(render) ? popupId : undefined,\n command: nativeCommand && disabledProps.invoker && rendersButton(render) ? command : undefined,\n ...options.ownProps,\n ...(installClick && { onClick }),\n // JS-free mode without `action`, disabled in the `aria-disabled` branch (a host link):\n // nothing native stops the click, so it is cancelled (a disabled link must not navigate).\n ...(!installClick && !disabledProps.invoker && { onClick: cancelClick }),\n // Exactly while `data-pending` when ignoring: a Close that will not act is unavailable to\n // AT; one that runs again is not; native `disabled` wins. Owned, so an idle Close removes a\n // render element's own.\n ...trigger.pendingProps(disabledProps.props),\n \"data-disabled\": dataAttr(disabled),\n };\n\n return useRender<ComponentPropsWithRef<\"button\">, OverlayCloseState>({\n defaultElement: \"button\",\n render,\n state: { pending, disabled },\n className: options.className,\n style: options.style,\n children: options.children,\n props: options.rest,\n libraryProps,\n ref,\n });\n}\n"],"mappings":";;;;;;;AASA,MAAM,QAAQ,QAAQ,IAAI,aAAa;;;;;;;;;;;;;;;AAyDvC,SAAgB,gBACd,SACW;CACX,MAAM,EAAE,MAAM,MAAM,WAAW,SAAS,SAAS,QAAQ,UAAU,WAAW;CAI9E,MAAM,gBAAgB,WAAW,KAAA;CAGjC,MAAM,UAAU,eAAe;EAC7B,cAAc,WAAW,KAAA,IAAY,QAAQ,QAAQ;EACrD,qBAAqB;EACrB,gBAAgB,QAAQ;CAC1B,CAAC;CACD,MAAM,EAAE,YAAY;CACpB,MAAM,eAAe,aAAa,WAAW,KAAA;CAE7C,MAAM,gBAAgB,eAAe,QAAQ,UAAU,EAAE,cAAc,aAAa,CAAC;CAErF,MAAM,MAAM,gBACV,WACI,YACA,CAAC,gBAAgB,QAAQ,YAAY,WACjC,GAAG,KAAK,gBAAgB,QAAQ,QAAQ,YAAY,EAAE,wEACP,QAAQ,uCAC1C,KAAK,KAClB,OACR,CAAC,YAAY,CACf;CAEA,MAAM,WAAW,UAAmC;EAElD,MAAM,eAAe;EACrB,IAAI,UAAU;EACd,MAAM,SAAS,MAAM;EACrB,IAAI,WAAW,KAAA,GAAW;GAIxB,QAAQ,UAAU,QAAQ,MAAM,MAAM,CAAC;GACvC;EACF;EACA,MAAM,UAAU,QAAQ,QAAQ,MAAM;EAEtC,QAAQ,UACA,OAAO,OAAO,SACd,QAAQ,MAAM,MAAM,CAC5B;CACF;CAEA,MAAM,eAAiE;EACrE,GAAI,cAAc,MAAM,KAAK,EAAE,MAAM,SAAkB;EAEvD,UAAU,cAAc,MAAM;EAG9B,YACE,iBAAiB,cAAc,WAAW,cAAc,MAAM,IAAI,UAAU,KAAA;EAC9E,SAAS,iBAAiB,cAAc,WAAW,cAAc,MAAM,IAAI,UAAU,KAAA;EACrF,GAAG,QAAQ;EACX,GAAI,gBAAgB,EAAE,QAAQ;EAG9B,GAAI,CAAC,gBAAgB,CAAC,cAAc,WAAW,EAAE,SAAS,YAAY;EAItE,GAAG,QAAQ,aAAa,cAAc,KAAK;EAC3C,iBAAiB,SAAS,QAAQ;CACpC;CAEA,OAAO,UAA8D;EACnE,gBAAgB;EAChB;EACA,OAAO;GAAE;GAAS;EAAS;EAC3B,WAAW,QAAQ;EACnB,OAAO,QAAQ;EACf,UAAU,QAAQ;EAClB,OAAO,QAAQ;EACf;EACA;CACF,CAAC;AACH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
1
|
+
import "react";
|
|
2
|
+
import "../types.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useCallback, useId, useMemo, useRef, useState } from "react";
|
|
2
3
|
import { createActionDetails } from "../action/action-details.mjs";
|
|
3
|
-
import {
|
|
4
|
+
import { callUrgentHandler } from "../action/call-urgent-handler.mjs";
|
|
5
|
+
import { isPopoverOpen } from "./popover-open.mjs";
|
|
4
6
|
import { transitionTypes } from "../transition-types.mjs";
|
|
5
|
-
import { useLatest } from "../use-latest.mjs";
|
|
6
7
|
import { intendedValue, useControllableAction } from "../action/use-controllable-action.mjs";
|
|
8
|
+
import { useDevWarning } from "../use-dev-warning.mjs";
|
|
7
9
|
import { useMountFixed } from "../use-mount-fixed.mjs";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { useCallback, useId, useMemo, useRef, useState } from "react";
|
|
11
|
-
//#region src/internal/overlay/use-overlay-root.ts
|
|
10
|
+
import { useLatest } from "../use-latest.mjs";
|
|
11
|
+
// src/internal/overlay/use-overlay-root.ts
|
|
12
12
|
const isDev = process.env.NODE_ENV !== "production";
|
|
13
13
|
/** How long a recorded close intent survives when the popup did not close (design 2.3). */
|
|
14
14
|
function clearLater(intentRef, intent, popupRef, isShown) {
|
|
@@ -188,7 +188,6 @@ function usePopoverRoot(options) {
|
|
|
188
188
|
hiddenBeforeToggle
|
|
189
189
|
]);
|
|
190
190
|
}
|
|
191
|
-
//#endregion
|
|
192
191
|
export { popoverDetails, useOverlayRoot, usePopoverRoot };
|
|
193
192
|
|
|
194
193
|
//# sourceMappingURL=use-overlay-root.mjs.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useElementCheck } from "../use-element-check.mjs";
|
|
4
|
-
import { isPopoverOpen } from "./popover-open.mjs";
|
|
5
|
-
import { closedByPopoverTarget } from "./invokers.mjs";
|
|
2
|
+
import { useCallback, useEffect, useEffectEvent, useLayoutEffect, useRef, useState } from "react";
|
|
6
3
|
import { useContentFocusProbe } from "./content-focus-probe.mjs";
|
|
7
4
|
import { withCssTransitionCut } from "./css-transition-cut.mjs";
|
|
5
|
+
import { closedByPopoverTarget } from "./invokers.mjs";
|
|
8
6
|
import { supportsFocusVisibleOption } from "./focus-visible.mjs";
|
|
9
7
|
import { commandOf, renderOverlayContent, resolveInitialFocus, returnFocusToTrigger, useCloseHold, useInitialFocusTarget } from "./overlay-popup.mjs";
|
|
10
8
|
import { createPopupFlags, showWithFocus } from "./overlay-show.mjs";
|
|
11
9
|
import { useApplyOpenState } from "./use-apply-open-state.mjs";
|
|
10
|
+
import { isPopoverOpen } from "./popover-open.mjs";
|
|
11
|
+
import { useElementCheck } from "../use-element-check.mjs";
|
|
12
12
|
import { useInterestDismiss } from "./use-interest-dismiss.mjs";
|
|
13
|
+
import { useLatest } from "../use-latest.mjs";
|
|
13
14
|
import { useShownNameWarning } from "../use-name-warning.mjs";
|
|
14
|
-
|
|
15
|
-
//#region src/internal/overlay/use-popover-popup.ts
|
|
15
|
+
// src/internal/overlay/use-popover-popup.ts
|
|
16
16
|
const isDev = process.env.NODE_ENV !== "production";
|
|
17
17
|
const DEFAULT_ELEMENTS = ["DIALOG", "DIV"];
|
|
18
18
|
/** `["DIALOG", "DIV"]` as "a <dialog> or a <div>". */
|
|
@@ -281,7 +281,6 @@ function usePopoverPopup(ctx, options) {
|
|
|
281
281
|
reshow
|
|
282
282
|
};
|
|
283
283
|
}
|
|
284
|
-
//#endregion
|
|
285
284
|
export { usePopoverPopup };
|
|
286
285
|
|
|
287
286
|
//# sourceMappingURL=use-popover-popup.mjs.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import "react";
|
|
1
2
|
import "../types.mjs";
|
|
2
|
-
import "./use-overlay-root.mjs";
|
|
3
3
|
import "../use-render.mjs";
|
|
4
|
-
import
|
|
5
|
-
//#region src/internal/overlay/use-popover-trigger.d.ts
|
|
4
|
+
import "./use-overlay-root.mjs";
|
|
6
5
|
/** The state of an overlay Trigger (Popover.Trigger, Menu.Trigger and its siblings). */
|
|
7
6
|
export interface PopoverTriggerHookState {
|
|
8
7
|
/** Optimistic open state. A Popover in JS-free mode (the browser owns it) reports `false`. */
|
|
@@ -12,5 +11,4 @@ export interface PopoverTriggerHookState {
|
|
|
12
11
|
/** The `disabled` prop. */
|
|
13
12
|
readonly disabled: boolean;
|
|
14
13
|
}
|
|
15
|
-
//#endregion
|
|
16
14
|
//# sourceMappingURL=use-popover-trigger.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-popover-trigger.d.mts","names":[],"sources":["../../../src/internal/overlay/use-popover-trigger.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-popover-trigger.d.mts","names":[],"sources":["../../../src/internal/overlay/use-popover-trigger.ts"],"mappings":";;;;;iBA8EiB;;WAEN;;WAEA;;WAEA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useCallback } from "react";
|
|
2
3
|
import { dataAttr } from "../data-attr.mjs";
|
|
3
|
-
import { cancelClick, disabledButton, rendersButton } from "../render-element.mjs";
|
|
4
|
-
import { useElementCheck } from "../use-element-check.mjs";
|
|
5
4
|
import { isPopoverOpen } from "./popover-open.mjs";
|
|
6
5
|
import { registerTrigger } from "./trigger-ref.mjs";
|
|
7
|
-
import {
|
|
8
|
-
|
|
6
|
+
import { useElementCheck } from "../use-element-check.mjs";
|
|
7
|
+
import { cancelClick, disabledButton, rendersButton } from "../render-element.mjs";
|
|
8
|
+
// src/internal/overlay/use-popover-trigger.ts
|
|
9
9
|
const isDev = process.env.NODE_ENV !== "production";
|
|
10
10
|
/**
|
|
11
11
|
* The click rule of a Trigger that toggles a popover-kind Root (popover.md 2.8): Popover.Trigger,
|
|
@@ -136,7 +136,6 @@ function usePopoverTrigger(ctx, options) {
|
|
|
136
136
|
ref
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
|
-
//#endregion
|
|
140
139
|
export { RESERVED_INVOKER_KEYS, nonInvokerMessage, toggleFromTrigger, usePopoverTrigger };
|
|
141
140
|
|
|
142
141
|
//# sourceMappingURL=use-popover-trigger.mjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { resolveStateValue } from "../render-element.mjs";
|
|
3
|
-
import { POSITION_TRY_FALLBACKS, parsePositionArea, positionArea } from "./anchor-position.mjs";
|
|
4
|
-
import { isPopoverOpen } from "./popover-open.mjs";
|
|
5
2
|
import { useCallback, useLayoutEffect, useRef, useState } from "react";
|
|
6
3
|
import { flushSync } from "react-dom";
|
|
7
|
-
|
|
4
|
+
import { POSITION_TRY_FALLBACKS, parsePositionArea, positionArea } from "./anchor-position.mjs";
|
|
5
|
+
import { isPopoverOpen } from "./popover-open.mjs";
|
|
6
|
+
import { resolveStateValue } from "../render-element.mjs";
|
|
7
|
+
// src/internal/overlay/use-resolved-placement.ts
|
|
8
8
|
const toDirection = (value) => value === "rtl" ? "rtl" : "ltr";
|
|
9
9
|
/**
|
|
10
10
|
* Where the browser actually placed an anchored popup (design/conventions.md 13.2): the
|
|
@@ -156,7 +156,6 @@ function useAnchoredPlacement(request) {
|
|
|
156
156
|
style
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
//#endregion
|
|
160
159
|
export { useAnchoredPlacement, useResolvedPlacement };
|
|
161
160
|
|
|
162
161
|
//# sourceMappingURL=use-resolved-placement.mjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
//#region src/internal/platform-attributes.d.ts
|
|
3
2
|
declare module "react" {
|
|
4
3
|
interface HTMLAttributes<T> {
|
|
5
4
|
/**
|
|
@@ -63,5 +62,4 @@ declare module "react" {
|
|
|
63
62
|
interestDelayEnd?: string | undefined;
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
|
-
//#endregion
|
|
67
65
|
//# sourceMappingURL=platform-attributes.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-attributes.d.mts","names":[],"sources":["../../src/internal/platform-attributes.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"platform-attributes.d.mts","names":[],"sources":["../../src/internal/platform-attributes.ts"],"mappings":";;YAkBY,eAAe;;;;;;IAMvB;;;;;;IAMA;;YAGQ,qBAAqB;;;;;;IAM7B;;;;;;IAMA;;;;;;IAMA;;YAWQ,qBAAqB;;IAE7B;;YAGQ,mBAAmB;;IAE3B;;YAGQ;cACE;;;;;;;MAOR,iBAAiB,MAAM,kBAAkB,MAAM,eAAe,cAAc;;;YAItE;;IAER;;IAEA;;IAEA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/pointer-capture.ts
|
|
2
2
|
/**
|
|
3
3
|
* `setPointerCapture`, which throws `NotFoundError` for a pointer the engine no longer tracks
|
|
4
4
|
* (context-menu.md 2.1). A silent no-op when no button is down. `true` when the capture was
|
|
@@ -14,7 +14,6 @@ function capturePointer(element, pointerId) {
|
|
|
14
14
|
return false;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { capturePointer };
|
|
19
18
|
|
|
20
19
|
//# sourceMappingURL=pointer-capture.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/range-value.ts
|
|
2
2
|
/** The platform's clamp (`<progress>` 150 of 100 is 100). A degenerate range yields `min`. */
|
|
3
3
|
function clamp(value, min, max) {
|
|
4
4
|
return Math.max(min, Math.min(max, value));
|
|
@@ -47,7 +47,6 @@ function formatRangeValue(value, min, max, format, locale) {
|
|
|
47
47
|
const percentStyle = format === void 0 || format.style === "percent";
|
|
48
48
|
return getNumberFormat(locale, format).format(percentStyle ? fraction(value, min, max) : value);
|
|
49
49
|
}
|
|
50
|
-
//#endregion
|
|
51
50
|
export { clamp, formatRangeValue, fraction, getNumberFormat, isDegenerate, percentage };
|
|
52
51
|
|
|
53
52
|
//# sourceMappingURL=range-value.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
1
|
+
import "react";
|
|
2
|
+
import "./types.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { mergeProps, mergeRefs } from "./merge-props.mjs";
|
|
2
1
|
import { cloneElement, createElement, isValidElement } from "react";
|
|
3
|
-
|
|
2
|
+
import { mergeProps, mergeRefs } from "./merge-props.mjs";
|
|
3
|
+
// src/internal/render-element.ts
|
|
4
4
|
function resolveStateValue(value, state) {
|
|
5
5
|
return typeof value === "function" ? value(state) : value;
|
|
6
6
|
}
|
|
@@ -117,7 +117,6 @@ function renderElement(options) {
|
|
|
117
117
|
if (typeof render === "function") return render(resolved, state);
|
|
118
118
|
return createElement(defaultElement, resolved);
|
|
119
119
|
}
|
|
120
|
-
//#endregion
|
|
121
120
|
export { cancelClick, disabledButton, isHostButton, mergeRenderRef, pendingAriaDisabled, renderElement, rendersButton, resolveStateValue };
|
|
122
121
|
|
|
123
122
|
//# sourceMappingURL=render-element.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/shipped-styles.ts
|
|
2
2
|
/**
|
|
3
3
|
* The React stylesheet precedence bucket of the library's functional CSS. Fizz writes every
|
|
4
4
|
* same-precedence `<style>` of one server flush as a single element with the texts concatenated,
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
* `csp/csp.test.tsx`).
|
|
9
9
|
*/
|
|
10
10
|
const FSUI_PRECEDENCE = "fsui";
|
|
11
|
-
//#endregion
|
|
12
11
|
export { FSUI_PRECEDENCE };
|
|
13
12
|
|
|
14
13
|
//# sourceMappingURL=shipped-styles.mjs.map
|
|
@@ -69,7 +69,6 @@ function releaseOutcome(offset, extent, velocity) {
|
|
|
69
69
|
if (velocity >= .5) return "dismiss";
|
|
70
70
|
return extent > 0 && offset >= extent * .25 ? "dismiss" : "return";
|
|
71
71
|
}
|
|
72
|
-
//#endregion
|
|
73
72
|
export { SWIPE_DISMISS_FRACTION, SWIPE_FLICK_VELOCITY, classifyPress, releaseOutcome, releaseVelocity, swipeOffset, swipeProgress, swipeTranslation, swipeVector, towardEdge };
|
|
74
73
|
|
|
75
74
|
//# sourceMappingURL=swipe-arithmetic.mjs.map
|
package/dist/internal/swipe.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { classifyPress, releaseOutcome, releaseVelocity, swipeOffset, swipeProgress, towardEdge } from "./swipe-arithmetic.mjs";
|
|
2
1
|
import { capturePointer } from "./pointer-capture.mjs";
|
|
3
|
-
|
|
2
|
+
import { classifyPress, releaseOutcome, releaseVelocity, swipeOffset, swipeProgress, towardEdge } from "./swipe-arithmetic.mjs";
|
|
3
|
+
// src/internal/swipe.ts
|
|
4
4
|
/** The document's selection when it is not collapsed, else `null`. */
|
|
5
5
|
function selectionOf(doc) {
|
|
6
6
|
const selection = doc.getSelection();
|
|
@@ -163,7 +163,6 @@ function trackSwipe(element, options) {
|
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
//#endregion
|
|
167
166
|
export { trackSwipe };
|
|
168
167
|
|
|
169
168
|
//# sourceMappingURL=swipe.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createContext, use } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/toolbar-context.ts
|
|
4
4
|
/**
|
|
5
5
|
* Provided by `Toolbar.Root`; read across folders by `ToggleGroup.Root` (joins the Toolbar's
|
|
6
6
|
* sequence instead of running its own engine), `Toolbar.Separator` (perpendicular orientation)
|
|
@@ -11,7 +11,6 @@ const ToolbarContext = createContext(null);
|
|
|
11
11
|
function useToolbarContext() {
|
|
12
12
|
return use(ToolbarContext);
|
|
13
13
|
}
|
|
14
|
-
//#endregion
|
|
15
14
|
export { ToolbarContext, useToolbarContext };
|
|
16
15
|
|
|
17
16
|
//# sourceMappingURL=toolbar-context.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useDevWarning } from "./use-dev-warning.mjs";
|
|
3
2
|
import { ViewTransition, useState } from "react";
|
|
3
|
+
import { useDevWarning } from "./use-dev-warning.mjs";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/internal/transition-boundary.tsx
|
|
6
6
|
const isDev = process.env.NODE_ENV !== "production";
|
|
7
7
|
/**
|
|
8
8
|
* Wraps a part's output in `<ViewTransition default={transition}>` **only when the consumer
|
|
@@ -42,7 +42,6 @@ function useTransitionBoundary(part, transition, node) {
|
|
|
42
42
|
useDevWarning(hasBoundary !== initial, isDev && `${part}: \`transition\` changed between undefined and a value after mount. The part renders a <ViewTransition> only when \`transition\` is given, so this remounts its subtree (DOM and state are lost). Keep \`transition\` static; use \`transition="none"\` to switch animation off without removing the boundary.`);
|
|
43
43
|
return transitionBoundary(transition, node);
|
|
44
44
|
}
|
|
45
|
-
//#endregion
|
|
46
45
|
export { transitionBoundary, useTransitionBoundary };
|
|
47
46
|
|
|
48
47
|
//# sourceMappingURL=transition-boundary.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/internal/transition-types.ts
|
|
2
2
|
/**
|
|
3
3
|
* Builds the library's View Transition type names for one dispatch (conventions 5.3):
|
|
4
4
|
* `fsui-<component>` plus, when the change has a kind, `fsui-<component>-<change>`.
|
|
@@ -9,7 +9,6 @@ function transitionTypes(component, change) {
|
|
|
9
9
|
const base = `fsui-${component}`;
|
|
10
10
|
return change ? [base, `${base}-${change}`] : [base];
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { transitionTypes };
|
|
14
13
|
|
|
15
14
|
//# sourceMappingURL=transition-types.mjs.map
|
|
@@ -46,7 +46,6 @@ function typeaheadMatch(buffer, key, texts, current, now = Date.now()) {
|
|
|
46
46
|
if (!pushTypeahead(buffer, key, now)) return null;
|
|
47
47
|
return findTypeahead(buffer, texts, current);
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
49
|
export { createTypeaheadBuffer, findTypeahead, isTypingAhead, pushTypeahead, typeaheadMatch };
|
|
51
50
|
|
|
52
51
|
//# sourceMappingURL=typeahead.mjs.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from "react";
|
|
2
|
-
//#region src/internal/types.d.ts
|
|
3
2
|
/** The arrow-key axis of a composite widget (Toolbar, Tabs, ToggleGroup, Slider). */
|
|
4
3
|
export type Orientation = "horizontal" | "vertical";
|
|
5
4
|
/**
|
|
@@ -75,5 +74,4 @@ export type StateValue<T, State> = T | ((state: State) => T);
|
|
|
75
74
|
* whatever it likes (it must spread `props` onto a DOM element).
|
|
76
75
|
*/
|
|
77
76
|
export type RenderProp<Props, State> = ReactElement<Partial<Props>> | ((props: Props, state: State) => ReactNode);
|
|
78
|
-
//#endregion
|
|
79
77
|
//# sourceMappingURL=types.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.mts","names":[],"sources":["../../src/internal/types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.d.mts","names":[],"sources":["../../src/internal/types.ts"],"mappings":";;YAGY;;;;;;;YAQA,OAAO,4CAA4C,MAAM;;;;iBAKpD;;WAEN,OAAO;;;YAIN,aAAa,GAAG,gBAAgB,gBAAgB,iBAAiB,QAC1E,MAAM,GAAG,SAAS;;;;;;;;;;;;YAcT,oBAAoB,GAAG,gBAAgB,gBAAgB,kBACjE,MAAM,GACN,SAAS;;;;;;YAQC,cAAc,gBAAgB,gBAAgB,kBACxD,SAAS;;;;;;;;;;;;;;;;;YAmBC;;;;;;;;;;;;;;YAeA;;YAGA,WAAW,GAAG,SAAS,MAAM,OAAO,UAAU;;;;;;YAO9C,WAAW,OAAO,SAC1B,aAAa,QAAQ,YACnB,OAAO,OAAO,OAAO,UAAU"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useCallback, useLayoutEffect, useRef, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/use-active-option.ts
|
|
4
4
|
/**
|
|
5
5
|
* The active option of a listbox with virtual focus, Combobox or MultiSelect
|
|
6
6
|
* (design/components/combobox.md 2 and 6.5; multi-select.md B.8): urgent virtual focus,
|
|
@@ -45,7 +45,6 @@ function useActiveOption({ popover, orderedOptions, autoHighlight, stale, loadin
|
|
|
45
45
|
autoArmedRef
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
//#endregion
|
|
49
48
|
export { useActiveOption };
|
|
50
49
|
|
|
51
50
|
//# sourceMappingURL=use-active-option.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useLatest } from "./use-latest.mjs";
|
|
3
2
|
import { useEffect, useRef } from "react";
|
|
4
|
-
|
|
3
|
+
import { useLatest } from "./use-latest.mjs";
|
|
4
|
+
// src/internal/use-deferred-leave.ts
|
|
5
5
|
/**
|
|
6
6
|
* The focus-leave decision of a listbox component's focus surface (design/components/combobox.md
|
|
7
7
|
* 5.4; the Combobox Input, the MultiSelect Trigger, multi-select.md B.4). A press blurs the
|
|
@@ -107,7 +107,6 @@ function useDeferredLeave({ surfaceRef: inputRef, popupRef, chipsRef, leave }) {
|
|
|
107
107
|
focusOut
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
//#endregion
|
|
111
110
|
export { useDeferredLeave };
|
|
112
111
|
|
|
113
112
|
//# sourceMappingURL=use-deferred-leave.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/use-delayed-pair.ts
|
|
4
4
|
/** Plain factory, for code that owns its timers inside an effect (Tooltip). */
|
|
5
5
|
function createDelayedPair() {
|
|
6
6
|
let timer;
|
|
@@ -34,7 +34,6 @@ function useDelayedPair() {
|
|
|
34
34
|
useEffect(() => pair.cancel, [pair]);
|
|
35
35
|
return pair;
|
|
36
36
|
}
|
|
37
|
-
//#endregion
|
|
38
37
|
export { createDelayedPair, useDelayedPair };
|
|
39
38
|
|
|
40
39
|
//# sourceMappingURL=use-delayed-pair.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useLatest } from "./use-latest.mjs";
|
|
3
2
|
import { useCallback, useRef } from "react";
|
|
3
|
+
import { useLatest } from "./use-latest.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* A development check of the element a part mounted (a `render` element of the wrong kind, an
|
|
6
6
|
* element in the wrong place): `message(element)` returns the warning, or `null` when the element
|
|
@@ -33,7 +33,6 @@ function useElementCheckDev(message, deps = []) {
|
|
|
33
33
|
}, [latest, ...deps]);
|
|
34
34
|
return message === false ? void 0 : check;
|
|
35
35
|
}
|
|
36
|
-
//#endregion
|
|
37
36
|
export { useElementCheck };
|
|
38
37
|
|
|
39
38
|
//# sourceMappingURL=use-element-check.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useSyncExternalStore } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/use-hydrated-mount.ts
|
|
4
4
|
const subscribe = () => () => {};
|
|
5
5
|
const clientSnapshot = () => false;
|
|
6
6
|
const serverSnapshot = () => true;
|
|
@@ -15,7 +15,6 @@ const serverSnapshot = () => true;
|
|
|
15
15
|
function useHydratedMount() {
|
|
16
16
|
return useSyncExternalStore(subscribe, clientSnapshot, serverSnapshot);
|
|
17
17
|
}
|
|
18
|
-
//#endregion
|
|
19
18
|
export { useHydratedMount };
|
|
20
19
|
|
|
21
20
|
//# sourceMappingURL=use-hydrated-mount.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { arraysEqual, firstDuplicate, sortByOrder } from "./value-set.mjs";
|
|
3
2
|
import { useEffectEvent, useLayoutEffect, useRef, useState } from "react";
|
|
4
|
-
|
|
3
|
+
import { arraysEqual, firstDuplicate, sortByOrder } from "./value-set.mjs";
|
|
4
|
+
// src/internal/use-item-order.ts
|
|
5
5
|
/**
|
|
6
6
|
* The Items' document order, kept in state for the Root state's `value` (CheckboxGroup,
|
|
7
7
|
* ToggleGroup). Render cannot read the DOM, so the order is refreshed after a commit of the Root,
|
|
@@ -36,7 +36,6 @@ function useItemOrder(options) {
|
|
|
36
36
|
renderedValue
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
export { useItemOrder };
|
|
41
40
|
|
|
42
41
|
//# sourceMappingURL=use-item-order.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useInsertionEffect, useRef } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/use-latest.ts
|
|
4
4
|
/**
|
|
5
5
|
* A ref holding the value of the last **committed** render, for stable callbacks (handlers,
|
|
6
6
|
* actions, effects) that must read the current props without changing identity on every render.
|
|
@@ -22,7 +22,6 @@ function useLatest(value) {
|
|
|
22
22
|
});
|
|
23
23
|
return ref;
|
|
24
24
|
}
|
|
25
|
-
//#endregion
|
|
26
25
|
export { useLatest };
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=use-latest.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { mergeRefs } from "./merge-props.mjs";
|
|
3
2
|
import { useMemo } from "react";
|
|
4
|
-
|
|
3
|
+
import { mergeRefs } from "./merge-props.mjs";
|
|
4
|
+
// src/internal/use-merged-refs.ts
|
|
5
5
|
/**
|
|
6
6
|
* `mergeRefs` with a stable identity while every ref keeps its own. `undefined` entries are
|
|
7
7
|
* dropped: a single remaining ref passes through unwrapped, none gives `undefined`. Call it with
|
|
@@ -13,7 +13,6 @@ function useMergedRefs(...refs) {
|
|
|
13
13
|
return defined.length <= 1 ? defined[0] : mergeRefs(...defined);
|
|
14
14
|
}, refs);
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { useMergedRefs };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=use-merged-refs.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useDevWarning } from "./use-dev-warning.mjs";
|
|
3
2
|
import { useState } from "react";
|
|
4
|
-
|
|
3
|
+
import { useDevWarning } from "./use-dev-warning.mjs";
|
|
4
|
+
// src/internal/use-mount-fixed.ts
|
|
5
5
|
/**
|
|
6
6
|
* A prop the component reads once, at mount: returns the first render's `value` for the life of
|
|
7
7
|
* the instance, and logs `message` once (`useDevWarning`) the first time a later render's `value`
|
|
@@ -16,7 +16,6 @@ function useMountFixed(value, message) {
|
|
|
16
16
|
useDevWarning(mounted !== value, message);
|
|
17
17
|
return mounted;
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
19
|
export { useMountFixed };
|
|
21
20
|
|
|
22
21
|
//# sourceMappingURL=use-mount-fixed.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useCallback, useEffect, useRef } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/use-name-warning.ts
|
|
4
4
|
const isDev = process.env.NODE_ENV !== "production";
|
|
5
5
|
/** A button is also named by its text or `title`. */
|
|
6
6
|
const BUTTON_NAME = {
|
|
@@ -134,7 +134,6 @@ function useShownDescriptionWarningDev(element, message) {
|
|
|
134
134
|
};
|
|
135
135
|
}, [element, message]);
|
|
136
136
|
}
|
|
137
|
-
//#endregion
|
|
138
137
|
export { BUTTON_NAME, TEXT_NAME, useNameWarning, useShownDescriptionWarning, useShownNameWarning };
|
|
139
138
|
|
|
140
139
|
//# sourceMappingURL=use-name-warning.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useSyncExternalStore } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/use-native-focusgroup.ts
|
|
4
4
|
/** Engine capabilities never change while the page lives. */
|
|
5
5
|
const subscribeNever = () => () => {};
|
|
6
6
|
/**
|
|
@@ -13,7 +13,6 @@ const subscribeNever = () => () => {};
|
|
|
13
13
|
function useNativeFocusgroup(flag) {
|
|
14
14
|
return useSyncExternalStore(subscribeNever, () => flag && "focusGroup" in HTMLElement.prototype, () => false);
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { useNativeFocusgroup };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=use-native-focusgroup.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { useCallback, useRef, useState } from "react";
|
|
3
3
|
import { sortByDocumentOrder } from "./dom-order.mjs";
|
|
4
|
+
import { useLatest } from "./use-latest.mjs";
|
|
4
5
|
import { useRegisterCount } from "./use-register-count.mjs";
|
|
5
|
-
|
|
6
|
-
//#region src/internal/use-option-registry.ts
|
|
6
|
+
// src/internal/use-option-registry.ts
|
|
7
7
|
const isDev = process.env.NODE_ENV !== "production";
|
|
8
8
|
/** The id fragment of an option value: stable across result sets, no whitespace (combobox.md 3.5). */
|
|
9
9
|
function optionId(prefix, value) {
|
|
@@ -64,7 +64,6 @@ function useOptionRegistry(component, labels, onLabel) {
|
|
|
64
64
|
}, [registry])
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
//#endregion
|
|
68
67
|
export { optionId, optionLabel, useOptionRegistry };
|
|
69
68
|
|
|
70
69
|
//# sourceMappingURL=use-option-registry.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useCallback, useRef, useState } from "react";
|
|
3
|
-
|
|
3
|
+
// src/internal/use-register-count.ts
|
|
4
4
|
/**
|
|
5
5
|
* Counts the mounted instances of an optional part: the Labels of Slider, NumberField and Combobox,
|
|
6
6
|
* Combobox's Statuses.
|
|
@@ -21,7 +21,6 @@ function useRegisterCount() {
|
|
|
21
21
|
countRef
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
//#endregion
|
|
25
24
|
export { useRegisterCount };
|
|
26
25
|
|
|
27
26
|
//# sourceMappingURL=use-register-count.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import
|
|
1
|
+
import "react";
|
|
2
|
+
import "./render-element.mjs";
|