@msviderok/base-ui-solid 1.0.0-beta.1 → 1.0.0-beta.3
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/cjs/accordion/header/AccordionHeader.js +2 -4
- package/cjs/accordion/item/AccordionItem.js +10 -6
- package/cjs/accordion/panel/AccordionPanel.js +8 -4
- package/cjs/accordion/root/AccordionRoot.js +12 -8
- package/cjs/accordion/trigger/AccordionTrigger.js +2 -4
- package/cjs/alert-dialog/backdrop/AlertDialogBackdrop.js +2 -4
- package/cjs/alert-dialog/close/AlertDialogClose.js +2 -4
- package/cjs/alert-dialog/description/AlertDialogDescription.js +2 -4
- package/cjs/alert-dialog/popup/AlertDialogPopup.js +24 -16
- package/cjs/alert-dialog/portal/AlertDialogPortal.js +20 -10
- package/cjs/alert-dialog/root/AlertDialogRoot.js +5 -3
- package/cjs/alert-dialog/title/AlertDialogTitle.js +1 -4
- package/cjs/alert-dialog/trigger/AlertDialogTrigger.js +2 -4
- package/cjs/avatar/fallback/AvatarFallback.js +2 -4
- package/cjs/avatar/image/AvatarImage.js +2 -4
- package/cjs/avatar/root/AvatarRoot.js +5 -3
- package/cjs/checkbox/indicator/CheckboxIndicator.js +8 -4
- package/cjs/checkbox/root/CheckboxRoot.js +15 -9
- package/cjs/checkbox-group/CheckboxGroup.js +5 -3
- package/cjs/collapsible/panel/CollapsiblePanel.js +8 -4
- package/cjs/collapsible/root/CollapsibleRoot.js +15 -7
- package/cjs/collapsible/trigger/CollapsibleTrigger.js +2 -4
- package/cjs/composite/item/CompositeItem.js +2 -4
- package/cjs/composite/list/CompositeList.js +16 -12
- package/cjs/composite/root/CompositeRoot.js +13 -7
- package/cjs/context-menu/root/ContextMenuRoot.js +10 -8
- package/cjs/context-menu/trigger/ContextMenuTrigger.js +2 -4
- package/cjs/dialog/backdrop/DialogBackdrop.js +2 -4
- package/cjs/dialog/close/DialogClose.js +2 -4
- package/cjs/dialog/description/DialogDescription.js +2 -4
- package/cjs/dialog/popup/DialogPopup.js +30 -18
- package/cjs/dialog/portal/DialogPortal.js +20 -10
- package/cjs/dialog/root/DialogRoot.js +10 -6
- package/cjs/dialog/title/DialogTitle.js +2 -4
- package/cjs/dialog/trigger/DialogTrigger.js +2 -4
- package/cjs/direction-provider/DirectionProvider.js +5 -3
- package/cjs/field/control/FieldControl.js +2 -4
- package/cjs/field/description/FieldDescription.js +2 -4
- package/cjs/field/error/FieldError.js +21 -16
- package/cjs/field/label/FieldLabel.js +2 -4
- package/cjs/field/root/FieldRoot.js +5 -3
- package/cjs/field/validity/FieldValidity.js +6 -6
- package/cjs/fieldset/legend/FieldsetLegend.js +2 -4
- package/cjs/fieldset/root/FieldsetRoot.js +5 -3
- package/cjs/floating-ui-solid/components/FloatingDelayGroup.js +5 -3
- package/cjs/floating-ui-solid/components/FloatingFocusManager.js +39 -24
- package/cjs/floating-ui-solid/components/FloatingPortal.js +73 -47
- package/cjs/floating-ui-solid/components/FloatingTree.js +9 -5
- package/cjs/form/Form.js +5 -3
- package/cjs/input/Input.js +2 -4
- package/cjs/menu/arrow/MenuArrow.js +2 -4
- package/cjs/menu/backdrop/MenuBackdrop.js +2 -4
- package/cjs/menu/checkbox-item/MenuCheckboxItem.js +5 -3
- package/cjs/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js +2 -4
- package/cjs/menu/group/MenuGroup.js +5 -3
- package/cjs/menu/group-label/MenuGroupLabel.js +2 -4
- package/cjs/menu/item/MenuItem.js +2 -4
- package/cjs/menu/popup/MenuPopup.js +14 -6
- package/cjs/menu/portal/MenuPortal.js +20 -10
- package/cjs/menu/positioner/MenuPositioner.js +32 -20
- package/cjs/menu/radio-group/MenuRadioGroup.js +5 -3
- package/cjs/menu/radio-item/MenuRadioItem.js +5 -3
- package/cjs/menu/radio-item-indicator/MenuRadioItemIndicator.js +2 -4
- package/cjs/menu/root/MenuRoot.js +24 -12
- package/cjs/menu/submenu-root/MenuSubmenuRoot.js +5 -5
- package/cjs/menu/submenu-trigger/MenuSubmenuTrigger.js +2 -4
- package/cjs/menu/trigger/MenuTrigger.js +13 -7
- package/cjs/menubar/Menubar.js +31 -15
- package/cjs/meter/indicator/MeterIndicator.js +2 -4
- package/cjs/meter/label/MeterLabel.js +2 -4
- package/cjs/meter/root/MeterRoot.js +5 -3
- package/cjs/meter/track/MeterTrack.js +2 -4
- package/cjs/meter/value/MeterValue.js +3 -7
- package/cjs/navigation-menu/arrow/NavigationMenuArrow.js +2 -4
- package/cjs/navigation-menu/backdrop/NavigationMenuBackdrop.js +2 -4
- package/cjs/navigation-menu/content/NavigationMenuContent.js +25 -14
- package/cjs/navigation-menu/icon/NavigationMenuIcon.js +2 -4
- package/cjs/navigation-menu/item/NavigationMenuItem.js +5 -5
- package/cjs/navigation-menu/link/NavigationMenuLink.js +2 -2
- package/cjs/navigation-menu/list/NavigationMenuList.js +5 -3
- package/cjs/navigation-menu/popup/NavigationMenuPopup.js +32 -34
- package/cjs/navigation-menu/portal/NavigationMenuPortal.js +20 -10
- package/cjs/navigation-menu/positioner/NavigationMenuPositioner.js +5 -3
- package/cjs/navigation-menu/root/NavigationMenuRoot.js +23 -13
- package/cjs/navigation-menu/trigger/NavigationMenuTrigger.js +56 -49
- package/cjs/navigation-menu/viewport/NavigationMenuViewport.js +2 -4
- package/cjs/number-field/decrement/NumberFieldDecrement.js +2 -4
- package/cjs/number-field/group/NumberFieldGroup.js +2 -4
- package/cjs/number-field/increment/NumberFieldIncrement.js +2 -4
- package/cjs/number-field/input/NumberFieldInput.js +2 -4
- package/cjs/number-field/root/NumberFieldRoot.js +32 -16
- package/cjs/number-field/scrub-area/NumberFieldScrubArea.js +5 -3
- package/cjs/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.js +8 -5
- package/cjs/popover/arrow/PopoverArrow.js +2 -4
- package/cjs/popover/backdrop/PopoverBackdrop.js +2 -4
- package/cjs/popover/close/PopoverClose.js +2 -4
- package/cjs/popover/description/PopoverDescription.js +2 -4
- package/cjs/popover/popup/PopoverPopup.js +20 -8
- package/cjs/popover/portal/PopoverPortal.js +20 -10
- package/cjs/popover/positioner/PopoverPositioner.js +27 -13
- package/cjs/popover/root/PopoverRoot.js +19 -13
- package/cjs/popover/title/PopoverTitle.js +2 -4
- package/cjs/popover/trigger/PopoverTrigger.js +2 -4
- package/cjs/preview-card/arrow/PreviewCardArrow.js +2 -4
- package/cjs/preview-card/backdrop/PreviewCardBackdrop.js +2 -4
- package/cjs/preview-card/popup/PreviewCardPopup.js +2 -4
- package/cjs/preview-card/portal/PreviewCardPortal.js +20 -10
- package/cjs/preview-card/positioner/PreviewCardPositioner.js +5 -3
- package/cjs/preview-card/root/PreviewCardRoot.js +5 -3
- package/cjs/preview-card/trigger/PreviewCardTrigger.js +2 -4
- package/cjs/progress/indicator/ProgressIndicator.js +2 -4
- package/cjs/progress/label/ProgressLabel.js +2 -4
- package/cjs/progress/root/ProgressRoot.js +5 -3
- package/cjs/progress/track/ProgressTrack.js +2 -4
- package/cjs/progress/value/ProgressValue.js +2 -4
- package/cjs/radio/indicator/RadioIndicator.js +8 -4
- package/cjs/radio/root/RadioRoot.js +20 -11
- package/cjs/radio-group/RadioGroup.js +15 -10
- package/cjs/scroll-area/content/ScrollAreaContent.js +2 -4
- package/cjs/scroll-area/corner/ScrollAreaCorner.js +8 -4
- package/cjs/scroll-area/root/ScrollAreaRoot.js +5 -3
- package/cjs/scroll-area/scrollbar/ScrollAreaScrollbar.js +13 -7
- package/cjs/scroll-area/thumb/ScrollAreaThumb.js +2 -4
- package/cjs/scroll-area/viewport/ScrollAreaViewport.js +5 -3
- package/cjs/select/arrow/SelectArrow.js +8 -4
- package/cjs/select/backdrop/SelectBackdrop.js +2 -4
- package/cjs/select/group/SelectGroup.js +5 -3
- package/cjs/select/group-label/SelectGroupLabel.js +2 -4
- package/cjs/select/icon/SelectIcon.js +3 -7
- package/cjs/select/item/SelectItem.js +5 -3
- package/cjs/select/item-indicator/SelectItemIndicator.js +8 -4
- package/cjs/select/item-text/SelectItemText.js +2 -4
- package/cjs/select/popup/SelectPopup.js +12 -10
- package/cjs/select/portal/SelectPortal.js +20 -10
- package/cjs/select/positioner/SelectPositioner.js +23 -13
- package/cjs/select/root/SelectRoot.js +54 -47
- package/cjs/select/scroll-arrow/SelectScrollArrow.js +9 -7
- package/cjs/select/scroll-down-arrow/SelectScrollDownArrow.js +7 -5
- package/cjs/select/scroll-up-arrow/SelectScrollUpArrow.js +7 -5
- package/cjs/select/trigger/SelectTrigger.js +2 -4
- package/cjs/select/value/SelectValue.js +3 -7
- package/cjs/separator/Separator.js +2 -4
- package/cjs/slider/control/SliderControl.js +2 -4
- package/cjs/slider/indicator/SliderIndicator.js +2 -4
- package/cjs/slider/root/SliderRoot.js +66 -47
- package/cjs/slider/thumb/SliderThumb.js +8 -11
- package/cjs/slider/track/SliderTrack.js +2 -4
- package/cjs/slider/value/SliderValue.js +3 -7
- package/cjs/switch/root/SwitchRoot.js +15 -9
- package/cjs/switch/thumb/SwitchThumb.js +2 -4
- package/cjs/tabs/indicator/TabsIndicator.js +13 -11
- package/cjs/tabs/list/TabsList.js +20 -12
- package/cjs/tabs/panel/TabsPanel.js +3 -7
- package/cjs/tabs/root/TabsRoot.js +13 -9
- package/cjs/tabs/tab/TabsTab.js +2 -4
- package/cjs/toast/action/ToastAction.js +3 -7
- package/cjs/toast/close/ToastClose.js +2 -4
- package/cjs/toast/description/ToastDescription.js +3 -7
- package/cjs/toast/portal/ToastPortal.js +8 -4
- package/cjs/toast/provider/ToastProvider.js +5 -3
- package/cjs/toast/root/ToastRoot.js +30 -22
- package/cjs/toast/title/ToastTitle.js +3 -7
- package/cjs/toast/utils/test-utils.js +26 -21
- package/cjs/toast/viewport/ToastViewport.js +13 -14
- package/cjs/toggle/Toggle.js +10 -6
- package/cjs/toggle-group/ToggleGroup.js +19 -11
- package/cjs/toolbar/button/ToolbarButton.js +2 -2
- package/cjs/toolbar/group/ToolbarGroup.js +5 -3
- package/cjs/toolbar/input/ToolbarInput.js +2 -2
- package/cjs/toolbar/link/ToolbarLink.js +2 -2
- package/cjs/toolbar/root/ToolbarRoot.js +20 -10
- package/cjs/toolbar/separator/ToolbarSeparator.js +11 -6
- package/cjs/tooltip/arrow/TooltipArrow.js +2 -4
- package/cjs/tooltip/popup/TooltipPopup.js +2 -4
- package/cjs/tooltip/portal/TooltipPortal.js +20 -10
- package/cjs/tooltip/positioner/TooltipPositioner.js +5 -3
- package/cjs/tooltip/provider/TooltipProvider.js +15 -7
- package/cjs/tooltip/root/TooltipRoot.js +5 -3
- package/cjs/tooltip/trigger/TooltipTrigger.js +2 -4
- package/cjs/unstable-no-ssr/NoSsr.js +11 -5
- package/cjs/utils/FloatingPortalLite.js +7 -4
- package/cjs/utils/FocusGuard.js +19 -10
- package/cjs/utils/InternalBackdrop.js +19 -18
- package/cjs/utils/styles.js +3 -5
- package/cjs/utils/useRenderElement.js +34 -31
- package/esm/accordion/header/AccordionHeader.js +2 -4
- package/esm/accordion/item/AccordionItem.js +10 -6
- package/esm/accordion/panel/AccordionPanel.js +8 -4
- package/esm/accordion/root/AccordionRoot.js +12 -8
- package/esm/accordion/trigger/AccordionTrigger.js +3 -4
- package/esm/alert-dialog/backdrop/AlertDialogBackdrop.js +2 -4
- package/esm/alert-dialog/close/AlertDialogClose.js +2 -4
- package/esm/alert-dialog/description/AlertDialogDescription.js +2 -4
- package/esm/alert-dialog/popup/AlertDialogPopup.js +25 -16
- package/esm/alert-dialog/portal/AlertDialogPortal.js +20 -10
- package/esm/alert-dialog/root/AlertDialogRoot.js +5 -3
- package/esm/alert-dialog/title/AlertDialogTitle.js +1 -4
- package/esm/alert-dialog/trigger/AlertDialogTrigger.js +2 -4
- package/esm/avatar/fallback/AvatarFallback.js +2 -4
- package/esm/avatar/image/AvatarImage.js +2 -4
- package/esm/avatar/root/AvatarRoot.js +5 -3
- package/esm/checkbox/indicator/CheckboxIndicator.js +8 -4
- package/esm/checkbox/root/CheckboxRoot.js +21 -9
- package/esm/checkbox-group/CheckboxGroup.js +5 -3
- package/esm/collapsible/panel/CollapsiblePanel.js +8 -4
- package/esm/collapsible/root/CollapsibleRoot.js +15 -7
- package/esm/collapsible/trigger/CollapsibleTrigger.js +2 -4
- package/esm/composite/item/CompositeItem.js +2 -4
- package/esm/composite/list/CompositeList.js +16 -12
- package/esm/composite/root/CompositeRoot.js +13 -7
- package/esm/context-menu/root/ContextMenuRoot.js +10 -8
- package/esm/context-menu/trigger/ContextMenuTrigger.js +2 -4
- package/esm/dialog/backdrop/DialogBackdrop.js +2 -4
- package/esm/dialog/close/DialogClose.js +2 -4
- package/esm/dialog/description/DialogDescription.js +2 -4
- package/esm/dialog/popup/DialogPopup.js +31 -18
- package/esm/dialog/portal/DialogPortal.js +20 -10
- package/esm/dialog/root/DialogRoot.js +10 -6
- package/esm/dialog/title/DialogTitle.js +2 -4
- package/esm/dialog/trigger/DialogTrigger.js +2 -4
- package/esm/direction-provider/DirectionProvider.js +5 -3
- package/esm/field/control/FieldControl.js +2 -4
- package/esm/field/description/FieldDescription.js +2 -4
- package/esm/field/error/FieldError.js +24 -16
- package/esm/field/label/FieldLabel.js +2 -4
- package/esm/field/root/FieldRoot.js +5 -3
- package/esm/field/validity/FieldValidity.js +7 -5
- package/esm/fieldset/legend/FieldsetLegend.js +2 -4
- package/esm/fieldset/root/FieldsetRoot.js +5 -3
- package/esm/floating-ui-solid/components/FloatingDelayGroup.js +5 -3
- package/esm/floating-ui-solid/components/FloatingFocusManager.js +43 -24
- package/esm/floating-ui-solid/components/FloatingPortal.js +78 -46
- package/esm/floating-ui-solid/components/FloatingTree.js +9 -5
- package/esm/form/Form.js +5 -3
- package/esm/index.js +1 -1
- package/esm/input/Input.js +2 -4
- package/esm/menu/arrow/MenuArrow.js +2 -4
- package/esm/menu/backdrop/MenuBackdrop.js +2 -4
- package/esm/menu/checkbox-item/MenuCheckboxItem.js +5 -3
- package/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js +2 -4
- package/esm/menu/group/MenuGroup.js +5 -3
- package/esm/menu/group-label/MenuGroupLabel.js +2 -4
- package/esm/menu/item/MenuItem.js +2 -4
- package/esm/menu/popup/MenuPopup.js +15 -6
- package/esm/menu/portal/MenuPortal.js +20 -10
- package/esm/menu/positioner/MenuPositioner.js +33 -20
- package/esm/menu/radio-group/MenuRadioGroup.js +5 -3
- package/esm/menu/radio-item/MenuRadioItem.js +5 -3
- package/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js +2 -4
- package/esm/menu/root/MenuRoot.js +25 -12
- package/esm/menu/submenu-root/MenuSubmenuRoot.js +5 -5
- package/esm/menu/submenu-trigger/MenuSubmenuTrigger.js +2 -4
- package/esm/menu/trigger/MenuTrigger.js +13 -7
- package/esm/menubar/Menubar.js +31 -15
- package/esm/meter/indicator/MeterIndicator.js +2 -4
- package/esm/meter/label/MeterLabel.js +2 -4
- package/esm/meter/root/MeterRoot.js +5 -3
- package/esm/meter/track/MeterTrack.js +2 -4
- package/esm/meter/value/MeterValue.js +3 -7
- package/esm/navigation-menu/arrow/NavigationMenuArrow.js +2 -4
- package/esm/navigation-menu/backdrop/NavigationMenuBackdrop.js +2 -4
- package/esm/navigation-menu/content/NavigationMenuContent.js +25 -13
- package/esm/navigation-menu/icon/NavigationMenuIcon.js +2 -4
- package/esm/navigation-menu/item/NavigationMenuItem.js +6 -5
- package/esm/navigation-menu/link/NavigationMenuLink.js +2 -2
- package/esm/navigation-menu/list/NavigationMenuList.js +5 -3
- package/esm/navigation-menu/popup/NavigationMenuPopup.js +33 -34
- package/esm/navigation-menu/portal/NavigationMenuPortal.js +20 -10
- package/esm/navigation-menu/positioner/NavigationMenuPositioner.js +5 -3
- package/esm/navigation-menu/root/NavigationMenuRoot.js +23 -13
- package/esm/navigation-menu/trigger/NavigationMenuTrigger.js +61 -49
- package/esm/navigation-menu/viewport/NavigationMenuViewport.js +2 -4
- package/esm/number-field/decrement/NumberFieldDecrement.js +2 -4
- package/esm/number-field/group/NumberFieldGroup.js +2 -4
- package/esm/number-field/increment/NumberFieldIncrement.js +2 -4
- package/esm/number-field/input/NumberFieldInput.js +2 -4
- package/esm/number-field/root/NumberFieldRoot.js +37 -16
- package/esm/number-field/scrub-area/NumberFieldScrubArea.js +5 -3
- package/esm/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.js +8 -4
- package/esm/popover/arrow/PopoverArrow.js +2 -4
- package/esm/popover/backdrop/PopoverBackdrop.js +2 -4
- package/esm/popover/close/PopoverClose.js +2 -4
- package/esm/popover/description/PopoverDescription.js +2 -4
- package/esm/popover/popup/PopoverPopup.js +21 -8
- package/esm/popover/portal/PopoverPortal.js +20 -10
- package/esm/popover/positioner/PopoverPositioner.js +28 -13
- package/esm/popover/root/PopoverRoot.js +19 -13
- package/esm/popover/title/PopoverTitle.js +2 -4
- package/esm/popover/trigger/PopoverTrigger.js +2 -4
- package/esm/preview-card/arrow/PreviewCardArrow.js +2 -4
- package/esm/preview-card/backdrop/PreviewCardBackdrop.js +2 -4
- package/esm/preview-card/popup/PreviewCardPopup.js +2 -4
- package/esm/preview-card/portal/PreviewCardPortal.js +20 -10
- package/esm/preview-card/positioner/PreviewCardPositioner.js +5 -3
- package/esm/preview-card/root/PreviewCardRoot.js +5 -3
- package/esm/preview-card/trigger/PreviewCardTrigger.js +2 -4
- package/esm/progress/indicator/ProgressIndicator.js +2 -4
- package/esm/progress/label/ProgressLabel.js +2 -4
- package/esm/progress/root/ProgressRoot.js +5 -3
- package/esm/progress/track/ProgressTrack.js +2 -4
- package/esm/progress/value/ProgressValue.js +2 -4
- package/esm/radio/indicator/RadioIndicator.js +8 -4
- package/esm/radio/root/RadioRoot.js +22 -11
- package/esm/radio-group/RadioGroup.js +18 -10
- package/esm/scroll-area/content/ScrollAreaContent.js +2 -4
- package/esm/scroll-area/corner/ScrollAreaCorner.js +8 -4
- package/esm/scroll-area/root/ScrollAreaRoot.js +5 -3
- package/esm/scroll-area/scrollbar/ScrollAreaScrollbar.js +13 -7
- package/esm/scroll-area/thumb/ScrollAreaThumb.js +2 -4
- package/esm/scroll-area/viewport/ScrollAreaViewport.js +5 -3
- package/esm/select/arrow/SelectArrow.js +8 -4
- package/esm/select/backdrop/SelectBackdrop.js +2 -4
- package/esm/select/group/SelectGroup.js +5 -3
- package/esm/select/group-label/SelectGroupLabel.js +2 -4
- package/esm/select/icon/SelectIcon.js +3 -7
- package/esm/select/item/SelectItem.js +5 -3
- package/esm/select/item-indicator/SelectItemIndicator.js +8 -4
- package/esm/select/item-text/SelectItemText.js +2 -4
- package/esm/select/popup/SelectPopup.js +13 -10
- package/esm/select/portal/SelectPortal.js +20 -10
- package/esm/select/positioner/SelectPositioner.js +24 -13
- package/esm/select/root/SelectRoot.js +58 -47
- package/esm/select/scroll-arrow/SelectScrollArrow.js +10 -7
- package/esm/select/scroll-down-arrow/SelectScrollDownArrow.js +8 -5
- package/esm/select/scroll-up-arrow/SelectScrollUpArrow.js +8 -5
- package/esm/select/trigger/SelectTrigger.js +2 -4
- package/esm/select/value/SelectValue.js +3 -7
- package/esm/separator/Separator.js +2 -4
- package/esm/slider/control/SliderControl.js +2 -4
- package/esm/slider/indicator/SliderIndicator.js +2 -4
- package/esm/slider/root/SliderRoot.js +71 -47
- package/esm/slider/thumb/SliderThumb.js +10 -11
- package/esm/slider/track/SliderTrack.js +2 -4
- package/esm/slider/value/SliderValue.js +3 -7
- package/esm/switch/root/SwitchRoot.js +20 -9
- package/esm/switch/thumb/SwitchThumb.js +2 -4
- package/esm/tabs/indicator/TabsIndicator.js +15 -11
- package/esm/tabs/list/TabsList.js +20 -12
- package/esm/tabs/panel/TabsPanel.js +3 -7
- package/esm/tabs/root/TabsRoot.js +13 -9
- package/esm/tabs/tab/TabsTab.js +2 -4
- package/esm/toast/action/ToastAction.js +3 -7
- package/esm/toast/close/ToastClose.js +2 -4
- package/esm/toast/description/ToastDescription.js +3 -7
- package/esm/toast/portal/ToastPortal.js +8 -4
- package/esm/toast/provider/ToastProvider.js +5 -3
- package/esm/toast/root/ToastRoot.js +37 -22
- package/esm/toast/title/ToastTitle.js +3 -7
- package/esm/toast/utils/test-utils.js +28 -21
- package/esm/toast/viewport/ToastViewport.js +13 -13
- package/esm/toggle/Toggle.js +10 -6
- package/esm/toggle-group/ToggleGroup.js +19 -11
- package/esm/toolbar/button/ToolbarButton.js +2 -2
- package/esm/toolbar/group/ToolbarGroup.js +5 -3
- package/esm/toolbar/input/ToolbarInput.js +2 -2
- package/esm/toolbar/link/ToolbarLink.js +2 -2
- package/esm/toolbar/root/ToolbarRoot.js +20 -10
- package/esm/toolbar/separator/ToolbarSeparator.js +12 -6
- package/esm/tooltip/arrow/TooltipArrow.js +2 -4
- package/esm/tooltip/popup/TooltipPopup.js +2 -4
- package/esm/tooltip/portal/TooltipPortal.js +20 -10
- package/esm/tooltip/positioner/TooltipPositioner.js +5 -3
- package/esm/tooltip/provider/TooltipProvider.js +15 -7
- package/esm/tooltip/root/TooltipRoot.js +5 -3
- package/esm/tooltip/trigger/TooltipTrigger.js +2 -4
- package/esm/unstable-no-ssr/NoSsr.js +12 -5
- package/esm/utils/FloatingPortalLite.js +8 -4
- package/esm/utils/FocusGuard.js +23 -10
- package/esm/utils/InternalBackdrop.js +22 -18
- package/esm/utils/styles.js +3 -5
- package/esm/utils/useRenderElement.js +36 -30
- package/package.json +5 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { getSide } from '@floating-ui/utils';
|
|
2
3
|
import { createEffect, createSignal, onCleanup } from 'solid-js';
|
|
3
4
|
import { disableFocusInside, enableFocusInside, isOutsideEvent } from "../../floating-ui-solid/utils.js";
|
|
@@ -11,7 +12,6 @@ import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
|
11
12
|
import { useNavigationMenuPortalContext } from "../portal/NavigationMenuPortalContext.js";
|
|
12
13
|
import { useNavigationMenuRootContext, useNavigationMenuTreeContext } from "../root/NavigationMenuRootContext.js";
|
|
13
14
|
import { NavigationMenuPositionerContext } from "./NavigationMenuPositionerContext.js";
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
const adaptiveOrigin = {
|
|
16
16
|
name: 'adaptiveOrigin',
|
|
17
17
|
async fn(state) {
|
|
@@ -207,8 +207,10 @@ export function NavigationMenuPositioner(componentProps) {
|
|
|
207
207
|
}
|
|
208
208
|
}, elementProps]
|
|
209
209
|
});
|
|
210
|
-
return
|
|
210
|
+
return _$createComponent(NavigationMenuPositionerContext.Provider, {
|
|
211
211
|
value: positioning,
|
|
212
|
-
children
|
|
212
|
+
get children() {
|
|
213
|
+
return element();
|
|
214
|
+
}
|
|
213
215
|
});
|
|
214
216
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { isHTMLElement } from '@floating-ui/utils/dom';
|
|
2
3
|
import { batch, createMemo, createSignal, Show, splitProps } from 'solid-js';
|
|
3
4
|
import { FloatingTree, useFloatingNodeId, useFloatingParentNodeId } from "../../floating-ui-solid/index.js";
|
|
@@ -15,7 +16,6 @@ import { NavigationMenuRootContext, NavigationMenuTreeContext, useNavigationMenu
|
|
|
15
16
|
*
|
|
16
17
|
* Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
|
|
17
18
|
*/
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
export function NavigationMenuRoot(componentProps) {
|
|
20
20
|
const [local] = splitProps(componentProps, ['defaultValue', 'value', 'onValueChange', 'actionsRef', 'delay', 'closeDelay', 'orientation', 'onOpenChangeComplete']);
|
|
21
21
|
const defaultValue = () => local.defaultValue ?? null;
|
|
@@ -115,19 +115,27 @@ export function NavigationMenuRoot(componentProps) {
|
|
|
115
115
|
closeDelay,
|
|
116
116
|
orientation
|
|
117
117
|
};
|
|
118
|
-
const element = () =>
|
|
118
|
+
const element = () => _$createComponent(NavigationMenuRootContext.Provider, {
|
|
119
119
|
value: contextValue,
|
|
120
|
-
children
|
|
121
|
-
|
|
122
|
-
}
|
|
120
|
+
get children() {
|
|
121
|
+
return _$createComponent(TreeContext, componentProps);
|
|
122
|
+
}
|
|
123
123
|
});
|
|
124
124
|
if (process.env.NODE_ENV !== "production") element.displayName = "element";
|
|
125
|
-
return
|
|
126
|
-
when
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
return _$createComponent(Show, {
|
|
126
|
+
get when() {
|
|
127
|
+
return nested();
|
|
128
|
+
},
|
|
129
|
+
get fallback() {
|
|
130
|
+
return _$createComponent(FloatingTree, {
|
|
131
|
+
get children() {
|
|
132
|
+
return element();
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
},
|
|
136
|
+
get children() {
|
|
137
|
+
return element();
|
|
138
|
+
}
|
|
131
139
|
});
|
|
132
140
|
}
|
|
133
141
|
function TreeContext(componentProps) {
|
|
@@ -159,8 +167,10 @@ function TreeContext(componentProps) {
|
|
|
159
167
|
}
|
|
160
168
|
}, elementProps]
|
|
161
169
|
});
|
|
162
|
-
return
|
|
170
|
+
return _$createComponent(NavigationMenuTreeContext.Provider, {
|
|
163
171
|
value: nodeId,
|
|
164
|
-
children
|
|
172
|
+
get children() {
|
|
173
|
+
return element();
|
|
174
|
+
}
|
|
165
175
|
});
|
|
166
176
|
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { template as _$template } from "solid-js/web";
|
|
2
|
+
import { style as _$style } from "solid-js/web";
|
|
3
|
+
import { setAttribute as _$setAttribute } from "solid-js/web";
|
|
4
|
+
import { effect as _$effect } from "solid-js/web";
|
|
5
|
+
import { memo as _$memo } from "solid-js/web";
|
|
6
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/_$template(`<span>`);
|
|
1
8
|
import { batch, createEffect, createSignal, onCleanup } from 'solid-js';
|
|
2
9
|
import { CompositeItem } from "../../composite/item/CompositeItem.js";
|
|
3
10
|
import { safePolygon, useClick, useDismiss, useFloatingRootContext, useFloatingTree, useHover, useInteractions } from "../../floating-ui-solid/index.js";
|
|
@@ -18,7 +25,6 @@ import { NavigationMenuPopupCssVars } from "../popup/NavigationMenuPopupCssVars.
|
|
|
18
25
|
import { NavigationMenuPositionerCssVars } from "../positioner/NavigationMenuPositionerCssVars.js";
|
|
19
26
|
import { useNavigationMenuRootContext, useNavigationMenuTreeContext } from "../root/NavigationMenuRootContext.js";
|
|
20
27
|
import { isOutsideMenuEvent } from "../utils/isOutsideMenuEvent.js";
|
|
21
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
28
|
const TRIGGER_IDENTIFIER = 'data-navigation-menu-trigger';
|
|
23
29
|
|
|
24
30
|
/**
|
|
@@ -314,53 +320,59 @@ export function NavigationMenuTrigger(componentProps) {
|
|
|
314
320
|
}
|
|
315
321
|
}, elementProps]
|
|
316
322
|
});
|
|
317
|
-
return
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
323
|
+
return [_$createComponent(CompositeItem, {
|
|
324
|
+
render: element
|
|
325
|
+
}), _$memo(() => _$memo(() => !!isActiveItem())() && [_$createComponent(FocusGuard, {
|
|
326
|
+
ref: el => {
|
|
327
|
+
refs.beforeOutsideRef = el;
|
|
328
|
+
},
|
|
329
|
+
onFocus: event => {
|
|
330
|
+
const positionerEl = positionerElement();
|
|
331
|
+
const triggerEl = triggerElement();
|
|
332
|
+
if (positionerEl && isOutsideEvent(event, positionerEl)) {
|
|
333
|
+
queueMicrotask(() => {
|
|
334
|
+
refs.beforeInsideRef?.focus();
|
|
335
|
+
});
|
|
336
|
+
} else {
|
|
337
|
+
queueMicrotask(() => {
|
|
338
|
+
const prevTabbable = getPreviousTabbable(triggerEl);
|
|
339
|
+
prevTabbable?.focus();
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}), (() => {
|
|
344
|
+
var _el$ = _tmpl$();
|
|
345
|
+
_$effect(_p$ => {
|
|
346
|
+
var _v$ = popupElement()?.id,
|
|
347
|
+
_v$2 = visuallyHidden;
|
|
348
|
+
_v$ !== _p$.e && _$setAttribute(_el$, "aria-owns", _p$.e = _v$);
|
|
349
|
+
_p$.t = _$style(_el$, _v$2, _p$.t);
|
|
350
|
+
return _p$;
|
|
351
|
+
}, {
|
|
352
|
+
e: undefined,
|
|
353
|
+
t: undefined
|
|
354
|
+
});
|
|
355
|
+
return _el$;
|
|
356
|
+
})(), _$createComponent(FocusGuard, {
|
|
357
|
+
ref: el => {
|
|
358
|
+
refs.afterOutsideRef = el;
|
|
359
|
+
},
|
|
360
|
+
onFocus: event => {
|
|
361
|
+
const positionerEl = positionerElement();
|
|
362
|
+
const triggerEl = triggerElement();
|
|
363
|
+
if (positionerEl && isOutsideEvent(event, positionerEl)) {
|
|
364
|
+
queueMicrotask(() => {
|
|
365
|
+
refs.afterInsideRef?.focus();
|
|
366
|
+
});
|
|
367
|
+
} else {
|
|
368
|
+
queueMicrotask(() => {
|
|
369
|
+
const nextTabbable = getNextTabbable(triggerEl);
|
|
370
|
+
nextTabbable?.focus();
|
|
371
|
+
if (!contains(refs.rootRef, nextTabbable)) {
|
|
372
|
+
setValue(null, event, 'focus-out');
|
|
361
373
|
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
});
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
})])];
|
|
366
378
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
2
3
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
3
4
|
import { useNavigationMenuRootContext } from "../root/NavigationMenuRootContext.js";
|
|
@@ -8,7 +9,6 @@ import { useNavigationMenuRootContext } from "../root/NavigationMenuRootContext.
|
|
|
8
9
|
*
|
|
9
10
|
* Documentation: [Base UI Navigation Menu](https://base-ui.com/react/components/navigation-menu)
|
|
10
11
|
*/
|
|
11
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
export function NavigationMenuViewport(componentProps) {
|
|
13
13
|
const [,, elementProps] = splitComponentProps(componentProps, []);
|
|
14
14
|
const {
|
|
@@ -18,7 +18,5 @@ export function NavigationMenuViewport(componentProps) {
|
|
|
18
18
|
ref: setViewportElement,
|
|
19
19
|
props: elementProps
|
|
20
20
|
});
|
|
21
|
-
return
|
|
22
|
-
children: element()
|
|
23
|
-
});
|
|
21
|
+
return _$memo(element);
|
|
24
22
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
2
3
|
import { useButton } from "../../use-button/index.js";
|
|
3
4
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
@@ -11,7 +12,6 @@ import { styleHookMapping } from "../utils/styleHooks.js";
|
|
|
11
12
|
*
|
|
12
13
|
* Documentation: [Base UI Number Field](https://base-ui.com/react/components/number-field)
|
|
13
14
|
*/
|
|
14
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
export function NumberFieldDecrement(componentProps) {
|
|
16
16
|
const [, local, elementProps] = splitComponentProps(componentProps, ['disabled']);
|
|
17
17
|
const {
|
|
@@ -65,7 +65,5 @@ export function NumberFieldDecrement(componentProps) {
|
|
|
65
65
|
props: [props, elementProps, getButtonProps],
|
|
66
66
|
customStyleHookMapping: styleHookMapping
|
|
67
67
|
});
|
|
68
|
-
return
|
|
69
|
-
children: element()
|
|
70
|
-
});
|
|
68
|
+
return _$memo(element);
|
|
71
69
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
2
3
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
3
4
|
import { useNumberFieldRootContext } from "../root/NumberFieldRootContext.js";
|
|
@@ -9,7 +10,6 @@ import { styleHookMapping } from "../utils/styleHooks.js";
|
|
|
9
10
|
*
|
|
10
11
|
* Documentation: [Base UI Number Field](https://base-ui.com/react/components/number-field)
|
|
11
12
|
*/
|
|
12
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export function NumberFieldGroup(componentProps) {
|
|
14
14
|
const [,, elementProps] = splitComponentProps(componentProps, []);
|
|
15
15
|
const {
|
|
@@ -22,7 +22,5 @@ export function NumberFieldGroup(componentProps) {
|
|
|
22
22
|
}, elementProps],
|
|
23
23
|
customStyleHookMapping: styleHookMapping
|
|
24
24
|
});
|
|
25
|
-
return
|
|
26
|
-
children: element()
|
|
27
|
-
});
|
|
25
|
+
return _$memo(element);
|
|
28
26
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
2
3
|
import { useButton } from "../../use-button/index.js";
|
|
3
4
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
@@ -11,7 +12,6 @@ import { styleHookMapping } from "../utils/styleHooks.js";
|
|
|
11
12
|
*
|
|
12
13
|
* Documentation: [Base UI Number Field](https://base-ui.com/react/components/number-field)
|
|
13
14
|
*/
|
|
14
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
export function NumberFieldIncrement(componentProps) {
|
|
16
16
|
const [, local, elementProps] = splitComponentProps(componentProps, ['disabled']);
|
|
17
17
|
const {
|
|
@@ -65,7 +65,5 @@ export function NumberFieldIncrement(componentProps) {
|
|
|
65
65
|
props: [props, elementProps, getButtonProps],
|
|
66
66
|
customStyleHookMapping: styleHookMapping
|
|
67
67
|
});
|
|
68
|
-
return
|
|
69
|
-
children: element()
|
|
70
|
-
});
|
|
68
|
+
return _$memo(element);
|
|
71
69
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { batch, createEffect } from 'solid-js';
|
|
2
3
|
import { useFieldControlValidation } from "../../field/control/useFieldControlValidation.js";
|
|
3
4
|
import { useFieldRootContext } from "../../field/root/FieldRootContext.js";
|
|
@@ -13,7 +14,6 @@ import { useNumberFieldRootContext } from "../root/NumberFieldRootContext.js";
|
|
|
13
14
|
import { DEFAULT_STEP } from "../utils/constants.js";
|
|
14
15
|
import { ARABIC_RE, HAN_RE, getNumberLocaleDetails, parseNumber } from "../utils/parse.js";
|
|
15
16
|
import { styleHookMapping } from "../utils/styleHooks.js";
|
|
16
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
const customStyleHookMapping = {
|
|
18
18
|
...fieldValidityMapping,
|
|
19
19
|
...styleHookMapping
|
|
@@ -308,7 +308,5 @@ export function NumberFieldInput(componentProps) {
|
|
|
308
308
|
props: [inputProps, props => mergeProps(props, getInputValidationProps()), props => mergeProps(props, getValidationProps()), elementProps],
|
|
309
309
|
customStyleHookMapping
|
|
310
310
|
});
|
|
311
|
-
return
|
|
312
|
-
children: element()
|
|
313
|
-
});
|
|
311
|
+
return _$memo(element);
|
|
314
312
|
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { template as _$template } from "solid-js/web";
|
|
2
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
3
|
+
import { setAttribute as _$setAttribute } from "solid-js/web";
|
|
4
|
+
import { effect as _$effect } from "solid-js/web";
|
|
5
|
+
import { use as _$use } from "solid-js/web";
|
|
6
|
+
import { memo as _$memo } from "solid-js/web";
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/_$template(`<input type=hidden>`);
|
|
1
8
|
import { batch, createEffect, createSignal, on, onCleanup, onMount, Show, mergeProps as solidMergeProps } from 'solid-js';
|
|
2
9
|
import { useFieldRootContext } from "../../field/root/FieldRootContext.js";
|
|
3
10
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -21,7 +28,6 @@ import { NumberFieldRootContext } from "./NumberFieldRootContext.js";
|
|
|
21
28
|
*
|
|
22
29
|
* Documentation: [Base UI Number Field](https://base-ui.com/react/components/number-field)
|
|
23
30
|
*/
|
|
24
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
31
|
export function NumberFieldRoot(componentProps) {
|
|
26
32
|
const [, local, elementProps] = splitComponentProps(componentProps, ['id', 'min', 'max', 'smallStep', 'step', 'largeStep', 'required', 'disabled', 'readOnly', 'name', 'defaultValue', 'value', 'onValueChange', 'allowWheelScrub', 'snapOnStep', 'format', 'locale', 'refs']);
|
|
27
33
|
const smallStep = () => local.smallStep ?? 0.1;
|
|
@@ -319,23 +325,38 @@ export function NumberFieldRoot(componentProps) {
|
|
|
319
325
|
props: elementProps,
|
|
320
326
|
customStyleHookMapping: styleHookMapping
|
|
321
327
|
});
|
|
322
|
-
return
|
|
328
|
+
return _$createComponent(NumberFieldRootContext.Provider, {
|
|
323
329
|
value: contextValue,
|
|
324
|
-
children
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
name: name(),
|
|
329
|
-
ref: el => {
|
|
330
|
-
if (local.refs) {
|
|
331
|
-
local.refs.inputRef = el;
|
|
332
|
-
}
|
|
330
|
+
get children() {
|
|
331
|
+
return [_$memo(() => element()), _$createComponent(Show, {
|
|
332
|
+
get when() {
|
|
333
|
+
return name();
|
|
333
334
|
},
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
get children() {
|
|
336
|
+
var _el$ = _tmpl$();
|
|
337
|
+
_$use(el => {
|
|
338
|
+
if (local.refs) {
|
|
339
|
+
local.refs.inputRef = el;
|
|
340
|
+
}
|
|
341
|
+
}, _el$);
|
|
342
|
+
_$effect(_p$ => {
|
|
343
|
+
var _v$ = name(),
|
|
344
|
+
_v$2 = disabled(),
|
|
345
|
+
_v$3 = required();
|
|
346
|
+
_v$ !== _p$.e && _$setAttribute(_el$, "name", _p$.e = _v$);
|
|
347
|
+
_v$2 !== _p$.t && (_el$.disabled = _p$.t = _v$2);
|
|
348
|
+
_v$3 !== _p$.a && (_el$.required = _p$.a = _v$3);
|
|
349
|
+
return _p$;
|
|
350
|
+
}, {
|
|
351
|
+
e: undefined,
|
|
352
|
+
t: undefined,
|
|
353
|
+
a: undefined
|
|
354
|
+
});
|
|
355
|
+
_$effect(() => _el$.value = value() ?? '');
|
|
356
|
+
return _el$;
|
|
357
|
+
}
|
|
358
|
+
})];
|
|
359
|
+
}
|
|
339
360
|
});
|
|
340
361
|
}
|
|
341
362
|
function getControlledInputValue(value, locale, format) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { createEffect, createSignal, onCleanup } from 'solid-js';
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { isWebKit } from "../../utils/detectBrowser.js";
|
|
@@ -16,7 +17,6 @@ import { NumberFieldScrubAreaContext } from "./NumberFieldScrubAreaContext.js";
|
|
|
16
17
|
*
|
|
17
18
|
* Documentation: [Base UI Number Field](https://base-ui.com/react/components/number-field)
|
|
18
19
|
*/
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
export function NumberFieldScrubArea(componentProps) {
|
|
21
21
|
const [, local, elementProps] = splitComponentProps(componentProps, ['direction', 'pixelSensitivity', 'teleportDistance']);
|
|
22
22
|
const direction = () => local.direction ?? 'horizontal';
|
|
@@ -219,8 +219,10 @@ export function NumberFieldScrubArea(componentProps) {
|
|
|
219
219
|
props: [defaultProps, elementProps],
|
|
220
220
|
customStyleHookMapping: styleHookMapping
|
|
221
221
|
});
|
|
222
|
-
return
|
|
222
|
+
return _$createComponent(NumberFieldScrubAreaContext.Provider, {
|
|
223
223
|
value: contextValue,
|
|
224
|
-
children
|
|
224
|
+
get children() {
|
|
225
|
+
return element();
|
|
226
|
+
}
|
|
225
227
|
});
|
|
226
228
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { createSignal } from 'solid-js';
|
|
2
3
|
import { Portal } from 'solid-js/web';
|
|
3
4
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -17,7 +18,6 @@ import { styleHookMapping } from "../utils/styleHooks.js";
|
|
|
17
18
|
*
|
|
18
19
|
* Documentation: [Base UI Number Field](https://base-ui.com/react/components/number-field)
|
|
19
20
|
*/
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
21
|
export function NumberFieldScrubAreaCursor(componentProps) {
|
|
22
22
|
const [,, elementProps] = splitComponentProps(componentProps, []);
|
|
23
23
|
const {
|
|
@@ -49,8 +49,12 @@ export function NumberFieldScrubAreaCursor(componentProps) {
|
|
|
49
49
|
}, elementProps],
|
|
50
50
|
customStyleHookMapping: styleHookMapping
|
|
51
51
|
});
|
|
52
|
-
return
|
|
53
|
-
mount
|
|
54
|
-
|
|
52
|
+
return _$createComponent(Portal, {
|
|
53
|
+
get mount() {
|
|
54
|
+
return ownerDocument(domElement()).body;
|
|
55
|
+
},
|
|
56
|
+
get children() {
|
|
57
|
+
return element();
|
|
58
|
+
}
|
|
55
59
|
});
|
|
56
60
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
2
3
|
import { popupStateMapping } from "../../utils/popupStateMapping.js";
|
|
3
4
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
@@ -10,7 +11,6 @@ import { usePopoverRootContext } from "../root/PopoverRootContext.js";
|
|
|
10
11
|
*
|
|
11
12
|
* Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)
|
|
12
13
|
*/
|
|
13
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
export function PopoverArrow(componentProps) {
|
|
15
15
|
const [,, elementProps] = splitComponentProps(componentProps, []);
|
|
16
16
|
const {
|
|
@@ -48,7 +48,5 @@ export function PopoverArrow(componentProps) {
|
|
|
48
48
|
'aria-hidden': true
|
|
49
49
|
}, elementProps]
|
|
50
50
|
});
|
|
51
|
-
return
|
|
52
|
-
children: element()
|
|
53
|
-
});
|
|
51
|
+
return _$memo(element);
|
|
54
52
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
2
3
|
import { popupStateMapping as baseMapping } from "../../utils/popupStateMapping.js";
|
|
3
4
|
import { transitionStatusMapping } from "../../utils/styleHookMapping.js";
|
|
4
5
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
5
6
|
import { usePopoverRootContext } from "../root/PopoverRootContext.js";
|
|
6
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const customStyleHookMapping = {
|
|
8
8
|
...baseMapping,
|
|
9
9
|
...transitionStatusMapping
|
|
@@ -48,7 +48,5 @@ export function PopoverBackdrop(props) {
|
|
|
48
48
|
}
|
|
49
49
|
}, elementProps]
|
|
50
50
|
});
|
|
51
|
-
return
|
|
52
|
-
children: element()
|
|
53
|
-
});
|
|
51
|
+
return _$memo(element);
|
|
54
52
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
2
3
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
3
4
|
import { usePopoverRootContext } from "../root/PopoverRootContext.js";
|
|
@@ -7,7 +8,6 @@ import { usePopoverRootContext } from "../root/PopoverRootContext.js";
|
|
|
7
8
|
*
|
|
8
9
|
* Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)
|
|
9
10
|
*/
|
|
10
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
export function PopoverClose(props) {
|
|
12
12
|
const [,, elementProps] = splitComponentProps(props, []);
|
|
13
13
|
const {
|
|
@@ -20,7 +20,5 @@ export function PopoverClose(props) {
|
|
|
20
20
|
}
|
|
21
21
|
}, elementProps]
|
|
22
22
|
});
|
|
23
|
-
return
|
|
24
|
-
children: element()
|
|
25
|
-
});
|
|
23
|
+
return _$memo(element);
|
|
26
24
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { onMount } from 'solid-js';
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { useBaseUiId } from "../../utils/useBaseUiId.js";
|
|
@@ -10,7 +11,6 @@ import { usePopoverRootContext } from "../root/PopoverRootContext.js";
|
|
|
10
11
|
*
|
|
11
12
|
* Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)
|
|
12
13
|
*/
|
|
13
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
export function PopoverDescription(componentProps) {
|
|
15
15
|
const [,, elementProps] = splitComponentProps(componentProps, []);
|
|
16
16
|
const {
|
|
@@ -35,7 +35,5 @@ export function PopoverDescription(componentProps) {
|
|
|
35
35
|
}
|
|
36
36
|
}, elementProps]
|
|
37
37
|
});
|
|
38
|
-
return
|
|
39
|
-
children: element()
|
|
40
|
-
});
|
|
38
|
+
return _$memo(element);
|
|
41
39
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
2
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
3
|
import { createMemo } from 'solid-js';
|
|
2
4
|
import { FloatingFocusManager } from "../../floating-ui-solid/index.js";
|
|
3
5
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -8,7 +10,6 @@ import { useOpenChangeComplete } from "../../utils/useOpenChangeComplete.js";
|
|
|
8
10
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
9
11
|
import { usePopoverPositionerContext } from "../positioner/PopoverPositionerContext.js";
|
|
10
12
|
import { usePopoverRootContext } from "../root/PopoverRootContext.js";
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
13
|
const customStyleHookMapping = {
|
|
13
14
|
...baseMapping,
|
|
14
15
|
...transitionStatusMapping
|
|
@@ -95,12 +96,24 @@ export function PopoverPopup(componentProps) {
|
|
|
95
96
|
}
|
|
96
97
|
}, elementProps]
|
|
97
98
|
});
|
|
98
|
-
return
|
|
99
|
-
context
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
return _$createComponent(FloatingFocusManager, {
|
|
100
|
+
get context() {
|
|
101
|
+
return positioner.context;
|
|
102
|
+
},
|
|
103
|
+
get modal() {
|
|
104
|
+
return modal() === 'trap-focus';
|
|
105
|
+
},
|
|
106
|
+
get disabled() {
|
|
107
|
+
return !mounted() || openReason() === 'trigger-hover';
|
|
108
|
+
},
|
|
109
|
+
get initialFocus() {
|
|
110
|
+
return resolvedInitialFocus();
|
|
111
|
+
},
|
|
112
|
+
get returnFocus() {
|
|
113
|
+
return local.finalFocus;
|
|
114
|
+
},
|
|
115
|
+
get children() {
|
|
116
|
+
return element();
|
|
117
|
+
}
|
|
105
118
|
});
|
|
106
119
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { Show } from 'solid-js';
|
|
2
3
|
import { FloatingPortal } from "../../floating-ui-solid/index.js";
|
|
3
4
|
import { usePopoverRootContext } from "../root/PopoverRootContext.js";
|
|
@@ -9,21 +10,30 @@ import { PopoverPortalContext } from "./PopoverPortalContext.js";
|
|
|
9
10
|
*
|
|
10
11
|
* Documentation: [Base UI Popover](https://base-ui.com/react/components/popover)
|
|
11
12
|
*/
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export function PopoverPortal(props) {
|
|
14
14
|
const keepMounted = () => props.keepMounted ?? false;
|
|
15
15
|
const {
|
|
16
16
|
mounted
|
|
17
17
|
} = usePopoverRootContext();
|
|
18
18
|
const shouldRender = () => mounted() || keepMounted();
|
|
19
|
-
return
|
|
20
|
-
when
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
return _$createComponent(Show, {
|
|
20
|
+
get when() {
|
|
21
|
+
return shouldRender();
|
|
22
|
+
},
|
|
23
|
+
get children() {
|
|
24
|
+
return _$createComponent(PopoverPortalContext.Provider, {
|
|
25
|
+
value: keepMounted,
|
|
26
|
+
get children() {
|
|
27
|
+
return _$createComponent(FloatingPortal, {
|
|
28
|
+
get root() {
|
|
29
|
+
return props.container;
|
|
30
|
+
},
|
|
31
|
+
get children() {
|
|
32
|
+
return props.children;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
28
38
|
});
|
|
29
39
|
}
|