@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
@@ -1,168 +1,61 @@
1
- function ae(e = "ui-portal-root") {
2
- if (typeof document > "u")
3
- return null;
4
- let a = document.getElementById(e);
5
- return a || (a = document.createElement("div"), a.id = e, a.style.position = "fixed", a.style.top = "0", a.style.left = "0", a.style.width = "100%", a.style.height = "0", a.style.pointerEvents = "none", a.style.zIndex = "var(--ui-portal-z, 1600)", document.body.appendChild(a)), a.style.zIndex || (a.style.zIndex = "var(--ui-portal-z, 1600)"), a;
6
- }
7
- function Va(e, a, i = "top") {
8
- const n = typeof i == "string" ? { placement: i } : i, r = n.placement || "top", t = typeof n.offset == "number" ? n.offset : 8, l = !!n.shift, s = e.getBoundingClientRect(), p = a.getBoundingClientRect();
9
- let c = 0, d = 0;
10
- r === "top" ? (c = s.top - p.height - t, d = s.left + (s.width - p.width) / 2) : r === "bottom" ? (c = s.bottom + t, d = s.left + (s.width - p.width) / 2) : r === "left" ? (c = s.top + (s.height - p.height) / 2, d = s.left - p.width - t) : (c = s.top + (s.height - p.height) / 2, d = s.right + t);
11
- const y = s.left + s.width / 2, x = s.top + s.height / 2, _ = Math.round(y - d), w = Math.round(x - c);
12
- if (l) {
13
- const m = window.innerWidth || document.documentElement.clientWidth, b = window.innerHeight || document.documentElement.clientHeight;
14
- if (r === "top" || r === "bottom") {
15
- const h = m - p.width - 4;
16
- d < 4 && (d = Math.min(h, d + (4 - d))), d > h && (d = Math.max(4, d - (d - h)));
17
- } else {
18
- const h = b - p.height - 4;
19
- c < 4 && (c = Math.min(h, c + (4 - c))), c > h && (c = Math.max(4, c - (c - h)));
20
- }
21
- }
22
- return { top: c, left: d, placement: r, x: _, y: w };
23
- }
24
- function ee(e, a, i) {
25
- let n = null, r = null, t = null, l = 0;
26
- const s = [], p = () => {
27
- l || (l = requestAnimationFrame(() => {
28
- l = 0, i();
29
- }));
30
- }, c = () => p();
31
- if (typeof ResizeObserver < "u") {
32
- n = new ResizeObserver(p), r = new ResizeObserver(p);
33
- try {
34
- n.observe(e);
35
- } catch {
36
- }
37
- try {
38
- r.observe(a);
39
- } catch {
40
- }
41
- }
42
- if (typeof MutationObserver < "u") {
43
- t = new MutationObserver(p);
44
- try {
45
- t.observe(e, { attributes: !0, childList: !1, subtree: !1 });
46
- } catch {
47
- }
48
- }
49
- return window.addEventListener("scroll", c, !0), window.addEventListener("resize", c), s.push(() => window.removeEventListener("scroll", c, !0)), s.push(() => window.removeEventListener("resize", c)), s.push(() => {
50
- n && n.disconnect(), n = null;
51
- }), s.push(() => {
52
- r && r.disconnect(), r = null;
53
- }), s.push(() => {
54
- t && t.disconnect(), t = null;
55
- }), s.push(() => {
56
- l && (cancelAnimationFrame(l), l = 0);
57
- }), () => s.forEach((d) => {
58
- try {
59
- d();
60
- } catch {
61
- }
62
- });
63
- }
64
- function he(e, a, i = "top") {
65
- const n = typeof i == "string" ? { placement: i } : i, r = n.placement || "top", t = typeof n.offset == "number" ? n.offset : 8, l = n.flip !== !1, s = !!n.shift, p = ae();
66
- if (!p)
67
- return;
68
- a.style.position = "absolute", a.style.pointerEvents = "auto", p.appendChild(a);
69
- let c = () => {
70
- };
71
- function d(x, _, w) {
72
- const m = a.querySelector(".arrow");
73
- if (!m)
74
- return;
75
- const b = e.getBoundingClientRect(), g = b.left + b.width / 2, h = b.top + b.height / 2;
76
- if (w === "top" || w === "bottom") {
77
- const S = g - _, C = 8, k = a.offsetWidth - 8, z = Math.max(C, Math.min(k, S));
78
- m.style.left = `${Math.round(z)}px`, m.style.top = "";
79
- } else {
80
- const S = h - x, C = 8, k = a.offsetHeight - 8, z = Math.max(C, Math.min(k, S));
81
- m.style.top = `${Math.round(z)}px`, m.style.left = "";
82
- }
83
- }
84
- function y() {
85
- var b;
86
- if (e && typeof e.getBoundingClientRect == "function" && e instanceof HTMLElement) {
87
- const g = e, h = (b = g.getRootNode) == null ? void 0 : b.call(g), S = h instanceof ShadowRoot ? h.host : null, C = g.isConnected || document.body.contains(g) || (S ? document.body.contains(S) : !1), k = window.getComputedStyle(g), z = k.display !== "none" && k.visibility !== "hidden" && parseFloat(k.opacity || "1") > 0;
88
- if (!C || !z) {
89
- try {
90
- a.parentElement && a.parentElement.removeChild(a);
91
- } catch {
92
- }
93
- c();
94
- return;
95
- }
96
- }
97
- const x = Va(e, a, { placement: r, offset: t, shift: s }), _ = window.innerWidth || document.documentElement.clientWidth, w = window.innerHeight || document.documentElement.clientHeight;
98
- let m = x;
99
- l && (x.top < 0 && r === "top" || x.top + a.offsetHeight > w && r === "bottom") && (m = Va(e, a, { placement: r === "top" ? "bottom" : "top", offset: t, shift: s })), m.left < 4 && (m.left = 4), m.left + a.offsetWidth > _ - 4 && (m.left = _ - a.offsetWidth - 4), m.top < 4 && (m.top = 4), m.top + a.offsetHeight > w - 4 && (m.top = w - a.offsetHeight - 4), a.style.top = `${Math.round(m.top)}px`, a.style.left = `${Math.round(m.left)}px`, d(m.top, m.left, m.placement), a.setAttribute("data-placement", m.placement);
100
- }
101
- return y(), c = ee(e, a, y), () => {
102
- try {
103
- a.parentElement && a.parentElement.removeChild(a);
104
- } catch {
105
- }
106
- c();
107
- };
108
- }
1
+ import "./portal-1cf392ca.mjs";
109
2
  function ja() {
110
3
  return typeof window < "u" && typeof document < "u";
111
4
  }
112
- function ne(e) {
5
+ function qa(e) {
113
6
  return e ? typeof e == "string" ? e : e instanceof Error && e.message ? e.message : "Something went wrong. Please try again." : "Something went wrong. Please try again.";
114
7
  }
115
- function ie(e) {
8
+ function ae(e) {
116
9
  return e === "replace" || e === "stack" ? e : "queue";
117
10
  }
118
- function Ua(e) {
11
+ function Za(e) {
119
12
  return `ui-alert-dialog-${e}`;
120
13
  }
121
- function te(e, a) {
122
- var r, t;
123
- const i = e.kind === "alert" && a.action === "cancel" ? "dismiss" : a.action, n = (r = e.dialog) == null ? void 0 : r.getChecked();
14
+ function ee(e, a) {
15
+ var r, o;
16
+ const n = e.kind === "alert" && a.action === "cancel" ? "dismiss" : a.action, i = (r = e.dialog) == null ? void 0 : r.getChecked();
124
17
  if (e.kind === "prompt") {
125
- const l = ((t = e.dialog) == null ? void 0 : t.getInputValue()) ?? e.value ?? "";
18
+ const c = ((o = e.dialog) == null ? void 0 : o.getInputValue()) ?? e.value ?? "";
126
19
  return {
127
20
  id: e.id,
128
- action: i,
129
- value: l,
130
- checked: n,
21
+ action: n,
22
+ value: c,
23
+ checked: i,
131
24
  source: a.source,
132
25
  reason: a.reason
133
26
  };
134
27
  }
135
28
  return {
136
29
  id: e.id,
137
- action: i,
30
+ action: n,
138
31
  value: e.value,
139
- checked: n,
32
+ checked: i,
140
33
  source: a.source,
141
34
  reason: a.reason
142
35
  };
143
36
  }
144
- function ka(e, a, i) {
145
- var n, r, t;
37
+ function ka(e, a, n) {
38
+ var i, r, o;
146
39
  return e.kind === "prompt" ? {
147
40
  id: e.id,
148
41
  action: "dismiss",
149
- value: ((n = e.dialog) == null ? void 0 : n.getInputValue()) ?? e.value ?? "",
42
+ value: ((i = e.dialog) == null ? void 0 : i.getInputValue()) ?? e.value ?? "",
150
43
  checked: (r = e.dialog) == null ? void 0 : r.getChecked(),
151
44
  source: a,
152
- reason: i
45
+ reason: n
153
46
  } : {
154
47
  id: e.id,
155
48
  action: "dismiss",
156
49
  value: e.value,
157
- checked: (t = e.dialog) == null ? void 0 : t.getChecked(),
50
+ checked: (o = e.dialog) == null ? void 0 : o.getChecked(),
158
51
  source: a,
159
- reason: i
52
+ reason: n
160
53
  };
161
54
  }
162
- function oe(e) {
55
+ function ie(e) {
163
56
  return e === "esc" || e === "backdrop" || e === "close-icon" || e === "abort" || e === "unmount" || e === "replace" || e === "programmatic" ? e : "abort";
164
57
  }
165
- class re {
58
+ class ne {
166
59
  constructor(a) {
167
60
  this._container = null, this._ownsContainer = !1, this._queue = [], this._active = [], this._disposed = !1, this._seed = 0, this._defaults = {}, this._container = a ?? null;
168
61
  }
@@ -183,136 +76,136 @@ class re {
183
76
  }
184
77
  destroy(a = "unmount") {
185
78
  this._disposed = !0;
186
- const i = [...this._active, ...this._queue];
79
+ const n = [...this._active, ...this._queue];
187
80
  this._queue = [];
188
- for (const n of i)
189
- this._settle(n, ka(n, a), !1);
81
+ for (const i of n)
82
+ this._settle(i, ka(i, a), !1);
190
83
  this._active = [], this._ownsContainer && this._container && this._container.parentElement && this._container.parentElement.removeChild(this._container), this._container = null, this._ownsContainer = !1;
191
84
  }
192
- _enqueue(a, i) {
193
- const n = this._mergeOptions(i);
85
+ _enqueue(a, n) {
86
+ const i = this._mergeOptions(n);
194
87
  if (!ja() || this._disposed) {
195
- const l = {
196
- id: n.id || Ua(++this._seed),
88
+ const c = {
89
+ id: i.id || Za(++this._seed),
197
90
  action: "dismiss",
198
91
  source: "unmount"
199
92
  };
200
- return Promise.resolve(l);
93
+ return Promise.resolve(c);
201
94
  }
202
- const r = n.id || Ua(++this._seed), t = ie(n.mode);
203
- return new Promise((l) => {
204
- var p;
205
- const s = {
95
+ const r = i.id || Za(++this._seed), o = ae(i.mode);
96
+ return new Promise((c) => {
97
+ var d;
98
+ const l = {
206
99
  id: r,
207
100
  kind: a,
208
- mode: t,
209
- options: n,
101
+ mode: o,
102
+ options: i,
210
103
  settled: !1,
211
104
  processing: !1,
212
- resolve: l,
105
+ resolve: c,
213
106
  cleanup: []
214
107
  };
215
- if ((p = n.signal) != null && p.aborted) {
216
- this._settle(s, ka(s, "abort"), !1);
108
+ if ((d = i.signal) != null && d.aborted) {
109
+ this._settle(l, ka(l, "abort"), !1);
217
110
  return;
218
111
  }
219
- if (t === "replace") {
220
- const c = this._active[this._active.length - 1];
221
- c && this._settle(c, ka(c, "replace", "replace"), !1, !1), this._open(s);
112
+ if (o === "replace") {
113
+ const f = this._active[this._active.length - 1];
114
+ f && this._settle(f, ka(f, "replace", "replace"), !1, !1), this._open(l);
222
115
  return;
223
116
  }
224
- if (t === "stack") {
225
- this._open(s);
117
+ if (o === "stack") {
118
+ this._open(l);
226
119
  return;
227
120
  }
228
121
  if (this._active.length > 0) {
229
- this._queue.push(s);
122
+ this._queue.push(l);
230
123
  return;
231
124
  }
232
- this._open(s);
125
+ this._open(l);
233
126
  });
234
127
  }
235
128
  _open(a) {
236
- var p;
237
- const i = this._ensureContainer();
238
- if (!i) {
129
+ var d;
130
+ const n = this._ensureContainer();
131
+ if (!n) {
239
132
  this._settle(a, ka(a, "unmount"), !1);
240
133
  return;
241
134
  }
242
- const n = document.createElement("ui-alert-dialog");
243
- a.dialog = n, a.checked = !!((p = a.options.checkbox) != null && p.defaultChecked);
135
+ const i = document.createElement("ui-alert-dialog");
136
+ a.dialog = i, a.checked = !!((d = a.options.checkbox) != null && d.defaultChecked);
244
137
  const r = this._buildConfig(a);
245
- n.dialogId = a.id, n.config = r;
246
- const t = (c) => {
138
+ i.dialogId = a.id, i.config = r;
139
+ const o = (f) => {
247
140
  if (a.settled)
248
141
  return;
249
- const d = c.detail;
250
- a.value = d == null ? void 0 : d.inputValue, a.checked = d == null ? void 0 : d.checked;
251
- const y = this._validatePrompt(a);
252
- if (y) {
253
- c.preventDefault(), n.setError(y);
142
+ const u = f.detail;
143
+ a.value = u == null ? void 0 : u.inputValue, a.checked = u == null ? void 0 : u.checked;
144
+ const m = this._validatePrompt(a);
145
+ if (m) {
146
+ f.preventDefault(), i.setError(m);
254
147
  return;
255
148
  }
256
149
  if (!a.options.onConfirm) {
257
- n.clearError();
150
+ i.clearError();
258
151
  return;
259
152
  }
260
- c.preventDefault(), a.processing = !0, n.state = "loading", n.clearError(), Promise.resolve(
153
+ f.preventDefault(), a.processing = !0, i.state = "loading", i.clearError(), Promise.resolve(
261
154
  a.options.onConfirm({
262
155
  id: a.id,
263
156
  value: a.value,
264
157
  checked: a.checked,
265
- dialog: n,
158
+ dialog: i,
266
159
  signal: a.options.signal
267
160
  })
268
161
  ).then(() => {
269
- a.processing = !1, n.state = "idle", n.clearError(), a.settled || n.close("confirm");
270
- }).catch((x) => {
271
- a.processing = !1, n.state = "error", n.setError(ne(x));
162
+ a.processing = !1, i.state = "idle", i.clearError(), a.settled || i.close("confirm");
163
+ }).catch((h) => {
164
+ a.processing = !1, i.state = "error", i.setError(qa(h));
272
165
  });
273
- }, l = () => {
274
- a.settled || (a.value = n.getInputValue(), a.checked = n.getChecked(), n.state === "error" && n.clearError());
275
- }, s = (c) => {
166
+ }, c = () => {
167
+ a.settled || (a.value = i.getInputValue(), a.checked = i.getChecked(), i.state === "error" && i.clearError());
168
+ }, l = (f) => {
276
169
  if (a.settled)
277
170
  return;
278
- const d = c.detail;
279
- this._handleClose(a, d);
171
+ const u = f.detail;
172
+ this._handleClose(a, u);
280
173
  };
281
- if (n.addEventListener("ui-confirm", t), n.addEventListener("ui-change", l), n.addEventListener("ui-close", s), a.cleanup.push(() => n.removeEventListener("ui-confirm", t)), a.cleanup.push(() => n.removeEventListener("ui-change", l)), a.cleanup.push(() => n.removeEventListener("ui-close", s)), a.options.signal) {
282
- const c = () => {
174
+ if (i.addEventListener("ui-confirm", o), i.addEventListener("ui-change", c), i.addEventListener("ui-close", l), a.cleanup.push(() => i.removeEventListener("ui-confirm", o)), a.cleanup.push(() => i.removeEventListener("ui-change", c)), a.cleanup.push(() => i.removeEventListener("ui-close", l)), a.options.signal) {
175
+ const f = () => {
283
176
  a.settled || this._settle(a, ka(a, "abort"), !1);
284
177
  };
285
- a.options.signal.addEventListener("abort", c, { once: !0 }), a.cleanup.push(() => {
286
- var d;
287
- return (d = a.options.signal) == null ? void 0 : d.removeEventListener("abort", c);
178
+ a.options.signal.addEventListener("abort", f, { once: !0 }), a.cleanup.push(() => {
179
+ var u;
180
+ return (u = a.options.signal) == null ? void 0 : u.removeEventListener("abort", f);
288
181
  });
289
182
  }
290
- this._active.push(a), i.appendChild(n), n.open = !0, this._updateStackZIndex();
183
+ this._active.push(a), n.appendChild(i), i.open = !0, this._updateStackZIndex();
291
184
  }
292
185
  _validatePrompt(a) {
293
- var t;
186
+ var o;
294
187
  if (a.kind !== "prompt")
295
188
  return null;
296
- const n = a.options.input, r = ((t = a.dialog) == null ? void 0 : t.getInputValue()) ?? a.value ?? "";
297
- return n != null && n.required && !r.trim() ? "Please enter a value." : n != null && n.validate ? n.validate(r) : null;
189
+ const i = a.options.input, r = ((o = a.dialog) == null ? void 0 : o.getInputValue()) ?? a.value ?? "";
190
+ return i != null && i.required && !r.trim() ? "Please enter a value." : i != null && i.validate ? i.validate(r) : null;
298
191
  }
299
- _settle(a, i, n, r = !0) {
192
+ _settle(a, n, i, r = !0) {
300
193
  if (!a.settled) {
301
- if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((t) => t !== a), this._queue = this._queue.filter((t) => t !== a), a.dialog) {
302
- const t = a.dialog;
303
- if (!n && t.open) {
304
- const l = oe(i.source);
305
- t.close("dismiss", l, i.reason);
194
+ if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((o) => o !== a), this._queue = this._queue.filter((o) => o !== a), a.dialog) {
195
+ const o = a.dialog;
196
+ if (!i && o.open) {
197
+ const c = ie(n.source);
198
+ o.close("dismiss", c, n.reason);
306
199
  }
307
- t.parentElement && t.parentElement.removeChild(t);
200
+ o.parentElement && o.parentElement.removeChild(o);
308
201
  }
309
- a.resolve(i), this._updateStackZIndex(), !this._disposed && r && this._drainQueue();
202
+ a.resolve(n), this._updateStackZIndex(), !this._disposed && r && this._drainQueue();
310
203
  }
311
204
  }
312
205
  _cleanupRequest(a) {
313
- for (const i of a.cleanup.splice(0))
206
+ for (const n of a.cleanup.splice(0))
314
207
  try {
315
- i();
208
+ n();
316
209
  } catch {
317
210
  }
318
211
  }
@@ -323,87 +216,87 @@ class re {
323
216
  a && this._open(a);
324
217
  }
325
218
  _buildConfig(a) {
326
- var l, s, p;
327
- const i = a.options, n = a.kind === "prompt", r = a.kind === "alert", t = n ? i.input : void 0;
219
+ var c, l, d;
220
+ const n = a.options, i = a.kind === "prompt", r = a.kind === "alert", o = i ? n.input : void 0;
328
221
  return {
329
222
  id: a.id,
330
- title: i.title,
331
- description: i.description,
332
- confirmText: i.confirmText || (r ? "OK" : "Confirm"),
333
- cancelText: i.cancelText || "Cancel",
334
- loadingText: i.loadingText,
335
- errorMessage: i.errorMessage,
336
- dismissible: i.dismissible ?? !0,
337
- closeOnEsc: i.closeOnEsc,
338
- closeOnBackdrop: i.closeOnBackdrop,
339
- lockWhileLoading: i.lockWhileLoading ?? !0,
340
- role: i.role || "alertdialog",
341
- tone: i.tone || (r ? "info" : n ? "neutral" : "warning"),
342
- size: i.size || "md",
343
- variant: i.variant || "surface",
344
- radius: i.radius,
345
- elevation: i.elevation || "low",
346
- indicator: i.indicator || "line",
347
- initialFocus: i.initialFocus,
348
- ariaLabel: i.ariaLabel,
349
- ariaLabelledby: i.ariaLabelledby,
350
- ariaDescribedby: i.ariaDescribedby,
351
- headless: i.headless,
223
+ title: n.title,
224
+ description: n.description,
225
+ confirmText: n.confirmText || (r ? "OK" : "Confirm"),
226
+ cancelText: n.cancelText || "Cancel",
227
+ loadingText: n.loadingText,
228
+ errorMessage: n.errorMessage,
229
+ dismissible: n.dismissible ?? !0,
230
+ closeOnEsc: n.closeOnEsc,
231
+ closeOnBackdrop: n.closeOnBackdrop,
232
+ lockWhileLoading: n.lockWhileLoading ?? !0,
233
+ role: n.role || "alertdialog",
234
+ tone: n.tone || (r ? "info" : i ? "neutral" : "warning"),
235
+ size: n.size || "md",
236
+ variant: n.variant || "surface",
237
+ radius: n.radius,
238
+ elevation: n.elevation || "low",
239
+ indicator: n.indicator || "line",
240
+ initialFocus: n.initialFocus,
241
+ ariaLabel: n.ariaLabel,
242
+ ariaLabelledby: n.ariaLabelledby,
243
+ ariaDescribedby: n.ariaDescribedby,
244
+ headless: n.headless,
352
245
  showCancel: !r,
353
- showClose: i.dismissible ?? !0,
246
+ showClose: n.dismissible ?? !0,
354
247
  input: {
355
- enabled: n,
356
- label: t == null ? void 0 : t.label,
357
- placeholder: t == null ? void 0 : t.placeholder,
358
- value: (t == null ? void 0 : t.defaultValue) || "",
359
- required: t == null ? void 0 : t.required
248
+ enabled: i,
249
+ label: o == null ? void 0 : o.label,
250
+ placeholder: o == null ? void 0 : o.placeholder,
251
+ value: (o == null ? void 0 : o.defaultValue) || "",
252
+ required: o == null ? void 0 : o.required
360
253
  },
361
254
  checkbox: {
362
- enabled: !!((l = i.checkbox) != null && l.enabled),
363
- label: (s = i.checkbox) == null ? void 0 : s.label,
364
- checked: (p = i.checkbox) == null ? void 0 : p.defaultChecked
255
+ enabled: !!((c = n.checkbox) != null && c.enabled),
256
+ label: (l = n.checkbox) == null ? void 0 : l.label,
257
+ checked: (d = n.checkbox) == null ? void 0 : d.defaultChecked
365
258
  }
366
259
  };
367
260
  }
368
261
  _buildLifecycleContext(a) {
369
- var i, n;
262
+ var n, i;
370
263
  return {
371
264
  id: a.id,
372
- value: ((i = a.dialog) == null ? void 0 : i.getInputValue()) ?? a.value,
373
- checked: ((n = a.dialog) == null ? void 0 : n.getChecked()) ?? a.checked,
265
+ value: ((n = a.dialog) == null ? void 0 : n.getInputValue()) ?? a.value,
266
+ checked: ((i = a.dialog) == null ? void 0 : i.getChecked()) ?? a.checked,
374
267
  dialog: a.dialog,
375
268
  signal: a.options.signal
376
269
  };
377
270
  }
378
- _handleClose(a, i) {
379
- const n = te(a, i);
380
- if (i.action === "cancel" && a.options.onCancel) {
271
+ _handleClose(a, n) {
272
+ const i = ee(a, n);
273
+ if (n.action === "cancel" && a.options.onCancel) {
381
274
  Promise.resolve(a.options.onCancel(this._buildLifecycleContext(a))).finally(() => {
382
- this._settle(a, n, !0);
275
+ this._settle(a, i, !0);
383
276
  });
384
277
  return;
385
278
  }
386
- if (i.action === "dismiss" && a.options.onDismiss) {
279
+ if (n.action === "dismiss" && a.options.onDismiss) {
387
280
  Promise.resolve(
388
281
  a.options.onDismiss({
389
282
  ...this._buildLifecycleContext(a),
390
- source: i.source || "programmatic",
391
- reason: i.reason
283
+ source: n.source || "programmatic",
284
+ reason: n.reason
392
285
  })
393
286
  ).finally(() => {
394
- this._settle(a, n, !0);
287
+ this._settle(a, i, !0);
395
288
  });
396
289
  return;
397
290
  }
398
- this._settle(a, n, !0);
291
+ this._settle(a, i, !0);
399
292
  }
400
293
  _mergeOptions(a) {
401
- const i = this._defaults;
294
+ const n = this._defaults;
402
295
  return {
403
- ...i,
296
+ ...n,
404
297
  ...a,
405
298
  checkbox: {
406
- ...i.checkbox || {},
299
+ ...n.checkbox || {},
407
300
  ...a.checkbox || {}
408
301
  }
409
302
  };
@@ -418,43 +311,43 @@ class re {
418
311
  }
419
312
  _updateStackZIndex() {
420
313
  for (let a = 0; a < this._active.length; a += 1) {
421
- const i = this._active[a];
422
- i.dialog && (i.dialog.style.setProperty("--ui-alert-backdrop-z", String(1e3 + a * 2)), i.dialog.style.setProperty("--ui-alert-z", String(1001 + a * 2)));
314
+ const n = this._active[a];
315
+ n.dialog && (n.dialog.style.setProperty("--ui-alert-backdrop-z", String(1e3 + a * 2)), n.dialog.style.setProperty("--ui-alert-z", String(1001 + a * 2)));
423
316
  }
424
317
  }
425
318
  }
426
- let E = null;
427
- function se(e = {}) {
428
- return new re(e.container ?? null);
319
+ let x = null;
320
+ function oe(e = {}) {
321
+ return new ne(e.container ?? null);
429
322
  }
430
323
  function Sa() {
431
- return E || (E = se()), E;
324
+ return x || (x = oe()), x;
432
325
  }
433
- function ge(e = {}) {
326
+ function ue(e = {}) {
434
327
  return Sa().alert(e);
435
328
  }
436
- function xe(e = {}) {
329
+ function ge(e = {}) {
437
330
  return Sa().confirm(e);
438
331
  }
439
- function be(e = {}) {
332
+ function me(e = {}) {
440
333
  return Sa().prompt(e);
441
334
  }
442
- function ye(e = "programmatic") {
443
- E && (E.destroy(e), E = null);
335
+ function he(e = "programmatic") {
336
+ x && (x.destroy(e), x = null);
444
337
  }
445
- function Za() {
338
+ function Ua() {
446
339
  return typeof window < "u" && typeof document < "u";
447
340
  }
448
- function pe(e) {
341
+ function te(e) {
449
342
  return e === "replace" || e === "stack" ? e : "queue";
450
343
  }
451
- function Na(e) {
344
+ function Qa(e) {
452
345
  return `ui-dialog-${e}`;
453
346
  }
454
- function ce(e) {
347
+ function re(e) {
455
348
  return e ? typeof e == "string" ? e : e instanceof Error && e.message ? e.message : "Something went wrong. Please try again." : "Something went wrong. Please try again.";
456
349
  }
457
- class le {
350
+ class se {
458
351
  constructor(a) {
459
352
  this._container = null, this._ownsContainer = !1, this._queue = [], this._active = [], this._disposed = !1, this._seed = 0, this._container = a ?? null;
460
353
  }
@@ -469,11 +362,11 @@ class le {
469
362
  }
470
363
  destroy(a = "unmount") {
471
364
  this._disposed = !0;
472
- const i = [...this._active, ...this._queue];
365
+ const n = [...this._active, ...this._queue];
473
366
  this._queue = [];
474
- for (const n of i)
475
- this._settle(n, {
476
- id: n.id,
367
+ for (const i of n)
368
+ this._settle(i, {
369
+ id: i.id,
477
370
  action: "dismiss",
478
371
  source: a,
479
372
  reason: a
@@ -481,46 +374,46 @@ class le {
481
374
  this._active = [], this._ownsContainer && this._container && this._container.parentElement && this._container.parentElement.removeChild(this._container), this._container = null, this._ownsContainer = !1;
482
375
  }
483
376
  _enqueue(a) {
484
- if (!Za() || this._disposed)
377
+ if (!Ua() || this._disposed)
485
378
  return Promise.resolve({
486
- id: a.id || Na(++this._seed),
379
+ id: a.id || Qa(++this._seed),
487
380
  action: "dismiss",
488
381
  source: "unmount"
489
382
  });
490
- const i = a.id || Na(++this._seed), n = pe(a.mode);
383
+ const n = a.id || Qa(++this._seed), i = te(a.mode);
491
384
  return new Promise((r) => {
492
- var l;
493
- const t = {
494
- id: i,
495
- mode: n,
385
+ var c;
386
+ const o = {
387
+ id: n,
388
+ mode: i,
496
389
  options: a,
497
390
  settled: !1,
498
391
  resolve: r,
499
392
  cleanup: []
500
393
  };
501
- if ((l = a.signal) != null && l.aborted) {
502
- this._settle(t, { id: i, action: "dismiss", source: "abort" }, !1);
394
+ if ((c = a.signal) != null && c.aborted) {
395
+ this._settle(o, { id: n, action: "dismiss", source: "abort" }, !1);
503
396
  return;
504
397
  }
505
- if (n === "replace") {
506
- const s = this._active[this._active.length - 1];
507
- s && this._settle(s, { id: s.id, action: "dismiss", source: "replace", reason: "replace" }, !1, !1), this._open(t);
398
+ if (i === "replace") {
399
+ const l = this._active[this._active.length - 1];
400
+ l && this._settle(l, { id: l.id, action: "dismiss", source: "replace", reason: "replace" }, !1, !1), this._open(o);
508
401
  return;
509
402
  }
510
- if (n === "stack") {
511
- this._open(t);
403
+ if (i === "stack") {
404
+ this._open(o);
512
405
  return;
513
406
  }
514
407
  if (this._active.length > 0) {
515
- this._queue.push(t);
408
+ this._queue.push(o);
516
409
  return;
517
410
  }
518
- this._open(t);
411
+ this._open(o);
519
412
  });
520
413
  }
521
414
  _open(a) {
522
- const i = this._ensureContainer();
523
- if (!i) {
415
+ const n = this._ensureContainer();
416
+ if (!n) {
524
417
  this._settle(a, {
525
418
  id: a.id,
526
419
  action: "dismiss",
@@ -528,70 +421,70 @@ class le {
528
421
  }, !1);
529
422
  return;
530
423
  }
531
- const n = document.createElement("ui-dialog");
532
- a.dialog = n;
424
+ const i = document.createElement("ui-dialog");
425
+ a.dialog = i;
533
426
  const r = this._buildConfig(a.options, a.id);
534
- n.dialogId = a.id, n.config = r;
535
- const t = (s) => {
427
+ i.dialogId = a.id, i.config = r;
428
+ const o = (l) => {
536
429
  if (a.settled)
537
430
  return;
538
- const p = s.detail;
539
- if (a.resultFormData = p == null ? void 0 : p.formData, !a.options.onSubmit) {
540
- n.clearError();
431
+ const d = l.detail;
432
+ if (a.resultFormData = d == null ? void 0 : d.formData, !a.options.onSubmit) {
433
+ i.clearError();
541
434
  return;
542
435
  }
543
- s.preventDefault(), n.state = "loading", n.clearError(), Promise.resolve(
436
+ l.preventDefault(), i.state = "loading", i.clearError(), Promise.resolve(
544
437
  a.options.onSubmit({
545
438
  id: a.id,
546
- dialog: n,
439
+ dialog: i,
547
440
  signal: a.options.signal,
548
- formData: p == null ? void 0 : p.formData
441
+ formData: d == null ? void 0 : d.formData
549
442
  })
550
443
  ).then(() => {
551
- a.settled || (n.state = "idle", n.clearError(), n.close("submit"));
552
- }).catch((c) => {
553
- n.state = "error", n.setError(ce(c));
444
+ a.settled || (i.state = "idle", i.clearError(), i.close("submit"));
445
+ }).catch((f) => {
446
+ i.state = "error", i.setError(re(f));
554
447
  });
555
- }, l = (s) => {
448
+ }, c = (l) => {
556
449
  if (a.settled)
557
450
  return;
558
- const p = s.detail;
451
+ const d = l.detail;
559
452
  this._settle(a, {
560
453
  id: a.id,
561
- action: p.action,
562
- source: p.source,
563
- reason: p.reason,
454
+ action: d.action,
455
+ source: d.source,
456
+ reason: d.reason,
564
457
  formData: a.resultFormData
565
458
  }, !0);
566
459
  };
567
- if (n.addEventListener("ui-submit", t), n.addEventListener("ui-close", l), a.cleanup.push(() => n.removeEventListener("ui-submit", t)), a.cleanup.push(() => n.removeEventListener("ui-close", l)), a.options.signal) {
568
- const s = () => {
460
+ if (i.addEventListener("ui-submit", o), i.addEventListener("ui-close", c), a.cleanup.push(() => i.removeEventListener("ui-submit", o)), a.cleanup.push(() => i.removeEventListener("ui-close", c)), a.options.signal) {
461
+ const l = () => {
569
462
  a.settled || this._settle(a, {
570
463
  id: a.id,
571
464
  action: "dismiss",
572
465
  source: "abort"
573
466
  }, !1);
574
467
  };
575
- a.options.signal.addEventListener("abort", s, { once: !0 }), a.cleanup.push(() => {
576
- var p;
577
- return (p = a.options.signal) == null ? void 0 : p.removeEventListener("abort", s);
468
+ a.options.signal.addEventListener("abort", l, { once: !0 }), a.cleanup.push(() => {
469
+ var d;
470
+ return (d = a.options.signal) == null ? void 0 : d.removeEventListener("abort", l);
578
471
  });
579
472
  }
580
- this._active.push(a), i.appendChild(n), n.openDialog(), this._updateStackZIndex();
473
+ this._active.push(a), n.appendChild(i), i.openDialog(), this._updateStackZIndex();
581
474
  }
582
- _settle(a, i, n, r = !0) {
475
+ _settle(a, n, i, r = !0) {
583
476
  if (!a.settled) {
584
- if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((t) => t !== a), this._queue = this._queue.filter((t) => t !== a), a.dialog) {
585
- const t = a.dialog;
586
- !n && t.open && t.close("dismiss", i.source || "abort", i.reason), t.parentElement && t.parentElement.removeChild(t);
477
+ if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((o) => o !== a), this._queue = this._queue.filter((o) => o !== a), a.dialog) {
478
+ const o = a.dialog;
479
+ !i && o.open && o.close("dismiss", n.source || "abort", n.reason), o.parentElement && o.parentElement.removeChild(o);
587
480
  }
588
- a.resolve(i), this._updateStackZIndex(), !this._disposed && r && this._drainQueue();
481
+ a.resolve(n), this._updateStackZIndex(), !this._disposed && r && this._drainQueue();
589
482
  }
590
483
  }
591
484
  _cleanupRequest(a) {
592
- for (const i of a.cleanup.splice(0))
485
+ for (const n of a.cleanup.splice(0))
593
486
  try {
594
- i();
487
+ n();
595
488
  } catch {
596
489
  }
597
490
  }
@@ -601,9 +494,9 @@ class le {
601
494
  const a = this._queue.shift();
602
495
  a && this._open(a);
603
496
  }
604
- _buildConfig(a, i) {
497
+ _buildConfig(a, n) {
605
498
  return {
606
- id: i,
499
+ id: n,
607
500
  title: a.title,
608
501
  description: a.description,
609
502
  submitText: a.submitText || "Submit",
@@ -626,7 +519,7 @@ class le {
626
519
  };
627
520
  }
628
521
  _ensureContainer() {
629
- if (!Za())
522
+ if (!Ua())
630
523
  return null;
631
524
  if (this._container && this._container.isConnected)
632
525
  return this._container;
@@ -635,28 +528,28 @@ class le {
635
528
  }
636
529
  _updateStackZIndex() {
637
530
  for (let a = 0; a < this._active.length; a += 1) {
638
- const i = this._active[a];
639
- i.dialog && (i.dialog.style.setProperty("--ui-dialog-backdrop-z", String(1200 + a * 2)), i.dialog.style.setProperty("--ui-dialog-z", String(1201 + a * 2)));
531
+ const n = this._active[a];
532
+ n.dialog && (n.dialog.style.setProperty("--ui-dialog-backdrop-z", String(1200 + a * 2)), n.dialog.style.setProperty("--ui-dialog-z", String(1201 + a * 2)));
640
533
  }
641
534
  }
642
535
  }
643
- let M = null;
644
- function de(e = {}) {
645
- return new le(e.container ?? null);
536
+ let b = null;
537
+ function pe(e = {}) {
538
+ return new se(e.container ?? null);
646
539
  }
647
- function Xa() {
648
- return M || (M = de()), M;
540
+ function Na() {
541
+ return b || (b = pe()), b;
649
542
  }
650
- function we(e = {}) {
651
- return Xa().open(e);
543
+ function xe(e = {}) {
544
+ return Na().open(e);
652
545
  }
653
- function ve(e = {}) {
654
- return Xa().confirm(e);
546
+ function be(e = {}) {
547
+ return Na().confirm(e);
655
548
  }
656
- function ke(e = "programmatic") {
657
- M && (M.destroy(e), M = null);
549
+ function ye(e = "programmatic") {
550
+ b && (b.destroy(e), b = null);
658
551
  }
659
- const Ya = {
552
+ const Ga = {
660
553
  1: "#0000000d",
661
554
  2: "#0000001a",
662
555
  3: "#00000026",
@@ -669,7 +562,7 @@ const Ya = {
669
562
  10: "#000c",
670
563
  11: "#000000e6",
671
564
  12: "#000000f2"
672
- }, Ga = {
565
+ }, Ka = {
673
566
  1: "#ffffff0d",
674
567
  2: "#ffffff1a",
675
568
  3: "#ffffff26",
@@ -682,7 +575,7 @@ const Ya = {
682
575
  10: "#fffc",
683
576
  11: "#ffffffe6",
684
577
  12: "#fffffff2"
685
- }, v = {
578
+ }, g = {
686
579
  amber: {
687
580
  light: {
688
581
  scale: {
@@ -1033,7 +926,7 @@ const Ya = {
1033
926
  track: "#7b7b7b"
1034
927
  }
1035
928
  }
1036
- }, fe = {
929
+ }, ce = {
1037
930
  button: {
1038
931
  "height-sm": "32px",
1039
932
  "height-md": "36px",
@@ -1332,7 +1225,7 @@ const Ya = {
1332
1225
  border: "1px solid color-mix(in srgb, var(--gray-a5) 84%, transparent)",
1333
1226
  "focus-ring": "0 0 0 3px color-mix(in srgb, var(--accent-a5) 48%, transparent)"
1334
1227
  }
1335
- }, ue = {
1228
+ }, le = {
1336
1229
  button: {
1337
1230
  "height-sm": "32px",
1338
1231
  "height-md": "36px",
@@ -1632,7 +1525,7 @@ const Ya = {
1632
1525
  "focus-ring": "0 0 0 3px color-mix(in srgb, var(--accent-a6) 42%, transparent)"
1633
1526
  }
1634
1527
  };
1635
- function Ka(e) {
1528
+ function Ja(e) {
1636
1529
  return {
1637
1530
  primary: e.scale[9],
1638
1531
  primaryHover: e.scale[10] || e.scale[9],
@@ -1686,18 +1579,18 @@ const _a = {
1686
1579
  11: "#0000009b",
1687
1580
  12: "#000000df"
1688
1581
  },
1689
- blackAlpha: Ya,
1690
- whiteAlpha: Ga,
1582
+ blackAlpha: Ga,
1583
+ whiteAlpha: Ka,
1691
1584
  accent: {
1692
- ...v.amber.light.scale
1585
+ ...g.amber.light.scale
1693
1586
  },
1694
1587
  accentAlpha: {
1695
- ...v.amber.light.alphaScale
1588
+ ...g.amber.light.alphaScale
1696
1589
  },
1697
- accentContrast: v.amber.light.contrast,
1698
- accentSurface: v.amber.light.surface,
1699
- accentIndicator: v.amber.light.indicator,
1700
- accentTrack: v.amber.light.track
1590
+ accentContrast: g.amber.light.contrast,
1591
+ accentSurface: g.amber.light.surface,
1592
+ accentIndicator: g.amber.light.indicator,
1593
+ accentTrack: g.amber.light.track
1701
1594
  },
1702
1595
  surfaces: {
1703
1596
  background: "#ffffff",
@@ -1795,10 +1688,10 @@ const _a = {
1795
1688
  effects: {
1796
1689
  backdropFilterPanel: "blur(64px)"
1797
1690
  },
1798
- components: fe,
1691
+ components: ce,
1799
1692
  zIndex: { modal: 1e3, overlay: 900, toast: 1100 },
1800
1693
  breakpoints: { sm: "640px", md: "768px", lg: "1024px" }
1801
- }, me = {
1694
+ }, de = {
1802
1695
  ..._a,
1803
1696
  colors: {
1804
1697
  primary: "#ffc53d",
@@ -1845,18 +1738,18 @@ const _a = {
1845
1738
  11: "#ffffffaf",
1846
1739
  12: "#ffffffed"
1847
1740
  },
1848
- blackAlpha: Ya,
1849
- whiteAlpha: Ga,
1741
+ blackAlpha: Ga,
1742
+ whiteAlpha: Ka,
1850
1743
  accent: {
1851
- ...v.amber.dark.scale
1744
+ ...g.amber.dark.scale
1852
1745
  },
1853
1746
  accentAlpha: {
1854
- ...v.amber.dark.alphaScale
1747
+ ...g.amber.dark.alphaScale
1855
1748
  },
1856
- accentContrast: v.amber.dark.contrast,
1857
- accentSurface: v.amber.dark.surface,
1858
- accentIndicator: v.amber.dark.indicator,
1859
- accentTrack: v.amber.dark.track
1749
+ accentContrast: g.amber.dark.contrast,
1750
+ accentSurface: g.amber.dark.surface,
1751
+ accentIndicator: g.amber.dark.indicator,
1752
+ accentTrack: g.amber.dark.track
1860
1753
  },
1861
1754
  surfaces: {
1862
1755
  background: "#111111",
@@ -1878,188 +1771,184 @@ const _a = {
1878
1771
  5: "0 0 0 1px var(--gray-a6),0 12px 60px var(--black-a5),0 12px 32px -16px var(--black-a7)",
1879
1772
  6: "0 0 0 1px var(--gray-a6),0 12px 60px var(--black-a4),0 16px 64px var(--black-a6),0 16px 36px -20px var(--black-a11)"
1880
1773
  },
1881
- components: ue
1882
- }, _e = _a, Ja = /* @__PURE__ */ new Set();
1883
- function u(e, a) {
1774
+ components: le
1775
+ }, we = _a, Xa = /* @__PURE__ */ new Set();
1776
+ function p(e, a) {
1884
1777
  if (!(!e && !a))
1885
1778
  return { ...e || {}, ...a || {} };
1886
1779
  }
1887
- function qa(e, a) {
1888
- var p, c, d, y, x, _, w, m, b, g, h, S, C, k, z, A, L, T, I, D, R, H, P, F, B, $, O, W, V, j, U, Z, N, Q, X, Y, G, K, J, q, aa, ea, na, ia, ta, oa, ra, sa, pa, ca, la, da, fa, ua, ma, ha, ga, xa, ba, ya, wa, va;
1889
- const i = (a == null ? void 0 : a.mode) || "light", n = i === "dark" ? me : _a, r = a == null ? void 0 : a.accentPalette, t = r ? v[r][i] : null, l = t ? {
1780
+ function Ya(e, a) {
1781
+ var d, f, u, m, h, y, w, v, k, _, S, C, z, E, A, D, T, I, L, M, P, R, H, F, O, B, $, V, j, Z, U, Q, W, N, G, K, J, X, Y, q, aa, ea, ia, na, oa, ta, ra, sa, pa, ca, la, da, fa, ua, ga, ma, ha, xa, ba, ya, wa, va;
1782
+ const n = (a == null ? void 0 : a.mode) || "light", i = n === "dark" ? de : _a, r = a == null ? void 0 : a.accentPalette, o = r ? g[r][n] : null, c = o ? {
1890
1783
  colors: {
1891
- ...Ka(t)
1784
+ ...Ja(o)
1892
1785
  },
1893
1786
  palette: {
1894
- accent: t.scale,
1895
- accentAlpha: t.alphaScale,
1896
- accentContrast: t.contrast,
1897
- accentSurface: t.surface,
1898
- accentIndicator: t.indicator,
1899
- accentTrack: t.track
1787
+ accent: o.scale,
1788
+ accentAlpha: o.alphaScale,
1789
+ accentContrast: o.contrast,
1790
+ accentSurface: o.surface,
1791
+ accentIndicator: o.indicator,
1792
+ accentTrack: o.track
1900
1793
  }
1901
1794
  } : null;
1902
1795
  return {
1903
- ...n,
1796
+ ...i,
1904
1797
  ...e,
1905
1798
  colors: {
1906
- ...n.colors,
1907
- ...(l == null ? void 0 : l.colors) || {},
1799
+ ...i.colors,
1800
+ ...(c == null ? void 0 : c.colors) || {},
1908
1801
  ...(e == null ? void 0 : e.colors) || {}
1909
1802
  },
1910
1803
  palette: {
1911
- ...n.palette || {},
1912
- ...(l == null ? void 0 : l.palette) || {},
1804
+ ...i.palette || {},
1805
+ ...(c == null ? void 0 : c.palette) || {},
1913
1806
  ...(e == null ? void 0 : e.palette) || {},
1914
- gray: u((p = n.palette) == null ? void 0 : p.gray, (c = e == null ? void 0 : e.palette) == null ? void 0 : c.gray),
1915
- grayAlpha: u((d = n.palette) == null ? void 0 : d.grayAlpha, (y = e == null ? void 0 : e.palette) == null ? void 0 : y.grayAlpha),
1916
- blackAlpha: u((x = n.palette) == null ? void 0 : x.blackAlpha, (_ = e == null ? void 0 : e.palette) == null ? void 0 : _.blackAlpha),
1917
- whiteAlpha: u((w = n.palette) == null ? void 0 : w.whiteAlpha, (m = e == null ? void 0 : e.palette) == null ? void 0 : m.whiteAlpha),
1918
- accent: u((t == null ? void 0 : t.scale) || ((b = n.palette) == null ? void 0 : b.accent), (g = e == null ? void 0 : e.palette) == null ? void 0 : g.accent),
1919
- accentAlpha: u((t == null ? void 0 : t.alphaScale) || ((h = n.palette) == null ? void 0 : h.accentAlpha), (S = e == null ? void 0 : e.palette) == null ? void 0 : S.accentAlpha)
1807
+ gray: p((d = i.palette) == null ? void 0 : d.gray, (f = e == null ? void 0 : e.palette) == null ? void 0 : f.gray),
1808
+ grayAlpha: p((u = i.palette) == null ? void 0 : u.grayAlpha, (m = e == null ? void 0 : e.palette) == null ? void 0 : m.grayAlpha),
1809
+ blackAlpha: p((h = i.palette) == null ? void 0 : h.blackAlpha, (y = e == null ? void 0 : e.palette) == null ? void 0 : y.blackAlpha),
1810
+ whiteAlpha: p((w = i.palette) == null ? void 0 : w.whiteAlpha, (v = e == null ? void 0 : e.palette) == null ? void 0 : v.whiteAlpha),
1811
+ accent: p((o == null ? void 0 : o.scale) || ((k = i.palette) == null ? void 0 : k.accent), (_ = e == null ? void 0 : e.palette) == null ? void 0 : _.accent),
1812
+ accentAlpha: p((o == null ? void 0 : o.alphaScale) || ((S = i.palette) == null ? void 0 : S.accentAlpha), (C = e == null ? void 0 : e.palette) == null ? void 0 : C.accentAlpha)
1920
1813
  },
1921
1814
  surfaces: {
1922
- ...n.surfaces || {},
1815
+ ...i.surfaces || {},
1923
1816
  ...(e == null ? void 0 : e.surfaces) || {}
1924
1817
  },
1925
1818
  shadows: {
1926
- ...n.shadows || {},
1819
+ ...i.shadows || {},
1927
1820
  ...(e == null ? void 0 : e.shadows) || {}
1928
1821
  },
1929
1822
  spacing: {
1930
- ...n.spacing || {},
1823
+ ...i.spacing || {},
1931
1824
  ...(e == null ? void 0 : e.spacing) || {}
1932
1825
  },
1933
- spaceScale: u(n.spaceScale, e == null ? void 0 : e.spaceScale),
1934
- radiusScale: u(n.radiusScale, e == null ? void 0 : e.radiusScale),
1826
+ spaceScale: p(i.spaceScale, e == null ? void 0 : e.spaceScale),
1827
+ radiusScale: p(i.radiusScale, e == null ? void 0 : e.radiusScale),
1935
1828
  typography: {
1936
- ...n.typography || {},
1829
+ ...i.typography || {},
1937
1830
  ...(e == null ? void 0 : e.typography) || {},
1938
1831
  size: {
1939
- ...((C = n.typography) == null ? void 0 : C.size) || {},
1940
- ...((k = e == null ? void 0 : e.typography) == null ? void 0 : k.size) || {}
1832
+ ...((z = i.typography) == null ? void 0 : z.size) || {},
1833
+ ...((E = e == null ? void 0 : e.typography) == null ? void 0 : E.size) || {}
1941
1834
  },
1942
- fontScale: u((z = n.typography) == null ? void 0 : z.fontScale, (A = e == null ? void 0 : e.typography) == null ? void 0 : A.fontScale),
1943
- lineHeight: u((L = n.typography) == null ? void 0 : L.lineHeight, (T = e == null ? void 0 : e.typography) == null ? void 0 : T.lineHeight),
1944
- letterSpacing: u((I = n.typography) == null ? void 0 : I.letterSpacing, (D = e == null ? void 0 : e.typography) == null ? void 0 : D.letterSpacing)
1835
+ fontScale: p((A = i.typography) == null ? void 0 : A.fontScale, (D = e == null ? void 0 : e.typography) == null ? void 0 : D.fontScale),
1836
+ lineHeight: p((T = i.typography) == null ? void 0 : T.lineHeight, (I = e == null ? void 0 : e.typography) == null ? void 0 : I.lineHeight),
1837
+ letterSpacing: p((L = i.typography) == null ? void 0 : L.letterSpacing, (M = e == null ? void 0 : e.typography) == null ? void 0 : M.letterSpacing)
1945
1838
  },
1946
1839
  motion: {
1947
- ...n.motion || {},
1840
+ ...i.motion || {},
1948
1841
  ...(e == null ? void 0 : e.motion) || {}
1949
1842
  },
1950
1843
  effects: {
1951
- ...n.effects || {},
1844
+ ...i.effects || {},
1952
1845
  ...(e == null ? void 0 : e.effects) || {}
1953
1846
  },
1954
1847
  components: {
1955
- ...n.components || {},
1848
+ ...i.components || {},
1956
1849
  ...(e == null ? void 0 : e.components) || {},
1957
- button: u((R = n.components) == null ? void 0 : R.button, (H = e == null ? void 0 : e.components) == null ? void 0 : H.button),
1958
- badge: u((P = n.components) == null ? void 0 : P.badge, (F = e == null ? void 0 : e.components) == null ? void 0 : F.badge),
1959
- dropdown: u((B = n.components) == null ? void 0 : B.dropdown, ($ = e == null ? void 0 : e.components) == null ? void 0 : $.dropdown),
1960
- select: u((O = n.components) == null ? void 0 : O.select, (W = e == null ? void 0 : e.components) == null ? void 0 : W.select),
1961
- sidebar: u((V = n.components) == null ? void 0 : V.sidebar, (j = e == null ? void 0 : e.components) == null ? void 0 : j.sidebar),
1962
- card: u((U = n.components) == null ? void 0 : U.card, (Z = e == null ? void 0 : e.components) == null ? void 0 : Z.card),
1963
- navigationMenu: u((N = n.components) == null ? void 0 : N.navigationMenu, (Q = e == null ? void 0 : e.components) == null ? void 0 : Q.navigationMenu),
1964
- blockControls: u((X = n.components) == null ? void 0 : X.blockControls, (Y = e == null ? void 0 : e.components) == null ? void 0 : Y.blockControls),
1965
- box: u((G = n.components) == null ? void 0 : G.box, (K = e == null ? void 0 : e.components) == null ? void 0 : K.box),
1966
- breadcrumb: u((J = n.components) == null ? void 0 : J.breadcrumb, (q = e == null ? void 0 : e.components) == null ? void 0 : q.breadcrumb),
1967
- contextMenu: u((aa = n.components) == null ? void 0 : aa.contextMenu, (ea = e == null ? void 0 : e.components) == null ? void 0 : ea.contextMenu),
1968
- menubar: u((na = n.components) == null ? void 0 : na.menubar, (ia = e == null ? void 0 : e.components) == null ? void 0 : ia.menubar),
1969
- alert: u((ta = n.components) == null ? void 0 : ta.alert, (oa = e == null ? void 0 : e.components) == null ? void 0 : oa.alert),
1970
- alertDialog: u((ra = n.components) == null ? void 0 : ra.alertDialog, (sa = e == null ? void 0 : e.components) == null ? void 0 : sa.alertDialog),
1971
- appHeader: u((pa = n.components) == null ? void 0 : pa.appHeader, (ca = e == null ? void 0 : e.components) == null ? void 0 : ca.appHeader),
1972
- aspectRatio: u((la = n.components) == null ? void 0 : la.aspectRatio, (da = e == null ? void 0 : e.components) == null ? void 0 : da.aspectRatio),
1973
- avatar: u((fa = n.components) == null ? void 0 : fa.avatar, (ua = e == null ? void 0 : e.components) == null ? void 0 : ua.avatar),
1974
- menu: u((ma = n.components) == null ? void 0 : ma.menu, (ha = e == null ? void 0 : e.components) == null ? void 0 : ha.menu),
1975
- multiSelect: u((ga = n.components) == null ? void 0 : ga.multiSelect, (xa = e == null ? void 0 : e.components) == null ? void 0 : xa.multiSelect),
1976
- panel: u((ba = n.components) == null ? void 0 : ba.panel, (ya = e == null ? void 0 : e.components) == null ? void 0 : ya.panel),
1977
- input: u((wa = n.components) == null ? void 0 : wa.input, (va = e == null ? void 0 : e.components) == null ? void 0 : va.input)
1850
+ button: p((P = i.components) == null ? void 0 : P.button, (R = e == null ? void 0 : e.components) == null ? void 0 : R.button),
1851
+ badge: p((H = i.components) == null ? void 0 : H.badge, (F = e == null ? void 0 : e.components) == null ? void 0 : F.badge),
1852
+ dropdown: p((O = i.components) == null ? void 0 : O.dropdown, (B = e == null ? void 0 : e.components) == null ? void 0 : B.dropdown),
1853
+ select: p(($ = i.components) == null ? void 0 : $.select, (V = e == null ? void 0 : e.components) == null ? void 0 : V.select),
1854
+ sidebar: p((j = i.components) == null ? void 0 : j.sidebar, (Z = e == null ? void 0 : e.components) == null ? void 0 : Z.sidebar),
1855
+ card: p((U = i.components) == null ? void 0 : U.card, (Q = e == null ? void 0 : e.components) == null ? void 0 : Q.card),
1856
+ navigationMenu: p((W = i.components) == null ? void 0 : W.navigationMenu, (N = e == null ? void 0 : e.components) == null ? void 0 : N.navigationMenu),
1857
+ blockControls: p((G = i.components) == null ? void 0 : G.blockControls, (K = e == null ? void 0 : e.components) == null ? void 0 : K.blockControls),
1858
+ box: p((J = i.components) == null ? void 0 : J.box, (X = e == null ? void 0 : e.components) == null ? void 0 : X.box),
1859
+ breadcrumb: p((Y = i.components) == null ? void 0 : Y.breadcrumb, (q = e == null ? void 0 : e.components) == null ? void 0 : q.breadcrumb),
1860
+ contextMenu: p((aa = i.components) == null ? void 0 : aa.contextMenu, (ea = e == null ? void 0 : e.components) == null ? void 0 : ea.contextMenu),
1861
+ menubar: p((ia = i.components) == null ? void 0 : ia.menubar, (na = e == null ? void 0 : e.components) == null ? void 0 : na.menubar),
1862
+ alert: p((oa = i.components) == null ? void 0 : oa.alert, (ta = e == null ? void 0 : e.components) == null ? void 0 : ta.alert),
1863
+ alertDialog: p((ra = i.components) == null ? void 0 : ra.alertDialog, (sa = e == null ? void 0 : e.components) == null ? void 0 : sa.alertDialog),
1864
+ appHeader: p((pa = i.components) == null ? void 0 : pa.appHeader, (ca = e == null ? void 0 : e.components) == null ? void 0 : ca.appHeader),
1865
+ aspectRatio: p((la = i.components) == null ? void 0 : la.aspectRatio, (da = e == null ? void 0 : e.components) == null ? void 0 : da.aspectRatio),
1866
+ avatar: p((fa = i.components) == null ? void 0 : fa.avatar, (ua = e == null ? void 0 : e.components) == null ? void 0 : ua.avatar),
1867
+ menu: p((ga = i.components) == null ? void 0 : ga.menu, (ma = e == null ? void 0 : e.components) == null ? void 0 : ma.menu),
1868
+ multiSelect: p((ha = i.components) == null ? void 0 : ha.multiSelect, (xa = e == null ? void 0 : e.components) == null ? void 0 : xa.multiSelect),
1869
+ panel: p((ba = i.components) == null ? void 0 : ba.panel, (ya = e == null ? void 0 : e.components) == null ? void 0 : ya.panel),
1870
+ input: p((wa = i.components) == null ? void 0 : wa.input, (va = e == null ? void 0 : e.components) == null ? void 0 : va.input)
1978
1871
  },
1979
1872
  zIndex: {
1980
- ...n.zIndex || {},
1873
+ ...i.zIndex || {},
1981
1874
  ...(e == null ? void 0 : e.zIndex) || {}
1982
1875
  },
1983
1876
  breakpoints: {
1984
- ...n.breakpoints || {},
1877
+ ...i.breakpoints || {},
1985
1878
  ...(e == null ? void 0 : e.breakpoints) || {}
1986
1879
  }
1987
1880
  };
1988
1881
  }
1989
- function Se(e, a, i = "light") {
1990
- const n = v[a][i], r = e;
1991
- return qa(
1882
+ function ve(e, a, n = "light") {
1883
+ const i = g[a][n], r = e;
1884
+ return Ya(
1992
1885
  {
1993
1886
  ...r,
1994
1887
  colors: {
1995
1888
  ...r.colors || {},
1996
- ...Ka(n)
1889
+ ...Ja(i)
1997
1890
  },
1998
1891
  palette: {
1999
1892
  ...r.palette || {},
2000
- accent: n.scale,
2001
- accentAlpha: n.alphaScale,
2002
- accentContrast: n.contrast,
2003
- accentSurface: n.surface,
2004
- accentIndicator: n.indicator,
2005
- accentTrack: n.track
1893
+ accent: i.scale,
1894
+ accentAlpha: i.alphaScale,
1895
+ accentContrast: i.contrast,
1896
+ accentSurface: i.surface,
1897
+ accentIndicator: i.indicator,
1898
+ accentTrack: i.track
2006
1899
  }
2007
1900
  },
2008
- { mode: i }
1901
+ { mode: n }
2009
1902
  );
2010
1903
  }
2011
- function o(e, a, i) {
1904
+ function t(e, a, n) {
2012
1905
  try {
2013
- e.style.setProperty(a, i);
1906
+ e.style.setProperty(a, n);
2014
1907
  } catch {
2015
1908
  }
2016
1909
  }
2017
- function f(e, a, i) {
2018
- i && Object.entries(i).forEach(([n, r]) => {
2019
- typeof r == "string" && r && e.style.setProperty(`${a}${n}`, r);
1910
+ function s(e, a, n) {
1911
+ n && Object.entries(n).forEach(([i, r]) => {
1912
+ typeof r == "string" && r && e.style.setProperty(`${a}${i}`, r);
2020
1913
  });
2021
1914
  }
2022
- function Ce(e) {
2023
- e && Ja.add(e);
1915
+ function ke(e) {
1916
+ e && Xa.add(e);
2024
1917
  }
2025
- function Qa(e, a) {
2026
- var i, n, r, t, l, s, p, c, d, y, x, _, w, m, b, g, h, S, C, k, z, A, L, T, I, D, R, H, P, F, B, $, O, W, V, j, U, Z, N, Q, X, Y, G, K, J, q, aa, ea, na, ia, ta, oa, ra, sa, pa, ca, la, da, fa, ua, ma, ha, ga, xa, ba, ya, wa, va, Ca, za, Aa, Ea, Ma, La, Ta, Ia, Da, Ra, Ha, Pa, Fa, Ba, $a, Oa, Wa;
2027
- o(e, "--ui-color-primary", a.colors.primary), o(e, "--ui-color-primary-hover", a.colors.primaryHover || a.colors.primary), o(e, "--ui-color-foreground-on-primary", a.colors.foregroundOnPrimary || "#ffffff"), o(e, "--ui-color-background", a.colors.background || "#ffffff"), o(e, "--ui-color-surface", a.colors.surface || a.colors.background || "#ffffff"), o(e, "--ui-color-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), o(e, "--ui-color-text", a.colors.text || "#202020"), o(e, "--ui-color-muted", a.colors.muted || "#646464"), o(e, "--ui-color-border", a.colors.border || "#0000001f"), o(e, "--ui-color-focus-ring", a.colors.focusRing || a.colors.primary), o(e, "--ui-color-success", a.colors.success || "#30a46c"), o(e, "--ui-color-danger", a.colors.danger || "#e5484d"), o(e, "--ui-color-warning", a.colors.warning || a.colors.primary), o(e, "--ui-primary", a.colors.primary), o(e, "--ui-primary-hover", a.colors.primaryHover || a.colors.primary), o(e, "--ui-foreground", a.colors.foregroundOnPrimary || "#ffffff"), o(e, "--ui-background", a.colors.background || "#ffffff"), o(e, "--ui-surface", a.colors.surface || a.colors.background || "#ffffff"), o(e, "--ui-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), o(e, "--ui-text", a.colors.text || "#202020"), o(e, "--ui-muted", a.colors.muted || "#646464"), o(e, "--ui-border", a.colors.border || "#0000001f"), o(e, "--ui-focus-ring", a.colors.focusRing || a.colors.primary), o(e, "--ui-success", a.colors.success || "#30a46c"), o(e, "--ui-error", a.colors.danger || "#e5484d"), o(e, "--ui-warning", a.colors.warning || a.colors.primary), o(e, "--ui-radius", a.radius || "4px"), o(e, "--ui-space-xs", ((i = a.spacing) == null ? void 0 : i.xs) || "4px"), o(e, "--ui-space-sm", ((n = a.spacing) == null ? void 0 : n.sm) || "8px"), o(e, "--ui-space-md", ((r = a.spacing) == null ? void 0 : r.md) || "12px"), o(e, "--ui-space-lg", ((t = a.spacing) == null ? void 0 : t.lg) || "24px"), o(e, "--ui-space-xl", ((l = a.spacing) == null ? void 0 : l.xl) || "32px"), o(e, "--ui-space-xxl", ((s = a.spacing) == null ? void 0 : s.xxl) || "48px"), o(e, "--ui-default-gap", ((p = a.spacing) == null ? void 0 : p.sm) || ((c = a.spaceScale) == null ? void 0 : c["2"]) || "8px"), o(e, "--ui-shadow-sm", ((d = a.shadows) == null ? void 0 : d.sm) || ((y = a.shadows) == null ? void 0 : y["2"]) || "none"), o(e, "--ui-shadow-md", ((x = a.shadows) == null ? void 0 : x.md) || ((_ = a.shadows) == null ? void 0 : _["3"]) || "none"), o(e, "--ui-shadow-lg", ((w = a.shadows) == null ? void 0 : w.lg) || ((m = a.shadows) == null ? void 0 : m["4"]) || "none"), o(e, "--ui-font-family", ((b = a.typography) == null ? void 0 : b.family) || "system-ui, sans-serif"), o(e, "--ui-font-family-heading", ((g = a.typography) == null ? void 0 : g.headingFamily) || ((h = a.typography) == null ? void 0 : h.family) || "system-ui, sans-serif"), o(e, "--ui-font-family-code", ((S = a.typography) == null ? void 0 : S.codeFamily) || "monospace"), o(e, "--ui-font-size-sm", ((k = (C = a.typography) == null ? void 0 : C.size) == null ? void 0 : k.sm) || "12px"), o(e, "--ui-font-size-md", ((A = (z = a.typography) == null ? void 0 : z.size) == null ? void 0 : A.md) || "14px"), o(e, "--ui-font-size-lg", ((T = (L = a.typography) == null ? void 0 : L.size) == null ? void 0 : T.lg) || "16px"), o(e, "--ui-default-font-size", ((D = (I = a.typography) == null ? void 0 : I.size) == null ? void 0 : D.md) || ((H = (R = a.typography) == null ? void 0 : R.fontScale) == null ? void 0 : H["2"]) || "14px"), o(e, "--ui-default-line-height", ((F = (P = a.typography) == null ? void 0 : P.lineHeight) == null ? void 0 : F["2"]) || "20px"), o(e, "--ui-default-letter-spacing", (($ = (B = a.typography) == null ? void 0 : B.letterSpacing) == null ? void 0 : $["2"]) || "0em"), o(e, "--ui-motion-short", ((O = a.motion) == null ? void 0 : O.durationShort) || "120ms"), o(e, "--ui-motion-base", ((W = a.motion) == null ? void 0 : W.durationBase) || "180ms"), o(e, "--ui-motion-long", ((V = a.motion) == null ? void 0 : V.durationLong) || "260ms"), o(e, "--ui-motion-easing", ((j = a.motion) == null ? void 0 : j.easing) || "cubic-bezier(0.2, 0.8, 0.2, 1)"), o(e, "--ui-z-modal", String(((U = a.zIndex) == null ? void 0 : U.modal) ?? 1e3)), o(e, "--ui-z-overlay", String(((Z = a.zIndex) == null ? void 0 : Z.overlay) ?? 900)), o(e, "--ui-z-toast", String(((N = a.zIndex) == null ? void 0 : N.toast) ?? 1100)), o(e, "--ui-breakpoint-sm", ((Q = a.breakpoints) == null ? void 0 : Q.sm) || "640px"), o(e, "--ui-breakpoint-md", ((X = a.breakpoints) == null ? void 0 : X.md) || "768px"), o(e, "--ui-breakpoint-lg", ((Y = a.breakpoints) == null ? void 0 : Y.lg) || "1024px"), o(e, "--color-background", ((G = a.surfaces) == null ? void 0 : G.background) || a.colors.background || "#ffffff"), o(e, "--color-surface", ((K = a.surfaces) == null ? void 0 : K.surface) || a.colors.surface || "#fcfcfc"), o(e, "--color-panel", ((J = a.surfaces) == null ? void 0 : J.panel) || ((q = a.surfaces) == null ? void 0 : q.panelTranslucent) || "#ffffffcc"), o(e, "--color-panel-solid", ((aa = a.surfaces) == null ? void 0 : aa.panelSolid) || a.colors.surface || "#ffffff"), o(e, "--color-panel-translucent", ((ea = a.surfaces) == null ? void 0 : ea.panelTranslucent) || "#ffffffcc"), o(e, "--color-overlay", ((na = a.surfaces) == null ? void 0 : na.overlay) || "rgba(2, 6, 23, 0.52)"), o(e, "--color-transparent", ((ia = a.surfaces) == null ? void 0 : ia.transparent) || "transparent"), o(e, "--backdrop-filter-panel", ((ta = a.effects) == null ? void 0 : ta.backdropFilterPanel) || "blur(64px)"), (oa = a.palette) != null && oa.accentContrast && o(e, "--accent-contrast", a.palette.accentContrast), (ra = a.palette) != null && ra.accentSurface && o(e, "--accent-surface", a.palette.accentSurface), (sa = a.palette) != null && sa.accentIndicator && o(e, "--accent-indicator", a.palette.accentIndicator), (pa = a.palette) != null && pa.accentTrack && o(e, "--accent-track", a.palette.accentTrack), f(e, "--gray-", (ca = a.palette) == null ? void 0 : ca.gray), f(e, "--gray-a", (la = a.palette) == null ? void 0 : la.grayAlpha), f(e, "--black-a", (da = a.palette) == null ? void 0 : da.blackAlpha), f(e, "--white-a", (fa = a.palette) == null ? void 0 : fa.whiteAlpha), f(e, "--accent-", (ua = a.palette) == null ? void 0 : ua.accent), f(e, "--accent-a", (ma = a.palette) == null ? void 0 : ma.accentAlpha), f(e, "--space-", a.spaceScale), f(e, "--radius-", a.radiusScale), f(e, "--font-size-", (ha = a.typography) == null ? void 0 : ha.fontScale), f(e, "--line-height-", (ga = a.typography) == null ? void 0 : ga.lineHeight), f(e, "--letter-spacing-", (xa = a.typography) == null ? void 0 : xa.letterSpacing), f(e, "--shadow-", a.shadows), f(e, "--base-button-", (ba = a.components) == null ? void 0 : ba.button), f(e, "--base-badge-", (ya = a.components) == null ? void 0 : ya.badge), f(e, "--base-dropdown-", (wa = a.components) == null ? void 0 : wa.dropdown), f(e, "--base-select-", (va = a.components) == null ? void 0 : va.select), f(e, "--base-sidebar-", (Ca = a.components) == null ? void 0 : Ca.sidebar), f(e, "--base-block-controls-", (za = a.components) == null ? void 0 : za.blockControls), f(e, "--base-box-", (Aa = a.components) == null ? void 0 : Aa.box), f(e, "--base-breadcrumb-", (Ea = a.components) == null ? void 0 : Ea.breadcrumb), f(e, "--base-card-", (Ma = a.components) == null ? void 0 : Ma.card), f(e, "--base-multi-select-", (La = a.components) == null ? void 0 : La.multiSelect), f(e, "--base-navigation-menu-", (Ta = a.components) == null ? void 0 : Ta.navigationMenu), f(e, "--base-menubar-", (Ia = a.components) == null ? void 0 : Ia.menubar), f(e, "--base-context-menu-", (Da = a.components) == null ? void 0 : Da.contextMenu), f(e, "--base-alert-", (Ra = a.components) == null ? void 0 : Ra.alert), f(e, "--base-alert-dialog-", (Ha = a.components) == null ? void 0 : Ha.alertDialog), f(e, "--base-app-header-", (Pa = a.components) == null ? void 0 : Pa.appHeader), f(e, "--base-aspect-ratio-", (Fa = a.components) == null ? void 0 : Fa.aspectRatio), f(e, "--base-avatar-", (Ba = a.components) == null ? void 0 : Ba.avatar), f(e, "--base-menu-", ($a = a.components) == null ? void 0 : $a.menu), f(e, "--base-panel-", (Oa = a.components) == null ? void 0 : Oa.panel), f(e, "--base-input-", (Wa = a.components) == null ? void 0 : Wa.input);
1918
+ function Wa(e, a) {
1919
+ var n, i, r, o, c, l, d, f, u, m, h, y, w, v, k, _, S, C, z, E, A, D, T, I, L, M, P, R, H, F, O, B, $, V, j, Z, U, Q, W, N, G, K, J, X, Y, q, aa, ea, ia, na, oa, ta, ra, sa, pa, ca, la, da, fa, ua, ga, ma, ha, xa, ba, ya, wa, va, Ca, za, Ea, Aa, Da, Ta, Ia, La, Ma, Pa, Ra, Ha, Fa, Oa, Ba, $a, Va;
1920
+ t(e, "--ui-color-primary", a.colors.primary), t(e, "--ui-color-primary-hover", a.colors.primaryHover || a.colors.primary), t(e, "--ui-color-foreground-on-primary", a.colors.foregroundOnPrimary || "#ffffff"), t(e, "--ui-color-background", a.colors.background || "#ffffff"), t(e, "--ui-color-surface", a.colors.surface || a.colors.background || "#ffffff"), t(e, "--ui-color-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), t(e, "--ui-color-text", a.colors.text || "#202020"), t(e, "--ui-color-muted", a.colors.muted || "#646464"), t(e, "--ui-color-border", a.colors.border || "#0000001f"), t(e, "--ui-color-focus-ring", a.colors.focusRing || a.colors.primary), t(e, "--ui-color-success", a.colors.success || "#30a46c"), t(e, "--ui-color-danger", a.colors.danger || "#e5484d"), t(e, "--ui-color-warning", a.colors.warning || a.colors.primary), t(e, "--ui-primary", a.colors.primary), t(e, "--ui-primary-hover", a.colors.primaryHover || a.colors.primary), t(e, "--ui-foreground", a.colors.foregroundOnPrimary || "#ffffff"), t(e, "--ui-background", a.colors.background || "#ffffff"), t(e, "--ui-surface", a.colors.surface || a.colors.background || "#ffffff"), t(e, "--ui-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), t(e, "--ui-text", a.colors.text || "#202020"), t(e, "--ui-muted", a.colors.muted || "#646464"), t(e, "--ui-border", a.colors.border || "#0000001f"), t(e, "--ui-focus-ring", a.colors.focusRing || a.colors.primary), t(e, "--ui-success", a.colors.success || "#30a46c"), t(e, "--ui-error", a.colors.danger || "#e5484d"), t(e, "--ui-warning", a.colors.warning || a.colors.primary), t(e, "--ui-radius", a.radius || "4px"), t(e, "--ui-space-xs", ((n = a.spacing) == null ? void 0 : n.xs) || "4px"), t(e, "--ui-space-sm", ((i = a.spacing) == null ? void 0 : i.sm) || "8px"), t(e, "--ui-space-md", ((r = a.spacing) == null ? void 0 : r.md) || "12px"), t(e, "--ui-space-lg", ((o = a.spacing) == null ? void 0 : o.lg) || "24px"), t(e, "--ui-space-xl", ((c = a.spacing) == null ? void 0 : c.xl) || "32px"), t(e, "--ui-space-xxl", ((l = a.spacing) == null ? void 0 : l.xxl) || "48px"), t(e, "--ui-default-gap", ((d = a.spacing) == null ? void 0 : d.sm) || ((f = a.spaceScale) == null ? void 0 : f["2"]) || "8px"), t(e, "--ui-shadow-sm", ((u = a.shadows) == null ? void 0 : u.sm) || ((m = a.shadows) == null ? void 0 : m["2"]) || "none"), t(e, "--ui-shadow-md", ((h = a.shadows) == null ? void 0 : h.md) || ((y = a.shadows) == null ? void 0 : y["3"]) || "none"), t(e, "--ui-shadow-lg", ((w = a.shadows) == null ? void 0 : w.lg) || ((v = a.shadows) == null ? void 0 : v["4"]) || "none"), t(e, "--ui-font-family", ((k = a.typography) == null ? void 0 : k.family) || "system-ui, sans-serif"), t(e, "--ui-font-family-heading", ((_ = a.typography) == null ? void 0 : _.headingFamily) || ((S = a.typography) == null ? void 0 : S.family) || "system-ui, sans-serif"), t(e, "--ui-font-family-code", ((C = a.typography) == null ? void 0 : C.codeFamily) || "monospace"), t(e, "--ui-font-size-sm", ((E = (z = a.typography) == null ? void 0 : z.size) == null ? void 0 : E.sm) || "12px"), t(e, "--ui-font-size-md", ((D = (A = a.typography) == null ? void 0 : A.size) == null ? void 0 : D.md) || "14px"), t(e, "--ui-font-size-lg", ((I = (T = a.typography) == null ? void 0 : T.size) == null ? void 0 : I.lg) || "16px"), t(e, "--ui-default-font-size", ((M = (L = a.typography) == null ? void 0 : L.size) == null ? void 0 : M.md) || ((R = (P = a.typography) == null ? void 0 : P.fontScale) == null ? void 0 : R["2"]) || "14px"), t(e, "--ui-default-line-height", ((F = (H = a.typography) == null ? void 0 : H.lineHeight) == null ? void 0 : F["2"]) || "20px"), t(e, "--ui-default-letter-spacing", ((B = (O = a.typography) == null ? void 0 : O.letterSpacing) == null ? void 0 : B["2"]) || "0em"), t(e, "--ui-motion-short", (($ = a.motion) == null ? void 0 : $.durationShort) || "120ms"), t(e, "--ui-motion-base", ((V = a.motion) == null ? void 0 : V.durationBase) || "180ms"), t(e, "--ui-motion-long", ((j = a.motion) == null ? void 0 : j.durationLong) || "260ms"), t(e, "--ui-motion-easing", ((Z = a.motion) == null ? void 0 : Z.easing) || "cubic-bezier(0.2, 0.8, 0.2, 1)"), t(e, "--ui-z-modal", String(((U = a.zIndex) == null ? void 0 : U.modal) ?? 1e3)), t(e, "--ui-z-overlay", String(((Q = a.zIndex) == null ? void 0 : Q.overlay) ?? 900)), t(e, "--ui-z-toast", String(((W = a.zIndex) == null ? void 0 : W.toast) ?? 1100)), t(e, "--ui-breakpoint-sm", ((N = a.breakpoints) == null ? void 0 : N.sm) || "640px"), t(e, "--ui-breakpoint-md", ((G = a.breakpoints) == null ? void 0 : G.md) || "768px"), t(e, "--ui-breakpoint-lg", ((K = a.breakpoints) == null ? void 0 : K.lg) || "1024px"), t(e, "--color-background", ((J = a.surfaces) == null ? void 0 : J.background) || a.colors.background || "#ffffff"), t(e, "--color-surface", ((X = a.surfaces) == null ? void 0 : X.surface) || a.colors.surface || "#fcfcfc"), t(e, "--color-panel", ((Y = a.surfaces) == null ? void 0 : Y.panel) || ((q = a.surfaces) == null ? void 0 : q.panelTranslucent) || "#ffffffcc"), t(e, "--color-panel-solid", ((aa = a.surfaces) == null ? void 0 : aa.panelSolid) || a.colors.surface || "#ffffff"), t(e, "--color-panel-translucent", ((ea = a.surfaces) == null ? void 0 : ea.panelTranslucent) || "#ffffffcc"), t(e, "--color-overlay", ((ia = a.surfaces) == null ? void 0 : ia.overlay) || "rgba(2, 6, 23, 0.52)"), t(e, "--color-transparent", ((na = a.surfaces) == null ? void 0 : na.transparent) || "transparent"), t(e, "--backdrop-filter-panel", ((oa = a.effects) == null ? void 0 : oa.backdropFilterPanel) || "blur(64px)"), (ta = a.palette) != null && ta.accentContrast && t(e, "--accent-contrast", a.palette.accentContrast), (ra = a.palette) != null && ra.accentSurface && t(e, "--accent-surface", a.palette.accentSurface), (sa = a.palette) != null && sa.accentIndicator && t(e, "--accent-indicator", a.palette.accentIndicator), (pa = a.palette) != null && pa.accentTrack && t(e, "--accent-track", a.palette.accentTrack), s(e, "--gray-", (ca = a.palette) == null ? void 0 : ca.gray), s(e, "--gray-a", (la = a.palette) == null ? void 0 : la.grayAlpha), s(e, "--black-a", (da = a.palette) == null ? void 0 : da.blackAlpha), s(e, "--white-a", (fa = a.palette) == null ? void 0 : fa.whiteAlpha), s(e, "--accent-", (ua = a.palette) == null ? void 0 : ua.accent), s(e, "--accent-a", (ga = a.palette) == null ? void 0 : ga.accentAlpha), s(e, "--space-", a.spaceScale), s(e, "--radius-", a.radiusScale), s(e, "--font-size-", (ma = a.typography) == null ? void 0 : ma.fontScale), s(e, "--line-height-", (ha = a.typography) == null ? void 0 : ha.lineHeight), s(e, "--letter-spacing-", (xa = a.typography) == null ? void 0 : xa.letterSpacing), s(e, "--shadow-", a.shadows), s(e, "--base-button-", (ba = a.components) == null ? void 0 : ba.button), s(e, "--base-badge-", (ya = a.components) == null ? void 0 : ya.badge), s(e, "--base-dropdown-", (wa = a.components) == null ? void 0 : wa.dropdown), s(e, "--base-select-", (va = a.components) == null ? void 0 : va.select), s(e, "--base-sidebar-", (Ca = a.components) == null ? void 0 : Ca.sidebar), s(e, "--base-block-controls-", (za = a.components) == null ? void 0 : za.blockControls), s(e, "--base-box-", (Ea = a.components) == null ? void 0 : Ea.box), s(e, "--base-breadcrumb-", (Aa = a.components) == null ? void 0 : Aa.breadcrumb), s(e, "--base-card-", (Da = a.components) == null ? void 0 : Da.card), s(e, "--base-multi-select-", (Ta = a.components) == null ? void 0 : Ta.multiSelect), s(e, "--base-navigation-menu-", (Ia = a.components) == null ? void 0 : Ia.navigationMenu), s(e, "--base-menubar-", (La = a.components) == null ? void 0 : La.menubar), s(e, "--base-context-menu-", (Ma = a.components) == null ? void 0 : Ma.contextMenu), s(e, "--base-alert-", (Pa = a.components) == null ? void 0 : Pa.alert), s(e, "--base-alert-dialog-", (Ra = a.components) == null ? void 0 : Ra.alertDialog), s(e, "--base-app-header-", (Ha = a.components) == null ? void 0 : Ha.appHeader), s(e, "--base-aspect-ratio-", (Fa = a.components) == null ? void 0 : Fa.aspectRatio), s(e, "--base-avatar-", (Oa = a.components) == null ? void 0 : Oa.avatar), s(e, "--base-menu-", (Ba = a.components) == null ? void 0 : Ba.menu), s(e, "--base-panel-", ($a = a.components) == null ? void 0 : $a.panel), s(e, "--base-input-", (Va = a.components) == null ? void 0 : Va.input);
2028
1921
  }
2029
- function ze(e, a = typeof document < "u" ? document : null) {
1922
+ function _e(e, a = typeof document < "u" ? document : null) {
2030
1923
  if (!a)
2031
1924
  return;
2032
- const i = qa(e), n = a === document || a instanceof ShadowRoot;
1925
+ const n = Ya(e), i = a === document || a instanceof ShadowRoot;
2033
1926
  let r;
2034
- if (a === document ? r = document.documentElement : a instanceof ShadowRoot ? r = a.host : r = a, Qa(r, i), n)
2035
- for (const t of Ja)
1927
+ if (a === document ? r = document.documentElement : a instanceof ShadowRoot ? r = a.host : r = a, Wa(r, n), i)
1928
+ for (const o of Xa)
2036
1929
  try {
2037
- Qa(t, i);
1930
+ Wa(o, n);
2038
1931
  } catch {
2039
1932
  }
2040
1933
  }
2041
1934
  export {
2042
- re as A,
2043
- le as D,
2044
- se as a,
1935
+ ne as A,
1936
+ se as D,
1937
+ ue as a,
2045
1938
  ge as b,
2046
- ae as c,
2047
- xe as d,
2048
- ye as e,
2049
- de as f,
2050
- we as g,
2051
- ve as h,
2052
- ke as i,
2053
- v as j,
2054
- _a as k,
2055
- me as l,
1939
+ oe as c,
1940
+ he as d,
1941
+ pe as e,
1942
+ be as f,
1943
+ ye as g,
1944
+ g as h,
1945
+ _a as i,
1946
+ de as j,
1947
+ we as k,
1948
+ Ya as l,
2056
1949
  _e as m,
2057
- qa as n,
2058
- ze as o,
2059
- be as p,
2060
- Va as q,
2061
- Ce as r,
2062
- he as s,
2063
- ee as t,
2064
- Se as w
1950
+ me as p,
1951
+ ke as r,
1952
+ xe as s,
1953
+ ve as w
2065
1954
  };