@editora/ui-core 0.1.8 → 0.1.10

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 (551) hide show
  1. package/README.md +35 -0
  2. package/dist/ElementBase-1b301e7f.js +1 -0
  3. package/dist/ElementBase-909688f3.mjs +79 -0
  4. package/dist/ElementBase.d.ts.map +1 -1
  5. package/dist/__tests__/setup.d.ts +2 -0
  6. package/dist/__tests__/setup.d.ts.map +1 -1
  7. package/dist/accordion.cjs.js +360 -0
  8. package/dist/accordion.esm.js +647 -0
  9. package/dist/alert-dialog.cjs.js +567 -0
  10. package/dist/alert-dialog.esm.js +1043 -0
  11. package/dist/alert.cjs.js +351 -0
  12. package/dist/alert.esm.js +450 -0
  13. package/dist/anchor.cjs.js +30 -0
  14. package/dist/anchor.esm.js +62 -0
  15. package/dist/animated-beam.cjs.js +720 -0
  16. package/dist/animated-beam.esm.js +1540 -0
  17. package/dist/animated-list.cjs.js +672 -0
  18. package/dist/animated-list.esm.js +1137 -0
  19. package/dist/animated-text.cjs.js +683 -0
  20. package/dist/animated-text.esm.js +1020 -0
  21. package/dist/app-header.cjs.js +345 -0
  22. package/dist/app-header.esm.js +398 -0
  23. package/dist/aspect-ratio.cjs.js +294 -0
  24. package/dist/aspect-ratio.esm.js +416 -0
  25. package/dist/avatar.cjs.js +365 -0
  26. package/dist/avatar.esm.js +513 -0
  27. package/dist/badge.cjs.js +432 -0
  28. package/dist/badge.esm.js +554 -0
  29. package/dist/block-controls.cjs.js +347 -0
  30. package/dist/block-controls.esm.js +556 -0
  31. package/dist/box.cjs.js +226 -0
  32. package/dist/box.esm.js +556 -0
  33. package/dist/breadcrumb.cjs.js +288 -0
  34. package/dist/breadcrumb.esm.js +523 -0
  35. package/dist/button.cjs.js +521 -0
  36. package/dist/button.esm.js +671 -0
  37. package/dist/calendar-2c11b824.mjs +1685 -0
  38. package/dist/calendar-a8735e40.js +741 -0
  39. package/dist/calendar.cjs.js +1 -0
  40. package/dist/calendar.esm.js +11 -0
  41. package/dist/card.cjs.js +306 -0
  42. package/dist/card.esm.js +378 -0
  43. package/dist/chart.cjs.js +783 -0
  44. package/dist/chart.esm.js +1369 -0
  45. package/dist/checkbox.cjs.js +338 -0
  46. package/dist/checkbox.esm.js +455 -0
  47. package/dist/collapsible.cjs.js +381 -0
  48. package/dist/collapsible.esm.js +548 -0
  49. package/dist/collection-a1aac0c6.mjs +56 -0
  50. package/dist/collection-a2969ad2.js +1 -0
  51. package/dist/collection.cjs.js +1 -0
  52. package/dist/collection.esm.js +136 -0
  53. package/dist/color-picker.cjs.js +803 -0
  54. package/dist/color-picker.esm.js +1809 -0
  55. package/dist/combobox.cjs.js +525 -0
  56. package/dist/combobox.esm.js +1023 -0
  57. package/dist/command-palette.cjs.js +67 -0
  58. package/dist/command-palette.esm.js +181 -0
  59. package/dist/command.cjs.js +130 -0
  60. package/dist/command.esm.js +307 -0
  61. package/dist/components/date-time-utils.d.ts.map +1 -1
  62. package/dist/components/ui-anchor.d.ts +7 -0
  63. package/dist/components/ui-anchor.d.ts.map +1 -1
  64. package/dist/components/ui-data-table.d.ts.map +1 -1
  65. package/dist/components/ui-date-picker.d.ts.map +1 -1
  66. package/dist/components/ui-date-range-picker.d.ts.map +1 -1
  67. package/dist/components/ui-date-time-picker.d.ts.map +1 -1
  68. package/dist/components/ui-drawer.d.ts.map +1 -1
  69. package/dist/components/ui-form.d.ts +0 -1
  70. package/dist/components/ui-form.d.ts.map +1 -1
  71. package/dist/components/ui-listbox.d.ts +3 -0
  72. package/dist/components/ui-listbox.d.ts.map +1 -1
  73. package/dist/components/ui-number-ticker.d.ts.map +1 -1
  74. package/dist/components/ui-portal.d.ts +1 -0
  75. package/dist/components/ui-portal.d.ts.map +1 -1
  76. package/dist/components/ui-sidebar.d.ts.map +1 -1
  77. package/dist/components/ui-sortable.d.ts +192 -0
  78. package/dist/components/ui-sortable.d.ts.map +1 -0
  79. package/dist/components/ui-tooltip.d.ts.map +1 -1
  80. package/dist/components/ui-transfer-list.d.ts +5 -0
  81. package/dist/components/ui-transfer-list.d.ts.map +1 -1
  82. package/dist/container.cjs.js +115 -0
  83. package/dist/container.esm.js +156 -0
  84. package/dist/context-menu.cjs.js +357 -0
  85. package/dist/context-menu.esm.js +1204 -0
  86. package/dist/control-group.cjs.js +80 -0
  87. package/dist/control-group.esm.js +110 -0
  88. package/dist/data-table.cjs.js +682 -0
  89. package/dist/data-table.esm.js +1660 -0
  90. package/dist/date-field.cjs.js +142 -0
  91. package/dist/date-field.esm.js +384 -0
  92. package/dist/date-picker.cjs.js +570 -0
  93. package/dist/date-picker.esm.js +1067 -0
  94. package/dist/date-range-picker.cjs.js +455 -0
  95. package/dist/date-range-picker.esm.js +973 -0
  96. package/dist/date-range-time-picker.cjs.js +573 -0
  97. package/dist/date-range-time-picker.esm.js +1137 -0
  98. package/dist/date-time-picker.cjs.js +495 -0
  99. package/dist/date-time-picker.esm.js +1062 -0
  100. package/dist/date-time-utils-5cf58cd0.js +1 -0
  101. package/dist/date-time-utils-bdceb7af.mjs +273 -0
  102. package/dist/description.cjs.js +85 -0
  103. package/dist/description.esm.js +136 -0
  104. package/dist/dialog.cjs.js +406 -0
  105. package/dist/dialog.esm.js +822 -0
  106. package/dist/direction-provider.cjs.js +30 -0
  107. package/dist/direction-provider.esm.js +74 -0
  108. package/dist/dismissable-layer-193e3bed.js +1 -0
  109. package/dist/dismissable-layer-9c7e6b58.mjs +112 -0
  110. package/dist/dismissable-layer.cjs.js +6 -0
  111. package/dist/dismissable-layer.esm.js +115 -0
  112. package/dist/dock.cjs.js +347 -0
  113. package/dist/dock.esm.js +826 -0
  114. package/dist/drawer.cjs.js +538 -0
  115. package/dist/drawer.esm.js +872 -0
  116. package/dist/dropdown.cjs.js +511 -0
  117. package/dist/dropdown.esm.js +1084 -0
  118. package/dist/dropzone.cjs.js +1 -0
  119. package/dist/dropzone.esm.js +11 -0
  120. package/dist/empty-state.cjs.js +169 -0
  121. package/dist/empty-state.esm.js +199 -0
  122. package/dist/field-error.cjs.js +74 -0
  123. package/dist/field-error.esm.js +125 -0
  124. package/dist/field.cjs.js +398 -0
  125. package/dist/field.esm.js +542 -0
  126. package/dist/fieldset.cjs.js +214 -0
  127. package/dist/fieldset.esm.js +298 -0
  128. package/dist/file-upload.cjs.js +353 -0
  129. package/dist/file-upload.esm.js +740 -0
  130. package/dist/flex.cjs.js +54 -0
  131. package/dist/flex.esm.js +168 -0
  132. package/dist/floating-toolbar.cjs.js +223 -0
  133. package/dist/floating-toolbar.esm.js +513 -0
  134. package/dist/focus-scope-103833ee.mjs +147 -0
  135. package/dist/focus-scope-2b12b4e7.js +1 -0
  136. package/dist/focus-scope.cjs.js +6 -0
  137. package/dist/focus-scope.esm.js +97 -0
  138. package/dist/form.cjs.js +377 -0
  139. package/dist/form.esm.js +862 -0
  140. package/dist/gantt.cjs.js +157 -0
  141. package/dist/gantt.esm.js +214 -0
  142. package/dist/grid.cjs.js +67 -0
  143. package/dist/grid.esm.js +211 -0
  144. package/dist/hover-card.cjs.js +284 -0
  145. package/dist/hover-card.esm.js +470 -0
  146. package/dist/icon-9ed13093.mjs +364 -0
  147. package/dist/icon-cloud.cjs.js +495 -0
  148. package/dist/icon-cloud.esm.js +828 -0
  149. package/dist/icon-eaa486b3.js +207 -0
  150. package/dist/icon.cjs.js +1 -0
  151. package/dist/icon.esm.js +6 -0
  152. package/dist/index.cjs.js +1 -35924
  153. package/dist/index.d.ts +3 -0
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.esm.js +440 -68558
  156. package/dist/inline-edit.cjs.js +118 -0
  157. package/dist/inline-edit.esm.js +206 -0
  158. package/dist/input.cjs.js +535 -0
  159. package/dist/input.esm.js +790 -0
  160. package/dist/label.cjs.js +195 -0
  161. package/dist/label.esm.js +301 -0
  162. package/dist/layout.cjs.js +266 -0
  163. package/dist/layout.esm.js +408 -0
  164. package/dist/listbox-308789a0.mjs +210 -0
  165. package/dist/listbox-ef2f708e.js +46 -0
  166. package/dist/listbox.cjs.js +1 -0
  167. package/dist/listbox.esm.js +6 -0
  168. package/dist/marquee.cjs.js +513 -0
  169. package/dist/marquee.esm.js +767 -0
  170. package/dist/masonry-grid.cjs.js +65 -0
  171. package/dist/masonry-grid.esm.js +180 -0
  172. package/dist/menu-item-styles-27fdbac4.mjs +181 -0
  173. package/dist/menu-item-styles-83ad1e22.js +152 -0
  174. package/dist/menu.cjs.js +275 -0
  175. package/dist/menu.esm.js +743 -0
  176. package/dist/menubar.cjs.js +455 -0
  177. package/dist/menubar.esm.js +1195 -0
  178. package/dist/meter.cjs.js +241 -0
  179. package/dist/meter.esm.js +334 -0
  180. package/dist/multi-select.cjs.js +549 -0
  181. package/dist/multi-select.esm.js +914 -0
  182. package/dist/navigation-menu.cjs.js +382 -0
  183. package/dist/navigation-menu.esm.js +614 -0
  184. package/dist/number-field.cjs.js +351 -0
  185. package/dist/number-field.esm.js +771 -0
  186. package/dist/number-ticker.cjs.js +209 -0
  187. package/dist/number-ticker.esm.js +749 -0
  188. package/dist/odometer.cjs.js +313 -0
  189. package/dist/odometer.esm.js +565 -0
  190. package/dist/orbiter.cjs.js +495 -0
  191. package/dist/orbiter.esm.js +831 -0
  192. package/dist/overlayManager-86454af7.mjs +58 -0
  193. package/dist/overlayManager-ece06517.js +1 -0
  194. package/dist/pagination.cjs.js +201 -0
  195. package/dist/pagination.esm.js +297 -0
  196. package/dist/panel-group-40254cdd.js +36 -0
  197. package/dist/panel-group-a376cc5e.mjs +326 -0
  198. package/dist/panel-group.cjs.js +1 -0
  199. package/dist/panel-group.esm.js +7 -0
  200. package/dist/panel.cjs.js +22 -0
  201. package/dist/panel.esm.js +46 -0
  202. package/dist/password-field.cjs.js +626 -0
  203. package/dist/password-field.esm.js +925 -0
  204. package/dist/pin-input.cjs.js +185 -0
  205. package/dist/pin-input.esm.js +412 -0
  206. package/dist/placement-grid.cjs.js +99 -0
  207. package/dist/placement-grid.esm.js +486 -0
  208. package/dist/plugin-panel.cjs.js +131 -0
  209. package/dist/plugin-panel.esm.js +173 -0
  210. package/dist/popover.cjs.js +286 -0
  211. package/dist/popover.esm.js +483 -0
  212. package/dist/portal-1cf392ca.mjs +114 -0
  213. package/dist/portal-d8d7fbca.js +1 -0
  214. package/dist/portal.cjs.js +39 -0
  215. package/dist/portal.d.ts.map +1 -1
  216. package/dist/portal.esm.js +187 -0
  217. package/dist/positioner-accc6e5f.js +1 -0
  218. package/dist/positioner-fbd61bf1.mjs +132 -0
  219. package/dist/positioner.cjs.js +6 -0
  220. package/dist/positioner.esm.js +137 -0
  221. package/dist/presence.cjs.js +164 -0
  222. package/dist/presence.esm.js +301 -0
  223. package/dist/progress.cjs.js +329 -0
  224. package/dist/progress.esm.js +453 -0
  225. package/dist/quick-actions.cjs.js +202 -0
  226. package/dist/quick-actions.esm.js +357 -0
  227. package/dist/radio-group.cjs.js +257 -0
  228. package/dist/radio-group.esm.js +477 -0
  229. package/dist/rating.cjs.js +355 -0
  230. package/dist/rating.esm.js +637 -0
  231. package/dist/roving-focus-group-4350c9a7.mjs +50 -0
  232. package/dist/roving-focus-group-5c059bf9.js +1 -0
  233. package/dist/roving-focus-group.cjs.js +1 -0
  234. package/dist/roving-focus-group.esm.js +72 -0
  235. package/dist/runtime-4ac0107b.mjs +1954 -0
  236. package/dist/runtime-5f282bc8.js +1 -0
  237. package/dist/runtime.cjs.js +1 -0
  238. package/dist/runtime.d.ts +9 -0
  239. package/dist/runtime.d.ts.map +1 -0
  240. package/dist/runtime.esm.js +26 -0
  241. package/dist/scroll-area.cjs.js +294 -0
  242. package/dist/scroll-area.esm.js +478 -0
  243. package/dist/scroll-lock-48793569.js +1 -0
  244. package/dist/scroll-lock-9de6d328.mjs +53 -0
  245. package/dist/section.cjs.js +167 -0
  246. package/dist/section.esm.js +202 -0
  247. package/dist/select.cjs.js +799 -0
  248. package/dist/select.esm.js +1266 -0
  249. package/dist/selection-popup.cjs.js +203 -0
  250. package/dist/selection-popup.esm.js +392 -0
  251. package/dist/separator.cjs.js +221 -0
  252. package/dist/separator.esm.js +241 -0
  253. package/dist/sidebar.cjs.js +769 -0
  254. package/dist/sidebar.esm.js +1219 -0
  255. package/dist/skeleton.cjs.js +205 -0
  256. package/dist/skeleton.esm.js +249 -0
  257. package/dist/slider.cjs.js +493 -0
  258. package/dist/slider.esm.js +694 -0
  259. package/dist/slot.cjs.js +159 -0
  260. package/dist/slot.esm.js +227 -0
  261. package/dist/sortable.cjs.js +855 -0
  262. package/dist/sortable.d.ts +4 -0
  263. package/dist/sortable.d.ts.map +1 -0
  264. package/dist/sortable.esm.js +2178 -0
  265. package/dist/spinning-text.cjs.js +395 -0
  266. package/dist/spinning-text.esm.js +635 -0
  267. package/dist/split-button.cjs.js +410 -0
  268. package/dist/split-button.esm.js +619 -0
  269. package/dist/splitter.cjs.js +70 -0
  270. package/dist/splitter.esm.js +105 -0
  271. package/dist/standalone/accordion.d.ts +2 -0
  272. package/dist/standalone/accordion.d.ts.map +1 -0
  273. package/dist/standalone/alert-dialog.d.ts +2 -0
  274. package/dist/standalone/alert-dialog.d.ts.map +1 -0
  275. package/dist/standalone/alert.d.ts +2 -0
  276. package/dist/standalone/alert.d.ts.map +1 -0
  277. package/dist/standalone/anchor.d.ts +2 -0
  278. package/dist/standalone/anchor.d.ts.map +1 -0
  279. package/dist/standalone/animated-beam.d.ts +2 -0
  280. package/dist/standalone/animated-beam.d.ts.map +1 -0
  281. package/dist/standalone/animated-list.d.ts +2 -0
  282. package/dist/standalone/animated-list.d.ts.map +1 -0
  283. package/dist/standalone/animated-text.d.ts +2 -0
  284. package/dist/standalone/animated-text.d.ts.map +1 -0
  285. package/dist/standalone/app-header.d.ts +2 -0
  286. package/dist/standalone/app-header.d.ts.map +1 -0
  287. package/dist/standalone/aspect-ratio.d.ts +2 -0
  288. package/dist/standalone/aspect-ratio.d.ts.map +1 -0
  289. package/dist/standalone/avatar.d.ts +2 -0
  290. package/dist/standalone/avatar.d.ts.map +1 -0
  291. package/dist/standalone/badge.d.ts +2 -0
  292. package/dist/standalone/badge.d.ts.map +1 -0
  293. package/dist/standalone/block-controls.d.ts +2 -0
  294. package/dist/standalone/block-controls.d.ts.map +1 -0
  295. package/dist/standalone/box.d.ts +2 -0
  296. package/dist/standalone/box.d.ts.map +1 -0
  297. package/dist/standalone/breadcrumb.d.ts +2 -0
  298. package/dist/standalone/breadcrumb.d.ts.map +1 -0
  299. package/dist/standalone/button.d.ts +2 -0
  300. package/dist/standalone/button.d.ts.map +1 -0
  301. package/dist/standalone/calendar.d.ts +2 -0
  302. package/dist/standalone/calendar.d.ts.map +1 -0
  303. package/dist/standalone/card.d.ts +2 -0
  304. package/dist/standalone/card.d.ts.map +1 -0
  305. package/dist/standalone/chart.d.ts +2 -0
  306. package/dist/standalone/chart.d.ts.map +1 -0
  307. package/dist/standalone/checkbox.d.ts +2 -0
  308. package/dist/standalone/checkbox.d.ts.map +1 -0
  309. package/dist/standalone/collapsible.d.ts +2 -0
  310. package/dist/standalone/collapsible.d.ts.map +1 -0
  311. package/dist/standalone/collection.d.ts +2 -0
  312. package/dist/standalone/collection.d.ts.map +1 -0
  313. package/dist/standalone/color-picker.d.ts +2 -0
  314. package/dist/standalone/color-picker.d.ts.map +1 -0
  315. package/dist/standalone/combobox.d.ts +2 -0
  316. package/dist/standalone/combobox.d.ts.map +1 -0
  317. package/dist/standalone/command-palette.d.ts +2 -0
  318. package/dist/standalone/command-palette.d.ts.map +1 -0
  319. package/dist/standalone/command.d.ts +2 -0
  320. package/dist/standalone/command.d.ts.map +1 -0
  321. package/dist/standalone/container.d.ts +2 -0
  322. package/dist/standalone/container.d.ts.map +1 -0
  323. package/dist/standalone/context-menu.d.ts +2 -0
  324. package/dist/standalone/context-menu.d.ts.map +1 -0
  325. package/dist/standalone/control-group.d.ts +2 -0
  326. package/dist/standalone/control-group.d.ts.map +1 -0
  327. package/dist/standalone/data-table.d.ts +2 -0
  328. package/dist/standalone/data-table.d.ts.map +1 -0
  329. package/dist/standalone/date-field.d.ts +2 -0
  330. package/dist/standalone/date-field.d.ts.map +1 -0
  331. package/dist/standalone/date-picker.d.ts +2 -0
  332. package/dist/standalone/date-picker.d.ts.map +1 -0
  333. package/dist/standalone/date-range-picker.d.ts +2 -0
  334. package/dist/standalone/date-range-picker.d.ts.map +1 -0
  335. package/dist/standalone/date-range-time-picker.d.ts +2 -0
  336. package/dist/standalone/date-range-time-picker.d.ts.map +1 -0
  337. package/dist/standalone/date-time-picker.d.ts +2 -0
  338. package/dist/standalone/date-time-picker.d.ts.map +1 -0
  339. package/dist/standalone/description.d.ts +2 -0
  340. package/dist/standalone/description.d.ts.map +1 -0
  341. package/dist/standalone/dialog.d.ts +2 -0
  342. package/dist/standalone/dialog.d.ts.map +1 -0
  343. package/dist/standalone/direction-provider.d.ts +2 -0
  344. package/dist/standalone/direction-provider.d.ts.map +1 -0
  345. package/dist/standalone/dismissable-layer.d.ts +2 -0
  346. package/dist/standalone/dismissable-layer.d.ts.map +1 -0
  347. package/dist/standalone/dock.d.ts +2 -0
  348. package/dist/standalone/dock.d.ts.map +1 -0
  349. package/dist/standalone/drawer.d.ts +2 -0
  350. package/dist/standalone/drawer.d.ts.map +1 -0
  351. package/dist/standalone/dropdown.d.ts +2 -0
  352. package/dist/standalone/dropdown.d.ts.map +1 -0
  353. package/dist/standalone/dropzone.d.ts +2 -0
  354. package/dist/standalone/dropzone.d.ts.map +1 -0
  355. package/dist/standalone/empty-state.d.ts +2 -0
  356. package/dist/standalone/empty-state.d.ts.map +1 -0
  357. package/dist/standalone/field-error.d.ts +2 -0
  358. package/dist/standalone/field-error.d.ts.map +1 -0
  359. package/dist/standalone/field.d.ts +2 -0
  360. package/dist/standalone/field.d.ts.map +1 -0
  361. package/dist/standalone/fieldset.d.ts +2 -0
  362. package/dist/standalone/fieldset.d.ts.map +1 -0
  363. package/dist/standalone/file-upload.d.ts +2 -0
  364. package/dist/standalone/file-upload.d.ts.map +1 -0
  365. package/dist/standalone/flex.d.ts +2 -0
  366. package/dist/standalone/flex.d.ts.map +1 -0
  367. package/dist/standalone/floating-toolbar.d.ts +2 -0
  368. package/dist/standalone/floating-toolbar.d.ts.map +1 -0
  369. package/dist/standalone/focus-scope.d.ts +2 -0
  370. package/dist/standalone/focus-scope.d.ts.map +1 -0
  371. package/dist/standalone/form.d.ts +2 -0
  372. package/dist/standalone/form.d.ts.map +1 -0
  373. package/dist/standalone/gantt.d.ts +2 -0
  374. package/dist/standalone/gantt.d.ts.map +1 -0
  375. package/dist/standalone/grid.d.ts +2 -0
  376. package/dist/standalone/grid.d.ts.map +1 -0
  377. package/dist/standalone/hover-card.d.ts +2 -0
  378. package/dist/standalone/hover-card.d.ts.map +1 -0
  379. package/dist/standalone/icon-cloud.d.ts +2 -0
  380. package/dist/standalone/icon-cloud.d.ts.map +1 -0
  381. package/dist/standalone/icon.d.ts +2 -0
  382. package/dist/standalone/icon.d.ts.map +1 -0
  383. package/dist/standalone/inline-edit.d.ts +2 -0
  384. package/dist/standalone/inline-edit.d.ts.map +1 -0
  385. package/dist/standalone/input.d.ts +2 -0
  386. package/dist/standalone/input.d.ts.map +1 -0
  387. package/dist/standalone/label.d.ts +2 -0
  388. package/dist/standalone/label.d.ts.map +1 -0
  389. package/dist/standalone/layout.d.ts +2 -0
  390. package/dist/standalone/layout.d.ts.map +1 -0
  391. package/dist/standalone/listbox.d.ts +2 -0
  392. package/dist/standalone/listbox.d.ts.map +1 -0
  393. package/dist/standalone/marquee.d.ts +2 -0
  394. package/dist/standalone/marquee.d.ts.map +1 -0
  395. package/dist/standalone/masonry-grid.d.ts +2 -0
  396. package/dist/standalone/masonry-grid.d.ts.map +1 -0
  397. package/dist/standalone/menu.d.ts +2 -0
  398. package/dist/standalone/menu.d.ts.map +1 -0
  399. package/dist/standalone/menubar.d.ts +2 -0
  400. package/dist/standalone/menubar.d.ts.map +1 -0
  401. package/dist/standalone/meter.d.ts +2 -0
  402. package/dist/standalone/meter.d.ts.map +1 -0
  403. package/dist/standalone/multi-select.d.ts +2 -0
  404. package/dist/standalone/multi-select.d.ts.map +1 -0
  405. package/dist/standalone/navigation-menu.d.ts +2 -0
  406. package/dist/standalone/navigation-menu.d.ts.map +1 -0
  407. package/dist/standalone/number-field.d.ts +2 -0
  408. package/dist/standalone/number-field.d.ts.map +1 -0
  409. package/dist/standalone/number-ticker.d.ts +2 -0
  410. package/dist/standalone/number-ticker.d.ts.map +1 -0
  411. package/dist/standalone/odometer.d.ts +2 -0
  412. package/dist/standalone/odometer.d.ts.map +1 -0
  413. package/dist/standalone/orbiter.d.ts +2 -0
  414. package/dist/standalone/orbiter.d.ts.map +1 -0
  415. package/dist/standalone/pagination.d.ts +2 -0
  416. package/dist/standalone/pagination.d.ts.map +1 -0
  417. package/dist/standalone/panel-group.d.ts +2 -0
  418. package/dist/standalone/panel-group.d.ts.map +1 -0
  419. package/dist/standalone/panel.d.ts +2 -0
  420. package/dist/standalone/panel.d.ts.map +1 -0
  421. package/dist/standalone/password-field.d.ts +2 -0
  422. package/dist/standalone/password-field.d.ts.map +1 -0
  423. package/dist/standalone/pin-input.d.ts +2 -0
  424. package/dist/standalone/pin-input.d.ts.map +1 -0
  425. package/dist/standalone/placement-grid.d.ts +2 -0
  426. package/dist/standalone/placement-grid.d.ts.map +1 -0
  427. package/dist/standalone/plugin-panel.d.ts +2 -0
  428. package/dist/standalone/plugin-panel.d.ts.map +1 -0
  429. package/dist/standalone/popover.d.ts +2 -0
  430. package/dist/standalone/popover.d.ts.map +1 -0
  431. package/dist/standalone/portal.d.ts +2 -0
  432. package/dist/standalone/portal.d.ts.map +1 -0
  433. package/dist/standalone/positioner.d.ts +2 -0
  434. package/dist/standalone/positioner.d.ts.map +1 -0
  435. package/dist/standalone/presence.d.ts +2 -0
  436. package/dist/standalone/presence.d.ts.map +1 -0
  437. package/dist/standalone/progress.d.ts +2 -0
  438. package/dist/standalone/progress.d.ts.map +1 -0
  439. package/dist/standalone/quick-actions.d.ts +2 -0
  440. package/dist/standalone/quick-actions.d.ts.map +1 -0
  441. package/dist/standalone/radio-group.d.ts +2 -0
  442. package/dist/standalone/radio-group.d.ts.map +1 -0
  443. package/dist/standalone/rating.d.ts +2 -0
  444. package/dist/standalone/rating.d.ts.map +1 -0
  445. package/dist/standalone/roving-focus-group.d.ts +2 -0
  446. package/dist/standalone/roving-focus-group.d.ts.map +1 -0
  447. package/dist/standalone/scroll-area.d.ts +2 -0
  448. package/dist/standalone/scroll-area.d.ts.map +1 -0
  449. package/dist/standalone/section.d.ts +2 -0
  450. package/dist/standalone/section.d.ts.map +1 -0
  451. package/dist/standalone/select.d.ts +2 -0
  452. package/dist/standalone/select.d.ts.map +1 -0
  453. package/dist/standalone/selection-popup.d.ts +2 -0
  454. package/dist/standalone/selection-popup.d.ts.map +1 -0
  455. package/dist/standalone/separator.d.ts +2 -0
  456. package/dist/standalone/separator.d.ts.map +1 -0
  457. package/dist/standalone/sidebar.d.ts +2 -0
  458. package/dist/standalone/sidebar.d.ts.map +1 -0
  459. package/dist/standalone/skeleton.d.ts +2 -0
  460. package/dist/standalone/skeleton.d.ts.map +1 -0
  461. package/dist/standalone/slider.d.ts +2 -0
  462. package/dist/standalone/slider.d.ts.map +1 -0
  463. package/dist/standalone/slot.d.ts +2 -0
  464. package/dist/standalone/slot.d.ts.map +1 -0
  465. package/dist/standalone/spinning-text.d.ts +2 -0
  466. package/dist/standalone/spinning-text.d.ts.map +1 -0
  467. package/dist/standalone/split-button.d.ts +2 -0
  468. package/dist/standalone/split-button.d.ts.map +1 -0
  469. package/dist/standalone/splitter.d.ts +2 -0
  470. package/dist/standalone/splitter.d.ts.map +1 -0
  471. package/dist/standalone/stepper.d.ts +2 -0
  472. package/dist/standalone/stepper.d.ts.map +1 -0
  473. package/dist/standalone/switch.d.ts +2 -0
  474. package/dist/standalone/switch.d.ts.map +1 -0
  475. package/dist/standalone/table.d.ts +2 -0
  476. package/dist/standalone/table.d.ts.map +1 -0
  477. package/dist/standalone/tabs.d.ts +2 -0
  478. package/dist/standalone/tabs.d.ts.map +1 -0
  479. package/dist/standalone/tags-input.d.ts +2 -0
  480. package/dist/standalone/tags-input.d.ts.map +1 -0
  481. package/dist/standalone/textarea.d.ts +2 -0
  482. package/dist/standalone/textarea.d.ts.map +1 -0
  483. package/dist/standalone/time-field.d.ts +2 -0
  484. package/dist/standalone/time-field.d.ts.map +1 -0
  485. package/dist/standalone/time-picker.d.ts +2 -0
  486. package/dist/standalone/time-picker.d.ts.map +1 -0
  487. package/dist/standalone/timeline.d.ts +2 -0
  488. package/dist/standalone/timeline.d.ts.map +1 -0
  489. package/dist/standalone/toast.d.ts +2 -0
  490. package/dist/standalone/toast.d.ts.map +1 -0
  491. package/dist/standalone/toggle-group.d.ts +2 -0
  492. package/dist/standalone/toggle-group.d.ts.map +1 -0
  493. package/dist/standalone/toggle.d.ts +2 -0
  494. package/dist/standalone/toggle.d.ts.map +1 -0
  495. package/dist/standalone/toolbar.d.ts +2 -0
  496. package/dist/standalone/toolbar.d.ts.map +1 -0
  497. package/dist/standalone/tooltip.d.ts +2 -0
  498. package/dist/standalone/tooltip.d.ts.map +1 -0
  499. package/dist/standalone/transfer-list.d.ts +2 -0
  500. package/dist/standalone/transfer-list.d.ts.map +1 -0
  501. package/dist/standalone/tree-item.d.ts +2 -0
  502. package/dist/standalone/tree-item.d.ts.map +1 -0
  503. package/dist/standalone/tree.d.ts +2 -0
  504. package/dist/standalone/tree.d.ts.map +1 -0
  505. package/dist/standalone/visually-hidden.d.ts +2 -0
  506. package/dist/standalone/visually-hidden.d.ts.map +1 -0
  507. package/dist/standalone/wizard.d.ts +2 -0
  508. package/dist/standalone/wizard.d.ts.map +1 -0
  509. package/dist/stepper.cjs.js +337 -0
  510. package/dist/stepper.esm.js +578 -0
  511. package/dist/switch.cjs.js +397 -0
  512. package/dist/switch.esm.js +543 -0
  513. package/dist/table.cjs.js +212 -0
  514. package/dist/table.esm.js +432 -0
  515. package/dist/tabs.cjs.js +515 -0
  516. package/dist/tabs.esm.js +808 -0
  517. package/dist/tags-input.cjs.js +202 -0
  518. package/dist/tags-input.esm.js +436 -0
  519. package/dist/textarea.cjs.js +329 -0
  520. package/dist/textarea.esm.js +520 -0
  521. package/dist/theme.d.ts +1 -1
  522. package/dist/theme.d.ts.map +1 -1
  523. package/dist/time-field.cjs.js +142 -0
  524. package/dist/time-field.esm.js +387 -0
  525. package/dist/time-picker.cjs.js +284 -0
  526. package/dist/time-picker.esm.js +686 -0
  527. package/dist/timeline.cjs.js +198 -0
  528. package/dist/timeline.esm.js +248 -0
  529. package/dist/toast.cjs.js +234 -0
  530. package/dist/toast.esm.js +399 -0
  531. package/dist/toggle-group.cjs.js +131 -0
  532. package/dist/toggle-group.esm.js +382 -0
  533. package/dist/toggle.cjs.js +237 -0
  534. package/dist/toggle.esm.js +346 -0
  535. package/dist/toolbar.cjs.js +126 -0
  536. package/dist/toolbar.esm.js +240 -0
  537. package/dist/tooltip.cjs.js +159 -0
  538. package/dist/tooltip.esm.js +376 -0
  539. package/dist/transfer-list.cjs.js +734 -0
  540. package/dist/transfer-list.esm.js +969 -0
  541. package/dist/tree-0a7a8d05.js +39 -0
  542. package/dist/tree-dcd74a4a.mjs +294 -0
  543. package/dist/tree-item.cjs.js +103 -0
  544. package/dist/tree-item.esm.js +143 -0
  545. package/dist/tree.cjs.js +1 -0
  546. package/dist/tree.esm.js +7 -0
  547. package/dist/visually-hidden.cjs.js +42 -0
  548. package/dist/visually-hidden.esm.js +68 -0
  549. package/dist/wizard.cjs.js +677 -0
  550. package/dist/wizard.esm.js +1068 -0
  551. package/package.json +20 -1
@@ -0,0 +1,187 @@
1
+ import { E as n } from "./ElementBase-909688f3.mjs";
2
+ const o = `
3
+ :host {
4
+ display: contents;
5
+ color-scheme: light dark;
6
+ --ui-portal-color: var(--ui-color-text, inherit);
7
+ color: var(--ui-portal-color);
8
+ }
9
+
10
+ .source {
11
+ display: contents;
12
+ }
13
+
14
+ :host([headless]) .source {
15
+ display: block;
16
+ }
17
+
18
+ @media (prefers-reduced-motion: reduce) {
19
+ .source {
20
+ scroll-behavior: auto;
21
+ }
22
+ }
23
+
24
+ @media (prefers-contrast: more) {
25
+ :host {
26
+ --ui-portal-color: var(--ui-color-text, inherit);
27
+ }
28
+ }
29
+
30
+ @media (forced-colors: active) {
31
+ :host {
32
+ --ui-portal-color: CanvasText;
33
+ }
34
+ }
35
+ `;
36
+ function l(r) {
37
+ return r === "prepend" ? "prepend" : "append";
38
+ }
39
+ function a(r) {
40
+ var t;
41
+ return r.nodeType === Node.ELEMENT_NODE ? !0 : r.nodeType === Node.TEXT_NODE ? !!((t = r.textContent) != null && t.trim()) : !1;
42
+ }
43
+ function h(r) {
44
+ return r.nodeType === Node.ELEMENT_NODE || r.nodeType === Node.TEXT_NODE;
45
+ }
46
+ class u extends n {
47
+ constructor() {
48
+ super(), this._headless = !1, this._strategy = "append", this._target = null, this._slot = null, this._entries = [], this._syncing = !1, this._guardTimer = null, this._targetObserver = null, this._pendingSlotSync = !1, this._onSlotChange = this._onSlotChange.bind(this), this._onTargetMutations = this._onTargetMutations.bind(this);
49
+ }
50
+ static get observedAttributes() {
51
+ return ["target", "headless", "strategy", "disabled"];
52
+ }
53
+ connectedCallback() {
54
+ super.connectedCallback(), this._syncConfig(), this._mountAllFromSlot();
55
+ }
56
+ disconnectedCallback() {
57
+ this._guardTimer != null && (window.clearTimeout(this._guardTimer), this._guardTimer = null), this._slot && (this._slot.removeEventListener("slotchange", this._onSlotChange), this._slot = null), this._disconnectTargetObserver(), this._restoreAll(), super.disconnectedCallback();
58
+ }
59
+ attributeChangedCallback(t, e, s) {
60
+ if (e !== s) {
61
+ if (this._syncConfig(), this._headless) {
62
+ this._restoreAll();
63
+ return;
64
+ }
65
+ (t === "target" || t === "strategy" || t === "disabled" || t === "headless") && this._moveAllToTarget();
66
+ }
67
+ }
68
+ _syncConfig() {
69
+ this._headless = this.hasAttribute("headless") || this.hasAttribute("disabled"), this._strategy = l(this.getAttribute("strategy")), this._target = this._resolveTarget(), this._connectTargetObserver();
70
+ }
71
+ _resolveTarget() {
72
+ const t = this.getAttribute("target");
73
+ if (t) {
74
+ const e = document.querySelector(t);
75
+ if (e instanceof HTMLElement)
76
+ return e;
77
+ this.dispatchEvent(
78
+ new CustomEvent("target-missing", {
79
+ detail: { target: t },
80
+ bubbles: !0
81
+ })
82
+ );
83
+ }
84
+ return document.body;
85
+ }
86
+ _connectTargetObserver() {
87
+ this._disconnectTargetObserver(), !(!this._target || typeof MutationObserver > "u") && (this._targetObserver = new MutationObserver(this._onTargetMutations), this._targetObserver.observe(this._target, { childList: !0, subtree: !0 }));
88
+ }
89
+ _disconnectTargetObserver() {
90
+ this._targetObserver && (this._targetObserver.disconnect(), this._targetObserver = null);
91
+ }
92
+ _onTargetMutations() {
93
+ if (this._syncing)
94
+ return;
95
+ let t = !1;
96
+ this._entries = this._entries.filter((e) => {
97
+ if (e.node.isConnected)
98
+ return !0;
99
+ try {
100
+ e.anchor.parentNode && e.anchor.parentNode.removeChild(e.anchor);
101
+ } catch {
102
+ }
103
+ return t = !0, !1;
104
+ }), t && this.dispatchEvent(new CustomEvent("sync", { detail: { count: this._entries.length }, bubbles: !0 }));
105
+ }
106
+ _beginSync() {
107
+ this._syncing = !0, this._guardTimer != null && window.clearTimeout(this._guardTimer), this._guardTimer = window.setTimeout(() => {
108
+ this._syncing = !1, this._guardTimer = null, this._pendingSlotSync && (this._pendingSlotSync = !1, this._mountAllFromSlot());
109
+ }, 0);
110
+ }
111
+ _findEntry(t) {
112
+ return this._entries.find((e) => e.node === t);
113
+ }
114
+ _portalNode(t) {
115
+ if (!this._target || this._headless || !h(t) || this._findEntry(t) || !this.contains(t))
116
+ return;
117
+ const e = document.createComment("ui-portal-anchor"), s = t.parentNode;
118
+ s && (this._beginSync(), s.insertBefore(e, t), this._strategy === "prepend" ? this._target.insertBefore(t, this._target.firstChild) : this._target.appendChild(t), this._entries.push({ node: t, anchor: e }));
119
+ }
120
+ _restoreEntry(t) {
121
+ const { node: e, anchor: s } = t;
122
+ this._beginSync(), s.parentNode && (s.parentNode.insertBefore(e, s), s.parentNode.removeChild(s));
123
+ }
124
+ _restoreAll() {
125
+ if (!this._entries.length)
126
+ return;
127
+ const t = [...this._entries];
128
+ this._entries = [], t.forEach((e) => this._restoreEntry(e)), this.dispatchEvent(new CustomEvent("unmount", { detail: { count: t.length }, bubbles: !0 }));
129
+ }
130
+ _moveAllToTarget() {
131
+ if (this._headless) {
132
+ this._restoreAll();
133
+ return;
134
+ }
135
+ const t = [...this._entries];
136
+ this._entries = [], t.forEach((e) => {
137
+ const s = e.anchor, i = e.node;
138
+ s.parentNode && (this._beginSync(), this._strategy === "prepend" ? this._target.insertBefore(i, this._target.firstChild) : this._target.appendChild(i), this._entries.push({ node: i, anchor: s }));
139
+ }), this.dispatchEvent(new CustomEvent("mount", { detail: { count: this._entries.length }, bubbles: !0 }));
140
+ }
141
+ _mountAllFromSlot() {
142
+ if (this._headless)
143
+ return;
144
+ const t = this._slot || this.root.querySelector("slot");
145
+ if (!t)
146
+ return;
147
+ const e = t.assignedNodes({ flatten: !0 }).filter((s) => a(s));
148
+ e.forEach((s) => this._portalNode(s)), e.length && this.dispatchEvent(new CustomEvent("mount", { detail: { count: this._entries.length }, bubbles: !0 }));
149
+ }
150
+ _pruneDetachedEntries() {
151
+ this._entries.length && (this._entries = this._entries.filter((t) => {
152
+ if (t.node.isConnected)
153
+ return !0;
154
+ try {
155
+ t.anchor.parentNode && t.anchor.parentNode.removeChild(t.anchor);
156
+ } catch {
157
+ }
158
+ return !1;
159
+ }));
160
+ }
161
+ _onSlotChange() {
162
+ if (!this._headless) {
163
+ if (this._syncing) {
164
+ this._pendingSlotSync = !0;
165
+ return;
166
+ }
167
+ this._pruneDetachedEntries(), this._mountAllFromSlot();
168
+ }
169
+ }
170
+ render() {
171
+ this.setContent(`
172
+ <style>${o}</style>
173
+ <div class="source" part="source">
174
+ <slot></slot>
175
+ </div>
176
+ `), this._slot && (this._slot.removeEventListener("slotchange", this._onSlotChange), this._slot = null);
177
+ const t = this.root.querySelector("slot");
178
+ t && (this._slot = t, this._slot.addEventListener("slotchange", this._onSlotChange), this._mountAllFromSlot());
179
+ }
180
+ shouldRenderOnAttributeChange(t, e, s) {
181
+ return !1;
182
+ }
183
+ }
184
+ typeof customElements < "u" && !customElements.get("ui-portal") && customElements.define("ui-portal", u);
185
+ export {
186
+ u as UIPortal
187
+ };
@@ -0,0 +1 @@
1
+ "use strict";function w(e){return e instanceof HTMLElement}function v(e){return!!e&&typeof e.top=="number"&&typeof e.left=="number"}function g(e){return w(e)?e.getBoundingClientRect():v(e)?e:e.getBoundingClientRect()}function M(e){if(e instanceof HTMLElement){const i=e.getBoundingClientRect();return{top:i.top,left:i.left,right:i.right,bottom:i.bottom,width:i.width,height:i.height}}const n=window.innerWidth||document.documentElement.clientWidth||0,t=window.innerHeight||document.documentElement.clientHeight||0;return{top:0,left:0,right:n,bottom:t,width:n,height:t}}function h(e){const[n,t]=e.split("-");return{side:n,align:t||"center"}}function E(e){const{side:n,align:t}=h(e);return`${n==="top"?"bottom":n==="bottom"?"top":n==="left"?"right":"left"}${t==="center"?"":`-${t}`}`}function b(e,n,t,i,o){const{side:r,align:s}=h(t);let c=0,l=0;return r==="top"||r==="bottom"?(s==="start"?c=e.left:s==="end"?c=e.right-n.width:c=e.left+(e.width-n.width)/2,l=r==="top"?e.top-n.height-i:e.bottom+i,c+=o):(s==="start"?l=e.top:s==="end"?l=e.bottom-n.height:l=e.top+(e.height-n.height)/2,c=r==="left"?e.left-n.width-i:e.right+i,l+=o),{x:c,y:l}}function x(e,n,t,i){const{side:o}=h(e);return o==="top"?n.y<i.top+4:o==="bottom"?n.y+t.height>i.bottom-4:o==="left"?n.x<i.left+4:n.x+t.width>i.right-4}function m(e,n,t){return Math.min(t,Math.max(n,e))}function D(e,n,t,i){const{side:o}=h(n.placement),r=t.left+t.width/2,s=t.top+t.height/2;if(o==="top"||o==="bottom"){const l=Math.max(8,i.width-8),d=m(r-n.x,8,l);e.style.left=`${Math.round(d)}px`,e.style.top=""}else{const l=Math.max(8,i.height-8),d=m(s-n.y,8,l);e.style.top=`${Math.round(d)}px`,e.style.left=""}}function y(e,n,t={}){const i=g(e),o=w(n)?n.getBoundingClientRect():n,r=M(t.boundary??null),s=t.placement||"bottom",c=typeof t.offset=="number"?t.offset:8,l=typeof t.crossOffset=="number"?t.crossOffset:0;let d=s,f=b(i,o,d,c,l);if(t.flip&&x(d,f,o,r)){const u=E(d),a=b(i,o,u,c,l);x(u,a,o,r)||(d=u,f=a)}if(t.shift||t.fitViewport){const u=r.left+4,a=r.top+4,P=Math.max(u,r.right-o.width-4),p=Math.max(a,r.bottom-o.height-4);f.x=m(f.x,u,P),f.y=m(f.y,a,p)}return{x:f.x,y:f.y,placement:d,availableWidth:Math.max(0,r.right-f.x-4),availableHeight:Math.max(0,r.bottom-f.y-4)}}function W(e,n){return n!=="absolute"?e:{...e,x:e.x+window.scrollX,y:e.y+window.scrollY}}function A(e,n,t,i){let o=0,r=null,s=null;const c=()=>{o||(o=requestAnimationFrame(()=>{o=0,t()}))},l=()=>c();return i.observeWindowResize&&window.addEventListener("resize",l),i.observeScroll&&window.addEventListener("scroll",l,!0),typeof ResizeObserver<"u"&&(i.observeAnchorResize&&w(e)&&(r=new ResizeObserver(c),r.observe(e)),i.observeFloatingResize&&(s=new ResizeObserver(c),s.observe(n))),()=>{i.observeWindowResize&&window.removeEventListener("resize",l),i.observeScroll&&window.removeEventListener("scroll",l,!0),r&&r.disconnect(),s&&s.disconnect(),o&&cancelAnimationFrame(o)}}function I(e){if(!(e.floating instanceof HTMLElement))throw new Error("createPositioner requires a valid floating HTMLElement");const n=e.strategy||"fixed",t=e.floating,i=A(e.anchor,t,o,{observeWindowResize:e.observeWindowResize??!0,observeScroll:e.observeScroll??!0,observeAnchorResize:e.observeAnchorResize??!0,observeFloatingResize:e.observeFloatingResize??!(e.fitViewport||e.matchWidth)});function o(){var c;const r=y(e.anchor,t,e),s=W(r,n);if(t.style.position=n,t.style.left=`${Math.round(s.x)}px`,t.style.top=`${Math.round(s.y)}px`,t.style.setProperty("--ui-positioner-x",`${Math.round(s.x)}px`),t.style.setProperty("--ui-positioner-y",`${Math.round(s.y)}px`),e.matchWidth){const l=g(e.anchor);t.style.width=`${Math.round(l.width)}px`}return e.fitViewport&&(t.style.maxWidth=`${Math.round(r.availableWidth)}px`,t.style.maxHeight=`${Math.round(r.availableHeight)}px`),t.setAttribute("data-placement",r.placement),e.arrow instanceof HTMLElement&&D(e.arrow,r,g(e.anchor),t.getBoundingClientRect()),(c=e.onUpdate)==null||c.call(e,r),r}return o(),{update:o,destroy(){i()}}}exports.computePositionState=y;exports.createPositioner=I;
@@ -0,0 +1,132 @@
1
+ function w(e) {
2
+ return e instanceof HTMLElement;
3
+ }
4
+ function P(e) {
5
+ return !!e && typeof e.top == "number" && typeof e.left == "number";
6
+ }
7
+ function g(e) {
8
+ return w(e) ? e.getBoundingClientRect() : P(e) ? e : e.getBoundingClientRect();
9
+ }
10
+ function v(e) {
11
+ if (e instanceof HTMLElement) {
12
+ const i = e.getBoundingClientRect();
13
+ return {
14
+ top: i.top,
15
+ left: i.left,
16
+ right: i.right,
17
+ bottom: i.bottom,
18
+ width: i.width,
19
+ height: i.height
20
+ };
21
+ }
22
+ const n = window.innerWidth || document.documentElement.clientWidth || 0, t = window.innerHeight || document.documentElement.clientHeight || 0;
23
+ return {
24
+ top: 0,
25
+ left: 0,
26
+ right: n,
27
+ bottom: t,
28
+ width: n,
29
+ height: t
30
+ };
31
+ }
32
+ function h(e) {
33
+ const [n, t] = e.split("-");
34
+ return {
35
+ side: n,
36
+ align: t || "center"
37
+ };
38
+ }
39
+ function M(e) {
40
+ const { side: n, align: t } = h(e);
41
+ return `${n === "top" ? "bottom" : n === "bottom" ? "top" : n === "left" ? "right" : "left"}${t === "center" ? "" : `-${t}`}`;
42
+ }
43
+ function b(e, n, t, i, o) {
44
+ const { side: r, align: s } = h(t);
45
+ let c = 0, l = 0;
46
+ return r === "top" || r === "bottom" ? (s === "start" ? c = e.left : s === "end" ? c = e.right - n.width : c = e.left + (e.width - n.width) / 2, l = r === "top" ? e.top - n.height - i : e.bottom + i, c += o) : (s === "start" ? l = e.top : s === "end" ? l = e.bottom - n.height : l = e.top + (e.height - n.height) / 2, c = r === "left" ? e.left - n.width - i : e.right + i, l += o), { x: c, y: l };
47
+ }
48
+ function x(e, n, t, i) {
49
+ const { side: o } = h(e);
50
+ return o === "top" ? n.y < i.top + 4 : o === "bottom" ? n.y + t.height > i.bottom - 4 : o === "left" ? n.x < i.left + 4 : n.x + t.width > i.right - 4;
51
+ }
52
+ function m(e, n, t) {
53
+ return Math.min(t, Math.max(n, e));
54
+ }
55
+ function E(e, n, t, i) {
56
+ const { side: o } = h(n.placement), r = t.left + t.width / 2, s = t.top + t.height / 2;
57
+ if (o === "top" || o === "bottom") {
58
+ const l = Math.max(8, i.width - 8), d = m(r - n.x, 8, l);
59
+ e.style.left = `${Math.round(d)}px`, e.style.top = "";
60
+ } else {
61
+ const l = Math.max(8, i.height - 8), d = m(s - n.y, 8, l);
62
+ e.style.top = `${Math.round(d)}px`, e.style.left = "";
63
+ }
64
+ }
65
+ function D(e, n, t = {}) {
66
+ const i = g(e), o = w(n) ? n.getBoundingClientRect() : n, r = v(t.boundary ?? null), s = t.placement || "bottom", c = typeof t.offset == "number" ? t.offset : 8, l = typeof t.crossOffset == "number" ? t.crossOffset : 0;
67
+ let d = s, f = b(i, o, d, c, l);
68
+ if (t.flip && x(d, f, o, r)) {
69
+ const a = M(d), u = b(i, o, a, c, l);
70
+ x(a, u, o, r) || (d = a, f = u);
71
+ }
72
+ if (t.shift || t.fitViewport) {
73
+ const a = r.left + 4, u = r.top + 4, y = Math.max(a, r.right - o.width - 4), p = Math.max(u, r.bottom - o.height - 4);
74
+ f.x = m(f.x, a, y), f.y = m(f.y, u, p);
75
+ }
76
+ return {
77
+ x: f.x,
78
+ y: f.y,
79
+ placement: d,
80
+ availableWidth: Math.max(0, r.right - f.x - 4),
81
+ availableHeight: Math.max(0, r.bottom - f.y - 4)
82
+ };
83
+ }
84
+ function W(e, n) {
85
+ return n !== "absolute" ? e : {
86
+ ...e,
87
+ x: e.x + window.scrollX,
88
+ y: e.y + window.scrollY
89
+ };
90
+ }
91
+ function A(e, n, t, i) {
92
+ let o = 0, r = null, s = null;
93
+ const c = () => {
94
+ o || (o = requestAnimationFrame(() => {
95
+ o = 0, t();
96
+ }));
97
+ }, l = () => c();
98
+ return i.observeWindowResize && window.addEventListener("resize", l), i.observeScroll && window.addEventListener("scroll", l, !0), typeof ResizeObserver < "u" && (i.observeAnchorResize && w(e) && (r = new ResizeObserver(c), r.observe(e)), i.observeFloatingResize && (s = new ResizeObserver(c), s.observe(n))), () => {
99
+ i.observeWindowResize && window.removeEventListener("resize", l), i.observeScroll && window.removeEventListener("scroll", l, !0), r && r.disconnect(), s && s.disconnect(), o && cancelAnimationFrame(o);
100
+ };
101
+ }
102
+ function I(e) {
103
+ if (!(e.floating instanceof HTMLElement))
104
+ throw new Error("createPositioner requires a valid floating HTMLElement");
105
+ const n = e.strategy || "fixed", t = e.floating, i = A(e.anchor, t, o, {
106
+ observeWindowResize: e.observeWindowResize ?? !0,
107
+ observeScroll: e.observeScroll ?? !0,
108
+ observeAnchorResize: e.observeAnchorResize ?? !0,
109
+ // When the positioner constrains the floating box, observing that same box
110
+ // can create resize feedback loops in real browsers.
111
+ observeFloatingResize: e.observeFloatingResize ?? !(e.fitViewport || e.matchWidth)
112
+ });
113
+ function o() {
114
+ var c;
115
+ const r = D(e.anchor, t, e), s = W(r, n);
116
+ if (t.style.position = n, t.style.left = `${Math.round(s.x)}px`, t.style.top = `${Math.round(s.y)}px`, t.style.setProperty("--ui-positioner-x", `${Math.round(s.x)}px`), t.style.setProperty("--ui-positioner-y", `${Math.round(s.y)}px`), e.matchWidth) {
117
+ const l = g(e.anchor);
118
+ t.style.width = `${Math.round(l.width)}px`;
119
+ }
120
+ return e.fitViewport && (t.style.maxWidth = `${Math.round(r.availableWidth)}px`, t.style.maxHeight = `${Math.round(r.availableHeight)}px`), t.setAttribute("data-placement", r.placement), e.arrow instanceof HTMLElement && E(e.arrow, r, g(e.anchor), t.getBoundingClientRect()), (c = e.onUpdate) == null || c.call(e, r), r;
121
+ }
122
+ return o(), {
123
+ update: o,
124
+ destroy() {
125
+ i();
126
+ }
127
+ };
128
+ }
129
+ export {
130
+ I as a,
131
+ D as c
132
+ };
@@ -0,0 +1,6 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./ElementBase-1b301e7f.js"),a=require("./positioner-accc6e5f.js"),h=`
2
+ :host {
3
+ display: contents;
4
+ color-scheme: light dark;
5
+ }
6
+ `;function l(s,t=0){const e=Number(s);return Number.isFinite(e)?e:t}function i(s){if(s==null)return!1;const t=s.toLowerCase();return t!=="false"&&t!=="0"&&t!=="off"}function f(s){return new Set(["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"]).has(s)?s:"bottom"}function d(s){return s==="absolute"?"absolute":"fixed"}class c extends u.ElementBase{constructor(){super(...arguments),this._positioner=null,this._observer=null}static get observedAttributes(){return["open","placement","strategy","offset","cross-offset","flip","shift","match-width","fit-viewport","anchor","headless"]}connectedCallback(){super.connectedCallback(),this._observer=new MutationObserver(()=>this._syncPositioner()),this._observer.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot","id"]}),this._syncPositioner()}disconnectedCallback(){var t;(t=this._observer)==null||t.disconnect(),this._observer=null,this._destroyPositioner(),super.disconnectedCallback()}attributeChangedCallback(t,e,o){e!==o&&this._syncPositioner()}open(){this.setAttribute("open","")}close(){this.removeAttribute("open")}updatePosition(){var t;(t=this._positioner)==null||t.update()}_destroyPositioner(){var t;(t=this._positioner)==null||t.destroy(),this._positioner=null}_resolveAnchor(){const t=this.getAttribute("anchor");if(t){const o=this.getRootNode(),r=o instanceof ShadowRoot||o instanceof Document?o.querySelector(t):null;if(r instanceof HTMLElement)return r;const n=document.querySelector(t);if(n instanceof HTMLElement)return n}const e=this.querySelector('[slot="anchor"]');return e instanceof HTMLElement?e:null}_resolveFloating(){const t=this.querySelector('[slot="content"]');return t instanceof HTMLElement?t:Array.from(this.children).find(e=>e.getAttribute("slot")!=="anchor")}_syncPositioner(){if(!this.isConnected)return;if(this.hasAttribute("headless")||!this.hasAttribute("open")){this._destroyPositioner();return}const t=this._resolveAnchor(),e=this._resolveFloating();if(!(t instanceof HTMLElement)||!(e instanceof HTMLElement)){this._destroyPositioner();return}this._destroyPositioner(),this._positioner=a.createPositioner({anchor:t,floating:e,placement:f(this.getAttribute("placement")),strategy:d(this.getAttribute("strategy")),offset:l(this.getAttribute("offset"),8),crossOffset:l(this.getAttribute("cross-offset"),0),flip:!this.hasAttribute("flip")||i(this.getAttribute("flip")),shift:!this.hasAttribute("shift")||i(this.getAttribute("shift")),matchWidth:i(this.getAttribute("match-width")),fitViewport:i(this.getAttribute("fit-viewport")),arrow:this.querySelector('[slot="arrow"], .arrow'),onUpdate:o=>{this.dispatchEvent(new CustomEvent("position-change",{detail:o,bubbles:!0,composed:!0}))}})}render(){this.setContent(`<style>${h}</style><slot name="anchor"></slot><slot name="content"></slot><slot></slot>`)}shouldRenderOnAttributeChange(){return!1}}typeof customElements<"u"&&!customElements.get("ui-positioner")&&customElements.define("ui-positioner",c);exports.UIPositioner=c;
@@ -0,0 +1,137 @@
1
+ import { E as c } from "./ElementBase-909688f3.mjs";
2
+ import { a } from "./positioner-fbd61bf1.mjs";
3
+ const h = `
4
+ :host {
5
+ display: contents;
6
+ color-scheme: light dark;
7
+ }
8
+ `;
9
+ function l(s, t = 0) {
10
+ const e = Number(s);
11
+ return Number.isFinite(e) ? e : t;
12
+ }
13
+ function i(s) {
14
+ if (s == null)
15
+ return !1;
16
+ const t = s.toLowerCase();
17
+ return t !== "false" && t !== "0" && t !== "off";
18
+ }
19
+ function u(s) {
20
+ return (/* @__PURE__ */ new Set([
21
+ "top",
22
+ "top-start",
23
+ "top-end",
24
+ "right",
25
+ "right-start",
26
+ "right-end",
27
+ "bottom",
28
+ "bottom-start",
29
+ "bottom-end",
30
+ "left",
31
+ "left-start",
32
+ "left-end"
33
+ ])).has(s) ? s : "bottom";
34
+ }
35
+ function f(s) {
36
+ return s === "absolute" ? "absolute" : "fixed";
37
+ }
38
+ class d extends c {
39
+ constructor() {
40
+ super(...arguments), this._positioner = null, this._observer = null;
41
+ }
42
+ static get observedAttributes() {
43
+ return [
44
+ "open",
45
+ "placement",
46
+ "strategy",
47
+ "offset",
48
+ "cross-offset",
49
+ "flip",
50
+ "shift",
51
+ "match-width",
52
+ "fit-viewport",
53
+ "anchor",
54
+ "headless"
55
+ ];
56
+ }
57
+ connectedCallback() {
58
+ super.connectedCallback(), this._observer = new MutationObserver(() => this._syncPositioner()), this._observer.observe(this, { childList: !0, subtree: !0, attributes: !0, attributeFilter: ["slot", "id"] }), this._syncPositioner();
59
+ }
60
+ disconnectedCallback() {
61
+ var t;
62
+ (t = this._observer) == null || t.disconnect(), this._observer = null, this._destroyPositioner(), super.disconnectedCallback();
63
+ }
64
+ attributeChangedCallback(t, e, o) {
65
+ e !== o && this._syncPositioner();
66
+ }
67
+ open() {
68
+ this.setAttribute("open", "");
69
+ }
70
+ close() {
71
+ this.removeAttribute("open");
72
+ }
73
+ updatePosition() {
74
+ var t;
75
+ (t = this._positioner) == null || t.update();
76
+ }
77
+ _destroyPositioner() {
78
+ var t;
79
+ (t = this._positioner) == null || t.destroy(), this._positioner = null;
80
+ }
81
+ _resolveAnchor() {
82
+ const t = this.getAttribute("anchor");
83
+ if (t) {
84
+ const o = this.getRootNode(), r = o instanceof ShadowRoot || o instanceof Document ? o.querySelector(t) : null;
85
+ if (r instanceof HTMLElement)
86
+ return r;
87
+ const n = document.querySelector(t);
88
+ if (n instanceof HTMLElement)
89
+ return n;
90
+ }
91
+ const e = this.querySelector('[slot="anchor"]');
92
+ return e instanceof HTMLElement ? e : null;
93
+ }
94
+ _resolveFloating() {
95
+ const t = this.querySelector('[slot="content"]');
96
+ return t instanceof HTMLElement ? t : Array.from(this.children).find((e) => e.getAttribute("slot") !== "anchor");
97
+ }
98
+ _syncPositioner() {
99
+ if (!this.isConnected)
100
+ return;
101
+ if (this.hasAttribute("headless") || !this.hasAttribute("open")) {
102
+ this._destroyPositioner();
103
+ return;
104
+ }
105
+ const t = this._resolveAnchor(), e = this._resolveFloating();
106
+ if (!(t instanceof HTMLElement) || !(e instanceof HTMLElement)) {
107
+ this._destroyPositioner();
108
+ return;
109
+ }
110
+ this._destroyPositioner(), this._positioner = a({
111
+ anchor: t,
112
+ floating: e,
113
+ placement: u(this.getAttribute("placement")),
114
+ strategy: f(this.getAttribute("strategy")),
115
+ offset: l(this.getAttribute("offset"), 8),
116
+ crossOffset: l(this.getAttribute("cross-offset"), 0),
117
+ flip: !this.hasAttribute("flip") || i(this.getAttribute("flip")),
118
+ shift: !this.hasAttribute("shift") || i(this.getAttribute("shift")),
119
+ matchWidth: i(this.getAttribute("match-width")),
120
+ fitViewport: i(this.getAttribute("fit-viewport")),
121
+ arrow: this.querySelector('[slot="arrow"], .arrow'),
122
+ onUpdate: (o) => {
123
+ this.dispatchEvent(new CustomEvent("position-change", { detail: o, bubbles: !0, composed: !0 }));
124
+ }
125
+ });
126
+ }
127
+ render() {
128
+ this.setContent(`<style>${h}</style><slot name="anchor"></slot><slot name="content"></slot><slot></slot>`);
129
+ }
130
+ shouldRenderOnAttributeChange() {
131
+ return !1;
132
+ }
133
+ }
134
+ typeof customElements < "u" && !customElements.get("ui-positioner") && customElements.define("ui-positioner", d);
135
+ export {
136
+ d as UIPositioner
137
+ };
@@ -0,0 +1,164 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./ElementBase-1b301e7f.js"),l=`
2
+ :host {
3
+ --ui-presence-duration-enter: 180ms;
4
+ --ui-presence-duration-exit: 150ms;
5
+ --ui-presence-ease-enter: cubic-bezier(0.2, 0.9, 0.24, 1);
6
+ --ui-presence-ease-exit: cubic-bezier(0.4, 0, 0.2, 1);
7
+ --ui-presence-scale-enter: 1;
8
+ --ui-presence-scale-exit: 0.96;
9
+ --ui-presence-slide-distance: 14px;
10
+ --ui-presence-filter-enter: none;
11
+ --ui-presence-filter-exit: none;
12
+ --ui-presence-perspective: 860px;
13
+ --ui-presence-color: var(--ui-color-text, inherit);
14
+ display: contents;
15
+ color: var(--ui-presence-color);
16
+ color-scheme: light dark;
17
+ }
18
+
19
+ .presence {
20
+ display: block;
21
+ transform-origin: center;
22
+ opacity: 0;
23
+ transform: translate3d(0, 0, 0) scale(var(--ui-presence-scale-exit));
24
+ filter: var(--ui-presence-filter-exit);
25
+ pointer-events: none;
26
+ transition:
27
+ opacity var(--ui-presence-duration-enter) var(--ui-presence-ease-enter),
28
+ transform var(--ui-presence-duration-enter) var(--ui-presence-ease-enter),
29
+ filter var(--ui-presence-duration-enter) var(--ui-presence-ease-enter);
30
+ will-change: opacity, transform, filter;
31
+ perspective: var(--ui-presence-perspective);
32
+ }
33
+
34
+ .presence[data-state="entering"],
35
+ .presence[data-state="present"] {
36
+ opacity: 1;
37
+ transform: translate3d(0, 0, 0) scale(var(--ui-presence-scale-enter));
38
+ filter: var(--ui-presence-filter-enter);
39
+ pointer-events: auto;
40
+ }
41
+
42
+ .presence[data-state="exiting"] {
43
+ opacity: 0;
44
+ transform: translate3d(0, 0, 0) scale(var(--ui-presence-scale-exit));
45
+ filter: var(--ui-presence-filter-exit);
46
+ pointer-events: none;
47
+ transition-duration: var(--ui-presence-duration-exit);
48
+ transition-timing-function: var(--ui-presence-ease-exit);
49
+ }
50
+
51
+ :host([mode="fade"]) {
52
+ --ui-presence-scale-enter: 1;
53
+ --ui-presence-scale-exit: 1;
54
+ }
55
+
56
+ :host([mode="scale"]) {
57
+ --ui-presence-scale-enter: 1;
58
+ --ui-presence-scale-exit: 0.96;
59
+ }
60
+
61
+ :host([mode="slide-up"]) .presence[data-state="hidden"],
62
+ :host([mode="slide-up"]) .presence[data-state="exiting"] {
63
+ transform: translate3d(0, var(--ui-presence-slide-distance), 0) scale(var(--ui-presence-scale-exit));
64
+ }
65
+
66
+ :host([mode="slide-down"]) .presence[data-state="hidden"],
67
+ :host([mode="slide-down"]) .presence[data-state="exiting"] {
68
+ transform: translate3d(0, calc(var(--ui-presence-slide-distance) * -1), 0) scale(var(--ui-presence-scale-exit));
69
+ }
70
+
71
+ :host([mode="slide-left"]) .presence[data-state="hidden"],
72
+ :host([mode="slide-left"]) .presence[data-state="exiting"] {
73
+ transform: translate3d(var(--ui-presence-slide-distance), 0, 0) scale(var(--ui-presence-scale-exit));
74
+ }
75
+
76
+ :host([mode="slide-right"]) .presence[data-state="hidden"],
77
+ :host([mode="slide-right"]) .presence[data-state="exiting"] {
78
+ transform: translate3d(calc(var(--ui-presence-slide-distance) * -1), 0, 0) scale(var(--ui-presence-scale-exit));
79
+ }
80
+
81
+ :host([mode="blur"]) {
82
+ --ui-presence-filter-enter: none;
83
+ --ui-presence-filter-exit: blur(10px);
84
+ --ui-presence-scale-exit: 0.985;
85
+ }
86
+
87
+ :host([mode="flip"]) .presence {
88
+ transform-style: preserve-3d;
89
+ backface-visibility: hidden;
90
+ }
91
+
92
+ :host([mode="flip"]) .presence[data-state="hidden"],
93
+ :host([mode="flip"]) .presence[data-state="exiting"] {
94
+ transform: rotateX(-12deg) scale(0.985);
95
+ }
96
+
97
+ :host([size="sm"]) {
98
+ --ui-presence-slide-distance: 8px;
99
+ --ui-presence-duration-enter: 140ms;
100
+ --ui-presence-duration-exit: 120ms;
101
+ }
102
+
103
+ :host([size="lg"]) {
104
+ --ui-presence-slide-distance: 22px;
105
+ --ui-presence-duration-enter: 240ms;
106
+ --ui-presence-duration-exit: 200ms;
107
+ }
108
+
109
+ :host([variant="soft"]) {
110
+ --ui-presence-scale-exit: 0.98;
111
+ }
112
+
113
+ :host([variant="glass"]) {
114
+ --ui-presence-filter-enter: none;
115
+ --ui-presence-filter-exit: blur(8px);
116
+ --ui-presence-scale-exit: 0.99;
117
+ }
118
+
119
+ :host([variant="contrast"]) {
120
+ --ui-presence-duration-enter: 150ms;
121
+ --ui-presence-duration-exit: 120ms;
122
+ --ui-presence-ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
123
+ --ui-presence-ease-exit: cubic-bezier(0.4, 0, 1, 1);
124
+ }
125
+
126
+ :host([headless]) .presence {
127
+ display: none !important;
128
+ }
129
+
130
+ @media (prefers-reduced-motion: reduce) {
131
+ .presence {
132
+ transition: none !important;
133
+ transform: none !important;
134
+ filter: none !important;
135
+ }
136
+ }
137
+
138
+ @media (prefers-contrast: more) {
139
+ .presence {
140
+ filter: none !important;
141
+ }
142
+ }
143
+
144
+ @media (forced-colors: active) {
145
+ :host {
146
+ --ui-presence-color: CanvasText;
147
+ }
148
+
149
+ .presence {
150
+ forced-color-adjust: none;
151
+ color: CanvasText;
152
+ }
153
+ }
154
+ `;function a(e,t){if(e==null)return t;const s=String(e).toLowerCase();return s!=="false"&&s!=="0"}function r(e,t){if(e==null||e==="")return t;const s=Number(e);return Number.isFinite(s)?s:t}function u(e){return e==="scale"||e==="slide-up"||e==="slide-down"||e==="slide-left"||e==="slide-right"||e==="blur"||e==="flip"?e:"fade"}function p(e){return e==="sm"||e==="lg"?e:"md"}function h(e){return e==="soft"||e==="glass"||e==="contrast"?e:"default"}class c extends d.ElementBase{constructor(){super(),this._state="hidden",this._present=!1,this._headless=!1,this._hasEntered=!1,this._delayTimer=null,this._presenceEl=null,this._onTransitionEnd=this._onTransitionEnd.bind(this)}static get observedAttributes(){return["present","headless","mode","size","variant","keep-mounted","lazy","enter-duration","exit-duration","delay"]}connectedCallback(){super.connectedCallback(),this._syncFromAttributes(),this._syncStateWithPresence()}disconnectedCallback(){this._delayTimer!=null&&(window.clearTimeout(this._delayTimer),this._delayTimer=null),this._presenceEl&&(this._presenceEl.removeEventListener("transitionend",this._onTransitionEnd),this._presenceEl=null),super.disconnectedCallback()}attributeChangedCallback(t,s,i){s!==i&&(this._syncFromAttributes(),this._syncStateWithPresence(),this._syncNodePresentation())}show(){this.setAttribute("present","")}hide(){this.removeAttribute("present")}toggle(){this._present?this.hide():this.show()}_syncFromAttributes(){this._present=this.hasAttribute("present"),this._headless=this.hasAttribute("headless"),u(this.getAttribute("mode")),p(this.getAttribute("size")),h(this.getAttribute("variant"))}_syncStateWithPresence(){if(this._headless){this._setState("hidden");return}this._present?this._enter():this._exit()}_clearDelay(){this._delayTimer!=null&&(window.clearTimeout(this._delayTimer),this._delayTimer=null)}_enter(){if(this._clearDelay(),a(this.getAttribute("lazy"),!1)&&this._hasEntered){this._setState("present"),this._dispatch("after-enter");return}const s=Math.max(0,r(this.getAttribute("delay"),0));this._dispatch("before-enter");const i=()=>{this._setState("entering"),this._dispatch("enter"),requestAnimationFrame(()=>{this._setState("present"),this._hasEntered=!0})};if(s>0){this._setState("hidden"),this._delayTimer=window.setTimeout(()=>{this._delayTimer=null,i()},s);return}i()}_exit(){this._clearDelay(),this._state!=="hidden"&&(this._dispatch("before-exit"),this._setState("exiting"),this._dispatch("exit"))}_setState(t){if(this._state===t)return;this._state=t;const s=this._presenceEl||this.root.querySelector(".presence");this._presenceEl=s,s&&s.setAttribute("data-state",t),this._syncNodePresentation(),this.setAttribute("data-state",t)}_syncNodePresentation(){const t=this._presenceEl||this.root.querySelector(".presence");if(!t)return;this._presenceEl=t;const s=a(this.getAttribute("keep-mounted"),!1),i=Math.max(0,r(this.getAttribute("enter-duration"),180)),o=Math.max(0,r(this.getAttribute("exit-duration"),150)),n=this._state!=="hidden"||s;t.style.setProperty("--ui-presence-duration-enter",`${i}ms`),t.style.setProperty("--ui-presence-duration-exit",`${o}ms`),t.style.display=n?"block":"none"}_onTransitionEnd(t){if(t.target!==t.currentTarget)return;if(this._state==="entering"||this._state==="present"){this._setState("present"),this._dispatch("after-enter");return}if(this._state!=="exiting")return;a(this.getAttribute("keep-mounted"),!1)||this._setState("hidden"),this._dispatch("after-exit")}_dispatch(t){this.dispatchEvent(new CustomEvent(t,{detail:{state:this._state},bubbles:!0}))}render(){const t=a(this.getAttribute("keep-mounted"),!1),s=Math.max(0,r(this.getAttribute("enter-duration"),180)),i=Math.max(0,r(this.getAttribute("exit-duration"),150)),o=this._state!=="hidden"||t;this.setContent(`
155
+ <style>${l}</style>
156
+ <div
157
+ class="presence"
158
+ part="presence"
159
+ data-state="${this._state}"
160
+ style="display:${o?"block":"none"};--ui-presence-duration-enter:${s}ms;--ui-presence-duration-exit:${i}ms;"
161
+ >
162
+ <slot></slot>
163
+ </div>
164
+ `);const n=this.root.querySelector(".presence");n&&(this._presenceEl=n,n.removeEventListener("transitionend",this._onTransitionEnd),n.addEventListener("transitionend",this._onTransitionEnd),this._syncNodePresentation())}shouldRenderOnAttributeChange(t,s,i){return!1}}typeof customElements<"u"&&!customElements.get("ui-presence")&&customElements.define("ui-presence",c);exports.UIPresence=c;