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,1118 @@
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 { n as r, t as i } from "./resolveStyle-XcgAuaKR.js";
5
+ import { transitionStatusMapping as a } from "./internals/stateAttributesMapping.js";
6
+ import { composeEventHandlers as o } from "./internals/composeEventHandlers.js";
7
+ import { t as s } from "./runOnceAnimationsFinish-CFADb4CN.js";
8
+ import { a as c, m as l, n as u, p as d, r as f, t as p } from "./dom-BEAeQ9Eb.js";
9
+ import { t as m } from "./createAnchorPositioning-D96gu-Dz.js";
10
+ import { _ as h, g, n as _, o as v } from "./popupStateMapping-C6jQ_LKo.js";
11
+ import { t as ee } from "./setRef-fXF6OIo3.js";
12
+ import { a as y, i as b, n as x, r as S, t as te } from "./buttonSemantics-paljfpOX.js";
13
+ import { n as C } from "./DirectionContext-BwMabICS.js";
14
+ import { a as ne, i as w, n as T, t as re } from "./constants-cOVxAoxB.js";
15
+ import { createComponent as E, effect as ie, getNextElement as D, insert as O, memo as ae, mergeProps as k, runHydrationEvents as A, spread as j, style as oe, template as M } from "@solidjs/web";
16
+ import { For as se, Show as N, children as P, createContext as F, createEffect as I, createMemo as L, createSignal as R, createUniqueId as z, flush as ce, omit as B, onCleanup as le, untrack as V, useContext as H } from "solid-js";
17
+ //#region src/toast/utils/focusVisible.ts
18
+ function U(e) {
19
+ if (!e) return !0;
20
+ try {
21
+ return e.matches(":focus-visible");
22
+ } catch {
23
+ return !0;
24
+ }
25
+ }
26
+ //#endregion
27
+ //#region src/toast/utils/generateToastId.ts
28
+ var W = 0;
29
+ function G(e = "toast") {
30
+ return W += 1, `${e}-${Math.random().toString(36).slice(2, 6)}-${W}`;
31
+ }
32
+ //#endregion
33
+ //#region src/toast/utils/resolvePromiseOptions.ts
34
+ function K(e, t) {
35
+ if (typeof e == "string") return { description: e };
36
+ if (typeof e == "function") {
37
+ let n = e(t);
38
+ return typeof n == "string" ? { description: n } : n;
39
+ }
40
+ return e;
41
+ }
42
+ //#endregion
43
+ //#region src/toast/store/ToastStore.ts
44
+ function q(e) {
45
+ let t = /* @__PURE__ */ new Map(), n = 0, r = 0;
46
+ return e.forEach((e, i) => {
47
+ let a = e.transitionStatus === "ending";
48
+ t.set(e.id, {
49
+ value: e,
50
+ domIndex: i,
51
+ visibleIndex: a ? -1 : n,
52
+ offsetY: r
53
+ }), r += e.height || 0, a || (n += 1);
54
+ }), t;
55
+ }
56
+ function J(e, t) {
57
+ let n = 0;
58
+ return e.map((e) => {
59
+ if (e.transitionStatus === "ending") return e;
60
+ let r = n >= t;
61
+ return n += 1, e.limited === r ? e : {
62
+ ...e,
63
+ limited: r
64
+ };
65
+ });
66
+ }
67
+ var Y = {
68
+ toasts: (e) => e.toasts,
69
+ isEmpty: (e) => e.toasts.length === 0,
70
+ toast: (e, t) => e.toastMetadata.get(t)?.value,
71
+ toastIndex: (e, t) => e.toastMetadata.get(t)?.domIndex ?? -1,
72
+ toastOffsetY: (e, t) => e.toastMetadata.get(t)?.offsetY ?? 0,
73
+ toastVisibleIndex: (e, t) => e.toastMetadata.get(t)?.visibleIndex ?? -1,
74
+ focused: (e) => e.focused,
75
+ expanded: (e) => e.hovering || e.focused,
76
+ expandedOrOutOfFocus: (e) => e.hovering || e.focused || !e.isWindowFocused,
77
+ prevFocusElement: (e) => e.prevFocusElement
78
+ }, X = class extends h {
79
+ timers = /* @__PURE__ */ new Map();
80
+ areTimersPaused = !1;
81
+ constructor(e) {
82
+ super({
83
+ ...e,
84
+ toastMetadata: q(e.toasts)
85
+ }, {});
86
+ }
87
+ setViewport = (e) => {
88
+ this.set("viewport", e);
89
+ };
90
+ syncProviderProps(e, t) {
91
+ let n = this.state.limit !== t;
92
+ if (this.state.timeout === e && !n) return;
93
+ let r = {
94
+ timeout: e,
95
+ limit: t
96
+ };
97
+ if (n) {
98
+ let e = J(this.state.toasts, t);
99
+ r.toasts = e, r.toastMetadata = q(e);
100
+ }
101
+ this.update(r);
102
+ }
103
+ dispose = () => {
104
+ this.timers.forEach((e) => this.stopTimer(e)), this.timers.clear();
105
+ };
106
+ removeToast(e, t = !1) {
107
+ let n = Y.toastIndex(this.state, e);
108
+ if (n === -1) return;
109
+ let r = this.state.toasts[n];
110
+ t || r?.onRemove?.();
111
+ let i = [...this.state.toasts];
112
+ i.splice(n, 1), this.setToasts(i);
113
+ }
114
+ addToast = (e) => {
115
+ let { timeout: t, limit: n } = this.state, r = e.id || G();
116
+ if (e.id) {
117
+ let t = Y.toast(this.state, e.id);
118
+ if (t) {
119
+ if (t.transitionStatus === "ending") this.removeToast(e.id, !0);
120
+ else {
121
+ let t = { ...e };
122
+ return delete t.id, delete t.transitionStatus, this.updateToastInternal(e.id, t, !0, !0), e.id;
123
+ }
124
+ }
125
+ }
126
+ let i = {
127
+ ...e,
128
+ id: r,
129
+ updateKey: 0,
130
+ transitionStatus: "starting"
131
+ }, a = [i, ...this.state.toasts];
132
+ this.setToasts(J(a, n));
133
+ let o = i.timeout ?? t;
134
+ return i.type !== "loading" && o > 0 && this.scheduleTimer(r, o, () => this.closeToast(r)), Y.expandedOrOutOfFocus(this.state) && this.pauseTimers(), r;
135
+ };
136
+ updateToast = (e, t) => {
137
+ let n = Y.toast(this.state, e);
138
+ !n || n.transitionStatus === "ending" || this.updateToastInternal(e, typeof t == "function" ? t(n) : t, !1, !0);
139
+ };
140
+ updateToastInternal = (e, t, n = !1, r = !1) => {
141
+ let { timeout: i, toasts: a } = this.state, o = Y.toast(this.state, e);
142
+ if (!o || o.transitionStatus === "ending") return;
143
+ let s = {
144
+ ...o,
145
+ ...t,
146
+ ...r && { updateKey: o.updateKey + 1 }
147
+ };
148
+ this.setToasts(a.map((t) => t.id === e ? s : t));
149
+ let c = s.timeout ?? i, l = o.timeout ?? i, u = Object.hasOwn(t, "timeout"), d = s.transitionStatus !== "ending" && s.type !== "loading" && c > 0, f = this.timers.has(e), p = l !== c, m = o.type === "loading";
150
+ if (!d && f) {
151
+ this.clearTimer(e);
152
+ return;
153
+ }
154
+ d && (!f || p || u || m || n) && (this.clearTimer(e), this.scheduleTimer(e, c, () => this.closeToast(e)), Y.expandedOrOutOfFocus(this.state) && this.pauseTimers());
155
+ };
156
+ closeToast = (e) => {
157
+ let t = e === void 0, { limit: n, toasts: r } = this.state, i;
158
+ if (t) i = r, this.clearTimers();
159
+ else {
160
+ let t = Y.toast(this.state, e);
161
+ if (!t) return;
162
+ i = [t], this.clearTimer(e);
163
+ }
164
+ let a = J(r.map((n) => t || n.id === e ? {
165
+ ...n,
166
+ transitionStatus: "ending",
167
+ height: 0
168
+ } : n), n);
169
+ this.setToasts(a, !a.some((e) => e.transitionStatus !== "ending")), i.forEach((e) => {
170
+ e.transitionStatus !== "ending" && e.onClose?.();
171
+ }), this.handleFocusManagement(e);
172
+ };
173
+ promiseToast = (e, t) => {
174
+ let n = K(t.loading), r = this.addToast({
175
+ ...n,
176
+ type: "loading"
177
+ }), i = e.then((e) => {
178
+ let n = K(t.success, e);
179
+ return this.updateToast(r, {
180
+ ...n,
181
+ type: "success",
182
+ timeout: n.timeout
183
+ }), e;
184
+ }).catch((e) => {
185
+ let n = K(t.error, e);
186
+ return this.updateToast(r, {
187
+ ...n,
188
+ type: "error",
189
+ timeout: n.timeout
190
+ }), Promise.reject(e);
191
+ });
192
+ return Object.hasOwn(t, "setPromise") && t.setPromise(i), i;
193
+ };
194
+ pauseTimers() {
195
+ this.areTimersPaused || (this.areTimersPaused = !0, this.timers.forEach((e) => {
196
+ e.scheduled && (this.stopTimer(e), e.remaining = Math.max(e.remaining - (Date.now() - e.start), 0));
197
+ }));
198
+ }
199
+ resumeTimers() {
200
+ this.areTimersPaused && (this.areTimersPaused = !1, this.timers.forEach((e, t) => {
201
+ e.remaining = e.remaining > 0 ? e.remaining : e.delay, e.scheduled = !0, this.stopTimer(e), e.handle = setTimeout(() => {
202
+ e.handle = void 0, this.handleTimerFired(t), e.callback();
203
+ }, e.remaining), e.start = Date.now();
204
+ }));
205
+ }
206
+ restoreFocusToPrevElement() {
207
+ this.state.prevFocusElement?.focus({ preventScroll: !0 });
208
+ }
209
+ handleDocumentPointerDown = (e) => {
210
+ if (e.pointerType !== "touch") return;
211
+ let t = f(e);
212
+ u(this.state.viewport, t) || (this.resumeTimers(), this.update({
213
+ hovering: !1,
214
+ focused: !1
215
+ }));
216
+ };
217
+ scheduleTimer(e, t, n) {
218
+ let r = Date.now(), i = !Y.expandedOrOutOfFocus(this.state), a = {
219
+ scheduled: i,
220
+ handle: void 0,
221
+ start: r,
222
+ delay: t,
223
+ remaining: t,
224
+ callback: n
225
+ };
226
+ i && (a.handle = setTimeout(() => {
227
+ a.handle = void 0, this.handleTimerFired(e), n();
228
+ }, t)), this.timers.set(e, a);
229
+ }
230
+ stopTimer(e) {
231
+ e.handle !== void 0 && (clearTimeout(e.handle), e.handle = void 0);
232
+ }
233
+ clearTimers() {
234
+ this.timers.forEach((e) => this.stopTimer(e)), this.timers.clear(), this.areTimersPaused = !1;
235
+ }
236
+ clearTimer(e) {
237
+ let t = this.timers.get(e);
238
+ t && this.stopTimer(t), this.timers.delete(e), this.resetPausedStateIfNoTimersRemain();
239
+ }
240
+ handleTimerFired(e) {
241
+ this.timers.delete(e), this.resetPausedStateIfNoTimersRemain();
242
+ }
243
+ resetPausedStateIfNoTimersRemain() {
244
+ this.timers.size === 0 && (this.areTimersPaused = !1);
245
+ }
246
+ setToasts(e, t = e.length === 0) {
247
+ let n = {
248
+ toasts: e,
249
+ toastMetadata: q(e)
250
+ };
251
+ t && (n.hovering = !1, n.focused = !1), this.update(n);
252
+ }
253
+ handleFocusManagement(e) {
254
+ let t = p(d(this.state.viewport));
255
+ if (!this.state.viewport || !u(this.state.viewport, t) || !U(t)) return;
256
+ if (e === void 0) {
257
+ this.restoreFocusToPrevElement();
258
+ return;
259
+ }
260
+ let n = Y.toasts(this.state), r = Y.toastIndex(this.state, e), i = (e, t) => {
261
+ for (let r = e; r >= 0 && r < n.length; r += t) if (n[r].transitionStatus !== "ending") return n[r];
262
+ return null;
263
+ }, a = i(r + 1, 1) ?? i(r - 1, -1);
264
+ a ? a.element?.focus() : this.restoreFocusToPrevElement();
265
+ }
266
+ }, Z = Symbol("ToastProviderContext"), ue = F(Z);
267
+ function de() {
268
+ let e = H(ue);
269
+ if (e === Z) throw Error("Base UI: useToastManager must be used within <Toast.Provider>.");
270
+ return e;
271
+ }
272
+ //#endregion
273
+ //#region src/toast/provider/ToastProvider.tsx
274
+ function fe(e) {
275
+ let t = new X({
276
+ timeout: V(() => e.timeout ?? 5e3),
277
+ limit: V(() => e.limit ?? 3),
278
+ viewport: null,
279
+ toasts: [],
280
+ hovering: !1,
281
+ focused: !1,
282
+ isWindowFocused: !0,
283
+ prevFocusElement: null
284
+ });
285
+ return le(t.dispose), I(() => ({
286
+ timeout: e.timeout ?? 5e3,
287
+ limit: e.limit ?? 3
288
+ }), ({ timeout: e, limit: n }) => {
289
+ t.syncProviderProps(e, n);
290
+ }), I(() => e.toastManager, (e) => {
291
+ if (e) return e[" subscribe"](({ action: e, options: n }) => {
292
+ let r = n.id;
293
+ e === "promise" && n.promise ? t.promiseToast(n.promise, n) : e === "update" && r ? t.updateToast(r, n.updates) : e === "close" ? t.closeToast(r) : t.addToast(n);
294
+ });
295
+ }), E(ue, {
296
+ value: t,
297
+ get children() {
298
+ return e.children;
299
+ }
300
+ });
301
+ }
302
+ //#endregion
303
+ //#region src/toast/utils/mergeToastStyles.ts
304
+ function pe(e, t) {
305
+ if (typeof t == "string") {
306
+ let n = Object.entries(e).filter((e) => e[1] != null).map(([e, t]) => `${e}:${String(t)}`).join(";");
307
+ return n ? `${n};${t}` : t;
308
+ }
309
+ return {
310
+ ...e,
311
+ ...t || void 0
312
+ };
313
+ }
314
+ //#endregion
315
+ //#region src/toast/viewport/ToastViewport.tsx
316
+ var me = /* @__PURE__ */ M("<div>"), he = /* @__PURE__ */ M("<div role=alert aria-atomic=true><div></div><div>"), ge = {
317
+ "clip-path": "inset(50%)",
318
+ overflow: "hidden",
319
+ "white-space": "nowrap",
320
+ border: 0,
321
+ padding: 0,
322
+ width: "1px",
323
+ height: "1px",
324
+ margin: "-1px",
325
+ position: "fixed",
326
+ top: 0,
327
+ left: 0
328
+ };
329
+ function _e(e) {
330
+ let a = de(), s = e, c = e, m = !1, h = !1, _ = !1, v, ee = L(() => a.track().viewport), y = L(() => Y.isEmpty(a.track())), b = L(() => Y.toasts(a.track())), x = L(() => Y.focused(a.track())), S = L(() => Y.expanded(a.track())), te = L(() => Y.prevFocusElement(a.track())), C = L(() => b()[0]?.height), ne = L(() => b().some((e) => e.transitionStatus === "ending")), w = L(() => b().filter((e) => e.priority === "high"));
331
+ I(() => ({
332
+ empty: y(),
333
+ viewport: ee()
334
+ }), ({ empty: e, viewport: t }) => {
335
+ if (!t || e) return;
336
+ let n = t, r = l(n), i = d(n);
337
+ function o(e) {
338
+ e.key === "F6" && f(e) !== n && (e.preventDefault(), a.set("prevFocusElement", p(i)), n.focus({ preventScroll: !0 }), a.pauseTimers(), a.set("focused", !0));
339
+ }
340
+ function s(e) {
341
+ f(e) === r && (a.set("isWindowFocused", !1), a.pauseTimers());
342
+ }
343
+ function c(e) {
344
+ if (e.relatedTarget) return;
345
+ let t = f(e), i = p(d(n));
346
+ (t === r || !u(n, t) || !U(i)) && a.resumeTimers(), clearTimeout(v), v = setTimeout(() => a.set("isWindowFocused", !0), 0);
347
+ }
348
+ return r.addEventListener("keydown", o), r.addEventListener("blur", s, !0), r.addEventListener("focus", c, !0), i.addEventListener("pointerdown", a.handleDocumentPointerDown, !0), () => {
349
+ r.removeEventListener("keydown", o), r.removeEventListener("blur", s, !0), r.removeEventListener("focus", c, !0), i.removeEventListener("pointerdown", a.handleDocumentPointerDown, !0), clearTimeout(v);
350
+ };
351
+ });
352
+ function T(e) {
353
+ m = !0;
354
+ let t = e.relatedTarget === a.state.viewport ? V(b).find((e) => e.transitionStatus !== "ending" && !e.limited) : void 0;
355
+ t ? t.element?.focus() : a.restoreFocusToPrevElement();
356
+ }
357
+ function re(e) {
358
+ e.key === "Tab" && e.shiftKey && f(e) === a.state.viewport && (e.preventDefault(), a.restoreFocusToPrevElement());
359
+ }
360
+ function M() {
361
+ a.state.toasts.some((e) => e.transitionStatus === "ending") || _ || !h || (a.state.isWindowFocused && a.resumeTimers(), a.set("hovering", !1), h = !1);
362
+ }
363
+ I(() => ne(), () => {
364
+ M();
365
+ });
366
+ function P() {
367
+ a.pauseTimers(), a.set("hovering", !0), h = !1;
368
+ }
369
+ function F() {
370
+ a.state.isWindowFocused && a.resumeTimers();
371
+ }
372
+ function R() {
373
+ h = !0, M();
374
+ }
375
+ function z(e) {
376
+ e.pointerType === "touch" && (_ = !0);
377
+ }
378
+ function ce(e) {
379
+ e.pointerType === "touch" && (_ = !1, M());
380
+ }
381
+ function le() {
382
+ if (m) {
383
+ m = !1;
384
+ return;
385
+ }
386
+ V(x) || U(p(d(a.state.viewport))) && (a.set("focused", !0), a.pauseTimers());
387
+ }
388
+ function H(e) {
389
+ !V(x) || u(a.state.viewport, e.relatedTarget) || (a.set("focused", !1), F());
390
+ }
391
+ let W = L(() => ({ expanded: S() })), G = L(() => r(e.class, W())), K = L(() => pe({ "--toast-frontmost-height": C() ? `${C()}px` : void 0 }, i(e.style, W()))), q = L(() => n(W())), J = L(() => !y() && !!te()), X = B(c, "render", "children", "class", "onBlur", "onClick", "onFocus", "onKeyDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onPointerCancel", "onPointerDown", "onPointerUp", "ref", "style"), Z = o(() => s.onBlur, () => H), ue = o(() => s.onClick, () => le), fe = o(() => s.onFocus, () => le), _e = o(() => s.onKeyDown, () => re), ve = o(() => s.onMouseEnter, () => P), ye = o(() => s.onMouseMove, () => P), Q = o(() => s.onMouseLeave, () => R), be = o(() => s.onPointerDown, () => z), xe = o(() => s.onPointerUp, () => ce), Se = o(() => s.onPointerCancel, () => ce), Ce = t(e, () => W(), (e) => (() => {
392
+ var t = D(me);
393
+ return j(t, e, !1), A(), t;
394
+ })());
395
+ return [
396
+ E(N, {
397
+ get when() {
398
+ return J();
399
+ },
400
+ get children() {
401
+ return E(g, { onFocus: T });
402
+ }
403
+ }),
404
+ E(Ce, k({
405
+ ref: [a.setViewport, s.ref],
406
+ tabIndex: -1,
407
+ role: "region",
408
+ "aria-live": "polite",
409
+ "aria-atomic": "false",
410
+ "aria-relevant": "additions text",
411
+ "aria-label": "Notifications",
412
+ get class() {
413
+ return G();
414
+ },
415
+ get style() {
416
+ return K();
417
+ },
418
+ onBlur: Z,
419
+ onClick: ue,
420
+ onFocus: fe,
421
+ onKeyDown: _e,
422
+ onMouseEnter: ve,
423
+ onMouseLeave: Q,
424
+ onMouseMove: ye,
425
+ onPointerCancel: Se,
426
+ onPointerDown: be,
427
+ onPointerUp: xe
428
+ }, q, X, { get children() {
429
+ return [
430
+ E(N, {
431
+ get when() {
432
+ return J();
433
+ },
434
+ get children() {
435
+ return E(g, { onFocus: T });
436
+ }
437
+ }),
438
+ ae(() => e.children),
439
+ E(N, {
440
+ get when() {
441
+ return J();
442
+ },
443
+ get children() {
444
+ return E(g, { onFocus: T });
445
+ }
446
+ })
447
+ ];
448
+ } })),
449
+ E(N, {
450
+ get when() {
451
+ return ae(() => !x())() && w().length > 0;
452
+ },
453
+ get children() {
454
+ var e = D(me);
455
+ return O(e, E(se, {
456
+ get each() {
457
+ return w();
458
+ },
459
+ keyed: (e) => e.id,
460
+ children: (e) => (() => {
461
+ var t = D(he), n = t.firstChild, r = n.nextSibling;
462
+ return O(n, () => e().title), O(r, () => e().description), t;
463
+ })()
464
+ })), ie(() => ge, (t, n) => {
465
+ oe(e, t, n);
466
+ }), e;
467
+ }
468
+ })
469
+ ];
470
+ }
471
+ //#endregion
472
+ //#region src/toast/root/ToastRootContext.ts
473
+ var ve = Symbol("ToastRootContext"), ye = F(ve);
474
+ function Q() {
475
+ let e = H(ye);
476
+ if (e === ve) throw Error("Base UI: ToastRootContext is missing. Toast parts must be used within <Toast.Root>.");
477
+ return e;
478
+ }
479
+ //#endregion
480
+ //#region src/toast/root/ToastRoot.tsx
481
+ var be = /* @__PURE__ */ M("<div>"), xe = {
482
+ ...a,
483
+ swipeDirection(e) {
484
+ return e ? { "data-swipe-direction": e } : null;
485
+ }
486
+ }, Se = 40, Ce = 10, we = .5, Te = 1, Ee = `button,a,input,textarea,[role="button"],${`${re},${T}`}`, De = ["down", "right"];
487
+ function Oe(e) {
488
+ let a = de(), c = e, l = e, m = () => c.toast, h = () => m().positionerProps?.anchor !== void 0, g = L(() => {
489
+ if (h()) return [];
490
+ let e = c.swipeDirection ?? De;
491
+ return Array.isArray(e) ? e : [e];
492
+ }), _ = L(() => g().length > 0), [v, ee] = R(null, { ownedWrite: !0 }), [y, b] = R(void 0, { ownedWrite: !0 }), [x, S] = R(!1, { ownedWrite: !0 }), [te, C] = R(!1, { ownedWrite: !0 }), [T, re] = R({
493
+ x: 0,
494
+ y: 0
495
+ }, { ownedWrite: !0 }), [ie, O] = R({
496
+ x: 0,
497
+ y: 0,
498
+ scale: 1
499
+ }, { ownedWrite: !0 }), [ae, oe] = R(void 0, { ownedWrite: !0 }), [M, se] = R(void 0, { ownedWrite: !0 }), [N, P] = R(null, { ownedWrite: !0 }), F, z = {
500
+ x: 0,
501
+ y: 0
502
+ }, H = {
503
+ x: 0,
504
+ y: 0,
505
+ scale: 1
506
+ }, U, W = 0, G = !1, K = {
507
+ x: 0,
508
+ y: 0
509
+ }, q = !1, J = {
510
+ x: 0,
511
+ y: 0
512
+ }, X = null, Z = null, ue = L(() => m().id), fe = L(() => m().transitionStatus), me = L(() => fe() !== "ending"), he = L(() => Y.toastIndex(a.track(), m().id)), ge = L(() => Y.toastVisibleIndex(a.track(), m().id)), _e = L(() => Y.toastOffsetY(a.track(), m().id)), ve = L(() => Y.focused(a.track())), Q = L(() => Y.expanded(a.track()));
513
+ I(() => ({
514
+ open: me(),
515
+ element: v()
516
+ }), ({ open: e, element: t }) => {
517
+ if (!t) return;
518
+ let n = new AbortController();
519
+ return s(t, () => {
520
+ let e = V(m);
521
+ e.transitionStatus === "ending" && a.removeToast(e.id);
522
+ }, n.signal, { waitForStartingStyleRemoved: e }), () => n.abort();
523
+ });
524
+ function Oe(e = !1) {
525
+ let t = V(v);
526
+ if (!t) return;
527
+ let n = t.style.height;
528
+ t.style.height = "auto";
529
+ let r = t.offsetHeight;
530
+ t.style.height = n, a.updateToastInternal(V(m).id, {
531
+ element: t,
532
+ height: r,
533
+ transitionStatus: void 0
534
+ }), e && ce();
535
+ }
536
+ I(() => ({
537
+ id: ue(),
538
+ status: fe()
539
+ }), ({ id: e, status: t }) => {
540
+ let n = F;
541
+ (t === "starting" || n !== e) && (n !== void 0 && (b(void 0), O({
542
+ x: 0,
543
+ y: 0,
544
+ scale: 1
545
+ }), ke({
546
+ x: 0,
547
+ y: 0
548
+ })), F = e, Oe());
549
+ }), le(() => {
550
+ Z?.abort();
551
+ });
552
+ function ke(e) {
553
+ J = e, re(e);
554
+ }
555
+ function Ae(e, t) {
556
+ let n = V(g), r = (e) => e > 0 ? e ** we : -(Math.abs(e) ** we), i = e > 0 && !n.includes("right") || e < 0 && !n.includes("left"), a = t > 0 && !n.includes("down") || t < 0 && !n.includes("up");
557
+ return {
558
+ x: i ? r(e) : e,
559
+ y: a ? r(t) : t
560
+ };
561
+ }
562
+ function $(e) {
563
+ if (e.pointerId !== X) return;
564
+ X = null, Z?.abort(), Z = null, S(!1), C(!1), P(null);
565
+ let t = H;
566
+ if (e.type === "pointercancel" || G) {
567
+ ke({
568
+ x: t.x,
569
+ y: t.y
570
+ }), b(void 0);
571
+ return;
572
+ }
573
+ let n = J, r = n.x - t.x, i = n.y - t.y, o;
574
+ for (let e of V(g)) if (w(e, r, i) > Se) {
575
+ o = e;
576
+ break;
577
+ }
578
+ o ? (b(o), a.closeToast(V(m).id)) : (ke({
579
+ x: t.x,
580
+ y: t.y
581
+ }), b(void 0));
582
+ }
583
+ function je(e) {
584
+ if (e.button !== 0 || (e.pointerType === "touch" && a.pauseTimers(), f(e)?.closest(Ee))) return;
585
+ G = !1, U = void 0, W = 0, X = e.pointerId, z = {
586
+ x: e.clientX,
587
+ y: e.clientY
588
+ }, K = z;
589
+ let t = e.currentTarget, n = ne(t);
590
+ H = n, O(n), ke({
591
+ x: n.x,
592
+ y: n.y
593
+ }), a.set("hovering", !0), S(!0), C(!1), P(null), q = !0, Z?.abort();
594
+ let r = new AbortController();
595
+ Z = r;
596
+ let i = d(t);
597
+ i.addEventListener("pointerup", $, { signal: r.signal }), i.addEventListener("pointercancel", $, { signal: r.signal }), t.setPointerCapture?.(e.pointerId);
598
+ }
599
+ function Me(e) {
600
+ if (e.pointerId !== X) return;
601
+ e.preventDefault(), q &&= (z = {
602
+ x: e.clientX,
603
+ y: e.clientY
604
+ }, !1);
605
+ let { clientY: t, clientX: n, movementX: r, movementY: i } = e, a = V(g);
606
+ (i < 0 && t > K.y || i > 0 && t < K.y) && (K = {
607
+ x: K.x,
608
+ y: t
609
+ }), (r < 0 && n > K.x || r > 0 && n < K.x) && (K = {
610
+ x: n,
611
+ y: K.y
612
+ });
613
+ let o = n - z.x, s = t - z.y, c = t - K.y, l = n - K.x, u = V(N);
614
+ if (!V(te) && Math.sqrt(o * o + s * s) >= Te) {
615
+ C(!0);
616
+ let e = a.includes("left") || a.includes("right"), t = a.includes("up") || a.includes("down");
617
+ e && t && (u = Math.abs(o) > Math.abs(s) ? "horizontal" : "vertical", P(u));
618
+ }
619
+ let d;
620
+ if (!U) u === "vertical" ? s > 0 ? d = "down" : s < 0 && (d = "up") : u === "horizontal" ? o > 0 ? d = "right" : o < 0 && (d = "left") : d = Math.abs(o) >= Math.abs(s) ? o > 0 ? "right" : "left" : s > 0 ? "down" : "up", d && a.includes(d) && (U = d, W = w(d, o, s), b(d));
621
+ else {
622
+ let e = U, t = w(e, l, c);
623
+ t > Se ? (G = !1, b(e)) : !(a.includes("left") && a.includes("right")) && !(a.includes("up") && a.includes("down")) && W - t >= Ce && (G = !0);
624
+ }
625
+ let f = Ae(o, s), p = H.x, m = H.y, h = a.includes("left") || a.includes("right"), _ = a.includes("up") || a.includes("down");
626
+ u !== "vertical" && h && (p += f.x), u !== "horizontal" && _ && (m += f.y), ke({
627
+ x: p,
628
+ y: m
629
+ });
630
+ }
631
+ function Ne(e) {
632
+ if (e.key !== "Escape") return;
633
+ let t = V(v);
634
+ !t || !u(t, p(d(t))) || a.closeToast(V(m).id);
635
+ }
636
+ I(() => ({
637
+ enabled: _(),
638
+ element: v()
639
+ }), ({ enabled: e, element: t }) => {
640
+ if (!e || !t) return;
641
+ function n(e) {
642
+ X === null || !u(t, f(e)) || e.preventDefault();
643
+ }
644
+ return t.addEventListener("touchmove", n, { passive: !1 }), () => t.removeEventListener("touchmove", n);
645
+ });
646
+ function Pe() {
647
+ let e = T(), t = ie(), n = e.x - t.x, r = e.y - t.y;
648
+ return {
649
+ transition: x() ? "none" : void 0,
650
+ transform: x() ? `translateX(${e.x}px) translateY(${e.y}px) scale(${t.scale})` : void 0,
651
+ "--toast-swipe-movement-x": `${n}px`,
652
+ "--toast-swipe-movement-y": `${r}px`
653
+ };
654
+ }
655
+ let Fe = L(() => m().priority === "high"), Ie = L(() => ({
656
+ transitionStatus: m().transitionStatus,
657
+ expanded: Q(),
658
+ limited: m().limited || !1,
659
+ type: m().type,
660
+ swiping: x(),
661
+ swipeDirection: y()
662
+ })), Le = L(() => r(e.class, Ie())), Re = L(() => pe({
663
+ ...Pe(),
664
+ "--toast-index": String(m().transitionStatus === "ending" ? he() : ge()),
665
+ "--toast-offset-y": `${_e()}px`,
666
+ "--toast-height": m().height ? `${m().height}px` : void 0
667
+ }, i(e.style, Ie()))), ze = L(() => n(Ie(), xe)), Be = B(l, "render", "class", "onKeyDown", "onPointerCancel", "onPointerDown", "onPointerMove", "onPointerUp", "ref", "style", "swipeDirection", "toast"), Ve = o(() => c.onKeyDown, () => Ne), He = o(() => c.onPointerDown, () => V(() => _() ? je : void 0)), Ue = o(() => c.onPointerMove, () => V(() => _() ? Me : void 0)), We = o(() => c.onPointerUp, () => V(() => _() ? $ : void 0)), Ge = o(() => c.onPointerCancel, () => V(() => _() ? $ : void 0)), Ke = {
668
+ toast: m,
669
+ setTitleId: oe,
670
+ setDescriptionId: se,
671
+ visibleIndex: ge,
672
+ expanded: Q,
673
+ recalculateHeight: Oe
674
+ }, qe = t(e, () => Ie(), (e) => (() => {
675
+ var t = D(be);
676
+ return j(t, e, !1), A(), t;
677
+ })());
678
+ return E(ye, {
679
+ value: Ke,
680
+ get children() {
681
+ return E(qe, k({
682
+ ref: [((e) => ee(e)), c.ref],
683
+ get role() {
684
+ return Fe() ? "alertdialog" : "dialog";
685
+ },
686
+ tabIndex: 0,
687
+ "aria-modal": "false",
688
+ get "aria-labelledby"() {
689
+ return ae();
690
+ },
691
+ get "aria-describedby"() {
692
+ return M();
693
+ },
694
+ get "aria-hidden"() {
695
+ return Fe() && !ve() ? "true" : void 0;
696
+ },
697
+ get inert() {
698
+ return m().limited || void 0;
699
+ },
700
+ get class() {
701
+ return Le();
702
+ },
703
+ get style() {
704
+ return Re();
705
+ },
706
+ onKeyDown: Ve,
707
+ onPointerDown: He,
708
+ onPointerMove: Ue,
709
+ onPointerUp: We,
710
+ onPointerCancel: Ge
711
+ }, ze, Be));
712
+ }
713
+ });
714
+ }
715
+ //#endregion
716
+ //#region src/toast/content/ToastContent.tsx
717
+ var ke = /* @__PURE__ */ M("<div>");
718
+ function Ae(e) {
719
+ let a = Q(), o = e, s = e, [c, l] = R(null, { ownedWrite: !0 });
720
+ I(() => c(), (e) => {
721
+ if (a.recalculateHeight(), !e || typeof ResizeObserver != "function" || typeof MutationObserver != "function") return;
722
+ let t = new ResizeObserver(() => a.recalculateHeight(!0)), n = new MutationObserver(() => a.recalculateHeight(!0));
723
+ return t.observe(e), n.observe(e, {
724
+ childList: !0,
725
+ subtree: !0,
726
+ characterData: !0
727
+ }), () => {
728
+ t.disconnect(), n.disconnect();
729
+ };
730
+ });
731
+ let u = L(() => ({
732
+ expanded: a.expanded(),
733
+ behind: a.visibleIndex() > 0
734
+ })), d = L(() => r(e.class, u())), f = L(() => i(e.style, u())), p = L(() => n(u())), m = B(s, "render", "class", "ref", "style"), h = t(e, () => u(), (e) => (() => {
735
+ var t = D(ke);
736
+ return j(t, e, !1), A(), t;
737
+ })());
738
+ return E(h, k({
739
+ ref: [((e) => l(e)), o.ref],
740
+ get class() {
741
+ return d();
742
+ },
743
+ get style() {
744
+ return f();
745
+ }
746
+ }, p, m));
747
+ }
748
+ //#endregion
749
+ //#region src/toast/utils/isRenderableNode.ts
750
+ function $(e) {
751
+ return e == null || typeof e == "boolean" || e === "" ? !1 : !Array.isArray(e) || e.some($);
752
+ }
753
+ //#endregion
754
+ //#region src/toast/utils/createToastLabelPart.ts
755
+ function je(e, t) {
756
+ let n = Q(), r = t === "title" ? n.setTitleId : n.setDescriptionId, i = `base-ui-${z()}`, a = L(() => e.id || i), o = P(() => e.children ?? (t === "title" ? n.toast().title : n.toast().description)), s = L(() => $(o()));
757
+ return I(() => s() ? a() : void 0, (e) => {
758
+ if (e !== void 0) return r(e), () => r((t) => t === e ? void 0 : t);
759
+ }), {
760
+ id: a,
761
+ content: o,
762
+ shouldRender: s,
763
+ type: () => n.toast().type
764
+ };
765
+ }
766
+ //#endregion
767
+ //#region src/toast/description/ToastDescription.tsx
768
+ var Me = /* @__PURE__ */ M("<p>");
769
+ function Ne(e) {
770
+ let a = e, o = e, s = je(e, "description"), c = L(() => ({ type: s.type() })), l = L(() => r(e.class, c())), u = L(() => i(e.style, c())), d = L(() => n(c())), f = B(o, "render", "children", "class", "id", "ref", "style"), p = t(e, () => c(), (e) => (() => {
771
+ var t = D(Me);
772
+ return j(t, e, !1), A(), t;
773
+ })());
774
+ return E(N, {
775
+ get when() {
776
+ return s.shouldRender();
777
+ },
778
+ get children() {
779
+ return E(p, k({
780
+ ref: [a.ref],
781
+ get id() {
782
+ return s.id();
783
+ },
784
+ get class() {
785
+ return l();
786
+ },
787
+ get style() {
788
+ return u();
789
+ }
790
+ }, d, f, { get children() {
791
+ return s.content();
792
+ } }));
793
+ }
794
+ });
795
+ }
796
+ //#endregion
797
+ //#region src/toast/title/ToastTitle.tsx
798
+ var Pe = /* @__PURE__ */ M("<h2>");
799
+ function Fe(e) {
800
+ let a = e, o = e, s = je(e, "title"), c = L(() => ({ type: s.type() })), l = L(() => r(e.class, c())), u = L(() => i(e.style, c())), d = L(() => n(c())), f = B(o, "render", "children", "class", "id", "ref", "style"), p = t(e, () => c(), (e) => (() => {
801
+ var t = D(Pe);
802
+ return j(t, e, !1), A(), t;
803
+ })());
804
+ return E(N, {
805
+ get when() {
806
+ return s.shouldRender();
807
+ },
808
+ get children() {
809
+ return E(p, k({
810
+ ref: [a.ref],
811
+ get id() {
812
+ return s.id();
813
+ },
814
+ get class() {
815
+ return l();
816
+ },
817
+ get style() {
818
+ return u();
819
+ }
820
+ }, d, f, { get children() {
821
+ return s.content();
822
+ } }));
823
+ }
824
+ });
825
+ }
826
+ //#endregion
827
+ //#region src/toast/close/ToastClose.tsx
828
+ var Ie = /* @__PURE__ */ M("<button>");
829
+ function Le(e) {
830
+ let a = de(), s = Q(), c = e, l = e, [u, d] = R(!1, { ownedWrite: !0 }), f = L(() => c.disabled ?? !1), p = L(() => c.nativeButton ?? !0), m = L(() => ({ type: s.toast().type })), h = L(() => r(e.class, m())), g = L(() => i(e.style, m())), _ = L(() => n(m())), v = B(l, "render", "class", "disabled", "nativeButton", "onBlur", "onClick", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "ref", "style");
831
+ function ee() {
832
+ a.closeToast(s.toast().id);
833
+ }
834
+ let C = o(() => V(() => f() ? S : void 0), () => c.onClick, () => ee), ne = o(() => c.onFocus, () => () => d(!0)), w = o(() => c.onBlur, () => () => d(!1)), T = o(() => V(() => f() ? S : void 0), () => c.onPointerDown), re = o(() => V(() => f() ? y : void 0), () => c.onMouseDown), ie = o(() => V(() => f() ? b : void 0), () => c.onKeyDown, () => V(() => p() ? void 0 : te)), O = o(() => V(() => f() ? y : void 0), () => c.onKeyUp, () => V(() => p() ? void 0 : x)), oe = t(e, () => m(), (e) => (() => {
835
+ var t = D(Ie);
836
+ return j(t, e, !1), A(), t;
837
+ })());
838
+ return E(oe, k({
839
+ ref: [c.ref],
840
+ get type() {
841
+ return p() ? "button" : void 0;
842
+ },
843
+ get role() {
844
+ return p() ? void 0 : "button";
845
+ },
846
+ get tabIndex() {
847
+ return !p() && f() ? -1 : 0;
848
+ },
849
+ get disabled() {
850
+ return (ae(() => !!p())() ? f() : p()) || void 0;
851
+ },
852
+ get "aria-disabled"() {
853
+ return !p() && f() ? "true" : void 0;
854
+ },
855
+ get "aria-hidden"() {
856
+ return !s.expanded() && !u() ? "true" : "false";
857
+ },
858
+ get class() {
859
+ return h();
860
+ },
861
+ get style() {
862
+ return g();
863
+ },
864
+ onBlur: w,
865
+ onClick: C,
866
+ onFocus: ne,
867
+ onKeyDown: ie,
868
+ onKeyUp: O,
869
+ onMouseDown: re,
870
+ onPointerDown: T
871
+ }, _, v));
872
+ }
873
+ //#endregion
874
+ //#region src/toast/action/ToastAction.tsx
875
+ var Re = /* @__PURE__ */ M("<button>");
876
+ function ze(e) {
877
+ let a = Q(), s = e, c = e, l = () => a.toast().actionProps, u = P(() => l()?.children ?? e.children), d = L(() => $(u())), f = L(() => s.disabled ?? !1), p = L(() => s.nativeButton ?? !0), m = L(() => ({ type: a.toast().type })), h = L(() => r(e.class, m())), g = L(() => i(e.style, m())), _ = L(() => n(m())), v = B(c, "render", "children", "class", "disabled", "nativeButton", "onClick", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown", "ref", "style"), ee = L(() => {
878
+ let e = l();
879
+ if (e) return B(e, "children", "onClick", "onKeyDown", "onKeyUp", "onMouseDown", "onPointerDown");
880
+ }), C = o(() => V(() => f() ? S : void 0), () => s.onClick, () => l()?.onClick), ne = o(() => V(() => f() ? S : void 0), () => s.onPointerDown, () => l()?.onPointerDown), w = o(() => V(() => f() ? y : void 0), () => s.onMouseDown, () => l()?.onMouseDown), T = o(() => V(() => f() ? b : void 0), () => s.onKeyDown, () => l()?.onKeyDown, () => V(() => p() ? void 0 : te)), re = o(() => V(() => f() ? y : void 0), () => s.onKeyUp, () => l()?.onKeyUp, () => V(() => p() ? void 0 : x)), ie = t(e, () => m(), (e) => (() => {
881
+ var t = D(Re);
882
+ return j(t, e, !1), A(), t;
883
+ })());
884
+ return E(N, {
885
+ get when() {
886
+ return d();
887
+ },
888
+ get children() {
889
+ return E(ie, k({
890
+ ref: [s.ref],
891
+ get type() {
892
+ return p() ? "button" : void 0;
893
+ },
894
+ get role() {
895
+ return p() ? void 0 : "button";
896
+ },
897
+ get tabIndex() {
898
+ return !p() && f() ? -1 : 0;
899
+ },
900
+ get disabled() {
901
+ return (ae(() => !!p())() ? f() : p()) || void 0;
902
+ },
903
+ get "aria-disabled"() {
904
+ return !p() && f() ? "true" : void 0;
905
+ },
906
+ get class() {
907
+ return h();
908
+ },
909
+ get style() {
910
+ return g();
911
+ },
912
+ onClick: C,
913
+ onKeyDown: T,
914
+ onKeyUp: re,
915
+ onMouseDown: w,
916
+ onPointerDown: ne
917
+ }, _, v, ee, { get children() {
918
+ return u();
919
+ } }));
920
+ }
921
+ });
922
+ }
923
+ //#endregion
924
+ //#region src/toast/portal/ToastPortal.tsx
925
+ function Be(e) {
926
+ let t = e, n = e, a = {}, o = L(() => r(e.class, a)), s = L(() => i(e.style, a)), c = B(n, "render", "class", "container", "ref", "style");
927
+ return E(v, k({
928
+ get render() {
929
+ return e.render;
930
+ },
931
+ lite: !0,
932
+ get container() {
933
+ return t.container;
934
+ },
935
+ ref: (e) => {
936
+ t.ref && ee(t.ref, e);
937
+ },
938
+ get class() {
939
+ return o();
940
+ },
941
+ get style() {
942
+ return s();
943
+ }
944
+ }, c, { get children() {
945
+ return e.children;
946
+ } }));
947
+ }
948
+ //#endregion
949
+ //#region src/toast/positioner/ToastPositionerContext.ts
950
+ var Ve = Symbol("ToastPositionerContext"), He = F(Ve);
951
+ function Ue() {
952
+ let e = H(He);
953
+ if (e === Ve) throw Error("Base UI: ToastPositionerContext is missing. ToastPositioner parts must be placed within <Toast.Positioner>.");
954
+ return e;
955
+ }
956
+ //#endregion
957
+ //#region src/toast/positioner/ToastPositioner.tsx
958
+ var We = /* @__PURE__ */ M("<div>"), Ge = {};
959
+ function Ke(e) {
960
+ let a = de(), o = C(), s = e, l = e, [u, d] = R(null, { ownedWrite: !0 }), f = () => s.toast, p = () => f().positionerProps ?? Ge, h = L(() => {
961
+ let e = s.anchor ?? p().anchor;
962
+ return c(e) ? e : null;
963
+ }), g = m({
964
+ reference: h,
965
+ floating: u,
966
+ mounted: () => !0,
967
+ direction: o,
968
+ positionMethod: () => s.positionMethod ?? p().positionMethod ?? "absolute",
969
+ side: () => s.side ?? p().side ?? "top",
970
+ sideOffset: () => s.sideOffset ?? p().sideOffset ?? 0,
971
+ align: () => s.align ?? p().align ?? "center",
972
+ alignOffset: () => s.alignOffset ?? p().alignOffset ?? 0,
973
+ collisionBoundary: () => s.collisionBoundary ?? p().collisionBoundary ?? "clipping-ancestors",
974
+ collisionPadding: () => s.collisionPadding ?? p().collisionPadding ?? 5,
975
+ arrowPadding: () => s.arrowPadding ?? p().arrowPadding ?? 5,
976
+ sticky: () => s.sticky ?? p().sticky ?? !1,
977
+ disableAnchorTracking: () => s.disableAnchorTracking ?? p().disableAnchorTracking ?? !1,
978
+ collisionAvoidance: () => s.collisionAvoidance ?? p().collisionAvoidance ?? { fallbackAxisSide: "end" }
979
+ }), v = L(() => Y.toastIndex(a.track(), f().id)), ee = L(() => Y.toastVisibleIndex(a.track(), f().id)), y = L(() => ({
980
+ side: g.renderedSide(),
981
+ align: g.renderedAlign(),
982
+ anchorHidden: g.anchorHidden()
983
+ })), b = L(() => r(e.class, y())), x = L(() => pe({
984
+ ...g.styles(),
985
+ "--toast-index": String(f().transitionStatus === "ending" ? v() : ee()),
986
+ ...f().transitionStatus === "starting" ? { transition: "none" } : void 0
987
+ }, i(e.style, y()))), S = L(() => n(y(), _)), te = B(l, "align", "alignOffset", "anchor", "arrowPadding", "render", "class", "collisionAvoidance", "collisionBoundary", "collisionPadding", "disableAnchorTracking", "positionMethod", "ref", "side", "sideOffset", "sticky", "style", "toast"), ne = t(e, () => y(), (e) => (() => {
988
+ var t = D(We);
989
+ return j(t, e, !1), A(), t;
990
+ })());
991
+ return E(He, {
992
+ value: g,
993
+ get children() {
994
+ return E(ne, k({
995
+ ref: [((e) => d(e)), s.ref],
996
+ role: "presentation",
997
+ get class() {
998
+ return b();
999
+ },
1000
+ get style() {
1001
+ return x();
1002
+ }
1003
+ }, S, te));
1004
+ }
1005
+ });
1006
+ }
1007
+ //#endregion
1008
+ //#region src/toast/arrow/ToastArrow.tsx
1009
+ var qe = /* @__PURE__ */ M("<div>");
1010
+ function Je(e) {
1011
+ let a = Ue(), o = e, s = e, c = L(() => ({
1012
+ side: a.renderedSide(),
1013
+ align: a.renderedAlign(),
1014
+ uncentered: a.arrowUncentered()
1015
+ })), l = L(() => r(e.class, c())), u = L(() => pe(a.arrowStyles(), i(e.style, c()))), d = L(() => n(c())), f = B(s, "render", "class", "ref", "style"), p = null;
1016
+ le(() => {
1017
+ p && a.setArrowElement(null);
1018
+ });
1019
+ let m = t(e, () => c(), (e) => (() => {
1020
+ var t = D(qe);
1021
+ return j(t, e, !1), A(), t;
1022
+ })());
1023
+ return E(m, k({
1024
+ ref: [((e) => {
1025
+ p = e, a.setArrowElement(e);
1026
+ }), o.ref],
1027
+ "aria-hidden": "true",
1028
+ get class() {
1029
+ return l();
1030
+ },
1031
+ get style() {
1032
+ return u();
1033
+ }
1034
+ }, d, f));
1035
+ }
1036
+ //#endregion
1037
+ //#region src/toast/index.parts.ts
1038
+ var Ye = /* @__PURE__ */ e({
1039
+ Action: () => ze,
1040
+ Arrow: () => Je,
1041
+ Close: () => Le,
1042
+ Content: () => Ae,
1043
+ Description: () => Ne,
1044
+ Portal: () => Be,
1045
+ Positioner: () => Ke,
1046
+ Provider: () => fe,
1047
+ Root: () => Oe,
1048
+ Title: () => Fe,
1049
+ Viewport: () => _e
1050
+ });
1051
+ //#endregion
1052
+ //#region src/toast/useToastManager.ts
1053
+ function Xe() {
1054
+ let e = de();
1055
+ return {
1056
+ toasts: e.access(Y.toasts),
1057
+ add: e.addToast,
1058
+ close: e.closeToast,
1059
+ update: e.updateToast,
1060
+ promise: e.promiseToast
1061
+ };
1062
+ }
1063
+ //#endregion
1064
+ //#region src/toast/createToastManager.ts
1065
+ function Ze() {
1066
+ let e = /* @__PURE__ */ new Set();
1067
+ function t(t) {
1068
+ e.forEach((e) => e(t));
1069
+ }
1070
+ return {
1071
+ " subscribe": function(t) {
1072
+ return e.add(t), () => {
1073
+ e.delete(t);
1074
+ };
1075
+ },
1076
+ add(e) {
1077
+ let n = e.id || G();
1078
+ return t({
1079
+ action: "add",
1080
+ options: {
1081
+ ...e,
1082
+ id: n,
1083
+ transitionStatus: "starting"
1084
+ }
1085
+ }), n;
1086
+ },
1087
+ close(e) {
1088
+ t({
1089
+ action: "close",
1090
+ options: { id: e }
1091
+ });
1092
+ },
1093
+ update(e, n) {
1094
+ t({
1095
+ action: "update",
1096
+ options: {
1097
+ id: e,
1098
+ updates: n
1099
+ }
1100
+ });
1101
+ },
1102
+ promise(e, n) {
1103
+ let r = e;
1104
+ return t({
1105
+ action: "promise",
1106
+ options: {
1107
+ ...n,
1108
+ promise: e,
1109
+ setPromise(e) {
1110
+ r = e;
1111
+ }
1112
+ }
1113
+ }), r;
1114
+ }
1115
+ };
1116
+ }
1117
+ //#endregion
1118
+ export { Xe as n, Ye as r, Ze as t };