@base-ui/react 1.2.0 → 1.3.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 +148 -1
- package/accordion/header/AccordionHeader.d.ts +4 -2
- package/accordion/item/AccordionItem.d.ts +10 -4
- package/accordion/item/AccordionItemContext.d.ts +2 -2
- package/accordion/item/stateAttributesMapping.d.ts +2 -2
- package/accordion/panel/AccordionPanel.d.ts +6 -3
- package/accordion/root/AccordionRoot.d.ts +19 -10
- package/accordion/root/AccordionRootContext.d.ts +7 -7
- package/accordion/trigger/AccordionTrigger.d.ts +4 -2
- package/accordion/trigger/AccordionTrigger.js +3 -1
- package/alert-dialog/root/AlertDialogRoot.d.ts +2 -0
- package/autocomplete/index.d.ts +1 -0
- package/autocomplete/index.parts.d.ts +1 -0
- package/autocomplete/index.parts.js +7 -0
- package/autocomplete/root/AutocompleteRoot.d.ts +4 -4
- package/autocomplete/root/AutocompleteRoot.js +4 -1
- package/avatar/fallback/AvatarFallback.d.ts +3 -6
- package/avatar/fallback/AvatarFallback.js +4 -32
- package/avatar/image/AvatarImage.d.ts +6 -3
- package/avatar/image/AvatarImage.js +2 -3
- package/avatar/image/AvatarImageDataAttributes.d.ts +10 -0
- package/avatar/image/AvatarImageDataAttributes.js +18 -0
- package/avatar/root/AvatarRoot.d.ts +4 -1
- package/checkbox/indicator/CheckboxIndicator.d.ts +6 -3
- package/checkbox/root/CheckboxRoot.d.ts +3 -3
- package/checkbox/root/CheckboxRoot.js +4 -1
- package/checkbox/root/CheckboxRootContext.d.ts +4 -4
- package/checkbox/utils/useStateAttributesMapping.d.ts +2 -2
- package/checkbox-group/CheckboxGroup.d.ts +3 -3
- package/checkbox-group/CheckboxGroupContext.d.ts +2 -2
- package/checkbox-group/useCheckboxGroupParent.d.ts +2 -5
- package/collapsible/panel/CollapsiblePanel.d.ts +6 -3
- package/collapsible/panel/useCollapsiblePanel.d.ts +2 -5
- package/collapsible/root/CollapsibleRoot.d.ts +3 -3
- package/collapsible/root/CollapsibleRootContext.d.ts +4 -4
- package/collapsible/root/stateAttributesMapping.d.ts +2 -2
- package/collapsible/root/useCollapsibleRoot.d.ts +2 -5
- package/collapsible/trigger/CollapsibleTrigger.d.ts +4 -2
- package/combobox/arrow/ComboboxArrow.d.ts +10 -1
- package/combobox/backdrop/ComboboxBackdrop.d.ts +4 -1
- package/combobox/chip/ComboboxChip.d.ts +1 -1
- package/combobox/chip-remove/ComboboxChipRemove.d.ts +1 -1
- package/combobox/chips/ComboboxChips.d.ts +1 -1
- package/combobox/clear/ComboboxClear.d.ts +4 -1
- package/combobox/collection/ComboboxCollection.d.ts +2 -0
- package/combobox/empty/ComboboxEmpty.d.ts +1 -1
- package/combobox/group/ComboboxGroup.d.ts +1 -1
- package/combobox/group-label/ComboboxGroupLabel.d.ts +1 -1
- package/combobox/icon/ComboboxIcon.d.ts +1 -1
- package/combobox/index.d.ts +2 -0
- package/combobox/index.parts.d.ts +2 -0
- package/combobox/index.parts.js +14 -0
- package/combobox/input/ComboboxInput.d.ts +3 -3
- package/combobox/input/ComboboxInput.js +22 -5
- package/combobox/input-group/ComboboxInputGroup.d.ts +40 -0
- package/combobox/input-group/ComboboxInputGroup.js +68 -0
- package/combobox/input-group/ComboboxInputGroupDataAttributes.d.ts +55 -0
- package/combobox/input-group/ComboboxInputGroupDataAttributes.js +62 -0
- package/combobox/item/ComboboxItem.d.ts +1 -1
- package/combobox/item/ComboboxItem.js +2 -1
- package/combobox/item-indicator/ComboboxItemIndicator.d.ts +7 -1
- package/combobox/item-indicator/ComboboxItemIndicatorDataAttributes.d.ts +10 -0
- package/combobox/item-indicator/ComboboxItemIndicatorDataAttributes.js +18 -0
- package/combobox/label/ComboboxLabel.d.ts +16 -0
- package/combobox/label/ComboboxLabel.js +68 -0
- package/combobox/list/ComboboxList.d.ts +1 -1
- package/combobox/popup/ComboboxPopup.d.ts +21 -3
- package/combobox/popup/ComboboxPopup.js +10 -2
- package/combobox/portal/ComboboxPortal.d.ts +3 -4
- package/combobox/positioner/ComboboxPositioner.d.ts +14 -2
- package/combobox/positioner/ComboboxPositioner.js +3 -2
- package/combobox/root/AriaCombobox.d.ts +9 -8
- package/combobox/root/AriaCombobox.js +14 -6
- package/combobox/root/ComboboxRoot.d.ts +4 -4
- package/combobox/row/ComboboxRow.d.ts +1 -1
- package/combobox/status/ComboboxStatus.d.ts +1 -1
- package/combobox/store.d.ts +10 -4
- package/combobox/store.js +2 -0
- package/combobox/trigger/ComboboxTrigger.d.ts +3 -3
- package/combobox/trigger/ComboboxTrigger.js +5 -2
- package/combobox/utils/ComboboxInternalDismissButton.d.ts +5 -0
- package/combobox/utils/ComboboxInternalDismissButton.js +44 -0
- package/composite/item/CompositeItem.d.ts +3 -1
- package/composite/list/CompositeList.d.ts +3 -1
- package/composite/list/useCompositeListItem.d.ts +1 -1
- package/composite/root/CompositeRoot.d.ts +4 -2
- package/composite/root/useCompositeRoot.d.ts +1 -1
- package/context-menu/trigger/ContextMenuTrigger.d.ts +3 -3
- package/dialog/backdrop/DialogBackdrop.d.ts +4 -1
- package/dialog/close/DialogClose.d.ts +1 -1
- package/dialog/description/DialogDescription.d.ts +1 -1
- package/dialog/popup/DialogPopup.d.ts +6 -3
- package/dialog/portal/DialogPortal.d.ts +4 -5
- package/dialog/root/DialogRoot.d.ts +8 -3
- package/dialog/root/useDialogRoot.d.ts +3 -7
- package/dialog/root/useDialogRoot.js +2 -5
- package/dialog/title/DialogTitle.d.ts +1 -1
- package/dialog/trigger/DialogTrigger.d.ts +1 -1
- package/dialog/viewport/DialogViewport.d.ts +3 -0
- package/direction-provider/DirectionProvider.d.ts +2 -0
- package/drawer/backdrop/DrawerBackdrop.d.ts +4 -1
- package/drawer/backdrop/DrawerBackdropDataAttributes.d.ts +18 -0
- package/drawer/backdrop/DrawerBackdropDataAttributes.js +26 -0
- package/drawer/close/DrawerClose.d.ts +1 -1
- package/drawer/content/DrawerContent.d.ts +1 -1
- package/drawer/content/DrawerContent.js +2 -1
- package/drawer/content/DrawerContentDataAttributes.d.ts +1 -0
- package/drawer/content/DrawerContentDataAttributes.js +7 -0
- package/drawer/description/DrawerDescription.d.ts +1 -1
- package/drawer/indent/DrawerIndent.d.ts +3 -2
- package/drawer/indent/DrawerIndent.js +2 -1
- package/drawer/indent-background/DrawerIndentBackground.d.ts +5 -3
- package/drawer/indent-background/DrawerIndentBackground.js +4 -2
- package/drawer/index.d.ts +2 -1
- package/drawer/index.js +3 -3
- package/drawer/index.parts.d.ts +1 -0
- package/drawer/index.parts.js +7 -0
- package/drawer/popup/DrawerPopup.d.ts +6 -3
- package/drawer/popup/DrawerPopup.js +59 -2
- package/drawer/popup/DrawerPopupDataAttributes.d.ts +16 -0
- package/drawer/popup/DrawerPopupDataAttributes.js +18 -1
- package/drawer/portal/DrawerPortal.d.ts +2 -2
- package/drawer/provider/DrawerProvider.d.ts +2 -2
- package/drawer/provider/DrawerProvider.js +2 -2
- package/drawer/root/DrawerRoot.d.ts +5 -3
- package/drawer/root/DrawerRoot.js +6 -2
- package/drawer/swipe-area/DrawerSwipeArea.d.ts +1 -1
- package/drawer/swipe-area/DrawerSwipeArea.js +12 -10
- package/drawer/swipe-area/DrawerSwipeAreaDataAttributes.d.ts +23 -0
- package/drawer/swipe-area/DrawerSwipeAreaDataAttributes.js +31 -0
- package/drawer/title/DrawerTitle.d.ts +1 -1
- package/drawer/trigger/DrawerTrigger.d.ts +1 -1
- package/drawer/viewport/DrawerViewport.d.ts +4 -1
- package/drawer/viewport/DrawerViewport.js +165 -43
- package/drawer/viewport/DrawerViewportDataAttributes.d.ts +22 -0
- package/drawer/viewport/DrawerViewportDataAttributes.js +30 -0
- package/esm/accordion/header/AccordionHeader.d.ts +4 -2
- package/esm/accordion/item/AccordionItem.d.ts +10 -4
- package/esm/accordion/item/AccordionItemContext.d.ts +2 -2
- package/esm/accordion/item/stateAttributesMapping.d.ts +2 -2
- package/esm/accordion/panel/AccordionPanel.d.ts +6 -3
- package/esm/accordion/root/AccordionRoot.d.ts +19 -10
- package/esm/accordion/root/AccordionRootContext.d.ts +7 -7
- package/esm/accordion/trigger/AccordionTrigger.d.ts +4 -2
- package/esm/accordion/trigger/AccordionTrigger.js +3 -1
- package/esm/alert-dialog/root/AlertDialogRoot.d.ts +2 -0
- package/esm/autocomplete/index.d.ts +1 -0
- package/esm/autocomplete/index.parts.d.ts +1 -0
- package/esm/autocomplete/index.parts.js +1 -0
- package/esm/autocomplete/root/AutocompleteRoot.d.ts +4 -4
- package/esm/autocomplete/root/AutocompleteRoot.js +4 -1
- package/esm/avatar/fallback/AvatarFallback.d.ts +3 -6
- package/esm/avatar/fallback/AvatarFallback.js +4 -31
- package/esm/avatar/image/AvatarImage.d.ts +6 -3
- package/esm/avatar/image/AvatarImage.js +2 -3
- package/esm/avatar/image/AvatarImageDataAttributes.d.ts +10 -0
- package/esm/avatar/image/AvatarImageDataAttributes.js +12 -0
- package/esm/avatar/root/AvatarRoot.d.ts +4 -1
- package/esm/checkbox/indicator/CheckboxIndicator.d.ts +6 -3
- package/esm/checkbox/root/CheckboxRoot.d.ts +3 -3
- package/esm/checkbox/root/CheckboxRoot.js +4 -1
- package/esm/checkbox/root/CheckboxRootContext.d.ts +4 -4
- package/esm/checkbox/utils/useStateAttributesMapping.d.ts +2 -2
- package/esm/checkbox-group/CheckboxGroup.d.ts +3 -3
- package/esm/checkbox-group/CheckboxGroupContext.d.ts +2 -2
- package/esm/checkbox-group/useCheckboxGroupParent.d.ts +2 -5
- package/esm/collapsible/panel/CollapsiblePanel.d.ts +6 -3
- package/esm/collapsible/panel/useCollapsiblePanel.d.ts +2 -5
- package/esm/collapsible/root/CollapsibleRoot.d.ts +3 -3
- package/esm/collapsible/root/CollapsibleRootContext.d.ts +4 -4
- package/esm/collapsible/root/stateAttributesMapping.d.ts +2 -2
- package/esm/collapsible/root/useCollapsibleRoot.d.ts +2 -5
- package/esm/collapsible/trigger/CollapsibleTrigger.d.ts +4 -2
- package/esm/combobox/arrow/ComboboxArrow.d.ts +10 -1
- package/esm/combobox/backdrop/ComboboxBackdrop.d.ts +4 -1
- package/esm/combobox/chip/ComboboxChip.d.ts +1 -1
- package/esm/combobox/chip-remove/ComboboxChipRemove.d.ts +1 -1
- package/esm/combobox/chips/ComboboxChips.d.ts +1 -1
- package/esm/combobox/clear/ComboboxClear.d.ts +4 -1
- package/esm/combobox/collection/ComboboxCollection.d.ts +2 -0
- package/esm/combobox/empty/ComboboxEmpty.d.ts +1 -1
- package/esm/combobox/group/ComboboxGroup.d.ts +1 -1
- package/esm/combobox/group-label/ComboboxGroupLabel.d.ts +1 -1
- package/esm/combobox/icon/ComboboxIcon.d.ts +1 -1
- package/esm/combobox/index.d.ts +2 -0
- package/esm/combobox/index.parts.d.ts +2 -0
- package/esm/combobox/index.parts.js +2 -0
- package/esm/combobox/input/ComboboxInput.d.ts +3 -3
- package/esm/combobox/input/ComboboxInput.js +22 -5
- package/esm/combobox/input-group/ComboboxInputGroup.d.ts +40 -0
- package/esm/combobox/input-group/ComboboxInputGroup.js +63 -0
- package/esm/combobox/input-group/ComboboxInputGroupDataAttributes.d.ts +55 -0
- package/esm/combobox/input-group/ComboboxInputGroupDataAttributes.js +56 -0
- package/esm/combobox/item/ComboboxItem.d.ts +1 -1
- package/esm/combobox/item/ComboboxItem.js +2 -1
- package/esm/combobox/item-indicator/ComboboxItemIndicator.d.ts +7 -1
- package/esm/combobox/item-indicator/ComboboxItemIndicatorDataAttributes.d.ts +10 -0
- package/esm/combobox/item-indicator/ComboboxItemIndicatorDataAttributes.js +12 -0
- package/esm/combobox/label/ComboboxLabel.d.ts +16 -0
- package/esm/combobox/label/ComboboxLabel.js +63 -0
- package/esm/combobox/list/ComboboxList.d.ts +1 -1
- package/esm/combobox/popup/ComboboxPopup.d.ts +21 -3
- package/esm/combobox/popup/ComboboxPopup.js +11 -3
- package/esm/combobox/portal/ComboboxPortal.d.ts +3 -4
- package/esm/combobox/positioner/ComboboxPositioner.d.ts +14 -2
- package/esm/combobox/positioner/ComboboxPositioner.js +3 -2
- package/esm/combobox/root/AriaCombobox.d.ts +9 -8
- package/esm/combobox/root/AriaCombobox.js +14 -6
- package/esm/combobox/root/ComboboxRoot.d.ts +4 -4
- package/esm/combobox/row/ComboboxRow.d.ts +1 -1
- package/esm/combobox/status/ComboboxStatus.d.ts +1 -1
- package/esm/combobox/store.d.ts +10 -4
- package/esm/combobox/store.js +2 -0
- package/esm/combobox/trigger/ComboboxTrigger.d.ts +3 -3
- package/esm/combobox/trigger/ComboboxTrigger.js +5 -2
- package/esm/combobox/utils/ComboboxInternalDismissButton.d.ts +5 -0
- package/esm/combobox/utils/ComboboxInternalDismissButton.js +38 -0
- package/esm/composite/item/CompositeItem.d.ts +3 -1
- package/esm/composite/list/CompositeList.d.ts +3 -1
- package/esm/composite/list/useCompositeListItem.d.ts +1 -1
- package/esm/composite/root/CompositeRoot.d.ts +4 -2
- package/esm/composite/root/useCompositeRoot.d.ts +1 -1
- package/esm/context-menu/trigger/ContextMenuTrigger.d.ts +3 -3
- package/esm/dialog/backdrop/DialogBackdrop.d.ts +4 -1
- package/esm/dialog/close/DialogClose.d.ts +1 -1
- package/esm/dialog/description/DialogDescription.d.ts +1 -1
- package/esm/dialog/popup/DialogPopup.d.ts +6 -3
- package/esm/dialog/portal/DialogPortal.d.ts +4 -5
- package/esm/dialog/root/DialogRoot.d.ts +8 -3
- package/esm/dialog/root/useDialogRoot.d.ts +3 -7
- package/esm/dialog/root/useDialogRoot.js +2 -5
- package/esm/dialog/title/DialogTitle.d.ts +1 -1
- package/esm/dialog/trigger/DialogTrigger.d.ts +1 -1
- package/esm/dialog/viewport/DialogViewport.d.ts +3 -0
- package/esm/direction-provider/DirectionProvider.d.ts +2 -0
- package/esm/drawer/backdrop/DrawerBackdrop.d.ts +4 -1
- package/esm/drawer/backdrop/DrawerBackdropDataAttributes.d.ts +18 -0
- package/esm/drawer/backdrop/DrawerBackdropDataAttributes.js +20 -0
- package/esm/drawer/close/DrawerClose.d.ts +1 -1
- package/esm/drawer/content/DrawerContent.d.ts +1 -1
- package/esm/drawer/content/DrawerContent.js +2 -1
- package/esm/drawer/content/DrawerContentDataAttributes.d.ts +1 -0
- package/esm/drawer/content/DrawerContentDataAttributes.js +1 -0
- package/esm/drawer/description/DrawerDescription.d.ts +1 -1
- package/esm/drawer/indent/DrawerIndent.d.ts +3 -2
- package/esm/drawer/indent/DrawerIndent.js +2 -1
- package/esm/drawer/indent-background/DrawerIndentBackground.d.ts +5 -3
- package/esm/drawer/indent-background/DrawerIndentBackground.js +4 -2
- package/esm/drawer/index.d.ts +2 -1
- package/esm/drawer/index.js +1 -1
- package/esm/drawer/index.parts.d.ts +1 -0
- package/esm/drawer/index.parts.js +1 -0
- package/esm/drawer/popup/DrawerPopup.d.ts +6 -3
- package/esm/drawer/popup/DrawerPopup.js +59 -2
- package/esm/drawer/popup/DrawerPopupDataAttributes.d.ts +16 -0
- package/esm/drawer/popup/DrawerPopupDataAttributes.js +18 -1
- package/esm/drawer/portal/DrawerPortal.d.ts +2 -2
- package/esm/drawer/provider/DrawerProvider.d.ts +2 -2
- package/esm/drawer/provider/DrawerProvider.js +2 -2
- package/esm/drawer/root/DrawerRoot.d.ts +5 -3
- package/esm/drawer/root/DrawerRoot.js +6 -2
- package/esm/drawer/swipe-area/DrawerSwipeArea.d.ts +1 -1
- package/esm/drawer/swipe-area/DrawerSwipeArea.js +12 -10
- package/esm/drawer/swipe-area/DrawerSwipeAreaDataAttributes.d.ts +23 -0
- package/esm/drawer/swipe-area/DrawerSwipeAreaDataAttributes.js +25 -0
- package/esm/drawer/title/DrawerTitle.d.ts +1 -1
- package/esm/drawer/trigger/DrawerTrigger.d.ts +1 -1
- package/esm/drawer/viewport/DrawerViewport.d.ts +4 -1
- package/esm/drawer/viewport/DrawerViewport.js +165 -43
- package/esm/drawer/viewport/DrawerViewportDataAttributes.d.ts +22 -0
- package/esm/drawer/viewport/DrawerViewportDataAttributes.js +24 -0
- package/esm/field/control/FieldControl.d.ts +3 -3
- package/esm/field/description/FieldDescription.d.ts +3 -3
- package/esm/field/error/FieldError.d.ts +7 -4
- package/esm/field/error/FieldErrorDataAttributes.d.ts +8 -0
- package/esm/field/error/FieldErrorDataAttributes.js +10 -1
- package/esm/field/item/FieldItem.d.ts +4 -3
- package/esm/field/item/FieldItem.js +2 -2
- package/esm/field/label/FieldLabel.d.ts +3 -3
- package/esm/field/label/FieldLabel.js +6 -51
- package/esm/field/root/FieldRoot.d.ts +19 -2
- package/esm/field/root/FieldRoot.js +2 -1
- package/esm/field/root/FieldRootContext.d.ts +2 -2
- package/esm/field/root/FieldRootContext.js +6 -13
- package/esm/field/root/useFieldValidation.js +5 -4
- package/esm/field/utils/constants.d.ts +3 -0
- package/esm/field/utils/constants.js +11 -0
- package/esm/field/validity/FieldValidity.d.ts +7 -1
- package/esm/fieldset/legend/FieldsetLegend.d.ts +1 -1
- package/esm/fieldset/root/FieldsetRoot.d.ts +1 -1
- package/esm/floating-ui-react/components/FloatingDelayGroup.js +1 -1
- package/esm/floating-ui-react/components/FloatingFocusManager.d.ts +12 -7
- package/esm/floating-ui-react/components/FloatingFocusManager.js +31 -27
- package/esm/floating-ui-react/components/FloatingPortal.d.ts +6 -4
- package/esm/floating-ui-react/hooks/useClick.d.ts +2 -2
- package/esm/floating-ui-react/hooks/useClientPoint.d.ts +1 -1
- package/esm/floating-ui-react/hooks/useDismiss.d.ts +8 -12
- package/esm/floating-ui-react/hooks/useDismiss.js +320 -261
- package/esm/floating-ui-react/hooks/useFloatingRootContext.d.ts +2 -2
- package/esm/floating-ui-react/hooks/useFocus.d.ts +1 -1
- package/esm/floating-ui-react/hooks/useHover.d.ts +6 -14
- package/esm/floating-ui-react/hooks/useHover.js +2 -27
- package/esm/floating-ui-react/hooks/useHoverFloatingInteraction.d.ts +2 -3
- package/esm/floating-ui-react/hooks/useHoverFloatingInteraction.js +55 -71
- package/esm/floating-ui-react/hooks/useHoverInteractionSharedState.d.ts +12 -3
- package/esm/floating-ui-react/hooks/useHoverInteractionSharedState.js +30 -3
- package/esm/floating-ui-react/hooks/useHoverReferenceInteraction.d.ts +8 -3
- package/esm/floating-ui-react/hooks/useHoverReferenceInteraction.js +59 -81
- package/esm/floating-ui-react/hooks/useHoverShared.d.ts +28 -0
- package/esm/floating-ui-react/hooks/useHoverShared.js +26 -0
- package/esm/floating-ui-react/hooks/useListNavigation.d.ts +4 -4
- package/esm/floating-ui-react/hooks/useListNavigation.js +7 -3
- package/esm/floating-ui-react/hooks/useRole.d.ts +1 -1
- package/esm/floating-ui-react/hooks/useTypeahead.d.ts +7 -1
- package/esm/floating-ui-react/hooks/useTypeahead.js +30 -14
- package/esm/floating-ui-react/safePolygon.d.ts +2 -6
- package/esm/floating-ui-react/safePolygon.js +149 -119
- package/esm/floating-ui-react/types.d.ts +5 -4
- package/esm/floating-ui-react/utils/composite.d.ts +1 -0
- package/esm/floating-ui-react/utils/composite.js +128 -129
- package/esm/floating-ui-react/utils/markOthers.d.ts +7 -1
- package/esm/floating-ui-react/utils/markOthers.js +119 -81
- package/esm/form/Form.d.ts +1 -1
- package/esm/global.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/input/Input.d.ts +10 -3
- package/esm/labelable-provider/LabelableProvider.d.ts +4 -1
- package/esm/labelable-provider/LabelableProvider.js +3 -2
- package/esm/labelable-provider/useAriaLabelledBy.d.ts +9 -0
- package/esm/labelable-provider/useAriaLabelledBy.js +56 -0
- package/esm/labelable-provider/useLabel.d.ts +25 -0
- package/esm/labelable-provider/useLabel.js +74 -0
- package/esm/labelable-provider/useLabelableId.d.ts +2 -5
- package/esm/menu/arrow/MenuArrow.d.ts +10 -1
- package/esm/menu/backdrop/MenuBackdrop.d.ts +4 -1
- package/esm/menu/checkbox-item/MenuCheckboxItem.d.ts +3 -3
- package/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.d.ts +7 -1
- package/esm/menu/group/MenuGroup.d.ts +1 -1
- package/esm/menu/group-label/MenuGroupLabel.d.ts +1 -1
- package/esm/menu/index.d.ts +2 -1
- package/esm/menu/index.parts.d.ts +1 -0
- package/esm/menu/index.parts.js +1 -0
- package/esm/menu/item/MenuItem.d.ts +1 -1
- package/esm/menu/item/useMenuItem.d.ts +8 -7
- package/esm/menu/item/useMenuItem.js +5 -7
- package/esm/menu/item/useMenuItemCommonProps.d.ts +7 -4
- package/esm/menu/item/useMenuItemCommonProps.js +16 -2
- package/esm/menu/link-item/MenuLinkItem.d.ts +1 -1
- package/esm/menu/link-item/MenuLinkItem.js +16 -2
- package/esm/menu/popup/MenuPopup.d.ts +20 -5
- package/esm/menu/popup/MenuPopup.js +4 -1
- package/esm/menu/popup/MenuPopupDataAttributes.d.ts +1 -1
- package/esm/menu/popup/MenuPopupDataAttributes.js +1 -1
- package/esm/menu/portal/MenuPortal.d.ts +3 -4
- package/esm/menu/positioner/MenuPositioner.d.ts +18 -2
- package/esm/menu/positioner/MenuPositioner.js +58 -5
- package/esm/menu/radio-group/MenuRadioGroup.d.ts +6 -3
- package/esm/menu/radio-item/MenuRadioItem.d.ts +3 -3
- package/esm/menu/radio-item-indicator/MenuRadioItemIndicator.d.ts +7 -1
- package/esm/menu/root/MenuRoot.d.ts +4 -2
- package/esm/menu/root/MenuRoot.js +2 -3
- package/esm/menu/store/MenuStore.d.ts +4 -2
- package/esm/menu/store/MenuStore.js +15 -1
- package/esm/menu/submenu-trigger/MenuSubmenuTrigger.js +1 -0
- package/esm/menu/trigger/MenuTrigger.d.ts +3 -3
- package/esm/menu/viewport/MenuViewport.d.ts +30 -0
- package/esm/menu/viewport/MenuViewport.js +60 -0
- package/esm/menu/viewport/MenuViewportCssVars.d.ts +14 -0
- package/esm/menu/viewport/MenuViewportCssVars.js +15 -0
- package/esm/menu/viewport/MenuViewportDataAttributes.d.ts +26 -0
- package/esm/menu/viewport/MenuViewportDataAttributes.js +27 -0
- package/esm/menubar/Menubar.d.ts +1 -1
- package/esm/menubar/Menubar.js +1 -7
- package/esm/meter/indicator/MeterIndicator.d.ts +4 -2
- package/esm/meter/label/MeterLabel.d.ts +4 -2
- package/esm/meter/label/MeterLabel.js +4 -8
- package/esm/meter/root/MeterRoot.d.ts +1 -1
- package/esm/meter/root/MeterRoot.js +11 -2
- package/esm/meter/track/MeterTrack.d.ts +4 -2
- package/esm/meter/value/MeterValue.d.ts +5 -3
- package/esm/navigation-menu/arrow/NavigationMenuArrow.d.ts +10 -1
- package/esm/navigation-menu/backdrop/NavigationMenuBackdrop.d.ts +1 -1
- package/esm/navigation-menu/content/NavigationMenuContent.d.ts +1 -1
- package/esm/navigation-menu/content/NavigationMenuContent.js +11 -0
- package/esm/navigation-menu/icon/NavigationMenuIcon.d.ts +1 -1
- package/esm/navigation-menu/item/NavigationMenuItem.d.ts +1 -1
- package/esm/navigation-menu/link/NavigationMenuLink.d.ts +1 -1
- package/esm/navigation-menu/list/NavigationMenuList.d.ts +1 -1
- package/esm/navigation-menu/list/NavigationMenuList.js +11 -2
- package/esm/navigation-menu/popup/NavigationMenuPopup.d.ts +1 -1
- package/esm/navigation-menu/portal/NavigationMenuPortal.d.ts +4 -5
- package/esm/navigation-menu/positioner/NavigationMenuPositioner.d.ts +11 -2
- package/esm/navigation-menu/root/NavigationMenuRoot.d.ts +4 -4
- package/esm/navigation-menu/root/NavigationMenuRoot.js +27 -8
- package/esm/navigation-menu/trigger/NavigationMenuTrigger.d.ts +1 -1
- package/esm/navigation-menu/trigger/NavigationMenuTrigger.js +364 -20
- package/esm/navigation-menu/utils/isOutsideMenuEvent.d.ts +1 -1
- package/esm/navigation-menu/viewport/NavigationMenuViewport.d.ts +1 -1
- package/esm/navigation-menu/viewport/NavigationMenuViewport.js +0 -19
- package/esm/number-field/decrement/NumberFieldDecrement.d.ts +3 -3
- package/esm/number-field/group/NumberFieldGroup.d.ts +3 -3
- package/esm/number-field/increment/NumberFieldIncrement.d.ts +3 -3
- package/esm/number-field/input/NumberFieldInput.d.ts +3 -3
- package/esm/number-field/root/NumberFieldRoot.d.ts +4 -4
- package/esm/number-field/root/NumberFieldRoot.js +1 -1
- package/esm/number-field/root/NumberFieldRootContext.d.ts +2 -2
- package/esm/number-field/root/useNumberFieldButton.d.ts +2 -5
- package/esm/number-field/scrub-area/NumberFieldScrubArea.d.ts +4 -4
- package/esm/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.d.ts +3 -3
- package/esm/number-field/utils/stateAttributesMapping.d.ts +2 -2
- package/esm/number-field/utils/types.d.ts +2 -2
- package/esm/popover/arrow/PopoverArrow.d.ts +10 -1
- package/esm/popover/backdrop/PopoverBackdrop.d.ts +4 -1
- package/esm/popover/close/PopoverClose.d.ts +1 -1
- package/esm/popover/close/PopoverClose.js +5 -3
- package/esm/popover/description/PopoverDescription.d.ts +1 -1
- package/esm/popover/popup/PopoverPopup.d.ts +15 -3
- package/esm/popover/popup/PopoverPopup.js +11 -2
- package/esm/popover/portal/PopoverPortal.d.ts +3 -4
- package/esm/popover/positioner/PopoverPositioner.d.ts +11 -2
- package/esm/popover/root/PopoverRoot.d.ts +10 -3
- package/esm/popover/root/PopoverRoot.js +1 -3
- package/esm/popover/title/PopoverTitle.d.ts +1 -1
- package/esm/popover/viewport/PopoverViewport.d.ts +16 -12
- package/esm/preview-card/arrow/PreviewCardArrow.d.ts +10 -1
- package/esm/preview-card/backdrop/PreviewCardBackdrop.d.ts +4 -1
- package/esm/preview-card/popup/PreviewCardPopup.d.ts +13 -1
- package/esm/preview-card/portal/PreviewCardPortal.d.ts +3 -4
- package/esm/preview-card/positioner/PreviewCardPositioner.d.ts +14 -2
- package/esm/preview-card/positioner/PreviewCardPositioner.js +7 -1
- package/esm/preview-card/root/PreviewCardRoot.d.ts +3 -3
- package/esm/preview-card/root/PreviewCardRoot.js +22 -9
- package/esm/preview-card/trigger/PreviewCardTrigger.d.ts +1 -1
- package/esm/preview-card/viewport/PreviewCardViewport.d.ts +16 -9
- package/esm/progress/indicator/ProgressIndicator.d.ts +4 -2
- package/esm/progress/label/ProgressLabel.d.ts +4 -2
- package/esm/progress/label/ProgressLabel.js +4 -8
- package/esm/progress/root/ProgressRoot.d.ts +4 -1
- package/esm/progress/root/ProgressRoot.js +11 -2
- package/esm/progress/root/ProgressRootContext.d.ts +2 -2
- package/esm/progress/root/stateAttributesMapping.d.ts +2 -2
- package/esm/progress/track/ProgressTrack.d.ts +4 -2
- package/esm/progress/value/ProgressValue.d.ts +5 -3
- package/esm/radio/indicator/RadioIndicator.d.ts +4 -1
- package/esm/radio/indicator/RadioIndicatorDataAttributes.d.ts +8 -0
- package/esm/radio/indicator/RadioIndicatorDataAttributes.js +10 -1
- package/esm/radio/root/RadioRoot.d.ts +3 -3
- package/esm/radio/root/RadioRoot.js +4 -1
- package/esm/radio-group/RadioGroup.d.ts +3 -3
- package/esm/scroll-area/content/ScrollAreaContent.d.ts +3 -3
- package/esm/scroll-area/corner/ScrollAreaCorner.d.ts +1 -1
- package/esm/scroll-area/root/ScrollAreaRoot.d.ts +27 -11
- package/esm/scroll-area/root/ScrollAreaRoot.js +7 -4
- package/esm/scroll-area/root/ScrollAreaRootContext.d.ts +4 -2
- package/esm/scroll-area/root/stateAttributes.d.ts +2 -2
- package/esm/scroll-area/scrollbar/ScrollAreaScrollbar.d.ts +13 -7
- package/esm/scroll-area/scrollbar/ScrollAreaScrollbar.js +4 -1
- package/esm/scroll-area/thumb/ScrollAreaThumb.d.ts +5 -2
- package/esm/scroll-area/thumb/ScrollAreaThumb.js +3 -1
- package/esm/scroll-area/viewport/ScrollAreaViewport.d.ts +3 -3
- package/esm/scroll-area/viewport/ScrollAreaViewport.js +46 -27
- package/esm/select/arrow/SelectArrow.d.ts +10 -1
- package/esm/select/backdrop/SelectBackdrop.d.ts +7 -1
- package/esm/select/group/SelectGroup.d.ts +1 -1
- package/esm/select/group-label/SelectGroupLabel.d.ts +1 -1
- package/esm/select/icon/SelectIcon.d.ts +1 -1
- package/esm/select/index.d.ts +1 -0
- package/esm/select/index.parts.d.ts +1 -0
- package/esm/select/index.parts.js +1 -0
- package/esm/select/item/SelectItem.d.ts +1 -1
- package/esm/select/item/SelectItem.js +10 -4
- package/esm/select/item-indicator/SelectItemIndicator.d.ts +10 -2
- package/esm/select/item-indicator/SelectItemIndicatorDataAttributes.d.ts +10 -0
- package/esm/select/item-indicator/SelectItemIndicatorDataAttributes.js +12 -0
- package/esm/select/item-text/SelectItemText.d.ts +1 -1
- package/esm/select/label/SelectLabel.d.ts +16 -0
- package/esm/select/label/SelectLabel.js +49 -0
- package/esm/select/list/SelectList.d.ts +1 -1
- package/esm/select/popup/SelectPopup.d.ts +14 -2
- package/esm/select/popup/SelectPopup.js +23 -9
- package/esm/select/portal/SelectPortal.d.ts +3 -4
- package/esm/select/positioner/SelectPositioner.d.ts +14 -2
- package/esm/select/positioner/SelectPositionerContext.d.ts +2 -2
- package/esm/select/root/SelectRoot.d.ts +5 -4
- package/esm/select/root/SelectRoot.js +5 -6
- package/esm/select/scroll-arrow/SelectScrollArrow.d.ts +13 -1
- package/esm/select/scroll-down-arrow/SelectScrollDownArrow.d.ts +1 -1
- package/esm/select/scroll-up-arrow/SelectScrollUpArrow.d.ts +1 -1
- package/esm/select/store.d.ts +5 -2
- package/esm/select/store.js +1 -0
- package/esm/select/trigger/SelectTrigger.d.ts +6 -4
- package/esm/select/trigger/SelectTrigger.js +5 -2
- package/esm/select/value/SelectValue.d.ts +1 -1
- package/esm/separator/Separator.d.ts +1 -1
- package/esm/slider/control/SliderControl.d.ts +4 -3
- package/esm/slider/control/SliderControl.js +0 -2
- package/esm/slider/index.d.ts +1 -0
- package/esm/slider/index.parts.d.ts +1 -0
- package/esm/slider/index.parts.js +1 -0
- package/esm/slider/indicator/SliderIndicator.d.ts +4 -2
- package/esm/slider/label/SliderLabel.d.ts +16 -0
- package/esm/slider/label/SliderLabel.js +58 -0
- package/esm/slider/root/SliderRoot.d.ts +11 -5
- package/esm/slider/root/SliderRoot.js +8 -3
- package/esm/slider/root/SliderRootContext.d.ts +4 -2
- package/esm/slider/root/stateAttributesMapping.d.ts +2 -2
- package/esm/slider/thumb/SliderThumb.d.ts +5 -5
- package/esm/slider/thumb/SliderThumb.js +3 -2
- package/esm/slider/track/SliderTrack.d.ts +4 -2
- package/esm/slider/utils/resolveThumbCollision.d.ts +2 -2
- package/esm/slider/value/SliderValue.d.ts +5 -3
- package/esm/switch/root/SwitchRoot.d.ts +3 -3
- package/esm/switch/root/SwitchRoot.js +4 -1
- package/esm/switch/root/SwitchRootContext.d.ts +4 -4
- package/esm/switch/stateAttributesMapping.d.ts +2 -2
- package/esm/switch/thumb/SwitchThumb.d.ts +3 -3
- package/esm/tabs/indicator/TabsIndicator.d.ts +12 -3
- package/esm/tabs/indicator/TabsIndicator.js +5 -14
- package/esm/tabs/indicator/TabsIndicatorCssVars.d.ts +1 -1
- package/esm/tabs/indicator/TabsIndicatorCssVars.js +1 -1
- package/esm/tabs/list/TabsList.d.ts +3 -3
- package/esm/tabs/list/TabsList.js +48 -3
- package/esm/tabs/list/TabsListContext.d.ts +2 -0
- package/esm/tabs/panel/TabsPanel.d.ts +9 -3
- package/esm/tabs/panel/TabsPanelDataAttributes.d.ts +8 -0
- package/esm/tabs/panel/TabsPanelDataAttributes.js +10 -1
- package/esm/tabs/root/TabsRoot.d.ts +7 -1
- package/esm/tabs/root/TabsRootContext.d.ts +1 -1
- package/esm/tabs/root/stateAttributesMapping.d.ts +2 -2
- package/esm/tabs/tab/TabsTab.d.ts +7 -1
- package/esm/tabs/tab/TabsTab.js +10 -1
- package/esm/toast/action/ToastAction.d.ts +1 -1
- package/esm/toast/arrow/ToastArrow.d.ts +10 -1
- package/esm/toast/close/ToastClose.d.ts +1 -1
- package/esm/toast/content/ToastContent.d.ts +1 -1
- package/esm/toast/createToastManager.d.ts +1 -1
- package/esm/toast/description/ToastDescription.d.ts +1 -1
- package/esm/toast/portal/ToastPortal.d.ts +3 -4
- package/esm/toast/positioner/ToastPositioner.d.ts +12 -3
- package/esm/toast/provider/ToastProvider.d.ts +2 -0
- package/esm/toast/provider/ToastProvider.js +1 -1
- package/esm/toast/root/ToastRoot.d.ts +20 -7
- package/esm/toast/root/ToastRoot.js +3 -1
- package/esm/toast/store.d.ts +1 -1
- package/esm/toast/store.js +37 -8
- package/esm/toast/title/ToastTitle.d.ts +1 -1
- package/esm/toast/useToastManager.d.ts +3 -3
- package/esm/toast/viewport/ToastViewport.d.ts +1 -1
- package/esm/toggle/Toggle.d.ts +1 -1
- package/esm/toggle-group/ToggleGroup.d.ts +1 -1
- package/esm/toolbar/button/ToolbarButton.d.ts +9 -3
- package/esm/toolbar/group/ToolbarGroup.d.ts +4 -2
- package/esm/toolbar/input/ToolbarInput.d.ts +9 -3
- package/esm/toolbar/link/ToolbarLink.d.ts +4 -1
- package/esm/toolbar/root/ToolbarRoot.d.ts +7 -1
- package/esm/toolbar/separator/ToolbarSeparator.d.ts +4 -2
- package/esm/tooltip/arrow/TooltipArrow.d.ts +13 -1
- package/esm/tooltip/popup/TooltipPopup.d.ts +13 -1
- package/esm/tooltip/portal/TooltipPortal.d.ts +3 -4
- package/esm/tooltip/positioner/TooltipPositioner.d.ts +11 -2
- package/esm/tooltip/provider/TooltipProvider.d.ts +2 -0
- package/esm/tooltip/root/TooltipRoot.d.ts +3 -3
- package/esm/tooltip/root/TooltipRoot.js +1 -1
- package/esm/tooltip/store/TooltipStore.d.ts +2 -0
- package/esm/tooltip/store/TooltipStore.js +2 -0
- package/esm/tooltip/trigger/TooltipTrigger.d.ts +6 -1
- package/esm/tooltip/trigger/TooltipTrigger.js +5 -0
- package/esm/tooltip/viewport/TooltipViewport.d.ts +16 -12
- package/esm/types/index.d.ts +16 -1
- package/esm/unstable-use-media-query/index.d.ts +2 -0
- package/esm/use-button/useButton.d.ts +8 -5
- package/esm/use-button/useButton.js +49 -20
- package/esm/use-render/useRender.d.ts +7 -5
- package/esm/utils/FloatingPortalLite.d.ts +4 -2
- package/esm/utils/InternalBackdrop.d.ts +3 -1
- package/esm/utils/closePart.d.ts +16 -0
- package/esm/utils/closePart.js +40 -0
- package/esm/utils/constants.d.ts +4 -0
- package/esm/utils/constants.js +4 -0
- package/esm/utils/createBaseUIEventDetails.d.ts +1 -1
- package/esm/utils/getElementAtPoint.d.ts +1 -0
- package/esm/utils/getElementAtPoint.js +3 -0
- package/esm/utils/resolveAriaLabelledBy.d.ts +2 -0
- package/esm/utils/resolveAriaLabelledBy.js +8 -0
- package/esm/utils/resolveValueLabel.d.ts +4 -4
- package/esm/utils/resolveValueLabel.js +7 -5
- package/esm/utils/types.d.ts +7 -20
- package/esm/utils/useAnchorPositioning.d.ts +53 -18
- package/esm/utils/useAnchorPositioning.js +15 -6
- package/esm/utils/useFocusableWhenDisabled.d.ts +2 -5
- package/esm/utils/useMixedToggleClickHandler.d.ts +2 -4
- package/esm/utils/useOpenChangeComplete.d.ts +2 -4
- package/esm/utils/useOpenInteractionType.d.ts +0 -1
- package/esm/utils/useOpenInteractionType.js +7 -5
- package/esm/utils/usePopupAutoResize.js +1 -2
- package/esm/utils/usePopupViewport.js +11 -8
- package/esm/utils/useRegisteredLabelId.d.ts +1 -0
- package/esm/utils/useRegisteredLabelId.js +14 -0
- package/esm/utils/useRenderElement.d.ts +6 -9
- package/esm/utils/useRenderElement.js +15 -0
- package/esm/utils/useSwipeDismiss.d.ts +91 -92
- package/esm/utils/useSwipeDismiss.js +2 -1
- package/field/control/FieldControl.d.ts +3 -3
- package/field/description/FieldDescription.d.ts +3 -3
- package/field/error/FieldError.d.ts +7 -4
- package/field/error/FieldErrorDataAttributes.d.ts +8 -0
- package/field/error/FieldErrorDataAttributes.js +10 -1
- package/field/item/FieldItem.d.ts +4 -3
- package/field/item/FieldItem.js +2 -2
- package/field/label/FieldLabel.d.ts +3 -3
- package/field/label/FieldLabel.js +6 -51
- package/field/root/FieldRoot.d.ts +19 -2
- package/field/root/FieldRoot.js +2 -1
- package/field/root/FieldRootContext.d.ts +2 -2
- package/field/root/FieldRootContext.js +5 -12
- package/field/root/useFieldValidation.js +5 -4
- package/field/utils/constants.d.ts +3 -0
- package/field/utils/constants.js +12 -1
- package/field/validity/FieldValidity.d.ts +7 -1
- package/fieldset/legend/FieldsetLegend.d.ts +1 -1
- package/fieldset/root/FieldsetRoot.d.ts +1 -1
- package/floating-ui-react/components/FloatingDelayGroup.js +2 -2
- package/floating-ui-react/components/FloatingFocusManager.d.ts +12 -7
- package/floating-ui-react/components/FloatingFocusManager.js +29 -25
- package/floating-ui-react/components/FloatingPortal.d.ts +6 -4
- package/floating-ui-react/hooks/useClick.d.ts +2 -2
- package/floating-ui-react/hooks/useClientPoint.d.ts +1 -1
- package/floating-ui-react/hooks/useDismiss.d.ts +8 -12
- package/floating-ui-react/hooks/useDismiss.js +319 -260
- package/floating-ui-react/hooks/useFloatingRootContext.d.ts +2 -2
- package/floating-ui-react/hooks/useFocus.d.ts +1 -1
- package/floating-ui-react/hooks/useHover.d.ts +6 -14
- package/floating-ui-react/hooks/useHover.js +6 -32
- package/floating-ui-react/hooks/useHoverFloatingInteraction.d.ts +2 -3
- package/floating-ui-react/hooks/useHoverFloatingInteraction.js +53 -70
- package/floating-ui-react/hooks/useHoverInteractionSharedState.d.ts +12 -3
- package/floating-ui-react/hooks/useHoverInteractionSharedState.js +32 -4
- package/floating-ui-react/hooks/useHoverReferenceInteraction.d.ts +8 -3
- package/floating-ui-react/hooks/useHoverReferenceInteraction.js +60 -82
- package/floating-ui-react/hooks/useHoverShared.d.ts +28 -0
- package/floating-ui-react/hooks/useHoverShared.js +34 -0
- package/floating-ui-react/hooks/useListNavigation.d.ts +4 -4
- package/floating-ui-react/hooks/useListNavigation.js +7 -3
- package/floating-ui-react/hooks/useRole.d.ts +1 -1
- package/floating-ui-react/hooks/useTypeahead.d.ts +7 -1
- package/floating-ui-react/hooks/useTypeahead.js +29 -13
- package/floating-ui-react/safePolygon.d.ts +2 -6
- package/floating-ui-react/safePolygon.js +149 -119
- package/floating-ui-react/types.d.ts +5 -4
- package/floating-ui-react/utils/composite.d.ts +1 -0
- package/floating-ui-react/utils/composite.js +129 -129
- package/floating-ui-react/utils/markOthers.d.ts +7 -1
- package/floating-ui-react/utils/markOthers.js +118 -80
- package/form/Form.d.ts +1 -1
- package/global.d.ts +1 -1
- package/index.js +1 -1
- package/input/Input.d.ts +10 -3
- package/labelable-provider/LabelableProvider.d.ts +4 -1
- package/labelable-provider/LabelableProvider.js +3 -2
- package/labelable-provider/useAriaLabelledBy.d.ts +9 -0
- package/labelable-provider/useAriaLabelledBy.js +61 -0
- package/labelable-provider/useLabel.d.ts +25 -0
- package/labelable-provider/useLabel.js +80 -0
- package/labelable-provider/useLabelableId.d.ts +2 -5
- package/menu/arrow/MenuArrow.d.ts +10 -1
- package/menu/backdrop/MenuBackdrop.d.ts +4 -1
- package/menu/checkbox-item/MenuCheckboxItem.d.ts +3 -3
- package/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.d.ts +7 -1
- package/menu/group/MenuGroup.d.ts +1 -1
- package/menu/group-label/MenuGroupLabel.d.ts +1 -1
- package/menu/index.d.ts +2 -1
- package/menu/index.parts.d.ts +1 -0
- package/menu/index.parts.js +7 -0
- package/menu/item/MenuItem.d.ts +1 -1
- package/menu/item/useMenuItem.d.ts +8 -7
- package/menu/item/useMenuItem.js +5 -7
- package/menu/item/useMenuItemCommonProps.d.ts +7 -4
- package/menu/item/useMenuItemCommonProps.js +16 -2
- package/menu/link-item/MenuLinkItem.d.ts +1 -1
- package/menu/link-item/MenuLinkItem.js +16 -2
- package/menu/popup/MenuPopup.d.ts +20 -5
- package/menu/popup/MenuPopup.js +4 -1
- package/menu/popup/MenuPopupDataAttributes.d.ts +1 -1
- package/menu/popup/MenuPopupDataAttributes.js +1 -1
- package/menu/portal/MenuPortal.d.ts +3 -4
- package/menu/positioner/MenuPositioner.d.ts +18 -2
- package/menu/positioner/MenuPositioner.js +56 -4
- package/menu/radio-group/MenuRadioGroup.d.ts +6 -3
- package/menu/radio-item/MenuRadioItem.d.ts +3 -3
- package/menu/radio-item-indicator/MenuRadioItemIndicator.d.ts +7 -1
- package/menu/root/MenuRoot.d.ts +4 -2
- package/menu/root/MenuRoot.js +2 -3
- package/menu/store/MenuStore.d.ts +4 -2
- package/menu/store/MenuStore.js +15 -1
- package/menu/submenu-trigger/MenuSubmenuTrigger.js +1 -0
- package/menu/trigger/MenuTrigger.d.ts +3 -3
- package/menu/viewport/MenuViewport.d.ts +30 -0
- package/menu/viewport/MenuViewport.js +66 -0
- package/menu/viewport/MenuViewportCssVars.d.ts +14 -0
- package/menu/viewport/MenuViewportCssVars.js +21 -0
- package/menu/viewport/MenuViewportDataAttributes.d.ts +26 -0
- package/menu/viewport/MenuViewportDataAttributes.js +33 -0
- package/menubar/Menubar.d.ts +1 -1
- package/menubar/Menubar.js +1 -7
- package/meter/indicator/MeterIndicator.d.ts +4 -2
- package/meter/label/MeterLabel.d.ts +4 -2
- package/meter/label/MeterLabel.js +4 -8
- package/meter/root/MeterRoot.d.ts +1 -1
- package/meter/root/MeterRoot.js +10 -1
- package/meter/track/MeterTrack.d.ts +4 -2
- package/meter/value/MeterValue.d.ts +5 -3
- package/navigation-menu/arrow/NavigationMenuArrow.d.ts +10 -1
- package/navigation-menu/backdrop/NavigationMenuBackdrop.d.ts +1 -1
- package/navigation-menu/content/NavigationMenuContent.d.ts +1 -1
- package/navigation-menu/content/NavigationMenuContent.js +11 -0
- package/navigation-menu/icon/NavigationMenuIcon.d.ts +1 -1
- package/navigation-menu/item/NavigationMenuItem.d.ts +1 -1
- package/navigation-menu/link/NavigationMenuLink.d.ts +1 -1
- package/navigation-menu/list/NavigationMenuList.d.ts +1 -1
- package/navigation-menu/list/NavigationMenuList.js +10 -1
- package/navigation-menu/popup/NavigationMenuPopup.d.ts +1 -1
- package/navigation-menu/portal/NavigationMenuPortal.d.ts +4 -5
- package/navigation-menu/positioner/NavigationMenuPositioner.d.ts +11 -2
- package/navigation-menu/root/NavigationMenuRoot.d.ts +4 -4
- package/navigation-menu/root/NavigationMenuRoot.js +26 -7
- package/navigation-menu/trigger/NavigationMenuTrigger.d.ts +1 -1
- package/navigation-menu/trigger/NavigationMenuTrigger.js +362 -17
- package/navigation-menu/utils/isOutsideMenuEvent.d.ts +1 -1
- package/navigation-menu/viewport/NavigationMenuViewport.d.ts +1 -1
- package/navigation-menu/viewport/NavigationMenuViewport.js +0 -19
- package/number-field/decrement/NumberFieldDecrement.d.ts +3 -3
- package/number-field/group/NumberFieldGroup.d.ts +3 -3
- package/number-field/increment/NumberFieldIncrement.d.ts +3 -3
- package/number-field/input/NumberFieldInput.d.ts +3 -3
- package/number-field/root/NumberFieldRoot.d.ts +4 -4
- package/number-field/root/NumberFieldRoot.js +1 -1
- package/number-field/root/NumberFieldRootContext.d.ts +2 -2
- package/number-field/root/useNumberFieldButton.d.ts +2 -5
- package/number-field/scrub-area/NumberFieldScrubArea.d.ts +4 -4
- package/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.d.ts +3 -3
- package/number-field/utils/stateAttributesMapping.d.ts +2 -2
- package/number-field/utils/types.d.ts +2 -2
- package/package.json +183 -7
- package/popover/arrow/PopoverArrow.d.ts +10 -1
- package/popover/backdrop/PopoverBackdrop.d.ts +4 -1
- package/popover/close/PopoverClose.d.ts +1 -1
- package/popover/close/PopoverClose.js +5 -3
- package/popover/description/PopoverDescription.d.ts +1 -1
- package/popover/popup/PopoverPopup.d.ts +15 -3
- package/popover/popup/PopoverPopup.js +11 -2
- package/popover/portal/PopoverPortal.d.ts +3 -4
- package/popover/positioner/PopoverPositioner.d.ts +11 -2
- package/popover/root/PopoverRoot.d.ts +10 -3
- package/popover/root/PopoverRoot.js +1 -3
- package/popover/title/PopoverTitle.d.ts +1 -1
- package/popover/viewport/PopoverViewport.d.ts +16 -12
- package/preview-card/arrow/PreviewCardArrow.d.ts +10 -1
- package/preview-card/backdrop/PreviewCardBackdrop.d.ts +4 -1
- package/preview-card/popup/PreviewCardPopup.d.ts +13 -1
- package/preview-card/portal/PreviewCardPortal.d.ts +3 -4
- package/preview-card/positioner/PreviewCardPositioner.d.ts +14 -2
- package/preview-card/positioner/PreviewCardPositioner.js +7 -1
- package/preview-card/root/PreviewCardRoot.d.ts +3 -3
- package/preview-card/root/PreviewCardRoot.js +20 -7
- package/preview-card/trigger/PreviewCardTrigger.d.ts +1 -1
- package/preview-card/viewport/PreviewCardViewport.d.ts +16 -9
- package/progress/indicator/ProgressIndicator.d.ts +4 -2
- package/progress/label/ProgressLabel.d.ts +4 -2
- package/progress/label/ProgressLabel.js +4 -8
- package/progress/root/ProgressRoot.d.ts +4 -1
- package/progress/root/ProgressRoot.js +10 -1
- package/progress/root/ProgressRootContext.d.ts +2 -2
- package/progress/root/stateAttributesMapping.d.ts +2 -2
- package/progress/track/ProgressTrack.d.ts +4 -2
- package/progress/value/ProgressValue.d.ts +5 -3
- package/radio/indicator/RadioIndicator.d.ts +4 -1
- package/radio/indicator/RadioIndicatorDataAttributes.d.ts +8 -0
- package/radio/indicator/RadioIndicatorDataAttributes.js +10 -1
- package/radio/root/RadioRoot.d.ts +3 -3
- package/radio/root/RadioRoot.js +4 -1
- package/radio-group/RadioGroup.d.ts +3 -3
- package/scroll-area/content/ScrollAreaContent.d.ts +3 -3
- package/scroll-area/corner/ScrollAreaCorner.d.ts +1 -1
- package/scroll-area/root/ScrollAreaRoot.d.ts +27 -11
- package/scroll-area/root/ScrollAreaRoot.js +7 -4
- package/scroll-area/root/ScrollAreaRootContext.d.ts +4 -2
- package/scroll-area/root/stateAttributes.d.ts +2 -2
- package/scroll-area/scrollbar/ScrollAreaScrollbar.d.ts +13 -7
- package/scroll-area/scrollbar/ScrollAreaScrollbar.js +4 -1
- package/scroll-area/thumb/ScrollAreaThumb.d.ts +5 -2
- package/scroll-area/thumb/ScrollAreaThumb.js +3 -1
- package/scroll-area/viewport/ScrollAreaViewport.d.ts +3 -3
- package/scroll-area/viewport/ScrollAreaViewport.js +46 -27
- package/select/arrow/SelectArrow.d.ts +10 -1
- package/select/backdrop/SelectBackdrop.d.ts +7 -1
- package/select/group/SelectGroup.d.ts +1 -1
- package/select/group-label/SelectGroupLabel.d.ts +1 -1
- package/select/icon/SelectIcon.d.ts +1 -1
- package/select/index.d.ts +1 -0
- package/select/index.parts.d.ts +1 -0
- package/select/index.parts.js +7 -0
- package/select/item/SelectItem.d.ts +1 -1
- package/select/item/SelectItem.js +10 -4
- package/select/item-indicator/SelectItemIndicator.d.ts +10 -2
- package/select/item-indicator/SelectItemIndicatorDataAttributes.d.ts +10 -0
- package/select/item-indicator/SelectItemIndicatorDataAttributes.js +18 -0
- package/select/item-text/SelectItemText.d.ts +1 -1
- package/select/label/SelectLabel.d.ts +16 -0
- package/select/label/SelectLabel.js +54 -0
- package/select/list/SelectList.d.ts +1 -1
- package/select/popup/SelectPopup.d.ts +14 -2
- package/select/popup/SelectPopup.js +26 -12
- package/select/portal/SelectPortal.d.ts +3 -4
- package/select/positioner/SelectPositioner.d.ts +14 -2
- package/select/positioner/SelectPositionerContext.d.ts +2 -2
- package/select/root/SelectRoot.d.ts +5 -4
- package/select/root/SelectRoot.js +5 -6
- package/select/scroll-arrow/SelectScrollArrow.d.ts +13 -1
- package/select/scroll-down-arrow/SelectScrollDownArrow.d.ts +1 -1
- package/select/scroll-up-arrow/SelectScrollUpArrow.d.ts +1 -1
- package/select/store.d.ts +5 -2
- package/select/store.js +1 -0
- package/select/trigger/SelectTrigger.d.ts +6 -4
- package/select/trigger/SelectTrigger.js +5 -2
- package/select/value/SelectValue.d.ts +1 -1
- package/separator/Separator.d.ts +1 -1
- package/slider/control/SliderControl.d.ts +4 -3
- package/slider/control/SliderControl.js +0 -2
- package/slider/index.d.ts +1 -0
- package/slider/index.parts.d.ts +1 -0
- package/slider/index.parts.js +7 -0
- package/slider/indicator/SliderIndicator.d.ts +4 -2
- package/slider/label/SliderLabel.d.ts +16 -0
- package/slider/label/SliderLabel.js +63 -0
- package/slider/root/SliderRoot.d.ts +11 -5
- package/slider/root/SliderRoot.js +8 -3
- package/slider/root/SliderRootContext.d.ts +4 -2
- package/slider/root/stateAttributesMapping.d.ts +2 -2
- package/slider/thumb/SliderThumb.d.ts +5 -5
- package/slider/thumb/SliderThumb.js +3 -2
- package/slider/track/SliderTrack.d.ts +4 -2
- package/slider/utils/resolveThumbCollision.d.ts +2 -2
- package/slider/value/SliderValue.d.ts +5 -3
- package/switch/root/SwitchRoot.d.ts +3 -3
- package/switch/root/SwitchRoot.js +4 -1
- package/switch/root/SwitchRootContext.d.ts +4 -4
- package/switch/stateAttributesMapping.d.ts +2 -2
- package/switch/thumb/SwitchThumb.d.ts +3 -3
- package/tabs/indicator/TabsIndicator.d.ts +12 -3
- package/tabs/indicator/TabsIndicator.js +5 -14
- package/tabs/indicator/TabsIndicatorCssVars.d.ts +1 -1
- package/tabs/indicator/TabsIndicatorCssVars.js +1 -1
- package/tabs/list/TabsList.d.ts +3 -3
- package/tabs/list/TabsList.js +48 -3
- package/tabs/list/TabsListContext.d.ts +2 -0
- package/tabs/panel/TabsPanel.d.ts +9 -3
- package/tabs/panel/TabsPanelDataAttributes.d.ts +8 -0
- package/tabs/panel/TabsPanelDataAttributes.js +10 -1
- package/tabs/root/TabsRoot.d.ts +7 -1
- package/tabs/root/TabsRootContext.d.ts +1 -1
- package/tabs/root/stateAttributesMapping.d.ts +2 -2
- package/tabs/tab/TabsTab.d.ts +7 -1
- package/tabs/tab/TabsTab.js +10 -1
- package/toast/action/ToastAction.d.ts +1 -1
- package/toast/arrow/ToastArrow.d.ts +10 -1
- package/toast/close/ToastClose.d.ts +1 -1
- package/toast/content/ToastContent.d.ts +1 -1
- package/toast/createToastManager.d.ts +1 -1
- package/toast/description/ToastDescription.d.ts +1 -1
- package/toast/portal/ToastPortal.d.ts +3 -4
- package/toast/positioner/ToastPositioner.d.ts +12 -3
- package/toast/provider/ToastProvider.d.ts +2 -0
- package/toast/provider/ToastProvider.js +1 -1
- package/toast/root/ToastRoot.d.ts +20 -7
- package/toast/root/ToastRoot.js +3 -1
- package/toast/store.d.ts +1 -1
- package/toast/store.js +37 -8
- package/toast/title/ToastTitle.d.ts +1 -1
- package/toast/useToastManager.d.ts +3 -3
- package/toast/viewport/ToastViewport.d.ts +1 -1
- package/toggle/Toggle.d.ts +1 -1
- package/toggle-group/ToggleGroup.d.ts +1 -1
- package/toolbar/button/ToolbarButton.d.ts +9 -3
- package/toolbar/group/ToolbarGroup.d.ts +4 -2
- package/toolbar/input/ToolbarInput.d.ts +9 -3
- package/toolbar/link/ToolbarLink.d.ts +4 -1
- package/toolbar/root/ToolbarRoot.d.ts +7 -1
- package/toolbar/separator/ToolbarSeparator.d.ts +4 -2
- package/tooltip/arrow/TooltipArrow.d.ts +13 -1
- package/tooltip/popup/TooltipPopup.d.ts +13 -1
- package/tooltip/portal/TooltipPortal.d.ts +3 -4
- package/tooltip/positioner/TooltipPositioner.d.ts +11 -2
- package/tooltip/provider/TooltipProvider.d.ts +2 -0
- package/tooltip/root/TooltipRoot.d.ts +3 -3
- package/tooltip/root/TooltipRoot.js +1 -1
- package/tooltip/store/TooltipStore.d.ts +2 -0
- package/tooltip/store/TooltipStore.js +2 -0
- package/tooltip/trigger/TooltipTrigger.d.ts +6 -1
- package/tooltip/trigger/TooltipTrigger.js +5 -0
- package/tooltip/viewport/TooltipViewport.d.ts +16 -12
- package/types/index.d.ts +16 -1
- package/unstable-use-media-query/index.d.ts +2 -0
- package/use-button/useButton.d.ts +8 -5
- package/use-button/useButton.js +49 -20
- package/use-render/useRender.d.ts +7 -5
- package/utils/FloatingPortalLite.d.ts +4 -2
- package/utils/InternalBackdrop.d.ts +3 -1
- package/utils/closePart.d.ts +16 -0
- package/utils/closePart.js +48 -0
- package/utils/constants.d.ts +4 -0
- package/utils/constants.js +6 -2
- package/utils/createBaseUIEventDetails.d.ts +1 -1
- package/utils/getElementAtPoint.d.ts +1 -0
- package/utils/getElementAtPoint.js +9 -0
- package/utils/resolveAriaLabelledBy.d.ts +2 -0
- package/utils/resolveAriaLabelledBy.js +14 -0
- package/utils/resolveValueLabel.d.ts +4 -4
- package/utils/resolveValueLabel.js +7 -5
- package/utils/types.d.ts +7 -20
- package/utils/useAnchorPositioning.d.ts +53 -18
- package/utils/useAnchorPositioning.js +15 -6
- package/utils/useFocusableWhenDisabled.d.ts +2 -5
- package/utils/useMixedToggleClickHandler.d.ts +2 -4
- package/utils/useOpenChangeComplete.d.ts +2 -4
- package/utils/useOpenInteractionType.d.ts +0 -1
- package/utils/useOpenInteractionType.js +7 -5
- package/utils/usePopupAutoResize.js +1 -2
- package/utils/usePopupViewport.js +11 -8
- package/utils/useRegisteredLabelId.d.ts +1 -0
- package/utils/useRegisteredLabelId.js +19 -0
- package/utils/useRenderElement.d.ts +6 -9
- package/utils/useRenderElement.js +15 -0
- package/utils/useSwipeDismiss.d.ts +91 -92
- package/utils/useSwipeDismiss.js +2 -1
- package/esm/navigation-menu/utils/setFixedSize.d.ts +0 -1
- package/esm/navigation-menu/utils/setFixedSize.js +0 -11
- package/navigation-menu/utils/setFixedSize.d.ts +0 -1
- package/navigation-menu/utils/setFixedSize.js +0 -17
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FieldRootState } from "../../field/root/FieldRoot.js";
|
|
3
3
|
import type { BaseUIComponentProps } from "../../utils/types.js";
|
|
4
4
|
import type { ChangeEventCustomProperties } from "../utils/types.js";
|
|
5
5
|
import { type BaseUIChangeEventDetails, type BaseUIGenericEventDetails } from "../../utils/createBaseUIEventDetails.js";
|
|
@@ -43,7 +43,7 @@ export interface NumberFieldRootProps extends Omit<BaseUIComponentProps<'div', N
|
|
|
43
43
|
* Specify `step="any"` to always disable step validation.
|
|
44
44
|
* @default 1
|
|
45
45
|
*/
|
|
46
|
-
step?:
|
|
46
|
+
step?: number | 'any' | undefined;
|
|
47
47
|
/**
|
|
48
48
|
* The large step value of the input element when incrementing while the shift key is held. Snaps
|
|
49
49
|
* to multiples of this value.
|
|
@@ -72,7 +72,7 @@ export interface NumberFieldRootProps extends Omit<BaseUIComponentProps<'div', N
|
|
|
72
72
|
/**
|
|
73
73
|
* The raw numeric value of the field.
|
|
74
74
|
*/
|
|
75
|
-
value?:
|
|
75
|
+
value?: number | null | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* The uncontrolled value of the field when it’s initially rendered.
|
|
78
78
|
*
|
|
@@ -129,7 +129,7 @@ export interface NumberFieldRootProps extends Omit<BaseUIComponentProps<'div', N
|
|
|
129
129
|
*/
|
|
130
130
|
inputRef?: React.Ref<HTMLInputElement> | undefined;
|
|
131
131
|
}
|
|
132
|
-
export interface NumberFieldRootState extends
|
|
132
|
+
export interface NumberFieldRootState extends FieldRootState {
|
|
133
133
|
/**
|
|
134
134
|
* The raw numeric value of the field.
|
|
135
135
|
*/
|
|
@@ -264,7 +264,7 @@ const NumberFieldRoot = exports.NumberFieldRoot = /*#__PURE__*/React.forwardRef(
|
|
|
264
264
|
isPressedRef.current = false;
|
|
265
265
|
stopAutoChange();
|
|
266
266
|
const committed = lastChangedValueRef.current ?? valueRef.current;
|
|
267
|
-
const commitReason = isIncrement ?
|
|
267
|
+
const commitReason = isIncrement ? _reasons.REASONS.incrementPress : _reasons.REASONS.decrementPress;
|
|
268
268
|
onValueCommitted(committed, (0, _createBaseUIEventDetails.createGenericEventDetails)(commitReason, event));
|
|
269
269
|
}, {
|
|
270
270
|
once: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Timeout } from '@base-ui/utils/useTimeout';
|
|
3
|
-
import type { NumberFieldRoot } from "./NumberFieldRoot.js";
|
|
3
|
+
import type { NumberFieldRoot, NumberFieldRootState } from "./NumberFieldRoot.js";
|
|
4
4
|
import { EventWithOptionalKeyState } from "../utils/types.js";
|
|
5
5
|
import type { IncrementValueParameters } from "../utils/types.js";
|
|
6
6
|
export type InputMode = 'numeric' | 'decimal' | 'text';
|
|
@@ -37,7 +37,7 @@ export interface NumberFieldRootContext {
|
|
|
37
37
|
locale: Intl.LocalesArgument;
|
|
38
38
|
isScrubbing: boolean;
|
|
39
39
|
setIsScrubbing: React.Dispatch<React.SetStateAction<boolean>>;
|
|
40
|
-
state:
|
|
40
|
+
state: NumberFieldRootState;
|
|
41
41
|
onValueCommitted: (value: number | null, eventDetails: NumberFieldRoot.CommitEventDetails) => void;
|
|
42
42
|
}
|
|
43
43
|
export declare const NumberFieldRootContext: React.Context<NumberFieldRootContext | undefined>;
|
|
@@ -3,7 +3,7 @@ import type { Timeout } from '@base-ui/utils/useTimeout';
|
|
|
3
3
|
import type { EventWithOptionalKeyState, IncrementValueParameters } from "../utils/types.js";
|
|
4
4
|
import type { NumberFieldRoot } from "./NumberFieldRoot.js";
|
|
5
5
|
import type { HTMLProps } from "../../utils/types.js";
|
|
6
|
-
export declare function useNumberFieldButton(params:
|
|
6
|
+
export declare function useNumberFieldButton(params: UseNumberFieldButtonParameters): React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
|
|
7
7
|
export interface UseNumberFieldButtonParameters {
|
|
8
8
|
allowInputSyncRef: React.RefObject<boolean | null>;
|
|
9
9
|
disabled: boolean;
|
|
@@ -29,7 +29,4 @@ export interface UseNumberFieldButtonParameters {
|
|
|
29
29
|
export interface UseNumberFieldButtonReturnValue {
|
|
30
30
|
props: HTMLProps;
|
|
31
31
|
}
|
|
32
|
-
export
|
|
33
|
-
type Parameters = UseNumberFieldButtonParameters;
|
|
34
|
-
type ReturnValue = UseNumberFieldButtonReturnValue;
|
|
35
|
-
}
|
|
32
|
+
export interface UseNumberFieldButtonState {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { BaseUIComponentProps } from "../../utils/types.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { NumberFieldRootState } from "../root/NumberFieldRoot.js";
|
|
4
4
|
/**
|
|
5
5
|
* An interactive area where the user can click and drag to change the field value.
|
|
6
6
|
* Renders a `<span>` element.
|
|
@@ -8,13 +8,13 @@ import type { NumberFieldRoot } from "../root/NumberFieldRoot.js";
|
|
|
8
8
|
* Documentation: [Base UI Number Field](https://base-ui.com/react/components/number-field)
|
|
9
9
|
*/
|
|
10
10
|
export declare const NumberFieldScrubArea: React.ForwardRefExoticComponent<Omit<NumberFieldScrubAreaProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
-
export interface NumberFieldScrubAreaState extends
|
|
12
|
-
export interface NumberFieldScrubAreaProps extends BaseUIComponentProps<'span',
|
|
11
|
+
export interface NumberFieldScrubAreaState extends NumberFieldRootState {}
|
|
12
|
+
export interface NumberFieldScrubAreaProps extends BaseUIComponentProps<'span', NumberFieldScrubAreaState> {
|
|
13
13
|
/**
|
|
14
14
|
* Cursor movement direction in the scrub area.
|
|
15
15
|
* @default 'horizontal'
|
|
16
16
|
*/
|
|
17
|
-
direction?:
|
|
17
|
+
direction?: 'horizontal' | 'vertical' | undefined;
|
|
18
18
|
/**
|
|
19
19
|
* Determines how many pixels the cursor must move before the value changes.
|
|
20
20
|
* A higher value will make scrubbing less sensitive.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { BaseUIComponentProps } from "../../utils/types.js";
|
|
3
|
-
import type {
|
|
3
|
+
import type { NumberFieldRootState } from "../root/NumberFieldRoot.js";
|
|
4
4
|
/**
|
|
5
5
|
* A custom element to display instead of the native cursor while using the scrub area.
|
|
6
6
|
* Renders a `<span>` element.
|
|
@@ -11,8 +11,8 @@ import type { NumberFieldRoot } from "../root/NumberFieldRoot.js";
|
|
|
11
11
|
* Documentation: [Base UI Number Field](https://base-ui.com/react/components/number-field)
|
|
12
12
|
*/
|
|
13
13
|
export declare const NumberFieldScrubAreaCursor: React.ForwardRefExoticComponent<Omit<NumberFieldScrubAreaCursorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
14
|
-
export interface NumberFieldScrubAreaCursorState extends
|
|
15
|
-
export interface NumberFieldScrubAreaCursorProps extends BaseUIComponentProps<'span',
|
|
14
|
+
export interface NumberFieldScrubAreaCursorState extends NumberFieldRootState {}
|
|
15
|
+
export interface NumberFieldScrubAreaCursorProps extends BaseUIComponentProps<'span', NumberFieldScrubAreaCursorState> {}
|
|
16
16
|
export declare namespace NumberFieldScrubAreaCursor {
|
|
17
17
|
type State = NumberFieldScrubAreaCursorState;
|
|
18
18
|
type Props = NumberFieldScrubAreaCursorProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { StateAttributesMapping } from "../../utils/getStateAttributesProps.js";
|
|
2
|
-
import type {
|
|
3
|
-
export declare const stateAttributesMapping: StateAttributesMapping<
|
|
2
|
+
import type { NumberFieldRootState } from "../root/NumberFieldRoot.js";
|
|
3
|
+
export declare const stateAttributesMapping: StateAttributesMapping<NumberFieldRootState>;
|
|
@@ -5,9 +5,9 @@ export interface ChangeEventCustomProperties {
|
|
|
5
5
|
}
|
|
6
6
|
export interface IncrementValueParameters {
|
|
7
7
|
direction: Direction;
|
|
8
|
-
event?:
|
|
8
|
+
event?: Event | React.SyntheticEvent | undefined;
|
|
9
9
|
reason: DirectionalChangeReason;
|
|
10
|
-
currentValue?:
|
|
10
|
+
currentValue?: number | null | undefined;
|
|
11
11
|
}
|
|
12
12
|
export interface EventWithOptionalKeyState {
|
|
13
13
|
altKey?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base-ui/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.",
|
|
6
6
|
"keywords": [
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"type": "commonjs",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.28.6",
|
|
30
|
-
"@floating-ui/react-dom": "^2.1.
|
|
31
|
-
"@floating-ui/utils": "^0.2.
|
|
30
|
+
"@floating-ui/react-dom": "^2.1.8",
|
|
31
|
+
"@floating-ui/utils": "^0.2.11",
|
|
32
32
|
"tabbable": "^6.4.0",
|
|
33
33
|
"use-sync-external-store": "^1.6.0",
|
|
34
|
-
"@base-ui/utils": "0.2.
|
|
34
|
+
"@base-ui/utils": "0.2.6"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@types/react": "^17 || ^18 || ^19",
|
|
@@ -50,11 +50,13 @@
|
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=14.0.0"
|
|
52
52
|
},
|
|
53
|
-
"main": "./index.js",
|
|
54
|
-
"types": "./index.d.ts",
|
|
55
53
|
"exports": {
|
|
56
54
|
"./package.json": "./package.json",
|
|
57
55
|
".": {
|
|
56
|
+
"import": {
|
|
57
|
+
"types": "./esm/index.d.ts",
|
|
58
|
+
"default": "./esm/index.js"
|
|
59
|
+
},
|
|
58
60
|
"require": {
|
|
59
61
|
"types": "./index.d.ts",
|
|
60
62
|
"default": "./index.js"
|
|
@@ -65,6 +67,10 @@
|
|
|
65
67
|
}
|
|
66
68
|
},
|
|
67
69
|
"./accordion": {
|
|
70
|
+
"import": {
|
|
71
|
+
"types": "./esm/accordion/index.d.ts",
|
|
72
|
+
"default": "./esm/accordion/index.js"
|
|
73
|
+
},
|
|
68
74
|
"require": {
|
|
69
75
|
"types": "./accordion/index.d.ts",
|
|
70
76
|
"default": "./accordion/index.js"
|
|
@@ -75,6 +81,10 @@
|
|
|
75
81
|
}
|
|
76
82
|
},
|
|
77
83
|
"./alert-dialog": {
|
|
84
|
+
"import": {
|
|
85
|
+
"types": "./esm/alert-dialog/index.d.ts",
|
|
86
|
+
"default": "./esm/alert-dialog/index.js"
|
|
87
|
+
},
|
|
78
88
|
"require": {
|
|
79
89
|
"types": "./alert-dialog/index.d.ts",
|
|
80
90
|
"default": "./alert-dialog/index.js"
|
|
@@ -85,6 +95,10 @@
|
|
|
85
95
|
}
|
|
86
96
|
},
|
|
87
97
|
"./autocomplete": {
|
|
98
|
+
"import": {
|
|
99
|
+
"types": "./esm/autocomplete/index.d.ts",
|
|
100
|
+
"default": "./esm/autocomplete/index.js"
|
|
101
|
+
},
|
|
88
102
|
"require": {
|
|
89
103
|
"types": "./autocomplete/index.d.ts",
|
|
90
104
|
"default": "./autocomplete/index.js"
|
|
@@ -95,6 +109,10 @@
|
|
|
95
109
|
}
|
|
96
110
|
},
|
|
97
111
|
"./avatar": {
|
|
112
|
+
"import": {
|
|
113
|
+
"types": "./esm/avatar/index.d.ts",
|
|
114
|
+
"default": "./esm/avatar/index.js"
|
|
115
|
+
},
|
|
98
116
|
"require": {
|
|
99
117
|
"types": "./avatar/index.d.ts",
|
|
100
118
|
"default": "./avatar/index.js"
|
|
@@ -105,6 +123,10 @@
|
|
|
105
123
|
}
|
|
106
124
|
},
|
|
107
125
|
"./button": {
|
|
126
|
+
"import": {
|
|
127
|
+
"types": "./esm/button/index.d.ts",
|
|
128
|
+
"default": "./esm/button/index.js"
|
|
129
|
+
},
|
|
108
130
|
"require": {
|
|
109
131
|
"types": "./button/index.d.ts",
|
|
110
132
|
"default": "./button/index.js"
|
|
@@ -115,6 +137,10 @@
|
|
|
115
137
|
}
|
|
116
138
|
},
|
|
117
139
|
"./checkbox": {
|
|
140
|
+
"import": {
|
|
141
|
+
"types": "./esm/checkbox/index.d.ts",
|
|
142
|
+
"default": "./esm/checkbox/index.js"
|
|
143
|
+
},
|
|
118
144
|
"require": {
|
|
119
145
|
"types": "./checkbox/index.d.ts",
|
|
120
146
|
"default": "./checkbox/index.js"
|
|
@@ -125,6 +151,10 @@
|
|
|
125
151
|
}
|
|
126
152
|
},
|
|
127
153
|
"./checkbox-group": {
|
|
154
|
+
"import": {
|
|
155
|
+
"types": "./esm/checkbox-group/index.d.ts",
|
|
156
|
+
"default": "./esm/checkbox-group/index.js"
|
|
157
|
+
},
|
|
128
158
|
"require": {
|
|
129
159
|
"types": "./checkbox-group/index.d.ts",
|
|
130
160
|
"default": "./checkbox-group/index.js"
|
|
@@ -135,6 +165,10 @@
|
|
|
135
165
|
}
|
|
136
166
|
},
|
|
137
167
|
"./collapsible": {
|
|
168
|
+
"import": {
|
|
169
|
+
"types": "./esm/collapsible/index.d.ts",
|
|
170
|
+
"default": "./esm/collapsible/index.js"
|
|
171
|
+
},
|
|
138
172
|
"require": {
|
|
139
173
|
"types": "./collapsible/index.d.ts",
|
|
140
174
|
"default": "./collapsible/index.js"
|
|
@@ -145,6 +179,10 @@
|
|
|
145
179
|
}
|
|
146
180
|
},
|
|
147
181
|
"./combobox": {
|
|
182
|
+
"import": {
|
|
183
|
+
"types": "./esm/combobox/index.d.ts",
|
|
184
|
+
"default": "./esm/combobox/index.js"
|
|
185
|
+
},
|
|
148
186
|
"require": {
|
|
149
187
|
"types": "./combobox/index.d.ts",
|
|
150
188
|
"default": "./combobox/index.js"
|
|
@@ -155,6 +193,10 @@
|
|
|
155
193
|
}
|
|
156
194
|
},
|
|
157
195
|
"./csp-provider": {
|
|
196
|
+
"import": {
|
|
197
|
+
"types": "./esm/csp-provider/index.d.ts",
|
|
198
|
+
"default": "./esm/csp-provider/index.js"
|
|
199
|
+
},
|
|
158
200
|
"require": {
|
|
159
201
|
"types": "./csp-provider/index.d.ts",
|
|
160
202
|
"default": "./csp-provider/index.js"
|
|
@@ -165,6 +207,10 @@
|
|
|
165
207
|
}
|
|
166
208
|
},
|
|
167
209
|
"./context-menu": {
|
|
210
|
+
"import": {
|
|
211
|
+
"types": "./esm/context-menu/index.d.ts",
|
|
212
|
+
"default": "./esm/context-menu/index.js"
|
|
213
|
+
},
|
|
168
214
|
"require": {
|
|
169
215
|
"types": "./context-menu/index.d.ts",
|
|
170
216
|
"default": "./context-menu/index.js"
|
|
@@ -175,6 +221,10 @@
|
|
|
175
221
|
}
|
|
176
222
|
},
|
|
177
223
|
"./dialog": {
|
|
224
|
+
"import": {
|
|
225
|
+
"types": "./esm/dialog/index.d.ts",
|
|
226
|
+
"default": "./esm/dialog/index.js"
|
|
227
|
+
},
|
|
178
228
|
"require": {
|
|
179
229
|
"types": "./dialog/index.d.ts",
|
|
180
230
|
"default": "./dialog/index.js"
|
|
@@ -185,6 +235,10 @@
|
|
|
185
235
|
}
|
|
186
236
|
},
|
|
187
237
|
"./direction-provider": {
|
|
238
|
+
"import": {
|
|
239
|
+
"types": "./esm/direction-provider/index.d.ts",
|
|
240
|
+
"default": "./esm/direction-provider/index.js"
|
|
241
|
+
},
|
|
188
242
|
"require": {
|
|
189
243
|
"types": "./direction-provider/index.d.ts",
|
|
190
244
|
"default": "./direction-provider/index.js"
|
|
@@ -195,6 +249,10 @@
|
|
|
195
249
|
}
|
|
196
250
|
},
|
|
197
251
|
"./drawer": {
|
|
252
|
+
"import": {
|
|
253
|
+
"types": "./esm/drawer/index.d.ts",
|
|
254
|
+
"default": "./esm/drawer/index.js"
|
|
255
|
+
},
|
|
198
256
|
"require": {
|
|
199
257
|
"types": "./drawer/index.d.ts",
|
|
200
258
|
"default": "./drawer/index.js"
|
|
@@ -205,6 +263,10 @@
|
|
|
205
263
|
}
|
|
206
264
|
},
|
|
207
265
|
"./field": {
|
|
266
|
+
"import": {
|
|
267
|
+
"types": "./esm/field/index.d.ts",
|
|
268
|
+
"default": "./esm/field/index.js"
|
|
269
|
+
},
|
|
208
270
|
"require": {
|
|
209
271
|
"types": "./field/index.d.ts",
|
|
210
272
|
"default": "./field/index.js"
|
|
@@ -215,6 +277,10 @@
|
|
|
215
277
|
}
|
|
216
278
|
},
|
|
217
279
|
"./fieldset": {
|
|
280
|
+
"import": {
|
|
281
|
+
"types": "./esm/fieldset/index.d.ts",
|
|
282
|
+
"default": "./esm/fieldset/index.js"
|
|
283
|
+
},
|
|
218
284
|
"require": {
|
|
219
285
|
"types": "./fieldset/index.d.ts",
|
|
220
286
|
"default": "./fieldset/index.js"
|
|
@@ -225,6 +291,10 @@
|
|
|
225
291
|
}
|
|
226
292
|
},
|
|
227
293
|
"./form": {
|
|
294
|
+
"import": {
|
|
295
|
+
"types": "./esm/form/index.d.ts",
|
|
296
|
+
"default": "./esm/form/index.js"
|
|
297
|
+
},
|
|
228
298
|
"require": {
|
|
229
299
|
"types": "./form/index.d.ts",
|
|
230
300
|
"default": "./form/index.js"
|
|
@@ -235,6 +305,10 @@
|
|
|
235
305
|
}
|
|
236
306
|
},
|
|
237
307
|
"./input": {
|
|
308
|
+
"import": {
|
|
309
|
+
"types": "./esm/input/index.d.ts",
|
|
310
|
+
"default": "./esm/input/index.js"
|
|
311
|
+
},
|
|
238
312
|
"require": {
|
|
239
313
|
"types": "./input/index.d.ts",
|
|
240
314
|
"default": "./input/index.js"
|
|
@@ -245,6 +319,10 @@
|
|
|
245
319
|
}
|
|
246
320
|
},
|
|
247
321
|
"./menu": {
|
|
322
|
+
"import": {
|
|
323
|
+
"types": "./esm/menu/index.d.ts",
|
|
324
|
+
"default": "./esm/menu/index.js"
|
|
325
|
+
},
|
|
248
326
|
"require": {
|
|
249
327
|
"types": "./menu/index.d.ts",
|
|
250
328
|
"default": "./menu/index.js"
|
|
@@ -255,6 +333,10 @@
|
|
|
255
333
|
}
|
|
256
334
|
},
|
|
257
335
|
"./menubar": {
|
|
336
|
+
"import": {
|
|
337
|
+
"types": "./esm/menubar/index.d.ts",
|
|
338
|
+
"default": "./esm/menubar/index.js"
|
|
339
|
+
},
|
|
258
340
|
"require": {
|
|
259
341
|
"types": "./menubar/index.d.ts",
|
|
260
342
|
"default": "./menubar/index.js"
|
|
@@ -265,6 +347,10 @@
|
|
|
265
347
|
}
|
|
266
348
|
},
|
|
267
349
|
"./merge-props": {
|
|
350
|
+
"import": {
|
|
351
|
+
"types": "./esm/merge-props/index.d.ts",
|
|
352
|
+
"default": "./esm/merge-props/index.js"
|
|
353
|
+
},
|
|
268
354
|
"require": {
|
|
269
355
|
"types": "./merge-props/index.d.ts",
|
|
270
356
|
"default": "./merge-props/index.js"
|
|
@@ -275,6 +361,10 @@
|
|
|
275
361
|
}
|
|
276
362
|
},
|
|
277
363
|
"./meter": {
|
|
364
|
+
"import": {
|
|
365
|
+
"types": "./esm/meter/index.d.ts",
|
|
366
|
+
"default": "./esm/meter/index.js"
|
|
367
|
+
},
|
|
278
368
|
"require": {
|
|
279
369
|
"types": "./meter/index.d.ts",
|
|
280
370
|
"default": "./meter/index.js"
|
|
@@ -285,6 +375,10 @@
|
|
|
285
375
|
}
|
|
286
376
|
},
|
|
287
377
|
"./navigation-menu": {
|
|
378
|
+
"import": {
|
|
379
|
+
"types": "./esm/navigation-menu/index.d.ts",
|
|
380
|
+
"default": "./esm/navigation-menu/index.js"
|
|
381
|
+
},
|
|
288
382
|
"require": {
|
|
289
383
|
"types": "./navigation-menu/index.d.ts",
|
|
290
384
|
"default": "./navigation-menu/index.js"
|
|
@@ -295,6 +389,10 @@
|
|
|
295
389
|
}
|
|
296
390
|
},
|
|
297
391
|
"./number-field": {
|
|
392
|
+
"import": {
|
|
393
|
+
"types": "./esm/number-field/index.d.ts",
|
|
394
|
+
"default": "./esm/number-field/index.js"
|
|
395
|
+
},
|
|
298
396
|
"require": {
|
|
299
397
|
"types": "./number-field/index.d.ts",
|
|
300
398
|
"default": "./number-field/index.js"
|
|
@@ -305,6 +403,10 @@
|
|
|
305
403
|
}
|
|
306
404
|
},
|
|
307
405
|
"./popover": {
|
|
406
|
+
"import": {
|
|
407
|
+
"types": "./esm/popover/index.d.ts",
|
|
408
|
+
"default": "./esm/popover/index.js"
|
|
409
|
+
},
|
|
308
410
|
"require": {
|
|
309
411
|
"types": "./popover/index.d.ts",
|
|
310
412
|
"default": "./popover/index.js"
|
|
@@ -315,6 +417,10 @@
|
|
|
315
417
|
}
|
|
316
418
|
},
|
|
317
419
|
"./preview-card": {
|
|
420
|
+
"import": {
|
|
421
|
+
"types": "./esm/preview-card/index.d.ts",
|
|
422
|
+
"default": "./esm/preview-card/index.js"
|
|
423
|
+
},
|
|
318
424
|
"require": {
|
|
319
425
|
"types": "./preview-card/index.d.ts",
|
|
320
426
|
"default": "./preview-card/index.js"
|
|
@@ -325,6 +431,10 @@
|
|
|
325
431
|
}
|
|
326
432
|
},
|
|
327
433
|
"./progress": {
|
|
434
|
+
"import": {
|
|
435
|
+
"types": "./esm/progress/index.d.ts",
|
|
436
|
+
"default": "./esm/progress/index.js"
|
|
437
|
+
},
|
|
328
438
|
"require": {
|
|
329
439
|
"types": "./progress/index.d.ts",
|
|
330
440
|
"default": "./progress/index.js"
|
|
@@ -335,6 +445,10 @@
|
|
|
335
445
|
}
|
|
336
446
|
},
|
|
337
447
|
"./radio": {
|
|
448
|
+
"import": {
|
|
449
|
+
"types": "./esm/radio/index.d.ts",
|
|
450
|
+
"default": "./esm/radio/index.js"
|
|
451
|
+
},
|
|
338
452
|
"require": {
|
|
339
453
|
"types": "./radio/index.d.ts",
|
|
340
454
|
"default": "./radio/index.js"
|
|
@@ -345,6 +459,10 @@
|
|
|
345
459
|
}
|
|
346
460
|
},
|
|
347
461
|
"./radio-group": {
|
|
462
|
+
"import": {
|
|
463
|
+
"types": "./esm/radio-group/index.d.ts",
|
|
464
|
+
"default": "./esm/radio-group/index.js"
|
|
465
|
+
},
|
|
348
466
|
"require": {
|
|
349
467
|
"types": "./radio-group/index.d.ts",
|
|
350
468
|
"default": "./radio-group/index.js"
|
|
@@ -355,6 +473,10 @@
|
|
|
355
473
|
}
|
|
356
474
|
},
|
|
357
475
|
"./scroll-area": {
|
|
476
|
+
"import": {
|
|
477
|
+
"types": "./esm/scroll-area/index.d.ts",
|
|
478
|
+
"default": "./esm/scroll-area/index.js"
|
|
479
|
+
},
|
|
358
480
|
"require": {
|
|
359
481
|
"types": "./scroll-area/index.d.ts",
|
|
360
482
|
"default": "./scroll-area/index.js"
|
|
@@ -365,6 +487,10 @@
|
|
|
365
487
|
}
|
|
366
488
|
},
|
|
367
489
|
"./select": {
|
|
490
|
+
"import": {
|
|
491
|
+
"types": "./esm/select/index.d.ts",
|
|
492
|
+
"default": "./esm/select/index.js"
|
|
493
|
+
},
|
|
368
494
|
"require": {
|
|
369
495
|
"types": "./select/index.d.ts",
|
|
370
496
|
"default": "./select/index.js"
|
|
@@ -375,6 +501,10 @@
|
|
|
375
501
|
}
|
|
376
502
|
},
|
|
377
503
|
"./separator": {
|
|
504
|
+
"import": {
|
|
505
|
+
"types": "./esm/separator/index.d.ts",
|
|
506
|
+
"default": "./esm/separator/index.js"
|
|
507
|
+
},
|
|
378
508
|
"require": {
|
|
379
509
|
"types": "./separator/index.d.ts",
|
|
380
510
|
"default": "./separator/index.js"
|
|
@@ -385,6 +515,10 @@
|
|
|
385
515
|
}
|
|
386
516
|
},
|
|
387
517
|
"./slider": {
|
|
518
|
+
"import": {
|
|
519
|
+
"types": "./esm/slider/index.d.ts",
|
|
520
|
+
"default": "./esm/slider/index.js"
|
|
521
|
+
},
|
|
388
522
|
"require": {
|
|
389
523
|
"types": "./slider/index.d.ts",
|
|
390
524
|
"default": "./slider/index.js"
|
|
@@ -395,6 +529,10 @@
|
|
|
395
529
|
}
|
|
396
530
|
},
|
|
397
531
|
"./switch": {
|
|
532
|
+
"import": {
|
|
533
|
+
"types": "./esm/switch/index.d.ts",
|
|
534
|
+
"default": "./esm/switch/index.js"
|
|
535
|
+
},
|
|
398
536
|
"require": {
|
|
399
537
|
"types": "./switch/index.d.ts",
|
|
400
538
|
"default": "./switch/index.js"
|
|
@@ -405,6 +543,10 @@
|
|
|
405
543
|
}
|
|
406
544
|
},
|
|
407
545
|
"./tabs": {
|
|
546
|
+
"import": {
|
|
547
|
+
"types": "./esm/tabs/index.d.ts",
|
|
548
|
+
"default": "./esm/tabs/index.js"
|
|
549
|
+
},
|
|
408
550
|
"require": {
|
|
409
551
|
"types": "./tabs/index.d.ts",
|
|
410
552
|
"default": "./tabs/index.js"
|
|
@@ -415,6 +557,10 @@
|
|
|
415
557
|
}
|
|
416
558
|
},
|
|
417
559
|
"./toast": {
|
|
560
|
+
"import": {
|
|
561
|
+
"types": "./esm/toast/index.d.ts",
|
|
562
|
+
"default": "./esm/toast/index.js"
|
|
563
|
+
},
|
|
418
564
|
"require": {
|
|
419
565
|
"types": "./toast/index.d.ts",
|
|
420
566
|
"default": "./toast/index.js"
|
|
@@ -425,6 +571,10 @@
|
|
|
425
571
|
}
|
|
426
572
|
},
|
|
427
573
|
"./toggle": {
|
|
574
|
+
"import": {
|
|
575
|
+
"types": "./esm/toggle/index.d.ts",
|
|
576
|
+
"default": "./esm/toggle/index.js"
|
|
577
|
+
},
|
|
428
578
|
"require": {
|
|
429
579
|
"types": "./toggle/index.d.ts",
|
|
430
580
|
"default": "./toggle/index.js"
|
|
@@ -435,6 +585,10 @@
|
|
|
435
585
|
}
|
|
436
586
|
},
|
|
437
587
|
"./toggle-group": {
|
|
588
|
+
"import": {
|
|
589
|
+
"types": "./esm/toggle-group/index.d.ts",
|
|
590
|
+
"default": "./esm/toggle-group/index.js"
|
|
591
|
+
},
|
|
438
592
|
"require": {
|
|
439
593
|
"types": "./toggle-group/index.d.ts",
|
|
440
594
|
"default": "./toggle-group/index.js"
|
|
@@ -445,6 +599,10 @@
|
|
|
445
599
|
}
|
|
446
600
|
},
|
|
447
601
|
"./toolbar": {
|
|
602
|
+
"import": {
|
|
603
|
+
"types": "./esm/toolbar/index.d.ts",
|
|
604
|
+
"default": "./esm/toolbar/index.js"
|
|
605
|
+
},
|
|
448
606
|
"require": {
|
|
449
607
|
"types": "./toolbar/index.d.ts",
|
|
450
608
|
"default": "./toolbar/index.js"
|
|
@@ -455,6 +613,10 @@
|
|
|
455
613
|
}
|
|
456
614
|
},
|
|
457
615
|
"./tooltip": {
|
|
616
|
+
"import": {
|
|
617
|
+
"types": "./esm/tooltip/index.d.ts",
|
|
618
|
+
"default": "./esm/tooltip/index.js"
|
|
619
|
+
},
|
|
458
620
|
"require": {
|
|
459
621
|
"types": "./tooltip/index.d.ts",
|
|
460
622
|
"default": "./tooltip/index.js"
|
|
@@ -465,6 +627,10 @@
|
|
|
465
627
|
}
|
|
466
628
|
},
|
|
467
629
|
"./types": {
|
|
630
|
+
"import": {
|
|
631
|
+
"types": "./esm/types/index.d.ts",
|
|
632
|
+
"default": "./esm/types/index.js"
|
|
633
|
+
},
|
|
468
634
|
"require": {
|
|
469
635
|
"types": "./types/index.d.ts",
|
|
470
636
|
"default": "./types/index.js"
|
|
@@ -475,6 +641,10 @@
|
|
|
475
641
|
}
|
|
476
642
|
},
|
|
477
643
|
"./unstable-use-media-query": {
|
|
644
|
+
"import": {
|
|
645
|
+
"types": "./esm/unstable-use-media-query/index.d.ts",
|
|
646
|
+
"default": "./esm/unstable-use-media-query/index.js"
|
|
647
|
+
},
|
|
478
648
|
"require": {
|
|
479
649
|
"types": "./unstable-use-media-query/index.d.ts",
|
|
480
650
|
"default": "./unstable-use-media-query/index.js"
|
|
@@ -485,6 +655,10 @@
|
|
|
485
655
|
}
|
|
486
656
|
},
|
|
487
657
|
"./use-render": {
|
|
658
|
+
"import": {
|
|
659
|
+
"types": "./esm/use-render/index.d.ts",
|
|
660
|
+
"default": "./esm/use-render/index.js"
|
|
661
|
+
},
|
|
488
662
|
"require": {
|
|
489
663
|
"types": "./use-render/index.d.ts",
|
|
490
664
|
"default": "./use-render/index.js"
|
|
@@ -495,5 +669,7 @@
|
|
|
495
669
|
}
|
|
496
670
|
},
|
|
497
671
|
"./esm": null
|
|
498
|
-
}
|
|
672
|
+
},
|
|
673
|
+
"main": "./index.js",
|
|
674
|
+
"types": "./index.d.ts"
|
|
499
675
|
}
|
|
@@ -13,11 +13,20 @@ export interface PopoverArrowState {
|
|
|
13
13
|
* Whether the popover is currently open.
|
|
14
14
|
*/
|
|
15
15
|
open: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The side of the anchor the component is placed on.
|
|
18
|
+
*/
|
|
16
19
|
side: Side;
|
|
20
|
+
/**
|
|
21
|
+
* The alignment of the component relative to the anchor.
|
|
22
|
+
*/
|
|
17
23
|
align: Align;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the arrow cannot be centered on the anchor.
|
|
26
|
+
*/
|
|
18
27
|
uncentered: boolean;
|
|
19
28
|
}
|
|
20
|
-
export interface PopoverArrowProps extends BaseUIComponentProps<'div',
|
|
29
|
+
export interface PopoverArrowProps extends BaseUIComponentProps<'div', PopoverArrowState> {}
|
|
21
30
|
export declare namespace PopoverArrow {
|
|
22
31
|
type State = PopoverArrowState;
|
|
23
32
|
type Props = PopoverArrowProps;
|