@editora/ui-core 0.1.21 → 0.1.23

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 (348) hide show
  1. package/README.md +292 -221
  2. package/dist/{ElementBase-YlTLMsGk.mjs → ElementBase-BeZT54Hj.mjs} +3 -2
  3. package/dist/ElementBase-DxbvhLJs.js +1 -0
  4. package/dist/ElementBase.d.ts +2 -1
  5. package/dist/ElementBase.d.ts.map +1 -1
  6. package/dist/__tests__/setup.d.ts +0 -2
  7. package/dist/__tests__/setup.d.ts.map +1 -1
  8. package/dist/accordion.cjs.js +4 -4
  9. package/dist/accordion.esm.js +4 -4
  10. package/dist/alert-dialog.cjs.js +32 -32
  11. package/dist/alert-dialog.esm.js +95 -75
  12. package/dist/alert.cjs.js +7 -7
  13. package/dist/alert.esm.js +7 -7
  14. package/dist/anchor.cjs.js +3 -3
  15. package/dist/anchor.esm.js +6 -5
  16. package/dist/animated-beam.cjs.js +1 -1
  17. package/dist/animated-beam.esm.js +1 -1
  18. package/dist/animated-list.cjs.js +5 -5
  19. package/dist/animated-list.esm.js +5 -5
  20. package/dist/animated-text.cjs.js +5 -5
  21. package/dist/animated-text.esm.js +5 -5
  22. package/dist/app-header.cjs.js +4 -4
  23. package/dist/app-header.esm.js +4 -4
  24. package/dist/aspect-ratio.cjs.js +4 -4
  25. package/dist/aspect-ratio.esm.js +4 -4
  26. package/dist/avatar.cjs.js +14 -14
  27. package/dist/avatar.esm.js +31 -29
  28. package/dist/badge.cjs.js +5 -5
  29. package/dist/badge.esm.js +5 -5
  30. package/dist/block-controls.cjs.js +5 -5
  31. package/dist/block-controls.esm.js +5 -5
  32. package/dist/box.cjs.js +3 -3
  33. package/dist/box.esm.js +3 -3
  34. package/dist/breadcrumb.cjs.js +6 -6
  35. package/dist/breadcrumb.esm.js +6 -6
  36. package/dist/button.cjs.js +1 -1
  37. package/dist/button.esm.js +1 -1
  38. package/dist/{calendar-DLY4acgn.mjs → calendar-B3PUKHQm.mjs} +227 -183
  39. package/dist/{calendar-Dkof-FTK.js → calendar-D-mXMgqc.js} +74 -35
  40. package/dist/calendar.cjs.js +1 -1
  41. package/dist/calendar.esm.js +1 -1
  42. package/dist/card.cjs.js +8 -8
  43. package/dist/card.esm.js +63 -20
  44. package/dist/chart.cjs.js +5 -5
  45. package/dist/chart.esm.js +7 -7
  46. package/dist/checkbox.cjs.js +3 -3
  47. package/dist/checkbox.esm.js +3 -3
  48. package/dist/collapsible.cjs.js +8 -8
  49. package/dist/collapsible.esm.js +8 -8
  50. package/dist/collection.cjs.js +1 -1
  51. package/dist/collection.esm.js +9 -8
  52. package/dist/color-picker.cjs.js +30 -10
  53. package/dist/color-picker.esm.js +84 -62
  54. package/dist/combobox.cjs.js +29 -27
  55. package/dist/combobox.esm.js +51 -45
  56. package/dist/command-palette.cjs.js +1 -1
  57. package/dist/command-palette.esm.js +1 -1
  58. package/dist/command.cjs.js +2 -2
  59. package/dist/command.esm.js +3 -3
  60. package/dist/components/ui-alert-dialog.d.ts +1 -0
  61. package/dist/components/ui-alert-dialog.d.ts.map +1 -1
  62. package/dist/components/ui-anchor.d.ts +2 -1
  63. package/dist/components/ui-anchor.d.ts.map +1 -1
  64. package/dist/components/ui-avatar.d.ts +1 -0
  65. package/dist/components/ui-avatar.d.ts.map +1 -1
  66. package/dist/components/ui-button.d.ts +1 -0
  67. package/dist/components/ui-button.d.ts.map +1 -1
  68. package/dist/components/ui-calendar.d.ts.map +1 -1
  69. package/dist/components/ui-card.d.ts +3 -0
  70. package/dist/components/ui-card.d.ts.map +1 -1
  71. package/dist/components/ui-checkbox.d.ts.map +1 -1
  72. package/dist/components/ui-collection.d.ts +2 -1
  73. package/dist/components/ui-collection.d.ts.map +1 -1
  74. package/dist/components/ui-color-picker.d.ts.map +1 -1
  75. package/dist/components/ui-combobox.d.ts.map +1 -1
  76. package/dist/components/ui-data-table.d.ts.map +1 -1
  77. package/dist/components/ui-date-field.d.ts.map +1 -1
  78. package/dist/components/ui-date-picker.d.ts.map +1 -1
  79. package/dist/components/ui-date-range-picker.d.ts.map +1 -1
  80. package/dist/components/ui-date-range-time-picker.d.ts.map +1 -1
  81. package/dist/components/ui-date-time-picker.d.ts.map +1 -1
  82. package/dist/components/ui-dock.d.ts +1 -0
  83. package/dist/components/ui-dock.d.ts.map +1 -1
  84. package/dist/components/ui-drawer.d.ts.map +1 -1
  85. package/dist/components/ui-dropdown.d.ts.map +1 -1
  86. package/dist/components/ui-field.d.ts.map +1 -1
  87. package/dist/components/ui-file-upload.d.ts.map +1 -1
  88. package/dist/components/ui-form.d.ts +1 -0
  89. package/dist/components/ui-form.d.ts.map +1 -1
  90. package/dist/components/ui-gantt.d.ts.map +1 -1
  91. package/dist/components/ui-input.d.ts.map +1 -1
  92. package/dist/components/ui-menu.d.ts.map +1 -1
  93. package/dist/components/ui-multi-select.d.ts.map +1 -1
  94. package/dist/components/ui-number-field.d.ts.map +1 -1
  95. package/dist/components/ui-password-field.d.ts.map +1 -1
  96. package/dist/components/ui-pin-input.d.ts +1 -0
  97. package/dist/components/ui-pin-input.d.ts.map +1 -1
  98. package/dist/components/ui-placement-grid.d.ts.map +1 -1
  99. package/dist/components/ui-progress.d.ts.map +1 -1
  100. package/dist/components/ui-radio.d.ts.map +1 -1
  101. package/dist/components/ui-rating.d.ts +1 -0
  102. package/dist/components/ui-rating.d.ts.map +1 -1
  103. package/dist/components/ui-roving-focus-group.d.ts +2 -1
  104. package/dist/components/ui-roving-focus-group.d.ts.map +1 -1
  105. package/dist/components/ui-select.d.ts.map +1 -1
  106. package/dist/components/ui-sortable.d.ts.map +1 -1
  107. package/dist/components/ui-switch.d.ts.map +1 -1
  108. package/dist/components/ui-table.d.ts.map +1 -1
  109. package/dist/components/ui-tabs.d.ts +1 -0
  110. package/dist/components/ui-tabs.d.ts.map +1 -1
  111. package/dist/components/ui-tags-input.d.ts +1 -0
  112. package/dist/components/ui-tags-input.d.ts.map +1 -1
  113. package/dist/components/ui-textarea.d.ts.map +1 -1
  114. package/dist/components/ui-time-field.d.ts.map +1 -1
  115. package/dist/components/ui-toggle-group.d.ts.map +1 -1
  116. package/dist/components/ui-toggle.d.ts.map +1 -1
  117. package/dist/components/ui-tree.d.ts.map +1 -1
  118. package/dist/components/ui-wizard.d.ts.map +1 -1
  119. package/dist/container.cjs.js +1 -1
  120. package/dist/container.esm.js +1 -1
  121. package/dist/context-menu.cjs.js +3 -3
  122. package/dist/context-menu.esm.js +5 -5
  123. package/dist/control-group.cjs.js +1 -1
  124. package/dist/control-group.esm.js +1 -1
  125. package/dist/control-name-BmoI1m3a.js +1 -0
  126. package/dist/control-name-Bpj7F34X.mjs +48 -0
  127. package/dist/data-table.cjs.js +6 -3
  128. package/dist/data-table.esm.js +146 -143
  129. package/dist/date-field.cjs.js +5 -5
  130. package/dist/date-field.esm.js +34 -31
  131. package/dist/date-picker.cjs.js +16 -16
  132. package/dist/date-picker.esm.js +49 -45
  133. package/dist/date-range-picker.cjs.js +5 -5
  134. package/dist/date-range-picker.esm.js +120 -118
  135. package/dist/date-range-time-picker.cjs.js +22 -22
  136. package/dist/date-range-time-picker.esm.js +89 -85
  137. package/dist/date-time-picker.cjs.js +23 -23
  138. package/dist/date-time-picker.esm.js +103 -99
  139. package/dist/{date-time-utils-y1N2gvG2.mjs → date-time-utils-BTlxnz5j.mjs} +1 -1
  140. package/dist/{date-time-utils-Dmost5Ee.js → date-time-utils-y3AvNvGe.js} +1 -1
  141. package/dist/description.cjs.js +4 -4
  142. package/dist/description.esm.js +4 -4
  143. package/dist/dialog.cjs.js +3 -3
  144. package/dist/dialog.esm.js +3 -3
  145. package/dist/direction-provider.cjs.js +1 -1
  146. package/dist/direction-provider.esm.js +1 -1
  147. package/dist/dismissable-layer.cjs.js +1 -1
  148. package/dist/dismissable-layer.esm.js +1 -1
  149. package/dist/dock.cjs.js +12 -12
  150. package/dist/dock.esm.js +73 -75
  151. package/dist/domElement-DazSZBjV.js +1 -0
  152. package/dist/domElement-ZlSGVP0l.mjs +5 -0
  153. package/dist/domElement.d.ts +2 -0
  154. package/dist/domElement.d.ts.map +1 -0
  155. package/dist/drawer.cjs.js +19 -19
  156. package/dist/drawer.esm.js +58 -58
  157. package/dist/dropdown.cjs.js +13 -13
  158. package/dist/dropdown.esm.js +50 -49
  159. package/dist/empty-state.cjs.js +4 -4
  160. package/dist/empty-state.esm.js +4 -4
  161. package/dist/field-error.cjs.js +2 -2
  162. package/dist/field-error.esm.js +2 -2
  163. package/dist/field.cjs.js +12 -12
  164. package/dist/field.esm.js +84 -75
  165. package/dist/fieldset.cjs.js +5 -5
  166. package/dist/fieldset.esm.js +5 -5
  167. package/dist/file-upload.cjs.js +4 -4
  168. package/dist/file-upload.esm.js +6 -4
  169. package/dist/flex.cjs.js +1 -1
  170. package/dist/flex.esm.js +1 -1
  171. package/dist/floating-toolbar.cjs.js +8 -8
  172. package/dist/floating-toolbar.esm.js +10 -10
  173. package/dist/focus-scope.cjs.js +1 -1
  174. package/dist/focus-scope.esm.js +1 -1
  175. package/dist/form.cjs.js +13 -13
  176. package/dist/form.esm.js +23 -13
  177. package/dist/gantt.cjs.js +43 -32
  178. package/dist/gantt.esm.js +100 -89
  179. package/dist/grid.cjs.js +1 -1
  180. package/dist/grid.esm.js +1 -1
  181. package/dist/hover-card.cjs.js +1 -1
  182. package/dist/hover-card.esm.js +1 -1
  183. package/dist/icon-cloud.cjs.js +4 -4
  184. package/dist/icon-cloud.esm.js +4 -4
  185. package/dist/icon.cjs.js +1 -1
  186. package/dist/icon.esm.js +1 -1
  187. package/dist/index.cjs.js +1 -1
  188. package/dist/index.esm.js +121 -118
  189. package/dist/inline-edit.cjs.js +2 -2
  190. package/dist/inline-edit.esm.js +2 -2
  191. package/dist/input.cjs.js +14 -14
  192. package/dist/input.esm.js +40 -33
  193. package/dist/label.cjs.js +4 -4
  194. package/dist/label.esm.js +4 -4
  195. package/dist/layout.cjs.js +1 -1
  196. package/dist/layout.esm.js +1 -1
  197. package/dist/{listbox-B6QgECax.js → listbox-CTpRpuF7.js} +1 -1
  198. package/dist/{listbox-DJamVeFj.mjs → listbox-hMVOhKHC.mjs} +1 -1
  199. package/dist/listbox.cjs.js +1 -1
  200. package/dist/listbox.esm.js +1 -1
  201. package/dist/marquee.cjs.js +4 -4
  202. package/dist/marquee.esm.js +4 -4
  203. package/dist/masonry-grid.cjs.js +1 -1
  204. package/dist/masonry-grid.esm.js +1 -1
  205. package/dist/{menu-item-styles-CbNUEwP2.js → menu-item-styles-B4onAr4C.js} +3 -3
  206. package/dist/{menu-item-styles-CZiPwPwl.mjs → menu-item-styles-IGSFLAHu.mjs} +3 -3
  207. package/dist/menu.cjs.js +7 -7
  208. package/dist/menu.esm.js +30 -29
  209. package/dist/menubar.cjs.js +1 -1
  210. package/dist/menubar.esm.js +3 -3
  211. package/dist/meter.cjs.js +2 -2
  212. package/dist/meter.esm.js +2 -2
  213. package/dist/multi-select.cjs.js +17 -17
  214. package/dist/multi-select.esm.js +52 -44
  215. package/dist/navigation-menu.cjs.js +2 -2
  216. package/dist/navigation-menu.esm.js +2 -2
  217. package/dist/number-field.cjs.js +11 -13
  218. package/dist/number-field.esm.js +30 -28
  219. package/dist/number-ticker.cjs.js +5 -5
  220. package/dist/number-ticker.esm.js +5 -5
  221. package/dist/odometer.cjs.js +3 -3
  222. package/dist/odometer.esm.js +3 -3
  223. package/dist/orbiter.cjs.js +4 -4
  224. package/dist/orbiter.esm.js +4 -4
  225. package/dist/pagination.cjs.js +2 -2
  226. package/dist/pagination.esm.js +2 -2
  227. package/dist/{panel-group-CaD0_KQf.js → panel-group-BVHJEdfx.js} +1 -1
  228. package/dist/{panel-group-8sVNnGxg.mjs → panel-group-BxO_eNW6.mjs} +1 -1
  229. package/dist/panel-group.cjs.js +1 -1
  230. package/dist/panel-group.esm.js +1 -1
  231. package/dist/panel.cjs.js +1 -1
  232. package/dist/panel.esm.js +1 -1
  233. package/dist/password-field.cjs.js +23 -23
  234. package/dist/password-field.esm.js +48 -47
  235. package/dist/pin-input.cjs.js +8 -6
  236. package/dist/pin-input.esm.js +21 -15
  237. package/dist/placement-grid.cjs.js +4 -4
  238. package/dist/placement-grid.esm.js +58 -58
  239. package/dist/plugin-panel.cjs.js +2 -2
  240. package/dist/plugin-panel.esm.js +2 -2
  241. package/dist/popover.cjs.js +6 -6
  242. package/dist/popover.esm.js +5 -5
  243. package/dist/portal.cjs.js +1 -1
  244. package/dist/portal.esm.js +1 -1
  245. package/dist/positioner.cjs.js +1 -1
  246. package/dist/positioner.esm.js +1 -1
  247. package/dist/presence.cjs.js +1 -1
  248. package/dist/presence.esm.js +1 -1
  249. package/dist/primitives/control-name.d.ts +30 -0
  250. package/dist/primitives/control-name.d.ts.map +1 -0
  251. package/dist/primitives/trigger.d.ts +2 -0
  252. package/dist/primitives/trigger.d.ts.map +1 -0
  253. package/dist/progress.cjs.js +4 -4
  254. package/dist/progress.esm.js +20 -18
  255. package/dist/quick-actions.cjs.js +4 -4
  256. package/dist/quick-actions.esm.js +4 -4
  257. package/dist/radio-group.cjs.js +2 -2
  258. package/dist/radio-group.esm.js +2 -2
  259. package/dist/radio.cjs.js +3 -3
  260. package/dist/radio.esm.js +3 -3
  261. package/dist/rating.cjs.js +18 -17
  262. package/dist/rating.esm.js +91 -92
  263. package/dist/roving-focus-group.cjs.js +1 -1
  264. package/dist/roving-focus-group.esm.js +11 -10
  265. package/dist/{runtime-D1gFh1fS.mjs → runtime-CFnK53iC.mjs} +133 -94
  266. package/dist/runtime-DwE-tizc.js +1 -0
  267. package/dist/runtime.cjs.js +1 -1
  268. package/dist/runtime.d.ts +1 -1
  269. package/dist/runtime.d.ts.map +1 -1
  270. package/dist/runtime.esm.js +29 -26
  271. package/dist/scroll-area.cjs.js +1 -1
  272. package/dist/scroll-area.esm.js +1 -1
  273. package/dist/section.cjs.js +1 -1
  274. package/dist/section.esm.js +1 -1
  275. package/dist/select.cjs.js +20 -19
  276. package/dist/select.esm.js +37 -33
  277. package/dist/selection-popup.cjs.js +3 -3
  278. package/dist/selection-popup.esm.js +3 -3
  279. package/dist/separator.cjs.js +8 -8
  280. package/dist/separator.esm.js +8 -8
  281. package/dist/sidebar.cjs.js +9 -9
  282. package/dist/sidebar.esm.js +16 -16
  283. package/dist/skeleton.cjs.js +8 -8
  284. package/dist/skeleton.esm.js +8 -8
  285. package/dist/slider.cjs.js +4 -4
  286. package/dist/slider.esm.js +4 -4
  287. package/dist/slot.cjs.js +4 -4
  288. package/dist/slot.esm.js +4 -4
  289. package/dist/sortable.cjs.js +43 -44
  290. package/dist/sortable.esm.js +100 -101
  291. package/dist/spinning-text.cjs.js +4 -4
  292. package/dist/spinning-text.esm.js +4 -4
  293. package/dist/split-button.cjs.js +1 -1
  294. package/dist/split-button.esm.js +2 -2
  295. package/dist/splitter.cjs.js +1 -1
  296. package/dist/splitter.esm.js +1 -1
  297. package/dist/stepper.cjs.js +2 -2
  298. package/dist/stepper.esm.js +2 -2
  299. package/dist/switch.cjs.js +11 -13
  300. package/dist/switch.esm.js +11 -13
  301. package/dist/table.cjs.js +10 -7
  302. package/dist/table.esm.js +47 -44
  303. package/dist/tabs.cjs.js +21 -22
  304. package/dist/tabs.esm.js +71 -67
  305. package/dist/tags-input.cjs.js +9 -9
  306. package/dist/tags-input.esm.js +32 -25
  307. package/dist/textarea.cjs.js +10 -10
  308. package/dist/textarea.esm.js +30 -21
  309. package/dist/theme.d.ts +18 -0
  310. package/dist/theme.d.ts.map +1 -1
  311. package/dist/time-field.cjs.js +5 -5
  312. package/dist/time-field.esm.js +21 -18
  313. package/dist/time-picker.cjs.js +4 -4
  314. package/dist/time-picker.esm.js +6 -6
  315. package/dist/timeline.cjs.js +3 -3
  316. package/dist/timeline.esm.js +5 -5
  317. package/dist/toast.cjs.js +7 -7
  318. package/dist/toast.esm.js +14 -14
  319. package/dist/toggle-group.cjs.js +6 -7
  320. package/dist/toggle-group.esm.js +64 -61
  321. package/dist/toggle.cjs.js +18 -18
  322. package/dist/toggle.esm.js +32 -31
  323. package/dist/toolbar.cjs.js +1 -1
  324. package/dist/toolbar.esm.js +1 -1
  325. package/dist/tooltip.cjs.js +5 -5
  326. package/dist/tooltip.esm.js +5 -5
  327. package/dist/transfer-list.cjs.js +4 -4
  328. package/dist/transfer-list.esm.js +4 -4
  329. package/dist/{tree-B3kE8ESs.mjs → tree-B_oQput6.mjs} +35 -34
  330. package/dist/tree-SivHxcAy.js +39 -0
  331. package/dist/tree-item.cjs.js +1 -1
  332. package/dist/tree-item.esm.js +1 -1
  333. package/dist/tree.cjs.js +1 -1
  334. package/dist/tree.esm.js +1 -1
  335. package/dist/trigger-BjnxLCeQ.mjs +9 -0
  336. package/dist/trigger-DkPsKxsP.js +1 -0
  337. package/dist/{ui-button-rXQOS9QJ.js → ui-button-BPrzJScZ.js} +29 -28
  338. package/dist/{ui-button-Q0GNNWKC.mjs → ui-button-Co8Sid6t.mjs} +70 -49
  339. package/dist/{ui-icon-BzVNC_lr.js → ui-icon-D3avtxX_.js} +5 -5
  340. package/dist/{ui-icon-YI6lyuqU.mjs → ui-icon-DLhB08Fo.mjs} +3 -3
  341. package/dist/visually-hidden.cjs.js +1 -1
  342. package/dist/visually-hidden.esm.js +1 -1
  343. package/dist/wizard.cjs.js +12 -13
  344. package/dist/wizard.esm.js +18 -16
  345. package/package.json +2 -2
  346. package/dist/ElementBase-EV6mVBUV.js +0 -1
  347. package/dist/runtime-CTaOSmBj.js +0 -1
  348. package/dist/tree-Dx_kv_ih.js +0 -39
@@ -1,6 +1,6 @@
1
- import { E as K } from "./ElementBase-YlTLMsGk.mjs";
2
- import { a as F, r as z } from "./scroll-lock-LfqXXqsu.mjs";
3
- const Y = `
1
+ import { E as N } from "./ElementBase-BeZT54Hj.mjs";
2
+ import { a as C, r as I } from "./scroll-lock-LfqXXqsu.mjs";
3
+ const U = `
4
4
  :host {
5
5
  display: block;
6
6
  color-scheme: light dark;
@@ -9,7 +9,7 @@ const Y = `
9
9
  --ui-alert-bg: var(--ui-alert-bg-base);
10
10
  --ui-alert-text: var(--ui-color-text, var(--ui-text, #202020));
11
11
  --ui-alert-muted: color-mix(in srgb, var(--ui-alert-text) 62%, var(--ui-color-muted, var(--ui-muted, #646464)) 38%);
12
- --ui-alert-accent: var(--ui-color-muted, #64748b);
12
+ --ui-alert-accent: var(--ui-color-muted, #526175);
13
13
  --ui-alert-border-color: color-mix(in srgb, var(--ui-color-border, rgba(15, 23, 42, 0.16)) 82%, transparent);
14
14
  --ui-alert-border: var(--base-alert-dialog-border, 1px solid var(--ui-alert-border-color));
15
15
  --ui-alert-shadow: var(--base-alert-dialog-shadow, var(--shadow-4, none));
@@ -46,11 +46,11 @@ const Y = `
46
46
  }
47
47
 
48
48
  :host([tone='success']) {
49
- --ui-alert-accent: var(--ui-color-success, #16a34a);
49
+ --ui-alert-accent: var(--ui-color-success, #15803d);
50
50
  }
51
51
 
52
52
  :host([tone='warning']) {
53
- --ui-alert-accent: var(--ui-color-warning, #d97706);
53
+ --ui-alert-accent: var(--ui-color-warning, #b45309);
54
54
  }
55
55
 
56
56
  :host([tone='danger']) {
@@ -106,11 +106,11 @@ const Y = `
106
106
  --ui-alert-bg: var(--ui-alert-accent);
107
107
  --ui-alert-border: 1px solid color-mix(in srgb, #000000 16%, transparent);
108
108
  --ui-alert-text: #ffffff;
109
- --ui-alert-muted: color-mix(in srgb, #ffffff 78%, transparent);
110
- --ui-alert-btn-bg: color-mix(in srgb, #ffffff 16%, transparent);
111
- --ui-alert-btn-border: color-mix(in srgb, #ffffff 22%, transparent);
112
- --ui-alert-btn-hover: color-mix(in srgb, #ffffff 24%, transparent);
113
- --ui-alert-confirm-bg: color-mix(in srgb, #000000 22%, transparent);
109
+ --ui-alert-muted: color-mix(in srgb, #ffffff 98%, transparent);
110
+ --ui-alert-btn-bg: color-mix(in srgb, #000000 14%, transparent);
111
+ --ui-alert-btn-border: color-mix(in srgb, #ffffff 30%, transparent);
112
+ --ui-alert-btn-hover: color-mix(in srgb, #000000 22%, transparent);
113
+ --ui-alert-confirm-bg: color-mix(in srgb, #000000 30%, transparent);
114
114
  --ui-alert-confirm-color: #ffffff;
115
115
  --ui-alert-icon-bg: color-mix(in srgb, #ffffff 18%, transparent);
116
116
  --ui-alert-icon-color: #ffffff;
@@ -499,8 +499,8 @@ const Y = `
499
499
  border: 1px solid CanvasText;
500
500
  }
501
501
  }
502
- `, N = 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
503
- function p(e, t) {
502
+ `, Z = 'button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
503
+ function b(e, t) {
504
504
  if (e == null) return t;
505
505
  const i = e.trim().toLowerCase();
506
506
  return i !== "false" && i !== "0" && i !== "off";
@@ -508,42 +508,42 @@ function p(e, t) {
508
508
  function a(e) {
509
509
  return String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
510
510
  }
511
- function Z(e) {
511
+ function G(e) {
512
512
  return e === "info" || e === "success" || e === "warning" || e === "danger" ? e : "neutral";
513
513
  }
514
- function G(e) {
514
+ function J(e) {
515
515
  return e === "sm" || e === "1" ? "sm" : e === "lg" || e === "3" ? "lg" : "md";
516
516
  }
517
- function J(e) {
517
+ function Q(e) {
518
518
  return e === "soft" || e === "outline" || e === "solid" ? e : "surface";
519
519
  }
520
- function Q(e) {
520
+ function X(e) {
521
521
  return e === "none" || e === "high" ? e : "low";
522
522
  }
523
- function U(e) {
523
+ function tt(e) {
524
524
  return e === "none" ? "none" : "line";
525
525
  }
526
- function X(e, t = "var(--base-alert-dialog-radius, var(--ui-radius, 4px))") {
526
+ function it(e, t = "var(--base-alert-dialog-radius, var(--ui-radius, 4px))") {
527
527
  if (e == null) return t;
528
528
  const i = e.trim().toLowerCase();
529
529
  return i ? i === "full" || i === "pill" ? "999px" : /^-?\d+(\.\d+)?$/.test(i) ? `${i}px` : e : t;
530
530
  }
531
- const tt = /* @__PURE__ */ new Set(["tone", "size", "variant", "elevation", "indicator", "radius"]);
532
- function it(e) {
531
+ const et = /* @__PURE__ */ new Set(["tone", "size", "variant", "elevation", "indicator", "radius"]);
532
+ function rt(e) {
533
533
  return e === "success" ? '<svg width="16" height="16" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M5 10.2 8.3 13.4 15 6.8"></path></svg>' : e === "warning" ? '<svg width="16" height="16" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M10 3.6 17 16.4H3L10 3.6Z"></path><path d="M10 8v3.4"></path><circle cx="10" cy="14.1" r="0.9" fill="currentColor" stroke="none"></circle></svg>' : e === "danger" ? '<svg width="16" height="16" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.1"></circle><path d="m7.5 7.5 5 5M12.5 7.5l-5 5"></path></svg>' : e === "info" ? '<svg width="16" height="16" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.1"></circle><path d="M10 13v-3.8"></path><circle cx="10" cy="6.5" r="0.9" fill="currentColor" stroke="none"></circle></svg>' : '<svg width="16" height="16" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"><path d="M6 10h8"></path><circle cx="10" cy="10" r="7.1"></circle></svg>';
534
534
  }
535
- function c() {
535
+ function u() {
536
536
  return typeof window < "u" && typeof document < "u";
537
537
  }
538
- function E() {
539
- if (!c()) return null;
538
+ function S() {
539
+ if (!u()) return null;
540
540
  const e = document.activeElement;
541
541
  return e instanceof HTMLElement ? e : null;
542
542
  }
543
- function v(e) {
543
+ function _(e) {
544
544
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => e()) : window.setTimeout(e, 16);
545
545
  }
546
- function h(e) {
546
+ function p(e) {
547
547
  if (e) {
548
548
  if (typeof cancelAnimationFrame == "function") {
549
549
  cancelAnimationFrame(e);
@@ -552,7 +552,7 @@ function h(e) {
552
552
  window.clearTimeout(e);
553
553
  }
554
554
  }
555
- const l = class l extends K {
555
+ const c = "data-ui-auto-name", l = class l extends N {
556
556
  constructor() {
557
557
  super(), this._lastActive = null, this._active = !1, this._terminalEmitted = !1, this._closeMeta = null, this._uid = Math.random().toString(36).slice(2, 10), this._dialogId = "", this._config = {}, this._inputValue = "", this._checked = !1, this._runtimeError = "", this._activeHeadless = !1, this._focusInitialFrame = 0, this._restoreFocusFrame = 0, this._onClick = this._onClick.bind(this), this._onKeyDown = this._onKeyDown.bind(this), this._onFocusIn = this._onFocusIn.bind(this), this._onInput = this._onInput.bind(this), this._dialogId = this._uid;
558
558
  }
@@ -588,11 +588,11 @@ const l = class l extends K {
588
588
  super.connectedCallback(), this.root.addEventListener("click", this._onClick), this.root.addEventListener("keydown", this._onKeyDown), this.root.addEventListener("input", this._onInput), this._syncFromAttributes(), this._syncVisualTokens(), this._syncOpenState();
589
589
  }
590
590
  disconnectedCallback() {
591
- this.root.removeEventListener("click", this._onClick), this.root.removeEventListener("keydown", this._onKeyDown), this.root.removeEventListener("input", this._onInput), this._focusInitialFrame && (h(this._focusInitialFrame), this._focusInitialFrame = 0), this._restoreFocusFrame && (h(this._restoreFocusFrame), this._restoreFocusFrame = 0), this._active && !this._terminalEmitted && this.close("dismiss", "unmount"), this._deactivate(), super.disconnectedCallback();
591
+ this.root.removeEventListener("click", this._onClick), this.root.removeEventListener("keydown", this._onKeyDown), this.root.removeEventListener("input", this._onInput), this._focusInitialFrame && (p(this._focusInitialFrame), this._focusInitialFrame = 0), this._restoreFocusFrame && (p(this._restoreFocusFrame), this._restoreFocusFrame = 0), this._active && !this._terminalEmitted && this.close("dismiss", "unmount"), this._deactivate(), super.disconnectedCallback();
592
592
  }
593
593
  attributeChangedCallback(t, i, r) {
594
594
  if (i !== r) {
595
- if (tt.has(t)) {
595
+ if (et.has(t)) {
596
596
  this._syncVisualTokens();
597
597
  return;
598
598
  }
@@ -620,25 +620,25 @@ const l = class l extends K {
620
620
  t ? this.setAttribute("headless", "") : this.removeAttribute("headless");
621
621
  }
622
622
  get dismissible() {
623
- return p(this.getAttribute("dismissible"), !0);
623
+ return b(this.getAttribute("dismissible"), !0);
624
624
  }
625
625
  set dismissible(t) {
626
626
  this.setAttribute("dismissible", String(t));
627
627
  }
628
628
  get closeOnEsc() {
629
- return p(this.getAttribute("close-on-esc"), this.dismissible);
629
+ return b(this.getAttribute("close-on-esc"), this.dismissible);
630
630
  }
631
631
  set closeOnEsc(t) {
632
632
  this.setAttribute("close-on-esc", String(t));
633
633
  }
634
634
  get closeOnBackdrop() {
635
- return p(this.getAttribute("close-on-backdrop"), this.dismissible);
635
+ return b(this.getAttribute("close-on-backdrop"), this.dismissible);
636
636
  }
637
637
  set closeOnBackdrop(t) {
638
638
  this.setAttribute("close-on-backdrop", String(t));
639
639
  }
640
640
  get lockWhileLoading() {
641
- return p(this.getAttribute("lock-while-loading"), !0);
641
+ return b(this.getAttribute("lock-while-loading"), !0);
642
642
  }
643
643
  set lockWhileLoading(t) {
644
644
  this.setAttribute("lock-while-loading", String(t));
@@ -650,7 +650,7 @@ const l = class l extends K {
650
650
  this.setAttribute("role", t);
651
651
  }
652
652
  get tone() {
653
- return Z(this.getAttribute("tone"));
653
+ return G(this.getAttribute("tone"));
654
654
  }
655
655
  set tone(t) {
656
656
  if (t === "neutral") {
@@ -660,7 +660,7 @@ const l = class l extends K {
660
660
  this.setAttribute("tone", t);
661
661
  }
662
662
  get size() {
663
- return G(this.getAttribute("size"));
663
+ return J(this.getAttribute("size"));
664
664
  }
665
665
  set size(t) {
666
666
  if (t === "md") {
@@ -670,7 +670,7 @@ const l = class l extends K {
670
670
  this.setAttribute("size", t);
671
671
  }
672
672
  get variant() {
673
- return J(this.getAttribute("variant"));
673
+ return Q(this.getAttribute("variant"));
674
674
  }
675
675
  set variant(t) {
676
676
  if (t === "surface") {
@@ -680,7 +680,7 @@ const l = class l extends K {
680
680
  this.setAttribute("variant", t);
681
681
  }
682
682
  get elevation() {
683
- return Q(this.getAttribute("elevation"));
683
+ return X(this.getAttribute("elevation"));
684
684
  }
685
685
  set elevation(t) {
686
686
  if (t === "low") {
@@ -690,7 +690,7 @@ const l = class l extends K {
690
690
  this.setAttribute("elevation", t);
691
691
  }
692
692
  get indicator() {
693
- return U(this.getAttribute("indicator"));
693
+ return tt(this.getAttribute("indicator"));
694
694
  }
695
695
  set indicator(t) {
696
696
  if (t === "line") {
@@ -771,7 +771,7 @@ const l = class l extends K {
771
771
  this.hasAttribute("role") || this.setAttribute("role", "alertdialog");
772
772
  }
773
773
  _syncVisualTokens() {
774
- this.style.setProperty("--ui-alert-radius", X(this.getAttribute("radius")));
774
+ this.style.setProperty("--ui-alert-radius", it(this.getAttribute("radius")));
775
775
  }
776
776
  _syncOpenState() {
777
777
  const t = this.hasAttribute("open");
@@ -782,9 +782,9 @@ const l = class l extends K {
782
782
  !t && this._active && this._deactivate();
783
783
  }
784
784
  _activate() {
785
- this._active = !0, this._activeHeadless = this.headless, this._terminalEmitted = !1, this._closeMeta = null, l._openStack.includes(this) || l._openStack.push(this), this._lastActive = this.headless ? null : E(), this.headless || F(), c() && !this.headless && document.addEventListener("focusin", this._onFocusIn, !0);
785
+ this._active = !0, this._activeHeadless = this.headless, this._terminalEmitted = !1, this._closeMeta = null, l._openStack.includes(this) || l._openStack.push(this), this._lastActive = this.headless ? null : S(), this.headless || C(), u() && !this.headless && document.addEventListener("focusin", this._onFocusIn, !0);
786
786
  const t = this.dialogId || this._uid;
787
- this._dispatchWithLegacy("ui-open", "open", { id: t }), this.headless || (this._focusInitialFrame && h(this._focusInitialFrame), this._focusInitialFrame = v(() => {
787
+ this._dispatchWithLegacy("ui-open", "open", { id: t }), this.headless || (this._focusInitialFrame && p(this._focusInitialFrame), this._focusInitialFrame = _(() => {
788
788
  this._focusInitialFrame = 0, this._focusInitial();
789
789
  })), this.requestRender();
790
790
  }
@@ -792,7 +792,7 @@ const l = class l extends K {
792
792
  if (!this._active) return;
793
793
  this._active = !1;
794
794
  const t = l._openStack.lastIndexOf(this);
795
- if (t >= 0 && l._openStack.splice(t, 1), c() && !this._activeHeadless && document.removeEventListener("focusin", this._onFocusIn, !0), this._activeHeadless || z(), !this._terminalEmitted) {
795
+ if (t >= 0 && l._openStack.splice(t, 1), u() && !this._activeHeadless && document.removeEventListener("focusin", this._onFocusIn, !0), this._activeHeadless || I(), !this._terminalEmitted) {
796
796
  const r = this._closeMeta || { action: "dismiss", source: "abort" }, s = this.dialogId || this._uid;
797
797
  r.action === "cancel" ? this._dispatchWithLegacy("ui-cancel", "cancel", { id: s }) : r.action === "dismiss" && this._dispatchWithLegacy("ui-dismiss", "dismiss", {
798
798
  id: s,
@@ -806,7 +806,7 @@ const l = class l extends K {
806
806
  }), this._terminalEmitted = !0, this._closeMeta = null;
807
807
  }
808
808
  const i = this._lastActive;
809
- this._lastActive = null, i && !this._activeHeadless && (this._restoreFocusFrame && h(this._restoreFocusFrame), this._restoreFocusFrame = v(() => {
809
+ this._lastActive = null, i && !this._activeHeadless && (this._restoreFocusFrame && p(this._restoreFocusFrame), this._restoreFocusFrame = _(() => {
810
810
  this._restoreFocusFrame = 0;
811
811
  try {
812
812
  i.focus();
@@ -817,10 +817,10 @@ const l = class l extends K {
817
817
  _syncActiveEnvironment() {
818
818
  if (this._active && this.headless !== this._activeHeadless) {
819
819
  if (this.headless) {
820
- c() && document.removeEventListener("focusin", this._onFocusIn, !0), z(), this._lastActive = null, this._activeHeadless = !0;
820
+ u() && document.removeEventListener("focusin", this._onFocusIn, !0), I(), this._lastActive = null, this._activeHeadless = !0;
821
821
  return;
822
822
  }
823
- this._lastActive = E(), F(), c() && document.addEventListener("focusin", this._onFocusIn, !0), this._activeHeadless = !1, this._focusInitialFrame && h(this._focusInitialFrame), this._focusInitialFrame = v(() => {
823
+ this._lastActive = S(), C(), u() && document.addEventListener("focusin", this._onFocusIn, !0), this._activeHeadless = !1, this._focusInitialFrame && p(this._focusInitialFrame), this._focusInitialFrame = _(() => {
824
824
  this._focusInitialFrame = 0, this._focusInitial();
825
825
  });
826
826
  }
@@ -850,9 +850,9 @@ const l = class l extends K {
850
850
  return this.root.querySelector(".dialog");
851
851
  }
852
852
  _collectFocusable(t) {
853
- return Array.from(t.querySelectorAll(N)).filter((i) => {
853
+ return Array.from(t.querySelectorAll(Z)).filter((i) => {
854
854
  if (i.disabled || i.getAttribute("aria-hidden") === "true") return !1;
855
- const s = c() ? window.getComputedStyle(i) : null;
855
+ const s = u() ? window.getComputedStyle(i) : null;
856
856
  return !(s && (s.display === "none" || s.visibility === "hidden"));
857
857
  });
858
858
  }
@@ -952,78 +952,98 @@ const l = class l extends K {
952
952
  this._handleTab(t);
953
953
  }
954
954
  }
955
+ // The host carries role="alertdialog" (that attribute is also how the role is configured), so it
956
+ // is exposed as a dialog of its own. Closed, it was an empty, unnamed alert dialog sitting in the
957
+ // page; open, it needs the same name as the dialog inside its shadow root.
958
+ _syncHostSemantics(t, i = "", r = !1) {
959
+ if (!t) {
960
+ this.getAttribute("aria-hidden") !== "true" && this.setAttribute("aria-hidden", "true"), this.hasAttribute(c) && (this.removeAttribute("aria-label"), this.removeAttribute(c));
961
+ return;
962
+ }
963
+ if (this.hasAttribute("aria-hidden") && this.removeAttribute("aria-hidden"), r) {
964
+ this.hasAttribute(c) && this.removeAttribute(c);
965
+ return;
966
+ }
967
+ this.getAttribute("aria-label") !== i && this.setAttribute("aria-label", i), this.hasAttribute(c) || this.setAttribute(c, "");
968
+ }
955
969
  render() {
956
970
  if (!this.open) {
957
- this.setContent("");
971
+ this._syncHostSemantics(!1), this.setContent("");
958
972
  return;
959
973
  }
960
- const t = this._config.title ?? this.getAttribute("title") ?? "", i = this._config.description ?? this.getAttribute("description") ?? "", r = this._config.confirmText ?? this.getAttribute("confirm-text") ?? "Confirm", s = this._config.cancelText ?? this.getAttribute("cancel-text") ?? "Cancel", o = this._config.loadingText ?? this.getAttribute("loading-text") ?? "Working...", n = !!this._config.input?.enabled, I = this._config.input?.label || "Value", C = this._config.input?.placeholder || "", L = !!this._config.input?.required, S = !!this._config.checkbox?.enabled, $ = this._config.checkbox?.label || "Remember this choice", B = this.state, f = this._runtimeError || this._config.errorMessage || this.getAttribute("error-message") || "", _ = `ui-alert-title-${this._uid}`, k = `ui-alert-description-${this._uid}`, y = `ui-alert-error-${this._uid}`, T = !!this.querySelector('[slot="title"]'), q = !!this.querySelector('[slot="description"]'), M = !!this.querySelector('[slot="icon"]'), O = !!this.querySelector('[slot="footer"]'), D = !!this.querySelector('[slot="content"]'), g = T || !!t, b = q || !!i, V = M || g || b, H = this._config.showCancel ?? this.dismissible, W = this._config.showClose ?? this.dismissible, R = this.tone, P = this.getAttribute("aria-label") || "", j = this.getAttribute("aria-labelledby") || "", w = this.getAttribute("aria-describedby") || "", m = j || (g ? _ : ""), A = P || (m ? "" : t || i || "Dialog"), u = [];
961
- w ? u.push(w) : (b && u.push(k), f && u.push(y));
962
- const d = B === "loading";
974
+ const t = this._config.title ?? this.getAttribute("title") ?? "", i = this._config.description ?? this.getAttribute("description") ?? "", r = this._config.confirmText ?? this.getAttribute("confirm-text") ?? "Confirm", s = this._config.cancelText ?? this.getAttribute("cancel-text") ?? "Cancel", o = this._config.loadingText ?? this.getAttribute("loading-text") ?? "Working...", n = !!this._config.input?.enabled, L = this._config.input?.label || "Value", $ = this._config.input?.placeholder || "", T = !!this._config.input?.required, B = !!this._config.checkbox?.enabled, q = this._config.checkbox?.label || "Remember this choice", M = this.state, f = this._runtimeError || this._config.errorMessage || this.getAttribute("error-message") || "", y = `ui-alert-title-${this._uid}`, w = `ui-alert-description-${this._uid}`, A = `ui-alert-error-${this._uid}`, O = !!this.querySelector('[slot="title"]'), D = !!this.querySelector('[slot="description"]'), H = !!this.querySelector('[slot="icon"]'), V = !!this.querySelector('[slot="footer"]'), R = !!this.querySelector('[slot="content"]'), g = O || !!t, m = D || !!i, W = H || g || m, P = this._config.showCancel ?? this.dismissible, j = this._config.showClose ?? this.dismissible, K = this.tone, v = this.hasAttribute(c) ? "" : this.getAttribute("aria-label") || "", F = this.getAttribute("aria-labelledby") || "", z = this.getAttribute("aria-describedby") || "", x = F || (g ? y : ""), E = v || (x ? "" : t || i || "Dialog"), Y = (this.querySelector('[slot="title"]')?.textContent || "").replace(/\s+/g, " ").trim();
975
+ this._syncHostSemantics(
976
+ !0,
977
+ v || Y || t || i || "Dialog",
978
+ !!v || !!F
979
+ );
980
+ const d = [];
981
+ z ? d.push(z) : (m && d.push(w), f && d.push(A));
982
+ const h = M === "loading";
963
983
  this.setContent(`
964
- <style>${Y}</style>
984
+ <style>${U}</style>
965
985
  <div class="backdrop" part="backdrop" role="presentation" data-open="${String(this.open)}">
966
986
  <section
967
987
  class="dialog"
968
988
  part="dialog"
969
989
  role="${a(this.roleType)}"
970
990
  aria-modal="true"
971
- ${A ? `aria-label="${a(A)}"` : ""}
972
- ${m ? `aria-labelledby="${a(m)}"` : ""}
973
- ${u.length ? `aria-describedby="${a(u.join(" "))}"` : ""}
991
+ ${E ? `aria-label="${a(E)}"` : ""}
992
+ ${x ? `aria-labelledby="${a(x)}"` : ""}
993
+ ${d.length ? `aria-describedby="${a(d.join(" "))}"` : ""}
974
994
  tabindex="-1"
975
995
  >
976
- ${W ? `<button class="close" part="close" aria-label="Close dialog">
996
+ ${j ? `<button class="close" part="close" aria-label="Close dialog">
977
997
  <svg width="14" height="14" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round">
978
998
  <path d="m6 6 8 8M14 6l-8 8"></path>
979
999
  </svg>
980
1000
  </button>` : ""}
981
1001
 
982
- ${V ? `<header class="header">
1002
+ ${W ? `<header class="header">
983
1003
  <div class="header-main">
984
1004
  <span class="icon-wrap" part="icon-wrap" aria-hidden="true">
985
1005
  <span class="icon" part="icon">
986
- <slot name="icon">${it(R)}</slot>
1006
+ <slot name="icon">${rt(K)}</slot>
987
1007
  </span>
988
1008
  </span>
989
1009
  <div class="heading">
990
- ${g ? `<h2 id="${_}" class="title" part="title"><slot name="title">${a(t)}</slot></h2>` : ""}
991
- ${b ? `<p id="${k}" class="description" part="description"><slot name="description">${a(i)}</slot></p>` : ""}
1010
+ ${g ? `<h2 id="${y}" class="title" part="title"><slot name="title">${a(t)}</slot></h2>` : ""}
1011
+ ${m ? `<p id="${w}" class="description" part="description"><slot name="description">${a(i)}</slot></p>` : ""}
992
1012
  </div>
993
1013
  </div>
994
1014
  </header>` : ""}
995
1015
 
996
1016
  <div class="content" part="content">
997
- ${D ? '<slot name="content"></slot>' : "<slot></slot>"}
1017
+ ${R ? '<slot name="content"></slot>' : "<slot></slot>"}
998
1018
 
999
1019
  ${n ? `<label class="input-wrap">
1000
- <span class="label">${a(I)}</span>
1020
+ <span class="label">${a(L)}</span>
1001
1021
  <input
1002
1022
  class="input"
1003
1023
  part="input"
1004
1024
  type="text"
1005
1025
  value="${a(this.getInputValue())}"
1006
- placeholder="${a(C)}"
1007
- ${L ? "required" : ""}
1008
- ${d ? "disabled" : ""}
1026
+ placeholder="${a($)}"
1027
+ ${T ? "required" : ""}
1028
+ ${h ? "disabled" : ""}
1009
1029
  />
1010
1030
  </label>` : ""}
1011
1031
 
1012
- ${S ? `<label class="checkbox" part="checkbox">
1032
+ ${B ? `<label class="checkbox" part="checkbox">
1013
1033
  <span class="checkbox-line">
1014
- <input class="checkbox-input" type="checkbox" ${this.getChecked() ? "checked" : ""} ${d ? "disabled" : ""} />
1015
- <span>${a($)}</span>
1034
+ <input class="checkbox-input" type="checkbox" ${this.getChecked() ? "checked" : ""} ${h ? "disabled" : ""} />
1035
+ <span>${a(q)}</span>
1016
1036
  </span>
1017
1037
  </label>` : ""}
1018
1038
  </div>
1019
1039
 
1020
- <div class="error" id="${y}" part="error" aria-live="polite" data-empty="${String(!f)}">${a(f)}</div>
1040
+ <div class="error" id="${A}" part="error" aria-live="polite" data-empty="${String(!f)}">${a(f)}</div>
1021
1041
 
1022
1042
  <footer class="footer" part="footer">
1023
- ${d ? `<span class="loading"><span class="spinner" aria-hidden="true"></span><span>${a(o)}</span></span>` : '<span aria-hidden="true"></span>'}
1043
+ ${h ? `<span class="loading"><span class="spinner" aria-hidden="true"></span><span>${a(o)}</span></span>` : '<span aria-hidden="true"></span>'}
1024
1044
 
1025
- ${O ? '<slot name="footer"></slot>' : `${H ? `<button class="btn btn-cancel" part="cancel" type="button" ${d ? "disabled" : ""}>${a(s)}</button>` : ""}
1026
- <button class="btn btn-confirm" part="confirm" type="button" ${d ? "disabled" : ""}>${a(r)}</button>`}
1045
+ ${V ? '<slot name="footer"></slot>' : `${P ? `<button class="btn btn-cancel" part="cancel" type="button" ${h ? "disabled" : ""}>${a(s)}</button>` : ""}
1046
+ <button class="btn btn-confirm" part="confirm" type="button" ${h ? "disabled" : ""}>${a(r)}</button>`}
1027
1047
  </footer>
1028
1048
  </section>
1029
1049
  </div>
@@ -1031,8 +1051,8 @@ const l = class l extends K {
1031
1051
  }
1032
1052
  };
1033
1053
  l._openStack = [];
1034
- let x = l;
1035
- typeof customElements < "u" && !customElements.get("ui-alert-dialog") && customElements.define("ui-alert-dialog", x);
1054
+ let k = l;
1055
+ typeof customElements < "u" && !customElements.get("ui-alert-dialog") && customElements.define("ui-alert-dialog", k);
1036
1056
  export {
1037
- x as UIAlertDialog
1057
+ k as UIAlertDialog
1038
1058
  };
package/dist/alert.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("./ElementBase-EV6mVBUV.js"),z=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("./ElementBase-DxbvhLJs.js"),z=`
2
2
  :host {
3
3
  display: block;
4
4
  --ui-alert-radius: var(--base-alert-radius, var(--ui-radius, 4px));
@@ -10,7 +10,7 @@
10
10
  --ui-alert-surface-base: var(--base-alert-bg, var(--color-panel-solid, var(--ui-color-surface, #ffffff)));
11
11
  --ui-alert-bg: color-mix(in srgb, var(--ui-color-primary, #2563eb) 6%, var(--ui-alert-surface-base));
12
12
  --ui-alert-color: var(--ui-color-text, var(--ui-text, #202020));
13
- --ui-alert-muted: color-mix(in srgb, var(--ui-alert-color) 62%, var(--ui-color-muted, var(--ui-muted, #64748b)) 38%);
13
+ --ui-alert-muted: color-mix(in srgb, var(--ui-alert-color) 62%, var(--ui-color-muted, var(--ui-muted, #526175)) 38%);
14
14
  --ui-alert-accent: var(--ui-color-primary, var(--ui-primary, #2563eb));
15
15
  --ui-alert-shadow: var(--base-alert-shadow, var(--shadow-2, none));
16
16
  --ui-alert-icon-bg: color-mix(in srgb, var(--ui-alert-accent) 14%, transparent);
@@ -240,16 +240,16 @@
240
240
  --ui-alert-border: 1px solid color-mix(in srgb, var(--ui-color-primary, #2563eb) 28%, var(--ui-color-border, rgba(15, 23, 42, 0.2)));
241
241
  }
242
242
  :host([tone="success"]) .alert {
243
- --ui-alert-accent: var(--ui-color-success, #16a34a);
243
+ --ui-alert-accent: var(--ui-color-success, #15803d);
244
244
  --ui-alert-bg: linear-gradient(
245
245
  180deg,
246
- color-mix(in srgb, var(--ui-color-success, #16a34a) 14%, var(--ui-color-surface, #ffffff)) 0%,
247
- color-mix(in srgb, var(--ui-color-success, #16a34a) 10%, var(--ui-color-surface, #ffffff)) 100%
246
+ color-mix(in srgb, var(--ui-color-success, #15803d) 14%, var(--ui-color-surface, #ffffff)) 0%,
247
+ color-mix(in srgb, var(--ui-color-success, #15803d) 10%, var(--ui-color-surface, #ffffff)) 100%
248
248
  );
249
- --ui-alert-border: 1px solid color-mix(in srgb, var(--ui-color-success, #16a34a) 30%, var(--ui-color-border, rgba(15, 23, 42, 0.2)));
249
+ --ui-alert-border: 1px solid color-mix(in srgb, var(--ui-color-success, #15803d) 30%, var(--ui-color-border, rgba(15, 23, 42, 0.2)));
250
250
  }
251
251
  :host([tone="warning"]) .alert {
252
- --ui-alert-accent: var(--ui-color-warning, #d97706);
252
+ --ui-alert-accent: var(--ui-color-warning, #b45309);
253
253
  --ui-alert-bg: linear-gradient(
254
254
  180deg,
255
255
  color-mix(in srgb, var(--ui-color-warning, #f59e0b) 16%, var(--ui-color-surface, #ffffff)) 0%,
package/dist/alert.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { E as w } from "./ElementBase-YlTLMsGk.mjs";
1
+ import { E as w } from "./ElementBase-BeZT54Hj.mjs";
2
2
  const y = `
3
3
  :host {
4
4
  display: block;
@@ -11,7 +11,7 @@ const y = `
11
11
  --ui-alert-surface-base: var(--base-alert-bg, var(--color-panel-solid, var(--ui-color-surface, #ffffff)));
12
12
  --ui-alert-bg: color-mix(in srgb, var(--ui-color-primary, #2563eb) 6%, var(--ui-alert-surface-base));
13
13
  --ui-alert-color: var(--ui-color-text, var(--ui-text, #202020));
14
- --ui-alert-muted: color-mix(in srgb, var(--ui-alert-color) 62%, var(--ui-color-muted, var(--ui-muted, #64748b)) 38%);
14
+ --ui-alert-muted: color-mix(in srgb, var(--ui-alert-color) 62%, var(--ui-color-muted, var(--ui-muted, #526175)) 38%);
15
15
  --ui-alert-accent: var(--ui-color-primary, var(--ui-primary, #2563eb));
16
16
  --ui-alert-shadow: var(--base-alert-shadow, var(--shadow-2, none));
17
17
  --ui-alert-icon-bg: color-mix(in srgb, var(--ui-alert-accent) 14%, transparent);
@@ -241,16 +241,16 @@ const y = `
241
241
  --ui-alert-border: 1px solid color-mix(in srgb, var(--ui-color-primary, #2563eb) 28%, var(--ui-color-border, rgba(15, 23, 42, 0.2)));
242
242
  }
243
243
  :host([tone="success"]) .alert {
244
- --ui-alert-accent: var(--ui-color-success, #16a34a);
244
+ --ui-alert-accent: var(--ui-color-success, #15803d);
245
245
  --ui-alert-bg: linear-gradient(
246
246
  180deg,
247
- color-mix(in srgb, var(--ui-color-success, #16a34a) 14%, var(--ui-color-surface, #ffffff)) 0%,
248
- color-mix(in srgb, var(--ui-color-success, #16a34a) 10%, var(--ui-color-surface, #ffffff)) 100%
247
+ color-mix(in srgb, var(--ui-color-success, #15803d) 14%, var(--ui-color-surface, #ffffff)) 0%,
248
+ color-mix(in srgb, var(--ui-color-success, #15803d) 10%, var(--ui-color-surface, #ffffff)) 100%
249
249
  );
250
- --ui-alert-border: 1px solid color-mix(in srgb, var(--ui-color-success, #16a34a) 30%, var(--ui-color-border, rgba(15, 23, 42, 0.2)));
250
+ --ui-alert-border: 1px solid color-mix(in srgb, var(--ui-color-success, #15803d) 30%, var(--ui-color-border, rgba(15, 23, 42, 0.2)));
251
251
  }
252
252
  :host([tone="warning"]) .alert {
253
- --ui-alert-accent: var(--ui-color-warning, #d97706);
253
+ --ui-alert-accent: var(--ui-color-warning, #b45309);
254
254
  --ui-alert-bg: linear-gradient(
255
255
  180deg,
256
256
  color-mix(in srgb, var(--ui-color-warning, #f59e0b) 16%, var(--ui-color-surface, #ffffff)) 0%,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./domElement-DazSZBjV.js"),n=`
2
2
  :host {
3
3
  display: inline-flex;
4
4
  vertical-align: middle;
@@ -22,8 +22,8 @@
22
22
  cursor: default;
23
23
  opacity: 0.6;
24
24
  }
25
- `;class i extends HTMLElement{static get observedAttributes(){return["href","target","rel","download","hreflang","referrerpolicy","ping","type","aria-label","title"]}constructor(){super();const t=this.attachShadow({mode:"open"});t.innerHTML=`
26
- <style>${r}</style>
25
+ `;class i extends r.DOMElement{static get observedAttributes(){return["href","target","rel","download","hreflang","referrerpolicy","ping","type","aria-label","title"]}constructor(){super();const t=this.attachShadow({mode:"open"});t.innerHTML=`
26
+ <style>${n}</style>
27
27
  <a part="anchor">
28
28
  <slot></slot>
29
29
  </a>
@@ -1,4 +1,5 @@
1
- const i = `
1
+ import { D as i } from "./domElement-ZlSGVP0l.mjs";
2
+ const r = `
2
3
  :host {
3
4
  display: inline-flex;
4
5
  vertical-align: middle;
@@ -23,7 +24,7 @@ const i = `
23
24
  opacity: 0.6;
24
25
  }
25
26
  `;
26
- class r extends HTMLElement {
27
+ class n extends i {
27
28
  static get observedAttributes() {
28
29
  return ["href", "target", "rel", "download", "hreflang", "referrerpolicy", "ping", "type", "aria-label", "title"];
29
30
  }
@@ -31,7 +32,7 @@ class r extends HTMLElement {
31
32
  super();
32
33
  const t = this.attachShadow({ mode: "open" });
33
34
  t.innerHTML = `
34
- <style>${i}</style>
35
+ <style>${r}</style>
35
36
  <a part="anchor">
36
37
  <slot></slot>
37
38
  </a>
@@ -56,7 +57,7 @@ class r extends HTMLElement {
56
57
  this.anchorEl.setAttribute(t, e);
57
58
  }
58
59
  }
59
- typeof customElements < "u" && !customElements.get("ui-anchor") && customElements.define("ui-anchor", r);
60
+ typeof customElements < "u" && !customElements.get("ui-anchor") && customElements.define("ui-anchor", n);
60
61
  export {
61
- r as UIAnchor
62
+ n as UIAnchor
62
63
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const ge=require("./ElementBase-EV6mVBUV.js"),ie=3200,ne=0,oe=0,se=3,re=4,de=.18,me=3,D="#8b5cf6",q="#f59e0b",fe="rgba(148, 163, 184, 0.34)",Q=2,xe=new Set(["none","sm","md","lg","full"]),ue=new Set(["brand","neutral","info","success","warning","danger"]),ye=new Set(["calm","smooth","snappy","surge","pulse","heartbeat"]),Y=new Set(["auto","straight","soft","arc"]),X=new Set(["forward","reverse"]),_e=new Set(["none","glow","pulse","ring","shake"]),K=["node-id","column","row","size","from","to","curve","direction","reverse","duration","delay","tone","color-start","color-end","beam-factor","trail-width","beam-width","id"],c={xxs:{nodeSize:36,hubSize:50,columnGap:72,rowGap:28,padding:12,minHeight:160,radius:16},xs:{nodeSize:46,hubSize:62,columnGap:88,rowGap:36,padding:16,minHeight:190,radius:18},sm:{nodeSize:56,hubSize:74,columnGap:108,rowGap:48,padding:20,minHeight:220,radius:22},md:{nodeSize:84,hubSize:116,columnGap:156,rowGap:72,padding:32,minHeight:320,radius:28},lg:{nodeSize:98,hubSize:132,columnGap:188,rowGap:88,padding:40,minHeight:400,radius:34}},v={calm:{durationScale:1.18,glowOpacity:.26,glowBlur:9,beamFactor:.15,pattern:"progress"},smooth:{durationScale:1,glowOpacity:.34,glowBlur:11,beamFactor:de,pattern:"progress"},snappy:{durationScale:.82,glowOpacity:.38,glowBlur:10,beamFactor:.2,pattern:"progress"},surge:{durationScale:.68,glowOpacity:.44,glowBlur:13,beamFactor:.24,pattern:"progress"},pulse:{durationScale:.92,glowOpacity:.42,glowBlur:14,beamFactor:.22,pattern:"pulse"},heartbeat:{durationScale:.86,glowOpacity:.48,glowBlur:15,beamFactor:.18,pattern:"heartbeat"}},E={brand:{start:D,end:q},neutral:{start:"#64748b",end:"#cbd5e1"},info:{start:"#38bdf8",end:"#6366f1"},success:{start:"#22c55e",end:"#14b8a6"},warning:{start:"#f59e0b",end:"#f97316"},danger:{start:"#ef4444",end:"#f97316"}},ve=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const ge=require("./ElementBase-DxbvhLJs.js"),ie=3200,ne=0,oe=0,se=3,re=4,de=.18,me=3,D="#8b5cf6",q="#f59e0b",fe="rgba(148, 163, 184, 0.34)",Q=2,xe=new Set(["none","sm","md","lg","full"]),ue=new Set(["brand","neutral","info","success","warning","danger"]),ye=new Set(["calm","smooth","snappy","surge","pulse","heartbeat"]),Y=new Set(["auto","straight","soft","arc"]),X=new Set(["forward","reverse"]),_e=new Set(["none","glow","pulse","ring","shake"]),K=["node-id","column","row","size","from","to","curve","direction","reverse","duration","delay","tone","color-start","color-end","beam-factor","trail-width","beam-width","id"],c={xxs:{nodeSize:36,hubSize:50,columnGap:72,rowGap:28,padding:12,minHeight:160,radius:16},xs:{nodeSize:46,hubSize:62,columnGap:88,rowGap:36,padding:16,minHeight:190,radius:18},sm:{nodeSize:56,hubSize:74,columnGap:108,rowGap:48,padding:20,minHeight:220,radius:22},md:{nodeSize:84,hubSize:116,columnGap:156,rowGap:72,padding:32,minHeight:320,radius:28},lg:{nodeSize:98,hubSize:132,columnGap:188,rowGap:88,padding:40,minHeight:400,radius:34}},v={calm:{durationScale:1.18,glowOpacity:.26,glowBlur:9,beamFactor:.15,pattern:"progress"},smooth:{durationScale:1,glowOpacity:.34,glowBlur:11,beamFactor:de,pattern:"progress"},snappy:{durationScale:.82,glowOpacity:.38,glowBlur:10,beamFactor:.2,pattern:"progress"},surge:{durationScale:.68,glowOpacity:.44,glowBlur:13,beamFactor:.24,pattern:"progress"},pulse:{durationScale:.92,glowOpacity:.42,glowBlur:14,beamFactor:.22,pattern:"pulse"},heartbeat:{durationScale:.86,glowOpacity:.48,glowBlur:15,beamFactor:.18,pattern:"heartbeat"}},E={brand:{start:D,end:q},neutral:{start:"#64748b",end:"#cbd5e1"},info:{start:"#38bdf8",end:"#6366f1"},success:{start:"#22c55e",end:"#14b8a6"},warning:{start:"#f59e0b",end:"#f97316"},danger:{start:"#ef4444",end:"#f97316"}},ve=`
2
2
  :host {
3
3
  --ui-animated-beam-required-width: 0px;
4
4
  --ui-animated-beam-duration: ${ie}ms;
@@ -1,4 +1,4 @@
1
- import { E as pe } from "./ElementBase-YlTLMsGk.mjs";
1
+ import { E as pe } from "./ElementBase-BeZT54Hj.mjs";
2
2
  const ie = 3200, ne = 0, oe = 0, se = 3, re = 4, de = 0.18, me = 3, D = "#8b5cf6", q = "#f59e0b", fe = "rgba(148, 163, 184, 0.34)", j = 2, ge = /* @__PURE__ */ new Set(["none", "sm", "md", "lg", "full"]), ue = /* @__PURE__ */ new Set(["brand", "neutral", "info", "success", "warning", "danger"]), xe = /* @__PURE__ */ new Set(["calm", "smooth", "snappy", "surge", "pulse", "heartbeat"]), Y = /* @__PURE__ */ new Set(["auto", "straight", "soft", "arc"]), X = /* @__PURE__ */ new Set(["forward", "reverse"]), ye = /* @__PURE__ */ new Set(["none", "glow", "pulse", "ring", "shake"]), K = [
3
3
  "node-id",
4
4
  "column",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("./ElementBase-EV6mVBUV.js"),o="520ms",l="90ms",d="0ms",x=1400,h=.24,y=new Set(["none","sm","md","lg","full"]),v=new Set(["load","visible","manual"]),A=new Set(["calm","smooth","snappy","bouncy"]),S=`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("./ElementBase-DxbvhLJs.js"),o="520ms",l="90ms",d="0ms",x=1400,h=.24,y=new Set(["none","sm","md","lg","full"]),v=new Set(["load","visible","manual"]),A=new Set(["calm","smooth","snappy","bouncy"]),S=`
2
2
  :host {
3
3
  --ui-animated-list-duration: ${o};
4
4
  --ui-animated-list-stagger: ${l};
@@ -46,7 +46,7 @@
46
46
  0 1px 2px rgba(15, 23, 42, 0.04),
47
47
  0 10px 18px rgba(15, 23, 42, 0.06);
48
48
  --ui-animated-list-item-color: inherit;
49
- --ui-animated-list-item-muted: var(--ui-color-muted, #64748b);
49
+ --ui-animated-list-item-muted: var(--ui-color-muted, #526175);
50
50
  --ui-animated-list-item-backdrop: none;
51
51
 
52
52
  display: block;
@@ -132,7 +132,7 @@
132
132
  }
133
133
 
134
134
  :host([tone="neutral"]) {
135
- --ui-animated-list-accent: #64748b;
135
+ --ui-animated-list-accent: #526175;
136
136
  }
137
137
 
138
138
  :host([tone="info"]) {
@@ -140,11 +140,11 @@
140
140
  }
141
141
 
142
142
  :host([tone="success"]) {
143
- --ui-animated-list-accent: var(--ui-color-success, #16a34a);
143
+ --ui-animated-list-accent: var(--ui-color-success, #15803d);
144
144
  }
145
145
 
146
146
  :host([tone="warning"]) {
147
- --ui-animated-list-accent: var(--ui-color-warning, #d97706);
147
+ --ui-animated-list-accent: var(--ui-color-warning, #b45309);
148
148
  }
149
149
 
150
150
  :host([tone="danger"]) {