@base-ui/react 1.0.0-rc.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +156 -5
- package/README.md +2 -3
- package/accordion/header/AccordionHeader.d.ts +1 -1
- package/accordion/item/AccordionItem.d.ts +1 -1
- package/accordion/panel/AccordionPanel.d.ts +1 -1
- package/accordion/root/AccordionRoot.d.ts +1 -1
- package/accordion/trigger/AccordionTrigger.d.ts +1 -1
- package/accordion/trigger/AccordionTrigger.js +3 -4
- package/alert-dialog/root/AlertDialogRoot.d.ts +3 -3
- package/autocomplete/root/AutocompleteRoot.d.ts +1 -1
- package/avatar/fallback/AvatarFallback.d.ts +1 -1
- package/avatar/image/AvatarImage.d.ts +1 -1
- package/avatar/root/AvatarRoot.d.ts +1 -1
- package/button/Button.d.ts +4 -17
- package/button/Button.js +1 -2
- package/checkbox/indicator/CheckboxIndicator.d.ts +1 -1
- package/checkbox/indicator/CheckboxIndicatorDataAttributes.d.ts +4 -0
- package/checkbox/indicator/CheckboxIndicatorDataAttributes.js +4 -0
- package/checkbox/root/CheckboxRoot.d.ts +1 -1
- package/checkbox/root/CheckboxRoot.js +5 -4
- package/checkbox/root/CheckboxRootDataAttributes.d.ts +4 -0
- package/checkbox/root/CheckboxRootDataAttributes.js +4 -0
- package/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/collapsible/panel/CollapsiblePanel.d.ts +1 -1
- package/collapsible/root/CollapsibleRoot.d.ts +1 -1
- package/collapsible/trigger/CollapsibleTrigger.d.ts +1 -1
- package/collapsible/trigger/CollapsibleTrigger.js +1 -2
- package/combobox/arrow/ComboboxArrow.d.ts +1 -1
- package/combobox/backdrop/ComboboxBackdrop.d.ts +1 -1
- package/combobox/chip/ComboboxChip.d.ts +1 -1
- package/combobox/chip-remove/ComboboxChipRemove.d.ts +1 -1
- package/combobox/chip-remove/ComboboxChipRemove.js +3 -2
- package/combobox/chips/ComboboxChips.d.ts +1 -1
- package/combobox/chips/ComboboxChips.js +7 -1
- package/combobox/clear/ComboboxClear.d.ts +1 -1
- package/combobox/clear/ComboboxClear.js +2 -2
- 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/input/ComboboxInput.d.ts +1 -1
- package/combobox/input/ComboboxInput.js +12 -18
- package/combobox/item/ComboboxItem.d.ts +1 -1
- package/combobox/item/ComboboxItem.js +0 -1
- package/combobox/item-indicator/ComboboxItemIndicator.d.ts +1 -1
- package/combobox/list/ComboboxList.d.ts +1 -1
- package/combobox/popup/ComboboxPopup.d.ts +1 -1
- package/combobox/popup/ComboboxPopup.js +2 -1
- package/combobox/portal/ComboboxPortal.d.ts +1 -1
- package/combobox/positioner/ComboboxPositioner.d.ts +1 -1
- package/combobox/root/AriaCombobox.d.ts +8 -1
- package/combobox/root/AriaCombobox.js +19 -16
- package/combobox/root/ComboboxRoot.d.ts +1 -1
- package/combobox/row/ComboboxRow.d.ts +1 -1
- package/combobox/status/ComboboxStatus.d.ts +1 -1
- package/combobox/store.d.ts +3 -0
- package/combobox/store.js +21 -0
- package/combobox/trigger/ComboboxTrigger.d.ts +14 -1
- package/combobox/trigger/ComboboxTrigger.js +31 -11
- package/combobox/trigger/ComboboxTriggerDataAttributes.d.ts +13 -0
- package/combobox/trigger/ComboboxTriggerDataAttributes.js +13 -0
- package/combobox/utils/stateAttributesMapping.d.ts +14 -0
- package/combobox/utils/stateAttributesMapping.js +18 -0
- package/combobox/value/ComboboxValue.d.ts +5 -0
- package/combobox/value/ComboboxValue.js +15 -6
- package/composite/root/useCompositeRoot.d.ts +1 -1
- package/context-menu/trigger/ContextMenuTrigger.d.ts +1 -1
- package/csp-provider/CSPContext.d.ts +13 -0
- package/csp-provider/CSPContext.js +25 -0
- package/csp-provider/CSPProvider.d.ts +25 -0
- package/csp-provider/CSPProvider.js +32 -0
- package/csp-provider/index.d.ts +2 -0
- package/csp-provider/index.js +12 -0
- package/csp-provider/index.parts.d.ts +1 -0
- package/csp-provider/index.parts.js +12 -0
- package/dialog/backdrop/DialogBackdrop.d.ts +1 -1
- package/dialog/close/DialogClose.d.ts +1 -1
- package/dialog/description/DialogDescription.d.ts +1 -1
- package/dialog/popup/DialogPopup.d.ts +1 -1
- package/dialog/portal/DialogPortal.d.ts +1 -1
- package/dialog/portal/DialogPortal.js +1 -0
- package/dialog/root/DialogRoot.d.ts +4 -4
- package/dialog/store/DialogStore.d.ts +2 -2
- package/dialog/title/DialogTitle.d.ts +1 -1
- package/dialog/viewport/DialogViewport.d.ts +1 -1
- package/esm/accordion/header/AccordionHeader.d.ts +1 -1
- package/esm/accordion/item/AccordionItem.d.ts +1 -1
- package/esm/accordion/panel/AccordionPanel.d.ts +1 -1
- package/esm/accordion/root/AccordionRoot.d.ts +1 -1
- package/esm/accordion/trigger/AccordionTrigger.d.ts +1 -1
- package/esm/accordion/trigger/AccordionTrigger.js +3 -4
- package/esm/alert-dialog/root/AlertDialogRoot.d.ts +3 -3
- package/esm/autocomplete/root/AutocompleteRoot.d.ts +1 -1
- package/esm/avatar/fallback/AvatarFallback.d.ts +1 -1
- package/esm/avatar/image/AvatarImage.d.ts +1 -1
- package/esm/avatar/root/AvatarRoot.d.ts +1 -1
- package/esm/button/Button.d.ts +4 -17
- package/esm/button/Button.js +1 -2
- package/esm/checkbox/indicator/CheckboxIndicator.d.ts +1 -1
- package/esm/checkbox/indicator/CheckboxIndicatorDataAttributes.d.ts +4 -0
- package/esm/checkbox/indicator/CheckboxIndicatorDataAttributes.js +4 -0
- package/esm/checkbox/root/CheckboxRoot.d.ts +1 -1
- package/esm/checkbox/root/CheckboxRoot.js +6 -5
- package/esm/checkbox/root/CheckboxRootDataAttributes.d.ts +4 -0
- package/esm/checkbox/root/CheckboxRootDataAttributes.js +4 -0
- package/esm/checkbox-group/CheckboxGroup.d.ts +1 -1
- package/esm/collapsible/panel/CollapsiblePanel.d.ts +1 -1
- package/esm/collapsible/root/CollapsibleRoot.d.ts +1 -1
- package/esm/collapsible/trigger/CollapsibleTrigger.d.ts +1 -1
- package/esm/collapsible/trigger/CollapsibleTrigger.js +1 -2
- package/esm/combobox/arrow/ComboboxArrow.d.ts +1 -1
- package/esm/combobox/backdrop/ComboboxBackdrop.d.ts +1 -1
- package/esm/combobox/chip/ComboboxChip.d.ts +1 -1
- package/esm/combobox/chip-remove/ComboboxChipRemove.d.ts +1 -1
- package/esm/combobox/chip-remove/ComboboxChipRemove.js +3 -2
- package/esm/combobox/chips/ComboboxChips.d.ts +1 -1
- package/esm/combobox/chips/ComboboxChips.js +7 -1
- package/esm/combobox/clear/ComboboxClear.d.ts +1 -1
- package/esm/combobox/clear/ComboboxClear.js +2 -2
- 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/input/ComboboxInput.d.ts +1 -1
- package/esm/combobox/input/ComboboxInput.js +12 -17
- package/esm/combobox/item/ComboboxItem.d.ts +1 -1
- package/esm/combobox/item/ComboboxItem.js +0 -1
- package/esm/combobox/item-indicator/ComboboxItemIndicator.d.ts +1 -1
- package/esm/combobox/list/ComboboxList.d.ts +1 -1
- package/esm/combobox/popup/ComboboxPopup.d.ts +1 -1
- package/esm/combobox/popup/ComboboxPopup.js +2 -1
- package/esm/combobox/portal/ComboboxPortal.d.ts +1 -1
- package/esm/combobox/positioner/ComboboxPositioner.d.ts +1 -1
- package/esm/combobox/root/AriaCombobox.d.ts +8 -1
- package/esm/combobox/root/AriaCombobox.js +20 -17
- package/esm/combobox/root/ComboboxRoot.d.ts +1 -1
- package/esm/combobox/row/ComboboxRow.d.ts +1 -1
- package/esm/combobox/status/ComboboxStatus.d.ts +1 -1
- package/esm/combobox/store.d.ts +3 -0
- package/esm/combobox/store.js +21 -0
- package/esm/combobox/trigger/ComboboxTrigger.d.ts +14 -1
- package/esm/combobox/trigger/ComboboxTrigger.js +32 -12
- package/esm/combobox/trigger/ComboboxTriggerDataAttributes.d.ts +13 -0
- package/esm/combobox/trigger/ComboboxTriggerDataAttributes.js +13 -0
- package/esm/combobox/utils/stateAttributesMapping.d.ts +14 -0
- package/esm/combobox/utils/stateAttributesMapping.js +12 -0
- package/esm/combobox/value/ComboboxValue.d.ts +5 -0
- package/esm/combobox/value/ComboboxValue.js +16 -7
- package/esm/composite/root/useCompositeRoot.d.ts +1 -1
- package/esm/context-menu/trigger/ContextMenuTrigger.d.ts +1 -1
- package/esm/csp-provider/CSPContext.d.ts +13 -0
- package/esm/csp-provider/CSPContext.js +18 -0
- package/esm/csp-provider/CSPProvider.d.ts +25 -0
- package/esm/csp-provider/CSPProvider.js +27 -0
- package/esm/csp-provider/index.d.ts +2 -0
- package/esm/csp-provider/index.js +1 -0
- package/esm/csp-provider/index.parts.d.ts +1 -0
- package/esm/csp-provider/index.parts.js +1 -0
- package/esm/dialog/backdrop/DialogBackdrop.d.ts +1 -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 +1 -1
- package/esm/dialog/portal/DialogPortal.d.ts +1 -1
- package/esm/dialog/portal/DialogPortal.js +1 -0
- package/esm/dialog/root/DialogRoot.d.ts +4 -4
- package/esm/dialog/store/DialogStore.d.ts +2 -2
- package/esm/dialog/title/DialogTitle.d.ts +1 -1
- package/esm/dialog/viewport/DialogViewport.d.ts +1 -1
- package/esm/field/control/FieldControl.d.ts +1 -1
- package/esm/field/description/FieldDescription.d.ts +1 -1
- package/esm/field/error/FieldError.d.ts +1 -1
- package/esm/field/index.d.ts +2 -1
- package/esm/field/item/FieldItem.d.ts +1 -1
- package/esm/field/label/FieldLabel.d.ts +11 -2
- package/esm/field/label/FieldLabel.js +51 -11
- package/esm/field/root/FieldRoot.d.ts +10 -1
- package/esm/field/root/FieldRoot.js +8 -0
- package/esm/field/useField.js +7 -3
- package/esm/fieldset/legend/FieldsetLegend.d.ts +1 -1
- package/esm/fieldset/root/FieldsetRoot.d.ts +1 -1
- package/esm/floating-ui-react/components/FloatingFocusManager.js +7 -6
- package/esm/floating-ui-react/components/FloatingPortal.d.ts +2 -2
- package/esm/floating-ui-react/components/FloatingPortal.js +11 -2
- package/esm/floating-ui-react/hooks/useClientPoint.js +5 -4
- package/esm/floating-ui-react/hooks/useDismiss.js +16 -3
- package/esm/floating-ui-react/hooks/useFocus.d.ts +5 -0
- package/esm/floating-ui-react/hooks/useFocus.js +43 -9
- package/esm/floating-ui-react/hooks/useHoverReferenceInteraction.js +17 -4
- package/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.js +3 -0
- package/esm/form/Form.d.ts +18 -1
- package/esm/form/Form.js +17 -0
- package/esm/form/FormContext.d.ts +1 -1
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -1
- package/esm/input/Input.d.ts +1 -1
- package/esm/menu/arrow/MenuArrow.d.ts +1 -1
- package/esm/menu/backdrop/MenuBackdrop.d.ts +1 -1
- package/esm/menu/checkbox-item/MenuCheckboxItem.d.ts +1 -1
- package/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.d.ts +1 -1
- package/esm/menu/group/MenuGroup.d.ts +1 -1
- package/esm/menu/group-label/MenuGroupLabel.d.ts +1 -1
- package/esm/menu/item/MenuItem.d.ts +1 -1
- package/esm/menu/popup/MenuPopup.d.ts +1 -1
- package/esm/menu/popup/MenuPopup.js +4 -3
- package/esm/menu/portal/MenuPortal.d.ts +1 -1
- package/esm/menu/positioner/MenuPositioner.d.ts +1 -1
- package/esm/menu/radio-group/MenuRadioGroup.d.ts +1 -1
- package/esm/menu/radio-item/MenuRadioItem.d.ts +1 -1
- package/esm/menu/radio-item-indicator/MenuRadioItemIndicator.d.ts +1 -1
- package/esm/menu/root/MenuRoot.d.ts +7 -6
- package/esm/menu/root/MenuRoot.js +4 -2
- package/esm/menu/store/MenuStore.js +3 -3
- package/esm/menu/submenu-trigger/MenuSubmenuTrigger.d.ts +1 -1
- package/esm/menu/trigger/MenuTrigger.js +13 -13
- package/esm/menubar/Menubar.d.ts +1 -1
- package/esm/merge-props/mergeProps.d.ts +31 -11
- package/esm/merge-props/mergeProps.js +29 -8
- package/esm/meter/indicator/MeterIndicator.d.ts +1 -1
- package/esm/meter/label/MeterLabel.d.ts +1 -1
- package/esm/meter/root/MeterRoot.d.ts +1 -1
- package/esm/meter/track/MeterTrack.d.ts +1 -1
- package/esm/meter/value/MeterValue.d.ts +1 -1
- package/esm/navigation-menu/arrow/NavigationMenuArrow.d.ts +1 -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 +6 -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/popup/NavigationMenuPopup.d.ts +1 -1
- package/esm/navigation-menu/portal/NavigationMenuPortal.d.ts +1 -1
- package/esm/navigation-menu/positioner/NavigationMenuPositioner.d.ts +1 -1
- package/esm/navigation-menu/root/NavigationMenuRoot.d.ts +2 -2
- package/esm/navigation-menu/trigger/NavigationMenuTrigger.d.ts +1 -1
- package/esm/navigation-menu/viewport/NavigationMenuViewport.d.ts +1 -1
- package/esm/number-field/decrement/NumberFieldDecrement.d.ts +1 -1
- package/esm/number-field/decrement/NumberFieldDecrement.js +4 -6
- package/esm/number-field/group/NumberFieldGroup.d.ts +1 -1
- package/esm/number-field/increment/NumberFieldIncrement.d.ts +1 -1
- package/esm/number-field/increment/NumberFieldIncrement.js +4 -6
- package/esm/number-field/input/NumberFieldInput.d.ts +1 -1
- package/esm/number-field/input/NumberFieldInput.js +5 -2
- package/esm/number-field/root/NumberFieldRoot.d.ts +5 -4
- package/esm/number-field/root/NumberFieldRoot.js +12 -5
- package/esm/number-field/root/useNumberFieldButton.d.ts +0 -3
- package/esm/number-field/root/useNumberFieldButton.js +5 -11
- package/esm/number-field/scrub-area/NumberFieldScrubArea.d.ts +1 -1
- package/esm/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.d.ts +1 -1
- package/esm/popover/arrow/PopoverArrow.d.ts +1 -1
- package/esm/popover/backdrop/PopoverBackdrop.d.ts +1 -1
- package/esm/popover/close/PopoverClose.d.ts +1 -1
- package/esm/popover/description/PopoverDescription.d.ts +1 -1
- package/esm/popover/popup/PopoverPopup.d.ts +1 -1
- package/esm/popover/popup/PopoverPopup.js +0 -30
- package/esm/popover/portal/PopoverPortal.d.ts +1 -1
- package/esm/popover/positioner/PopoverPositioner.d.ts +1 -1
- package/esm/popover/positioner/PopoverPositioner.js +2 -1
- package/esm/popover/root/PopoverRoot.d.ts +2 -2
- package/esm/popover/store/PopoverStore.d.ts +4 -2
- package/esm/popover/store/PopoverStore.js +8 -5
- package/esm/popover/title/PopoverTitle.d.ts +1 -1
- package/esm/popover/trigger/PopoverTrigger.js +2 -2
- package/esm/popover/viewport/PopoverViewport.d.ts +1 -1
- package/esm/popover/viewport/PopoverViewport.js +28 -12
- package/esm/preview-card/arrow/PreviewCardArrow.d.ts +1 -1
- package/esm/preview-card/arrow/PreviewCardArrow.js +2 -3
- package/esm/preview-card/backdrop/PreviewCardBackdrop.d.ts +1 -1
- package/esm/preview-card/backdrop/PreviewCardBackdrop.js +4 -5
- package/esm/preview-card/index.parts.d.ts +3 -1
- package/esm/preview-card/index.parts.js +3 -1
- package/esm/preview-card/popup/PreviewCardPopup.d.ts +2 -1
- package/esm/preview-card/popup/PreviewCardPopup.js +17 -11
- package/esm/preview-card/portal/PreviewCardPortal.d.ts +1 -1
- package/esm/preview-card/portal/PreviewCardPortal.js +2 -3
- package/esm/preview-card/positioner/PreviewCardPositioner.d.ts +2 -1
- package/esm/preview-card/positioner/PreviewCardPositioner.js +16 -11
- package/esm/preview-card/root/PreviewCardContext.d.ts +5 -26
- package/esm/preview-card/root/PreviewCardContext.js +2 -2
- package/esm/preview-card/root/PreviewCardRoot.d.ts +35 -10
- package/esm/preview-card/root/PreviewCardRoot.js +61 -116
- package/esm/preview-card/store/PreviewCardHandle.d.ts +33 -0
- package/esm/preview-card/store/PreviewCardHandle.js +55 -0
- package/esm/preview-card/store/PreviewCardStore.d.ts +36 -0
- package/esm/preview-card/store/PreviewCardStore.js +97 -0
- package/esm/preview-card/trigger/PreviewCardTrigger.d.ts +15 -3
- package/esm/preview-card/trigger/PreviewCardTrigger.js +49 -13
- package/esm/preview-card/viewport/PreviewCardViewport.d.ts +22 -0
- package/esm/preview-card/viewport/PreviewCardViewport.js +272 -0
- package/esm/preview-card/viewport/PreviewCardViewportCssVars.d.ts +14 -0
- package/esm/preview-card/viewport/PreviewCardViewportCssVars.js +15 -0
- package/esm/preview-card/viewport/PreviewCardViewportDataAttributes.d.ts +26 -0
- package/esm/preview-card/viewport/PreviewCardViewportDataAttributes.js +27 -0
- package/esm/progress/indicator/ProgressIndicator.d.ts +1 -1
- package/esm/progress/label/ProgressLabel.d.ts +1 -1
- package/esm/progress/root/ProgressRoot.d.ts +1 -1
- package/esm/progress/track/ProgressTrack.d.ts +1 -1
- package/esm/progress/value/ProgressValue.d.ts +1 -1
- package/esm/radio/indicator/RadioIndicator.d.ts +1 -1
- package/esm/radio/root/RadioRoot.d.ts +1 -1
- package/esm/radio/root/RadioRoot.js +9 -9
- package/esm/radio-group/RadioGroup.d.ts +4 -4
- package/esm/radio-group/RadioGroup.js +2 -2
- package/esm/scroll-area/content/ScrollAreaContent.d.ts +1 -1
- package/esm/scroll-area/content/ScrollAreaContent.js +10 -1
- package/esm/scroll-area/corner/ScrollAreaCorner.d.ts +1 -1
- package/esm/scroll-area/corner/ScrollAreaCorner.js +1 -1
- package/esm/scroll-area/root/ScrollAreaRoot.d.ts +26 -2
- package/esm/scroll-area/root/ScrollAreaRoot.js +33 -29
- package/esm/scroll-area/root/ScrollAreaRootContext.d.ts +10 -43
- package/esm/scroll-area/scrollbar/ScrollAreaScrollbar.d.ts +1 -1
- package/esm/scroll-area/scrollbar/ScrollAreaScrollbar.js +4 -4
- package/esm/scroll-area/thumb/ScrollAreaThumb.d.ts +2 -2
- package/esm/scroll-area/thumb/ScrollAreaThumb.js +1 -1
- package/esm/scroll-area/viewport/ScrollAreaViewport.d.ts +1 -1
- package/esm/scroll-area/viewport/ScrollAreaViewport.js +51 -25
- package/esm/select/arrow/SelectArrow.d.ts +1 -1
- package/esm/select/backdrop/SelectBackdrop.d.ts +1 -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/item/SelectItem.d.ts +1 -1
- package/esm/select/item/SelectItem.js +0 -1
- package/esm/select/item-indicator/SelectItemIndicator.d.ts +1 -1
- package/esm/select/item-text/SelectItemText.d.ts +1 -1
- package/esm/select/list/SelectList.d.ts +1 -1
- package/esm/select/popup/SelectPopup.d.ts +1 -1
- package/esm/select/popup/SelectPopup.js +154 -95
- package/esm/select/portal/SelectPortal.d.ts +1 -1
- package/esm/select/positioner/SelectPositioner.d.ts +1 -1
- package/esm/select/root/SelectRoot.d.ts +2 -2
- package/esm/select/root/SelectRoot.js +26 -13
- package/esm/select/scroll-arrow/SelectScrollArrow.d.ts +1 -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 +2 -1
- package/esm/select/store.js +19 -13
- package/esm/select/trigger/SelectTrigger.d.ts +14 -4
- package/esm/select/trigger/SelectTrigger.js +50 -18
- package/esm/select/value/SelectValue.d.ts +6 -1
- package/esm/select/value/SelectValue.js +19 -5
- package/esm/separator/Separator.d.ts +1 -1
- package/esm/slider/control/SliderControl.d.ts +1 -1
- package/esm/slider/control/SliderControl.js +1 -1
- package/esm/slider/control/SliderControlDataAttributes.d.ts +0 -8
- package/esm/slider/control/SliderControlDataAttributes.js +0 -8
- package/esm/slider/indicator/SliderIndicator.d.ts +1 -1
- package/esm/slider/indicator/SliderIndicatorDataAttributes.d.ts +0 -8
- package/esm/slider/indicator/SliderIndicatorDataAttributes.js +0 -8
- package/esm/slider/root/SliderRootDataAttributes.d.ts +0 -8
- package/esm/slider/root/SliderRootDataAttributes.js +0 -8
- package/esm/slider/thumb/SliderThumb.d.ts +2 -2
- package/esm/slider/thumb/SliderThumb.js +7 -1
- package/esm/slider/thumb/SliderThumbDataAttributes.d.ts +0 -8
- package/esm/slider/thumb/SliderThumbDataAttributes.js +0 -8
- package/esm/slider/track/SliderTrack.d.ts +1 -1
- package/esm/slider/track/SliderTrackDataAttributes.d.ts +0 -8
- package/esm/slider/track/SliderTrackDataAttributes.js +0 -8
- package/esm/slider/value/SliderValue.d.ts +1 -1
- package/esm/slider/value/SliderValueDataAttributes.d.ts +0 -8
- package/esm/slider/value/SliderValueDataAttributes.js +0 -8
- package/esm/switch/root/SwitchRoot.d.ts +6 -1
- package/esm/switch/root/SwitchRoot.js +15 -6
- package/esm/switch/thumb/SwitchThumb.d.ts +1 -1
- package/esm/tabs/indicator/TabsIndicator.d.ts +1 -1
- package/esm/tabs/indicator/TabsIndicator.js +6 -0
- package/esm/tabs/list/TabsList.d.ts +1 -1
- package/esm/tabs/panel/TabsPanel.d.ts +1 -1
- package/esm/tabs/root/TabsRoot.d.ts +1 -1
- package/esm/tabs/tab/TabsTab.d.ts +1 -1
- package/esm/toast/action/ToastAction.d.ts +1 -1
- package/esm/toast/arrow/ToastArrow.d.ts +1 -1
- package/esm/toast/close/ToastClose.d.ts +1 -1
- package/esm/toast/content/ToastContent.d.ts +1 -1
- package/esm/toast/description/ToastDescription.d.ts +1 -1
- package/esm/toast/portal/ToastPortal.d.ts +1 -1
- package/esm/toast/positioner/ToastPositioner.d.ts +1 -1
- package/esm/toast/provider/ToastProvider.js +46 -19
- package/esm/toast/root/ToastRoot.d.ts +1 -1
- package/esm/toast/title/ToastTitle.d.ts +1 -1
- 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 +1 -1
- package/esm/toolbar/group/ToolbarGroup.d.ts +1 -1
- package/esm/toolbar/input/ToolbarInput.d.ts +1 -1
- package/esm/toolbar/link/ToolbarLink.d.ts +1 -1
- package/esm/toolbar/root/ToolbarRoot.d.ts +1 -1
- package/esm/toolbar/separator/ToolbarSeparator.d.ts +1 -1
- package/esm/tooltip/arrow/TooltipArrow.d.ts +1 -1
- package/esm/tooltip/popup/TooltipPopup.d.ts +1 -1
- package/esm/tooltip/popup/TooltipPopup.js +0 -31
- package/esm/tooltip/portal/TooltipPortal.d.ts +1 -1
- package/esm/tooltip/positioner/TooltipPositioner.d.ts +1 -1
- package/esm/tooltip/positioner/TooltipPositioner.js +2 -1
- package/esm/tooltip/root/TooltipRoot.d.ts +4 -6
- package/esm/tooltip/root/TooltipRoot.js +1 -2
- package/esm/tooltip/store/TooltipStore.d.ts +4 -2
- package/esm/tooltip/store/TooltipStore.js +7 -4
- package/esm/tooltip/trigger/TooltipTrigger.js +1 -1
- package/esm/tooltip/viewport/TooltipViewport.d.ts +1 -1
- package/esm/tooltip/viewport/TooltipViewport.js +28 -12
- package/esm/use-render/index.d.ts +2 -1
- package/esm/use-render/index.js +2 -1
- package/esm/utils/FloatingPortalLite.d.ts +1 -1
- package/esm/utils/popups/popupStoreUtils.js +21 -2
- package/esm/utils/resolveValueLabel.d.ts +5 -1
- package/esm/utils/resolveValueLabel.js +46 -22
- package/esm/utils/styles.d.ts +1 -1
- package/esm/utils/styles.js +10 -6
- package/esm/utils/types.d.ts +1 -1
- package/esm/utils/useAnimationsFinished.d.ts +2 -2
- package/esm/utils/useAnimationsFinished.js +56 -33
- package/esm/utils/useOpenChangeComplete.js +8 -10
- package/esm/utils/useOpenInteractionType.js +6 -1
- package/esm/utils/usePopupAutoResize.js +82 -46
- package/field/control/FieldControl.d.ts +1 -1
- package/field/description/FieldDescription.d.ts +1 -1
- package/field/error/FieldError.d.ts +1 -1
- package/field/index.d.ts +2 -1
- package/field/item/FieldItem.d.ts +1 -1
- package/field/label/FieldLabel.d.ts +11 -2
- package/field/label/FieldLabel.js +51 -11
- package/field/root/FieldRoot.d.ts +10 -1
- package/field/root/FieldRoot.js +8 -0
- package/field/useField.js +7 -3
- package/fieldset/legend/FieldsetLegend.d.ts +1 -1
- package/fieldset/root/FieldsetRoot.d.ts +1 -1
- package/floating-ui-react/components/FloatingFocusManager.js +7 -6
- package/floating-ui-react/components/FloatingPortal.d.ts +2 -2
- package/floating-ui-react/components/FloatingPortal.js +11 -2
- package/floating-ui-react/hooks/useClientPoint.js +5 -4
- package/floating-ui-react/hooks/useDismiss.js +16 -3
- package/floating-ui-react/hooks/useFocus.d.ts +5 -0
- package/floating-ui-react/hooks/useFocus.js +43 -9
- package/floating-ui-react/hooks/useHoverReferenceInteraction.js +17 -4
- package/floating-ui-react/hooks/useSyncedFloatingRootContext.js +3 -0
- package/form/Form.d.ts +18 -1
- package/form/Form.js +17 -0
- package/form/FormContext.d.ts +1 -1
- package/index.d.ts +1 -0
- package/index.js +12 -1
- package/input/Input.d.ts +1 -1
- package/menu/arrow/MenuArrow.d.ts +1 -1
- package/menu/backdrop/MenuBackdrop.d.ts +1 -1
- package/menu/checkbox-item/MenuCheckboxItem.d.ts +1 -1
- package/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.d.ts +1 -1
- package/menu/group/MenuGroup.d.ts +1 -1
- package/menu/group-label/MenuGroupLabel.d.ts +1 -1
- package/menu/item/MenuItem.d.ts +1 -1
- package/menu/popup/MenuPopup.d.ts +1 -1
- package/menu/popup/MenuPopup.js +4 -3
- package/menu/portal/MenuPortal.d.ts +1 -1
- package/menu/positioner/MenuPositioner.d.ts +1 -1
- package/menu/radio-group/MenuRadioGroup.d.ts +1 -1
- package/menu/radio-item/MenuRadioItem.d.ts +1 -1
- package/menu/radio-item-indicator/MenuRadioItemIndicator.d.ts +1 -1
- package/menu/root/MenuRoot.d.ts +7 -6
- package/menu/root/MenuRoot.js +4 -2
- package/menu/store/MenuStore.js +3 -3
- package/menu/submenu-trigger/MenuSubmenuTrigger.d.ts +1 -1
- package/menu/trigger/MenuTrigger.js +14 -14
- package/menubar/Menubar.d.ts +1 -1
- package/merge-props/mergeProps.d.ts +31 -11
- package/merge-props/mergeProps.js +29 -8
- package/meter/indicator/MeterIndicator.d.ts +1 -1
- package/meter/label/MeterLabel.d.ts +1 -1
- package/meter/root/MeterRoot.d.ts +1 -1
- package/meter/track/MeterTrack.d.ts +1 -1
- package/meter/value/MeterValue.d.ts +1 -1
- package/navigation-menu/arrow/NavigationMenuArrow.d.ts +1 -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 +6 -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/popup/NavigationMenuPopup.d.ts +1 -1
- package/navigation-menu/portal/NavigationMenuPortal.d.ts +1 -1
- package/navigation-menu/positioner/NavigationMenuPositioner.d.ts +1 -1
- package/navigation-menu/root/NavigationMenuRoot.d.ts +2 -2
- package/navigation-menu/trigger/NavigationMenuTrigger.d.ts +1 -1
- package/navigation-menu/viewport/NavigationMenuViewport.d.ts +1 -1
- package/number-field/decrement/NumberFieldDecrement.d.ts +1 -1
- package/number-field/decrement/NumberFieldDecrement.js +4 -6
- package/number-field/group/NumberFieldGroup.d.ts +1 -1
- package/number-field/increment/NumberFieldIncrement.d.ts +1 -1
- package/number-field/increment/NumberFieldIncrement.js +4 -6
- package/number-field/input/NumberFieldInput.d.ts +1 -1
- package/number-field/input/NumberFieldInput.js +5 -2
- package/number-field/root/NumberFieldRoot.d.ts +5 -4
- package/number-field/root/NumberFieldRoot.js +11 -4
- package/number-field/root/useNumberFieldButton.d.ts +0 -3
- package/number-field/root/useNumberFieldButton.js +5 -11
- package/number-field/scrub-area/NumberFieldScrubArea.d.ts +1 -1
- package/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.d.ts +1 -1
- package/package.json +13 -3
- package/popover/arrow/PopoverArrow.d.ts +1 -1
- package/popover/backdrop/PopoverBackdrop.d.ts +1 -1
- package/popover/close/PopoverClose.d.ts +1 -1
- package/popover/description/PopoverDescription.d.ts +1 -1
- package/popover/popup/PopoverPopup.d.ts +1 -1
- package/popover/popup/PopoverPopup.js +0 -30
- package/popover/portal/PopoverPortal.d.ts +1 -1
- package/popover/positioner/PopoverPositioner.d.ts +1 -1
- package/popover/positioner/PopoverPositioner.js +2 -1
- package/popover/root/PopoverRoot.d.ts +2 -2
- package/popover/store/PopoverStore.d.ts +4 -2
- package/popover/store/PopoverStore.js +8 -5
- package/popover/title/PopoverTitle.d.ts +1 -1
- package/popover/trigger/PopoverTrigger.js +2 -2
- package/popover/viewport/PopoverViewport.d.ts +1 -1
- package/popover/viewport/PopoverViewport.js +28 -12
- package/preview-card/arrow/PreviewCardArrow.d.ts +1 -1
- package/preview-card/arrow/PreviewCardArrow.js +2 -3
- package/preview-card/backdrop/PreviewCardBackdrop.d.ts +1 -1
- package/preview-card/backdrop/PreviewCardBackdrop.js +4 -5
- package/preview-card/index.parts.d.ts +3 -1
- package/preview-card/index.parts.js +21 -1
- package/preview-card/popup/PreviewCardPopup.d.ts +2 -1
- package/preview-card/popup/PreviewCardPopup.js +17 -11
- package/preview-card/portal/PreviewCardPortal.d.ts +1 -1
- package/preview-card/portal/PreviewCardPortal.js +2 -3
- package/preview-card/positioner/PreviewCardPositioner.d.ts +2 -1
- package/preview-card/positioner/PreviewCardPositioner.js +16 -11
- package/preview-card/root/PreviewCardContext.d.ts +5 -26
- package/preview-card/root/PreviewCardContext.js +2 -2
- package/preview-card/root/PreviewCardRoot.d.ts +35 -10
- package/preview-card/root/PreviewCardRoot.js +59 -113
- package/preview-card/store/PreviewCardHandle.d.ts +33 -0
- package/preview-card/store/PreviewCardHandle.js +63 -0
- package/preview-card/store/PreviewCardStore.d.ts +36 -0
- package/preview-card/store/PreviewCardStore.js +105 -0
- package/preview-card/trigger/PreviewCardTrigger.d.ts +15 -3
- package/preview-card/trigger/PreviewCardTrigger.js +50 -13
- package/preview-card/viewport/PreviewCardViewport.d.ts +22 -0
- package/preview-card/viewport/PreviewCardViewport.js +278 -0
- package/preview-card/viewport/PreviewCardViewportCssVars.d.ts +14 -0
- package/preview-card/viewport/PreviewCardViewportCssVars.js +21 -0
- package/preview-card/viewport/PreviewCardViewportDataAttributes.d.ts +26 -0
- package/preview-card/viewport/PreviewCardViewportDataAttributes.js +33 -0
- package/progress/indicator/ProgressIndicator.d.ts +1 -1
- package/progress/label/ProgressLabel.d.ts +1 -1
- package/progress/root/ProgressRoot.d.ts +1 -1
- package/progress/track/ProgressTrack.d.ts +1 -1
- package/progress/value/ProgressValue.d.ts +1 -1
- package/radio/indicator/RadioIndicator.d.ts +1 -1
- package/radio/root/RadioRoot.d.ts +1 -1
- package/radio/root/RadioRoot.js +8 -8
- package/radio-group/RadioGroup.d.ts +4 -4
- package/radio-group/RadioGroup.js +1 -1
- package/scroll-area/content/ScrollAreaContent.d.ts +1 -1
- package/scroll-area/content/ScrollAreaContent.js +10 -1
- package/scroll-area/corner/ScrollAreaCorner.d.ts +1 -1
- package/scroll-area/corner/ScrollAreaCorner.js +1 -1
- package/scroll-area/root/ScrollAreaRoot.d.ts +26 -2
- package/scroll-area/root/ScrollAreaRoot.js +33 -29
- package/scroll-area/root/ScrollAreaRootContext.d.ts +10 -43
- package/scroll-area/scrollbar/ScrollAreaScrollbar.d.ts +1 -1
- package/scroll-area/scrollbar/ScrollAreaScrollbar.js +4 -4
- package/scroll-area/thumb/ScrollAreaThumb.d.ts +2 -2
- package/scroll-area/thumb/ScrollAreaThumb.js +1 -1
- package/scroll-area/viewport/ScrollAreaViewport.d.ts +1 -1
- package/scroll-area/viewport/ScrollAreaViewport.js +51 -25
- package/select/arrow/SelectArrow.d.ts +1 -1
- package/select/backdrop/SelectBackdrop.d.ts +1 -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/item/SelectItem.d.ts +1 -1
- package/select/item/SelectItem.js +0 -1
- package/select/item-indicator/SelectItemIndicator.d.ts +1 -1
- package/select/item-text/SelectItemText.d.ts +1 -1
- package/select/list/SelectList.d.ts +1 -1
- package/select/popup/SelectPopup.d.ts +1 -1
- package/select/popup/SelectPopup.js +154 -95
- package/select/portal/SelectPortal.d.ts +1 -1
- package/select/positioner/SelectPositioner.d.ts +1 -1
- package/select/root/SelectRoot.d.ts +2 -2
- package/select/root/SelectRoot.js +24 -11
- package/select/scroll-arrow/SelectScrollArrow.d.ts +1 -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 +2 -1
- package/select/store.js +18 -12
- package/select/trigger/SelectTrigger.d.ts +14 -4
- package/select/trigger/SelectTrigger.js +50 -18
- package/select/value/SelectValue.d.ts +6 -1
- package/select/value/SelectValue.js +18 -4
- package/separator/Separator.d.ts +1 -1
- package/slider/control/SliderControl.d.ts +1 -1
- package/slider/control/SliderControl.js +1 -1
- package/slider/control/SliderControlDataAttributes.d.ts +0 -8
- package/slider/control/SliderControlDataAttributes.js +0 -8
- package/slider/indicator/SliderIndicator.d.ts +1 -1
- package/slider/indicator/SliderIndicatorDataAttributes.d.ts +0 -8
- package/slider/indicator/SliderIndicatorDataAttributes.js +0 -8
- package/slider/root/SliderRootDataAttributes.d.ts +0 -8
- package/slider/root/SliderRootDataAttributes.js +0 -8
- package/slider/thumb/SliderThumb.d.ts +2 -2
- package/slider/thumb/SliderThumb.js +7 -1
- package/slider/thumb/SliderThumbDataAttributes.d.ts +0 -8
- package/slider/thumb/SliderThumbDataAttributes.js +0 -8
- package/slider/track/SliderTrack.d.ts +1 -1
- package/slider/track/SliderTrackDataAttributes.d.ts +0 -8
- package/slider/track/SliderTrackDataAttributes.js +0 -8
- package/slider/value/SliderValue.d.ts +1 -1
- package/slider/value/SliderValueDataAttributes.d.ts +0 -8
- package/slider/value/SliderValueDataAttributes.js +0 -8
- package/switch/root/SwitchRoot.d.ts +6 -1
- package/switch/root/SwitchRoot.js +14 -5
- package/switch/thumb/SwitchThumb.d.ts +1 -1
- package/tabs/indicator/TabsIndicator.d.ts +1 -1
- package/tabs/indicator/TabsIndicator.js +6 -0
- package/tabs/list/TabsList.d.ts +1 -1
- package/tabs/panel/TabsPanel.d.ts +1 -1
- package/tabs/root/TabsRoot.d.ts +1 -1
- package/tabs/tab/TabsTab.d.ts +1 -1
- package/toast/action/ToastAction.d.ts +1 -1
- package/toast/arrow/ToastArrow.d.ts +1 -1
- package/toast/close/ToastClose.d.ts +1 -1
- package/toast/content/ToastContent.d.ts +1 -1
- package/toast/description/ToastDescription.d.ts +1 -1
- package/toast/portal/ToastPortal.d.ts +1 -1
- package/toast/positioner/ToastPositioner.d.ts +1 -1
- package/toast/provider/ToastProvider.js +46 -19
- package/toast/root/ToastRoot.d.ts +1 -1
- package/toast/title/ToastTitle.d.ts +1 -1
- 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 +1 -1
- package/toolbar/group/ToolbarGroup.d.ts +1 -1
- package/toolbar/input/ToolbarInput.d.ts +1 -1
- package/toolbar/link/ToolbarLink.d.ts +1 -1
- package/toolbar/root/ToolbarRoot.d.ts +1 -1
- package/toolbar/separator/ToolbarSeparator.d.ts +1 -1
- package/tooltip/arrow/TooltipArrow.d.ts +1 -1
- package/tooltip/popup/TooltipPopup.d.ts +1 -1
- package/tooltip/popup/TooltipPopup.js +0 -31
- package/tooltip/portal/TooltipPortal.d.ts +1 -1
- package/tooltip/positioner/TooltipPositioner.d.ts +1 -1
- package/tooltip/positioner/TooltipPositioner.js +2 -1
- package/tooltip/root/TooltipRoot.d.ts +4 -6
- package/tooltip/root/TooltipRoot.js +1 -2
- package/tooltip/store/TooltipStore.d.ts +4 -2
- package/tooltip/store/TooltipStore.js +7 -4
- package/tooltip/trigger/TooltipTrigger.js +1 -1
- package/tooltip/viewport/TooltipViewport.d.ts +1 -1
- package/tooltip/viewport/TooltipViewport.js +28 -12
- package/use-render/index.d.ts +2 -1
- package/utils/FloatingPortalLite.d.ts +1 -1
- package/utils/popups/popupStoreUtils.js +21 -2
- package/utils/resolveValueLabel.d.ts +5 -1
- package/utils/resolveValueLabel.js +48 -22
- package/utils/styles.d.ts +1 -1
- package/utils/styles.js +10 -6
- package/utils/types.d.ts +1 -1
- package/utils/useAnimationsFinished.d.ts +2 -2
- package/utils/useAnimationsFinished.js +56 -33
- package/utils/useOpenChangeComplete.js +8 -10
- package/utils/useOpenInteractionType.js +6 -1
- package/utils/usePopupAutoResize.js +82 -46
- package/esm/utils/interactions/useFocusWithDelay.d.ts +0 -9
- package/esm/utils/interactions/useFocusWithDelay.js +0 -81
- package/utils/interactions/useFocusWithDelay.d.ts +0 -9
- package/utils/interactions/useFocusWithDelay.js +0 -87
- /package/esm/utils/{useMixedToggleClickHander.d.ts → useMixedToggleClickHandler.d.ts} +0 -0
- /package/esm/utils/{useMixedToggleClickHander.js → useMixedToggleClickHandler.js} +0 -0
- /package/utils/{useMixedToggleClickHander.d.ts → useMixedToggleClickHandler.d.ts} +0 -0
- /package/utils/{useMixedToggleClickHander.js → useMixedToggleClickHandler.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,153 @@
|
|
|
1
1
|
# Versions
|
|
2
2
|
|
|
3
|
-
## v1.
|
|
3
|
+
## v1.1.0
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
_Jan 15, 2026_
|
|
6
|
+
|
|
7
|
+
### General changes
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
- Fix `onOpenChangeComplete(true)` timing (#3558) by @atomiks
|
|
10
|
+
- Fix touch `openMethod` when tapping outside element bounds on Safari (#3541) by @atomiks
|
|
11
|
+
- Fix visually hidden input styles across form components (#3606) by @atomiks
|
|
12
|
+
- Fix click and drags outside a nested popup component from closing its parents (#3571) by @atomiks
|
|
13
|
+
- Fix forwarded ref types (#3638) by @atomiks
|
|
14
|
+
- Fix detached trigger remounting (#3724) by @atomiks
|
|
15
|
+
- Include `ref` in `BaseUIComponentProps` (#2813) by @atomiks
|
|
16
|
+
- Remove duplicated `disabled` prop (#3650) by @seongminn
|
|
17
|
+
- Allow `actionsRef` to be `null` (#3682) by @mj12albert
|
|
8
18
|
|
|
9
|
-
|
|
19
|
+
### Accordion
|
|
20
|
+
|
|
21
|
+
- Fix keyboard navigation with non-interactive trigger elements (#3684) by @ZeeshanTamboli
|
|
22
|
+
|
|
23
|
+
### Autocomplete
|
|
24
|
+
|
|
25
|
+
- Add `data-popup-side` and `data-list-empty` state attributes to `<Autocomplete.Trigger>` (#3491) by @atomiks
|
|
26
|
+
- Add `loopFocus` prop (#3592) by @atomiks
|
|
27
|
+
- Fix hidden input `id` and `required` props (#3640) by @atomiks
|
|
28
|
+
|
|
29
|
+
### Button
|
|
30
|
+
|
|
31
|
+
- Remove discriminated props union (#3643) by @atomiks
|
|
32
|
+
|
|
33
|
+
### Checkbox
|
|
34
|
+
|
|
35
|
+
- Fix hidden input `id` and `required` props (#3640) by @atomiks
|
|
36
|
+
|
|
37
|
+
### Combobox
|
|
38
|
+
|
|
39
|
+
- Add `data-popup-side` and `data-list-empty` state attributes to `<Combobox.Trigger>` (#3491) by @atomiks
|
|
40
|
+
- Add `loopFocus` prop (#3592) by @atomiks
|
|
41
|
+
- Add `toolbar` role to `<Combobox.Chips>` to prevent NVDA from entering browse mode (#3647) by @atomiks
|
|
42
|
+
- Add `placeholder` prop to `<Combobox.Value>` (#3604) by @atomiks
|
|
43
|
+
- Fix controlled `value` prop when `items` change (#3607) by @atomiks
|
|
44
|
+
- Fix `multiple` values label resolution in `<Combobox.Value>` (#3314) by @atomiks
|
|
45
|
+
- Forward root `id` to visible form element (#3722) by @atomiks
|
|
46
|
+
- Do not trigger Field `onBlur` handlers when opening popup (#3609) by @atomiks
|
|
47
|
+
|
|
48
|
+
### Context Menu
|
|
49
|
+
|
|
50
|
+
- Avoid creating sibling elements next to trigger (#3645) by @atomiks
|
|
51
|
+
|
|
52
|
+
### CSP Provider
|
|
53
|
+
|
|
54
|
+
- Add `CSPProvider` (#3553) by @atomiks
|
|
55
|
+
|
|
56
|
+
### Dialog
|
|
57
|
+
|
|
58
|
+
- Fix `Maximum update depth exceeded` error with Suspense (#3700) by @michaldudak
|
|
59
|
+
- Fix `<Dialog.Title>` forwardedRef type (#3736) by @ZeeshanTamboli
|
|
60
|
+
|
|
61
|
+
### Field
|
|
62
|
+
|
|
63
|
+
- Add `actionsRef` prop (#3395) by @mj12albert
|
|
64
|
+
- Add `nativeLabel` prop to `<Field.Label>` (#3723) by @atomiks
|
|
65
|
+
- Add missing type export (#3702) by @DiegoAndai
|
|
66
|
+
|
|
67
|
+
### Form
|
|
68
|
+
|
|
69
|
+
- Add `actionsRef` prop (#3395) by @mj12albert
|
|
70
|
+
|
|
71
|
+
### Menu
|
|
72
|
+
|
|
73
|
+
- Fix focus guard handling (#3654) by @atomiks
|
|
74
|
+
- Avoid disabling modality on click after hover-open (#3455) by @atomiks
|
|
75
|
+
|
|
76
|
+
### Menubar
|
|
77
|
+
|
|
78
|
+
- Fix submenu outside-press dismiss on touch (#3556) by @atomiks
|
|
79
|
+
|
|
80
|
+
### Number Field
|
|
81
|
+
|
|
82
|
+
- Fix Field `data-focused` state (#3563) by @atomiks
|
|
83
|
+
- Fix hidden input focus on submit (#3581) by @atomiks
|
|
84
|
+
|
|
85
|
+
### Popover
|
|
86
|
+
|
|
87
|
+
- Fix popup auto resize glitches (#3591) by @atomiks
|
|
88
|
+
- Fix focus guard handling (#3654) by @atomiks
|
|
89
|
+
- Prevent disabling focus management when clicking trigger before hover delay completes (#3572) by @atomiks
|
|
90
|
+
- Refactor popup auto resize logic. It is no longer necessary to specify `--positioner-width`/`--positioner-height` CSS variables on `<Popover.Positioner>` when using detached triggers unless the `Viewport` part has been added to the JSX. (#3652) by @atomiks
|
|
91
|
+
|
|
92
|
+
### Preview Card
|
|
93
|
+
|
|
94
|
+
- Support detached triggers (#3566) by @michaldudak and @atomiks
|
|
95
|
+
|
|
96
|
+
### Radio Group
|
|
97
|
+
|
|
98
|
+
- Fix `value` type (#3582) by @atomiks
|
|
99
|
+
- Fix hidden input `id` and `required` props (#3640) by @atomiks
|
|
100
|
+
|
|
101
|
+
### Scroll Area
|
|
102
|
+
|
|
103
|
+
- Perf improvements (#3536) by @atomiks
|
|
104
|
+
|
|
105
|
+
### Select
|
|
106
|
+
|
|
107
|
+
- Add `placeholder` prop to `<Select.Value>` (#3604) by @atomiks
|
|
108
|
+
- Fix support for transform animations when `alignItemWithTrigger` is active (#3532) by @atomiks
|
|
109
|
+
- Fix support for `max-height` popup style when `alignItemWithTrigger` is active (#3573) by @atomiks
|
|
110
|
+
- Fix `data-filled` state in `multiple` mode (#3608) by @atomiks
|
|
111
|
+
- Fix highlight being removed on popup mouseout when `highlightItemOnHover` is disabled (#3492) by @atomiks
|
|
112
|
+
- Fix support for individual transform animations when `alignItemWithTrigger` is active (#3637) by @atomiks
|
|
113
|
+
- Fix `multiple` values label resolution in `<Select.Value>` (#3314) by @atomiks
|
|
114
|
+
- Forward root `id` to visible form element (#3722) by @atomiks
|
|
115
|
+
- Do not trigger Field `onBlur` handlers when opening popup (#3609) by @atomiks
|
|
116
|
+
|
|
117
|
+
### Slider
|
|
118
|
+
|
|
119
|
+
- Fix `onValueCommitted` not called for range sliders (#3600) by @mj12albert
|
|
120
|
+
|
|
121
|
+
### Switch
|
|
122
|
+
|
|
123
|
+
- Add `value` prop (#3676) by @Grafikart
|
|
124
|
+
- Fix hidden input `id` and `required` props (#3640) by @atomiks
|
|
125
|
+
|
|
126
|
+
### Toast
|
|
127
|
+
|
|
128
|
+
- Fix timers not being rescheduled when updated (#3564) by @atomiks
|
|
129
|
+
|
|
130
|
+
### Tooltip
|
|
131
|
+
|
|
132
|
+
- Fix popup auto resize glitches (#3591) by @atomiks
|
|
133
|
+
- Fix `trackCursorAxis` handling (#3679) by @atomiks
|
|
134
|
+
- Refactor popup auto resize logic. It is no longer necessary to specify `--positioner-width`/`--positioner-height` CSS variables on `<Tooltip.Positioner>` when using detached triggers unless the `Viewport` part has been added to the JSX. (#3652) by @atomiks
|
|
135
|
+
|
|
136
|
+
### mergeProps
|
|
137
|
+
|
|
138
|
+
- Make `mergeProps` public (#3642) by @michaldudak and @LukasTy
|
|
139
|
+
|
|
140
|
+
### useRender
|
|
141
|
+
|
|
142
|
+
- Export missing types (#3565) by @michaldudak
|
|
143
|
+
|
|
144
|
+
All contributors of this release in alphabetical order: @albertdugba, @atomiks, @brijeshb42, @chuganzy, @colmtuite, @dav-is, @DiegoAndai, @Grafikart, @Janpot, @LukasTy, @michaldudak, @mj12albert, @oliviertassinari, @seongminn, @updbqn, @ZeeshanTamboli
|
|
145
|
+
|
|
146
|
+
## v1.0.0
|
|
10
147
|
|
|
11
148
|
_Dec 11, 2025_
|
|
12
149
|
|
|
13
|
-
### General
|
|
150
|
+
### General changes
|
|
14
151
|
|
|
15
152
|
- **Breaking change:** Rename packages to use the `@base-ui` org.<br />
|
|
16
153
|
The package name has changed from `@base-ui-components/react` to `@base-ui/react`.
|
|
@@ -69,6 +206,20 @@ _Dec 11, 2025_
|
|
|
69
206
|
|
|
70
207
|
All contributors of this release in alphabetical order: @atomiks, @LukasTy, @michaldudak, @mj12albert, @mnajdova, @oliviertassinari, @pondorasti, @romgrk, @ZeeshanTamboli
|
|
71
208
|
|
|
209
|
+
## v1.0.0-rc.2
|
|
210
|
+
|
|
211
|
+
_Dec 11, 2025_
|
|
212
|
+
|
|
213
|
+
This release contains the same code as v1.0.0.
|
|
214
|
+
Please refer to that version to see the changes.
|
|
215
|
+
|
|
216
|
+
## v1.0.0-rc.1
|
|
217
|
+
|
|
218
|
+
_Dec 11, 2025_
|
|
219
|
+
|
|
220
|
+
This release contains the same code as v1.0.0.
|
|
221
|
+
Please refer to that version to see the changes.
|
|
222
|
+
|
|
72
223
|
## v1.0.0-rc.0
|
|
73
224
|
|
|
74
225
|
_Dec 4, 2025_
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Use the "base-ui" tag on Stack Overflow to make it easier for the community to
|
|
|
25
25
|
|
|
26
26
|
## Contributing
|
|
27
27
|
|
|
28
|
-
Read the [contributing guide](
|
|
28
|
+
Read the [contributing guide](../../CONTRIBUTING.md) to learn about our development process, how to propose bug fixes and improvements, and how to build and test your changes.
|
|
29
29
|
|
|
30
30
|
Contributing to Base UI is about more than just issues and pull requests!
|
|
31
31
|
There are many other ways to [support Base UI](https://mui.com/material-ui/getting-started/faq/#mui-is-awesome-how-can-i-support-the-project) beyond contributing to the code base.
|
|
@@ -40,8 +40,7 @@ Future plans and high-priority features and enhancements can be found in the [ro
|
|
|
40
40
|
|
|
41
41
|
## License
|
|
42
42
|
|
|
43
|
-
This project is licensed under the terms of the
|
|
44
|
-
[MIT license](/LICENSE).
|
|
43
|
+
This project is licensed under the terms of the [MIT license](../../LICENSE).
|
|
45
44
|
|
|
46
45
|
## Security
|
|
47
46
|
|
|
@@ -7,7 +7,7 @@ import type { AccordionItem } from "../item/AccordionItem.js";
|
|
|
7
7
|
*
|
|
8
8
|
* Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
|
|
9
9
|
*/
|
|
10
|
-
export declare const AccordionHeader: React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
export declare const AccordionHeader: React.ForwardRefExoticComponent<Omit<AccordionHeaderProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
11
11
|
export interface AccordionHeaderProps extends BaseUIComponentProps<'h3', AccordionItem.State> {}
|
|
12
12
|
export declare namespace AccordionHeader {
|
|
13
13
|
type Props = AccordionHeaderProps;
|
|
@@ -10,7 +10,7 @@ import { REASONS } from "../../utils/reasons.js";
|
|
|
10
10
|
*
|
|
11
11
|
* Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
|
|
12
12
|
*/
|
|
13
|
-
export declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export interface AccordionItemState extends AccordionRoot.State {
|
|
15
15
|
index: number;
|
|
16
16
|
open: boolean;
|
|
@@ -9,7 +9,7 @@ import type { TransitionStatus } from "../../utils/useTransitionStatus.js";
|
|
|
9
9
|
*
|
|
10
10
|
* Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
|
|
11
11
|
*/
|
|
12
|
-
export declare const AccordionPanel: React.ForwardRefExoticComponent<AccordionPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const AccordionPanel: React.ForwardRefExoticComponent<Omit<AccordionPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export interface AccordionPanelState extends AccordionItem.State {
|
|
14
14
|
transitionStatus: TransitionStatus;
|
|
15
15
|
}
|
|
@@ -8,7 +8,7 @@ import { REASONS } from "../../utils/reasons.js";
|
|
|
8
8
|
*
|
|
9
9
|
* Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
|
|
10
10
|
*/
|
|
11
|
-
export declare const AccordionRoot: React.ForwardRefExoticComponent<AccordionRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const AccordionRoot: React.ForwardRefExoticComponent<Omit<AccordionRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export type AccordionValue = (any | null)[];
|
|
13
13
|
export interface AccordionRootState {
|
|
14
14
|
value: AccordionValue;
|
|
@@ -7,7 +7,7 @@ import type { AccordionItem } from "../item/AccordionItem.js";
|
|
|
7
7
|
*
|
|
8
8
|
* Documentation: [Base UI Accordion](https://base-ui.com/react/components/accordion)
|
|
9
9
|
*/
|
|
10
|
-
export declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<
|
|
10
|
+
export declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
11
11
|
export interface AccordionTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', AccordionItem.State> {}
|
|
12
12
|
export declare namespace AccordionTrigger {
|
|
13
13
|
type Props = AccordionTriggerProps;
|
|
@@ -25,8 +25,8 @@ function getActiveTriggers(accordionItemRefs) {
|
|
|
25
25
|
for (let i = 0; i < accordionItemElements.length; i += 1) {
|
|
26
26
|
const section = accordionItemElements[i];
|
|
27
27
|
if (!(0, _isElementDisabled.isElementDisabled)(section)) {
|
|
28
|
-
const trigger = section?.querySelector('[type="button"]');
|
|
29
|
-
if (!(0, _isElementDisabled.isElementDisabled)(trigger)) {
|
|
28
|
+
const trigger = section?.querySelector('[type="button"], [role="button"]');
|
|
29
|
+
if (trigger && !(0, _isElementDisabled.isElementDisabled)(trigger)) {
|
|
30
30
|
output.push(trigger);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -89,7 +89,6 @@ const AccordionTrigger = exports.AccordionTrigger = /*#__PURE__*/React.forwardRe
|
|
|
89
89
|
const props = React.useMemo(() => ({
|
|
90
90
|
'aria-controls': open ? panelId : undefined,
|
|
91
91
|
'aria-expanded': open,
|
|
92
|
-
disabled,
|
|
93
92
|
id,
|
|
94
93
|
onClick: handleTrigger,
|
|
95
94
|
onKeyDown(event) {
|
|
@@ -158,7 +157,7 @@ const AccordionTrigger = exports.AccordionTrigger = /*#__PURE__*/React.forwardRe
|
|
|
158
157
|
triggers[nextIndex].focus();
|
|
159
158
|
}
|
|
160
159
|
}
|
|
161
|
-
}), [accordionItemRefs,
|
|
160
|
+
}), [accordionItemRefs, handleTrigger, id, isHorizontal, isRtl, loopFocus, open, panelId]);
|
|
162
161
|
const element = (0, _useRenderElement.useRenderElement)('button', componentProps, {
|
|
163
162
|
state,
|
|
164
163
|
ref: [forwardedRef, buttonRef],
|
|
@@ -21,10 +21,10 @@ export interface AlertDialogRootProps<Payload = unknown> extends Omit<DialogRoot
|
|
|
21
21
|
* Useful when the dialog's animation is controlled by an external library.
|
|
22
22
|
* - `close`: Closes the dialog imperatively when called.
|
|
23
23
|
*/
|
|
24
|
-
actionsRef?: React.RefObject<AlertDialogRoot.Actions>;
|
|
24
|
+
actionsRef?: React.RefObject<AlertDialogRoot.Actions | null>;
|
|
25
25
|
/**
|
|
26
|
-
* A handle to associate the
|
|
27
|
-
* If specified, allows external triggers to control the
|
|
26
|
+
* A handle to associate the alert dialog with a trigger.
|
|
27
|
+
* If specified, allows external triggers to control the alert dialog's open state.
|
|
28
28
|
* Can be created with the AlertDialog.createHandle() method.
|
|
29
29
|
*/
|
|
30
30
|
handle?: DialogHandle<Payload>;
|
|
@@ -90,7 +90,7 @@ export interface AutocompleteRootProps<ItemValue> extends Omit<AriaCombobox.Prop
|
|
|
90
90
|
* Instead, the `unmount` function must be called to unmount the autocomplete manually.
|
|
91
91
|
* Useful when the autocomplete's animation is controlled by an external library.
|
|
92
92
|
*/
|
|
93
|
-
actionsRef?: React.RefObject<AutocompleteRootActions>;
|
|
93
|
+
actionsRef?: React.RefObject<AutocompleteRootActions | null>;
|
|
94
94
|
/**
|
|
95
95
|
* Event handler called when the popup is opened or closed.
|
|
96
96
|
*/
|
|
@@ -7,7 +7,7 @@ import type { AvatarRoot } from "../root/AvatarRoot.js";
|
|
|
7
7
|
*
|
|
8
8
|
* Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)
|
|
9
9
|
*/
|
|
10
|
-
export declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
export declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarFallbackProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
11
|
export interface AvatarFallbackProps extends BaseUIComponentProps<'span', AvatarRoot.State> {
|
|
12
12
|
/**
|
|
13
13
|
* How long to wait before showing the fallback. Specified in milliseconds.
|
|
@@ -8,7 +8,7 @@ import { ImageLoadingStatus } from "./useImageLoadingStatus.js";
|
|
|
8
8
|
*
|
|
9
9
|
* Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)
|
|
10
10
|
*/
|
|
11
|
-
export declare const AvatarImage: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
11
|
+
export declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarImageProps, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
12
12
|
export interface AvatarImageProps extends BaseUIComponentProps<'img', AvatarRoot.State> {
|
|
13
13
|
/**
|
|
14
14
|
* Callback fired when the loading status changes.
|
|
@@ -6,7 +6,7 @@ import { BaseUIComponentProps } from "../../utils/types.js";
|
|
|
6
6
|
*
|
|
7
7
|
* Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)
|
|
8
8
|
*/
|
|
9
|
-
export declare const AvatarRoot: React.ForwardRefExoticComponent<AvatarRootProps & React.RefAttributes<HTMLSpanElement>>;
|
|
9
|
+
export declare const AvatarRoot: React.ForwardRefExoticComponent<Omit<AvatarRootProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
10
10
|
export type ImageLoadingStatus = 'idle' | 'loading' | 'loaded' | 'error';
|
|
11
11
|
export interface AvatarRootState {
|
|
12
12
|
imageLoadingStatus: ImageLoadingStatus;
|
package/button/Button.d.ts
CHANGED
|
@@ -1,39 +1,26 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { BaseUIComponentProps, NativeButtonProps
|
|
2
|
+
import type { BaseUIComponentProps, NativeButtonProps } from "../utils/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* A button component that can be used to trigger actions.
|
|
5
5
|
* Renders a `<button>` element.
|
|
6
6
|
*
|
|
7
7
|
* Documentation: [Base UI Button](https://base-ui.com/react/components/button)
|
|
8
8
|
*/
|
|
9
|
-
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
+
export declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
10
10
|
export interface ButtonState {
|
|
11
11
|
/**
|
|
12
12
|
* Whether the button should ignore user interaction.
|
|
13
13
|
*/
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
}
|
|
16
|
-
interface
|
|
17
|
-
/**
|
|
18
|
-
* Whether the button should ignore user interaction.
|
|
19
|
-
*/
|
|
20
|
-
disabled?: boolean;
|
|
16
|
+
export interface ButtonProps extends NativeButtonProps, BaseUIComponentProps<'button', ButtonState> {
|
|
21
17
|
/**
|
|
22
18
|
* Whether the button should be focusable when disabled.
|
|
23
19
|
* @default false
|
|
24
20
|
*/
|
|
25
21
|
focusableWhenDisabled?: boolean;
|
|
26
22
|
}
|
|
27
|
-
type NonNativeAttributeKeys = 'form' | 'formAction' | 'formEncType' | 'formMethod' | 'formNoValidate' | 'formTarget' | 'name' | 'type' | 'value';
|
|
28
|
-
interface ButtonNativeProps extends NativeButtonProps, ButtonCommonProps, Omit<BaseUIComponentProps<'button', ButtonState>, 'disabled'> {
|
|
29
|
-
nativeButton?: true;
|
|
30
|
-
}
|
|
31
|
-
interface ButtonNonNativeProps extends NonNativeButtonProps, ButtonCommonProps, Omit<BaseUIComponentProps<'button', ButtonState>, NonNativeAttributeKeys | 'disabled'> {
|
|
32
|
-
nativeButton: false;
|
|
33
|
-
}
|
|
34
|
-
export type ButtonProps = ButtonNativeProps | ButtonNonNativeProps;
|
|
35
23
|
export declare namespace Button {
|
|
36
24
|
type State = ButtonState;
|
|
37
25
|
type Props = ButtonProps;
|
|
38
|
-
}
|
|
39
|
-
export {};
|
|
26
|
+
}
|
package/button/Button.js
CHANGED
|
@@ -19,12 +19,11 @@ const Button = exports.Button = /*#__PURE__*/React.forwardRef(function Button(co
|
|
|
19
19
|
const {
|
|
20
20
|
render,
|
|
21
21
|
className,
|
|
22
|
-
disabled
|
|
22
|
+
disabled = false,
|
|
23
23
|
focusableWhenDisabled = false,
|
|
24
24
|
nativeButton = true,
|
|
25
25
|
...elementProps
|
|
26
26
|
} = componentProps;
|
|
27
|
-
const disabled = Boolean(disabledProp);
|
|
28
27
|
const {
|
|
29
28
|
getButtonProps,
|
|
30
29
|
buttonRef
|
|
@@ -8,7 +8,7 @@ import { type TransitionStatus } from "../../utils/useTransitionStatus.js";
|
|
|
8
8
|
*
|
|
9
9
|
* Documentation: [Base UI Checkbox](https://base-ui.com/react/components/checkbox)
|
|
10
10
|
*/
|
|
11
|
-
export declare const CheckboxIndicator: React.ForwardRefExoticComponent<CheckboxIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
11
|
+
export declare const CheckboxIndicator: React.ForwardRefExoticComponent<Omit<CheckboxIndicatorProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
12
12
|
export interface CheckboxIndicatorState extends CheckboxRoot.State {
|
|
13
13
|
transitionStatus: TransitionStatus;
|
|
14
14
|
}
|
|
@@ -7,6 +7,10 @@ export declare enum CheckboxIndicatorDataAttributes {
|
|
|
7
7
|
* Present when the checkbox is not checked.
|
|
8
8
|
*/
|
|
9
9
|
unchecked = "data-unchecked",
|
|
10
|
+
/**
|
|
11
|
+
* Present when the checkbox is in an indeterminate state.
|
|
12
|
+
*/
|
|
13
|
+
indeterminate = "data-indeterminate",
|
|
10
14
|
/**
|
|
11
15
|
* Present when the checkbox is disabled.
|
|
12
16
|
*/
|
|
@@ -14,6 +14,10 @@ let CheckboxIndicatorDataAttributes = exports.CheckboxIndicatorDataAttributes =
|
|
|
14
14
|
* Present when the checkbox is not checked.
|
|
15
15
|
*/
|
|
16
16
|
CheckboxIndicatorDataAttributes["unchecked"] = "data-unchecked";
|
|
17
|
+
/**
|
|
18
|
+
* Present when the checkbox is in an indeterminate state.
|
|
19
|
+
*/
|
|
20
|
+
CheckboxIndicatorDataAttributes["indeterminate"] = "data-indeterminate";
|
|
17
21
|
/**
|
|
18
22
|
* Present when the checkbox is disabled.
|
|
19
23
|
*/
|
|
@@ -10,7 +10,7 @@ export declare const PARENT_CHECKBOX = "data-parent";
|
|
|
10
10
|
*
|
|
11
11
|
* Documentation: [Base UI Checkbox](https://base-ui.com/react/components/checkbox)
|
|
12
12
|
*/
|
|
13
|
-
export declare const CheckboxRoot: React.ForwardRefExoticComponent<CheckboxRootProps & React.RefAttributes<HTMLElement>>;
|
|
13
|
+
export declare const CheckboxRoot: React.ForwardRefExoticComponent<Omit<CheckboxRootProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
14
14
|
export interface CheckboxRootState extends FieldRoot.State {
|
|
15
15
|
/**
|
|
16
16
|
* Whether the checkbox is currently ticked.
|
|
@@ -176,11 +176,12 @@ const CheckboxRoot = exports.CheckboxRoot = /*#__PURE__*/React.forwardRef(functi
|
|
|
176
176
|
disabled,
|
|
177
177
|
// parent checkboxes unset `name` to be excluded from form submission
|
|
178
178
|
name: parent ? undefined : name,
|
|
179
|
-
// Set `id` to stop Chrome warning about an unassociated input
|
|
180
|
-
id
|
|
179
|
+
// Set `id` to stop Chrome warning about an unassociated input.
|
|
180
|
+
// When using a native button, the `id` is applied to the button instead.
|
|
181
|
+
id: nativeButton ? undefined : inputId ?? undefined,
|
|
181
182
|
required,
|
|
182
183
|
ref: mergedInputRef,
|
|
183
|
-
style: _visuallyHidden.visuallyHidden,
|
|
184
|
+
style: name ? _visuallyHidden.visuallyHiddenInput : _visuallyHidden.visuallyHidden,
|
|
184
185
|
tabIndex: -1,
|
|
185
186
|
type: 'checkbox',
|
|
186
187
|
'aria-hidden': true,
|
|
@@ -231,7 +232,7 @@ const CheckboxRoot = exports.CheckboxRoot = /*#__PURE__*/React.forwardRef(functi
|
|
|
231
232
|
state,
|
|
232
233
|
ref: [buttonRef, controlRef, forwardedRef, groupContext?.registerControlRef],
|
|
233
234
|
props: [{
|
|
234
|
-
id,
|
|
235
|
+
id: nativeButton ? inputId ?? undefined : id,
|
|
235
236
|
role: 'checkbox',
|
|
236
237
|
'aria-checked': groupIndeterminate ? 'mixed' : checked,
|
|
237
238
|
'aria-readonly': readOnly || undefined,
|
|
@@ -7,6 +7,10 @@ export declare enum CheckboxRootDataAttributes {
|
|
|
7
7
|
* Present when the checkbox is not checked.
|
|
8
8
|
*/
|
|
9
9
|
unchecked = "data-unchecked",
|
|
10
|
+
/**
|
|
11
|
+
* Present when the checkbox is in an indeterminate state.
|
|
12
|
+
*/
|
|
13
|
+
indeterminate = "data-indeterminate",
|
|
10
14
|
/**
|
|
11
15
|
* Present when the checkbox is disabled.
|
|
12
16
|
*/
|
|
@@ -13,6 +13,10 @@ let CheckboxRootDataAttributes = exports.CheckboxRootDataAttributes = /*#__PURE_
|
|
|
13
13
|
* Present when the checkbox is not checked.
|
|
14
14
|
*/
|
|
15
15
|
CheckboxRootDataAttributes["unchecked"] = "data-unchecked";
|
|
16
|
+
/**
|
|
17
|
+
* Present when the checkbox is in an indeterminate state.
|
|
18
|
+
*/
|
|
19
|
+
CheckboxRootDataAttributes["indeterminate"] = "data-indeterminate";
|
|
16
20
|
/**
|
|
17
21
|
* Present when the checkbox is disabled.
|
|
18
22
|
*/
|
|
@@ -8,7 +8,7 @@ import { REASONS } from "../utils/reasons.js";
|
|
|
8
8
|
*
|
|
9
9
|
* Documentation: [Base UI Checkbox Group](https://base-ui.com/react/components/checkbox-group)
|
|
10
10
|
*/
|
|
11
|
-
export declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const CheckboxGroup: React.ForwardRefExoticComponent<Omit<CheckboxGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export interface CheckboxGroupState extends FieldRoot.State {
|
|
13
13
|
/**
|
|
14
14
|
* Whether the component should ignore user interaction.
|
|
@@ -8,7 +8,7 @@ import type { TransitionStatus } from "../../utils/useTransitionStatus.js";
|
|
|
8
8
|
*
|
|
9
9
|
* Documentation: [Base UI Collapsible](https://base-ui.com/react/components/collapsible)
|
|
10
10
|
*/
|
|
11
|
-
export declare const CollapsiblePanel: React.ForwardRefExoticComponent<CollapsiblePanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const CollapsiblePanel: React.ForwardRefExoticComponent<Omit<CollapsiblePanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export interface CollapsiblePanelState extends CollapsibleRoot.State {
|
|
13
13
|
transitionStatus: TransitionStatus;
|
|
14
14
|
}
|
|
@@ -9,7 +9,7 @@ import { REASONS } from "../../utils/reasons.js";
|
|
|
9
9
|
*
|
|
10
10
|
* Documentation: [Base UI Collapsible](https://base-ui.com/react/components/collapsible)
|
|
11
11
|
*/
|
|
12
|
-
export declare const CollapsibleRoot: React.ForwardRefExoticComponent<CollapsibleRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const CollapsibleRoot: React.ForwardRefExoticComponent<Omit<CollapsibleRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export interface CollapsibleRootState extends Pick<useCollapsibleRoot.ReturnValue, 'open' | 'disabled'> {}
|
|
14
14
|
export interface CollapsibleRootProps extends BaseUIComponentProps<'div', CollapsibleRoot.State> {
|
|
15
15
|
/**
|
|
@@ -7,7 +7,7 @@ import { CollapsibleRoot } from "../root/CollapsibleRoot.js";
|
|
|
7
7
|
*
|
|
8
8
|
* Documentation: [Base UI Collapsible](https://base-ui.com/react/components/collapsible)
|
|
9
9
|
*/
|
|
10
|
-
export declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export declare const CollapsibleTrigger: React.ForwardRefExoticComponent<Omit<CollapsibleTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
export interface CollapsibleTriggerProps extends NativeButtonProps, BaseUIComponentProps<'button', CollapsibleRoot.State> {}
|
|
12
12
|
export declare namespace CollapsibleTrigger {
|
|
13
13
|
type Props = CollapsibleTriggerProps;
|
|
@@ -50,9 +50,8 @@ const CollapsibleTrigger = exports.CollapsibleTrigger = /*#__PURE__*/React.forwa
|
|
|
50
50
|
const props = React.useMemo(() => ({
|
|
51
51
|
'aria-controls': open ? panelId : undefined,
|
|
52
52
|
'aria-expanded': open,
|
|
53
|
-
disabled,
|
|
54
53
|
onClick: handleTrigger
|
|
55
|
-
}), [panelId,
|
|
54
|
+
}), [panelId, open, handleTrigger]);
|
|
56
55
|
const element = (0, _useRenderElement.useRenderElement)('button', componentProps, {
|
|
57
56
|
state,
|
|
58
57
|
ref: [forwardedRef, buttonRef],
|
|
@@ -5,7 +5,7 @@ import type { BaseUIComponentProps } from "../../utils/types.js";
|
|
|
5
5
|
* Displays an element positioned against the anchor.
|
|
6
6
|
* Renders a `<div>` element.
|
|
7
7
|
*/
|
|
8
|
-
export declare const ComboboxArrow: React.ForwardRefExoticComponent<ComboboxArrowProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const ComboboxArrow: React.ForwardRefExoticComponent<Omit<ComboboxArrowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
export interface ComboboxArrowState {
|
|
10
10
|
/**
|
|
11
11
|
* Whether the popup is currently open.
|
|
@@ -5,7 +5,7 @@ import type { TransitionStatus } from "../../utils/useTransitionStatus.js";
|
|
|
5
5
|
* An overlay displayed beneath the popup.
|
|
6
6
|
* Renders a `<div>` element.
|
|
7
7
|
*/
|
|
8
|
-
export declare const ComboboxBackdrop: React.ForwardRefExoticComponent<ComboboxBackdropProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const ComboboxBackdrop: React.ForwardRefExoticComponent<Omit<ComboboxBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
export interface ComboboxBackdropProps extends BaseUIComponentProps<'div', ComboboxBackdrop.State> {}
|
|
10
10
|
export interface ComboboxBackdropState {
|
|
11
11
|
/**
|
|
@@ -4,7 +4,7 @@ import { BaseUIComponentProps } from "../../utils/types.js";
|
|
|
4
4
|
* An individual chip that represents a value in a multiselectable input.
|
|
5
5
|
* Renders a `<div>` element.
|
|
6
6
|
*/
|
|
7
|
-
export declare const ComboboxChip: React.ForwardRefExoticComponent<ComboboxChipProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const ComboboxChip: React.ForwardRefExoticComponent<Omit<ComboboxChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
export interface ComboboxChipState {
|
|
9
9
|
/**
|
|
10
10
|
* Whether the component should ignore user interaction.
|
|
@@ -4,7 +4,7 @@ import { BaseUIComponentProps, NativeButtonProps } from "../../utils/types.js";
|
|
|
4
4
|
* A button to remove a chip.
|
|
5
5
|
* Renders a `<button>` element.
|
|
6
6
|
*/
|
|
7
|
-
export declare const ComboboxChipRemove: React.ForwardRefExoticComponent<ComboboxChipRemoveProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export declare const ComboboxChipRemove: React.ForwardRefExoticComponent<Omit<ComboboxChipRemoveProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
8
|
export interface ComboboxChipRemoveState {
|
|
9
9
|
/**
|
|
10
10
|
* Whether the component should ignore user interaction.
|
|
@@ -25,6 +25,7 @@ const ComboboxChipRemove = exports.ComboboxChipRemove = /*#__PURE__*/React.forwa
|
|
|
25
25
|
const {
|
|
26
26
|
render,
|
|
27
27
|
className,
|
|
28
|
+
disabled: disabledProp = false,
|
|
28
29
|
nativeButton = true,
|
|
29
30
|
...elementProps
|
|
30
31
|
} = componentProps;
|
|
@@ -32,10 +33,11 @@ const ComboboxChipRemove = exports.ComboboxChipRemove = /*#__PURE__*/React.forwa
|
|
|
32
33
|
const {
|
|
33
34
|
index
|
|
34
35
|
} = (0, _ComboboxChipContext.useComboboxChipContext)();
|
|
35
|
-
const
|
|
36
|
+
const comboboxDisabled = (0, _store.useStore)(store, _store2.selectors.disabled);
|
|
36
37
|
const readOnly = (0, _store.useStore)(store, _store2.selectors.readOnly);
|
|
37
38
|
const selectedValue = (0, _store.useStore)(store, _store2.selectors.selectedValue);
|
|
38
39
|
const isItemEqualToValue = (0, _store.useStore)(store, _store2.selectors.isItemEqualToValue);
|
|
40
|
+
const disabled = comboboxDisabled || disabledProp;
|
|
39
41
|
const {
|
|
40
42
|
buttonRef,
|
|
41
43
|
getButtonProps
|
|
@@ -52,7 +54,6 @@ const ComboboxChipRemove = exports.ComboboxChipRemove = /*#__PURE__*/React.forwa
|
|
|
52
54
|
state,
|
|
53
55
|
props: [{
|
|
54
56
|
tabIndex: -1,
|
|
55
|
-
disabled,
|
|
56
57
|
'aria-readonly': readOnly || undefined,
|
|
57
58
|
onClick(event) {
|
|
58
59
|
if (disabled || readOnly) {
|
|
@@ -4,7 +4,7 @@ import { BaseUIComponentProps } from "../../utils/types.js";
|
|
|
4
4
|
* A container for the chips in a multiselectable input.
|
|
5
5
|
* Renders a `<div>` element.
|
|
6
6
|
*/
|
|
7
|
-
export declare const ComboboxChips: React.ForwardRefExoticComponent<ComboboxChipsProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const ComboboxChips: React.ForwardRefExoticComponent<Omit<ComboboxChipsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
export interface ComboboxChipsState {}
|
|
9
9
|
export interface ComboboxChipsProps extends BaseUIComponentProps<'div', ComboboxChips.State> {}
|
|
10
10
|
export declare namespace ComboboxChips {
|