solid-baseui 0.1.0-alpha.0 → 0.1.0-alpha.1

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 (311) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +95 -8
  3. package/dist/lib/client/DialogHandle-BGyIbcvg.js +521 -0
  4. package/dist/lib/client/DialogPopup-Df7MC358.js +138 -0
  5. package/dist/lib/client/FieldControl-C0PATyKV.js +142 -0
  6. package/dist/lib/client/{FocusManager-grSdNHqW.js → FocusManager-NP1uPXTi.js} +5 -5
  7. package/dist/lib/client/{FormContext-BB05lWOI.js → FormContext-CwLBtm_d.js} +1 -0
  8. package/dist/lib/client/{LabelableContext-DKsB0fIx.js → LabelableContext-CmQF-TX2.js} +3 -6
  9. package/dist/lib/client/MenuSubmenuTrigger-yfncqM-D.js +1584 -0
  10. package/dist/lib/client/{PopupHandle-CcJG4NMy.js → PopupHandle-CQI6Om1Z.js} +1 -1
  11. package/dist/lib/client/{PopupStore-DjB-wO88.js → PopupStore-Du0O57fL.js} +118 -98
  12. package/dist/lib/client/{PopupViewport-DgrIqQea.js → PopupViewport-IS4XU03s.js} +2 -2
  13. package/dist/lib/client/Separator-D5oJzlA3.js +27 -0
  14. package/dist/lib/client/TriggerFocusGuards-Cs8LVBj5.js +51 -0
  15. package/dist/lib/client/accordion/index.js +1 -1
  16. package/dist/lib/client/accordion-BFeZFpJZ.js +381 -0
  17. package/dist/lib/client/alert-dialog/index.js +1 -1
  18. package/dist/lib/client/{alert-dialog-BH_3ndio.js → alert-dialog-BxGUF8_Q.js} +2 -2
  19. package/dist/lib/client/autocomplete/index.js +1 -1
  20. package/dist/lib/client/{autocomplete-Cob_FZEP.js → autocomplete-C9QA98XD.js} +30 -25
  21. package/dist/lib/client/avatar/index.js +1 -1
  22. package/dist/lib/client/avatar-BQoEzzav.js +191 -0
  23. package/dist/lib/client/button/index.js +1 -1
  24. package/dist/lib/client/button-akYS6FyY.js +88 -0
  25. package/dist/lib/client/checkbox/index.js +1 -1
  26. package/dist/lib/client/checkbox-DOXtzBhA.js +425 -0
  27. package/dist/lib/client/checkbox-group/index.js +1 -1
  28. package/dist/lib/client/checkbox-group-CwMDoSTK.js +135 -0
  29. package/dist/lib/client/collapsible/index.js +1 -1
  30. package/dist/lib/client/collapsible-t8YReaIp.js +230 -0
  31. package/dist/lib/client/combobox/index.js +2 -2
  32. package/dist/lib/client/combobox-6DhOdzit.js +399 -0
  33. package/dist/lib/client/{constants-BYjBUIIi.js → constants-cOVxAoxB.js} +5 -1
  34. package/dist/lib/client/context-menu/index.js +1 -1
  35. package/dist/lib/client/context-menu-CplDpqmi.js +220 -0
  36. package/dist/lib/client/{createAnchorPositioning-DcxDXUgB.js → createAnchorPositioning-D96gu-Dz.js} +148 -145
  37. package/dist/lib/client/{createCollapsiblePanel-DeDu0O2t.js → createCollapsiblePanel-BQ8r4RTi.js} +1 -1
  38. package/dist/lib/client/createFocusInteraction--s9_qBf3.js +60 -0
  39. package/dist/lib/client/createLabelableId-DxJRwMUJ.js +14 -0
  40. package/dist/lib/client/{createPopupAutoResize-CGNiLhGq.js → createPopupAutoResize-Dn-stj-8.js} +1 -1
  41. package/dist/lib/client/{createTransitionStatus-B1L-whed.js → createTransitionStatus-BL_cPSEA.js} +12 -12
  42. package/dist/lib/client/dialog/index.js +1 -1
  43. package/dist/lib/client/{dialog-DkaQwIgP.js → dialog-B9tR9X48.js} +2 -2
  44. package/dist/lib/client/drawer/index.js +1 -1
  45. package/dist/lib/client/drawer-dyr3_sKQ.js +1539 -0
  46. package/dist/lib/client/field/index.js +1 -1
  47. package/dist/lib/client/field-CjUAjp1m.js +483 -0
  48. package/dist/lib/client/fieldset/index.js +1 -1
  49. package/dist/lib/client/fieldset-Byqk3noT.js +70 -0
  50. package/dist/lib/client/form/index.js +1 -1
  51. package/dist/lib/client/form-6Ne_bWQX.js +109 -0
  52. package/dist/lib/client/index.js +44 -42
  53. package/dist/lib/client/input/index.js +1 -1
  54. package/dist/lib/client/{input-gb0ejxkm.js → input-_QHvSSqM.js} +1 -1
  55. package/dist/lib/client/internals/form-context/index.js +1 -1
  56. package/dist/lib/client/internals/labelable-provider/index.js +1 -1
  57. package/dist/lib/client/menu/index.js +1 -1
  58. package/dist/lib/client/menu-DLqUBmMK.js +334 -0
  59. package/dist/lib/client/menubar/index.js +1 -1
  60. package/dist/lib/client/menubar-DhPRUQZ6.js +163 -0
  61. package/dist/lib/client/{mergeStyleValue-C4ITiiIV.js → mergeStyleValue-DhTA9Nwe.js} +7 -3
  62. package/dist/lib/client/meter/index.js +1 -1
  63. package/dist/lib/client/meter-BvWdppcx.js +178 -0
  64. package/dist/lib/client/navigation-menu/index.js +1 -1
  65. package/dist/lib/client/navigation-menu-mVHV41Ky.js +1070 -0
  66. package/dist/lib/client/number-field/index.js +1 -1
  67. package/dist/lib/client/number-field-DusLw_0X.js +1043 -0
  68. package/dist/lib/client/otp-field/index.js +1 -1
  69. package/dist/lib/client/otp-field-D-B9tZzF.js +584 -0
  70. package/dist/lib/client/popover/index.js +1 -1
  71. package/dist/lib/client/popover-Cv7xn0nW.js +938 -0
  72. package/dist/lib/client/popupStateMapping-C6jQ_LKo.js +371 -0
  73. package/dist/lib/client/preview-card/index.js +1 -1
  74. package/dist/lib/client/preview-card-FTN_aafM.js +632 -0
  75. package/dist/lib/client/progress/index.js +1 -1
  76. package/dist/lib/client/progress-AVKxvgpc.js +195 -0
  77. package/dist/lib/client/radio/index.js +1 -1
  78. package/dist/lib/client/radio-DA_oZhQT.js +284 -0
  79. package/dist/lib/client/radio-group/index.js +1 -1
  80. package/dist/lib/client/radio-group-CWtQxWDl.js +195 -0
  81. package/dist/lib/client/runOnceAnimationsFinish-CFADb4CN.js +49 -0
  82. package/dist/lib/client/{safePolygon--bbKn0c8.js → safePolygon-DJG0VIVo.js} +4 -0
  83. package/dist/lib/client/scroll-area/index.js +1 -1
  84. package/dist/lib/client/scroll-area-NCr49LkD.js +717 -0
  85. package/dist/lib/client/select/index.js +1 -1
  86. package/dist/lib/client/select-DSPJt7Rk.js +1933 -0
  87. package/dist/lib/client/separator/index.js +1 -1
  88. package/dist/lib/client/slider/index.js +1 -1
  89. package/dist/lib/client/slider-CWq9hxFf.js +927 -0
  90. package/dist/lib/client/switch/index.js +1 -1
  91. package/dist/lib/client/switch-CPl7QHKI.js +306 -0
  92. package/dist/lib/client/tabs/index.js +1 -1
  93. package/dist/lib/client/tabs-Bn4rZDyZ.js +692 -0
  94. package/dist/lib/client/toast/index.js +1 -1
  95. package/dist/lib/client/toast-7LdqZWOs.js +1118 -0
  96. package/dist/lib/client/toggle/index.js +1 -1
  97. package/dist/lib/client/toggle-CsC37e3e.js +142 -0
  98. package/dist/lib/client/toggle-group/index.js +1 -1
  99. package/dist/lib/client/toggle-group-DSWb9HxN.js +134 -0
  100. package/dist/lib/client/toolbar/index.js +1 -1
  101. package/dist/lib/client/toolbar-DcCi3HNp.js +504 -0
  102. package/dist/lib/client/tooltip/index.js +1 -1
  103. package/dist/lib/client/tooltip-D-PkGco9.js +849 -0
  104. package/dist/lib/client/use-render/index.js +2 -0
  105. package/dist/lib/client/useFilteredItems-B7z2CGMV.js +2270 -0
  106. package/dist/lib/client/useRender-CxZ8PI-g.js +12 -0
  107. package/dist/lib/server/{DialogHandle-ATZlm9RC.js → DialogHandle-nJSSy_jM.js} +24 -33
  108. package/dist/lib/server/{DialogPopup-BebI-w5P.js → DialogPopup-Da1aIxVA.js} +10 -13
  109. package/dist/lib/server/{FieldControl-Y_kI7ARp.js → FieldControl-BDeNR3ug.js} +56 -20
  110. package/dist/lib/server/{FocusManager-BrbZVWME.js → FocusManager-1LfoCsya.js} +1 -3
  111. package/dist/lib/server/{FormContext-pvESt85v.js → FormContext-CYwo_ZnB.js} +1 -0
  112. package/dist/lib/server/{LabelableContext-DZP3rgAY.js → LabelableContext-BTeF0IWb.js} +4 -6
  113. package/dist/lib/server/{MenuSubmenuTrigger-DA4gsv6z.js → MenuSubmenuTrigger-rR8ZN7YR.js} +133 -166
  114. package/dist/lib/server/{PopupHandle-DthPgNjy.js → PopupHandle-Ct6wywmP.js} +1 -1
  115. package/dist/lib/server/{PopupStore-DEs3FAEe.js → PopupStore-kHjFPiQ5.js} +38 -14
  116. package/dist/lib/server/{PopupViewport-3r_KTFwX.js → PopupViewport-DftN5VUp.js} +2 -2
  117. package/dist/lib/server/{Separator-vhhYxWGr.js → Separator-DTvtnxzP.js} +4 -6
  118. package/dist/lib/server/TriggerFocusGuards-CvoGfft9.js +61 -0
  119. package/dist/lib/server/accordion/index.js +32 -70
  120. package/dist/lib/server/alert-dialog/index.js +2 -2
  121. package/dist/lib/server/autocomplete/index.js +14 -5
  122. package/dist/lib/server/avatar/index.js +90 -51
  123. package/dist/lib/server/button/index.js +8 -9
  124. package/dist/lib/server/checkbox/index.js +30 -57
  125. package/dist/lib/server/checkbox-group/index.js +20 -10
  126. package/dist/lib/server/collapsible/index.js +36 -43
  127. package/dist/lib/server/combobox/index.js +64 -35
  128. package/dist/lib/server/{constants-9H__9xbS.js → constants-D7ciIzsV.js} +8 -3
  129. package/dist/lib/server/context-menu/index.js +7 -9
  130. package/dist/lib/server/{createAnchorPositioning-C-cVOPwz.js → createAnchorPositioning-B5Y0WEev.js} +11 -6
  131. package/dist/lib/server/{createCollapsiblePanel-DTyVJz0G.js → createCollapsiblePanel-B45kTe6v.js} +1 -1
  132. package/dist/lib/server/{createFocusInteraction-EIS0QOel.js → createFocusInteraction-DMyKsniI.js} +22 -2
  133. package/dist/lib/server/createLabelableId-WMUKtY6s.js +18 -0
  134. package/dist/lib/server/{createPopupAutoResize-DO50jjNX.js → createPopupAutoResize-ImBjwdj_.js} +1 -1
  135. package/dist/lib/server/{createTransitionStatus-BTlrerSS.js → createTransitionStatus-184v7j3-.js} +2 -2
  136. package/dist/lib/server/dialog/index.js +2 -2
  137. package/dist/lib/server/drawer/index.js +63 -71
  138. package/dist/lib/server/field/index.js +105 -93
  139. package/dist/lib/server/fieldset/index.js +13 -16
  140. package/dist/lib/server/form/index.js +16 -12
  141. package/dist/lib/server/index.js +5 -3
  142. package/dist/lib/server/input/index.js +1 -1
  143. package/dist/lib/server/internals/form-context/index.js +1 -1
  144. package/dist/lib/server/internals/labelable-provider/index.js +1 -1
  145. package/dist/lib/server/menu/index.js +21 -20
  146. package/dist/lib/server/menubar/index.js +6 -31
  147. package/dist/lib/server/{mergeStyleValue-Db8bRCM4.js → mergeStyleValue-BwJ10_X2.js} +6 -1
  148. package/dist/lib/server/meter/index.js +20 -32
  149. package/dist/lib/server/navigation-menu/index.js +53 -124
  150. package/dist/lib/server/number-field/index.js +44 -42
  151. package/dist/lib/server/otp-field/index.js +11 -14
  152. package/dist/lib/server/popover/index.js +42 -59
  153. package/dist/lib/server/{popupStateMapping-nKoUwoke.js → popupStateMapping-B2KsiiLb.js} +18 -16
  154. package/dist/lib/server/preview-card/index.js +30 -41
  155. package/dist/lib/server/progress/index.js +21 -33
  156. package/dist/lib/server/radio/index.js +18 -39
  157. package/dist/lib/server/radio-group/index.js +7 -8
  158. package/dist/lib/server/{runOnceAnimationsFinish-DCHzXWZU.js → runOnceAnimationsFinish-CYq38H8J.js} +2 -1
  159. package/dist/lib/server/{safePolygon-CAm5RJGv.js → safePolygon-C1GNJbKR.js} +5 -0
  160. package/dist/lib/server/scroll-area/index.js +23 -32
  161. package/dist/lib/server/select/index.js +95 -181
  162. package/dist/lib/server/separator/index.js +1 -1
  163. package/dist/lib/server/slider/index.js +25 -38
  164. package/dist/lib/server/switch/index.js +13 -23
  165. package/dist/lib/server/tabs/index.js +185 -129
  166. package/dist/lib/server/toast/index.js +49 -66
  167. package/dist/lib/server/toggle/index.js +4 -6
  168. package/dist/lib/server/toggle-group/index.js +9 -7
  169. package/dist/lib/server/toolbar/index.js +62 -79
  170. package/dist/lib/server/tooltip/index.js +28 -37
  171. package/dist/lib/server/use-render/index.js +2 -0
  172. package/dist/lib/server/{useFilteredItems-DvuctLt3.js → useFilteredItems-DCxq20Is.js} +164 -189
  173. package/dist/lib/server/useRender-CryVdCjs.js +16 -0
  174. package/dist/lib/types/accordion/header/AccordionHeader.d.ts +1 -1
  175. package/dist/lib/types/accordion/item/AccordionItem.d.ts +1 -1
  176. package/dist/lib/types/accordion/panel/AccordionPanel.d.ts +1 -1
  177. package/dist/lib/types/accordion/root/AccordionRoot.d.ts +2 -7
  178. package/dist/lib/types/accordion/trigger/AccordionTrigger.d.ts +1 -1
  179. package/dist/lib/types/alert-dialog/trigger/AlertDialogTrigger.d.ts +1 -2
  180. package/dist/lib/types/autocomplete/trigger/AutocompleteTrigger.d.ts +1 -0
  181. package/dist/lib/types/avatar/fallback/AvatarFallback.d.ts +2 -2
  182. package/dist/lib/types/avatar/image/AvatarImage.d.ts +9 -3
  183. package/dist/lib/types/avatar/image/createImageLoadingStatus.d.ts +3 -2
  184. package/dist/lib/types/avatar/root/AvatarRoot.d.ts +1 -1
  185. package/dist/lib/types/button/Button.d.ts +1 -1
  186. package/dist/lib/types/checkbox-group/CheckboxGroupContext.d.ts +4 -1
  187. package/dist/lib/types/collapsible/panel/CollapsiblePanel.d.ts +1 -1
  188. package/dist/lib/types/collapsible/root/CollapsibleRoot.d.ts +1 -1
  189. package/dist/lib/types/collapsible/trigger/CollapsibleTrigger.d.ts +1 -1
  190. package/dist/lib/types/combobox/index.d.ts +2 -0
  191. package/dist/lib/types/combobox/index.parts.d.ts +1 -0
  192. package/dist/lib/types/combobox/items/createItems.d.ts +42 -0
  193. package/dist/lib/types/combobox/root/AriaCombobox.d.ts +4 -0
  194. package/dist/lib/types/combobox/root/ComboboxRoot.d.ts +12 -8
  195. package/dist/lib/types/combobox/root/ComboboxRootContext.d.ts +2 -0
  196. package/dist/lib/types/combobox/trigger/ComboboxTrigger.d.ts +1 -0
  197. package/dist/lib/types/dialog/backdrop/DialogBackdrop.d.ts +1 -1
  198. package/dist/lib/types/dialog/description/DialogDescription.d.ts +1 -1
  199. package/dist/lib/types/dialog/title/DialogTitle.d.ts +1 -1
  200. package/dist/lib/types/dialog/viewport/DialogViewport.d.ts +1 -1
  201. package/dist/lib/types/drawer/backdrop/DrawerBackdrop.d.ts +1 -1
  202. package/dist/lib/types/drawer/content/DrawerContent.d.ts +1 -1
  203. package/dist/lib/types/drawer/indent/DrawerIndent.d.ts +1 -1
  204. package/dist/lib/types/drawer/indent-background/DrawerIndentBackground.d.ts +1 -1
  205. package/dist/lib/types/field/root/FieldRoot.d.ts +1 -1
  206. package/dist/lib/types/field/root/createFieldValidation.d.ts +3 -2
  207. package/dist/lib/types/fieldset/legend/FieldsetLegend.d.ts +1 -1
  208. package/dist/lib/types/fieldset/root/FieldsetRoot.d.ts +1 -1
  209. package/dist/lib/types/index.d.ts +1 -0
  210. package/dist/lib/types/internals/createTransitionStatus.d.ts +1 -1
  211. package/dist/lib/types/internals/form-context/FormContext.d.ts +1 -0
  212. package/dist/lib/types/internals/labelable-provider/LabelableContext.d.ts +1 -0
  213. package/dist/lib/types/internals/labelable-provider/createLabelableId.d.ts +3 -0
  214. package/dist/lib/types/internals/overlay/PopupPortal.d.ts +4 -2
  215. package/dist/lib/types/internals/overlay/createPopupPresence.d.ts +1 -0
  216. package/dist/lib/types/menu/root/MenuRootContext.d.ts +1 -0
  217. package/dist/lib/types/meter/indicator/MeterIndicator.d.ts +1 -1
  218. package/dist/lib/types/meter/label/MeterLabel.d.ts +1 -1
  219. package/dist/lib/types/meter/root/MeterRoot.d.ts +1 -1
  220. package/dist/lib/types/meter/track/MeterTrack.d.ts +1 -1
  221. package/dist/lib/types/meter/value/MeterValue.d.ts +1 -1
  222. package/dist/lib/types/navigation-menu/trigger/NavigationMenuTrigger.d.ts +1 -0
  223. package/dist/lib/types/number-field/root/NumberFieldRootContext.d.ts +1 -0
  224. package/dist/lib/types/popover/arrow/PopoverArrow.d.ts +1 -1
  225. package/dist/lib/types/popover/backdrop/PopoverBackdrop.d.ts +1 -1
  226. package/dist/lib/types/popover/description/PopoverDescription.d.ts +1 -1
  227. package/dist/lib/types/popover/positioner/PopoverPositioner.d.ts +1 -1
  228. package/dist/lib/types/popover/title/PopoverTitle.d.ts +1 -1
  229. package/dist/lib/types/preview-card/arrow/PreviewCardArrow.d.ts +1 -1
  230. package/dist/lib/types/preview-card/backdrop/PreviewCardBackdrop.d.ts +1 -1
  231. package/dist/lib/types/preview-card/positioner/PreviewCardPositioner.d.ts +1 -1
  232. package/dist/lib/types/progress/indicator/ProgressIndicator.d.ts +1 -1
  233. package/dist/lib/types/progress/label/ProgressLabel.d.ts +1 -1
  234. package/dist/lib/types/progress/root/ProgressRoot.d.ts +1 -1
  235. package/dist/lib/types/progress/track/ProgressTrack.d.ts +1 -1
  236. package/dist/lib/types/progress/value/ProgressValue.d.ts +1 -1
  237. package/dist/lib/types/radio/indicator/RadioIndicator.d.ts +2 -2
  238. package/dist/lib/types/scroll-area/content/ScrollAreaContent.d.ts +1 -1
  239. package/dist/lib/types/scroll-area/corner/ScrollAreaCorner.d.ts +1 -1
  240. package/dist/lib/types/scroll-area/root/ScrollAreaRoot.d.ts +1 -1
  241. package/dist/lib/types/scroll-area/scrollbar/ScrollAreaScrollbar.d.ts +2 -1
  242. package/dist/lib/types/scroll-area/thumb/ScrollAreaThumb.d.ts +1 -1
  243. package/dist/lib/types/scroll-area/viewport/ScrollAreaViewport.d.ts +1 -1
  244. package/dist/lib/types/separator/Separator.d.ts +1 -1
  245. package/dist/lib/types/tabs/indicator/prehydrationScript.d.ts +1 -1
  246. package/dist/lib/types/tabs/list/TabsList.d.ts +1 -1
  247. package/dist/lib/types/tabs/panel/TabsPanel.d.ts +1 -1
  248. package/dist/lib/types/tabs/root/TabsRoot.d.ts +1 -1
  249. package/dist/lib/types/tabs/tab/TabsTab.d.ts +1 -1
  250. package/dist/lib/types/toast/createToastManager.d.ts +2 -2
  251. package/dist/lib/types/toast/store/ToastStore.d.ts +1 -1
  252. package/dist/lib/types/toast/useToastManager.d.ts +1 -1
  253. package/dist/lib/types/toggle/Toggle.d.ts +1 -1
  254. package/dist/lib/types/toggle-group/ToggleGroup.d.ts +1 -1
  255. package/dist/lib/types/toolbar/group/ToolbarGroup.d.ts +1 -1
  256. package/dist/lib/types/toolbar/link/ToolbarLink.d.ts +1 -1
  257. package/dist/lib/types/toolbar/root/ToolbarRoot.d.ts +1 -1
  258. package/dist/lib/types/toolbar/separator/ToolbarSeparator.d.ts +1 -1
  259. package/dist/lib/types/tooltip/arrow/TooltipArrow.d.ts +1 -1
  260. package/dist/lib/types/tooltip/positioner/TooltipPositioner.d.ts +1 -1
  261. package/dist/lib/types/types/index.d.ts +7 -3
  262. package/dist/lib/types/use-render/index.d.ts +2 -0
  263. package/dist/lib/types/use-render/useRender.d.ts +10 -0
  264. package/package.json +24 -11
  265. package/dist/lib/client/DialogHandle-DrN2YWCv.js +0 -518
  266. package/dist/lib/client/DialogPopup-ZlqmGfdk.js +0 -136
  267. package/dist/lib/client/FieldControl-Bc-z2og6.js +0 -116
  268. package/dist/lib/client/MenuSubmenuTrigger-QZkQ0F2v.js +0 -1570
  269. package/dist/lib/client/Separator-9DboD_Si.js +0 -25
  270. package/dist/lib/client/TriggerFocusGuards-CQ-JuASy.js +0 -56
  271. package/dist/lib/client/accordion-sOXt9AlG.js +0 -399
  272. package/dist/lib/client/avatar-AF9vyD4q.js +0 -146
  273. package/dist/lib/client/button-DpUi-2g8.js +0 -82
  274. package/dist/lib/client/checkbox-BbAwOptH.js +0 -441
  275. package/dist/lib/client/checkbox-group-CSSp_805.js +0 -128
  276. package/dist/lib/client/collapsible-BIbje_ub.js +0 -232
  277. package/dist/lib/client/combobox-8O-vgTLL.js +0 -352
  278. package/dist/lib/client/context-menu-BTMkXtrs.js +0 -217
  279. package/dist/lib/client/createFocusInteraction-D4w1-235.js +0 -50
  280. package/dist/lib/client/drawer-Ce2cChLt.js +0 -1550
  281. package/dist/lib/client/field-C-o7jzKW.js +0 -469
  282. package/dist/lib/client/fieldset-BQTAWv2L.js +0 -65
  283. package/dist/lib/client/form-BINBiW5L.js +0 -106
  284. package/dist/lib/client/menu-DeMT08oD.js +0 -326
  285. package/dist/lib/client/menubar-C4aomSYv.js +0 -185
  286. package/dist/lib/client/meter-xSU37Q0m.js +0 -171
  287. package/dist/lib/client/navigation-menu-ZILQmdn6.js +0 -1083
  288. package/dist/lib/client/number-field-B8CsTb_8.js +0 -1035
  289. package/dist/lib/client/otp-field-DBkMcnog.js +0 -582
  290. package/dist/lib/client/popover-CQwyp-fs.js +0 -929
  291. package/dist/lib/client/popupStateMapping-C9eZl19i.js +0 -367
  292. package/dist/lib/client/preview-card-D_2Q8lpC.js +0 -625
  293. package/dist/lib/client/progress-D7r0xAC9.js +0 -188
  294. package/dist/lib/client/radio-CzGQ81z1.js +0 -299
  295. package/dist/lib/client/radio-group-DpHlBKA6.js +0 -193
  296. package/dist/lib/client/runOnceAnimationsFinish-15EM-Z4l.js +0 -48
  297. package/dist/lib/client/scroll-area-CffM4U0R.js +0 -701
  298. package/dist/lib/client/select-IFhiEg73.js +0 -1940
  299. package/dist/lib/client/slider-BCagYmGp.js +0 -921
  300. package/dist/lib/client/switch-RIJeDnvS.js +0 -308
  301. package/dist/lib/client/tabs-fOAKs7r3.js +0 -696
  302. package/dist/lib/client/toast-D2P8UqUs.js +0 -1108
  303. package/dist/lib/client/toggle-group-0Aue0owJ.js +0 -129
  304. package/dist/lib/client/toggle-momVEIBL.js +0 -138
  305. package/dist/lib/client/toolbar-Du22aKCv.js +0 -492
  306. package/dist/lib/client/tooltip-CyK61fl1.js +0 -844
  307. package/dist/lib/client/useFilteredItems-DTekHz39.js +0 -2223
  308. package/dist/lib/client/withoutComponentBinding-CcCW7fSc.js +0 -13
  309. package/dist/lib/server/TriggerFocusGuards-sbGwf45f.js +0 -63
  310. package/dist/lib/server/withoutComponentBinding-BHaWr5kU.js +0 -20
  311. package/dist/lib/types/internals/withoutComponentBinding.d.ts +0 -7
@@ -0,0 +1,692 @@
1
+ import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
2
+ import { t } from "./useRender-CxZ8PI-g.js";
3
+ import { getStateAttributesProps as n } from "./internals/getStateAttributesProps.js";
4
+ import { C as r, p as i, s as a, w as o } from "./reasons-Co5CzjKq.js";
5
+ import { n as s, t as c } from "./resolveStyle-XcgAuaKR.js";
6
+ import { createChangeEventDetails as l } from "./internals/createBaseUIEventDetails.js";
7
+ import { transitionStatusMapping as u } from "./internals/stateAttributesMapping.js";
8
+ import { composeEventHandlers as d } from "./internals/composeEventHandlers.js";
9
+ import { t as f } from "./runOnceAnimationsFinish-CFADb4CN.js";
10
+ import { t as p } from "./createTransitionStatus-BL_cPSEA.js";
11
+ import { n as m } from "./DirectionContext-BwMabICS.js";
12
+ import { n as h } from "./CSPContext-faVzToiT.js";
13
+ import { mergeStyles as g } from "./internals/mergeStyles.js";
14
+ import { createComponent as _, getNextElement as v, isServer as y, memo as b, mergeProps as x, runHydrationEvents as S, spread as C, template as w } from "@solidjs/web";
15
+ import { Show as T, createContext as E, createEffect as D, createMemo as O, createSignal as k, createUniqueId as A, omit as ee, onCleanup as te, onSettled as j, sharedConfig as M, untrack as N, useContext as P } from "solid-js";
16
+ //#region src/tabs/root/TabsRootContext.ts
17
+ var F = Symbol("TabsRootContext"), I = E(F);
18
+ function L() {
19
+ let e = P(I);
20
+ if (e === F) throw Error("Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>.");
21
+ return e;
22
+ }
23
+ //#endregion
24
+ //#region src/tabs/root/TabsRootDataAttributes.ts
25
+ var R = /* @__PURE__ */ function(e) {
26
+ return e.orientation = "data-orientation", e.activationDirection = "data-activation-direction", e;
27
+ }({}), z = {
28
+ orientation: (e) => ({ [R.orientation]: e }),
29
+ tabActivationDirection: (e) => ({ [R.activationDirection]: e })
30
+ }, B = /* @__PURE__ */ w("<div>");
31
+ function V(e) {
32
+ let o = e, u = e, d = N(() => o.value !== void 0), f = N(() => o.defaultValue !== void 0), p = N(() => o.defaultValue), m = N(() => o.defaultValue === void 0 ? 0 : o.defaultValue), [h, g] = k(() => m), [y, b] = k("none"), [w, T] = k(0), [E, A] = k(0), j = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map(), P = 0, F = 0, L = N(() => d ? o.value : h()), R = !1, V = !f, W = f, re = !1, ie, G = !1, K = !1, q = !1, ae = !1, J = !1, oe = ee(u, "render", "class", "defaultValue", "onValueChange", "orientation", "ref", "style", "value"), Y = O(() => d ? o.value : h()), X = O(() => o.orientation ?? "horizontal"), Z = O(() => ({
33
+ orientation: X(),
34
+ tabActivationDirection: y()
35
+ })), se = O(() => s(e.class, Z())), ce = O(() => c(e.style, Z())), le = O(() => n(Z(), z));
36
+ function ue() {
37
+ G || (G = !0, queueMicrotask(() => {
38
+ G = !1, q || T((e) => e + 1);
39
+ }));
40
+ }
41
+ function Q() {
42
+ K || (K = !0, queueMicrotask(() => {
43
+ K = !1, q || A((e) => e + 1);
44
+ }));
45
+ }
46
+ function de(e) {
47
+ return e.order = P, P += 1, j.set(e.token, e), ue(), () => {
48
+ j.delete(e.token), ue();
49
+ };
50
+ }
51
+ function fe(e) {
52
+ return e.order = F, F += 1, M.set(e.token, e), Q(), () => {
53
+ M.delete(e.token), Q();
54
+ };
55
+ }
56
+ function pe(e) {
57
+ M.has(e.token) && (e.order = F, F += 1, Q());
58
+ }
59
+ function $() {
60
+ return Array.from(j.values()).filter((e) => {
61
+ let t = e.element();
62
+ return t && t.isConnected;
63
+ }).sort(H);
64
+ }
65
+ function me() {
66
+ return Array.from(M.values()).filter((e) => {
67
+ let t = e.element();
68
+ return e.rendered() && t && t.isConnected;
69
+ }).sort(H);
70
+ }
71
+ function he(e) {
72
+ return w(), $().find((t) => t.value() === e)?.element();
73
+ }
74
+ function ge(e) {
75
+ return w(), $().find((t) => t.value() === e)?.id();
76
+ }
77
+ function _e(e) {
78
+ E();
79
+ let t;
80
+ for (let n of M.values()) {
81
+ let r = n.element();
82
+ n.rendered() && r?.isConnected && n.value() === e && (!t || n.order > t.order) && (t = n);
83
+ }
84
+ return t?.id();
85
+ }
86
+ function ve(e, t) {
87
+ let n = U(Y(), e, X(), $());
88
+ return t.activationDirection = n, o.onValueChange?.(e, t), !t.isCanceled && (d || (L = e, R = !1, b(n), g(() => e)), !0);
89
+ }
90
+ function ye(e, t) {
91
+ L = e, R = !1, b("none"), g(() => e), o.onValueChange?.(e, l(t, void 0, void 0, { activationDirection: "none" })), V = !1;
92
+ }
93
+ let be = {
94
+ value: Y,
95
+ orientation: X,
96
+ tabActivationDirection: y,
97
+ state: Z,
98
+ tabsVersion: w,
99
+ panelsVersion: E,
100
+ getOrderedTabs: $,
101
+ getTabIndex(e) {
102
+ return w(), $().indexOf(e);
103
+ },
104
+ getPanelIndex(e) {
105
+ return E(), me().indexOf(e);
106
+ },
107
+ getTabElementBySelectedValue: he,
108
+ getTabIdByPanelValue: ge,
109
+ getTabPanelIdByValue: _e,
110
+ claimPanel: pe,
111
+ notifyTabChange: ue,
112
+ notifyPanelChange: Q,
113
+ onValueChange: ve,
114
+ registerTab: de,
115
+ registerPanel: fe
116
+ };
117
+ D(() => {
118
+ w();
119
+ let e = Y(), t = X(), n = $();
120
+ return {
121
+ currentValue: e,
122
+ direction: L === e && !R ? void 0 : U(L, e, t, n),
123
+ incomplete: L != null && e != null && n.every((t) => t.value() !== e)
124
+ };
125
+ }, (e) => {
126
+ e.direction !== void 0 && (R = e.incomplete, b(e.direction), R || (L = e.currentValue));
127
+ }), D(() => (w(), {
128
+ currentValue: Y(),
129
+ registrations: $().map((e) => ({
130
+ registration: e,
131
+ disabled: e.disabled(),
132
+ element: e.element(),
133
+ value: e.value()
134
+ }))
135
+ }), (e) => {
136
+ if (d) return;
137
+ let t = e.registrations;
138
+ if (t.length === 0) {
139
+ re && e.currentValue !== null && !ie?.isConnected && ye(null, r);
140
+ return;
141
+ }
142
+ re = !0, ie = t[0]?.element;
143
+ let n = t.find((t) => t.value === e.currentValue), s = t.find((e) => !e.disabled), c = n?.disabled === !0, u = n == null && e.currentValue !== null;
144
+ if (!c && e.currentValue === m && (W = !1), !(W && c && e.currentValue === m)) {
145
+ if (c || u) {
146
+ let t = s?.value ?? null;
147
+ if (e.currentValue === t) {
148
+ V = !1;
149
+ return;
150
+ }
151
+ ye(t, V ? i : c ? a : r);
152
+ return;
153
+ }
154
+ V && n && (o.onValueChange?.(e.currentValue, l(i, void 0, void 0, { activationDirection: "none" })), V = !1);
155
+ }
156
+ }), D(() => ({
157
+ defaultValue: o.defaultValue,
158
+ suppliedControlled: o.value !== void 0
159
+ }), (e) => {
160
+ ne() && (!ae && e.suppliedControlled !== d && (ae = !0, console.error(`Base UI: A Tabs component changed from ${d ? "controlled" : "uncontrolled"} to ${d ? "uncontrolled" : "controlled"}.`)), !d && !J && e.defaultValue !== p && (J = !0, console.error("Base UI: A Tabs component changed its defaultValue after initialization.")));
161
+ }), te(() => {
162
+ q = !0;
163
+ });
164
+ let xe = t(e, () => Z(), (e) => (() => {
165
+ var t = v(B);
166
+ return C(t, e, !1), S(), t;
167
+ })());
168
+ return _(I, {
169
+ value: be,
170
+ get children() {
171
+ return _(xe, x({
172
+ ref: [o.ref],
173
+ get class() {
174
+ return se();
175
+ },
176
+ get style() {
177
+ return ce();
178
+ }
179
+ }, le, oe));
180
+ }
181
+ });
182
+ }
183
+ function H(e, t) {
184
+ let n = e.element(), r = t.element();
185
+ if (n && r && n !== r) {
186
+ let e = n.compareDocumentPosition(r);
187
+ if ((e & Node.DOCUMENT_POSITION_DISCONNECTED) === 0) {
188
+ if (e & Node.DOCUMENT_POSITION_FOLLOWING) return -1;
189
+ if (e & Node.DOCUMENT_POSITION_PRECEDING) return 1;
190
+ }
191
+ }
192
+ return e.order - t.order;
193
+ }
194
+ function U(e, t, n, r) {
195
+ if (e == null || t == null) return "none";
196
+ let i = r.find((t) => t.value() === e)?.element(), a = r.find((e) => e.value() === t)?.element(), o = n === "horizontal" ? "left" : "up", s = n === "horizontal" ? "right" : "down";
197
+ if (!i || !a) return i !== a && (typeof e == "number" || typeof e == "string") && typeof e == typeof t ? t > e ? s : o : "none";
198
+ let c = n === "horizontal" ? "left" : "top", l = i.getBoundingClientRect()[c], u = a.getBoundingClientRect()[c];
199
+ return u < l ? o : u > l ? s : "none";
200
+ }
201
+ function ne() {
202
+ return !1;
203
+ }
204
+ //#endregion
205
+ //#region src/tabs/list/TabsListContext.ts
206
+ var W = Symbol("TabsListContext"), re = E(W);
207
+ function ie() {
208
+ let e = P(re);
209
+ if (e === W) throw Error("Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>.");
210
+ return e;
211
+ }
212
+ //#endregion
213
+ //#region src/tabs/list/TabsList.tsx
214
+ var G = /* @__PURE__ */ w("<div>");
215
+ function K(e) {
216
+ let r = L(), i = m(), a = e, o = e, [l, u] = k(), [f, p] = k(), h = /* @__PURE__ */ new Set(), g = !1, y = 0, b, w = !1, T = !1, E = ee(o, "activateOnFocus", "render", "class", "loopFocus", "onKeyDown", "ref", "style"), A = O(() => a.activateOnFocus ?? !1), te = O(() => a.loopFocus ?? !0), j = O(() => r.state()), M = O(() => s(e.class, j())), P = O(() => c(e.style, j())), F = O(() => n(j(), z));
217
+ function I() {
218
+ w = !0, !T && (T = !0, queueMicrotask(() => {
219
+ T = !1, w = !1;
220
+ }));
221
+ }
222
+ function R(e) {
223
+ y = N(r.getOrderedTabs).indexOf(e), b = e.token, p(e.token);
224
+ }
225
+ function B(e) {
226
+ return h.add(e), () => {
227
+ h.delete(e);
228
+ };
229
+ }
230
+ function V() {
231
+ for (let e of h) e();
232
+ }
233
+ function H(e) {
234
+ if (e.defaultPrevented || e.shiftKey || e.ctrlKey || e.altKey || e.metaKey) return;
235
+ let t = r.getOrderedTabs();
236
+ if (t.length < 2 && e.key !== "Home" && e.key !== "End") return;
237
+ let n = e.composedPath()[0], a = t.findIndex((e) => {
238
+ let t = e.element();
239
+ return t && n instanceof Node && t.contains(n);
240
+ });
241
+ if (a < 0) return;
242
+ let o;
243
+ if (e.key === "Home") o = J(t, 1);
244
+ else if (e.key === "End") o = J(t, -1);
245
+ else {
246
+ let n = q(e.key, r.orientation(), i());
247
+ if (n === 0) return;
248
+ o = ae(t, a, n, te());
249
+ }
250
+ if (o === void 0 || o === a) return;
251
+ let s = t[o], c = s?.element();
252
+ !s || !c || (e.preventDefault(), e.stopPropagation(), I(), R(s), Y(c, r.orientation()), queueMicrotask(() => s.element()?.focus()));
253
+ }
254
+ let U = d(() => a.onKeyDown, () => H), ne = {
255
+ activateOnFocus: A,
256
+ highlightedTab: f,
257
+ listElement: l,
258
+ markNavigating: I,
259
+ registerIndicatorUpdateListener: B,
260
+ setHighlightedTab: R
261
+ };
262
+ D(() => (r.tabsVersion(), {
263
+ activeValue: r.value(),
264
+ element: l(),
265
+ tabs: r.getOrderedTabs().map((e) => ({
266
+ registration: e,
267
+ element: e.element(),
268
+ disabled: e.disabled(),
269
+ value: e.value()
270
+ }))
271
+ }), (e) => {
272
+ let t = e.tabs.find((t) => t.value === e.activeValue), n = (e) => {
273
+ let t = e?.element;
274
+ return t && !oe(t) && !t.hidden && t.ownerDocument.defaultView?.getComputedStyle(t).display !== "none";
275
+ };
276
+ if (!g && e.tabs.length > 0) {
277
+ g = !0, R((n(t) ? t : e.tabs.find(n) ?? e.tabs[0]).registration);
278
+ return;
279
+ }
280
+ let r = e.tabs.findIndex((e) => e.registration.token === b);
281
+ if (r === -1 && e.tabs.length > 0) {
282
+ let r = e.tabs[y];
283
+ R((n(r) ? r : n(t) ? t : e.tabs.find(n) ?? e.tabs[0]).registration);
284
+ } else r !== -1 && (y = r);
285
+ if (!t || t.disabled || w) return;
286
+ let i = e.element ? X(e.element.ownerDocument) : null;
287
+ e.element && i && Z(e.element, i) || R(t.registration);
288
+ }), D(() => (r.tabsVersion(), {
289
+ element: l(),
290
+ tabs: r.getOrderedTabs().flatMap((e) => e.element() ?? [])
291
+ }), (e) => {
292
+ let t = e.element;
293
+ if (!t) return;
294
+ let n = t.ownerDocument.defaultView?.ResizeObserver;
295
+ if (!n) return;
296
+ let r = new n(V);
297
+ r.observe(t);
298
+ for (let t of e.tabs) r.observe(t);
299
+ return () => r.disconnect();
300
+ }), D(l, (e) => {
301
+ if (!e) return;
302
+ let t = e.ownerDocument.defaultView?.MutationObserver;
303
+ if (!t) return;
304
+ let n = new t(() => r.notifyTabChange());
305
+ return n.observe(e, {
306
+ childList: !0,
307
+ subtree: !0
308
+ }), () => n.disconnect();
309
+ }), D(() => ({
310
+ activeValue: r.value(),
311
+ version: r.tabsVersion()
312
+ }), () => V());
313
+ let W = t(e, () => j(), (e) => (() => {
314
+ var t = v(G);
315
+ return C(t, e, !1), S(), t;
316
+ })());
317
+ return _(re, {
318
+ value: ne,
319
+ get children() {
320
+ return _(W, x({
321
+ ref: [((e) => u(e)), a.ref],
322
+ get class() {
323
+ return M();
324
+ },
325
+ get style() {
326
+ return P();
327
+ },
328
+ role: "tablist",
329
+ get "aria-orientation"() {
330
+ return r.orientation() === "vertical" ? "vertical" : void 0;
331
+ },
332
+ onKeyDown: U
333
+ }, F, E));
334
+ }
335
+ });
336
+ }
337
+ function q(e, t, n) {
338
+ return t === "vertical" ? e === "ArrowUp" ? -1 : +(e === "ArrowDown") : e === "ArrowLeft" ? n === "rtl" ? 1 : -1 : e === "ArrowRight" ? n === "rtl" ? -1 : 1 : 0;
339
+ }
340
+ function ae(e, t, n, r) {
341
+ let i = t;
342
+ for (let t = 0; t < e.length; t += 1) {
343
+ if (i += n, i < 0 || i >= e.length) {
344
+ if (!r) return;
345
+ i = (i + e.length) % e.length;
346
+ }
347
+ let t = e[i]?.element();
348
+ if (t && !oe(t) && !t.hidden) return i;
349
+ }
350
+ }
351
+ function J(e, t) {
352
+ let n = t === 1 ? 0 : e.length - 1;
353
+ for (; n >= 0 && n < e.length;) {
354
+ let r = e[n]?.element();
355
+ if (r && !oe(r) && !r.hidden) return n;
356
+ n += t;
357
+ }
358
+ }
359
+ function oe(e) {
360
+ try {
361
+ return e.matches(":disabled");
362
+ } catch {
363
+ return !1;
364
+ }
365
+ }
366
+ function Y(e, t) {
367
+ e.scrollIntoView?.({
368
+ block: t === "vertical" ? "nearest" : "center",
369
+ inline: t === "horizontal" ? "nearest" : "center"
370
+ });
371
+ }
372
+ function X(e) {
373
+ let t = e.activeElement;
374
+ for (; t?.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
375
+ return t;
376
+ }
377
+ function Z(e, t) {
378
+ if (e.contains(t)) return !0;
379
+ let n = t;
380
+ for (; n;) {
381
+ if (n === e) return !0;
382
+ n = n.parentNode ?? (n instanceof ShadowRoot ? n.host : null);
383
+ }
384
+ return !1;
385
+ }
386
+ //#endregion
387
+ //#region src/tabs/tab/TabsTabDataAttributes.ts
388
+ var se = /* @__PURE__ */ function(e) {
389
+ return e.orientation = "data-orientation", e.activationDirection = "data-activation-direction", e.active = "data-active", e.disabled = "data-disabled", e;
390
+ }({}), ce = /* @__PURE__ */ w("<button>"), le = {
391
+ ...z,
392
+ active: (e) => e ? { [se.active]: "" } : null,
393
+ disabled: (e) => e ? { [se.disabled]: "" } : null
394
+ };
395
+ function ue(e) {
396
+ let r = L(), i = ie(), a = e, u = e, f = `base-ui-${A()}`, p = Symbol("TabsTab"), [m, h] = k(), g = O(() => a.id ?? f), y = O(() => a.disabled ?? !1), b = O(() => a.nativeButton ?? !0), w = O(() => a.value === r.value()), T = {
397
+ token: p,
398
+ order: 0,
399
+ element: m,
400
+ id: g,
401
+ value: () => a.value,
402
+ disabled: y
403
+ }, E = r.registerTab(T), j = ee(u, "render", "class", "disabled", "id", "nativeButton", "onClick", "onFocus", "onKeyDown", "onPointerDown", "ref", "style", "value"), M = O(() => ({
404
+ disabled: y(),
405
+ active: w(),
406
+ orientation: r.orientation(),
407
+ tabActivationDirection: r.tabActivationDirection()
408
+ })), P = O(() => s(e.class, M())), F = O(() => c(e.style, M())), I = O(() => n(M(), le)), R = O(() => i.highlightedTab() === p ? 0 : -1), z = O(() => r.getTabPanelIdByValue(a.value)), B = !1, V = !1, H;
409
+ function U(e) {
410
+ r.onValueChange(a.value, l(o, e, void 0, { activationDirection: "none" }));
411
+ }
412
+ function ne(e) {
413
+ y() && (e.preventDefault(), e.preventBaseUIHandler());
414
+ }
415
+ function W(e) {
416
+ w() || y() || e.button !== 0 || U(e);
417
+ }
418
+ function re(e) {
419
+ i.setHighlightedTab(T), !w() && !y() && i.activateOnFocus() && (!B || V) && U(e);
420
+ }
421
+ function G(e) {
422
+ if (w() || y()) return;
423
+ B = !0, V = e.button === 0, H?.();
424
+ let t = e.currentTarget.ownerDocument, n = () => {
425
+ B = !1, V = !1, H?.(), H = void 0;
426
+ };
427
+ t.addEventListener("pointerup", n), t.addEventListener("pointercancel", n), H = () => {
428
+ t.removeEventListener("pointerup", n), t.removeEventListener("pointercancel", n);
429
+ };
430
+ }
431
+ function K(e) {
432
+ e.target !== e.currentTarget || w() || y() || i.activateOnFocus() || e.key !== "Enter" && e.key !== " " || (e.preventDefault(), U(e));
433
+ }
434
+ let q = d(() => N(() => y() ? ne : void 0), () => a.onClick, () => W), ae = d(() => a.onFocus, () => re), J = d(() => a.onKeyDown, () => K), oe = d(() => a.onPointerDown, () => G);
435
+ D(() => ({
436
+ disabled: y(),
437
+ element: m(),
438
+ id: g(),
439
+ value: a.value
440
+ }), () => r.notifyTabChange()), te(() => {
441
+ H?.(), E();
442
+ });
443
+ let Y = t(e, () => M(), (e) => (() => {
444
+ var t = v(ce);
445
+ return C(t, e, !1), S(), t;
446
+ })());
447
+ return _(Y, x({
448
+ ref: [((e) => h(e)), a.ref],
449
+ get id() {
450
+ return g();
451
+ },
452
+ get class() {
453
+ return P();
454
+ },
455
+ get style() {
456
+ return F();
457
+ },
458
+ get type() {
459
+ return b() ? "button" : void 0;
460
+ },
461
+ role: "tab",
462
+ get tabIndex() {
463
+ return R();
464
+ },
465
+ get "aria-controls"() {
466
+ return z();
467
+ },
468
+ get "aria-selected"() {
469
+ return w() ? "true" : "false";
470
+ },
471
+ get "aria-disabled"() {
472
+ return y() ? "true" : void 0;
473
+ },
474
+ get "data-composite-item-active"() {
475
+ return w() ? "" : void 0;
476
+ },
477
+ onClick: q,
478
+ onFocus: ae,
479
+ onKeyDown: J,
480
+ onPointerDown: oe
481
+ }, I, j));
482
+ }
483
+ //#endregion
484
+ //#region src/tabs/indicator/TabsIndicatorCssVars.ts
485
+ var Q = /* @__PURE__ */ function(e) {
486
+ return e.activeTabLeft = "--active-tab-left", e.activeTabRight = "--active-tab-right", e.activeTabTop = "--active-tab-top", e.activeTabBottom = "--active-tab-bottom", e.activeTabWidth = "--active-tab-width", e.activeTabHeight = "--active-tab-height", e;
487
+ }({}), de = /* @__PURE__ */ w("<span>"), fe = /* @__PURE__ */ w("<script>"), pe = {
488
+ ...z,
489
+ activeTabPosition: () => null,
490
+ activeTabSize: () => null
491
+ };
492
+ function $(e) {
493
+ let r = L(), i = ie(), a = h(), o = e, l = e, [u, d] = k(null), [f, p] = k(0), [m, w] = k(!!(y || M.hydrating)), E = { innerHTML: "" }, A = ee(l, "render", "class", "ref", "renderBeforeHydration", "style"), N = O(() => ({
494
+ ...r.state(),
495
+ activeTabPosition: u()?.position ?? null,
496
+ activeTabSize: u()?.size ?? null
497
+ })), P = O(() => s(e.class, N())), F = O(() => {
498
+ let e = u();
499
+ if (e) return {
500
+ [Q.activeTabLeft]: `${e.position.left}px`,
501
+ [Q.activeTabRight]: `${e.position.right}px`,
502
+ [Q.activeTabTop]: `${e.position.top}px`,
503
+ [Q.activeTabBottom]: `${e.position.bottom}px`,
504
+ [Q.activeTabWidth]: `${e.size.width}px`,
505
+ [Q.activeTabHeight]: `${e.size.height}px`
506
+ };
507
+ }), I = O(() => g(F(), c(e.style, N()))), R = O(() => {
508
+ let e = u();
509
+ return !e || e.size.width <= 0 || e.size.height <= 0;
510
+ }), z = O(() => n(N(), pe));
511
+ function B(e, t) {
512
+ if (!e || t == null) return null;
513
+ let n = r.getTabElementBySelectedValue(t);
514
+ if (!n) return null;
515
+ let i = _e(n), a = _e(e), o = n.getBoundingClientRect(), s = e.getBoundingClientRect(), c = a.width > 0 ? s.width / a.width : 1, l = a.height > 0 ? s.height / a.height : 1, { left: u, top: d } = me(n, e), f = (o.left - s.left) / c + e.scrollLeft - e.clientLeft, p = (o.top - s.top) / l + e.scrollTop - e.clientTop, m = ge(n);
516
+ return Math.abs(f - m.x - u) <= 2 && Math.abs(p - m.y - d) <= 2 && (u = f, d = p), {
517
+ position: {
518
+ left: u,
519
+ right: e.scrollWidth - u - i.width,
520
+ top: d,
521
+ bottom: e.scrollHeight - d - i.height
522
+ },
523
+ size: i
524
+ };
525
+ }
526
+ let V = i.registerIndicatorUpdateListener(() => {
527
+ p((e) => e + 1);
528
+ });
529
+ D(() => (f(), r.tabsVersion(), B(i.listElement(), r.value())), (e) => {
530
+ d(e);
531
+ }), j(() => {
532
+ w(!1);
533
+ }), te(V);
534
+ let H = t(e, () => N(), (e) => (() => {
535
+ var t = v(de);
536
+ return C(t, e, !1), S(), t;
537
+ })());
538
+ return _(T, {
539
+ get when() {
540
+ return r.value() != null;
541
+ },
542
+ get children() {
543
+ return [_(H, x({
544
+ ref: [o.ref],
545
+ get class() {
546
+ return P();
547
+ },
548
+ get style() {
549
+ return I();
550
+ },
551
+ role: "presentation",
552
+ get hidden() {
553
+ return R();
554
+ }
555
+ }, z, A)), b(() => b(() => !!((o.renderBeforeHydration ?? !1) && m()))() ? (() => {
556
+ var e = v(fe);
557
+ return C(e, x({ get nonce() {
558
+ return a.nonce();
559
+ } }, E), !1), S(), e;
560
+ })() : (o.renderBeforeHydration ?? !1) && m())];
561
+ }
562
+ });
563
+ }
564
+ function me(e, t) {
565
+ let n = he(e), r = he(t), i = n.left - r.left - t.clientLeft, a = n.top - r.top - t.clientTop, o = e.assignedSlot ?? e.parentNode;
566
+ for (; o && o !== t;) o.nodeType === 1 && (i -= o.scrollLeft || 0, a -= o.scrollTop || 0), o = o.assignedSlot ?? o.parentNode ?? o.host;
567
+ return {
568
+ left: i,
569
+ top: a
570
+ };
571
+ }
572
+ function he(e) {
573
+ let t = 0, n = 0, r = e;
574
+ for (; r;) {
575
+ t += r.offsetLeft, n += r.offsetTop;
576
+ let e = r.offsetParent;
577
+ e && (t += e.clientLeft, n += e.clientTop), r = e;
578
+ }
579
+ return {
580
+ left: t,
581
+ top: n
582
+ };
583
+ }
584
+ function ge(e) {
585
+ let t = e.ownerDocument.defaultView.getComputedStyle(e), n = t.transform.match(/matrix(?:3d)?\(([^)]+)\)/)?.[1]?.split(",").map(Number), r = n?.[n.length === 16 ? 12 : 4] ?? 0, i = n?.[n.length === 16 ? 13 : 5] ?? 0, a = t.translate?.split(" ") ?? [];
586
+ for (let t = 0; t < 2; t += 1) {
587
+ let n = a[t] ?? "", o = Number.parseFloat(n), s = Number.isFinite(o) ? o * (n.endsWith("%") ? (t === 0 ? e.offsetWidth : e.offsetHeight) / 100 : 1) : 0;
588
+ t === 0 ? r += s : i += s;
589
+ }
590
+ return {
591
+ x: r,
592
+ y: i
593
+ };
594
+ }
595
+ function _e(e) {
596
+ let t = e.ownerDocument.defaultView?.getComputedStyle(e), n = Number.parseFloat(t?.width ?? "") || 0, r = Number.parseFloat(t?.height ?? "") || 0;
597
+ return (Math.round(n) !== e.offsetWidth || Math.round(r) !== e.offsetHeight) && (n = e.offsetWidth, r = e.offsetHeight), {
598
+ width: n,
599
+ height: r
600
+ };
601
+ }
602
+ //#endregion
603
+ //#region src/tabs/panel/TabsPanelDataAttributes.ts
604
+ var ve = /* @__PURE__ */ function(e) {
605
+ return e.orientation = "data-orientation", e.activationDirection = "data-activation-direction", e.hidden = "data-hidden", e.index = "data-index", e;
606
+ }({}), ye = /* @__PURE__ */ w("<div>"), be = {
607
+ ...z,
608
+ ...u,
609
+ hidden: (e) => e ? { [ve.hidden]: "" } : null
610
+ };
611
+ function xe(e) {
612
+ let r = L(), i = e, a = e, o = `base-ui-${A()}`, l = Symbol("TabsPanel"), [u, d] = k(), m = O(() => i.id ?? o), h = O(() => i.value === r.value()), g = p(() => h()), y = O(() => !g.mounted()), b = O(() => (i.keepMounted ?? !1) || g.mounted()), w = {
613
+ token: l,
614
+ order: 0,
615
+ element: u,
616
+ id: m,
617
+ value: () => i.value,
618
+ rendered: b
619
+ }, E = r.registerPanel(w), j = ee(a, "render", "class", "id", "keepMounted", "ref", "style", "value"), M = O(() => ({
620
+ ...r.state(),
621
+ hidden: y(),
622
+ transitionStatus: g.transitionStatus()
623
+ })), P = O(() => b() ? s(e.class, M()) : void 0), F = O(() => b() ? c(e.style, M()) : void 0), I = O(() => n(M(), be)), R = O(() => r.getPanelIndex(w)), z = O(() => r.getTabIdByPanelValue(i.value)), B = N(h);
624
+ D(() => ({
625
+ element: u(),
626
+ open: h(),
627
+ status: g.transitionStatus()
628
+ }), (e) => {
629
+ if (B = e.open, e.open || e.status !== "ending" || !e.element) return;
630
+ let t = new AbortController();
631
+ return f(e.element, () => {
632
+ B || g.setMounted(!1);
633
+ }, t.signal), () => t.abort();
634
+ }), D(() => ({
635
+ element: u(),
636
+ id: m(),
637
+ rendered: b(),
638
+ value: i.value
639
+ }), (e) => {
640
+ e.rendered && e.element ? r.claimPanel(w) : r.notifyPanelChange();
641
+ }), te(() => E());
642
+ let V = t(e, () => M(), (e) => (() => {
643
+ var t = v(ye);
644
+ return C(t, e, !1), S(), t;
645
+ })());
646
+ return _(T, {
647
+ get when() {
648
+ return b();
649
+ },
650
+ get children() {
651
+ return _(V, x({
652
+ ref: [((e) => d(e)), i.ref],
653
+ get id() {
654
+ return m();
655
+ },
656
+ get class() {
657
+ return P();
658
+ },
659
+ get style() {
660
+ return F();
661
+ },
662
+ role: "tabpanel",
663
+ get tabIndex() {
664
+ return h() ? 0 : -1;
665
+ },
666
+ get "aria-labelledby"() {
667
+ return z();
668
+ },
669
+ get hidden() {
670
+ return y();
671
+ },
672
+ get inert() {
673
+ return !h() || void 0;
674
+ },
675
+ get "data-index"() {
676
+ return R();
677
+ }
678
+ }, I, j));
679
+ }
680
+ });
681
+ }
682
+ //#endregion
683
+ //#region src/tabs/index.parts.ts
684
+ var Se = /* @__PURE__ */ e({
685
+ Indicator: () => $,
686
+ List: () => K,
687
+ Panel: () => xe,
688
+ Root: () => V,
689
+ Tab: () => ue
690
+ });
691
+ //#endregion
692
+ export { Se as t };
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "../toast-D2P8UqUs.js";
1
+ import { n as e, r as t, t as n } from "../toast-7LdqZWOs.js";
2
2
  export { t as Toast, n as createToastManager, e as useToastManager };