@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 { 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 { useRenderElement } from "../../utils/useRenderElement.js";
|
|
@@ -10,7 +11,6 @@ import { useToastRootContext } from "../root/ToastRootContext.js";
|
|
|
10
11
|
*
|
|
11
12
|
* Documentation: [Base UI Toast](https://base-ui.com/react/components/toast)
|
|
12
13
|
*/
|
|
13
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
export function ToastClose(componentProps) {
|
|
15
15
|
const [, local, elementProps] = splitComponentProps(componentProps, ['disabled', 'nativeButton']);
|
|
16
16
|
const nativeButton = () => local.nativeButton ?? true;
|
|
@@ -41,7 +41,5 @@ export function ToastClose(componentProps) {
|
|
|
41
41
|
}
|
|
42
42
|
}, elementProps, getButtonProps]
|
|
43
43
|
});
|
|
44
|
-
return
|
|
45
|
-
children: element()
|
|
46
|
-
});
|
|
44
|
+
return _$memo(element);
|
|
47
45
|
}
|
|
@@ -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 { useId } from "../../utils/useId.js";
|
|
@@ -11,7 +12,6 @@ import { useToastRootContext } from "../root/ToastRootContext.js";
|
|
|
11
12
|
*
|
|
12
13
|
* Documentation: [Base UI Toast](https://base-ui.com/react/components/toast)
|
|
13
14
|
*/
|
|
14
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
export function ToastDescription(componentProps) {
|
|
16
16
|
const [, local, elementProps] = splitComponentProps(componentProps, ['id']);
|
|
17
17
|
const {
|
|
@@ -46,12 +46,8 @@ export function ToastDescription(componentProps) {
|
|
|
46
46
|
}
|
|
47
47
|
}, elementProps],
|
|
48
48
|
get children() {
|
|
49
|
-
return
|
|
50
|
-
children: componentProps.children ?? toast().description
|
|
51
|
-
});
|
|
49
|
+
return _$memo(() => componentProps.children ?? toast().description);
|
|
52
50
|
}
|
|
53
51
|
});
|
|
54
|
-
return
|
|
55
|
-
children: element()
|
|
56
|
-
});
|
|
52
|
+
return _$memo(element);
|
|
57
53
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { FloatingPortalLite } from "../../utils/FloatingPortalLite.js";
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -6,10 +7,13 @@ import { FloatingPortalLite } from "../../utils/FloatingPortalLite.js";
|
|
|
6
7
|
*
|
|
7
8
|
* Documentation: [Base UI Toast](https://base-ui.com/react/components/toast)
|
|
8
9
|
*/
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
export function ToastPortal(props) {
|
|
11
|
-
return
|
|
12
|
-
root
|
|
13
|
-
|
|
11
|
+
return _$createComponent(FloatingPortalLite, {
|
|
12
|
+
get root() {
|
|
13
|
+
return props.container;
|
|
14
|
+
},
|
|
15
|
+
get children() {
|
|
16
|
+
return props.children;
|
|
17
|
+
}
|
|
14
18
|
});
|
|
15
19
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { batch, createEffect, createMemo, createSignal, onCleanup } from 'solid-js';
|
|
2
3
|
import { createStore, produce } from 'solid-js/store';
|
|
3
4
|
import { activeElement, contains } from "../../floating-ui-solid/utils.js";
|
|
@@ -7,7 +8,6 @@ import { useTimeout } from "../../utils/useTimeout.js";
|
|
|
7
8
|
import { isFocusVisible } from "../utils/focusVisible.js";
|
|
8
9
|
import { resolvePromiseOptions } from "../utils/resolvePromiseOptions.js";
|
|
9
10
|
import { ToastContext } from "./ToastProviderContext.js";
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
/**
|
|
12
12
|
* Provides a context for creating and managing toasts.
|
|
13
13
|
*
|
|
@@ -299,8 +299,10 @@ export function ToastProvider(props) {
|
|
|
299
299
|
hasDifferingHeights,
|
|
300
300
|
refs
|
|
301
301
|
};
|
|
302
|
-
return
|
|
302
|
+
return _$createComponent(ToastContext.Provider, {
|
|
303
303
|
value: contextValue,
|
|
304
|
-
children
|
|
304
|
+
get children() {
|
|
305
|
+
return props.children;
|
|
306
|
+
}
|
|
305
307
|
});
|
|
306
308
|
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { template as _$template } from "solid-js/web";
|
|
2
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
3
|
+
import { style as _$style } from "solid-js/web";
|
|
4
|
+
import { effect as _$effect } from "solid-js/web";
|
|
5
|
+
import { insert as _$insert } from "solid-js/web";
|
|
6
|
+
import { spread as _$spread } from "solid-js/web";
|
|
7
|
+
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
8
|
+
import { memo as _$memo } from "solid-js/web";
|
|
9
|
+
var _tmpl$ = /*#__PURE__*/_$template(`<div>`);
|
|
1
10
|
import { createEffect, createMemo, createSignal, on, onCleanup, onMount } from 'solid-js';
|
|
2
11
|
import { createStore } from 'solid-js/store';
|
|
3
12
|
import { activeElement, contains, getTarget } from "../../floating-ui-solid/utils.js";
|
|
@@ -12,7 +21,6 @@ import { visuallyHidden } from "../../utils/visuallyHidden.js";
|
|
|
12
21
|
import { useToastContext } from "../provider/ToastProviderContext.js";
|
|
13
22
|
import { ToastRootContext } from "./ToastRootContext.js";
|
|
14
23
|
import { ToastRootCssVars } from "./ToastRootCssVars.js";
|
|
15
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
24
|
const customStyleHookMapping = {
|
|
17
25
|
...transitionStatusMapping,
|
|
18
26
|
swipeDirection(value) {
|
|
@@ -535,29 +543,36 @@ export function ToastRoot(componentProps) {
|
|
|
535
543
|
props: [props, elementProps],
|
|
536
544
|
customStyleHookMapping,
|
|
537
545
|
get children() {
|
|
538
|
-
return
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
546
|
+
return [_$memo(() => componentProps.children), _$memo(() => _$memo(() => !!!focused())() && (() => {
|
|
547
|
+
var _el$ = _tmpl$();
|
|
548
|
+
_$spread(_el$, _$mergeProps(() => local.toast.priority === 'high' ? {
|
|
549
|
+
role: 'alert',
|
|
550
|
+
'aria-atomic': true
|
|
551
|
+
} : {
|
|
552
|
+
role: 'status',
|
|
553
|
+
'aria-live': 'polite'
|
|
554
|
+
}), false, true);
|
|
555
|
+
_$insert(_el$, (() => {
|
|
556
|
+
var _c$ = _$memo(() => !!toastRoot.renderScreenReaderContent());
|
|
557
|
+
return () => _c$() && [_$memo(() => _$memo(() => !!local.toast.title)() && (() => {
|
|
558
|
+
var _el$2 = _tmpl$();
|
|
559
|
+
_$insert(_el$2, () => local.toast.title);
|
|
560
|
+
return _el$2;
|
|
561
|
+
})()), _$memo(() => _$memo(() => !!local.toast.description)() && (() => {
|
|
562
|
+
var _el$3 = _tmpl$();
|
|
563
|
+
_$insert(_el$3, () => local.toast.description);
|
|
564
|
+
return _el$3;
|
|
565
|
+
})())];
|
|
566
|
+
})());
|
|
567
|
+
_$effect(_$p => _$style(_el$, visuallyHidden, _$p));
|
|
568
|
+
return _el$;
|
|
569
|
+
})())];
|
|
557
570
|
}
|
|
558
571
|
});
|
|
559
|
-
return
|
|
572
|
+
return _$createComponent(ToastRootContext.Provider, {
|
|
560
573
|
value: toastRoot,
|
|
561
|
-
children
|
|
574
|
+
get children() {
|
|
575
|
+
return element();
|
|
576
|
+
}
|
|
562
577
|
});
|
|
563
578
|
}
|
|
@@ -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 { useId } from "../../utils/useId.js";
|
|
@@ -10,7 +11,6 @@ import { useToastRootContext } from "../root/ToastRootContext.js";
|
|
|
10
11
|
*
|
|
11
12
|
* Documentation: [Base UI Toast](https://base-ui.com/react/components/toast)
|
|
12
13
|
*/
|
|
13
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
export function ToastTitle(componentProps) {
|
|
15
15
|
const [, local, elementProps] = splitComponentProps(componentProps, ['id']);
|
|
16
16
|
const {
|
|
@@ -45,12 +45,8 @@ export function ToastTitle(componentProps) {
|
|
|
45
45
|
}
|
|
46
46
|
}, elementProps],
|
|
47
47
|
get children() {
|
|
48
|
-
return
|
|
49
|
-
children: componentProps.children ?? toast().title
|
|
50
|
-
});
|
|
48
|
+
return _$memo(() => componentProps.children ?? toast().title);
|
|
51
49
|
}
|
|
52
50
|
});
|
|
53
|
-
return
|
|
54
|
-
children: element()
|
|
55
|
-
});
|
|
51
|
+
return _$memo(element);
|
|
56
52
|
}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { template as _$template } from "solid-js/web";
|
|
2
|
+
import { delegateEvents as _$delegateEvents } from "solid-js/web";
|
|
3
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
4
|
+
var _tmpl$ = /*#__PURE__*/_$template(`<button type=button>add`);
|
|
2
5
|
import { For } from 'solid-js';
|
|
3
6
|
import { Toast } from "../index.js";
|
|
4
7
|
|
|
5
8
|
/**
|
|
6
9
|
* @internal
|
|
7
10
|
*/
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
11
|
export function Button() {
|
|
10
12
|
const {
|
|
11
13
|
add
|
|
12
14
|
} = Toast.useToastManager();
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
return (() => {
|
|
16
|
+
var _el$ = _tmpl$();
|
|
17
|
+
_el$.$$click = () => {
|
|
16
18
|
add({
|
|
17
19
|
title: 'title',
|
|
18
20
|
description: 'description',
|
|
@@ -21,9 +23,9 @@ export function Button() {
|
|
|
21
23
|
children: 'action'
|
|
22
24
|
}
|
|
23
25
|
});
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
});
|
|
26
|
+
};
|
|
27
|
+
return _el$;
|
|
28
|
+
})();
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
|
@@ -33,20 +35,25 @@ export function List() {
|
|
|
33
35
|
const {
|
|
34
36
|
toasts
|
|
35
37
|
} = Toast.useToastManager();
|
|
36
|
-
return
|
|
37
|
-
each
|
|
38
|
-
|
|
38
|
+
return _$createComponent(For, {
|
|
39
|
+
get each() {
|
|
40
|
+
return toasts();
|
|
41
|
+
},
|
|
42
|
+
children: toastItem => _$createComponent(Toast.Root, {
|
|
39
43
|
toast: toastItem,
|
|
40
44
|
"data-testid": "root",
|
|
41
|
-
children
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
get children() {
|
|
46
|
+
return [_$createComponent(Toast.Title, {
|
|
47
|
+
"data-testid": "title"
|
|
48
|
+
}), _$createComponent(Toast.Description, {
|
|
49
|
+
"data-testid": "description"
|
|
50
|
+
}), _$createComponent(Toast.Close, {
|
|
51
|
+
"aria-label": "close-press"
|
|
52
|
+
}), _$createComponent(Toast.Action, {
|
|
53
|
+
"data-testid": "action"
|
|
54
|
+
})];
|
|
55
|
+
}
|
|
50
56
|
})
|
|
51
57
|
});
|
|
52
|
-
}
|
|
58
|
+
}
|
|
59
|
+
_$delegateEvents(["click"]);
|
|
@@ -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 { createEffect, onCleanup } from 'solid-js';
|
|
2
4
|
import { activeElement, contains, getTarget } from "../../floating-ui-solid/utils.js";
|
|
3
5
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -14,9 +16,7 @@ import { ToastViewportContext } from "./ToastViewportContext.js";
|
|
|
14
16
|
*
|
|
15
17
|
* Documentation: [Base UI Toast](https://base-ui.com/react/components/toast)
|
|
16
18
|
*/
|
|
17
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
19
|
export function ToastViewport(componentProps) {
|
|
19
|
-
var _FocusGuard, _FocusGuard2;
|
|
20
20
|
const [,, elementProps] = splitComponentProps(componentProps, []);
|
|
21
21
|
const {
|
|
22
22
|
toasts,
|
|
@@ -191,19 +191,19 @@ export function ToastViewport(componentProps) {
|
|
|
191
191
|
},
|
|
192
192
|
props: [props, elementProps],
|
|
193
193
|
get children() {
|
|
194
|
-
return
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
})))]
|
|
200
|
-
});
|
|
194
|
+
return [_$memo(() => _$memo(() => !!(numToasts() > 0 && prevFocusElement()))() && _$createComponent(FocusGuard, {
|
|
195
|
+
onFocus: handleFocusGuard
|
|
196
|
+
})), _$memo(() => componentProps.children), _$memo(() => _$memo(() => !!(numToasts() > 0 && prevFocusElement()))() && _$createComponent(FocusGuard, {
|
|
197
|
+
onFocus: handleFocusGuard
|
|
198
|
+
}))];
|
|
201
199
|
}
|
|
202
200
|
});
|
|
203
|
-
return
|
|
201
|
+
return _$createComponent(ToastViewportContext.Provider, {
|
|
204
202
|
value: contextValue,
|
|
205
|
-
children
|
|
206
|
-
|
|
207
|
-
|
|
203
|
+
get children() {
|
|
204
|
+
return [_$memo(() => _$memo(() => !!(numToasts() > 0 && prevFocusElement()))() && _$createComponent(FocusGuard, {
|
|
205
|
+
onFocus: handleFocusGuard
|
|
206
|
+
})), _$memo(() => element())];
|
|
207
|
+
}
|
|
208
208
|
});
|
|
209
209
|
}
|
package/esm/toggle/Toggle.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { batch, Show } from 'solid-js';
|
|
2
3
|
import { CompositeItem } from "../composite/item/CompositeItem.js";
|
|
3
4
|
import { splitComponentProps } from "../solid-helpers.js";
|
|
@@ -12,7 +13,6 @@ import { useRenderElement } from "../utils/useRenderElement.js";
|
|
|
12
13
|
*
|
|
13
14
|
* Documentation: [Base UI Toggle](https://base-ui.com/react/components/toggle)
|
|
14
15
|
*/
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
export function Toggle(componentProps) {
|
|
17
17
|
const [, local, elementProps] = splitComponentProps(componentProps, ['defaultPressed', 'disabled', 'form', 'onPressedChange', 'pressed', 'type', 'value', 'nativeButton']);
|
|
18
18
|
const defaultPressedProp = () => local.defaultPressed ?? false;
|
|
@@ -66,11 +66,15 @@ export function Toggle(componentProps) {
|
|
|
66
66
|
}
|
|
67
67
|
}, elementProps, getButtonProps]
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return _$createComponent(Show, {
|
|
70
70
|
when: groupContext,
|
|
71
|
-
fallback
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
get fallback() {
|
|
72
|
+
return element();
|
|
73
|
+
},
|
|
74
|
+
get children() {
|
|
75
|
+
return _$createComponent(CompositeItem, {
|
|
76
|
+
render: element
|
|
77
|
+
});
|
|
78
|
+
}
|
|
75
79
|
});
|
|
76
80
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { batch, createMemo, Show } from 'solid-js';
|
|
2
3
|
import { CompositeRoot } from "../composite/root/CompositeRoot.js";
|
|
3
4
|
import { access, splitComponentProps } from "../solid-helpers.js";
|
|
@@ -6,7 +7,6 @@ import { useControlled } from "../utils/useControlled.js";
|
|
|
6
7
|
import { useRenderElement } from "../utils/useRenderElement.js";
|
|
7
8
|
import { ToggleGroupContext } from "./ToggleGroupContext.js";
|
|
8
9
|
import { ToggleGroupDataAttributes } from "./ToggleGroupDataAttributes.js";
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
const customStyleHookMapping = {
|
|
11
11
|
multiple(value) {
|
|
12
12
|
if (access(value)) {
|
|
@@ -86,16 +86,24 @@ export function ToggleGroup(componentProps) {
|
|
|
86
86
|
}, elementProps],
|
|
87
87
|
customStyleHookMapping
|
|
88
88
|
});
|
|
89
|
-
return
|
|
89
|
+
return _$createComponent(ToggleGroupContext.Provider, {
|
|
90
90
|
value: contextValue,
|
|
91
|
-
children
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
91
|
+
get children() {
|
|
92
|
+
return _$createComponent(Show, {
|
|
93
|
+
when: toolbarContext,
|
|
94
|
+
get fallback() {
|
|
95
|
+
return _$createComponent(CompositeRoot, {
|
|
96
|
+
stopEventPropagation: true,
|
|
97
|
+
get loop() {
|
|
98
|
+
return loop();
|
|
99
|
+
},
|
|
100
|
+
render: element
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
get children() {
|
|
104
|
+
return element();
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}
|
|
100
108
|
});
|
|
101
109
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { createMemo } from 'solid-js';
|
|
2
3
|
import { CompositeItem } from "../../composite/item/CompositeItem.js";
|
|
3
4
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -12,7 +13,6 @@ import { useToolbarRootContext } from "../root/ToolbarRootContext.js";
|
|
|
12
13
|
*
|
|
13
14
|
* Documentation: [Base UI Toolbar](https://base-ui.com/react/components/toolbar)
|
|
14
15
|
*/
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
export function ToolbarButton(componentProps) {
|
|
17
17
|
const [, local, elementProps] = splitComponentProps(componentProps, ['disabled', 'focusableWhenDisabled', 'nativeButton']);
|
|
18
18
|
const disabledProp = () => local.disabled ?? false;
|
|
@@ -59,7 +59,7 @@ export function ToolbarButton(componentProps) {
|
|
|
59
59
|
}
|
|
60
60
|
}, getButtonProps]
|
|
61
61
|
});
|
|
62
|
-
return
|
|
62
|
+
return _$createComponent(CompositeItem, {
|
|
63
63
|
metadata: itemMetadata,
|
|
64
64
|
render: element
|
|
65
65
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
2
3
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
3
4
|
import { useToolbarRootContext } from "../root/ToolbarRootContext.js";
|
|
@@ -9,7 +10,6 @@ import { ToolbarGroupContext } from "./ToolbarGroupContext.js";
|
|
|
9
10
|
*
|
|
10
11
|
* Documentation: [Base UI Toolbar](https://base-ui.com/react/components/toolbar)
|
|
11
12
|
*/
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export function ToolbarGroup(componentProps) {
|
|
14
14
|
const [, local, elementProps] = splitComponentProps(componentProps, ['disabled']);
|
|
15
15
|
const disabledProp = () => local.disabled ?? false;
|
|
@@ -35,8 +35,10 @@ export function ToolbarGroup(componentProps) {
|
|
|
35
35
|
role: 'group'
|
|
36
36
|
}, elementProps]
|
|
37
37
|
});
|
|
38
|
-
return
|
|
38
|
+
return _$createComponent(ToolbarGroupContext.Provider, {
|
|
39
39
|
value: contextValue,
|
|
40
|
-
children
|
|
40
|
+
get children() {
|
|
41
|
+
return element();
|
|
42
|
+
}
|
|
41
43
|
});
|
|
42
44
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { createMemo } from 'solid-js';
|
|
2
3
|
import { ARROW_LEFT, ARROW_RIGHT, stopEvent } from "../../composite/composite.js";
|
|
3
4
|
import { CompositeItem } from "../../composite/item/CompositeItem.js";
|
|
@@ -14,7 +15,6 @@ import { useToolbarRootContext } from "../root/ToolbarRootContext.js";
|
|
|
14
15
|
*
|
|
15
16
|
* Documentation: [Base UI Toolbar](https://base-ui.com/react/components/toolbar)
|
|
16
17
|
*/
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
export function ToolbarInput(componentProps) {
|
|
19
19
|
const [, local, elementProps] = splitComponentProps(componentProps, ['focusableWhenDisabled', 'disabled']);
|
|
20
20
|
const focusableWhenDisabled = () => local.focusableWhenDisabled ?? true;
|
|
@@ -67,7 +67,7 @@ export function ToolbarInput(componentProps) {
|
|
|
67
67
|
}
|
|
68
68
|
}, elementProps, props => mergeProps(props, focusableWhenDisabledProps())]
|
|
69
69
|
});
|
|
70
|
-
return
|
|
70
|
+
return _$createComponent(CompositeItem, {
|
|
71
71
|
metadata: itemMetadata,
|
|
72
72
|
render: element
|
|
73
73
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { CompositeItem } from "../../composite/item/CompositeItem.js";
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
4
5
|
import { useToolbarRootContext } from "../root/ToolbarRootContext.js";
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const TOOLBAR_LINK_METADATA = {
|
|
7
7
|
// links cannot be disabled, this metadata is only used for deriving `disabledIndices``
|
|
8
8
|
// TODO: better name
|
|
@@ -29,7 +29,7 @@ export function ToolbarLink(componentProps) {
|
|
|
29
29
|
state,
|
|
30
30
|
props: elementProps
|
|
31
31
|
});
|
|
32
|
-
return
|
|
32
|
+
return _$createComponent(CompositeItem, {
|
|
33
33
|
metadata: TOOLBAR_LINK_METADATA,
|
|
34
34
|
render: element
|
|
35
35
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { createMemo, createSignal } from 'solid-js';
|
|
2
3
|
import { CompositeRoot } from "../../composite/root/CompositeRoot.js";
|
|
3
4
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -10,7 +11,6 @@ import { ToolbarRootContext } from "./ToolbarRootContext.js";
|
|
|
10
11
|
*
|
|
11
12
|
* Documentation: [Base UI Toolbar](https://base-ui.com/react/components/toolbar)
|
|
12
13
|
*/
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
export function ToolbarRoot(componentProps) {
|
|
15
15
|
const [, local, elementProps] = splitComponentProps(componentProps, ['cols', 'disabled', 'loop', 'orientation']);
|
|
16
16
|
const cols = () => local.cols ?? 1;
|
|
@@ -52,15 +52,25 @@ export function ToolbarRoot(componentProps) {
|
|
|
52
52
|
role: 'toolbar'
|
|
53
53
|
}, elementProps]
|
|
54
54
|
});
|
|
55
|
-
return
|
|
55
|
+
return _$createComponent(ToolbarRootContext.Provider, {
|
|
56
56
|
value: toolbarRootContext,
|
|
57
|
-
children
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
get children() {
|
|
58
|
+
return _$createComponent(CompositeRoot, {
|
|
59
|
+
get cols() {
|
|
60
|
+
return cols();
|
|
61
|
+
},
|
|
62
|
+
get disabledIndices() {
|
|
63
|
+
return disabledIndices();
|
|
64
|
+
},
|
|
65
|
+
get loop() {
|
|
66
|
+
return loop();
|
|
67
|
+
},
|
|
68
|
+
onMapChange: setItemArray,
|
|
69
|
+
get orientation() {
|
|
70
|
+
return orientation();
|
|
71
|
+
},
|
|
72
|
+
render: element
|
|
73
|
+
});
|
|
74
|
+
}
|
|
65
75
|
});
|
|
66
76
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
2
|
+
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
1
3
|
import { createMemo } from 'solid-js';
|
|
2
4
|
import { Separator } from "../../separator/index.js";
|
|
3
5
|
import { useToolbarRootContext } from "../root/ToolbarRootContext.js";
|
|
@@ -7,16 +9,20 @@ import { useToolbarRootContext } from "../root/ToolbarRootContext.js";
|
|
|
7
9
|
*
|
|
8
10
|
* Documentation: [Base UI Toolbar](https://base-ui.com/react/components/toolbar)
|
|
9
11
|
*/
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
12
|
export function ToolbarSeparator(props) {
|
|
12
13
|
const context = useToolbarRootContext();
|
|
13
14
|
const orientation = createMemo(() => ({
|
|
14
15
|
vertical: 'horizontal',
|
|
15
16
|
horizontal: 'vertical'
|
|
16
17
|
})[context.orientation()]);
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
18
|
+
return _$createComponent(Separator, _$mergeProps({
|
|
19
|
+
get orientation() {
|
|
20
|
+
return orientation();
|
|
21
|
+
}
|
|
22
|
+
}, props, {
|
|
23
|
+
ref(r$) {
|
|
24
|
+
var _ref$ = props.ref;
|
|
25
|
+
typeof _ref$ === "function" ? _ref$(r$) : props.ref = r$;
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
22
28
|
}
|
|
@@ -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";
|
|
@@ -9,7 +10,6 @@ import { useTooltipPositionerContext } from "../positioner/TooltipPositionerCont
|
|
|
9
10
|
*
|
|
10
11
|
* Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)
|
|
11
12
|
*/
|
|
12
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export function TooltipArrow(componentProps) {
|
|
14
14
|
const [,, elementProps] = splitComponentProps(componentProps, []);
|
|
15
15
|
const {
|
|
@@ -45,7 +45,5 @@ export function TooltipArrow(componentProps) {
|
|
|
45
45
|
}, elementProps],
|
|
46
46
|
customStyleHookMapping: popupStateMapping
|
|
47
47
|
});
|
|
48
|
-
return
|
|
49
|
-
children: element()
|
|
50
|
-
});
|
|
48
|
+
return _$memo(element);
|
|
51
49
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
2
3
|
import { DISABLED_TRANSITIONS_STYLE } from "../../utils/constants.js";
|
|
3
4
|
import { popupStateMapping as baseMapping } from "../../utils/popupStateMapping.js";
|
|
@@ -6,7 +7,6 @@ import { useOpenChangeComplete } from "../../utils/useOpenChangeComplete.js";
|
|
|
6
7
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
7
8
|
import { useTooltipPositionerContext } from "../positioner/TooltipPositionerContext.js";
|
|
8
9
|
import { useTooltipRootContext } from "../root/TooltipRootContext.js";
|
|
9
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
const customStyleHookMapping = {
|
|
11
11
|
...baseMapping,
|
|
12
12
|
...transitionStatusMapping
|
|
@@ -70,7 +70,5 @@ export function TooltipPopup(componentProps) {
|
|
|
70
70
|
}, elementProps],
|
|
71
71
|
customStyleHookMapping
|
|
72
72
|
});
|
|
73
|
-
return
|
|
74
|
-
children: element()
|
|
75
|
-
});
|
|
73
|
+
return _$memo(element);
|
|
76
74
|
}
|