@editora/ui-core 0.1.21 → 0.1.22

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 (274) hide show
  1. package/dist/accordion.cjs.js +3 -3
  2. package/dist/accordion.esm.js +3 -3
  3. package/dist/alert-dialog.cjs.js +32 -32
  4. package/dist/alert-dialog.esm.js +95 -75
  5. package/dist/alert.cjs.js +6 -6
  6. package/dist/alert.esm.js +6 -6
  7. package/dist/animated-list.cjs.js +4 -4
  8. package/dist/animated-list.esm.js +4 -4
  9. package/dist/animated-text.cjs.js +4 -4
  10. package/dist/animated-text.esm.js +4 -4
  11. package/dist/app-header.cjs.js +3 -3
  12. package/dist/app-header.esm.js +3 -3
  13. package/dist/aspect-ratio.cjs.js +3 -3
  14. package/dist/aspect-ratio.esm.js +3 -3
  15. package/dist/avatar.cjs.js +14 -14
  16. package/dist/avatar.esm.js +31 -29
  17. package/dist/badge.cjs.js +4 -4
  18. package/dist/badge.esm.js +4 -4
  19. package/dist/block-controls.cjs.js +4 -4
  20. package/dist/block-controls.esm.js +4 -4
  21. package/dist/box.cjs.js +2 -2
  22. package/dist/box.esm.js +2 -2
  23. package/dist/breadcrumb.cjs.js +5 -5
  24. package/dist/breadcrumb.esm.js +5 -5
  25. package/dist/button.cjs.js +1 -1
  26. package/dist/button.esm.js +1 -1
  27. package/dist/{calendar-DLY4acgn.mjs → calendar-DbxYRdlv.mjs} +227 -183
  28. package/dist/{calendar-Dkof-FTK.js → calendar-Qa-cFOp3.js} +74 -35
  29. package/dist/calendar.cjs.js +1 -1
  30. package/dist/calendar.esm.js +1 -1
  31. package/dist/card.cjs.js +8 -8
  32. package/dist/card.esm.js +63 -20
  33. package/dist/chart.cjs.js +4 -4
  34. package/dist/chart.esm.js +6 -6
  35. package/dist/checkbox.cjs.js +2 -2
  36. package/dist/checkbox.esm.js +2 -2
  37. package/dist/collapsible.cjs.js +7 -7
  38. package/dist/collapsible.esm.js +7 -7
  39. package/dist/color-picker.cjs.js +30 -10
  40. package/dist/color-picker.esm.js +82 -60
  41. package/dist/combobox.cjs.js +29 -27
  42. package/dist/combobox.esm.js +51 -45
  43. package/dist/command.cjs.js +2 -2
  44. package/dist/command.esm.js +2 -2
  45. package/dist/components/ui-alert-dialog.d.ts +1 -0
  46. package/dist/components/ui-alert-dialog.d.ts.map +1 -1
  47. package/dist/components/ui-avatar.d.ts +1 -0
  48. package/dist/components/ui-avatar.d.ts.map +1 -1
  49. package/dist/components/ui-button.d.ts +1 -0
  50. package/dist/components/ui-button.d.ts.map +1 -1
  51. package/dist/components/ui-calendar.d.ts.map +1 -1
  52. package/dist/components/ui-card.d.ts +3 -0
  53. package/dist/components/ui-card.d.ts.map +1 -1
  54. package/dist/components/ui-checkbox.d.ts.map +1 -1
  55. package/dist/components/ui-color-picker.d.ts.map +1 -1
  56. package/dist/components/ui-combobox.d.ts.map +1 -1
  57. package/dist/components/ui-data-table.d.ts.map +1 -1
  58. package/dist/components/ui-date-field.d.ts.map +1 -1
  59. package/dist/components/ui-date-picker.d.ts.map +1 -1
  60. package/dist/components/ui-date-range-picker.d.ts.map +1 -1
  61. package/dist/components/ui-date-range-time-picker.d.ts.map +1 -1
  62. package/dist/components/ui-date-time-picker.d.ts.map +1 -1
  63. package/dist/components/ui-dock.d.ts +1 -0
  64. package/dist/components/ui-dock.d.ts.map +1 -1
  65. package/dist/components/ui-drawer.d.ts.map +1 -1
  66. package/dist/components/ui-dropdown.d.ts.map +1 -1
  67. package/dist/components/ui-field.d.ts.map +1 -1
  68. package/dist/components/ui-file-upload.d.ts.map +1 -1
  69. package/dist/components/ui-gantt.d.ts.map +1 -1
  70. package/dist/components/ui-input.d.ts.map +1 -1
  71. package/dist/components/ui-menu.d.ts.map +1 -1
  72. package/dist/components/ui-multi-select.d.ts.map +1 -1
  73. package/dist/components/ui-number-field.d.ts.map +1 -1
  74. package/dist/components/ui-password-field.d.ts.map +1 -1
  75. package/dist/components/ui-pin-input.d.ts +1 -0
  76. package/dist/components/ui-pin-input.d.ts.map +1 -1
  77. package/dist/components/ui-placement-grid.d.ts.map +1 -1
  78. package/dist/components/ui-progress.d.ts.map +1 -1
  79. package/dist/components/ui-radio.d.ts.map +1 -1
  80. package/dist/components/ui-rating.d.ts +1 -0
  81. package/dist/components/ui-rating.d.ts.map +1 -1
  82. package/dist/components/ui-select.d.ts.map +1 -1
  83. package/dist/components/ui-sortable.d.ts.map +1 -1
  84. package/dist/components/ui-switch.d.ts.map +1 -1
  85. package/dist/components/ui-table.d.ts.map +1 -1
  86. package/dist/components/ui-tabs.d.ts +1 -0
  87. package/dist/components/ui-tabs.d.ts.map +1 -1
  88. package/dist/components/ui-tags-input.d.ts +1 -0
  89. package/dist/components/ui-tags-input.d.ts.map +1 -1
  90. package/dist/components/ui-textarea.d.ts.map +1 -1
  91. package/dist/components/ui-time-field.d.ts.map +1 -1
  92. package/dist/components/ui-toggle-group.d.ts.map +1 -1
  93. package/dist/components/ui-toggle.d.ts.map +1 -1
  94. package/dist/components/ui-tree.d.ts.map +1 -1
  95. package/dist/components/ui-wizard.d.ts.map +1 -1
  96. package/dist/context-menu.cjs.js +3 -3
  97. package/dist/context-menu.esm.js +4 -4
  98. package/dist/control-name-BmoI1m3a.js +1 -0
  99. package/dist/control-name-Bpj7F34X.mjs +48 -0
  100. package/dist/data-table.cjs.js +5 -2
  101. package/dist/data-table.esm.js +145 -142
  102. package/dist/date-field.cjs.js +5 -5
  103. package/dist/date-field.esm.js +34 -31
  104. package/dist/date-picker.cjs.js +16 -16
  105. package/dist/date-picker.esm.js +48 -44
  106. package/dist/date-range-picker.cjs.js +5 -5
  107. package/dist/date-range-picker.esm.js +120 -118
  108. package/dist/date-range-time-picker.cjs.js +22 -22
  109. package/dist/date-range-time-picker.esm.js +88 -84
  110. package/dist/date-time-picker.cjs.js +23 -23
  111. package/dist/date-time-picker.esm.js +102 -98
  112. package/dist/{date-time-utils-Dmost5Ee.js → date-time-utils-BzfTpeU-.js} +1 -1
  113. package/dist/{date-time-utils-y1N2gvG2.mjs → date-time-utils-Cps2aSu2.mjs} +1 -1
  114. package/dist/description.cjs.js +3 -3
  115. package/dist/description.esm.js +3 -3
  116. package/dist/dialog.cjs.js +2 -2
  117. package/dist/dialog.esm.js +2 -2
  118. package/dist/dock.cjs.js +12 -12
  119. package/dist/dock.esm.js +72 -74
  120. package/dist/drawer.cjs.js +19 -19
  121. package/dist/drawer.esm.js +58 -58
  122. package/dist/dropdown.cjs.js +13 -13
  123. package/dist/dropdown.esm.js +49 -48
  124. package/dist/empty-state.cjs.js +3 -3
  125. package/dist/empty-state.esm.js +3 -3
  126. package/dist/field-error.cjs.js +1 -1
  127. package/dist/field-error.esm.js +1 -1
  128. package/dist/field.cjs.js +12 -12
  129. package/dist/field.esm.js +84 -75
  130. package/dist/fieldset.cjs.js +4 -4
  131. package/dist/fieldset.esm.js +4 -4
  132. package/dist/file-upload.cjs.js +3 -3
  133. package/dist/file-upload.esm.js +5 -3
  134. package/dist/floating-toolbar.cjs.js +8 -8
  135. package/dist/floating-toolbar.esm.js +9 -9
  136. package/dist/form.cjs.js +11 -11
  137. package/dist/form.esm.js +11 -11
  138. package/dist/gantt.cjs.js +43 -32
  139. package/dist/gantt.esm.js +99 -88
  140. package/dist/icon-cloud.cjs.js +3 -3
  141. package/dist/icon-cloud.esm.js +3 -3
  142. package/dist/icon.cjs.js +1 -1
  143. package/dist/icon.esm.js +1 -1
  144. package/dist/index.cjs.js +1 -1
  145. package/dist/index.esm.js +121 -118
  146. package/dist/inline-edit.cjs.js +1 -1
  147. package/dist/inline-edit.esm.js +1 -1
  148. package/dist/input.cjs.js +14 -14
  149. package/dist/input.esm.js +39 -32
  150. package/dist/label.cjs.js +3 -3
  151. package/dist/label.esm.js +3 -3
  152. package/dist/{listbox-B6QgECax.js → listbox-CTpRpuF7.js} +1 -1
  153. package/dist/{listbox-DJamVeFj.mjs → listbox-hMVOhKHC.mjs} +1 -1
  154. package/dist/listbox.cjs.js +1 -1
  155. package/dist/listbox.esm.js +1 -1
  156. package/dist/marquee.cjs.js +3 -3
  157. package/dist/marquee.esm.js +3 -3
  158. package/dist/{menu-item-styles-CbNUEwP2.js → menu-item-styles-B4onAr4C.js} +3 -3
  159. package/dist/{menu-item-styles-CZiPwPwl.mjs → menu-item-styles-IGSFLAHu.mjs} +3 -3
  160. package/dist/menu.cjs.js +7 -7
  161. package/dist/menu.esm.js +29 -28
  162. package/dist/menubar.cjs.js +1 -1
  163. package/dist/menubar.esm.js +2 -2
  164. package/dist/meter.cjs.js +1 -1
  165. package/dist/meter.esm.js +1 -1
  166. package/dist/multi-select.cjs.js +17 -17
  167. package/dist/multi-select.esm.js +51 -43
  168. package/dist/navigation-menu.cjs.js +1 -1
  169. package/dist/navigation-menu.esm.js +1 -1
  170. package/dist/number-field.cjs.js +11 -13
  171. package/dist/number-field.esm.js +29 -27
  172. package/dist/number-ticker.cjs.js +4 -4
  173. package/dist/number-ticker.esm.js +4 -4
  174. package/dist/odometer.cjs.js +2 -2
  175. package/dist/odometer.esm.js +2 -2
  176. package/dist/orbiter.cjs.js +3 -3
  177. package/dist/orbiter.esm.js +3 -3
  178. package/dist/pagination.cjs.js +1 -1
  179. package/dist/pagination.esm.js +1 -1
  180. package/dist/password-field.cjs.js +23 -23
  181. package/dist/password-field.esm.js +48 -47
  182. package/dist/pin-input.cjs.js +8 -6
  183. package/dist/pin-input.esm.js +21 -15
  184. package/dist/placement-grid.cjs.js +4 -4
  185. package/dist/placement-grid.esm.js +58 -58
  186. package/dist/plugin-panel.cjs.js +1 -1
  187. package/dist/plugin-panel.esm.js +1 -1
  188. package/dist/popover.cjs.js +5 -5
  189. package/dist/popover.esm.js +4 -4
  190. package/dist/primitives/control-name.d.ts +30 -0
  191. package/dist/primitives/control-name.d.ts.map +1 -0
  192. package/dist/primitives/trigger.d.ts +2 -0
  193. package/dist/primitives/trigger.d.ts.map +1 -0
  194. package/dist/progress.cjs.js +4 -4
  195. package/dist/progress.esm.js +20 -18
  196. package/dist/quick-actions.cjs.js +3 -3
  197. package/dist/quick-actions.esm.js +3 -3
  198. package/dist/radio-group.cjs.js +1 -1
  199. package/dist/radio-group.esm.js +1 -1
  200. package/dist/radio.cjs.js +2 -2
  201. package/dist/radio.esm.js +2 -2
  202. package/dist/rating.cjs.js +17 -16
  203. package/dist/rating.esm.js +91 -92
  204. package/dist/{runtime-D1gFh1fS.mjs → runtime-CFnK53iC.mjs} +133 -94
  205. package/dist/runtime-DwE-tizc.js +1 -0
  206. package/dist/runtime.cjs.js +1 -1
  207. package/dist/runtime.d.ts +1 -1
  208. package/dist/runtime.d.ts.map +1 -1
  209. package/dist/runtime.esm.js +29 -26
  210. package/dist/select.cjs.js +20 -19
  211. package/dist/select.esm.js +36 -32
  212. package/dist/selection-popup.cjs.js +2 -2
  213. package/dist/selection-popup.esm.js +2 -2
  214. package/dist/separator.cjs.js +7 -7
  215. package/dist/separator.esm.js +7 -7
  216. package/dist/sidebar.cjs.js +7 -7
  217. package/dist/sidebar.esm.js +7 -7
  218. package/dist/skeleton.cjs.js +7 -7
  219. package/dist/skeleton.esm.js +7 -7
  220. package/dist/slider.cjs.js +3 -3
  221. package/dist/slider.esm.js +3 -3
  222. package/dist/slot.cjs.js +3 -3
  223. package/dist/slot.esm.js +3 -3
  224. package/dist/sortable.cjs.js +41 -42
  225. package/dist/sortable.esm.js +98 -99
  226. package/dist/spinning-text.cjs.js +3 -3
  227. package/dist/spinning-text.esm.js +3 -3
  228. package/dist/split-button.cjs.js +1 -1
  229. package/dist/split-button.esm.js +1 -1
  230. package/dist/stepper.cjs.js +1 -1
  231. package/dist/stepper.esm.js +1 -1
  232. package/dist/switch.cjs.js +10 -12
  233. package/dist/switch.esm.js +10 -12
  234. package/dist/table.cjs.js +9 -6
  235. package/dist/table.esm.js +46 -43
  236. package/dist/tabs.cjs.js +20 -21
  237. package/dist/tabs.esm.js +70 -66
  238. package/dist/tags-input.cjs.js +9 -9
  239. package/dist/tags-input.esm.js +32 -25
  240. package/dist/textarea.cjs.js +10 -10
  241. package/dist/textarea.esm.js +30 -21
  242. package/dist/theme.d.ts +18 -0
  243. package/dist/theme.d.ts.map +1 -1
  244. package/dist/time-field.cjs.js +5 -5
  245. package/dist/time-field.esm.js +21 -18
  246. package/dist/time-picker.cjs.js +4 -4
  247. package/dist/time-picker.esm.js +5 -5
  248. package/dist/timeline.cjs.js +2 -2
  249. package/dist/timeline.esm.js +4 -4
  250. package/dist/toast.cjs.js +6 -6
  251. package/dist/toast.esm.js +13 -13
  252. package/dist/toggle-group.cjs.js +5 -6
  253. package/dist/toggle-group.esm.js +63 -60
  254. package/dist/toggle.cjs.js +18 -18
  255. package/dist/toggle.esm.js +32 -31
  256. package/dist/tooltip.cjs.js +4 -4
  257. package/dist/tooltip.esm.js +4 -4
  258. package/dist/transfer-list.cjs.js +3 -3
  259. package/dist/transfer-list.esm.js +3 -3
  260. package/dist/tree-7qbVnpGp.js +39 -0
  261. package/dist/{tree-B3kE8ESs.mjs → tree-Deoft-kO.mjs} +34 -33
  262. package/dist/tree.cjs.js +1 -1
  263. package/dist/tree.esm.js +1 -1
  264. package/dist/trigger-BjnxLCeQ.mjs +9 -0
  265. package/dist/trigger-DkPsKxsP.js +1 -0
  266. package/dist/{ui-button-rXQOS9QJ.js → ui-button-BInsgSbr.js} +27 -26
  267. package/dist/{ui-button-Q0GNNWKC.mjs → ui-button-rfiuUnUD.mjs} +65 -48
  268. package/dist/{ui-icon-YI6lyuqU.mjs → ui-icon-BSi_GtqO.mjs} +2 -2
  269. package/dist/{ui-icon-BzVNC_lr.js → ui-icon-Bvt9oIIR.js} +5 -5
  270. package/dist/wizard.cjs.js +12 -13
  271. package/dist/wizard.esm.js +17 -15
  272. package/package.json +1 -1
  273. package/dist/runtime-CTaOSmBj.js +0 -1
  274. 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-YlTLMsGk.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
@@ -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
@@ -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%,
@@ -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"]) {
@@ -47,7 +47,7 @@ const o = "520ms", l = "90ms", d = "0ms", _ = 1400, h = 0.24, x = /* @__PURE__ *
47
47
  0 1px 2px rgba(15, 23, 42, 0.04),
48
48
  0 10px 18px rgba(15, 23, 42, 0.06);
49
49
  --ui-animated-list-item-color: inherit;
50
- --ui-animated-list-item-muted: var(--ui-color-muted, #64748b);
50
+ --ui-animated-list-item-muted: var(--ui-color-muted, #526175);
51
51
  --ui-animated-list-item-backdrop: none;
52
52
 
53
53
  display: block;
@@ -133,7 +133,7 @@ const o = "520ms", l = "90ms", d = "0ms", _ = 1400, h = 0.24, x = /* @__PURE__ *
133
133
  }
134
134
 
135
135
  :host([tone="neutral"]) {
136
- --ui-animated-list-accent: #64748b;
136
+ --ui-animated-list-accent: #526175;
137
137
  }
138
138
 
139
139
  :host([tone="info"]) {
@@ -141,11 +141,11 @@ const o = "520ms", l = "90ms", d = "0ms", _ = 1400, h = 0.24, x = /* @__PURE__ *
141
141
  }
142
142
 
143
143
  :host([tone="success"]) {
144
- --ui-animated-list-accent: var(--ui-color-success, #16a34a);
144
+ --ui-animated-list-accent: var(--ui-color-success, #15803d);
145
145
  }
146
146
 
147
147
  :host([tone="warning"]) {
148
- --ui-animated-list-accent: var(--ui-color-warning, #d97706);
148
+ --ui-animated-list-accent: var(--ui-color-warning, #b45309);
149
149
  }
150
150
 
151
151
  :host([tone="danger"]) {
@@ -75,19 +75,19 @@
75
75
  }
76
76
 
77
77
  :host([tone="neutral"]) {
78
- --ui-animated-text-accent: #64748b;
78
+ --ui-animated-text-accent: #526175;
79
79
  }
80
80
 
81
81
  :host([tone="info"]) {
82
- --ui-animated-text-accent: #0ea5e9;
82
+ --ui-animated-text-accent: var(--ui-color-info, #0e7490);
83
83
  }
84
84
 
85
85
  :host([tone="success"]) {
86
- --ui-animated-text-accent: var(--ui-color-success, #16a34a);
86
+ --ui-animated-text-accent: var(--ui-color-success, #15803d);
87
87
  }
88
88
 
89
89
  :host([tone="warning"]) {
90
- --ui-animated-text-accent: var(--ui-color-warning, #d97706);
90
+ --ui-animated-text-accent: var(--ui-color-warning, #b45309);
91
91
  }
92
92
 
93
93
  :host([tone="danger"]) {
@@ -91,19 +91,19 @@ const k = "720ms", T = "55ms", A = "0ms", x = 1400, M = /* @__PURE__ */ new Set(
91
91
  }
92
92
 
93
93
  :host([tone="neutral"]) {
94
- --ui-animated-text-accent: #64748b;
94
+ --ui-animated-text-accent: #526175;
95
95
  }
96
96
 
97
97
  :host([tone="info"]) {
98
- --ui-animated-text-accent: #0ea5e9;
98
+ --ui-animated-text-accent: var(--ui-color-info, #0e7490);
99
99
  }
100
100
 
101
101
  :host([tone="success"]) {
102
- --ui-animated-text-accent: var(--ui-color-success, #16a34a);
102
+ --ui-animated-text-accent: var(--ui-color-success, #15803d);
103
103
  }
104
104
 
105
105
  :host([tone="warning"]) {
106
- --ui-animated-text-accent: var(--ui-color-warning, #d97706);
106
+ --ui-animated-text-accent: var(--ui-color-warning, #b45309);
107
107
  }
108
108
 
109
109
  :host([tone="danger"]) {
@@ -77,7 +77,7 @@
77
77
  :host([variant='solid']) {
78
78
  --ui-app-header-bg: var(--ui-app-header-accent);
79
79
  --ui-app-header-color: #ffffff;
80
- --ui-app-header-muted: color-mix(in srgb, #ffffff 76%, transparent);
80
+ --ui-app-header-muted: color-mix(in srgb, #ffffff 94%, transparent);
81
81
  --ui-app-header-border: 1px solid color-mix(in srgb, #000000 16%, transparent);
82
82
  --ui-app-header-control-bg: color-mix(in srgb, #ffffff 14%, transparent);
83
83
  --ui-app-header-control-bg-hover: color-mix(in srgb, #ffffff 24%, transparent);
@@ -102,11 +102,11 @@
102
102
  }
103
103
 
104
104
  :host([tone='success']) {
105
- --ui-app-header-accent: var(--ui-color-success, #16a34a);
105
+ --ui-app-header-accent: var(--ui-color-success, #15803d);
106
106
  }
107
107
 
108
108
  :host([tone='warning']) {
109
- --ui-app-header-accent: var(--ui-color-warning, #d97706);
109
+ --ui-app-header-accent: var(--ui-color-warning, #b45309);
110
110
  }
111
111
 
112
112
  :host([tone='danger']) {