@editora/ui-core 0.1.9 → 0.1.12

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 (526) 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/accordion.cjs.js +360 -0
  5. package/dist/accordion.esm.js +647 -0
  6. package/dist/alert-dialog.cjs.js +567 -0
  7. package/dist/alert-dialog.esm.js +1043 -0
  8. package/dist/alert.cjs.js +351 -0
  9. package/dist/alert.esm.js +450 -0
  10. package/dist/anchor.cjs.js +30 -0
  11. package/dist/anchor.esm.js +62 -0
  12. package/dist/animated-beam.cjs.js +720 -0
  13. package/dist/animated-beam.esm.js +1540 -0
  14. package/dist/animated-list.cjs.js +672 -0
  15. package/dist/animated-list.esm.js +1137 -0
  16. package/dist/animated-text.cjs.js +683 -0
  17. package/dist/animated-text.esm.js +1020 -0
  18. package/dist/app-header.cjs.js +345 -0
  19. package/dist/app-header.esm.js +398 -0
  20. package/dist/aspect-ratio.cjs.js +294 -0
  21. package/dist/aspect-ratio.esm.js +416 -0
  22. package/dist/avatar.cjs.js +365 -0
  23. package/dist/avatar.esm.js +513 -0
  24. package/dist/badge.cjs.js +432 -0
  25. package/dist/badge.esm.js +554 -0
  26. package/dist/block-controls.cjs.js +347 -0
  27. package/dist/block-controls.esm.js +556 -0
  28. package/dist/box.cjs.js +226 -0
  29. package/dist/box.esm.js +556 -0
  30. package/dist/breadcrumb.cjs.js +288 -0
  31. package/dist/breadcrumb.esm.js +523 -0
  32. package/dist/button.cjs.js +521 -0
  33. package/dist/button.esm.js +671 -0
  34. package/dist/calendar-2c11b824.mjs +1685 -0
  35. package/dist/calendar-a8735e40.js +741 -0
  36. package/dist/calendar.cjs.js +1 -0
  37. package/dist/calendar.esm.js +11 -0
  38. package/dist/card.cjs.js +306 -0
  39. package/dist/card.esm.js +378 -0
  40. package/dist/chart.cjs.js +783 -0
  41. package/dist/chart.esm.js +1369 -0
  42. package/dist/checkbox.cjs.js +338 -0
  43. package/dist/checkbox.esm.js +455 -0
  44. package/dist/collapsible.cjs.js +381 -0
  45. package/dist/collapsible.esm.js +548 -0
  46. package/dist/collection-a1aac0c6.mjs +56 -0
  47. package/dist/collection-a2969ad2.js +1 -0
  48. package/dist/collection.cjs.js +1 -0
  49. package/dist/collection.esm.js +136 -0
  50. package/dist/color-picker.cjs.js +803 -0
  51. package/dist/color-picker.esm.js +1809 -0
  52. package/dist/combobox.cjs.js +525 -0
  53. package/dist/combobox.esm.js +1023 -0
  54. package/dist/command-palette.cjs.js +67 -0
  55. package/dist/command-palette.esm.js +181 -0
  56. package/dist/command.cjs.js +130 -0
  57. package/dist/command.esm.js +307 -0
  58. package/dist/components/ui-icon.d.ts.map +1 -1
  59. package/dist/components/ui-split-button.d.ts +2 -0
  60. package/dist/components/ui-split-button.d.ts.map +1 -1
  61. package/dist/container.cjs.js +115 -0
  62. package/dist/container.esm.js +156 -0
  63. package/dist/context-menu.cjs.js +357 -0
  64. package/dist/context-menu.esm.js +1204 -0
  65. package/dist/control-group.cjs.js +80 -0
  66. package/dist/control-group.esm.js +110 -0
  67. package/dist/data-table.cjs.js +682 -0
  68. package/dist/data-table.esm.js +1660 -0
  69. package/dist/date-field.cjs.js +142 -0
  70. package/dist/date-field.esm.js +384 -0
  71. package/dist/date-picker.cjs.js +570 -0
  72. package/dist/date-picker.esm.js +1067 -0
  73. package/dist/date-range-picker.cjs.js +455 -0
  74. package/dist/date-range-picker.esm.js +973 -0
  75. package/dist/date-range-time-picker.cjs.js +573 -0
  76. package/dist/date-range-time-picker.esm.js +1137 -0
  77. package/dist/date-time-picker.cjs.js +495 -0
  78. package/dist/date-time-picker.esm.js +1062 -0
  79. package/dist/date-time-utils-5cf58cd0.js +1 -0
  80. package/dist/date-time-utils-bdceb7af.mjs +273 -0
  81. package/dist/description.cjs.js +85 -0
  82. package/dist/description.esm.js +136 -0
  83. package/dist/dialog.cjs.js +406 -0
  84. package/dist/dialog.esm.js +822 -0
  85. package/dist/direction-provider.cjs.js +30 -0
  86. package/dist/direction-provider.esm.js +74 -0
  87. package/dist/dismissable-layer-193e3bed.js +1 -0
  88. package/dist/dismissable-layer-9c7e6b58.mjs +112 -0
  89. package/dist/dismissable-layer.cjs.js +6 -0
  90. package/dist/dismissable-layer.esm.js +115 -0
  91. package/dist/dock.cjs.js +347 -0
  92. package/dist/dock.esm.js +826 -0
  93. package/dist/drawer.cjs.js +538 -0
  94. package/dist/drawer.esm.js +872 -0
  95. package/dist/dropdown.cjs.js +511 -0
  96. package/dist/dropdown.esm.js +1084 -0
  97. package/dist/dropzone.cjs.js +1 -0
  98. package/dist/dropzone.esm.js +11 -0
  99. package/dist/empty-state.cjs.js +169 -0
  100. package/dist/empty-state.esm.js +199 -0
  101. package/dist/field-error.cjs.js +74 -0
  102. package/dist/field-error.esm.js +125 -0
  103. package/dist/field.cjs.js +398 -0
  104. package/dist/field.esm.js +542 -0
  105. package/dist/fieldset.cjs.js +214 -0
  106. package/dist/fieldset.esm.js +298 -0
  107. package/dist/file-upload.cjs.js +353 -0
  108. package/dist/file-upload.esm.js +740 -0
  109. package/dist/flex.cjs.js +54 -0
  110. package/dist/flex.esm.js +168 -0
  111. package/dist/floating-toolbar.cjs.js +223 -0
  112. package/dist/floating-toolbar.esm.js +513 -0
  113. package/dist/focus-scope-103833ee.mjs +147 -0
  114. package/dist/focus-scope-2b12b4e7.js +1 -0
  115. package/dist/focus-scope.cjs.js +6 -0
  116. package/dist/focus-scope.esm.js +97 -0
  117. package/dist/form.cjs.js +377 -0
  118. package/dist/form.esm.js +862 -0
  119. package/dist/gantt.cjs.js +157 -0
  120. package/dist/gantt.esm.js +214 -0
  121. package/dist/grid.cjs.js +67 -0
  122. package/dist/grid.esm.js +211 -0
  123. package/dist/hover-card.cjs.js +284 -0
  124. package/dist/hover-card.esm.js +470 -0
  125. package/dist/icon-9e9da03b.js +207 -0
  126. package/dist/icon-cloud.cjs.js +495 -0
  127. package/dist/icon-cloud.esm.js +828 -0
  128. package/dist/icon-e2a85cc1.mjs +368 -0
  129. package/dist/icon.cjs.js +1 -0
  130. package/dist/icon.esm.js +6 -0
  131. package/dist/icons.d.ts +1 -1
  132. package/dist/icons.d.ts.map +1 -1
  133. package/dist/index.cjs.js +1 -36010
  134. package/dist/index.esm.js +440 -66615
  135. package/dist/inline-edit.cjs.js +118 -0
  136. package/dist/inline-edit.esm.js +206 -0
  137. package/dist/input.cjs.js +535 -0
  138. package/dist/input.esm.js +790 -0
  139. package/dist/label.cjs.js +195 -0
  140. package/dist/label.esm.js +301 -0
  141. package/dist/layout.cjs.js +266 -0
  142. package/dist/layout.esm.js +408 -0
  143. package/dist/listbox-308789a0.mjs +210 -0
  144. package/dist/listbox-ef2f708e.js +46 -0
  145. package/dist/listbox.cjs.js +1 -0
  146. package/dist/listbox.esm.js +6 -0
  147. package/dist/marquee.cjs.js +513 -0
  148. package/dist/marquee.esm.js +767 -0
  149. package/dist/masonry-grid.cjs.js +65 -0
  150. package/dist/masonry-grid.esm.js +180 -0
  151. package/dist/menu-item-styles-27fdbac4.mjs +181 -0
  152. package/dist/menu-item-styles-83ad1e22.js +152 -0
  153. package/dist/menu.cjs.js +275 -0
  154. package/dist/menu.esm.js +743 -0
  155. package/dist/menubar.cjs.js +455 -0
  156. package/dist/menubar.esm.js +1195 -0
  157. package/dist/meter.cjs.js +241 -0
  158. package/dist/meter.esm.js +334 -0
  159. package/dist/multi-select.cjs.js +549 -0
  160. package/dist/multi-select.esm.js +914 -0
  161. package/dist/navigation-menu.cjs.js +382 -0
  162. package/dist/navigation-menu.esm.js +614 -0
  163. package/dist/number-field.cjs.js +351 -0
  164. package/dist/number-field.esm.js +771 -0
  165. package/dist/number-ticker.cjs.js +209 -0
  166. package/dist/number-ticker.esm.js +749 -0
  167. package/dist/odometer.cjs.js +313 -0
  168. package/dist/odometer.esm.js +565 -0
  169. package/dist/orbiter.cjs.js +495 -0
  170. package/dist/orbiter.esm.js +831 -0
  171. package/dist/overlayManager-86454af7.mjs +58 -0
  172. package/dist/overlayManager-ece06517.js +1 -0
  173. package/dist/pagination.cjs.js +201 -0
  174. package/dist/pagination.esm.js +297 -0
  175. package/dist/panel-group-40254cdd.js +36 -0
  176. package/dist/panel-group-a376cc5e.mjs +326 -0
  177. package/dist/panel-group.cjs.js +1 -0
  178. package/dist/panel-group.esm.js +7 -0
  179. package/dist/panel.cjs.js +22 -0
  180. package/dist/panel.esm.js +46 -0
  181. package/dist/password-field.cjs.js +626 -0
  182. package/dist/password-field.esm.js +925 -0
  183. package/dist/pin-input.cjs.js +185 -0
  184. package/dist/pin-input.esm.js +412 -0
  185. package/dist/placement-grid.cjs.js +99 -0
  186. package/dist/placement-grid.esm.js +486 -0
  187. package/dist/plugin-panel.cjs.js +131 -0
  188. package/dist/plugin-panel.esm.js +173 -0
  189. package/dist/popover.cjs.js +286 -0
  190. package/dist/popover.esm.js +483 -0
  191. package/dist/portal-1cf392ca.mjs +114 -0
  192. package/dist/portal-d8d7fbca.js +1 -0
  193. package/dist/portal.cjs.js +39 -0
  194. package/dist/portal.esm.js +187 -0
  195. package/dist/positioner-accc6e5f.js +1 -0
  196. package/dist/positioner-fbd61bf1.mjs +132 -0
  197. package/dist/positioner.cjs.js +6 -0
  198. package/dist/positioner.esm.js +137 -0
  199. package/dist/presence.cjs.js +164 -0
  200. package/dist/presence.esm.js +301 -0
  201. package/dist/progress.cjs.js +329 -0
  202. package/dist/progress.esm.js +453 -0
  203. package/dist/quick-actions.cjs.js +202 -0
  204. package/dist/quick-actions.esm.js +357 -0
  205. package/dist/radio-group.cjs.js +257 -0
  206. package/dist/radio-group.esm.js +477 -0
  207. package/dist/rating.cjs.js +355 -0
  208. package/dist/rating.esm.js +637 -0
  209. package/dist/roving-focus-group-4350c9a7.mjs +50 -0
  210. package/dist/roving-focus-group-5c059bf9.js +1 -0
  211. package/dist/roving-focus-group.cjs.js +1 -0
  212. package/dist/roving-focus-group.esm.js +72 -0
  213. package/dist/{runtime-3cc1c386.mjs → runtime-4ac0107b.mjs} +348 -459
  214. package/dist/runtime-5f282bc8.js +1 -0
  215. package/dist/runtime.cjs.js +1 -1
  216. package/dist/runtime.esm.js +24 -23
  217. package/dist/scroll-area.cjs.js +294 -0
  218. package/dist/scroll-area.esm.js +478 -0
  219. package/dist/scroll-lock-48793569.js +1 -0
  220. package/dist/scroll-lock-9de6d328.mjs +53 -0
  221. package/dist/section.cjs.js +167 -0
  222. package/dist/section.esm.js +202 -0
  223. package/dist/select.cjs.js +799 -0
  224. package/dist/select.esm.js +1266 -0
  225. package/dist/selection-popup.cjs.js +203 -0
  226. package/dist/selection-popup.esm.js +392 -0
  227. package/dist/separator.cjs.js +221 -0
  228. package/dist/separator.esm.js +241 -0
  229. package/dist/sidebar.cjs.js +769 -0
  230. package/dist/sidebar.esm.js +1219 -0
  231. package/dist/skeleton.cjs.js +205 -0
  232. package/dist/skeleton.esm.js +249 -0
  233. package/dist/slider.cjs.js +493 -0
  234. package/dist/slider.esm.js +694 -0
  235. package/dist/slot.cjs.js +159 -0
  236. package/dist/slot.esm.js +227 -0
  237. package/dist/sortable.cjs.js +855 -1
  238. package/dist/sortable.esm.js +2176 -2
  239. package/dist/spinning-text.cjs.js +395 -0
  240. package/dist/spinning-text.esm.js +635 -0
  241. package/dist/split-button.cjs.js +485 -0
  242. package/dist/split-button.esm.js +709 -0
  243. package/dist/splitter.cjs.js +70 -0
  244. package/dist/splitter.esm.js +105 -0
  245. package/dist/standalone/accordion.d.ts +2 -0
  246. package/dist/standalone/accordion.d.ts.map +1 -0
  247. package/dist/standalone/alert-dialog.d.ts +2 -0
  248. package/dist/standalone/alert-dialog.d.ts.map +1 -0
  249. package/dist/standalone/alert.d.ts +2 -0
  250. package/dist/standalone/alert.d.ts.map +1 -0
  251. package/dist/standalone/anchor.d.ts +2 -0
  252. package/dist/standalone/anchor.d.ts.map +1 -0
  253. package/dist/standalone/animated-beam.d.ts +2 -0
  254. package/dist/standalone/animated-beam.d.ts.map +1 -0
  255. package/dist/standalone/animated-list.d.ts +2 -0
  256. package/dist/standalone/animated-list.d.ts.map +1 -0
  257. package/dist/standalone/animated-text.d.ts +2 -0
  258. package/dist/standalone/animated-text.d.ts.map +1 -0
  259. package/dist/standalone/app-header.d.ts +2 -0
  260. package/dist/standalone/app-header.d.ts.map +1 -0
  261. package/dist/standalone/aspect-ratio.d.ts +2 -0
  262. package/dist/standalone/aspect-ratio.d.ts.map +1 -0
  263. package/dist/standalone/avatar.d.ts +2 -0
  264. package/dist/standalone/avatar.d.ts.map +1 -0
  265. package/dist/standalone/badge.d.ts +2 -0
  266. package/dist/standalone/badge.d.ts.map +1 -0
  267. package/dist/standalone/block-controls.d.ts +2 -0
  268. package/dist/standalone/block-controls.d.ts.map +1 -0
  269. package/dist/standalone/box.d.ts +2 -0
  270. package/dist/standalone/box.d.ts.map +1 -0
  271. package/dist/standalone/breadcrumb.d.ts +2 -0
  272. package/dist/standalone/breadcrumb.d.ts.map +1 -0
  273. package/dist/standalone/button.d.ts +2 -0
  274. package/dist/standalone/button.d.ts.map +1 -0
  275. package/dist/standalone/calendar.d.ts +2 -0
  276. package/dist/standalone/calendar.d.ts.map +1 -0
  277. package/dist/standalone/card.d.ts +2 -0
  278. package/dist/standalone/card.d.ts.map +1 -0
  279. package/dist/standalone/chart.d.ts +2 -0
  280. package/dist/standalone/chart.d.ts.map +1 -0
  281. package/dist/standalone/checkbox.d.ts +2 -0
  282. package/dist/standalone/checkbox.d.ts.map +1 -0
  283. package/dist/standalone/collapsible.d.ts +2 -0
  284. package/dist/standalone/collapsible.d.ts.map +1 -0
  285. package/dist/standalone/collection.d.ts +2 -0
  286. package/dist/standalone/collection.d.ts.map +1 -0
  287. package/dist/standalone/color-picker.d.ts +2 -0
  288. package/dist/standalone/color-picker.d.ts.map +1 -0
  289. package/dist/standalone/combobox.d.ts +2 -0
  290. package/dist/standalone/combobox.d.ts.map +1 -0
  291. package/dist/standalone/command-palette.d.ts +2 -0
  292. package/dist/standalone/command-palette.d.ts.map +1 -0
  293. package/dist/standalone/command.d.ts +2 -0
  294. package/dist/standalone/command.d.ts.map +1 -0
  295. package/dist/standalone/container.d.ts +2 -0
  296. package/dist/standalone/container.d.ts.map +1 -0
  297. package/dist/standalone/context-menu.d.ts +2 -0
  298. package/dist/standalone/context-menu.d.ts.map +1 -0
  299. package/dist/standalone/control-group.d.ts +2 -0
  300. package/dist/standalone/control-group.d.ts.map +1 -0
  301. package/dist/standalone/data-table.d.ts +2 -0
  302. package/dist/standalone/data-table.d.ts.map +1 -0
  303. package/dist/standalone/date-field.d.ts +2 -0
  304. package/dist/standalone/date-field.d.ts.map +1 -0
  305. package/dist/standalone/date-picker.d.ts +2 -0
  306. package/dist/standalone/date-picker.d.ts.map +1 -0
  307. package/dist/standalone/date-range-picker.d.ts +2 -0
  308. package/dist/standalone/date-range-picker.d.ts.map +1 -0
  309. package/dist/standalone/date-range-time-picker.d.ts +2 -0
  310. package/dist/standalone/date-range-time-picker.d.ts.map +1 -0
  311. package/dist/standalone/date-time-picker.d.ts +2 -0
  312. package/dist/standalone/date-time-picker.d.ts.map +1 -0
  313. package/dist/standalone/description.d.ts +2 -0
  314. package/dist/standalone/description.d.ts.map +1 -0
  315. package/dist/standalone/dialog.d.ts +2 -0
  316. package/dist/standalone/dialog.d.ts.map +1 -0
  317. package/dist/standalone/direction-provider.d.ts +2 -0
  318. package/dist/standalone/direction-provider.d.ts.map +1 -0
  319. package/dist/standalone/dismissable-layer.d.ts +2 -0
  320. package/dist/standalone/dismissable-layer.d.ts.map +1 -0
  321. package/dist/standalone/dock.d.ts +2 -0
  322. package/dist/standalone/dock.d.ts.map +1 -0
  323. package/dist/standalone/drawer.d.ts +2 -0
  324. package/dist/standalone/drawer.d.ts.map +1 -0
  325. package/dist/standalone/dropdown.d.ts +2 -0
  326. package/dist/standalone/dropdown.d.ts.map +1 -0
  327. package/dist/standalone/dropzone.d.ts +2 -0
  328. package/dist/standalone/dropzone.d.ts.map +1 -0
  329. package/dist/standalone/empty-state.d.ts +2 -0
  330. package/dist/standalone/empty-state.d.ts.map +1 -0
  331. package/dist/standalone/field-error.d.ts +2 -0
  332. package/dist/standalone/field-error.d.ts.map +1 -0
  333. package/dist/standalone/field.d.ts +2 -0
  334. package/dist/standalone/field.d.ts.map +1 -0
  335. package/dist/standalone/fieldset.d.ts +2 -0
  336. package/dist/standalone/fieldset.d.ts.map +1 -0
  337. package/dist/standalone/file-upload.d.ts +2 -0
  338. package/dist/standalone/file-upload.d.ts.map +1 -0
  339. package/dist/standalone/flex.d.ts +2 -0
  340. package/dist/standalone/flex.d.ts.map +1 -0
  341. package/dist/standalone/floating-toolbar.d.ts +2 -0
  342. package/dist/standalone/floating-toolbar.d.ts.map +1 -0
  343. package/dist/standalone/focus-scope.d.ts +2 -0
  344. package/dist/standalone/focus-scope.d.ts.map +1 -0
  345. package/dist/standalone/form.d.ts +2 -0
  346. package/dist/standalone/form.d.ts.map +1 -0
  347. package/dist/standalone/gantt.d.ts +2 -0
  348. package/dist/standalone/gantt.d.ts.map +1 -0
  349. package/dist/standalone/grid.d.ts +2 -0
  350. package/dist/standalone/grid.d.ts.map +1 -0
  351. package/dist/standalone/hover-card.d.ts +2 -0
  352. package/dist/standalone/hover-card.d.ts.map +1 -0
  353. package/dist/standalone/icon-cloud.d.ts +2 -0
  354. package/dist/standalone/icon-cloud.d.ts.map +1 -0
  355. package/dist/standalone/icon.d.ts +2 -0
  356. package/dist/standalone/icon.d.ts.map +1 -0
  357. package/dist/standalone/inline-edit.d.ts +2 -0
  358. package/dist/standalone/inline-edit.d.ts.map +1 -0
  359. package/dist/standalone/input.d.ts +2 -0
  360. package/dist/standalone/input.d.ts.map +1 -0
  361. package/dist/standalone/label.d.ts +2 -0
  362. package/dist/standalone/label.d.ts.map +1 -0
  363. package/dist/standalone/layout.d.ts +2 -0
  364. package/dist/standalone/layout.d.ts.map +1 -0
  365. package/dist/standalone/listbox.d.ts +2 -0
  366. package/dist/standalone/listbox.d.ts.map +1 -0
  367. package/dist/standalone/marquee.d.ts +2 -0
  368. package/dist/standalone/marquee.d.ts.map +1 -0
  369. package/dist/standalone/masonry-grid.d.ts +2 -0
  370. package/dist/standalone/masonry-grid.d.ts.map +1 -0
  371. package/dist/standalone/menu.d.ts +2 -0
  372. package/dist/standalone/menu.d.ts.map +1 -0
  373. package/dist/standalone/menubar.d.ts +2 -0
  374. package/dist/standalone/menubar.d.ts.map +1 -0
  375. package/dist/standalone/meter.d.ts +2 -0
  376. package/dist/standalone/meter.d.ts.map +1 -0
  377. package/dist/standalone/multi-select.d.ts +2 -0
  378. package/dist/standalone/multi-select.d.ts.map +1 -0
  379. package/dist/standalone/navigation-menu.d.ts +2 -0
  380. package/dist/standalone/navigation-menu.d.ts.map +1 -0
  381. package/dist/standalone/number-field.d.ts +2 -0
  382. package/dist/standalone/number-field.d.ts.map +1 -0
  383. package/dist/standalone/number-ticker.d.ts +2 -0
  384. package/dist/standalone/number-ticker.d.ts.map +1 -0
  385. package/dist/standalone/odometer.d.ts +2 -0
  386. package/dist/standalone/odometer.d.ts.map +1 -0
  387. package/dist/standalone/orbiter.d.ts +2 -0
  388. package/dist/standalone/orbiter.d.ts.map +1 -0
  389. package/dist/standalone/pagination.d.ts +2 -0
  390. package/dist/standalone/pagination.d.ts.map +1 -0
  391. package/dist/standalone/panel-group.d.ts +2 -0
  392. package/dist/standalone/panel-group.d.ts.map +1 -0
  393. package/dist/standalone/panel.d.ts +2 -0
  394. package/dist/standalone/panel.d.ts.map +1 -0
  395. package/dist/standalone/password-field.d.ts +2 -0
  396. package/dist/standalone/password-field.d.ts.map +1 -0
  397. package/dist/standalone/pin-input.d.ts +2 -0
  398. package/dist/standalone/pin-input.d.ts.map +1 -0
  399. package/dist/standalone/placement-grid.d.ts +2 -0
  400. package/dist/standalone/placement-grid.d.ts.map +1 -0
  401. package/dist/standalone/plugin-panel.d.ts +2 -0
  402. package/dist/standalone/plugin-panel.d.ts.map +1 -0
  403. package/dist/standalone/popover.d.ts +2 -0
  404. package/dist/standalone/popover.d.ts.map +1 -0
  405. package/dist/standalone/portal.d.ts +2 -0
  406. package/dist/standalone/portal.d.ts.map +1 -0
  407. package/dist/standalone/positioner.d.ts +2 -0
  408. package/dist/standalone/positioner.d.ts.map +1 -0
  409. package/dist/standalone/presence.d.ts +2 -0
  410. package/dist/standalone/presence.d.ts.map +1 -0
  411. package/dist/standalone/progress.d.ts +2 -0
  412. package/dist/standalone/progress.d.ts.map +1 -0
  413. package/dist/standalone/quick-actions.d.ts +2 -0
  414. package/dist/standalone/quick-actions.d.ts.map +1 -0
  415. package/dist/standalone/radio-group.d.ts +2 -0
  416. package/dist/standalone/radio-group.d.ts.map +1 -0
  417. package/dist/standalone/rating.d.ts +2 -0
  418. package/dist/standalone/rating.d.ts.map +1 -0
  419. package/dist/standalone/roving-focus-group.d.ts +2 -0
  420. package/dist/standalone/roving-focus-group.d.ts.map +1 -0
  421. package/dist/standalone/scroll-area.d.ts +2 -0
  422. package/dist/standalone/scroll-area.d.ts.map +1 -0
  423. package/dist/standalone/section.d.ts +2 -0
  424. package/dist/standalone/section.d.ts.map +1 -0
  425. package/dist/standalone/select.d.ts +2 -0
  426. package/dist/standalone/select.d.ts.map +1 -0
  427. package/dist/standalone/selection-popup.d.ts +2 -0
  428. package/dist/standalone/selection-popup.d.ts.map +1 -0
  429. package/dist/standalone/separator.d.ts +2 -0
  430. package/dist/standalone/separator.d.ts.map +1 -0
  431. package/dist/standalone/sidebar.d.ts +2 -0
  432. package/dist/standalone/sidebar.d.ts.map +1 -0
  433. package/dist/standalone/skeleton.d.ts +2 -0
  434. package/dist/standalone/skeleton.d.ts.map +1 -0
  435. package/dist/standalone/slider.d.ts +2 -0
  436. package/dist/standalone/slider.d.ts.map +1 -0
  437. package/dist/standalone/slot.d.ts +2 -0
  438. package/dist/standalone/slot.d.ts.map +1 -0
  439. package/dist/standalone/spinning-text.d.ts +2 -0
  440. package/dist/standalone/spinning-text.d.ts.map +1 -0
  441. package/dist/standalone/split-button.d.ts +2 -0
  442. package/dist/standalone/split-button.d.ts.map +1 -0
  443. package/dist/standalone/splitter.d.ts +2 -0
  444. package/dist/standalone/splitter.d.ts.map +1 -0
  445. package/dist/standalone/stepper.d.ts +2 -0
  446. package/dist/standalone/stepper.d.ts.map +1 -0
  447. package/dist/standalone/switch.d.ts +2 -0
  448. package/dist/standalone/switch.d.ts.map +1 -0
  449. package/dist/standalone/table.d.ts +2 -0
  450. package/dist/standalone/table.d.ts.map +1 -0
  451. package/dist/standalone/tabs.d.ts +2 -0
  452. package/dist/standalone/tabs.d.ts.map +1 -0
  453. package/dist/standalone/tags-input.d.ts +2 -0
  454. package/dist/standalone/tags-input.d.ts.map +1 -0
  455. package/dist/standalone/textarea.d.ts +2 -0
  456. package/dist/standalone/textarea.d.ts.map +1 -0
  457. package/dist/standalone/time-field.d.ts +2 -0
  458. package/dist/standalone/time-field.d.ts.map +1 -0
  459. package/dist/standalone/time-picker.d.ts +2 -0
  460. package/dist/standalone/time-picker.d.ts.map +1 -0
  461. package/dist/standalone/timeline.d.ts +2 -0
  462. package/dist/standalone/timeline.d.ts.map +1 -0
  463. package/dist/standalone/toast.d.ts +2 -0
  464. package/dist/standalone/toast.d.ts.map +1 -0
  465. package/dist/standalone/toggle-group.d.ts +2 -0
  466. package/dist/standalone/toggle-group.d.ts.map +1 -0
  467. package/dist/standalone/toggle.d.ts +2 -0
  468. package/dist/standalone/toggle.d.ts.map +1 -0
  469. package/dist/standalone/toolbar.d.ts +2 -0
  470. package/dist/standalone/toolbar.d.ts.map +1 -0
  471. package/dist/standalone/tooltip.d.ts +2 -0
  472. package/dist/standalone/tooltip.d.ts.map +1 -0
  473. package/dist/standalone/transfer-list.d.ts +2 -0
  474. package/dist/standalone/transfer-list.d.ts.map +1 -0
  475. package/dist/standalone/tree-item.d.ts +2 -0
  476. package/dist/standalone/tree-item.d.ts.map +1 -0
  477. package/dist/standalone/tree.d.ts +2 -0
  478. package/dist/standalone/tree.d.ts.map +1 -0
  479. package/dist/standalone/visually-hidden.d.ts +2 -0
  480. package/dist/standalone/visually-hidden.d.ts.map +1 -0
  481. package/dist/standalone/wizard.d.ts +2 -0
  482. package/dist/standalone/wizard.d.ts.map +1 -0
  483. package/dist/stepper.cjs.js +337 -0
  484. package/dist/stepper.esm.js +578 -0
  485. package/dist/switch.cjs.js +397 -0
  486. package/dist/switch.esm.js +543 -0
  487. package/dist/table.cjs.js +212 -0
  488. package/dist/table.esm.js +432 -0
  489. package/dist/tabs.cjs.js +515 -0
  490. package/dist/tabs.esm.js +808 -0
  491. package/dist/tags-input.cjs.js +202 -0
  492. package/dist/tags-input.esm.js +436 -0
  493. package/dist/textarea.cjs.js +329 -0
  494. package/dist/textarea.esm.js +520 -0
  495. package/dist/time-field.cjs.js +142 -0
  496. package/dist/time-field.esm.js +387 -0
  497. package/dist/time-picker.cjs.js +284 -0
  498. package/dist/time-picker.esm.js +686 -0
  499. package/dist/timeline.cjs.js +198 -0
  500. package/dist/timeline.esm.js +248 -0
  501. package/dist/toast.cjs.js +234 -0
  502. package/dist/toast.esm.js +399 -0
  503. package/dist/toggle-group.cjs.js +131 -0
  504. package/dist/toggle-group.esm.js +382 -0
  505. package/dist/toggle.cjs.js +237 -0
  506. package/dist/toggle.esm.js +346 -0
  507. package/dist/toolbar.cjs.js +126 -0
  508. package/dist/toolbar.esm.js +240 -0
  509. package/dist/tooltip.cjs.js +159 -0
  510. package/dist/tooltip.esm.js +376 -0
  511. package/dist/transfer-list.cjs.js +734 -0
  512. package/dist/transfer-list.esm.js +969 -0
  513. package/dist/tree-0a7a8d05.js +39 -0
  514. package/dist/tree-dcd74a4a.mjs +294 -0
  515. package/dist/tree-item.cjs.js +103 -0
  516. package/dist/tree-item.esm.js +143 -0
  517. package/dist/tree.cjs.js +1 -0
  518. package/dist/tree.esm.js +7 -0
  519. package/dist/visually-hidden.cjs.js +42 -0
  520. package/dist/visually-hidden.esm.js +68 -0
  521. package/dist/wizard.cjs.js +677 -0
  522. package/dist/wizard.esm.js +1068 -0
  523. package/package.json +7 -1
  524. package/dist/runtime-41717c1e.js +0 -1
  525. package/dist/sortable-06a3bd6c.js +0 -855
  526. package/dist/sortable-23bf110b.mjs +0 -2254
@@ -0,0 +1,749 @@
1
+ import { E as M } from "./ElementBase-909688f3.mjs";
2
+ const y = 1200, A = 0, I = "ease-out", O = "decimal", v = 0, S = 0.4, F = 6, L = /* @__PURE__ */ new Set([
3
+ "linear",
4
+ "ease-in",
5
+ "ease-out",
6
+ "ease-in-out",
7
+ "spring",
8
+ "bounce",
9
+ "overshoot"
10
+ ]), N = /* @__PURE__ */ new Set(["decimal", "currency"]), $ = /* @__PURE__ */ new Set(["symbol", "narrowSymbol", "code", "name"]), R = /* @__PURE__ */ new Set(["standard", "compact"]), G = /* @__PURE__ */ new Set(["short", "long"]), U = /* @__PURE__ */ new Set(["auto", "always", "exceptZero", "never"]), H = /* @__PURE__ */ new Set(["interpolate", "odometer"]), Q = /* @__PURE__ */ new Set(["immediate", "visible"]), q = /* @__PURE__ */ new Set(["start", "end", "center"]), a = {
11
+ sm: {
12
+ fontSize: "14px",
13
+ letterSpacing: "-0.02em",
14
+ lineHeight: "1"
15
+ },
16
+ md: {
17
+ fontSize: "22px",
18
+ letterSpacing: "-0.04em",
19
+ lineHeight: "0.98"
20
+ },
21
+ lg: {
22
+ fontSize: "36px",
23
+ letterSpacing: "-0.05em",
24
+ lineHeight: "0.94"
25
+ },
26
+ xl: {
27
+ fontSize: "56px",
28
+ letterSpacing: "-0.06em",
29
+ lineHeight: "0.9"
30
+ }
31
+ }, B = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], Y = `
32
+ :host {
33
+ --ui-number-ticker-color: var(--ui-color-text, var(--ui-text, #0f172a));
34
+ --ui-number-ticker-accent: var(--ui-color-primary, var(--ui-primary, #2563eb));
35
+ --ui-number-ticker-font-size: ${a.md.fontSize};
36
+ --ui-number-ticker-font-weight: 780;
37
+ --ui-number-ticker-letter-spacing: ${a.md.letterSpacing};
38
+ --ui-number-ticker-line-height: ${a.md.lineHeight};
39
+ --ui-number-ticker-align: start;
40
+ --ui-number-ticker-roll-duration: 520ms;
41
+ --ui-number-ticker-roll-ease: cubic-bezier(0.22, 1, 0.36, 1);
42
+ --ui-number-ticker-transition:
43
+ color 180ms cubic-bezier(0.2, 0.9, 0.24, 1),
44
+ text-shadow 180ms cubic-bezier(0.2, 0.9, 0.24, 1);
45
+
46
+ display: inline-grid;
47
+ min-inline-size: 0;
48
+ color: var(--ui-number-ticker-color);
49
+ font-family: "IBM Plex Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
50
+ font-variant-numeric: tabular-nums lining-nums;
51
+ box-sizing: border-box;
52
+ }
53
+
54
+ :host([size="sm"]),
55
+ :host([size="1"]) {
56
+ --ui-number-ticker-font-size: ${a.sm.fontSize};
57
+ --ui-number-ticker-letter-spacing: ${a.sm.letterSpacing};
58
+ --ui-number-ticker-line-height: ${a.sm.lineHeight};
59
+ }
60
+
61
+ :host([size="md"]),
62
+ :host([size="2"]) {
63
+ --ui-number-ticker-font-size: ${a.md.fontSize};
64
+ --ui-number-ticker-letter-spacing: ${a.md.letterSpacing};
65
+ --ui-number-ticker-line-height: ${a.md.lineHeight};
66
+ }
67
+
68
+ :host([size="lg"]),
69
+ :host([size="3"]) {
70
+ --ui-number-ticker-font-size: ${a.lg.fontSize};
71
+ --ui-number-ticker-letter-spacing: ${a.lg.letterSpacing};
72
+ --ui-number-ticker-line-height: ${a.lg.lineHeight};
73
+ }
74
+
75
+ :host([size="xl"]),
76
+ :host([size="4"]) {
77
+ --ui-number-ticker-font-size: ${a.xl.fontSize};
78
+ --ui-number-ticker-letter-spacing: ${a.xl.letterSpacing};
79
+ --ui-number-ticker-line-height: ${a.xl.lineHeight};
80
+ }
81
+
82
+ :host([tone="neutral"]) {
83
+ --ui-number-ticker-color: #64748b;
84
+ }
85
+
86
+ :host([tone="info"]) {
87
+ --ui-number-ticker-color: #0ea5e9;
88
+ }
89
+
90
+ :host([tone="success"]) {
91
+ --ui-number-ticker-color: var(--ui-color-success, #16a34a);
92
+ }
93
+
94
+ :host([tone="warning"]) {
95
+ --ui-number-ticker-color: var(--ui-color-warning, #d97706);
96
+ }
97
+
98
+ :host([tone="danger"]) {
99
+ --ui-number-ticker-color: var(--ui-color-danger, #dc2626);
100
+ }
101
+
102
+ :host([align="left"]),
103
+ :host([align="start"]) {
104
+ --ui-number-ticker-align: start;
105
+ }
106
+
107
+ :host([align="center"]) {
108
+ --ui-number-ticker-align: center;
109
+ }
110
+
111
+ :host([align="right"]),
112
+ :host([align="end"]) {
113
+ --ui-number-ticker-align: end;
114
+ }
115
+
116
+ :host([monospace]) .value {
117
+ font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
118
+ }
119
+
120
+ :host([tabular="false"]) {
121
+ font-variant-numeric: lining-nums proportional-nums;
122
+ }
123
+
124
+ .ticker {
125
+ display: inline-flex;
126
+ justify-content: var(--ui-number-ticker-align);
127
+ align-items: baseline;
128
+ min-inline-size: 0;
129
+ }
130
+
131
+ .value {
132
+ display: inline-flex;
133
+ align-items: baseline;
134
+ min-inline-size: 0;
135
+ color: var(--ui-number-ticker-color);
136
+ font-size: var(--ui-number-ticker-font-size);
137
+ font-weight: var(--ui-number-ticker-font-weight);
138
+ line-height: var(--ui-number-ticker-line-height);
139
+ letter-spacing: var(--ui-number-ticker-letter-spacing);
140
+ white-space: nowrap;
141
+ text-wrap: nowrap;
142
+ text-shadow:
143
+ 0 1px 0 color-mix(in srgb, #ffffff 52%, transparent),
144
+ 0 12px 30px color-mix(in srgb, var(--ui-number-ticker-accent) 8%, transparent);
145
+ transition: var(--ui-number-ticker-transition);
146
+ }
147
+
148
+ .value[data-mode="odometer"] {
149
+ align-items: center;
150
+ gap: 0.02em;
151
+ }
152
+
153
+ .char {
154
+ display: inline-flex;
155
+ align-items: center;
156
+ justify-content: center;
157
+ min-inline-size: 0;
158
+ }
159
+
160
+ .symbol {
161
+ opacity: 0.88;
162
+ }
163
+
164
+ .digit {
165
+ display: inline-flex;
166
+ align-items: center;
167
+ block-size: 1em;
168
+ overflow: hidden;
169
+ contain: content;
170
+ }
171
+
172
+ .digit-window {
173
+ display: inline-flex;
174
+ block-size: 1em;
175
+ overflow: hidden;
176
+ transform: translateZ(0);
177
+ }
178
+
179
+ .digit-track {
180
+ display: grid;
181
+ grid-auto-rows: 1em;
182
+ will-change: transform;
183
+ transition-property: transform;
184
+ transition-duration: var(--ui-number-ticker-roll-duration);
185
+ transition-timing-function: var(--ui-number-ticker-roll-ease);
186
+ transition-delay: var(--ui-number-ticker-digit-delay, 0ms);
187
+ transform: translate3d(0, calc(var(--ui-number-ticker-digit-value, 0) * -1em), 0);
188
+ }
189
+
190
+ .digit-track > span {
191
+ display: grid;
192
+ place-items: center;
193
+ block-size: 1em;
194
+ inline-size: 0.72em;
195
+ }
196
+
197
+ :host([data-state="waiting"]) .value {
198
+ opacity: 0.92;
199
+ }
200
+
201
+ :host([data-animation="odometer"][data-direction="up"]) .digit-track {
202
+ transition-duration: min(calc(var(--ui-number-ticker-roll-duration) + 40ms), 900ms);
203
+ }
204
+
205
+ :host([data-direction="up"]) .value {
206
+ text-shadow:
207
+ 0 1px 0 color-mix(in srgb, #ffffff 52%, transparent),
208
+ 0 14px 34px color-mix(in srgb, var(--ui-number-ticker-accent) 12%, transparent);
209
+ }
210
+
211
+ :host([data-direction="down"]) .value {
212
+ text-shadow:
213
+ 0 1px 0 color-mix(in srgb, #ffffff 52%, transparent),
214
+ 0 10px 24px color-mix(in srgb, var(--ui-number-ticker-accent) 7%, transparent);
215
+ }
216
+
217
+ @media (prefers-contrast: more) {
218
+ .value {
219
+ text-shadow: none;
220
+ }
221
+ }
222
+
223
+ @media (forced-colors: active) {
224
+ :host {
225
+ --ui-number-ticker-color: CanvasText;
226
+ --ui-number-ticker-accent: CanvasText;
227
+ }
228
+
229
+ .value {
230
+ forced-color-adjust: none;
231
+ text-shadow: none;
232
+ }
233
+ }
234
+ `;
235
+ class W extends M {
236
+ constructor() {
237
+ super(), this._valueEl = null, this._frame = null, this._currentValue = 0, this._animationFrom = 0, this._animationTo = 0, this._animationDuration = y, this._animationDelay = A, this._animationStartTime = 0, this._pausedElapsed = 0, this._animationPrepared = !1, this._initialized = !1, this._hovering = !1, this._focusWithin = !1, this._formatter = new Intl.NumberFormat(), this._mediaQuery = null, this._customFormatter = null, this._intersectionObserver = null, this._observerThreshold = S, this._isVisible = !0, this._visibilityGatePending = !1, this._tick = this._tick.bind(this), this._onPointerEnter = this._onPointerEnter.bind(this), this._onPointerLeave = this._onPointerLeave.bind(this), this._onFocusIn = this._onFocusIn.bind(this), this._onFocusOut = this._onFocusOut.bind(this), this._onReducedMotionChange = this._onReducedMotionChange.bind(this), this._onVisibilityChange = this._onVisibilityChange.bind(this);
238
+ }
239
+ static get observedAttributes() {
240
+ return [
241
+ "value",
242
+ "from",
243
+ "duration",
244
+ "delay",
245
+ "easing",
246
+ "animation",
247
+ "locale",
248
+ "format-style",
249
+ "currency",
250
+ "currency-display",
251
+ "notation",
252
+ "compact-display",
253
+ "fraction-digits",
254
+ "use-grouping",
255
+ "sign-display",
256
+ "prefix",
257
+ "suffix",
258
+ "size",
259
+ "tone",
260
+ "align",
261
+ "font-size",
262
+ "font-weight",
263
+ "letter-spacing",
264
+ "color",
265
+ "tabular",
266
+ "monospace",
267
+ "paused",
268
+ "pause-on-hover",
269
+ "pause-on-focus",
270
+ "trigger",
271
+ "visibility-threshold",
272
+ "stagger",
273
+ "stagger-from"
274
+ ];
275
+ }
276
+ get formatter() {
277
+ return this._customFormatter;
278
+ }
279
+ set formatter(t) {
280
+ this._customFormatter = typeof t == "function" ? t : null, this._valueEl && this._renderValue(this._currentValue);
281
+ }
282
+ shouldRenderOnAttributeChange() {
283
+ return !1;
284
+ }
285
+ connectedCallback() {
286
+ this._bindReducedMotion(), super.connectedCallback(), this.hasAttribute("aria-live") || this.setAttribute("aria-live", "off"), this.addEventListener("pointerenter", this._onPointerEnter), this.addEventListener("pointerleave", this._onPointerLeave), this.addEventListener("focusin", this._onFocusIn), this.addEventListener("focusout", this._onFocusOut), this._syncVisibilityObserver(), this._syncFromAttributes(!1);
287
+ }
288
+ disconnectedCallback() {
289
+ if (this.removeEventListener("pointerenter", this._onPointerEnter), this.removeEventListener("pointerleave", this._onPointerLeave), this.removeEventListener("focusin", this._onFocusIn), this.removeEventListener("focusout", this._onFocusOut), this._mediaQuery) {
290
+ try {
291
+ this._mediaQuery.removeEventListener("change", this._onReducedMotionChange);
292
+ } catch {
293
+ this._mediaQuery.removeListener(this._onReducedMotionChange);
294
+ }
295
+ this._mediaQuery = null;
296
+ }
297
+ this._disconnectVisibilityObserver(), this._stopAnimation(), super.disconnectedCallback();
298
+ }
299
+ play() {
300
+ this.removeAttribute("paused"), this._syncFromAttributes(!1);
301
+ }
302
+ pause() {
303
+ this.setAttribute("paused", ""), this._syncFromAttributes(!1);
304
+ }
305
+ refresh() {
306
+ m(this.getAttribute("trigger")) === "visible" && (this._visibilityGatePending = !0), this._syncFromAttributes(!0);
307
+ }
308
+ finish() {
309
+ const t = this._resolvedTargetValue();
310
+ this._stopAnimation(), this._animationPrepared = !1, this._visibilityGatePending = !1, this._currentValue = t, this._renderValue(t), this._setDirection(this._resolvedBaseValue(), t), this._setState("completed");
311
+ }
312
+ attributeChangedCallback(t, i, n) {
313
+ super.attributeChangedCallback(t, i, n), !(!t || i === n || !this.isConnected || !this._valueEl) && ((t === "trigger" || t === "visibility-threshold") && (t === "trigger" && m(n ?? null) === "visible" && !this._initialized && (this._visibilityGatePending = !0), this._syncVisibilityObserver()), this._syncFromAttributes(t === "from"));
314
+ }
315
+ render() {
316
+ this.setContent(`
317
+ <style>${Y}</style>
318
+ <span class="ticker" part="root">
319
+ <span class="value" part="value"></span>
320
+ </span>
321
+ `), this._valueEl = this.root.querySelector(".value"), this._syncFromAttributes(!this._initialized);
322
+ }
323
+ _syncFromAttributes(t) {
324
+ if (!this._valueEl)
325
+ return;
326
+ this._syncStyleOverrides(), this._syncVisibilityObserver(), this._formatter = this._createFormatter(), this._syncMotionPresentation();
327
+ const i = this._resolvedTargetValue(), n = this._resolvedBaseValue();
328
+ !this._initialized || t ? (this._currentValue = n, this._renderValue(n), m(this.getAttribute("trigger")) === "visible" && (this._visibilityGatePending = !0)) : this._renderValue(this._currentValue), this._setDirection(t ? n : this._currentValue, i), this._syncPlayback(i, n, t), this._initialized = !0;
329
+ }
330
+ _syncPlayback(t, i, n) {
331
+ const r = this._prefersReducedMotion(), s = this._effectivePaused();
332
+ if (this._visibilityGatePending) {
333
+ if (!this._isVisible) {
334
+ this._stopAnimation(), this._animationPrepared = !1, this._currentValue = i, this._renderValue(i), this._setState(s ? "paused" : "waiting");
335
+ return;
336
+ }
337
+ this._visibilityGatePending = !1;
338
+ }
339
+ if (r) {
340
+ this._stopAnimation(), this._animationPrepared = !1, this._currentValue = t, this._renderValue(t), this._setState(s ? "paused" : "completed");
341
+ return;
342
+ }
343
+ if (s) {
344
+ (n || !this._animationPrepared) && !o(i, t) && this._prepareAnimation(i, t), this._pauseAnimation(), this._setState("paused");
345
+ return;
346
+ }
347
+ if (o(this._currentValue, t)) {
348
+ this._stopAnimation(), this._animationPrepared = !1, this._currentValue = t, this._renderValue(t), this._setState("completed");
349
+ return;
350
+ }
351
+ if (n || !this._animationPrepared || !o(t, this._animationTo)) {
352
+ const d = n ? i : this._currentValue;
353
+ this._prepareAnimation(d, t);
354
+ }
355
+ this._resumeAnimation();
356
+ }
357
+ _prepareAnimation(t, i) {
358
+ if (this._stopAnimation(), this._animationFrom = t, this._animationTo = i, this._animationDuration = Math.max(0, p(this.getAttribute("duration"), y)), this._animationDelay = Math.max(0, p(this.getAttribute("delay"), A)), this._animationStartTime = 0, this._pausedElapsed = 0, this._animationPrepared = !o(t, i), this._setDirection(t, i), this._syncMotionPresentation(), !this._animationPrepared || this._animationDuration === 0) {
359
+ this._currentValue = i, this._renderValue(i), this._setState("completed");
360
+ return;
361
+ }
362
+ this._renderValue(t);
363
+ }
364
+ _resumeAnimation() {
365
+ !this._animationPrepared || this._frame != null || !this.isConnected || (this._setState("running"), this._frame = this._requestFrame(this._tick));
366
+ }
367
+ _pauseAnimation() {
368
+ this._frame != null && (this._cancelFrame(this._frame), this._frame = null), this._animationPrepared && this._animationStartTime > 0 && (this._pausedElapsed = performance.now() - this._animationStartTime);
369
+ }
370
+ _stopAnimation() {
371
+ this._frame != null && (this._cancelFrame(this._frame), this._frame = null), this._animationStartTime = 0, this._pausedElapsed = 0;
372
+ }
373
+ _tick(t) {
374
+ if (this._frame = null, this._effectivePaused()) {
375
+ this._pauseAnimation(), this._setState("paused");
376
+ return;
377
+ }
378
+ if (!this._animationPrepared) {
379
+ this._setState("completed");
380
+ return;
381
+ }
382
+ this._animationStartTime === 0 && (this._animationStartTime = t - this._pausedElapsed);
383
+ const i = Math.max(0, t - this._animationStartTime);
384
+ if (i < this._animationDelay) {
385
+ this._renderValue(this._animationFrom), this._setState("running"), this._frame = this._requestFrame(this._tick);
386
+ return;
387
+ }
388
+ const n = c((i - this._animationDelay) / Math.max(this._animationDuration, 1), 0, 1), r = nt(x(this.getAttribute("easing")), n), s = this._animationFrom + (this._animationTo - this._animationFrom) * r;
389
+ if (this._currentValue = s, this._renderValue(s), n >= 1) {
390
+ this._animationPrepared = !1, this._animationStartTime = 0, this._pausedElapsed = 0, this._currentValue = this._animationTo, this._renderValue(this._animationTo), this._setState("completed");
391
+ return;
392
+ }
393
+ this._setState("running"), this._frame = this._requestFrame(this._tick);
394
+ }
395
+ _renderValue(t) {
396
+ if (!this._valueEl)
397
+ return;
398
+ const i = this._formatValue(t), n = j(this.getAttribute("animation"));
399
+ this.setAttribute("data-animation", n), this._valueEl.setAttribute("data-mode", n), n === "odometer" ? this._renderOdometer(i) : this._valueEl.textContent = i, this.setAttribute("data-value", t.toFixed(6)), this.setAttribute("data-rendered", i), this.hasAttribute("aria-label") || this.setAttribute("aria-label", i);
400
+ }
401
+ _renderOdometer(t) {
402
+ if (!this._valueEl)
403
+ return;
404
+ const i = document.createDocumentFragment(), n = Array.from(t).filter(V).length;
405
+ let r = 0;
406
+ const s = Math.max(0, p(this.getAttribute("stagger"), 0)), d = Z(this.getAttribute("stagger-from"));
407
+ for (const f of Array.from(t)) {
408
+ if (V(f)) {
409
+ const u = document.createElement("span");
410
+ u.className = "char digit", u.setAttribute("part", "digit"), u.style.setProperty(
411
+ "--ui-number-ticker-digit-delay",
412
+ `${ot(r, n, s, d)}ms`
413
+ );
414
+ const _ = document.createElement("span");
415
+ _.className = "digit-window";
416
+ const h = document.createElement("span");
417
+ h.className = "digit-track", h.style.setProperty("--ui-number-ticker-digit-value", String(Number(f)));
418
+ for (const C of B) {
419
+ const g = document.createElement("span");
420
+ g.textContent = C, h.appendChild(g);
421
+ }
422
+ _.appendChild(h), u.appendChild(_), i.appendChild(u), r += 1;
423
+ continue;
424
+ }
425
+ const l = document.createElement("span");
426
+ l.className = "char symbol", l.setAttribute("part", "symbol"), l.textContent = f, i.appendChild(l);
427
+ }
428
+ this._valueEl.replaceChildren(i);
429
+ }
430
+ _formatValue(t) {
431
+ const i = this.getAttribute("prefix") || "", n = this.getAttribute("suffix") || "", r = this._formatter.format(t), s = `${i}${r}${n}`;
432
+ if (this._customFormatter)
433
+ try {
434
+ return String(
435
+ this._customFormatter(t, {
436
+ formatted: s,
437
+ intl: r,
438
+ value: t,
439
+ prefix: i,
440
+ suffix: n,
441
+ locale: this.getAttribute("locale") || void 0,
442
+ formatStyle: k(this.getAttribute("format-style")),
443
+ currency: this.getAttribute("currency") || void 0,
444
+ notation: w(this.getAttribute("notation")),
445
+ signDisplay: z(this.getAttribute("sign-display")),
446
+ fractionDigits: D(
447
+ this.getAttribute("fraction-digits"),
448
+ this.getAttribute("value"),
449
+ this.getAttribute("from")
450
+ )
451
+ })
452
+ );
453
+ } catch {
454
+ return s;
455
+ }
456
+ return s;
457
+ }
458
+ _createFormatter() {
459
+ const t = k(this.getAttribute("format-style")), i = this.getAttribute("locale") || void 0, n = D(
460
+ this.getAttribute("fraction-digits"),
461
+ this.getAttribute("value"),
462
+ this.getAttribute("from")
463
+ ), r = {
464
+ style: t,
465
+ useGrouping: et(this.getAttribute("use-grouping"), !0),
466
+ signDisplay: z(this.getAttribute("sign-display")),
467
+ notation: w(this.getAttribute("notation"))
468
+ };
469
+ n != null ? (r.minimumFractionDigits = n, r.maximumFractionDigits = n) : t === "decimal" && (r.minimumFractionDigits = v, r.maximumFractionDigits = v), r.notation === "compact" && (r.compactDisplay = X(this.getAttribute("compact-display"))), t === "currency" && (r.currency = J(this.getAttribute("currency")), r.currencyDisplay = K(this.getAttribute("currency-display")));
470
+ try {
471
+ return new Intl.NumberFormat(i, r);
472
+ } catch {
473
+ const s = {
474
+ style: t === "currency" && r.currency ? "currency" : "decimal",
475
+ useGrouping: r.useGrouping,
476
+ signDisplay: r.signDisplay,
477
+ notation: r.notation,
478
+ minimumFractionDigits: r.minimumFractionDigits,
479
+ maximumFractionDigits: r.maximumFractionDigits
480
+ };
481
+ return s.notation === "compact" && (s.compactDisplay = r.compactDisplay), s.style === "currency" && r.currency && (s.currency = r.currency, s.currencyDisplay = r.currencyDisplay), new Intl.NumberFormat(void 0, s);
482
+ }
483
+ }
484
+ _syncStyleOverrides() {
485
+ E(this.style, "--ui-number-ticker-font-size", this.getAttribute("font-size")), P(this.style, "--ui-number-ticker-font-weight", this.getAttribute("font-weight")), E(this.style, "--ui-number-ticker-letter-spacing", this.getAttribute("letter-spacing")), P(this.style, "--ui-number-ticker-color", this.getAttribute("color"));
486
+ }
487
+ _syncMotionPresentation() {
488
+ this.style.setProperty(
489
+ "--ui-number-ticker-roll-duration",
490
+ `${Math.round(c(this._animationDuration * 0.55, 180, 900))}ms`
491
+ ), this.style.setProperty("--ui-number-ticker-roll-ease", at(x(this.getAttribute("easing"))));
492
+ }
493
+ _resolvedTargetValue() {
494
+ return b(this.getAttribute("value"), 0);
495
+ }
496
+ _resolvedBaseValue() {
497
+ return b(this.getAttribute("from"), 0);
498
+ }
499
+ _effectivePaused() {
500
+ return !!(this.hasAttribute("paused") || this.hasAttribute("pause-on-hover") && this._hovering || this.hasAttribute("pause-on-focus") && this._focusWithin);
501
+ }
502
+ _setState(t) {
503
+ this.setAttribute("data-state", t);
504
+ }
505
+ _setDirection(t, i) {
506
+ const n = o(t, i) ? "flat" : i > t ? "up" : "down";
507
+ this.setAttribute("data-direction", n);
508
+ }
509
+ _onPointerEnter() {
510
+ this._hovering = !0, this.hasAttribute("pause-on-hover") && this._syncFromAttributes(!1);
511
+ }
512
+ _onPointerLeave() {
513
+ this._hovering = !1, this.hasAttribute("pause-on-hover") && this._syncFromAttributes(!1);
514
+ }
515
+ _onFocusIn() {
516
+ this._focusWithin = !0, this.hasAttribute("pause-on-focus") && this._syncFromAttributes(!1);
517
+ }
518
+ _onFocusOut(t) {
519
+ const i = t.relatedTarget;
520
+ this._focusWithin = !!(i && this.contains(i)), this.hasAttribute("pause-on-focus") && this._syncFromAttributes(!1);
521
+ }
522
+ _bindReducedMotion() {
523
+ if (!(this._mediaQuery || typeof window > "u" || typeof window.matchMedia != "function")) {
524
+ this._mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
525
+ try {
526
+ this._mediaQuery.addEventListener("change", this._onReducedMotionChange);
527
+ } catch {
528
+ this._mediaQuery.addListener(this._onReducedMotionChange);
529
+ }
530
+ }
531
+ }
532
+ _onReducedMotionChange() {
533
+ this._syncFromAttributes(!1);
534
+ }
535
+ _syncVisibilityObserver() {
536
+ const t = m(this.getAttribute("trigger")), i = c(b(this.getAttribute("visibility-threshold"), S), 0, 1);
537
+ if (t !== "visible" || typeof IntersectionObserver != "function") {
538
+ this._disconnectVisibilityObserver(), this._isVisible = !0, this._observerThreshold = i;
539
+ return;
540
+ }
541
+ this._intersectionObserver && o(this._observerThreshold, i) || (this._disconnectVisibilityObserver(), this._observerThreshold = i, this._isVisible = !1, this._intersectionObserver = new IntersectionObserver(this._onVisibilityChange, {
542
+ threshold: ut(i)
543
+ }), this._intersectionObserver.observe(this));
544
+ }
545
+ _disconnectVisibilityObserver() {
546
+ this._intersectionObserver && (this._intersectionObserver.disconnect(), this._intersectionObserver = null);
547
+ }
548
+ _onVisibilityChange(t) {
549
+ const i = t[t.length - 1];
550
+ if (!i)
551
+ return;
552
+ const n = i.isIntersecting && i.intersectionRatio >= this._observerThreshold, r = n && !this._isVisible;
553
+ this._isVisible = n, r && this._visibilityGatePending && this._syncFromAttributes(!1);
554
+ }
555
+ _prefersReducedMotion() {
556
+ var t;
557
+ return !!((t = this._mediaQuery) != null && t.matches);
558
+ }
559
+ _requestFrame(t) {
560
+ return typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : window.setTimeout(() => t(performance.now()), 16);
561
+ }
562
+ _cancelFrame(t) {
563
+ if (typeof cancelAnimationFrame == "function") {
564
+ cancelAnimationFrame(t);
565
+ return;
566
+ }
567
+ window.clearTimeout(t);
568
+ }
569
+ }
570
+ function k(e) {
571
+ return e != null && N.has(e) ? e : O;
572
+ }
573
+ function j(e) {
574
+ return e != null && H.has(e) ? e : "interpolate";
575
+ }
576
+ function m(e) {
577
+ return e != null && Q.has(e) ? e : "immediate";
578
+ }
579
+ function Z(e) {
580
+ return e != null && q.has(e) ? e : "start";
581
+ }
582
+ function x(e) {
583
+ return e != null && L.has(e) ? e : I;
584
+ }
585
+ function K(e) {
586
+ return e != null && $.has(e) ? e : "symbol";
587
+ }
588
+ function w(e) {
589
+ return e != null && R.has(e) ? e : "standard";
590
+ }
591
+ function X(e) {
592
+ return e != null && G.has(e) ? e : "short";
593
+ }
594
+ function z(e) {
595
+ return e != null && U.has(e) ? e : "auto";
596
+ }
597
+ function J(e) {
598
+ const t = e == null ? void 0 : e.trim().toUpperCase();
599
+ return t && /^[A-Z]{3}$/.test(t) ? t : "USD";
600
+ }
601
+ function b(e, t) {
602
+ if (e == null || e.trim() === "")
603
+ return t;
604
+ const i = Number.parseFloat(e);
605
+ return Number.isFinite(i) ? i : t;
606
+ }
607
+ function p(e, t) {
608
+ if (e == null || e.trim() === "")
609
+ return t;
610
+ const i = e.trim().toLowerCase();
611
+ return /^-?\d+(\.\d+)?$/.test(i) || /^-?\d+(\.\d+)?ms$/.test(i) ? Number.parseFloat(i) : /^-?\d+(\.\d+)?s$/.test(i) ? Number.parseFloat(i) * 1e3 : t;
612
+ }
613
+ function tt(e, t) {
614
+ if (e == null || e.trim() === "")
615
+ return t;
616
+ const i = Number.parseInt(e, 10);
617
+ return Number.isFinite(i) ? i : t;
618
+ }
619
+ function et(e, t) {
620
+ if (e == null)
621
+ return t;
622
+ const i = e.trim().toLowerCase();
623
+ return i ? i === "false" || i === "0" || i === "off" || i === "no" ? !1 : i === "true" || i === "1" || i === "on" || i === "yes" ? !0 : t : !0;
624
+ }
625
+ function it(e) {
626
+ if (e == null || e.trim() === "")
627
+ return null;
628
+ const t = e.trim().split(/\s+/).filter(Boolean);
629
+ return t.length ? t.map((i) => /^-?\d+(\.\d+)?$/.test(i) ? `${i}px` : i).join(" ") : null;
630
+ }
631
+ function E(e, t, i) {
632
+ const n = it(i);
633
+ if (n == null) {
634
+ e.removeProperty(t);
635
+ return;
636
+ }
637
+ e.setProperty(t, n);
638
+ }
639
+ function P(e, t, i) {
640
+ const n = i == null ? void 0 : i.trim();
641
+ if (!n) {
642
+ e.removeProperty(t);
643
+ return;
644
+ }
645
+ e.setProperty(t, n);
646
+ }
647
+ function T(e) {
648
+ var n;
649
+ if (e == null)
650
+ return 0;
651
+ const t = e.trim();
652
+ if (!t)
653
+ return 0;
654
+ const i = t.match(/^-?\d+(?:\.(\d+))?$/);
655
+ return ((n = i == null ? void 0 : i[1]) == null ? void 0 : n.length) || 0;
656
+ }
657
+ function D(e, t, i) {
658
+ const n = c(tt(e, -1), -1, F);
659
+ if (n >= 0)
660
+ return n;
661
+ const r = c(Math.max(T(t), T(i)), 0, F);
662
+ return r > 0 ? r : null;
663
+ }
664
+ function nt(e, t) {
665
+ switch (e) {
666
+ case "linear":
667
+ return t;
668
+ case "ease-in":
669
+ return t * t * t;
670
+ case "ease-in-out":
671
+ return t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
672
+ case "spring":
673
+ return 1 - Math.cos(t * Math.PI * 4.5) * Math.exp(-t * 6);
674
+ case "bounce":
675
+ return rt(t);
676
+ case "overshoot":
677
+ return st(t);
678
+ case "ease-out":
679
+ default:
680
+ return 1 - Math.pow(1 - t, 3);
681
+ }
682
+ }
683
+ function rt(e) {
684
+ if (e < 1 / 2.75)
685
+ return 7.5625 * e * e;
686
+ if (e < 2 / 2.75) {
687
+ const r = e - 0.5454545454545454;
688
+ return 7.5625 * r * r + 0.75;
689
+ }
690
+ if (e < 2.5 / 2.75) {
691
+ const r = e - 0.8181818181818182;
692
+ return 7.5625 * r * r + 0.9375;
693
+ }
694
+ const n = e - 2.625 / 2.75;
695
+ return 7.5625 * n * n + 0.984375;
696
+ }
697
+ function st(e) {
698
+ return 1 + 2.70158 * Math.pow(e - 1, 3) + 1.70158 * Math.pow(e - 1, 2);
699
+ }
700
+ function at(e) {
701
+ switch (e) {
702
+ case "linear":
703
+ return "linear";
704
+ case "ease-in":
705
+ return "cubic-bezier(0.55, 0.085, 0.68, 0.53)";
706
+ case "ease-in-out":
707
+ return "cubic-bezier(0.65, 0, 0.35, 1)";
708
+ case "spring":
709
+ return "cubic-bezier(0.34, 1.56, 0.64, 1)";
710
+ case "bounce":
711
+ return "cubic-bezier(0.35, 1.4, 0.35, 1)";
712
+ case "overshoot":
713
+ return "cubic-bezier(0.2, 1.24, 0.3, 1)";
714
+ case "ease-out":
715
+ default:
716
+ return "cubic-bezier(0.22, 1, 0.36, 1)";
717
+ }
718
+ }
719
+ function ot(e, t, i, n) {
720
+ if (i <= 0 || t <= 1)
721
+ return 0;
722
+ switch (n) {
723
+ case "end":
724
+ return (t - e - 1) * i;
725
+ case "center": {
726
+ const r = (t - 1) / 2;
727
+ return Math.abs(e - r) * i;
728
+ }
729
+ case "start":
730
+ default:
731
+ return e * i;
732
+ }
733
+ }
734
+ function ut(e) {
735
+ return e <= 0 ? [0] : [0, e, 1];
736
+ }
737
+ function V(e) {
738
+ return /^[0-9]$/.test(e);
739
+ }
740
+ function c(e, t, i) {
741
+ return Math.min(i, Math.max(t, e));
742
+ }
743
+ function o(e, t) {
744
+ return Math.abs(e - t) < 1e-5;
745
+ }
746
+ typeof customElements < "u" && !customElements.get("ui-number-ticker") && customElements.define("ui-number-ticker", W);
747
+ export {
748
+ W as UINumberTicker
749
+ };