@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.
Files changed (372) hide show
  1. package/cjs/accordion/header/AccordionHeader.js +2 -4
  2. package/cjs/accordion/item/AccordionItem.js +10 -6
  3. package/cjs/accordion/panel/AccordionPanel.js +8 -4
  4. package/cjs/accordion/root/AccordionRoot.js +12 -8
  5. package/cjs/accordion/trigger/AccordionTrigger.js +2 -4
  6. package/cjs/alert-dialog/backdrop/AlertDialogBackdrop.js +2 -4
  7. package/cjs/alert-dialog/close/AlertDialogClose.js +2 -4
  8. package/cjs/alert-dialog/description/AlertDialogDescription.js +2 -4
  9. package/cjs/alert-dialog/popup/AlertDialogPopup.js +24 -16
  10. package/cjs/alert-dialog/portal/AlertDialogPortal.js +20 -10
  11. package/cjs/alert-dialog/root/AlertDialogRoot.js +5 -3
  12. package/cjs/alert-dialog/title/AlertDialogTitle.js +1 -4
  13. package/cjs/alert-dialog/trigger/AlertDialogTrigger.js +2 -4
  14. package/cjs/avatar/fallback/AvatarFallback.js +2 -4
  15. package/cjs/avatar/image/AvatarImage.js +2 -4
  16. package/cjs/avatar/root/AvatarRoot.js +5 -3
  17. package/cjs/checkbox/indicator/CheckboxIndicator.js +8 -4
  18. package/cjs/checkbox/root/CheckboxRoot.js +15 -9
  19. package/cjs/checkbox-group/CheckboxGroup.js +5 -3
  20. package/cjs/collapsible/panel/CollapsiblePanel.js +8 -4
  21. package/cjs/collapsible/root/CollapsibleRoot.js +15 -7
  22. package/cjs/collapsible/trigger/CollapsibleTrigger.js +2 -4
  23. package/cjs/composite/item/CompositeItem.js +2 -4
  24. package/cjs/composite/list/CompositeList.js +16 -12
  25. package/cjs/composite/root/CompositeRoot.js +13 -7
  26. package/cjs/context-menu/root/ContextMenuRoot.js +10 -8
  27. package/cjs/context-menu/trigger/ContextMenuTrigger.js +2 -4
  28. package/cjs/dialog/backdrop/DialogBackdrop.js +2 -4
  29. package/cjs/dialog/close/DialogClose.js +2 -4
  30. package/cjs/dialog/description/DialogDescription.js +2 -4
  31. package/cjs/dialog/popup/DialogPopup.js +30 -18
  32. package/cjs/dialog/portal/DialogPortal.js +20 -10
  33. package/cjs/dialog/root/DialogRoot.js +10 -6
  34. package/cjs/dialog/title/DialogTitle.js +2 -4
  35. package/cjs/dialog/trigger/DialogTrigger.js +2 -4
  36. package/cjs/direction-provider/DirectionProvider.js +5 -3
  37. package/cjs/field/control/FieldControl.js +2 -4
  38. package/cjs/field/description/FieldDescription.js +2 -4
  39. package/cjs/field/error/FieldError.js +21 -16
  40. package/cjs/field/label/FieldLabel.js +2 -4
  41. package/cjs/field/root/FieldRoot.js +5 -3
  42. package/cjs/field/validity/FieldValidity.js +6 -6
  43. package/cjs/fieldset/legend/FieldsetLegend.js +2 -4
  44. package/cjs/fieldset/root/FieldsetRoot.js +5 -3
  45. package/cjs/floating-ui-solid/components/FloatingDelayGroup.js +5 -3
  46. package/cjs/floating-ui-solid/components/FloatingFocusManager.js +39 -24
  47. package/cjs/floating-ui-solid/components/FloatingPortal.js +73 -47
  48. package/cjs/floating-ui-solid/components/FloatingTree.js +9 -5
  49. package/cjs/form/Form.js +5 -3
  50. package/cjs/input/Input.js +2 -4
  51. package/cjs/menu/arrow/MenuArrow.js +2 -4
  52. package/cjs/menu/backdrop/MenuBackdrop.js +2 -4
  53. package/cjs/menu/checkbox-item/MenuCheckboxItem.js +5 -3
  54. package/cjs/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js +2 -4
  55. package/cjs/menu/group/MenuGroup.js +5 -3
  56. package/cjs/menu/group-label/MenuGroupLabel.js +2 -4
  57. package/cjs/menu/item/MenuItem.js +2 -4
  58. package/cjs/menu/popup/MenuPopup.js +14 -6
  59. package/cjs/menu/portal/MenuPortal.js +20 -10
  60. package/cjs/menu/positioner/MenuPositioner.js +32 -20
  61. package/cjs/menu/radio-group/MenuRadioGroup.js +5 -3
  62. package/cjs/menu/radio-item/MenuRadioItem.js +5 -3
  63. package/cjs/menu/radio-item-indicator/MenuRadioItemIndicator.js +2 -4
  64. package/cjs/menu/root/MenuRoot.js +24 -12
  65. package/cjs/menu/submenu-root/MenuSubmenuRoot.js +5 -5
  66. package/cjs/menu/submenu-trigger/MenuSubmenuTrigger.js +2 -4
  67. package/cjs/menu/trigger/MenuTrigger.js +13 -7
  68. package/cjs/menubar/Menubar.js +31 -15
  69. package/cjs/meter/indicator/MeterIndicator.js +2 -4
  70. package/cjs/meter/label/MeterLabel.js +2 -4
  71. package/cjs/meter/root/MeterRoot.js +5 -3
  72. package/cjs/meter/track/MeterTrack.js +2 -4
  73. package/cjs/meter/value/MeterValue.js +3 -7
  74. package/cjs/navigation-menu/arrow/NavigationMenuArrow.js +2 -4
  75. package/cjs/navigation-menu/backdrop/NavigationMenuBackdrop.js +2 -4
  76. package/cjs/navigation-menu/content/NavigationMenuContent.js +25 -14
  77. package/cjs/navigation-menu/icon/NavigationMenuIcon.js +2 -4
  78. package/cjs/navigation-menu/item/NavigationMenuItem.js +5 -5
  79. package/cjs/navigation-menu/link/NavigationMenuLink.js +2 -2
  80. package/cjs/navigation-menu/list/NavigationMenuList.js +5 -3
  81. package/cjs/navigation-menu/popup/NavigationMenuPopup.js +32 -34
  82. package/cjs/navigation-menu/portal/NavigationMenuPortal.js +20 -10
  83. package/cjs/navigation-menu/positioner/NavigationMenuPositioner.js +5 -3
  84. package/cjs/navigation-menu/root/NavigationMenuRoot.js +23 -13
  85. package/cjs/navigation-menu/trigger/NavigationMenuTrigger.js +56 -49
  86. package/cjs/navigation-menu/viewport/NavigationMenuViewport.js +2 -4
  87. package/cjs/number-field/decrement/NumberFieldDecrement.js +2 -4
  88. package/cjs/number-field/group/NumberFieldGroup.js +2 -4
  89. package/cjs/number-field/increment/NumberFieldIncrement.js +2 -4
  90. package/cjs/number-field/input/NumberFieldInput.js +2 -4
  91. package/cjs/number-field/root/NumberFieldRoot.js +32 -16
  92. package/cjs/number-field/scrub-area/NumberFieldScrubArea.js +5 -3
  93. package/cjs/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.js +8 -5
  94. package/cjs/popover/arrow/PopoverArrow.js +2 -4
  95. package/cjs/popover/backdrop/PopoverBackdrop.js +2 -4
  96. package/cjs/popover/close/PopoverClose.js +2 -4
  97. package/cjs/popover/description/PopoverDescription.js +2 -4
  98. package/cjs/popover/popup/PopoverPopup.js +20 -8
  99. package/cjs/popover/portal/PopoverPortal.js +20 -10
  100. package/cjs/popover/positioner/PopoverPositioner.js +27 -13
  101. package/cjs/popover/root/PopoverRoot.js +19 -13
  102. package/cjs/popover/title/PopoverTitle.js +2 -4
  103. package/cjs/popover/trigger/PopoverTrigger.js +2 -4
  104. package/cjs/preview-card/arrow/PreviewCardArrow.js +2 -4
  105. package/cjs/preview-card/backdrop/PreviewCardBackdrop.js +2 -4
  106. package/cjs/preview-card/popup/PreviewCardPopup.js +2 -4
  107. package/cjs/preview-card/portal/PreviewCardPortal.js +20 -10
  108. package/cjs/preview-card/positioner/PreviewCardPositioner.js +5 -3
  109. package/cjs/preview-card/root/PreviewCardRoot.js +5 -3
  110. package/cjs/preview-card/trigger/PreviewCardTrigger.js +2 -4
  111. package/cjs/progress/indicator/ProgressIndicator.js +2 -4
  112. package/cjs/progress/label/ProgressLabel.js +2 -4
  113. package/cjs/progress/root/ProgressRoot.js +5 -3
  114. package/cjs/progress/track/ProgressTrack.js +2 -4
  115. package/cjs/progress/value/ProgressValue.js +2 -4
  116. package/cjs/radio/indicator/RadioIndicator.js +8 -4
  117. package/cjs/radio/root/RadioRoot.js +20 -11
  118. package/cjs/radio-group/RadioGroup.js +15 -10
  119. package/cjs/scroll-area/content/ScrollAreaContent.js +2 -4
  120. package/cjs/scroll-area/corner/ScrollAreaCorner.js +8 -4
  121. package/cjs/scroll-area/root/ScrollAreaRoot.js +5 -3
  122. package/cjs/scroll-area/scrollbar/ScrollAreaScrollbar.js +13 -7
  123. package/cjs/scroll-area/thumb/ScrollAreaThumb.js +2 -4
  124. package/cjs/scroll-area/viewport/ScrollAreaViewport.js +5 -3
  125. package/cjs/select/arrow/SelectArrow.js +8 -4
  126. package/cjs/select/backdrop/SelectBackdrop.js +2 -4
  127. package/cjs/select/group/SelectGroup.js +5 -3
  128. package/cjs/select/group-label/SelectGroupLabel.js +2 -4
  129. package/cjs/select/icon/SelectIcon.js +3 -7
  130. package/cjs/select/item/SelectItem.js +5 -3
  131. package/cjs/select/item-indicator/SelectItemIndicator.js +8 -4
  132. package/cjs/select/item-text/SelectItemText.js +2 -4
  133. package/cjs/select/popup/SelectPopup.js +12 -10
  134. package/cjs/select/portal/SelectPortal.js +20 -10
  135. package/cjs/select/positioner/SelectPositioner.js +23 -13
  136. package/cjs/select/root/SelectRoot.js +54 -47
  137. package/cjs/select/scroll-arrow/SelectScrollArrow.js +9 -7
  138. package/cjs/select/scroll-down-arrow/SelectScrollDownArrow.js +7 -5
  139. package/cjs/select/scroll-up-arrow/SelectScrollUpArrow.js +7 -5
  140. package/cjs/select/trigger/SelectTrigger.js +2 -4
  141. package/cjs/select/value/SelectValue.js +3 -7
  142. package/cjs/separator/Separator.js +2 -4
  143. package/cjs/slider/control/SliderControl.js +2 -4
  144. package/cjs/slider/indicator/SliderIndicator.js +2 -4
  145. package/cjs/slider/root/SliderRoot.js +66 -47
  146. package/cjs/slider/thumb/SliderThumb.js +8 -11
  147. package/cjs/slider/track/SliderTrack.js +2 -4
  148. package/cjs/slider/value/SliderValue.js +3 -7
  149. package/cjs/switch/root/SwitchRoot.js +15 -9
  150. package/cjs/switch/thumb/SwitchThumb.js +2 -4
  151. package/cjs/tabs/indicator/TabsIndicator.js +13 -11
  152. package/cjs/tabs/list/TabsList.js +20 -12
  153. package/cjs/tabs/panel/TabsPanel.js +3 -7
  154. package/cjs/tabs/root/TabsRoot.js +13 -9
  155. package/cjs/tabs/tab/TabsTab.js +2 -4
  156. package/cjs/toast/action/ToastAction.js +3 -7
  157. package/cjs/toast/close/ToastClose.js +2 -4
  158. package/cjs/toast/description/ToastDescription.js +3 -7
  159. package/cjs/toast/portal/ToastPortal.js +8 -4
  160. package/cjs/toast/provider/ToastProvider.js +5 -3
  161. package/cjs/toast/root/ToastRoot.js +30 -22
  162. package/cjs/toast/title/ToastTitle.js +3 -7
  163. package/cjs/toast/utils/test-utils.js +26 -21
  164. package/cjs/toast/viewport/ToastViewport.js +13 -14
  165. package/cjs/toggle/Toggle.js +10 -6
  166. package/cjs/toggle-group/ToggleGroup.js +19 -11
  167. package/cjs/toolbar/button/ToolbarButton.js +2 -2
  168. package/cjs/toolbar/group/ToolbarGroup.js +5 -3
  169. package/cjs/toolbar/input/ToolbarInput.js +2 -2
  170. package/cjs/toolbar/link/ToolbarLink.js +2 -2
  171. package/cjs/toolbar/root/ToolbarRoot.js +20 -10
  172. package/cjs/toolbar/separator/ToolbarSeparator.js +11 -6
  173. package/cjs/tooltip/arrow/TooltipArrow.js +2 -4
  174. package/cjs/tooltip/popup/TooltipPopup.js +2 -4
  175. package/cjs/tooltip/portal/TooltipPortal.js +20 -10
  176. package/cjs/tooltip/positioner/TooltipPositioner.js +5 -3
  177. package/cjs/tooltip/provider/TooltipProvider.js +15 -7
  178. package/cjs/tooltip/root/TooltipRoot.js +5 -3
  179. package/cjs/tooltip/trigger/TooltipTrigger.js +2 -4
  180. package/cjs/unstable-no-ssr/NoSsr.js +11 -5
  181. package/cjs/utils/FloatingPortalLite.js +7 -4
  182. package/cjs/utils/FocusGuard.js +19 -10
  183. package/cjs/utils/InternalBackdrop.js +19 -18
  184. package/cjs/utils/styles.js +3 -5
  185. package/cjs/utils/useRenderElement.js +34 -31
  186. package/esm/accordion/header/AccordionHeader.js +2 -4
  187. package/esm/accordion/item/AccordionItem.js +10 -6
  188. package/esm/accordion/panel/AccordionPanel.js +8 -4
  189. package/esm/accordion/root/AccordionRoot.js +12 -8
  190. package/esm/accordion/trigger/AccordionTrigger.js +3 -4
  191. package/esm/alert-dialog/backdrop/AlertDialogBackdrop.js +2 -4
  192. package/esm/alert-dialog/close/AlertDialogClose.js +2 -4
  193. package/esm/alert-dialog/description/AlertDialogDescription.js +2 -4
  194. package/esm/alert-dialog/popup/AlertDialogPopup.js +25 -16
  195. package/esm/alert-dialog/portal/AlertDialogPortal.js +20 -10
  196. package/esm/alert-dialog/root/AlertDialogRoot.js +5 -3
  197. package/esm/alert-dialog/title/AlertDialogTitle.js +1 -4
  198. package/esm/alert-dialog/trigger/AlertDialogTrigger.js +2 -4
  199. package/esm/avatar/fallback/AvatarFallback.js +2 -4
  200. package/esm/avatar/image/AvatarImage.js +2 -4
  201. package/esm/avatar/root/AvatarRoot.js +5 -3
  202. package/esm/checkbox/indicator/CheckboxIndicator.js +8 -4
  203. package/esm/checkbox/root/CheckboxRoot.js +21 -9
  204. package/esm/checkbox-group/CheckboxGroup.js +5 -3
  205. package/esm/collapsible/panel/CollapsiblePanel.js +8 -4
  206. package/esm/collapsible/root/CollapsibleRoot.js +15 -7
  207. package/esm/collapsible/trigger/CollapsibleTrigger.js +2 -4
  208. package/esm/composite/item/CompositeItem.js +2 -4
  209. package/esm/composite/list/CompositeList.js +16 -12
  210. package/esm/composite/root/CompositeRoot.js +13 -7
  211. package/esm/context-menu/root/ContextMenuRoot.js +10 -8
  212. package/esm/context-menu/trigger/ContextMenuTrigger.js +2 -4
  213. package/esm/dialog/backdrop/DialogBackdrop.js +2 -4
  214. package/esm/dialog/close/DialogClose.js +2 -4
  215. package/esm/dialog/description/DialogDescription.js +2 -4
  216. package/esm/dialog/popup/DialogPopup.js +31 -18
  217. package/esm/dialog/portal/DialogPortal.js +20 -10
  218. package/esm/dialog/root/DialogRoot.js +10 -6
  219. package/esm/dialog/title/DialogTitle.js +2 -4
  220. package/esm/dialog/trigger/DialogTrigger.js +2 -4
  221. package/esm/direction-provider/DirectionProvider.js +5 -3
  222. package/esm/field/control/FieldControl.js +2 -4
  223. package/esm/field/description/FieldDescription.js +2 -4
  224. package/esm/field/error/FieldError.js +24 -16
  225. package/esm/field/label/FieldLabel.js +2 -4
  226. package/esm/field/root/FieldRoot.js +5 -3
  227. package/esm/field/validity/FieldValidity.js +7 -5
  228. package/esm/fieldset/legend/FieldsetLegend.js +2 -4
  229. package/esm/fieldset/root/FieldsetRoot.js +5 -3
  230. package/esm/floating-ui-solid/components/FloatingDelayGroup.js +5 -3
  231. package/esm/floating-ui-solid/components/FloatingFocusManager.js +43 -24
  232. package/esm/floating-ui-solid/components/FloatingPortal.js +78 -46
  233. package/esm/floating-ui-solid/components/FloatingTree.js +9 -5
  234. package/esm/form/Form.js +5 -3
  235. package/esm/index.js +1 -1
  236. package/esm/input/Input.js +2 -4
  237. package/esm/menu/arrow/MenuArrow.js +2 -4
  238. package/esm/menu/backdrop/MenuBackdrop.js +2 -4
  239. package/esm/menu/checkbox-item/MenuCheckboxItem.js +5 -3
  240. package/esm/menu/checkbox-item-indicator/MenuCheckboxItemIndicator.js +2 -4
  241. package/esm/menu/group/MenuGroup.js +5 -3
  242. package/esm/menu/group-label/MenuGroupLabel.js +2 -4
  243. package/esm/menu/item/MenuItem.js +2 -4
  244. package/esm/menu/popup/MenuPopup.js +15 -6
  245. package/esm/menu/portal/MenuPortal.js +20 -10
  246. package/esm/menu/positioner/MenuPositioner.js +33 -20
  247. package/esm/menu/radio-group/MenuRadioGroup.js +5 -3
  248. package/esm/menu/radio-item/MenuRadioItem.js +5 -3
  249. package/esm/menu/radio-item-indicator/MenuRadioItemIndicator.js +2 -4
  250. package/esm/menu/root/MenuRoot.js +25 -12
  251. package/esm/menu/submenu-root/MenuSubmenuRoot.js +5 -5
  252. package/esm/menu/submenu-trigger/MenuSubmenuTrigger.js +2 -4
  253. package/esm/menu/trigger/MenuTrigger.js +13 -7
  254. package/esm/menubar/Menubar.js +31 -15
  255. package/esm/meter/indicator/MeterIndicator.js +2 -4
  256. package/esm/meter/label/MeterLabel.js +2 -4
  257. package/esm/meter/root/MeterRoot.js +5 -3
  258. package/esm/meter/track/MeterTrack.js +2 -4
  259. package/esm/meter/value/MeterValue.js +3 -7
  260. package/esm/navigation-menu/arrow/NavigationMenuArrow.js +2 -4
  261. package/esm/navigation-menu/backdrop/NavigationMenuBackdrop.js +2 -4
  262. package/esm/navigation-menu/content/NavigationMenuContent.js +25 -13
  263. package/esm/navigation-menu/icon/NavigationMenuIcon.js +2 -4
  264. package/esm/navigation-menu/item/NavigationMenuItem.js +6 -5
  265. package/esm/navigation-menu/link/NavigationMenuLink.js +2 -2
  266. package/esm/navigation-menu/list/NavigationMenuList.js +5 -3
  267. package/esm/navigation-menu/popup/NavigationMenuPopup.js +33 -34
  268. package/esm/navigation-menu/portal/NavigationMenuPortal.js +20 -10
  269. package/esm/navigation-menu/positioner/NavigationMenuPositioner.js +5 -3
  270. package/esm/navigation-menu/root/NavigationMenuRoot.js +23 -13
  271. package/esm/navigation-menu/trigger/NavigationMenuTrigger.js +61 -49
  272. package/esm/navigation-menu/viewport/NavigationMenuViewport.js +2 -4
  273. package/esm/number-field/decrement/NumberFieldDecrement.js +2 -4
  274. package/esm/number-field/group/NumberFieldGroup.js +2 -4
  275. package/esm/number-field/increment/NumberFieldIncrement.js +2 -4
  276. package/esm/number-field/input/NumberFieldInput.js +2 -4
  277. package/esm/number-field/root/NumberFieldRoot.js +37 -16
  278. package/esm/number-field/scrub-area/NumberFieldScrubArea.js +5 -3
  279. package/esm/number-field/scrub-area-cursor/NumberFieldScrubAreaCursor.js +8 -4
  280. package/esm/popover/arrow/PopoverArrow.js +2 -4
  281. package/esm/popover/backdrop/PopoverBackdrop.js +2 -4
  282. package/esm/popover/close/PopoverClose.js +2 -4
  283. package/esm/popover/description/PopoverDescription.js +2 -4
  284. package/esm/popover/popup/PopoverPopup.js +21 -8
  285. package/esm/popover/portal/PopoverPortal.js +20 -10
  286. package/esm/popover/positioner/PopoverPositioner.js +28 -13
  287. package/esm/popover/root/PopoverRoot.js +19 -13
  288. package/esm/popover/title/PopoverTitle.js +2 -4
  289. package/esm/popover/trigger/PopoverTrigger.js +2 -4
  290. package/esm/preview-card/arrow/PreviewCardArrow.js +2 -4
  291. package/esm/preview-card/backdrop/PreviewCardBackdrop.js +2 -4
  292. package/esm/preview-card/popup/PreviewCardPopup.js +2 -4
  293. package/esm/preview-card/portal/PreviewCardPortal.js +20 -10
  294. package/esm/preview-card/positioner/PreviewCardPositioner.js +5 -3
  295. package/esm/preview-card/root/PreviewCardRoot.js +5 -3
  296. package/esm/preview-card/trigger/PreviewCardTrigger.js +2 -4
  297. package/esm/progress/indicator/ProgressIndicator.js +2 -4
  298. package/esm/progress/label/ProgressLabel.js +2 -4
  299. package/esm/progress/root/ProgressRoot.js +5 -3
  300. package/esm/progress/track/ProgressTrack.js +2 -4
  301. package/esm/progress/value/ProgressValue.js +2 -4
  302. package/esm/radio/indicator/RadioIndicator.js +8 -4
  303. package/esm/radio/root/RadioRoot.js +22 -11
  304. package/esm/radio-group/RadioGroup.js +18 -10
  305. package/esm/scroll-area/content/ScrollAreaContent.js +2 -4
  306. package/esm/scroll-area/corner/ScrollAreaCorner.js +8 -4
  307. package/esm/scroll-area/root/ScrollAreaRoot.js +5 -3
  308. package/esm/scroll-area/scrollbar/ScrollAreaScrollbar.js +13 -7
  309. package/esm/scroll-area/thumb/ScrollAreaThumb.js +2 -4
  310. package/esm/scroll-area/viewport/ScrollAreaViewport.js +5 -3
  311. package/esm/select/arrow/SelectArrow.js +8 -4
  312. package/esm/select/backdrop/SelectBackdrop.js +2 -4
  313. package/esm/select/group/SelectGroup.js +5 -3
  314. package/esm/select/group-label/SelectGroupLabel.js +2 -4
  315. package/esm/select/icon/SelectIcon.js +3 -7
  316. package/esm/select/item/SelectItem.js +5 -3
  317. package/esm/select/item-indicator/SelectItemIndicator.js +8 -4
  318. package/esm/select/item-text/SelectItemText.js +2 -4
  319. package/esm/select/popup/SelectPopup.js +13 -10
  320. package/esm/select/portal/SelectPortal.js +20 -10
  321. package/esm/select/positioner/SelectPositioner.js +24 -13
  322. package/esm/select/root/SelectRoot.js +58 -47
  323. package/esm/select/scroll-arrow/SelectScrollArrow.js +10 -7
  324. package/esm/select/scroll-down-arrow/SelectScrollDownArrow.js +8 -5
  325. package/esm/select/scroll-up-arrow/SelectScrollUpArrow.js +8 -5
  326. package/esm/select/trigger/SelectTrigger.js +2 -4
  327. package/esm/select/value/SelectValue.js +3 -7
  328. package/esm/separator/Separator.js +2 -4
  329. package/esm/slider/control/SliderControl.js +2 -4
  330. package/esm/slider/indicator/SliderIndicator.js +2 -4
  331. package/esm/slider/root/SliderRoot.js +71 -47
  332. package/esm/slider/thumb/SliderThumb.js +10 -11
  333. package/esm/slider/track/SliderTrack.js +2 -4
  334. package/esm/slider/value/SliderValue.js +3 -7
  335. package/esm/switch/root/SwitchRoot.js +20 -9
  336. package/esm/switch/thumb/SwitchThumb.js +2 -4
  337. package/esm/tabs/indicator/TabsIndicator.js +15 -11
  338. package/esm/tabs/list/TabsList.js +20 -12
  339. package/esm/tabs/panel/TabsPanel.js +3 -7
  340. package/esm/tabs/root/TabsRoot.js +13 -9
  341. package/esm/tabs/tab/TabsTab.js +2 -4
  342. package/esm/toast/action/ToastAction.js +3 -7
  343. package/esm/toast/close/ToastClose.js +2 -4
  344. package/esm/toast/description/ToastDescription.js +3 -7
  345. package/esm/toast/portal/ToastPortal.js +8 -4
  346. package/esm/toast/provider/ToastProvider.js +5 -3
  347. package/esm/toast/root/ToastRoot.js +37 -22
  348. package/esm/toast/title/ToastTitle.js +3 -7
  349. package/esm/toast/utils/test-utils.js +28 -21
  350. package/esm/toast/viewport/ToastViewport.js +13 -13
  351. package/esm/toggle/Toggle.js +10 -6
  352. package/esm/toggle-group/ToggleGroup.js +19 -11
  353. package/esm/toolbar/button/ToolbarButton.js +2 -2
  354. package/esm/toolbar/group/ToolbarGroup.js +5 -3
  355. package/esm/toolbar/input/ToolbarInput.js +2 -2
  356. package/esm/toolbar/link/ToolbarLink.js +2 -2
  357. package/esm/toolbar/root/ToolbarRoot.js +20 -10
  358. package/esm/toolbar/separator/ToolbarSeparator.js +12 -6
  359. package/esm/tooltip/arrow/TooltipArrow.js +2 -4
  360. package/esm/tooltip/popup/TooltipPopup.js +2 -4
  361. package/esm/tooltip/portal/TooltipPortal.js +20 -10
  362. package/esm/tooltip/positioner/TooltipPositioner.js +5 -3
  363. package/esm/tooltip/provider/TooltipProvider.js +15 -7
  364. package/esm/tooltip/root/TooltipRoot.js +5 -3
  365. package/esm/tooltip/trigger/TooltipTrigger.js +2 -4
  366. package/esm/unstable-no-ssr/NoSsr.js +12 -5
  367. package/esm/utils/FloatingPortalLite.js +8 -4
  368. package/esm/utils/FocusGuard.js +23 -10
  369. package/esm/utils/InternalBackdrop.js +22 -18
  370. package/esm/utils/styles.js +3 -5
  371. package/esm/utils/useRenderElement.js +36 -30
  372. package/package.json +5 -3
@@ -1,3 +1,4 @@
1
+ import { createComponent as _$createComponent } from "solid-js/web";
1
2
  import { Show } from 'solid-js';
2
3
  import { FloatingPortalLite } from "../../utils/FloatingPortalLite.js";
3
4
  import { useTooltipRootContext } from "../root/TooltipRootContext.js";
@@ -9,21 +10,30 @@ import { TooltipPortalContext } from "./TooltipPortalContext.js";
9
10
  *
10
11
  * Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)
11
12
  */
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
13
  export function TooltipPortal(props) {
14
14
  const keepMounted = () => props.keepMounted ?? false;
15
15
  const {
16
16
  mounted
17
17
  } = useTooltipRootContext();
18
18
  const shouldRender = () => mounted() || keepMounted();
19
- return /*#__PURE__*/_jsx(Show, {
20
- when: shouldRender(),
21
- children: /*#__PURE__*/_jsx(TooltipPortalContext.Provider, {
22
- value: keepMounted,
23
- children: /*#__PURE__*/_jsx(FloatingPortalLite, {
24
- root: props.container,
25
- children: props.children
26
- })
27
- })
19
+ return _$createComponent(Show, {
20
+ get when() {
21
+ return shouldRender();
22
+ },
23
+ get children() {
24
+ return _$createComponent(TooltipPortalContext.Provider, {
25
+ value: keepMounted,
26
+ get children() {
27
+ return _$createComponent(FloatingPortalLite, {
28
+ get root() {
29
+ return props.container;
30
+ },
31
+ get children() {
32
+ return props.children;
33
+ }
34
+ });
35
+ }
36
+ });
37
+ }
28
38
  });
29
39
  }
@@ -1,3 +1,4 @@
1
+ import { createComponent as _$createComponent } from "solid-js/web";
1
2
  import { mergeProps as solidMergeProps } from 'solid-js';
2
3
  import { splitComponentProps } from "../../solid-helpers.js";
3
4
  import { POPUP_COLLISION_AVOIDANCE } from "../../utils/constants.js";
@@ -14,7 +15,6 @@ import { TooltipPositionerContext } from "./TooltipPositionerContext.js";
14
15
  *
15
16
  * Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)
16
17
  */
17
- import { jsx as _jsx } from "react/jsx-runtime";
18
18
  export function TooltipPositioner(componentProps) {
19
19
  const [, local, elementProps] = splitComponentProps(componentProps, ['anchor', 'positionMethod', 'side', 'align', 'sideOffset', 'alignOffset', 'collisionBoundary', 'collisionPadding', 'arrowPadding', 'sticky', 'trackAnchor', 'collisionAvoidance']);
20
20
  const positionMethod = () => local.positionMethod ?? 'absolute';
@@ -105,8 +105,10 @@ export function TooltipPositioner(componentProps) {
105
105
  props: [positioner.props, elementProps],
106
106
  customStyleHookMapping: popupStateMapping
107
107
  });
108
- return /*#__PURE__*/_jsx(TooltipPositionerContext.Provider, {
108
+ return _$createComponent(TooltipPositionerContext.Provider, {
109
109
  value: contextValue,
110
- children: element()
110
+ get children() {
111
+ return element();
112
+ }
111
113
  });
112
114
  }
@@ -1,3 +1,4 @@
1
+ import { createComponent as _$createComponent } from "solid-js/web";
1
2
  import { createMemo } from 'solid-js';
2
3
  import { FloatingDelayGroup } from "../../floating-ui-solid/index.js";
3
4
  import { TooltipProviderContext } from "./TooltipProviderContext.js";
@@ -8,7 +9,6 @@ import { TooltipProviderContext } from "./TooltipProviderContext.js";
8
9
  *
9
10
  * Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)
10
11
  */
11
- import { jsx as _jsx } from "react/jsx-runtime";
12
12
  export function TooltipProvider(props) {
13
13
  const timeout = () => props.timeout ?? 400;
14
14
  const contextValue = {
@@ -19,12 +19,20 @@ export function TooltipProvider(props) {
19
19
  open: props.delay,
20
20
  close: props.closeDelay
21
21
  }));
22
- return /*#__PURE__*/_jsx(TooltipProviderContext.Provider, {
22
+ return _$createComponent(TooltipProviderContext.Provider, {
23
23
  value: contextValue,
24
- children: /*#__PURE__*/_jsx(FloatingDelayGroup, {
25
- delay: delayValue(),
26
- timeoutMs: timeout(),
27
- children: props.children
28
- })
24
+ get children() {
25
+ return _$createComponent(FloatingDelayGroup, {
26
+ get delay() {
27
+ return delayValue();
28
+ },
29
+ get timeoutMs() {
30
+ return timeout();
31
+ },
32
+ get children() {
33
+ return props.children;
34
+ }
35
+ });
36
+ }
29
37
  });
30
38
  }
@@ -1,3 +1,4 @@
1
+ import { createComponent as _$createComponent } from "solid-js/web";
1
2
  import { batch, createEffect, createSignal, onMount } from 'solid-js';
2
3
  import { safePolygon, useClientPoint, useDelayGroup, useDismiss, useFloatingRootContext, useFocus, useHover, useInteractions } from "../../floating-ui-solid/index.js";
3
4
  import { mergeProps } from "../../merge-props/mergeProps.js";
@@ -15,7 +16,6 @@ import { TooltipRootContext } from "./TooltipRootContext.js";
15
16
  *
16
17
  * Documentation: [Base UI Tooltip](https://base-ui.com/react/components/tooltip)
17
18
  */
18
- import { jsx as _jsx } from "react/jsx-runtime";
19
19
  export function TooltipRoot(props) {
20
20
  const disabled = () => props.disabled ?? false;
21
21
  const defaultOpen = () => props.defaultOpen ?? false;
@@ -181,8 +181,10 @@ export function TooltipRoot(props) {
181
181
  trackCursorAxis,
182
182
  hoverable
183
183
  };
184
- return /*#__PURE__*/_jsx(TooltipRootContext.Provider, {
184
+ return _$createComponent(TooltipRootContext.Provider, {
185
185
  value: contextValue,
186
- children: props.children
186
+ get children() {
187
+ return props.children;
188
+ }
187
189
  });
188
190
  }
@@ -1,3 +1,4 @@
1
+ import { memo as _$memo } from "solid-js/web";
1
2
  import { splitComponentProps } from "../../solid-helpers.js";
2
3
  import { triggerOpenStateMapping } from "../../utils/popupStateMapping.js";
3
4
  import { useRenderElement } from "../../utils/useRenderElement.js";
@@ -9,7 +10,6 @@ import { useTooltipRootContext } from "../root/TooltipRootContext.js";
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 TooltipTrigger(componentProps) {
14
14
  const [,, elementProps] = splitComponentProps(componentProps, []);
15
15
  const {
@@ -28,7 +28,5 @@ export function TooltipTrigger(componentProps) {
28
28
  props: [triggerProps, elementProps],
29
29
  customStyleHookMapping: triggerOpenStateMapping
30
30
  });
31
- return /*#__PURE__*/_jsx(_Fragment, {
32
- children: element()
33
- });
31
+ return _$memo(element);
34
32
  }
@@ -1,5 +1,6 @@
1
+ import { createComponent as _$createComponent } from "solid-js/web";
2
+ import { memo as _$memo } from "solid-js/web";
1
3
  import { createSignal, onMount, Show } from 'solid-js';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
4
  /**
4
5
  * NoSsr purposely removes components from the subject of Server Side Rendering (SSR).
5
6
  *
@@ -17,9 +18,15 @@ export function NoSsr(props) {
17
18
  onMount(() => {
18
19
  setMountedState(true);
19
20
  });
20
- return /*#__PURE__*/_jsx(Show, {
21
- when: mountedState(),
22
- fallback: props.fallback ?? null,
23
- children: props.children
21
+ return _$createComponent(Show, {
22
+ get when() {
23
+ return mountedState();
24
+ },
25
+ get fallback() {
26
+ return props.fallback ?? null;
27
+ },
28
+ get children() {
29
+ return props.children;
30
+ }
24
31
  });
25
32
  }
@@ -1,3 +1,4 @@
1
+ import { createComponent as _$createComponent } from "solid-js/web";
1
2
  import { Portal } from 'solid-js/web';
2
3
  import { useFloatingPortalNode } from "../floating-ui-solid/index.js";
3
4
 
@@ -6,7 +7,6 @@ import { useFloatingPortalNode } from "../floating-ui-solid/index.js";
6
7
  * For components that don't need tabbable logic, use `FloatingPortalLite`.
7
8
  * @internal
8
9
  */
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
10
  export function FloatingPortalLite(props) {
11
11
  const {
12
12
  portalMount,
@@ -14,9 +14,13 @@ export function FloatingPortalLite(props) {
14
14
  } = useFloatingPortalNode({
15
15
  root: () => props.root
16
16
  });
17
- return /*#__PURE__*/_jsx(Portal, {
18
- mount: portalMount(),
17
+ return _$createComponent(Portal, {
18
+ get mount() {
19
+ return portalMount();
20
+ },
19
21
  ref: portalRef,
20
- children: props.children
22
+ get children() {
23
+ return props.children;
24
+ }
21
25
  });
22
26
  }
@@ -1,3 +1,9 @@
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 { memo as _$memo } from "solid-js/web";
6
+ var _tmpl$ = /*#__PURE__*/_$template(`<span>`);
1
7
  import { createSignal, onMount } from 'solid-js';
2
8
  import { isSafari } from "./detectBrowser.js";
3
9
  import { visuallyHidden } from "./visuallyHidden.js";
@@ -5,7 +11,6 @@ import { visuallyHidden } from "./visuallyHidden.js";
5
11
  /**
6
12
  * @internal
7
13
  */
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
14
  export function FocusGuard(props) {
10
15
  const [role, setRole] = createSignal();
11
16
  onMount(() => {
@@ -16,13 +21,21 @@ export function FocusGuard(props) {
16
21
  setRole('button');
17
22
  }
18
23
  });
19
- return /*#__PURE__*/_jsx("span", {
20
- ...props,
21
- ref: props.ref,
22
- tabIndex: 0,
23
- role: role(),
24
- "aria-hidden": role() ? undefined : true,
25
- style: visuallyHidden,
26
- "data-base-ui-focus-guard": ""
27
- });
24
+ return (() => {
25
+ var _el$ = _tmpl$();
26
+ var _ref$ = props.ref;
27
+ typeof _ref$ === "function" ? _$use(_ref$, _el$) : props.ref = _el$;
28
+ _$spread(_el$, _$mergeProps(props, {
29
+ "tabIndex": 0,
30
+ get role() {
31
+ return role();
32
+ },
33
+ get ["aria-hidden"]() {
34
+ return role() ? undefined : true;
35
+ },
36
+ "style": visuallyHidden,
37
+ "data-base-ui-focus-guard": ""
38
+ }), false, false);
39
+ return _el$;
40
+ })();
28
41
  }
@@ -1,10 +1,14 @@
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
+ var _tmpl$ = /*#__PURE__*/_$template(`<div role=presentation data-base-ui-inert>`);
1
6
  import { createMemo, splitProps } from 'solid-js';
2
7
  import { createAttribute } from "../floating-ui-solid/utils/createAttribute.js";
3
8
 
4
9
  /**
5
10
  * @internal
6
11
  */
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
12
  export function InternalBackdrop(props) {
9
13
  const [local, otherProps] = splitProps(props, ['cutout', 'managed']);
10
14
  const clipPath = createMemo(() => {
@@ -28,21 +32,21 @@ export function InternalBackdrop(props) {
28
32
  const ownerProps = () => local.managed ? {
29
33
  [createAttribute('managed')]: local.managed
30
34
  } : {};
31
- return /*#__PURE__*/_jsx("div", {
32
- ref: props.ref,
33
- role: "presentation"
34
- // Ensures Floating UI's outside press detection runs, as it considers
35
- // it an element that existed when the popup rendered.
36
- ,
37
- "data-base-ui-inert": "",
38
- ...otherProps,
39
- ...ownerProps(),
40
- style: {
41
- position: 'fixed',
42
- inset: 0,
43
- 'user-select': 'none',
44
- '-webkit-user-select': 'none',
45
- 'clip-path': clipPath()
46
- }
47
- });
35
+ return (() => {
36
+ var _el$ = _tmpl$();
37
+ var _ref$ = props.ref;
38
+ typeof _ref$ === "function" ? _$use(_ref$, _el$) : props.ref = _el$;
39
+ _$spread(_el$, _$mergeProps(otherProps, ownerProps, {
40
+ get style() {
41
+ return {
42
+ position: 'fixed',
43
+ inset: 0,
44
+ 'user-select': 'none',
45
+ '-webkit-user-select': 'none',
46
+ 'clip-path': clipPath()
47
+ };
48
+ }
49
+ }), false, false);
50
+ return _el$;
51
+ })();
48
52
  }
@@ -1,9 +1,7 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { template as _$template } from "solid-js/web";
2
+ var _tmpl$ = /*#__PURE__*/_$template(`<style id=disable-scrollbar>.base-ui-disable-scrollbar\{scrollbar-width:none}.base-ui-disable-scrollbar::-webkit-scrollbar\{display:none}`);
2
3
  export const STYLE_TAG_ID = 'disable-scrollbar';
3
4
  export const styleDisableScrollbar = {
4
5
  class: 'base-ui-disable-scrollbar',
5
- element: /*#__PURE__*/_jsx("style", {
6
- id: STYLE_TAG_ID,
7
- children: `.base-ui-disable-scrollbar{scrollbar-width:none}.base-ui-disable-scrollbar::-webkit-scrollbar{display:none}`
8
- })
6
+ element: _tmpl$()
9
7
  };
@@ -1,3 +1,6 @@
1
+ import { createComponent as _$createComponent } from "solid-js/web";
2
+ import { mergeProps as _$mergeProps } from "solid-js/web";
3
+ import { memo as _$memo } from "solid-js/web";
1
4
  import { Show } from 'solid-js';
2
5
  import { Dynamic } from 'solid-js/web';
3
6
  import { mergeProps } from "../merge-props/mergeProps.js";
@@ -5,34 +8,36 @@ import { access } from "../solid-helpers.js";
5
8
  import { EMPTY_OBJECT } from "./constants.js";
6
9
  import { getStyleHookProps } from "./getStyleHookProps.js";
7
10
  import { resolveClassName } from "./resolveClassName.js";
8
- import { jsx as _jsx } from "react/jsx-runtime";
9
11
  export function useRenderElement(element, componentProps, params) {
10
12
  const Component = props => {
11
- return /*#__PURE__*/_jsx(Show, {
12
- when: access(params.enabled) ?? true,
13
- children: /*#__PURE__*/_jsx(Dynamic, {
14
- component: p => {
15
- if (typeof componentProps.render === 'function') {
16
- return componentProps.render(p, params.state ?? EMPTY_OBJECT);
17
- }
18
- if (componentProps.render && typeof componentProps.render === 'object' && 'component' in componentProps.render) {
19
- return /*#__PURE__*/_jsx(Dynamic, {
20
- ...p,
21
- component: componentProps.render.component
22
- });
23
- }
24
- return /*#__PURE__*/_jsx(Dynamic, {
25
- component: typeof componentProps.render === 'string' ? componentProps.render : access(element),
26
- ...(access(element) === 'button' ? {
13
+ return _$createComponent(Show, {
14
+ get when() {
15
+ return access(params.enabled) ?? true;
16
+ },
17
+ get children() {
18
+ return _$createComponent(Dynamic, _$mergeProps({
19
+ component: p => {
20
+ if (typeof componentProps.render === 'function') {
21
+ return componentProps.render(p, params.state ?? EMPTY_OBJECT);
22
+ }
23
+ if (componentProps.render && typeof componentProps.render === 'object' && 'component' in componentProps.render) {
24
+ return _$createComponent(Dynamic, _$mergeProps(p, {
25
+ get component() {
26
+ return componentProps.render.component;
27
+ }
28
+ }));
29
+ }
30
+ return _$createComponent(Dynamic, _$mergeProps({
31
+ get component() {
32
+ return _$memo(() => typeof componentProps.render === 'string')() ? componentProps.render : access(element);
33
+ }
34
+ }, () => access(element) === 'button' ? {
27
35
  type: 'button'
28
- } : {}),
29
- ...(access(element) === 'img' ? {
36
+ } : {}, () => access(element) === 'img' ? {
30
37
  alt: ''
31
- } : {}),
32
- ...p
33
- });
34
- },
35
- ...mergeProps([props, {
38
+ } : {}, p));
39
+ }
40
+ }, () => mergeProps([props, {
36
41
  ref: el => {
37
42
  if (typeof componentProps.ref === 'function') {
38
43
  componentProps.ref(el);
@@ -50,16 +55,17 @@ export function useRenderElement(element, componentProps, params) {
50
55
  get class() {
51
56
  return resolveClassName(componentProps.class, params.state);
52
57
  }
53
- }]),
54
- children: params.children ?? componentProps.children
55
- })
58
+ }]), {
59
+ get children() {
60
+ return params.children ?? componentProps.children;
61
+ }
62
+ }));
63
+ }
56
64
  });
57
65
  };
58
66
  if (process.env.NODE_ENV !== "production") Component.displayName = "Component";
59
67
  return (renderFnProps = {}) => {
60
- return /*#__PURE__*/_jsx(Component, {
61
- ...renderFnProps
62
- });
68
+ return _$createComponent(Component, renderFnProps);
63
69
  };
64
70
  }
65
71
  export let RenderElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msviderok/base-ui-solid",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.3",
4
4
  "private": false,
5
5
  "author": "MUI Team",
6
6
  "description": "Base UI is a library of headless ('unstyled') Solid components and low-level hooks. You gain complete control over your app's CSS and accessibility features.",
@@ -13,12 +13,12 @@
13
13
  ],
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "git+https://github.com/mui/base-ui.git",
16
+ "url": "git+https://github.com/sviderock/base-ui.git",
17
17
  "directory": "packages/solid"
18
18
  },
19
19
  "license": "MIT",
20
20
  "bugs": {
21
- "url": "https://github.com/mui/base-ui/issues"
21
+ "url": "https://github.com/sviderock/base-ui/issues"
22
22
  },
23
23
  "homepage": "https://base-ui.com",
24
24
  "funding": {
@@ -30,7 +30,9 @@
30
30
  "@babel/runtime": "^7.27.6",
31
31
  "@floating-ui/dom": "^1.7.2",
32
32
  "@floating-ui/utils": "^0.2.10",
33
+ "@solid-primitives/props": "^3.2.2",
33
34
  "@solidjs/router": "^0.15.3",
35
+ "babel-preset-solid": "^1.9.10",
34
36
  "tabbable": "^6.2.0"
35
37
  },
36
38
  "peerDependencies": {