@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,5 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
2
|
+
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
1
3
|
import { SelectScrollArrow } from "../scroll-arrow/SelectScrollArrow.js";
|
|
2
4
|
|
|
3
5
|
/**
|
|
@@ -6,11 +8,12 @@ import { SelectScrollArrow } from "../scroll-arrow/SelectScrollArrow.js";
|
|
|
6
8
|
*
|
|
7
9
|
* Documentation: [Base UI Select](https://base-ui.com/react/components/select)
|
|
8
10
|
*/
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
11
|
export function SelectScrollUpArrow(props) {
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
return _$createComponent(SelectScrollArrow, _$mergeProps(props, {
|
|
13
|
+
ref(r$) {
|
|
14
|
+
var _ref$ = props.ref;
|
|
15
|
+
typeof _ref$ === "function" ? _ref$(r$) : props.ref = r$;
|
|
16
|
+
},
|
|
14
17
|
direction: "up"
|
|
15
|
-
});
|
|
18
|
+
}));
|
|
16
19
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { batch, createEffect, onCleanup, mergeProps as solidMergeProps } from 'solid-js';
|
|
2
3
|
import { useFieldRootContext } from "../../field/root/FieldRootContext.js";
|
|
3
4
|
import { fieldValidityMapping } from "../../field/utils/constants.js";
|
|
@@ -11,7 +12,6 @@ import { pressableTriggerOpenStateMapping } from "../../utils/popupStateMapping.
|
|
|
11
12
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
12
13
|
import { useTimeout } from "../../utils/useTimeout.js";
|
|
13
14
|
import { useSelectRootContext } from "../root/SelectRootContext.js";
|
|
14
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
const BOUNDARY_OFFSET = 2;
|
|
16
16
|
const customStyleHookMapping = {
|
|
17
17
|
...pressableTriggerOpenStateMapping,
|
|
@@ -194,7 +194,5 @@ export function SelectTrigger(componentProps) {
|
|
|
194
194
|
}],
|
|
195
195
|
customStyleHookMapping
|
|
196
196
|
});
|
|
197
|
-
return
|
|
198
|
-
children: element()
|
|
199
|
-
});
|
|
197
|
+
return _$memo(element);
|
|
200
198
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { createMemo } from 'solid-js';
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
4
5
|
import { useSelectRootContext } from "../root/SelectRootContext.js";
|
|
5
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const customStyleHookMapping = {
|
|
7
7
|
value: () => null
|
|
8
8
|
};
|
|
@@ -41,12 +41,8 @@ export function SelectValue(componentProps) {
|
|
|
41
41
|
props: elementProps,
|
|
42
42
|
customStyleHookMapping,
|
|
43
43
|
get children() {
|
|
44
|
-
return
|
|
45
|
-
children: typeof componentProps.children === 'function' ? componentProps.children?.(store.value) : componentProps.children ?? labelFromItems() ?? store.value
|
|
46
|
-
});
|
|
44
|
+
return _$memo(() => _$memo(() => typeof componentProps.children === 'function')() ? componentProps.children?.(store.value) : componentProps.children ?? labelFromItems() ?? store.value);
|
|
47
45
|
}
|
|
48
46
|
});
|
|
49
|
-
return
|
|
50
|
-
children: element()
|
|
51
|
-
});
|
|
47
|
+
return _$memo(element);
|
|
52
48
|
}
|
|
@@ -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
|
|
|
@@ -7,7 +8,6 @@ import { useRenderElement } from "../utils/useRenderElement.js";
|
|
|
7
8
|
*
|
|
8
9
|
* Documentation: [Base UI Separator](https://base-ui.com/react/components/separator)
|
|
9
10
|
*/
|
|
10
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
11
11
|
export function Separator(componentProps) {
|
|
12
12
|
const [, local, elementProps] = splitComponentProps(componentProps, ['orientation']);
|
|
13
13
|
const orientation = () => local.orientation ?? 'horizontal';
|
|
@@ -25,7 +25,5 @@ export function Separator(componentProps) {
|
|
|
25
25
|
}
|
|
26
26
|
}, elementProps]
|
|
27
27
|
});
|
|
28
|
-
return
|
|
29
|
-
children: element()
|
|
30
|
-
});
|
|
28
|
+
return _$memo(element);
|
|
31
29
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { createEffect, onCleanup } from 'solid-js';
|
|
2
3
|
import { useDirection } from "../../direction-provider/DirectionContext.js";
|
|
3
4
|
import { activeElement } from "../../floating-ui-solid/utils.js";
|
|
@@ -11,7 +12,6 @@ import { sliderStyleHookMapping } from "../root/styleHooks.js";
|
|
|
11
12
|
import { replaceArrayItemAtIndex } from "../utils/replaceArrayItemAtIndex.js";
|
|
12
13
|
import { roundValueToStep } from "../utils/roundValueToStep.js";
|
|
13
14
|
import { validateMinimumDistance } from "../utils/validateMinimumDistance.js";
|
|
14
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
const INTENTIONAL_DRAG_COUNT_THRESHOLD = 2;
|
|
16
16
|
function getClosestThumbIndex(values, currentValue, max) {
|
|
17
17
|
let closestIndex;
|
|
@@ -329,7 +329,5 @@ export function SliderControl(componentProps) {
|
|
|
329
329
|
}
|
|
330
330
|
}, elementProps]
|
|
331
331
|
});
|
|
332
|
-
return
|
|
333
|
-
children: element()
|
|
334
|
-
});
|
|
332
|
+
return _$memo(element);
|
|
335
333
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { createMemo } from 'solid-js';
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
4
5
|
import { useSliderRootContext } from "../root/SliderRootContext.js";
|
|
5
6
|
import { sliderStyleHookMapping } from "../root/styleHooks.js";
|
|
6
7
|
import { valueArrayToPercentages } from "../utils/valueArrayToPercentages.js";
|
|
7
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
function getRangeStyles(orientation, offset, leap) {
|
|
9
9
|
if (orientation === 'vertical') {
|
|
10
10
|
return {
|
|
@@ -69,7 +69,5 @@ export function SliderIndicator(componentProps) {
|
|
|
69
69
|
}, elementProps],
|
|
70
70
|
customStyleHookMapping: sliderStyleHookMapping
|
|
71
71
|
});
|
|
72
|
-
return
|
|
73
|
-
children: element()
|
|
74
|
-
});
|
|
72
|
+
return _$memo(element);
|
|
75
73
|
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { template as _$template } from "solid-js/web";
|
|
2
|
+
import { use as _$use } from "solid-js/web";
|
|
3
|
+
import { spread as _$spread } from "solid-js/web";
|
|
4
|
+
import { mergeProps as _$mergeProps } from "solid-js/web";
|
|
5
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
6
|
+
import { memo as _$memo } from "solid-js/web";
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/_$template(`<input>`);
|
|
1
8
|
import { createEffect, createMemo, createSignal, For, onMount, Show, mergeProps as solidMergeProps } from 'solid-js';
|
|
2
9
|
import { CompositeList } from "../../composite/list/CompositeList.js";
|
|
3
10
|
import { useFieldControlValidation } from "../../field/control/useFieldControlValidation.js";
|
|
@@ -19,7 +26,6 @@ import { getSliderValue } from "../utils/getSliderValue.js";
|
|
|
19
26
|
import { validateMinimumDistance } from "../utils/validateMinimumDistance.js";
|
|
20
27
|
import { SliderRootContext } from "./SliderRootContext.js";
|
|
21
28
|
import { sliderStyleHookMapping } from "./styleHooks.js";
|
|
22
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
29
|
function areValuesEqual(newValue, oldValue) {
|
|
24
30
|
if (typeof newValue === 'number' && typeof oldValue === 'number') {
|
|
25
31
|
return newValue === oldValue;
|
|
@@ -254,53 +260,71 @@ export function SliderRoot(componentProps) {
|
|
|
254
260
|
}
|
|
255
261
|
}, fieldControlValidation.getValidationProps, elementProps]
|
|
256
262
|
});
|
|
257
|
-
return
|
|
263
|
+
return _$createComponent(SliderRootContext.Provider, {
|
|
258
264
|
value: contextValue,
|
|
259
|
-
children
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
265
|
+
get children() {
|
|
266
|
+
return _$createComponent(CompositeList, {
|
|
267
|
+
get refs() {
|
|
268
|
+
return {
|
|
269
|
+
elements: refs.thumbRefs
|
|
270
|
+
};
|
|
271
|
+
},
|
|
272
|
+
onMapChange: setThumbArray,
|
|
273
|
+
get children() {
|
|
274
|
+
return [_$memo(() => element()), _$createComponent(Show, {
|
|
275
|
+
get when() {
|
|
276
|
+
return range();
|
|
277
|
+
},
|
|
278
|
+
get fallback() {
|
|
279
|
+
return (() => {
|
|
280
|
+
var _el$ = _tmpl$();
|
|
281
|
+
_$use(el => {
|
|
282
|
+
if (local.refs) {
|
|
283
|
+
local.refs.inputRef = el;
|
|
284
|
+
}
|
|
285
|
+
fieldControlValidation.refs.inputRef = el;
|
|
286
|
+
}, _el$);
|
|
287
|
+
_$spread(_el$, _$mergeProps(() => fieldControlValidation.getInputValidationProps({
|
|
288
|
+
disabled,
|
|
289
|
+
name: name(),
|
|
290
|
+
value: valueUnwrapped,
|
|
291
|
+
onFocus: handleHiddenInputFocus,
|
|
292
|
+
style: visuallyHidden,
|
|
293
|
+
tabIndex: -1,
|
|
294
|
+
'aria-hidden': true
|
|
295
|
+
})), false, false);
|
|
296
|
+
return _el$;
|
|
297
|
+
})();
|
|
291
298
|
},
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
299
|
+
get children() {
|
|
300
|
+
return _$createComponent(For, {
|
|
301
|
+
get each() {
|
|
302
|
+
return values();
|
|
303
|
+
},
|
|
304
|
+
children: value => (() => {
|
|
305
|
+
var _el$2 = _tmpl$();
|
|
306
|
+
_$use(el => {
|
|
307
|
+
if (local.refs) {
|
|
308
|
+
local.refs.inputRef = el;
|
|
309
|
+
}
|
|
310
|
+
fieldControlValidation.refs.inputRef = el;
|
|
311
|
+
}, _el$2);
|
|
312
|
+
_$spread(_el$2, _$mergeProps(() => fieldControlValidation.getInputValidationProps({
|
|
313
|
+
disabled: disabled(),
|
|
314
|
+
name: name(),
|
|
315
|
+
value,
|
|
316
|
+
onFocus: handleHiddenInputFocus,
|
|
317
|
+
style: visuallyHidden,
|
|
318
|
+
tabIndex: -1,
|
|
319
|
+
'aria-hidden': true
|
|
320
|
+
})), false, false);
|
|
321
|
+
return _el$2;
|
|
322
|
+
})()
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
})];
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
}
|
|
305
329
|
});
|
|
306
330
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { template as _$template } from "solid-js/web";
|
|
2
|
+
import { spread as _$spread } from "solid-js/web";
|
|
3
|
+
import { memo as _$memo } from "solid-js/web";
|
|
4
|
+
var _tmpl$ = /*#__PURE__*/_$template(`<input>`);
|
|
1
5
|
import { batch, createMemo } from 'solid-js';
|
|
2
6
|
import { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, COMPOSITE_KEYS, END, HOME } from "../../composite/composite.js";
|
|
3
7
|
import { useCompositeListItem } from "../../composite/list/useCompositeListItem.js";
|
|
@@ -16,7 +20,6 @@ import { getSliderValue } from "../utils/getSliderValue.js";
|
|
|
16
20
|
import { roundValueToStep } from "../utils/roundValueToStep.js";
|
|
17
21
|
import { valueArrayToPercentages } from "../utils/valueArrayToPercentages.js";
|
|
18
22
|
import { SliderThumbDataAttributes } from "./SliderThumbDataAttributes.js";
|
|
19
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
23
|
const PAGE_UP = 'PageUp';
|
|
21
24
|
const PAGE_DOWN = 'PageDown';
|
|
22
25
|
const ALL_KEYS = new Set([ARROW_UP, ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, HOME, END, PAGE_UP, PAGE_DOWN]);
|
|
@@ -279,16 +282,12 @@ export function SliderThumb(componentProps) {
|
|
|
279
282
|
},
|
|
280
283
|
props: thumbProps,
|
|
281
284
|
get children() {
|
|
282
|
-
return
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}) : undefined
|
|
288
|
-
});
|
|
285
|
+
return _$memo(() => _$memo(() => componentProps.render == null)() ? [_$memo(() => thumbProps.children ?? componentProps.children), (() => {
|
|
286
|
+
var _el$ = _tmpl$();
|
|
287
|
+
_$spread(_el$, inputProps, false, false);
|
|
288
|
+
return _el$;
|
|
289
|
+
})()] : undefined);
|
|
289
290
|
}
|
|
290
291
|
});
|
|
291
|
-
return
|
|
292
|
-
children: element()
|
|
293
|
-
});
|
|
292
|
+
return _$memo(element);
|
|
294
293
|
}
|
|
@@ -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 { useSliderRootContext } from "../root/SliderRootContext.js";
|
|
@@ -9,7 +10,6 @@ import { sliderStyleHookMapping } from "../root/styleHooks.js";
|
|
|
9
10
|
*
|
|
10
11
|
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
11
12
|
*/
|
|
12
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
export function SliderTrack(componentProps) {
|
|
14
14
|
const [,, elementProps] = splitComponentProps(componentProps, []);
|
|
15
15
|
const {
|
|
@@ -24,7 +24,5 @@ export function SliderTrack(componentProps) {
|
|
|
24
24
|
}, elementProps],
|
|
25
25
|
customStyleHookMapping: sliderStyleHookMapping
|
|
26
26
|
});
|
|
27
|
-
return
|
|
28
|
-
children: element()
|
|
29
|
-
});
|
|
27
|
+
return _$memo(element);
|
|
30
28
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { createMemo } from 'solid-js';
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { formatNumber } from "../../utils/formatNumber.js";
|
|
@@ -11,7 +12,6 @@ import { sliderStyleHookMapping } from "../root/styleHooks.js";
|
|
|
11
12
|
*
|
|
12
13
|
* Documentation: [Base UI Slider](https://base-ui.com/react/components/slider)
|
|
13
14
|
*/
|
|
14
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
export function SliderValue(componentProps) {
|
|
16
16
|
const [, local, elementProps] = splitComponentProps(componentProps, ['aria-live', 'children']);
|
|
17
17
|
const {
|
|
@@ -58,12 +58,8 @@ export function SliderValue(componentProps) {
|
|
|
58
58
|
}
|
|
59
59
|
}, elementProps],
|
|
60
60
|
get children() {
|
|
61
|
-
return
|
|
62
|
-
children: componentProps.children?.(formattedValues(), values()) ?? defaultDisplayValue()
|
|
63
|
-
});
|
|
61
|
+
return _$memo(() => componentProps.children?.(formattedValues(), values()) ?? defaultDisplayValue());
|
|
64
62
|
}
|
|
65
63
|
});
|
|
66
|
-
return
|
|
67
|
-
children: element()
|
|
68
|
-
});
|
|
64
|
+
return _$memo(element);
|
|
69
65
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
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 { memo as _$memo } from "solid-js/web";
|
|
7
|
+
var _tmpl$ = /*#__PURE__*/_$template(`<input>`),
|
|
8
|
+
_tmpl$2 = /*#__PURE__*/_$template(`<input type=hidden value=off>`);
|
|
1
9
|
import { batch, createSignal, onMount, mergeProps as solidMergeProps } from 'solid-js';
|
|
2
10
|
import { useFieldControlValidation } from "../../field/control/useFieldControlValidation.js";
|
|
3
11
|
import { useFieldRootContext } from "../../field/root/FieldRootContext.js";
|
|
@@ -18,7 +26,6 @@ import { SwitchRootContext } from "./SwitchRootContext.js";
|
|
|
18
26
|
*
|
|
19
27
|
* Documentation: [Base UI Switch](https://base-ui.com/react/components/switch)
|
|
20
28
|
*/
|
|
21
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
29
|
export function SwitchRoot(componentProps) {
|
|
23
30
|
const [, local, elementProps] = splitComponentProps(componentProps, ['checked', 'defaultChecked', 'id', 'refs', 'nativeButton', 'onCheckedChange', 'readOnly', 'required', 'disabled']);
|
|
24
31
|
const nativeButton = () => local.nativeButton ?? true;
|
|
@@ -204,14 +211,18 @@ export function SwitchRoot(componentProps) {
|
|
|
204
211
|
props: [rootProps, getValidationProps, elementProps, getButtonProps],
|
|
205
212
|
customStyleHookMapping: styleHookMapping
|
|
206
213
|
});
|
|
207
|
-
return
|
|
214
|
+
return _$createComponent(SwitchRootContext.Provider, {
|
|
208
215
|
value: context,
|
|
209
|
-
children
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
+
get children() {
|
|
217
|
+
return [_$memo(() => element()), _$memo(() => _$memo(() => !!(!checked() && elementProps.name))() && (() => {
|
|
218
|
+
var _el$2 = _tmpl$2();
|
|
219
|
+
_$effect(() => _$setAttribute(_el$2, "name", elementProps.name));
|
|
220
|
+
return _el$2;
|
|
221
|
+
})()), (() => {
|
|
222
|
+
var _el$ = _tmpl$();
|
|
223
|
+
_$spread(_el$, inputProps, false, false);
|
|
224
|
+
return _el$;
|
|
225
|
+
})()];
|
|
226
|
+
}
|
|
216
227
|
});
|
|
217
228
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { mergeProps as solidMergeProps } from 'solid-js';
|
|
2
3
|
import { useFieldRootContext } from "../../field/root/FieldRootContext.js";
|
|
3
4
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -11,7 +12,6 @@ import { styleHookMapping } from "../styleHooks.js";
|
|
|
11
12
|
*
|
|
12
13
|
* Documentation: [Base UI Switch](https://base-ui.com/react/components/switch)
|
|
13
14
|
*/
|
|
14
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
export function SwitchThumb(componentProps) {
|
|
16
16
|
const [,, elementProps] = splitComponentProps(componentProps, []);
|
|
17
17
|
const {
|
|
@@ -37,7 +37,5 @@ export function SwitchThumb(componentProps) {
|
|
|
37
37
|
props: elementProps,
|
|
38
38
|
customStyleHookMapping: styleHookMapping
|
|
39
39
|
});
|
|
40
|
-
return
|
|
41
|
-
children: element()
|
|
42
|
-
});
|
|
40
|
+
return _$memo(element);
|
|
43
41
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { template as _$template } from "solid-js/web";
|
|
2
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
3
|
+
import { memo as _$memo } from "solid-js/web";
|
|
4
|
+
var _tmpl$ = /*#__PURE__*/_$template(`<script suppresshydrationwarnings>`);
|
|
2
5
|
import { createEffect, createMemo, createSignal, onCleanup, onMount, Show } from 'solid-js';
|
|
3
6
|
import { useDirection } from "../../direction-provider/DirectionContext.js";
|
|
4
7
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -9,7 +12,6 @@ import { tabsStyleHookMapping } from "../root/styleHooks.js";
|
|
|
9
12
|
import { useTabsRootContext } from "../root/TabsRootContext.js";
|
|
10
13
|
import { script as prehydrationScript } from "./prehydrationScript.min.js";
|
|
11
14
|
import { TabsIndicatorCssVars } from "./TabsIndicatorCssVars.js";
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
15
|
const customStyleHookMapping = {
|
|
14
16
|
...tabsStyleHookMapping,
|
|
15
17
|
selectedTabPosition: () => null,
|
|
@@ -139,14 +141,16 @@ export function TabsIndicator(componentProps) {
|
|
|
139
141
|
}],
|
|
140
142
|
customStyleHookMapping
|
|
141
143
|
});
|
|
142
|
-
return
|
|
143
|
-
when
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
return _$createComponent(Show, {
|
|
145
|
+
get when() {
|
|
146
|
+
return activeTabValue() != null;
|
|
147
|
+
},
|
|
148
|
+
get children() {
|
|
149
|
+
return [_$memo(() => element()), _$memo(() => _$memo(() => !!(!isMounted() && renderBeforeHydration()))() && (() => {
|
|
150
|
+
var _el$ = _tmpl$();
|
|
151
|
+
_el$.innerHTML = prehydrationScript;
|
|
152
|
+
return _el$;
|
|
153
|
+
})())];
|
|
154
|
+
}
|
|
151
155
|
});
|
|
152
156
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { createEffect, createSignal } from 'solid-js';
|
|
2
3
|
import { CompositeRoot } from "../../composite/root/CompositeRoot.js";
|
|
3
4
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -5,7 +6,6 @@ import { useRenderElement } from "../../utils/useRenderElement.js";
|
|
|
5
6
|
import { tabsStyleHookMapping } from "../root/styleHooks.js";
|
|
6
7
|
import { useTabsRootContext } from "../root/TabsRootContext.js";
|
|
7
8
|
import { TabsListContext } from "./TabsListContext.js";
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
9
|
const EMPTY_ARRAY = [];
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -68,18 +68,26 @@ export function TabsList(componentProps) {
|
|
|
68
68
|
}, elementProps],
|
|
69
69
|
customStyleHookMapping: tabsStyleHookMapping
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return _$createComponent(TabsListContext.Provider, {
|
|
72
72
|
value: tabsListContextValue,
|
|
73
|
-
children
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
73
|
+
get children() {
|
|
74
|
+
return _$createComponent(CompositeRoot, {
|
|
75
|
+
get highlightedIndex() {
|
|
76
|
+
return highlightedTabIndex();
|
|
77
|
+
},
|
|
78
|
+
enableHomeAndEndKeys: true,
|
|
79
|
+
get loop() {
|
|
80
|
+
return loop();
|
|
81
|
+
},
|
|
82
|
+
get orientation() {
|
|
83
|
+
return orientation();
|
|
84
|
+
},
|
|
85
|
+
onHighlightedIndexChange: setHighlightedTabIndex,
|
|
86
|
+
onMapChange: setTabArray,
|
|
87
|
+
disabledIndices: EMPTY_ARRAY,
|
|
88
|
+
render: element
|
|
89
|
+
});
|
|
90
|
+
}
|
|
83
91
|
});
|
|
84
92
|
}
|
|
85
93
|
function getInset(tab, tabsList) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { createMemo } from 'solid-js';
|
|
2
3
|
import { useCompositeListItem } from "../../composite/list/useCompositeListItem.js";
|
|
3
4
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
@@ -13,7 +14,6 @@ import { TabsPanelDataAttributes } from "./TabsPanelDataAttributes.js";
|
|
|
13
14
|
*
|
|
14
15
|
* Documentation: [Base UI Tabs](https://base-ui.com/react/components/tabs)
|
|
15
16
|
*/
|
|
16
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
export function TabsPanel(componentProps) {
|
|
18
18
|
const [, local, elementProps] = splitComponentProps(componentProps, ['value', 'keepMounted', 'children']);
|
|
19
19
|
const keepMounted = () => local.keepMounted ?? false;
|
|
@@ -73,12 +73,8 @@ export function TabsPanel(componentProps) {
|
|
|
73
73
|
}, elementProps],
|
|
74
74
|
customStyleHookMapping: tabsStyleHookMapping,
|
|
75
75
|
get children() {
|
|
76
|
-
return
|
|
77
|
-
children: hidden() && !keepMounted() ? undefined : componentProps.children
|
|
78
|
-
});
|
|
76
|
+
return _$memo(() => _$memo(() => !!(hidden() && !keepMounted()))() ? undefined : componentProps.children);
|
|
79
77
|
}
|
|
80
78
|
});
|
|
81
|
-
return
|
|
82
|
-
children: element()
|
|
83
|
-
});
|
|
79
|
+
return _$memo(element);
|
|
84
80
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "solid-js/web";
|
|
1
2
|
import { batch, createSignal } from 'solid-js';
|
|
2
3
|
import { CompositeList } from "../../composite/list/CompositeList.js";
|
|
3
4
|
import { useDirection } from "../../direction-provider/DirectionContext.js";
|
|
@@ -13,7 +14,6 @@ import { tabsStyleHookMapping } from "./styleHooks.js";
|
|
|
13
14
|
*
|
|
14
15
|
* Documentation: [Base UI Tabs](https://base-ui.com/react/components/tabs)
|
|
15
16
|
*/
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
export function TabsRoot(componentProps) {
|
|
18
18
|
const [, local, elementProps] = splitComponentProps(componentProps, ['defaultValue', 'onValueChange', 'orientation', 'value']);
|
|
19
19
|
const orientation = () => local.orientation ?? 'horizontal';
|
|
@@ -117,14 +117,18 @@ export function TabsRoot(componentProps) {
|
|
|
117
117
|
props: elementProps,
|
|
118
118
|
customStyleHookMapping: tabsStyleHookMapping
|
|
119
119
|
});
|
|
120
|
-
return
|
|
120
|
+
return _$createComponent(TabsRootContext.Provider, {
|
|
121
121
|
value: tabsContextValue,
|
|
122
|
-
children
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
122
|
+
get children() {
|
|
123
|
+
return _$createComponent(CompositeList, {
|
|
124
|
+
refs: {
|
|
125
|
+
elements: tabPanelRefs
|
|
126
|
+
},
|
|
127
|
+
onMapChange: setTabPanelArray,
|
|
128
|
+
get children() {
|
|
129
|
+
return element();
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
129
133
|
});
|
|
130
134
|
}
|
package/esm/tabs/tab/TabsTab.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { createEffect, createMemo } from 'solid-js';
|
|
2
3
|
import { ACTIVE_COMPOSITE_ITEM } from "../../composite/constants.js";
|
|
3
4
|
import { useCompositeItem } from "../../composite/item/useCompositeItem.js";
|
|
@@ -15,7 +16,6 @@ import { useTabsRootContext } from "../root/TabsRootContext.js";
|
|
|
15
16
|
*
|
|
16
17
|
* Documentation: [Base UI Tabs](https://base-ui.com/react/components/tabs)
|
|
17
18
|
*/
|
|
18
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
19
19
|
export function TabsTab(componentProps) {
|
|
20
20
|
const [, local, elementProps] = splitComponentProps(componentProps, ['disabled', 'value', 'id', 'nativeButton']);
|
|
21
21
|
const disabled = () => local.disabled ?? false;
|
|
@@ -162,7 +162,5 @@ export function TabsTab(componentProps) {
|
|
|
162
162
|
}
|
|
163
163
|
}, elementProps, getButtonProps, compositeItemProps]
|
|
164
164
|
});
|
|
165
|
-
return
|
|
166
|
-
children: element()
|
|
167
|
-
});
|
|
165
|
+
return _$memo(element);
|
|
168
166
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { memo as _$memo } from "solid-js/web";
|
|
1
2
|
import { mergeProps } from "../../merge-props/index.js";
|
|
2
3
|
import { splitComponentProps } from "../../solid-helpers.js";
|
|
3
4
|
import { useButton } from "../../use-button/useButton.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 ToastAction(componentProps) {
|
|
15
15
|
const [, local, elementProps] = splitComponentProps(componentProps, ['disabled', 'nativeButton']);
|
|
16
16
|
const nativeButton = () => local.nativeButton ?? true;
|
|
@@ -35,12 +35,8 @@ export function ToastAction(componentProps) {
|
|
|
35
35
|
ref: buttonRef,
|
|
36
36
|
props: [elementProps, props => mergeProps(props, toast().actionProps), getButtonProps],
|
|
37
37
|
get children() {
|
|
38
|
-
return
|
|
39
|
-
children: toast().actionProps?.children ?? componentProps.children
|
|
40
|
-
});
|
|
38
|
+
return _$memo(() => toast().actionProps?.children ?? componentProps.children);
|
|
41
39
|
}
|
|
42
40
|
});
|
|
43
|
-
return
|
|
44
|
-
children: element()
|
|
45
|
-
});
|
|
41
|
+
return _$memo(element);
|
|
46
42
|
}
|