@msviderok/base-ui-solid 1.0.0-beta.1 → 1.0.0-beta.2
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 +4 -3
|
@@ -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 { useAlertDialogRootContext } from "../root/AlertDialogRootContext.js";
|
|
@@ -9,21 +10,30 @@ import { AlertDialogPortalContext } from "./AlertDialogPortalContext.js";
|
|
|
9
10
|
*
|
|
10
11
|
* Documentation: [Base UI Alert Dialog](https://base-ui.com/react/components/alert-dialog)
|
|
11
12
|
*/
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export function AlertDialogPortal(props) {
|
|
14
14
|
const keepMounted = () => props.keepMounted ?? false;
|
|
15
15
|
const {
|
|
16
16
|
mounted
|
|
17
17
|
} = useAlertDialogRootContext();
|
|
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(AlertDialogPortalContext.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
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { mergeProps as solidMergeProps, useContext } from 'solid-js';
|
|
2
3
|
import { useDialogRoot } from "../../dialog/root/useDialogRoot.js";
|
|
3
4
|
import { AlertDialogRootContext } from "./AlertDialogRootContext.js";
|
|
@@ -8,7 +9,6 @@ import { AlertDialogRootContext } from "./AlertDialogRootContext.js";
|
|
|
8
9
|
*
|
|
9
10
|
* Documentation: [Base UI Alert Dialog](https://base-ui.com/react/components/alert-dialog)
|
|
10
11
|
*/
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
export function AlertDialogRoot(props) {
|
|
13
13
|
const defaultOpen = () => props.defaultOpen ?? false;
|
|
14
14
|
const parentDialogRootContext = useContext(AlertDialogRootContext);
|
|
@@ -31,8 +31,10 @@ export function AlertDialogRoot(props) {
|
|
|
31
31
|
// eslint-disable-next-line solid/reactivity
|
|
32
32
|
onOpenChangeComplete: props.onOpenChangeComplete
|
|
33
33
|
});
|
|
34
|
-
return
|
|
34
|
+
return _$createComponent(AlertDialogRootContext.Provider, {
|
|
35
35
|
value: contextValue,
|
|
36
|
-
children
|
|
36
|
+
get children() {
|
|
37
|
+
return props.children;
|
|
38
|
+
}
|
|
37
39
|
});
|
|
38
40
|
}
|
|
@@ -10,7 +10,6 @@ import { useAlertDialogRootContext } from "../root/AlertDialogRootContext.js";
|
|
|
10
10
|
*
|
|
11
11
|
* Documentation: [Base UI Alert Dialog](https://base-ui.com/react/components/alert-dialog)
|
|
12
12
|
*/
|
|
13
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
14
13
|
export function AlertDialogTitle(componentProps) {
|
|
15
14
|
const [, local, elementProps] = splitComponentProps(componentProps, ['id']);
|
|
16
15
|
const {
|
|
@@ -35,7 +34,5 @@ export function AlertDialogTitle(componentProps) {
|
|
|
35
34
|
}
|
|
36
35
|
}, elementProps]
|
|
37
36
|
});
|
|
38
|
-
return
|
|
39
|
-
children: element
|
|
40
|
-
});
|
|
37
|
+
return element;
|
|
41
38
|
}
|
|
@@ -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/useButton.js";
|
|
3
4
|
import { triggerOpenStateMapping } from "../../utils/popupStateMapping.js";
|
|
@@ -10,7 +11,6 @@ import { useAlertDialogRootContext } from "../root/AlertDialogRootContext.js";
|
|
|
10
11
|
*
|
|
11
12
|
* Documentation: [Base UI Alert Dialog](https://base-ui.com/react/components/alert-dialog)
|
|
12
13
|
*/
|
|
13
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
export function AlertDialogTrigger(componentProps) {
|
|
15
15
|
const [, local, elementProps] = splitComponentProps(componentProps, ['disabled', 'nativeButton']);
|
|
16
16
|
const disabled = () => local.disabled ?? false;
|
|
@@ -44,7 +44,5 @@ export function AlertDialogTrigger(componentProps) {
|
|
|
44
44
|
props: [triggerProps, elementProps, getButtonProps],
|
|
45
45
|
customStyleHookMapping: triggerOpenStateMapping
|
|
46
46
|
});
|
|
47
|
-
return
|
|
48
|
-
children: element()
|
|
49
|
-
});
|
|
47
|
+
return _$memo(element);
|
|
50
48
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { createEffect, createSignal, onCleanup } from 'solid-js';
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
@@ -11,7 +12,6 @@ import { avatarStyleHookMapping } from "../root/styleHooks.js";
|
|
|
11
12
|
*
|
|
12
13
|
* Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)
|
|
13
14
|
*/
|
|
14
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
export function AvatarFallback(componentProps) {
|
|
16
16
|
const [, local, elementProps] = splitComponentProps(componentProps, ['delay']);
|
|
17
17
|
const {
|
|
@@ -38,7 +38,5 @@ export function AvatarFallback(componentProps) {
|
|
|
38
38
|
customStyleHookMapping: avatarStyleHookMapping,
|
|
39
39
|
enabled: () => imageLoadingStatus() !== 'loaded' && delayPassed()
|
|
40
40
|
});
|
|
41
|
-
return
|
|
42
|
-
children: element()
|
|
43
|
-
});
|
|
41
|
+
return _$memo(element);
|
|
44
42
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { batch, createEffect } from 'solid-js';
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
@@ -11,7 +12,6 @@ import { useImageLoadingStatus } from "./useImageLoadingStatus.js";
|
|
|
11
12
|
*
|
|
12
13
|
* Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)
|
|
13
14
|
*/
|
|
14
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
export function AvatarImage(componentProps) {
|
|
16
16
|
const [, local, elementProps] = splitComponentProps(componentProps, ['onLoadingStatusChange', 'referrerPolicy', 'crossOrigin']);
|
|
17
17
|
const context = useAvatarRootContext();
|
|
@@ -42,7 +42,5 @@ export function AvatarImage(componentProps) {
|
|
|
42
42
|
customStyleHookMapping: avatarStyleHookMapping,
|
|
43
43
|
enabled: () => imageLoadingStatus() === 'loaded'
|
|
44
44
|
});
|
|
45
|
-
return
|
|
46
|
-
children: element()
|
|
47
|
-
});
|
|
45
|
+
return _$memo(element);
|
|
48
46
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { createSignal } from 'solid-js';
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
@@ -10,7 +11,6 @@ import { avatarStyleHookMapping } from "./styleHooks.js";
|
|
|
10
11
|
*
|
|
11
12
|
* Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar)
|
|
12
13
|
*/
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
export function AvatarRoot(componentProps) {
|
|
15
15
|
const [,, elementProps] = splitComponentProps(componentProps, []);
|
|
16
16
|
const [imageLoadingStatus, setImageLoadingStatus] = createSignal('idle');
|
|
@@ -28,8 +28,10 @@ export function AvatarRoot(componentProps) {
|
|
|
28
28
|
props: elementProps,
|
|
29
29
|
customStyleHookMapping: avatarStyleHookMapping
|
|
30
30
|
});
|
|
31
|
-
return
|
|
31
|
+
return _$createComponent(AvatarRootContext.Provider, {
|
|
32
32
|
value: contextValue,
|
|
33
|
-
children
|
|
33
|
+
get children() {
|
|
34
|
+
return element();
|
|
35
|
+
}
|
|
34
36
|
});
|
|
35
37
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { Show, mergeProps as solidMergeProps, splitProps } from 'solid-js';
|
|
2
3
|
import { fieldValidityMapping } from "../../field/utils/constants.js";
|
|
3
4
|
import { transitionStatusMapping } from "../../utils/styleHookMapping.js";
|
|
@@ -13,7 +14,6 @@ import { useCustomStyleHookMapping } from "../utils/useCustomStyleHookMapping.js
|
|
|
13
14
|
*
|
|
14
15
|
* Documentation: [Base UI Checkbox](https://base-ui.com/react/components/checkbox)
|
|
15
16
|
*/
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
export function CheckboxIndicator(componentProps) {
|
|
18
18
|
const [local, elementProps] = splitProps(componentProps, ['keepMounted']);
|
|
19
19
|
const keepMounted = () => local.keepMounted ?? false;
|
|
@@ -54,8 +54,12 @@ export function CheckboxIndicator(componentProps) {
|
|
|
54
54
|
props: elementProps,
|
|
55
55
|
enabled: shouldRender
|
|
56
56
|
});
|
|
57
|
-
return
|
|
58
|
-
when
|
|
59
|
-
|
|
57
|
+
return _$createComponent(Show, {
|
|
58
|
+
get when() {
|
|
59
|
+
return shouldRender();
|
|
60
|
+
},
|
|
61
|
+
get children() {
|
|
62
|
+
return element();
|
|
63
|
+
}
|
|
60
64
|
});
|
|
61
65
|
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { template as _$template } from "solid-js/web";
|
|
2
|
+
import { setAttribute as _$setAttribute } from "solid-js/web";
|
|
3
|
+
import { effect as _$effect } from "solid-js/web";
|
|
4
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
5
|
+
import { spread as _$spread } from "solid-js/web";
|
|
6
|
+
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
7
|
+
import { memo as _$memo } from "solid-js/web";
|
|
8
|
+
var _tmpl$ = /*#__PURE__*/_$template(`<input>`),
|
|
9
|
+
_tmpl$2 = /*#__PURE__*/_$template(`<input type=hidden value=off>`);
|
|
1
10
|
import { batch, createEffect, createMemo, createSignal, onMount, mergeProps as solidMergeProps, splitProps } from 'solid-js';
|
|
2
11
|
import { useCheckboxGroupContext } from "../../checkbox-group/CheckboxGroupContext.js";
|
|
3
12
|
import { useFieldControlValidation } from "../../field/control/useFieldControlValidation.js";
|
|
@@ -13,7 +22,6 @@ import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
|
13
22
|
import { visuallyHidden } from "../../utils/visuallyHidden.js";
|
|
14
23
|
import { useCustomStyleHookMapping } from "../utils/useCustomStyleHookMapping.js";
|
|
15
24
|
import { CheckboxRootContext } from "./CheckboxRootContext.js";
|
|
16
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
25
|
export const PARENT_CHECKBOX = 'data-parent';
|
|
18
26
|
|
|
19
27
|
/**
|
|
@@ -275,14 +283,18 @@ export function CheckboxRoot(componentProps) {
|
|
|
275
283
|
onClick
|
|
276
284
|
}, props => fieldControlValidation().getValidationProps(props), elementProps, props => mergeProps(props, groupProps().other), getButtonProps]
|
|
277
285
|
});
|
|
278
|
-
return
|
|
286
|
+
return _$createComponent(CheckboxRootContext.Provider, {
|
|
279
287
|
value: state,
|
|
280
|
-
children
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
288
|
+
get children() {
|
|
289
|
+
return [_$memo(() => element()), _$memo(() => _$memo(() => !!(!checked() && !groupContext && local.name && !parent()))() && (() => {
|
|
290
|
+
var _el$2 = _tmpl$2();
|
|
291
|
+
_$effect(() => _$setAttribute(_el$2, "name", local.name));
|
|
292
|
+
return _el$2;
|
|
293
|
+
})()), (() => {
|
|
294
|
+
var _el$ = _tmpl$();
|
|
295
|
+
_$spread(_el$, _$mergeProps(() => inputProps()), false, false);
|
|
296
|
+
return _el$;
|
|
297
|
+
})()];
|
|
298
|
+
}
|
|
287
299
|
});
|
|
288
300
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { batch, mergeProps as solidMergeProps } from 'solid-js';
|
|
2
3
|
import { PARENT_CHECKBOX } from "../checkbox/root/CheckboxRoot.js";
|
|
3
4
|
import { useFieldControlValidation } from "../field/control/useFieldControlValidation.js";
|
|
@@ -16,7 +17,6 @@ import { useCheckboxGroupParent } from "./useCheckboxGroupParent.js";
|
|
|
16
17
|
*
|
|
17
18
|
* Documentation: [Base UI Checkbox Group](https://base-ui.com/react/components/checkbox-group)
|
|
18
19
|
*/
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
20
|
export function CheckboxGroup(componentProps) {
|
|
21
21
|
const [, local, elementProps] = splitComponentProps(componentProps, ['allValues', 'defaultValue', 'disabled', 'id', 'onValueChange', 'render', 'value']);
|
|
22
22
|
const {
|
|
@@ -89,8 +89,10 @@ export function CheckboxGroup(componentProps) {
|
|
|
89
89
|
}
|
|
90
90
|
}, elementProps]
|
|
91
91
|
});
|
|
92
|
-
return
|
|
92
|
+
return _$createComponent(CheckboxGroupContext.Provider, {
|
|
93
93
|
value: contextValue,
|
|
94
|
-
children
|
|
94
|
+
get children() {
|
|
95
|
+
return element();
|
|
96
|
+
}
|
|
95
97
|
});
|
|
96
98
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { createEffect, createMemo, Show } from 'solid-js';
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { useOpenChangeComplete } from "../../utils/useOpenChangeComplete.js";
|
|
@@ -14,7 +15,6 @@ import { useCollapsiblePanel } from "./useCollapsiblePanel.js";
|
|
|
14
15
|
*
|
|
15
16
|
* Documentation: [Base UI Collapsible](https://base-ui.com/react/components/collapsible)
|
|
16
17
|
*/
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
export function CollapsiblePanel(componentProps) {
|
|
19
19
|
const [, local, elementProps] = splitComponentProps(componentProps, ['hiddenUntilFound', 'keepMounted', 'id']);
|
|
20
20
|
const hiddenUntilFound = () => local.hiddenUntilFound ?? false;
|
|
@@ -105,8 +105,12 @@ export function CollapsiblePanel(componentProps) {
|
|
|
105
105
|
}, elementProps],
|
|
106
106
|
customStyleHookMapping: collapsibleStyleHookMapping
|
|
107
107
|
});
|
|
108
|
-
return
|
|
109
|
-
when
|
|
110
|
-
|
|
108
|
+
return _$createComponent(Show, {
|
|
109
|
+
get when() {
|
|
110
|
+
return shouldRender();
|
|
111
|
+
},
|
|
112
|
+
get children() {
|
|
113
|
+
return element();
|
|
114
|
+
}
|
|
111
115
|
});
|
|
112
116
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { Show, mergeProps as solidMergeProps } from 'solid-js';
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
@@ -11,7 +12,6 @@ import { useCollapsibleRoot } from "./useCollapsibleRoot.js";
|
|
|
11
12
|
*
|
|
12
13
|
* Documentation: [Base UI Collapsible](https://base-ui.com/solid/components/collapsible)
|
|
13
14
|
*/
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
export function CollapsibleRoot(componentProps) {
|
|
16
16
|
const [, local, elementProps] = splitComponentProps(componentProps, ['defaultOpen', 'disabled', 'onOpenChange', 'open']);
|
|
17
17
|
const defaultOpen = () => local.defaultOpen ?? false;
|
|
@@ -45,12 +45,20 @@ export function CollapsibleRoot(componentProps) {
|
|
|
45
45
|
props: elementProps,
|
|
46
46
|
customStyleHookMapping: collapsibleStyleHookMapping
|
|
47
47
|
});
|
|
48
|
-
return
|
|
48
|
+
return _$createComponent(CollapsibleRootContext.Provider, {
|
|
49
49
|
value: contextValue,
|
|
50
|
-
children
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
get children() {
|
|
51
|
+
return _$createComponent(Show, {
|
|
52
|
+
get when() {
|
|
53
|
+
return componentProps.render !== null;
|
|
54
|
+
},
|
|
55
|
+
get fallback() {
|
|
56
|
+
return componentProps.children;
|
|
57
|
+
},
|
|
58
|
+
get children() {
|
|
59
|
+
return element();
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
55
63
|
});
|
|
56
64
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { triggerOpenStateMapping } from "../../utils/collapsibleOpenStateMapping.js";
|
|
4
5
|
import { transitionStatusMapping } from "../../utils/styleHookMapping.js";
|
|
5
6
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
6
7
|
import { useCollapsibleRootContext } from "../root/CollapsibleRootContext.js";
|
|
7
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
const styleHookMapping = {
|
|
9
9
|
...triggerOpenStateMapping,
|
|
10
10
|
...transitionStatusMapping
|
|
@@ -51,7 +51,5 @@ export function CollapsibleTrigger(componentProps) {
|
|
|
51
51
|
props: [props, elementProps, button.getButtonProps],
|
|
52
52
|
customStyleHookMapping: styleHookMapping
|
|
53
53
|
});
|
|
54
|
-
return
|
|
55
|
-
children: element()
|
|
56
|
-
});
|
|
54
|
+
return _$memo(element);
|
|
57
55
|
}
|
|
@@ -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 { useCompositeItem } from "./useCompositeItem.js";
|
|
@@ -5,7 +6,6 @@ import { useCompositeItem } from "./useCompositeItem.js";
|
|
|
5
6
|
/**
|
|
6
7
|
* @internal
|
|
7
8
|
*/
|
|
8
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
export function CompositeItem(componentProps) {
|
|
10
10
|
const [, local, elementProps] = splitComponentProps(componentProps, ['refs', 'metadata']);
|
|
11
11
|
const compositeItem = useCompositeItem({
|
|
@@ -20,7 +20,5 @@ export function CompositeItem(componentProps) {
|
|
|
20
20
|
},
|
|
21
21
|
props: [compositeItem.props, elementProps]
|
|
22
22
|
});
|
|
23
|
-
return
|
|
24
|
-
children: element()
|
|
25
|
-
});
|
|
23
|
+
return _$memo(element);
|
|
26
24
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { createEffect, createMemo, createSignal, createUniqueId, on } from 'solid-js';
|
|
2
3
|
import { createStore, produce } from 'solid-js/store';
|
|
3
4
|
import { access } from "../../solid-helpers.js";
|
|
4
5
|
import { CompositeListContext } from "./CompositeListContext.js";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
/**
|
|
7
7
|
* Provides context for a list of items in a composite component.
|
|
8
8
|
* @internal
|
|
@@ -69,18 +69,22 @@ export function CompositeList(props) {
|
|
|
69
69
|
props.onMapChange?.(newArray);
|
|
70
70
|
}));
|
|
71
71
|
createEffect(on(sortedMap, sorted => listeners.forEach(l => l(sorted))));
|
|
72
|
-
return
|
|
73
|
-
value
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
72
|
+
return _$createComponent(CompositeListContext.Provider, {
|
|
73
|
+
get value() {
|
|
74
|
+
return {
|
|
75
|
+
register,
|
|
76
|
+
unregister,
|
|
77
|
+
subscribeMapChange,
|
|
78
|
+
unsubscribeMapChange,
|
|
79
|
+
// eslint-disable-next-line solid/reactivity
|
|
80
|
+
refs: props.refs,
|
|
81
|
+
nextIndex,
|
|
82
|
+
setNextIndex
|
|
83
|
+
};
|
|
82
84
|
},
|
|
83
|
-
children
|
|
85
|
+
get children() {
|
|
86
|
+
return props.children;
|
|
87
|
+
}
|
|
84
88
|
});
|
|
85
89
|
}
|
|
86
90
|
function sortByDocumentPosition(a, b) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { batch } from 'solid-js';
|
|
2
3
|
import { useDirection } from "../../direction-provider/DirectionContext.js";
|
|
3
4
|
import { access, splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -5,7 +6,6 @@ import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
|
5
6
|
import { CompositeList } from "../list/CompositeList.js";
|
|
6
7
|
import { CompositeRootContext } from "./CompositeRootContext.js";
|
|
7
8
|
import { useCompositeRoot } from "./useCompositeRoot.js";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const COMPOSITE_ROOT_STATE = {};
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -31,12 +31,18 @@ export function CompositeRoot(componentProps) {
|
|
|
31
31
|
ref: compositeRoot.setRootRef,
|
|
32
32
|
props: [compositeRoot.props, elementProps]
|
|
33
33
|
});
|
|
34
|
-
return
|
|
34
|
+
return _$createComponent(CompositeRootContext.Provider, {
|
|
35
35
|
value: contextValue,
|
|
36
|
-
children
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
get children() {
|
|
37
|
+
return _$createComponent(CompositeList, {
|
|
38
|
+
get refs() {
|
|
39
|
+
return compositeRoot.refs;
|
|
40
|
+
},
|
|
41
|
+
onMapChange: onMapChange,
|
|
42
|
+
get children() {
|
|
43
|
+
return element();
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
41
47
|
});
|
|
42
48
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { Menu } from "../../menu/index.js";
|
|
2
3
|
import { MenuRootContext } from "../../menu/root/MenuRootContext.js";
|
|
3
4
|
import { useId } from "../../utils/useId.js";
|
|
@@ -9,7 +10,6 @@ import { ContextMenuRootContext } from "./ContextMenuRootContext.js";
|
|
|
9
10
|
*
|
|
10
11
|
* Documentation: [Base UI Context Menu](https://base-ui.com/react/components/context-menu)
|
|
11
12
|
*/
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export function ContextMenuRoot(props) {
|
|
14
14
|
const anchor = {
|
|
15
15
|
getBoundingClientRect() {
|
|
@@ -34,13 +34,15 @@ export function ContextMenuRoot(props) {
|
|
|
34
34
|
refs,
|
|
35
35
|
rootId: id
|
|
36
36
|
};
|
|
37
|
-
return
|
|
37
|
+
return _$createComponent(ContextMenuRootContext.Provider, {
|
|
38
38
|
value: contextValue,
|
|
39
|
-
children
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
get children() {
|
|
40
|
+
return _$createComponent(MenuRootContext.Provider, {
|
|
41
|
+
value: undefined,
|
|
42
|
+
get children() {
|
|
43
|
+
return _$createComponent(Menu.Root, props);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
45
47
|
});
|
|
46
48
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { onCleanup, onMount } from 'solid-js';
|
|
2
3
|
import { contains, getTarget, stopEvent } from "../../floating-ui-solid/utils.js";
|
|
3
4
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -5,7 +6,6 @@ import { ownerDocument } from "../../utils/owner.js";
|
|
|
5
6
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
6
7
|
import { useTimeout } from "../../utils/useTimeout.js";
|
|
7
8
|
import { useContextMenuRootContext } from "../root/ContextMenuRootContext.js";
|
|
8
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const LONG_PRESS_DELAY = 500;
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -121,7 +121,5 @@ export function ContextMenuTrigger(componentProps) {
|
|
|
121
121
|
}
|
|
122
122
|
}, elementProps]
|
|
123
123
|
});
|
|
124
|
-
return
|
|
125
|
-
children: element()
|
|
126
|
-
});
|
|
124
|
+
return _$memo(element);
|
|
127
125
|
}
|
|
@@ -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 { useDialogRootContext } from "../root/DialogRootContext.js";
|
|
6
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
const customStyleHookMapping = {
|
|
8
8
|
...baseMapping,
|
|
9
9
|
...transitionStatusMapping
|
|
@@ -50,7 +50,5 @@ export function DialogBackdrop(componentProps) {
|
|
|
50
50
|
}, elementProps],
|
|
51
51
|
enabled: () => !nested()
|
|
52
52
|
});
|
|
53
|
-
return
|
|
54
|
-
children: element()
|
|
55
|
-
});
|
|
53
|
+
return _$memo(element);
|
|
56
54
|
}
|
|
@@ -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 { useDialogRootContext } from "../root/DialogRootContext.js";
|
|
@@ -9,7 +10,6 @@ import { useDialogClose } from "./useDialogClose.js";
|
|
|
9
10
|
*
|
|
10
11
|
* Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)
|
|
11
12
|
*/
|
|
12
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export function DialogClose(componentProps) {
|
|
14
14
|
const [, local, elementProps] = splitComponentProps(componentProps, ['disabled', 'nativeButton']);
|
|
15
15
|
const disabled = () => local.disabled ?? false;
|
|
@@ -37,7 +37,5 @@ export function DialogClose(componentProps) {
|
|
|
37
37
|
ref: dialogCloseRef,
|
|
38
38
|
props: [elementProps, getRootProps]
|
|
39
39
|
});
|
|
40
|
-
return
|
|
41
|
-
children: element()
|
|
42
|
-
});
|
|
40
|
+
return _$memo(element);
|
|
43
41
|
}
|
|
@@ -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 { useDialogRootContext } from "../root/DialogRootContext.js";
|
|
|
10
11
|
*
|
|
11
12
|
* Documentation: [Base UI Dialog](https://base-ui.com/react/components/dialog)
|
|
12
13
|
*/
|
|
13
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
export function DialogDescription(componentProps) {
|
|
15
15
|
const [, local, elementProps] = splitComponentProps(componentProps, ['id']);
|
|
16
16
|
const {
|
|
@@ -35,7 +35,5 @@ export function DialogDescription(componentProps) {
|
|
|
35
35
|
}
|
|
36
36
|
}, elementProps]
|
|
37
37
|
});
|
|
38
|
-
return
|
|
39
|
-
children: element()
|
|
40
|
-
});
|
|
38
|
+
return _$memo(element);
|
|
41
39
|
}
|