@editora/ui-core 0.1.25 → 0.2.1

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 (349) hide show
  1. package/README.md +132 -0
  2. package/dist/accordion.cjs.js +13 -12
  3. package/dist/accordion.esm.js +13 -12
  4. package/dist/alert-dialog.cjs.js +92 -53
  5. package/dist/alert-dialog.esm.js +211 -159
  6. package/dist/alert.cjs.js +42 -33
  7. package/dist/alert.esm.js +80 -71
  8. package/dist/animated-beam.cjs.js +42 -50
  9. package/dist/animated-beam.esm.js +47 -55
  10. package/dist/animated-list.cjs.js +11 -27
  11. package/dist/animated-list.esm.js +12 -28
  12. package/dist/animated-text.cjs.js +9 -9
  13. package/dist/animated-text.esm.js +9 -9
  14. package/dist/app-header.cjs.js +17 -12
  15. package/dist/app-header.esm.js +18 -13
  16. package/dist/aspect-ratio.cjs.js +10 -12
  17. package/dist/aspect-ratio.esm.js +11 -13
  18. package/dist/avatar.cjs.js +16 -20
  19. package/dist/avatar.esm.js +16 -20
  20. package/dist/badge.cjs.js +27 -22
  21. package/dist/badge.esm.js +32 -27
  22. package/dist/block-controls.cjs.js +11 -12
  23. package/dist/block-controls.esm.js +8 -9
  24. package/dist/box.cjs.js +2 -3
  25. package/dist/box.esm.js +2 -3
  26. package/dist/breadcrumb.cjs.js +12 -18
  27. package/dist/breadcrumb.esm.js +11 -17
  28. package/dist/button.cjs.js +1 -1
  29. package/dist/button.esm.js +1 -1
  30. package/dist/{calendar-D-mXMgqc.js → calendar-CzpWDxLc.js} +56 -46
  31. package/dist/{calendar-B3PUKHQm.mjs → calendar-DkSDFg33.mjs} +127 -117
  32. package/dist/calendar.cjs.js +1 -1
  33. package/dist/calendar.esm.js +1 -1
  34. package/dist/card.cjs.js +6 -7
  35. package/dist/card.esm.js +5 -6
  36. package/dist/chart.cjs.js +58 -52
  37. package/dist/chart.esm.js +101 -95
  38. package/dist/checkbox.cjs.js +19 -15
  39. package/dist/checkbox.esm.js +19 -15
  40. package/dist/collapsible.cjs.js +9 -13
  41. package/dist/collapsible.esm.js +9 -13
  42. package/dist/color-picker.cjs.js +38 -19
  43. package/dist/color-picker.esm.js +134 -115
  44. package/dist/combobox.cjs.js +60 -57
  45. package/dist/combobox.esm.js +96 -92
  46. package/dist/command-palette.cjs.js +1 -0
  47. package/dist/command-palette.esm.js +1 -0
  48. package/dist/command.cjs.js +32 -14
  49. package/dist/command.esm.js +46 -28
  50. package/dist/components/date-time-utils.d.ts.map +1 -1
  51. package/dist/components/ui-accordion.d.ts.map +1 -1
  52. package/dist/components/ui-alert-dialog.d.ts +2 -0
  53. package/dist/components/ui-alert-dialog.d.ts.map +1 -1
  54. package/dist/components/ui-alert.d.ts.map +1 -1
  55. package/dist/components/ui-animated-beam.d.ts.map +1 -1
  56. package/dist/components/ui-animated-list.d.ts.map +1 -1
  57. package/dist/components/ui-app-header.d.ts.map +1 -1
  58. package/dist/components/ui-aspect-ratio.d.ts.map +1 -1
  59. package/dist/components/ui-avatar.d.ts.map +1 -1
  60. package/dist/components/ui-badge.d.ts.map +1 -1
  61. package/dist/components/ui-block-controls.d.ts.map +1 -1
  62. package/dist/components/ui-box.d.ts.map +1 -1
  63. package/dist/components/ui-breadcrumb.d.ts.map +1 -1
  64. package/dist/components/ui-button.d.ts.map +1 -1
  65. package/dist/components/ui-calendar.d.ts.map +1 -1
  66. package/dist/components/ui-card.d.ts.map +1 -1
  67. package/dist/components/ui-chart.d.ts.map +1 -1
  68. package/dist/components/ui-checkbox.d.ts.map +1 -1
  69. package/dist/components/ui-collapsible.d.ts.map +1 -1
  70. package/dist/components/ui-color-picker.d.ts.map +1 -1
  71. package/dist/components/ui-combobox.d.ts.map +1 -1
  72. package/dist/components/ui-command-palette.d.ts.map +1 -1
  73. package/dist/components/ui-command.d.ts.map +1 -1
  74. package/dist/components/ui-container.d.ts.map +1 -1
  75. package/dist/components/ui-context-menu.d.ts.map +1 -1
  76. package/dist/components/ui-data-table.d.ts +7 -0
  77. package/dist/components/ui-data-table.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-dialog.d.ts +2 -0
  83. package/dist/components/ui-dialog.d.ts.map +1 -1
  84. package/dist/components/ui-dock.d.ts.map +1 -1
  85. package/dist/components/ui-drawer.d.ts.map +1 -1
  86. package/dist/components/ui-dropdown.d.ts.map +1 -1
  87. package/dist/components/ui-empty-state.d.ts.map +1 -1
  88. package/dist/components/ui-field.d.ts.map +1 -1
  89. package/dist/components/ui-fieldset.d.ts.map +1 -1
  90. package/dist/components/ui-file-upload.d.ts.map +1 -1
  91. package/dist/components/ui-floating-toolbar.d.ts.map +1 -1
  92. package/dist/components/ui-form.d.ts.map +1 -1
  93. package/dist/components/ui-gantt.d.ts.map +1 -1
  94. package/dist/components/ui-hover-card.d.ts.map +1 -1
  95. package/dist/components/ui-icon-cloud.d.ts.map +1 -1
  96. package/dist/components/ui-inline-edit.d.ts.map +1 -1
  97. package/dist/components/ui-input.d.ts.map +1 -1
  98. package/dist/components/ui-marquee.d.ts.map +1 -1
  99. package/dist/components/ui-menu.d.ts.map +1 -1
  100. package/dist/components/ui-menubar.d.ts.map +1 -1
  101. package/dist/components/ui-meter.d.ts.map +1 -1
  102. package/dist/components/ui-multi-select.d.ts.map +1 -1
  103. package/dist/components/ui-number-field.d.ts.map +1 -1
  104. package/dist/components/ui-orbiter.d.ts.map +1 -1
  105. package/dist/components/ui-pagination.d.ts.map +1 -1
  106. package/dist/components/ui-password-field.d.ts.map +1 -1
  107. package/dist/components/ui-pin-input.d.ts.map +1 -1
  108. package/dist/components/ui-popover.d.ts.map +1 -1
  109. package/dist/components/ui-progress.d.ts.map +1 -1
  110. package/dist/components/ui-radio-group.d.ts.map +1 -1
  111. package/dist/components/ui-radio.d.ts.map +1 -1
  112. package/dist/components/ui-rating.d.ts +1 -0
  113. package/dist/components/ui-rating.d.ts.map +1 -1
  114. package/dist/components/ui-scroll-area.d.ts.map +1 -1
  115. package/dist/components/ui-section.d.ts.map +1 -1
  116. package/dist/components/ui-select.d.ts.map +1 -1
  117. package/dist/components/ui-selection-popup.d.ts.map +1 -1
  118. package/dist/components/ui-sidebar.d.ts.map +1 -1
  119. package/dist/components/ui-slider.d.ts.map +1 -1
  120. package/dist/components/ui-sortable.d.ts.map +1 -1
  121. package/dist/components/ui-spinning-text.d.ts.map +1 -1
  122. package/dist/components/ui-split-button.d.ts.map +1 -1
  123. package/dist/components/ui-splitter.d.ts.map +1 -1
  124. package/dist/components/ui-stepper.d.ts.map +1 -1
  125. package/dist/components/ui-switch.d.ts.map +1 -1
  126. package/dist/components/ui-tabs.d.ts.map +1 -1
  127. package/dist/components/ui-tags-input.d.ts.map +1 -1
  128. package/dist/components/ui-textarea.d.ts.map +1 -1
  129. package/dist/components/ui-time-picker.d.ts.map +1 -1
  130. package/dist/components/ui-toggle-group.d.ts +2 -0
  131. package/dist/components/ui-toggle-group.d.ts.map +1 -1
  132. package/dist/components/ui-toggle.d.ts.map +1 -1
  133. package/dist/components/ui-toolbar.d.ts +2 -0
  134. package/dist/components/ui-toolbar.d.ts.map +1 -1
  135. package/dist/components/ui-tooltip.d.ts.map +1 -1
  136. package/dist/components/ui-transfer-list.d.ts.map +1 -1
  137. package/dist/components/ui-tree-item.d.ts.map +1 -1
  138. package/dist/components/ui-tree.d.ts.map +1 -1
  139. package/dist/components/ui-wizard.d.ts.map +1 -1
  140. package/dist/container.cjs.js +6 -12
  141. package/dist/container.esm.js +8 -14
  142. package/dist/context-menu.cjs.js +8 -8
  143. package/dist/context-menu.esm.js +42 -41
  144. package/dist/data-table.cjs.js +21 -18
  145. package/dist/data-table.esm.js +210 -190
  146. package/dist/date-field.cjs.js +9 -9
  147. package/dist/date-field.esm.js +19 -19
  148. package/dist/date-picker.cjs.js +29 -20
  149. package/dist/date-picker.esm.js +59 -50
  150. package/dist/date-range-picker.cjs.js +24 -19
  151. package/dist/date-range-picker.esm.js +86 -81
  152. package/dist/date-range-time-picker.cjs.js +27 -20
  153. package/dist/date-range-time-picker.esm.js +24 -17
  154. package/dist/date-time-picker.cjs.js +24 -17
  155. package/dist/date-time-picker.esm.js +89 -82
  156. package/dist/date-time-utils-C-4eHTyy.js +1 -0
  157. package/dist/{date-time-utils-BTlxnz5j.mjs → date-time-utils-zAx4ghvC.mjs} +75 -68
  158. package/dist/description.cjs.js +4 -4
  159. package/dist/description.esm.js +4 -4
  160. package/dist/dialog.cjs.js +59 -43
  161. package/dist/dialog.esm.js +86 -53
  162. package/dist/direction-provider.cjs.js +1 -1
  163. package/dist/direction-provider.esm.js +1 -1
  164. package/dist/dock.cjs.js +16 -30
  165. package/dist/dock.esm.js +26 -40
  166. package/dist/drawer.cjs.js +8 -12
  167. package/dist/drawer.esm.js +6 -10
  168. package/dist/dropdown.cjs.js +8 -6
  169. package/dist/dropdown.esm.js +33 -30
  170. package/dist/empty-state.cjs.js +17 -15
  171. package/dist/empty-state.esm.js +13 -11
  172. package/dist/field-error.cjs.js +1 -1
  173. package/dist/field-error.esm.js +7 -7
  174. package/dist/field.cjs.js +23 -14
  175. package/dist/field.esm.js +30 -21
  176. package/dist/fieldset.cjs.js +16 -9
  177. package/dist/fieldset.esm.js +19 -12
  178. package/dist/file-upload.cjs.js +79 -37
  179. package/dist/file-upload.esm.js +154 -112
  180. package/dist/flex.cjs.js +2 -2
  181. package/dist/flex.esm.js +8 -8
  182. package/dist/floating-toolbar.cjs.js +6 -7
  183. package/dist/floating-toolbar.esm.js +8 -9
  184. package/dist/form.cjs.js +24 -27
  185. package/dist/form.esm.js +24 -27
  186. package/dist/gantt.cjs.js +13 -11
  187. package/dist/gantt.esm.js +13 -11
  188. package/dist/grid.cjs.js +1 -1
  189. package/dist/grid.esm.js +1 -1
  190. package/dist/hover-card.cjs.js +8 -8
  191. package/dist/hover-card.esm.js +18 -15
  192. package/dist/icon-cloud.cjs.js +19 -36
  193. package/dist/icon-cloud.esm.js +41 -58
  194. package/dist/index.cjs.js +1 -1
  195. package/dist/index.d.ts +2 -0
  196. package/dist/index.d.ts.map +1 -1
  197. package/dist/index.esm.js +108 -104
  198. package/dist/inline-edit.cjs.js +50 -22
  199. package/dist/inline-edit.esm.js +77 -49
  200. package/dist/input.cjs.js +45 -38
  201. package/dist/input.esm.js +60 -53
  202. package/dist/label.cjs.js +6 -6
  203. package/dist/label.esm.js +6 -6
  204. package/dist/layout.cjs.js +3 -3
  205. package/dist/layout.esm.js +3 -3
  206. package/dist/marquee.cjs.js +7 -10
  207. package/dist/marquee.esm.js +7 -10
  208. package/dist/masonry-grid.cjs.js +2 -2
  209. package/dist/masonry-grid.esm.js +11 -11
  210. package/dist/{menu-item-styles-IGSFLAHu.mjs → menu-item-styles-CdqxPUuw.mjs} +15 -15
  211. package/dist/{menu-item-styles-B4onAr4C.js → menu-item-styles-DUdyjQ7i.js} +10 -10
  212. package/dist/menu.cjs.js +8 -24
  213. package/dist/menu.esm.js +52 -72
  214. package/dist/menubar.cjs.js +9 -31
  215. package/dist/menubar.esm.js +127 -153
  216. package/dist/meter.cjs.js +4 -9
  217. package/dist/meter.esm.js +6 -11
  218. package/dist/multi-select.cjs.js +53 -40
  219. package/dist/multi-select.esm.js +87 -73
  220. package/dist/navigation-menu.cjs.js +10 -10
  221. package/dist/navigation-menu.esm.js +33 -33
  222. package/dist/number-field.cjs.js +28 -17
  223. package/dist/number-field.esm.js +37 -26
  224. package/dist/number-ticker.cjs.js +4 -4
  225. package/dist/number-ticker.esm.js +10 -10
  226. package/dist/odometer.cjs.js +9 -9
  227. package/dist/odometer.esm.js +17 -17
  228. package/dist/orbiter.cjs.js +11 -28
  229. package/dist/orbiter.esm.js +28 -45
  230. package/dist/overlay-motion-B56x1GoY.js +49 -0
  231. package/dist/overlay-motion-BX3dPLay.mjs +120 -0
  232. package/dist/pagination.cjs.js +28 -25
  233. package/dist/pagination.esm.js +54 -51
  234. package/dist/password-field.cjs.js +39 -34
  235. package/dist/password-field.esm.js +63 -58
  236. package/dist/pin-input.cjs.js +18 -14
  237. package/dist/pin-input.esm.js +24 -20
  238. package/dist/placement-grid.cjs.js +1 -1
  239. package/dist/placement-grid.esm.js +1 -1
  240. package/dist/plugin-panel.cjs.js +1 -1
  241. package/dist/plugin-panel.esm.js +1 -1
  242. package/dist/popover.cjs.js +16 -28
  243. package/dist/popover.esm.js +29 -45
  244. package/dist/portal-DeaM1tYY.mjs +121 -0
  245. package/dist/portal-XbYR3m_q.js +1 -0
  246. package/dist/portal.cjs.js +1 -1
  247. package/dist/portal.d.ts +3 -1
  248. package/dist/portal.d.ts.map +1 -1
  249. package/dist/portal.esm.js +1 -1
  250. package/dist/{positioner-D0VGxtYU.mjs → positioner-BE8Nbho2.mjs} +5 -3
  251. package/dist/{positioner-D_fqyx_j.js → positioner-DZ1FW6A9.js} +1 -1
  252. package/dist/positioner.cjs.js +1 -1
  253. package/dist/positioner.esm.js +1 -1
  254. package/dist/presence.cjs.js +1 -1
  255. package/dist/presence.esm.js +1 -1
  256. package/dist/primitives/overlay-motion.d.ts +47 -0
  257. package/dist/primitives/overlay-motion.d.ts.map +1 -0
  258. package/dist/primitives/positioner.d.ts.map +1 -1
  259. package/dist/progress.cjs.js +11 -16
  260. package/dist/progress.esm.js +37 -42
  261. package/dist/quick-actions.cjs.js +14 -14
  262. package/dist/quick-actions.esm.js +12 -12
  263. package/dist/radio-group.cjs.js +50 -26
  264. package/dist/radio-group.esm.js +53 -29
  265. package/dist/radio.cjs.js +16 -13
  266. package/dist/radio.esm.js +16 -13
  267. package/dist/rating.cjs.js +11 -15
  268. package/dist/rating.esm.js +48 -50
  269. package/dist/{runtime-CFnK53iC.mjs → runtime-BRT7E4A8.mjs} +563 -531
  270. package/dist/runtime-CXw4SGV9.js +5 -0
  271. package/dist/runtime.cjs.js +1 -1
  272. package/dist/runtime.d.ts +3 -2
  273. package/dist/runtime.d.ts.map +1 -1
  274. package/dist/runtime.esm.js +36 -32
  275. package/dist/scroll-area.cjs.js +3 -4
  276. package/dist/scroll-area.esm.js +3 -4
  277. package/dist/section.cjs.js +2 -4
  278. package/dist/section.esm.js +2 -4
  279. package/dist/select.cjs.js +42 -75
  280. package/dist/select.esm.js +57 -89
  281. package/dist/selection-popup.cjs.js +3 -4
  282. package/dist/selection-popup.esm.js +3 -4
  283. package/dist/semantic-tokens.d.ts +17 -0
  284. package/dist/semantic-tokens.d.ts.map +1 -0
  285. package/dist/separator.cjs.js +6 -6
  286. package/dist/separator.esm.js +7 -7
  287. package/dist/sidebar.cjs.js +29 -28
  288. package/dist/sidebar.esm.js +32 -31
  289. package/dist/skeleton.cjs.js +2 -2
  290. package/dist/skeleton.esm.js +2 -2
  291. package/dist/slider.cjs.js +22 -26
  292. package/dist/slider.esm.js +25 -29
  293. package/dist/slot.cjs.js +1 -1
  294. package/dist/slot.esm.js +1 -1
  295. package/dist/sortable.cjs.js +10 -11
  296. package/dist/sortable.esm.js +10 -11
  297. package/dist/spinning-text.cjs.js +4 -13
  298. package/dist/spinning-text.esm.js +4 -13
  299. package/dist/split-button.cjs.js +7 -7
  300. package/dist/split-button.esm.js +17 -16
  301. package/dist/splitter.cjs.js +52 -10
  302. package/dist/splitter.esm.js +55 -13
  303. package/dist/stepper.cjs.js +31 -65
  304. package/dist/stepper.esm.js +32 -66
  305. package/dist/switch.cjs.js +20 -22
  306. package/dist/switch.esm.js +20 -22
  307. package/dist/table.cjs.js +5 -5
  308. package/dist/table.esm.js +20 -20
  309. package/dist/tabs.cjs.js +101 -26
  310. package/dist/tabs.esm.js +187 -112
  311. package/dist/tags-input.cjs.js +43 -17
  312. package/dist/tags-input.esm.js +75 -49
  313. package/dist/textarea.cjs.js +34 -35
  314. package/dist/textarea.esm.js +50 -51
  315. package/dist/theme.d.ts +25 -1
  316. package/dist/theme.d.ts.map +1 -1
  317. package/dist/time-field.cjs.js +8 -8
  318. package/dist/time-field.esm.js +29 -29
  319. package/dist/time-picker.cjs.js +17 -14
  320. package/dist/time-picker.esm.js +28 -25
  321. package/dist/timeline.cjs.js +10 -10
  322. package/dist/timeline.esm.js +7 -7
  323. package/dist/toast.cjs.js +2 -2
  324. package/dist/toast.esm.js +2 -2
  325. package/dist/toggle-group.cjs.js +13 -13
  326. package/dist/toggle-group.esm.js +66 -61
  327. package/dist/toggle.cjs.js +52 -34
  328. package/dist/toggle.esm.js +80 -62
  329. package/dist/toolbar.cjs.js +14 -14
  330. package/dist/toolbar.esm.js +41 -33
  331. package/dist/tooltip.cjs.js +3 -3
  332. package/dist/tooltip.esm.js +39 -33
  333. package/dist/transfer-list.cjs.js +37 -38
  334. package/dist/transfer-list.esm.js +32 -33
  335. package/dist/{tree-B_oQput6.mjs → tree-33fVNnaf.mjs} +6 -5
  336. package/dist/{tree-SivHxcAy.js → tree-Dc02MChE.js} +6 -5
  337. package/dist/tree-item.cjs.js +9 -8
  338. package/dist/tree-item.esm.js +13 -12
  339. package/dist/tree.cjs.js +1 -1
  340. package/dist/tree.esm.js +1 -1
  341. package/dist/{ui-button-Co8Sid6t.mjs → ui-button-C3OmI7Sn.mjs} +152 -154
  342. package/dist/{ui-button-BPrzJScZ.js → ui-button-CnLwXBnx.js} +107 -109
  343. package/dist/wizard.cjs.js +51 -39
  344. package/dist/wizard.esm.js +51 -39
  345. package/package.json +1 -1
  346. package/dist/date-time-utils-y3AvNvGe.js +0 -1
  347. package/dist/portal-DgpQ3Jo1.js +0 -1
  348. package/dist/portal-bR42gHvG.mjs +0 -118
  349. package/dist/runtime-DwE-tizc.js +0 -1
package/dist/chart.esm.js CHANGED
@@ -1,17 +1,20 @@
1
1
  import { E as Y } from "./ElementBase-BeZT54Hj.mjs";
2
2
  const V = 180, Z = `
3
3
  :host {
4
- --ui-chart-bg: color-mix(in srgb, var(--ui-color-surface, #ffffff) 94%, transparent);
4
+ --ui-chart-bg: var(--color-panel-solid, var(--ui-color-surface, #ffffff));
5
5
  --ui-chart-surface: color-mix(in srgb, var(--ui-color-surface, #ffffff) 97%, #ffffff 3%);
6
- --ui-chart-border: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 74%, transparent);
6
+ --ui-chart-border: var(--ui-color-line-subtle, color-mix(in srgb, var(--ui-color-border, #cbd5e1) 74%, transparent));
7
7
  --ui-chart-text: var(--ui-color-text, #0f172a);
8
8
  --ui-chart-muted: var(--ui-color-muted, #526175);
9
9
  --ui-chart-grid: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 45%, transparent);
10
10
  --ui-chart-accent: var(--ui-color-primary, #2563eb);
11
11
  --ui-chart-success: var(--ui-color-success, #15803d);
12
+ --ui-chart-success-text: var(--ui-color-success-text, color-mix(in srgb, var(--ui-chart-success) 74%, var(--ui-chart-text)));
13
+ --ui-chart-danger-text: var(--ui-color-danger-text, color-mix(in srgb, var(--ui-chart-danger) 74%, var(--ui-chart-text)));
14
+ --ui-chart-warning-text: var(--ui-color-warning-text, color-mix(in srgb, var(--ui-chart-warning) 74%, var(--ui-chart-text)));
12
15
  --ui-chart-warning: var(--ui-color-warning, #b45309);
13
16
  --ui-chart-danger: var(--ui-color-danger, #dc2626);
14
- --ui-chart-radius: 16px;
17
+ --ui-chart-radius: calc(var(--ui-radius, 6px) + 4px);
15
18
  --ui-chart-shadow: none;
16
19
  --ui-chart-plot-height: 220px;
17
20
  --ui-chart-plot-min-height: 188px;
@@ -28,7 +31,7 @@ const V = 180, Z = `
28
31
  position: relative;
29
32
  border: 1px solid var(--ui-chart-border);
30
33
  border-radius: var(--ui-chart-radius);
31
- background: linear-gradient(160deg, var(--ui-chart-surface), var(--ui-chart-bg));
34
+ background: var(--ui-chart-bg);
32
35
  color: var(--ui-chart-text);
33
36
  box-shadow: var(--ui-chart-shadow);
34
37
  padding: 16px;
@@ -54,6 +57,9 @@ const V = 180, Z = `
54
57
  --ui-chart-accent: #93c5fd;
55
58
  --ui-chart-success: #34d399;
56
59
  --ui-chart-warning: #fbbf24;
60
+ --ui-chart-success-text: var(--ui-chart-success);
61
+ --ui-chart-danger-text: var(--ui-chart-danger);
62
+ --ui-chart-warning-text: var(--ui-chart-warning);
57
63
  --ui-chart-danger: #f87171;
58
64
  --ui-chart-shadow: none;
59
65
  }
@@ -77,8 +83,8 @@ const V = 180, Z = `
77
83
  display: grid;
78
84
  gap: 10px;
79
85
  padding: 10px 12px;
80
- border: 1px solid color-mix(in srgb, var(--ui-chart-border) 82%, transparent);
81
- border-radius: 12px;
86
+ border: 1px solid transparent;
87
+ border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
82
88
  background: color-mix(in srgb, var(--ui-chart-surface) 96%, transparent);
83
89
  }
84
90
 
@@ -99,7 +105,7 @@ const V = 180, Z = `
99
105
  .title {
100
106
  font-size: 15px;
101
107
  line-height: 1.35;
102
- font-weight: 700;
108
+ font-weight: 600;
103
109
  letter-spacing: 0.01em;
104
110
  margin: 0;
105
111
  }
@@ -120,7 +126,7 @@ const V = 180, Z = `
120
126
  margin: 0;
121
127
  font-size: 15px;
122
128
  line-height: 1.35;
123
- font-weight: 700;
129
+ font-weight: 600;
124
130
  letter-spacing: 0.01em;
125
131
  color: var(--ui-chart-text);
126
132
  }
@@ -140,7 +146,7 @@ const V = 180, Z = `
140
146
  min-block-size: 24px;
141
147
  padding: 0 10px;
142
148
  border-radius: 999px;
143
- border: 1px solid color-mix(in srgb, var(--ui-chart-border) 88%, transparent);
149
+ border: 1px solid transparent;
144
150
  background: color-mix(in srgb, var(--ui-chart-surface) 92%, transparent);
145
151
  font-size: 11px;
146
152
  line-height: 1;
@@ -150,19 +156,19 @@ const V = 180, Z = `
150
156
  }
151
157
 
152
158
  .status-pill[data-state="success"] {
153
- color: var(--ui-chart-success);
159
+ color: var(--ui-chart-success-text);
154
160
  border-color: color-mix(in srgb, var(--ui-chart-success) 35%, var(--ui-chart-border));
155
161
  background: color-mix(in srgb, var(--ui-chart-success) 13%, transparent);
156
162
  }
157
163
 
158
164
  .status-pill[data-state="error"] {
159
- color: var(--ui-chart-danger);
165
+ color: var(--ui-chart-danger-text);
160
166
  border-color: color-mix(in srgb, var(--ui-chart-danger) 35%, var(--ui-chart-border));
161
167
  background: color-mix(in srgb, var(--ui-chart-danger) 12%, transparent);
162
168
  }
163
169
 
164
170
  .status-pill[data-state="loading"] {
165
- color: var(--ui-chart-warning);
171
+ color: var(--ui-chart-warning-text);
166
172
  border-color: color-mix(in srgb, var(--ui-chart-warning) 32%, var(--ui-chart-border));
167
173
  background: color-mix(in srgb, var(--ui-chart-warning) 10%, transparent);
168
174
  }
@@ -174,8 +180,8 @@ const V = 180, Z = `
174
180
  }
175
181
 
176
182
  .metric {
177
- border: 1px solid color-mix(in srgb, var(--ui-chart-border) 82%, transparent);
178
- border-radius: 10px;
183
+ border: 1px solid transparent;
184
+ border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
179
185
  padding: 8px 10px;
180
186
  background: color-mix(in srgb, var(--ui-chart-surface) 95%, transparent);
181
187
  min-inline-size: 0;
@@ -194,26 +200,26 @@ const V = 180, Z = `
194
200
  .metric-value {
195
201
  font-size: 14px;
196
202
  line-height: 1.2;
197
- font-weight: 700;
203
+ font-weight: 600;
198
204
  overflow: hidden;
199
205
  text-overflow: ellipsis;
200
206
  white-space: nowrap;
201
207
  }
202
208
 
203
209
  .metric-value[data-tone="up"] {
204
- color: var(--ui-chart-success);
210
+ color: var(--ui-chart-success-text);
205
211
  }
206
212
 
207
213
  .metric-value[data-tone="down"] {
208
- color: var(--ui-chart-danger);
214
+ color: var(--ui-chart-danger-text);
209
215
  }
210
216
 
211
217
  .plot-shell {
212
218
  position: relative;
213
219
  inline-size: 100%;
214
220
  min-inline-size: 0;
215
- border: 1px solid color-mix(in srgb, var(--ui-chart-border) 80%, transparent);
216
- border-radius: 12px;
221
+ border: 1px solid transparent;
222
+ border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
217
223
  background: color-mix(in srgb, var(--ui-chart-surface) 97%, transparent);
218
224
  min-block-size: var(--ui-chart-plot-min-height);
219
225
  block-size: var(--ui-chart-plot-height);
@@ -358,8 +364,8 @@ const V = 180, Z = `
358
364
  min-inline-size: 132px;
359
365
  max-inline-size: min(220px, calc(100% - 16px));
360
366
  padding: 10px 12px;
361
- border-radius: 12px;
362
- border: 1px solid color-mix(in srgb, var(--ui-chart-border) 86%, transparent);
367
+ border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
368
+ border: 1px solid transparent;
363
369
  background: color-mix(in srgb, var(--ui-chart-surface) 98%, transparent);
364
370
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
365
371
  color: var(--ui-chart-text);
@@ -372,7 +378,7 @@ const V = 180, Z = `
372
378
  .tooltip-title {
373
379
  font-size: 12px;
374
380
  line-height: 1.2;
375
- font-weight: 700;
381
+ font-weight: 600;
376
382
  }
377
383
 
378
384
  .tooltip-list {
@@ -405,7 +411,7 @@ const V = 180, Z = `
405
411
  }
406
412
 
407
413
  .tooltip-value {
408
- font-weight: 700;
414
+ font-weight: 600;
409
415
  color: var(--ui-chart-text);
410
416
  white-space: nowrap;
411
417
  }
@@ -415,8 +421,8 @@ const V = 180, Z = `
415
421
  align-items: center;
416
422
  justify-content: space-between;
417
423
  gap: 10px;
418
- border: 1px solid color-mix(in srgb, var(--ui-chart-border) 78%, transparent);
419
- border-radius: 10px;
424
+ border: 1px solid transparent;
425
+ border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
420
426
  padding: 8px 10px;
421
427
  font-size: 12px;
422
428
  line-height: 1.35;
@@ -426,7 +432,7 @@ const V = 180, Z = `
426
432
 
427
433
  .insight strong {
428
434
  color: var(--ui-chart-text);
429
- font-weight: 700;
435
+ font-weight: 600;
430
436
  }
431
437
 
432
438
  .legend {
@@ -436,9 +442,9 @@ const V = 180, Z = `
436
442
  }
437
443
 
438
444
  .legend-item {
439
- border: 1px solid color-mix(in srgb, var(--ui-chart-border) 78%, transparent);
445
+ border: 1px solid transparent;
440
446
  background: color-mix(in srgb, var(--ui-chart-surface) 94%, transparent);
441
- border-radius: 10px;
447
+ border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
442
448
  min-block-size: 30px;
443
449
  display: inline-flex;
444
450
  align-items: center;
@@ -481,7 +487,7 @@ const V = 180, Z = `
481
487
  .empty,
482
488
  .message {
483
489
  border: 1px dashed color-mix(in srgb, var(--ui-chart-border) 78%, transparent);
484
- border-radius: 10px;
490
+ border-radius: var(--ui-control-radius-2, var(--ui-radius, 6px));
485
491
  padding: 14px;
486
492
  text-align: center;
487
493
  font-size: 12px;
@@ -490,13 +496,13 @@ const V = 180, Z = `
490
496
  }
491
497
 
492
498
  .message[data-tone="error"] {
493
- color: var(--ui-chart-danger);
499
+ color: var(--ui-chart-danger-text);
494
500
  border-color: color-mix(in srgb, var(--ui-chart-danger) 30%, var(--ui-chart-border));
495
501
  background: color-mix(in srgb, var(--ui-chart-danger) 10%, transparent);
496
502
  }
497
503
 
498
504
  .message[data-tone="success"] {
499
- color: var(--ui-chart-success);
505
+ color: var(--ui-chart-success-text);
500
506
  border-color: color-mix(in srgb, var(--ui-chart-success) 30%, var(--ui-chart-border));
501
507
  background: color-mix(in srgb, var(--ui-chart-success) 10%, transparent);
502
508
  }
@@ -639,11 +645,11 @@ function J(p, t, e) {
639
645
  if (o && typeof o == "object") {
640
646
  const n = Number(o.value);
641
647
  if (!Number.isFinite(n)) return null;
642
- const d = o.label, u = o.tone;
648
+ const u = o.label, d = o.tone;
643
649
  return {
644
- label: typeof d == "string" && d.trim() ? d.trim() : String(s + 1),
650
+ label: typeof u == "string" && u.trim() ? u.trim() : String(s + 1),
645
651
  value: n,
646
- tone: typeof u == "string" && u.trim() ? u.trim() : void 0
652
+ tone: typeof d == "string" && d.trim() ? d.trim() : void 0
647
653
  };
648
654
  }
649
655
  return null;
@@ -682,14 +688,14 @@ function Q(p) {
682
688
  if (!a || typeof a != "object") return null;
683
689
  const i = a.name, o = G(a.data);
684
690
  if (!o.length) return null;
685
- const s = a.tone, n = a.dash, d = Number(a.strokeWidth), u = Number(a.opacity), T = a.fill;
691
+ const s = a.tone, n = a.dash, u = Number(a.strokeWidth), d = Number(a.opacity), T = a.fill;
686
692
  return {
687
693
  name: typeof i == "string" && i.trim() ? i.trim() : `Series ${r + 1}`,
688
694
  data: o,
689
695
  tone: typeof s == "string" && s.trim() ? s.trim() : void 0,
690
696
  dash: typeof n == "string" && n.trim() ? n.trim() : void 0,
691
- strokeWidth: Number.isFinite(d) && d > 0 ? d : void 0,
692
- opacity: Number.isFinite(u) && u > 0 ? u : void 0,
697
+ strokeWidth: Number.isFinite(u) && u > 0 ? u : void 0,
698
+ opacity: Number.isFinite(d) && d > 0 ? d : void 0,
693
699
  fill: typeof T == "boolean" ? T : void 0
694
700
  };
695
701
  }).filter((a) => !!a) : [];
@@ -709,28 +715,28 @@ function tt(p) {
709
715
  }
710
716
  function et(p, t) {
711
717
  const a = (p.length ? p : t.length ? [{ name: "Series 1", data: t }] : []).map((n) => {
712
- const d = tt(n.data);
718
+ const u = tt(n.data);
713
719
  return {
714
720
  name: n.name,
715
- data: d.points,
721
+ data: u.points,
716
722
  tone: n.tone,
717
723
  fill: n.fill,
718
724
  dash: n.dash,
719
725
  strokeWidth: n.strokeWidth,
720
726
  opacity: n.opacity,
721
- truncated: d.truncated
727
+ truncated: u.truncated
722
728
  };
723
729
  }).filter((n) => n.data.length > 0), r = /* @__PURE__ */ new Set();
724
730
  a.forEach((n) => {
725
- n.data.forEach((d) => r.add(d.label));
731
+ n.data.forEach((u) => r.add(u.label));
726
732
  });
727
- let i = Array.from(r), o = a.reduce((n, d) => Math.max(n, d.truncated), 0);
733
+ let i = Array.from(r), o = a.reduce((n, u) => Math.max(n, u.truncated), 0);
728
734
  i.length > V && (o += i.length - V, i = i.slice(i.length - V));
729
735
  const s = a.map((n) => {
730
- const d = new Set(i);
736
+ const u = new Set(i);
731
737
  return {
732
738
  name: n.name,
733
- data: n.data.filter((u) => d.has(u.label)),
739
+ data: n.data.filter((d) => u.has(d.label)),
734
740
  tone: n.tone,
735
741
  fill: n.fill,
736
742
  dash: n.dash,
@@ -816,23 +822,23 @@ class it extends Y {
816
822
  return this.getAttribute("value-suffix") || "";
817
823
  }
818
824
  _resolveStats(t) {
819
- const e = t.map((u) => u.value), a = e.reduce((u, T) => u + T, 0), r = e.length ? a / e.length : 0, i = e.length ? Math.min(...e) : 0, o = e.length ? Math.max(...e) : 0, s = e.length > 1 ? e[e.length - 1] - e[0] : 0, n = e[0] || 0, d = n !== 0 ? s / Math.abs(n) * 100 : null;
820
- return { total: a, average: r, min: i, max: o, delta: s, deltaPct: d };
825
+ const e = t.map((d) => d.value), a = e.reduce((d, T) => d + T, 0), r = e.length ? a / e.length : 0, i = e.length ? Math.min(...e) : 0, o = e.length ? Math.max(...e) : 0, s = e.length > 1 ? e[e.length - 1] - e[0] : 0, n = e[0] || 0, u = n !== 0 ? s / Math.abs(n) * 100 : null;
826
+ return { total: a, average: r, min: i, max: o, delta: s, deltaPct: u };
821
827
  }
822
828
  _valueDomain(t, e) {
823
- const a = !!e?.includeZero, r = e?.fitPadding ?? 0.14, i = t.map((u) => u.value);
829
+ const a = !!e?.includeZero, r = e?.fitPadding ?? 0.14, i = t.map((d) => d.value);
824
830
  let o = Math.min(...i), s = Math.max(...i);
825
831
  a && (o = Math.min(0, o), s = Math.max(0, s));
826
832
  let n = s - o;
827
833
  if (n <= 0) {
828
- const u = Math.max(Math.abs(s) * 0.12, 1);
829
- o -= u, s += u, n = s - o;
834
+ const d = Math.max(Math.abs(s) * 0.12, 1);
835
+ o -= d, s += d, n = s - o;
830
836
  } else {
831
- const u = n * r;
832
- a ? (o -= u * 0.25, s += u) : (o -= u, s += u), n = s - o;
837
+ const d = n * r;
838
+ a ? (o -= d * 0.25, s += d) : (o -= d, s += d), n = s - o;
833
839
  }
834
- const d = o <= 0 && s >= 0;
835
- return { min: o, max: s, span: n, zeroInDomain: d };
840
+ const u = o <= 0 && s >= 0;
841
+ return { min: o, max: s, span: n, zeroInDomain: u };
836
842
  }
837
843
  _formatValue(t, e) {
838
844
  const a = this._valuePrefix(), r = this._valueSuffix();
@@ -868,16 +874,16 @@ class it extends Y {
868
874
  if (!i) return null;
869
875
  const o = e.labels[t];
870
876
  if (!o) return null;
871
- const s = i.data.find((u) => u.label === o) || i.data[t];
877
+ const s = i.data.find((d) => d.label === o) || i.data[t];
872
878
  if (!s) return null;
873
- const n = this._resolveStats(i.data), d = this._seriesValueDetails(e.labels, e.series, t);
879
+ const n = this._resolveStats(i.data), u = this._seriesValueDetails(e.labels, e.series, t);
874
880
  return {
875
881
  index: t,
876
882
  label: o,
877
883
  value: s.value,
878
884
  tone: s.tone || this._seriesTone(i, 0),
879
885
  series: i.name,
880
- seriesValues: d,
886
+ seriesValues: u,
881
887
  type: a,
882
888
  total: n.total,
883
889
  min: n.min,
@@ -989,11 +995,11 @@ class it extends Y {
989
995
  return [1, 0.75, 0.5, 0.25, 0].map((a) => this._formatValue(t + (e - t) * a));
990
996
  }
991
997
  _plotCartesian(t, e, a) {
992
- const $ = t.labels, P = t.series, w = e === "bar", b = P.flatMap((g) => g.data.map((x) => x.value)), y = this._valueDomain(b.map((g, x) => ({ label: String(x), value: g })), { includeZero: w }), F = y.min, l = y.max, v = y.span, f = $.length > 1 ? 208 / ($.length - 1) : 0, S = y.zeroInDomain ? 0 : F, h = 6 + (l - S) / v * 48, k = [0, 0.25, 0.5, 0.75, 1].map((g) => {
998
+ const $ = t.labels, P = t.series, w = e === "bar", v = P.flatMap((g) => g.data.map((x) => x.value)), y = this._valueDomain(v.map((g, x) => ({ label: String(x), value: g })), { includeZero: w }), F = y.min, l = y.max, b = y.span, f = $.length > 1 ? 208 / ($.length - 1) : 0, S = y.zeroInDomain ? 0 : F, h = 6 + (l - S) / b * 48, k = [0, 0.25, 0.5, 0.75, 1].map((g) => {
993
999
  const x = 6 + 48 * g, I = y.zeroInDomain && Math.abs(x - h) < 0.5;
994
1000
  return `<line x1="8" y1="${x.toFixed(2)}" x2="${216 .toFixed(2)}" y2="${x.toFixed(2)}" stroke="var(--ui-chart-grid)" stroke-width="${I ? "0.75" : "0.45"}" />`;
995
1001
  }).join(""), L = P.map((g) => new Map(g.data.map((x) => [x.label, x]))), j = $.map((g, x) => {
996
- const I = 8 + f * x, D = L.map((z) => z.get(g)).filter((z) => !!z).map((z) => 6 + (l - z.value) / v * 48), C = D.length ? Math.min(...D) : 6 + 48 / 2;
1002
+ const I = 8 + f * x, D = L.map((z) => z.get(g)).filter((z) => !!z).map((z) => 6 + (l - z.value) / b * 48), C = D.length ? Math.min(...D) : 6 + 48 / 2;
997
1003
  return {
998
1004
  xPct: M(I / 220 * 100, 0, 100),
999
1005
  yPct: M(C / 64 * 100, 0, 100)
@@ -1008,7 +1014,7 @@ class it extends Y {
1008
1014
  return $.map((O, H) => {
1009
1015
  const W = L[z].get(O);
1010
1016
  if (!W) return "";
1011
- const m = 8 + H * g + (g - x) / 2 + I * z, _ = 6 + (l - W.value) / v * 48, A = Math.min(_, h), R = Math.max(1, Math.abs(h - _)), B = a === H, X = a == null || B ? C.opacity ?? 1 : 0.72;
1017
+ const m = 8 + H * g + (g - x) / 2 + I * z, _ = 6 + (l - W.value) / b * 48, A = Math.min(_, h), R = Math.max(1, Math.abs(h - _)), B = a === H, X = a == null || B ? C.opacity ?? 1 : 0.72;
1012
1018
  return `<rect x="${m.toFixed(2)}" y="${A.toFixed(2)}" width="${Math.max(2, I - 1).toFixed(2)}" height="${R.toFixed(2)}" rx="1.4" fill="${c(N)}" opacity="${X}" />`;
1013
1019
  }).join("");
1014
1020
  }).join("");
@@ -1026,7 +1032,7 @@ class it extends Y {
1026
1032
  }
1027
1033
  const U = P.map((g, x) => {
1028
1034
  const I = this._seriesTone(g, x), D = $.map((m, _) => {
1029
- const A = L[x].get(m) || null, R = 8 + f * _, B = A ? 6 + (l - A.value) / v * 48 : null;
1035
+ const A = L[x].get(m) || null, R = 8 + f * _, B = A ? 6 + (l - A.value) / b * 48 : null;
1030
1036
  return { x: R, y: B, point: A, index: _ };
1031
1037
  }), C = [];
1032
1038
  let z = [];
@@ -1061,21 +1067,21 @@ class it extends Y {
1061
1067
  };
1062
1068
  }
1063
1069
  _plotRadial(t, e) {
1064
- const n = t.map((l) => l.value), d = Math.min(...n), u = Math.max(...n), T = Math.max(1, u - d), $ = t.map((l, v) => {
1065
- const f = -Math.PI / 2 + Math.PI * 2 * v / t.length, h = 10 + (l.value - d) / T * 18, k = 32 + Math.cos(f) * h, L = 32 + Math.sin(f) * h;
1066
- return { x: k, y: L, point: l, index: v, angle: f };
1067
- }), P = $.map((l, v) => `${v === 0 ? "M" : "L"}${l.x.toFixed(2)} ${l.y.toFixed(2)}`).join(" ") + " Z", w = [0.25, 0.5, 0.75, 1].map((l) => `<circle cx="32" cy="32" r="${(10 + l * 18).toFixed(2)}" fill="none" stroke="var(--ui-chart-grid)" stroke-width="0.45" />`).join(""), b = $.map((l) => `<line x1="32" y1="32" x2="${(32 + Math.cos(l.angle) * 28).toFixed(2)}" y2="${(32 + Math.sin(l.angle) * 28).toFixed(2)}" stroke="var(--ui-chart-grid)" stroke-width="0.45" />`).join(""), y = $.map((l) => {
1068
- const v = this._pointTone(l.point, l.index), f = e === l.index;
1069
- return `<circle cx="${l.x.toFixed(2)}" cy="${l.y.toFixed(2)}" r="${f ? "2.35" : "1.85"}" fill="${c(v)}" opacity="${e == null || f ? "1" : "0.74"}" />`;
1070
+ const n = t.map((l) => l.value), u = Math.min(...n), d = Math.max(...n), T = Math.max(1, d - u), $ = t.map((l, b) => {
1071
+ const f = -Math.PI / 2 + Math.PI * 2 * b / t.length, h = 10 + (l.value - u) / T * 18, k = 32 + Math.cos(f) * h, L = 32 + Math.sin(f) * h;
1072
+ return { x: k, y: L, point: l, index: b, angle: f };
1073
+ }), P = $.map((l, b) => `${b === 0 ? "M" : "L"}${l.x.toFixed(2)} ${l.y.toFixed(2)}`).join(" ") + " Z", w = [0.25, 0.5, 0.75, 1].map((l) => `<circle cx="32" cy="32" r="${(10 + l * 18).toFixed(2)}" fill="none" stroke="var(--ui-chart-grid)" stroke-width="0.45" />`).join(""), v = $.map((l) => `<line x1="32" y1="32" x2="${(32 + Math.cos(l.angle) * 28).toFixed(2)}" y2="${(32 + Math.sin(l.angle) * 28).toFixed(2)}" stroke="var(--ui-chart-grid)" stroke-width="0.45" />`).join(""), y = $.map((l) => {
1074
+ const b = this._pointTone(l.point, l.index), f = e === l.index;
1075
+ return `<circle cx="${l.x.toFixed(2)}" cy="${l.y.toFixed(2)}" r="${f ? "2.35" : "1.85"}" fill="${c(b)}" opacity="${e == null || f ? "1" : "0.74"}" />`;
1070
1076
  }).join(""), F = $.map((l) => {
1071
- const v = M(l.x / 64 * 100, 0, 100).toFixed(3), f = M(l.y / 64 * 100, 0, 100).toFixed(3), S = e === l.index, h = `${l.point.label}: ${this._formatValue(l.point.value)}`;
1072
- return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${l.index}" data-active="${S ? "true" : "false"}" style="--x:${v};--y:${f};" aria-label="${c(h)}" ${this._isInteractive() ? "" : "disabled"}></button>`;
1077
+ const b = M(l.x / 64 * 100, 0, 100).toFixed(3), f = M(l.y / 64 * 100, 0, 100).toFixed(3), S = e === l.index, h = `${l.point.label}: ${this._formatValue(l.point.value)}`;
1078
+ return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${l.index}" data-active="${S ? "true" : "false"}" style="--x:${b};--y:${f};" aria-label="${c(h)}" ${this._isInteractive() ? "" : "disabled"}></button>`;
1073
1079
  }).join("");
1074
1080
  return {
1075
1081
  svg: `
1076
1082
  <svg class="plot" part="plot" viewBox="0 0 64 64" width="100%" height="100%" role="img" aria-label="${c(this._ariaLabel())}" preserveAspectRatio="xMidYMid meet">
1077
1083
  ${w}
1078
- ${b}
1084
+ ${v}
1079
1085
  <path d="${P}" fill="color-mix(in srgb, var(--ui-chart-accent) 16%, transparent)" stroke="var(--ui-chart-accent)" stroke-width="1.2" />
1080
1086
  ${y}
1081
1087
  </svg>
@@ -1089,32 +1095,32 @@ class it extends Y {
1089
1095
  };
1090
1096
  }
1091
1097
  _plotDonut(t, e) {
1092
- const a = t.reduce((w, b) => w + Math.max(0, b.value), 0), r = Math.max(1, a), i = 18, o = 7, s = 32, n = 32, d = 2 * Math.PI * i;
1093
- let u = 0;
1094
- const T = t.map((w, b) => {
1095
- const l = Math.max(0, w.value) / r * d, v = this._pointTone(w, b), f = e === b, S = e == null || f ? "1" : "0.7", h = `
1098
+ const a = t.reduce((w, v) => w + Math.max(0, v.value), 0), r = Math.max(1, a), i = 18, o = 7, s = 32, n = 32, u = 2 * Math.PI * i;
1099
+ let d = 0;
1100
+ const T = t.map((w, v) => {
1101
+ const l = Math.max(0, w.value) / r * u, b = this._pointTone(w, v), f = e === v, S = e == null || f ? "1" : "0.7", h = `
1096
1102
  <circle
1097
1103
  cx="${s}"
1098
1104
  cy="${n}"
1099
1105
  r="${i}"
1100
1106
  fill="none"
1101
- stroke="${c(v)}"
1107
+ stroke="${c(b)}"
1102
1108
  stroke-width="${f ? o + 0.8 : o}"
1103
- stroke-dasharray="${l.toFixed(3)} ${(d - l).toFixed(3)}"
1104
- stroke-dashoffset="${(-u).toFixed(3)}"
1109
+ stroke-dasharray="${l.toFixed(3)} ${(u - l).toFixed(3)}"
1110
+ stroke-dashoffset="${(-d).toFixed(3)}"
1105
1111
  transform="rotate(-90 ${s} ${n})"
1106
1112
  stroke-linecap="round"
1107
1113
  opacity="${S}"
1108
1114
  />
1109
1115
  `;
1110
- return u += l, h;
1116
+ return d += l, h;
1111
1117
  }).join("");
1112
1118
  let $ = 0;
1113
- const P = t.map((w, b) => {
1114
- const y = Math.max(0, w.value), l = y / r * Math.PI * 2, v = -Math.PI / 2 + $ + l / 2, f = s + Math.cos(v) * (i + 6), S = n + Math.sin(v) * (i + 6);
1119
+ const P = t.map((w, v) => {
1120
+ const y = Math.max(0, w.value), l = y / r * Math.PI * 2, b = -Math.PI / 2 + $ + l / 2, f = s + Math.cos(b) * (i + 6), S = n + Math.sin(b) * (i + 6);
1115
1121
  $ += l;
1116
- const h = M(f / 64 * 100, 0, 100).toFixed(3), k = M(S / 64 * 100, 0, 100).toFixed(3), L = e === b, j = r > 0 ? y / r * 100 : 0, E = `${w.label}: ${this._formatValue(w.value)} (${this._formatValue(j, { maximumFractionDigits: 1 })}%)`;
1117
- return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${b}" data-active="${L ? "true" : "false"}" style="--x:${h};--y:${k};" aria-label="${c(E)}" ${this._isInteractive() ? "" : "disabled"}></button>`;
1122
+ const h = M(f / 64 * 100, 0, 100).toFixed(3), k = M(S / 64 * 100, 0, 100).toFixed(3), L = e === v, j = r > 0 ? y / r * 100 : 0, E = `${w.label}: ${this._formatValue(w.value)} (${this._formatValue(j, { maximumFractionDigits: 1 })}%)`;
1123
+ return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${v}" data-active="${L ? "true" : "false"}" style="--x:${h};--y:${k};" aria-label="${c(E)}" ${this._isInteractive() ? "" : "disabled"}></button>`;
1118
1124
  }).join("");
1119
1125
  return {
1120
1126
  svg: `
@@ -1126,11 +1132,11 @@ class it extends Y {
1126
1132
  </svg>
1127
1133
  `,
1128
1134
  hits: P,
1129
- anchors: t.map((w, b) => {
1135
+ anchors: t.map((w, v) => {
1130
1136
  let y = 0;
1131
- for (let F = 0; F <= b; F += 1) {
1137
+ for (let F = 0; F <= v; F += 1) {
1132
1138
  const f = Math.max(0, t[F].value) / r * Math.PI * 2;
1133
- if (F === b) {
1139
+ if (F === v) {
1134
1140
  const S = -Math.PI / 2 + y + f / 2, h = s + Math.cos(S) * (i + 6), k = n + Math.sin(S) * (i + 6);
1135
1141
  return {
1136
1142
  xPct: M(h / 64 * 100, 0, 100),
@@ -1188,11 +1194,11 @@ class it extends Y {
1188
1194
  if (!e) return "";
1189
1195
  const a = this._activeIndex;
1190
1196
  if (a == null || !t.labels[a]) {
1191
- const s = this._resolveStats(e.data), n = s.delta > 0 ? "up" : s.delta < 0 ? "down" : "flat", d = `${s.delta >= 0 ? "+" : ""}${this._formatValue(s.delta)}${s.deltaPct == null ? "" : ` (${s.deltaPct >= 0 ? "+" : ""}${this._formatValue(s.deltaPct, { maximumFractionDigits: 1 })}%)`}`;
1197
+ const s = this._resolveStats(e.data), n = s.delta > 0 ? "up" : s.delta < 0 ? "down" : "flat", u = `${s.delta >= 0 ? "+" : ""}${this._formatValue(s.delta)}${s.deltaPct == null ? "" : ` (${s.deltaPct >= 0 ? "+" : ""}${this._formatValue(s.deltaPct, { maximumFractionDigits: 1 })}%)`}`;
1192
1198
  return `
1193
1199
  <div class="insight" part="insight">
1194
1200
  <span>Range <strong>${this._formatValue(s.min)}</strong> to <strong>${this._formatValue(s.max)}</strong></span>
1195
- <strong data-tone="${n}">${c(d)}</strong>
1201
+ <strong data-tone="${n}">${c(u)}</strong>
1196
1202
  </div>
1197
1203
  `;
1198
1204
  }
@@ -1205,7 +1211,7 @@ class it extends Y {
1205
1211
  `;
1206
1212
  }
1207
1213
  render() {
1208
- const t = this._data(), e = this._primarySeries(t), a = this._type(), r = this._state(), i = this._isDisabled(), o = this._isInteractive(), s = (this.getAttribute("title") || "").trim(), n = (this.getAttribute("subtitle") || "").trim(), d = this._showLegend(), u = this._showSummary(), T = this._hasToolbarSlot(), $ = this._hasSlot("title"), P = this._hasSlot("subtitle"), w = $ || P || !!s || !!n || r !== "idle";
1214
+ const t = this._data(), e = this._primarySeries(t), a = this._type(), r = this._state(), i = this._isDisabled(), o = this._isInteractive(), s = (this.getAttribute("title") || "").trim(), n = (this.getAttribute("subtitle") || "").trim(), u = this._showLegend(), d = this._showSummary(), T = this._hasToolbarSlot(), $ = this._hasSlot("title"), P = this._hasSlot("subtitle"), w = $ || P || !!s || !!n || r !== "idle";
1209
1215
  if (!e || !t.labels.length) {
1210
1216
  const h = r === "error" ? "Chart data failed to load" : "No series data available";
1211
1217
  this.setContent(`
@@ -1227,7 +1233,7 @@ class it extends Y {
1227
1233
  return;
1228
1234
  }
1229
1235
  this._activeIndex != null && (this._activeIndex < 0 || this._activeIndex >= t.labels.length) && (this._activeIndex = null, this._activePinned = !1);
1230
- const b = this._resolveStats(e.data), y = this._plot(t, a, this._activeIndex), F = this._axisXLabels(t.labels), l = t.series.length > 1 ? t.series.map(
1236
+ const v = this._resolveStats(e.data), y = this._plot(t, a, this._activeIndex), F = this._axisXLabels(t.labels), l = t.series.length > 1 ? t.series.map(
1231
1237
  (h, k) => `
1232
1238
  <div class="legend-item" aria-label="${c(h.name)}">
1233
1239
  <span class="legend-dot" style="--dot:${c(this._seriesTone(h, k))};"></span>
@@ -1250,7 +1256,7 @@ class it extends Y {
1250
1256
  <span>${c(h.label)}</span>
1251
1257
  </button>
1252
1258
  `;
1253
- }).join(""), v = b.delta > 0 ? "up" : b.delta < 0 ? "down" : "flat", f = `${b.delta >= 0 ? "+" : ""}${this._formatValue(b.delta)}`, S = r === "error" ? '<div class="message" part="message" data-tone="error">Data source returned partial metrics. Review upstream mapping.</div>' : r === "success" ? '<div class="message" part="message" data-tone="success">Data pipeline healthy. All metrics are up to date.</div>' : "";
1259
+ }).join(""), b = v.delta > 0 ? "up" : v.delta < 0 ? "down" : "flat", f = `${v.delta >= 0 ? "+" : ""}${this._formatValue(v.delta)}`, S = r === "error" ? '<div class="message" part="message" data-tone="error">Data source returned partial metrics. Review upstream mapping.</div>' : r === "success" ? '<div class="message" part="message" data-tone="success">Data pipeline healthy. All metrics are up to date.</div>' : "";
1254
1260
  this.setContent(`
1255
1261
  <style>${Z}</style>
1256
1262
  <section
@@ -1274,23 +1280,23 @@ class it extends Y {
1274
1280
  <span class="status-pill" data-state="${r}">${K(r)}</span>
1275
1281
  </header>
1276
1282
 
1277
- ${u ? `
1283
+ ${d ? `
1278
1284
  <section class="summary" part="summary">
1279
1285
  <div class="metric" part="metric">
1280
1286
  <span class="metric-label">Total</span>
1281
- <span class="metric-value">${c(this._formatValue(b.total))}</span>
1287
+ <span class="metric-value">${c(this._formatValue(v.total))}</span>
1282
1288
  </div>
1283
1289
  <div class="metric" part="metric">
1284
1290
  <span class="metric-label">Average</span>
1285
- <span class="metric-value">${c(this._formatValue(b.average))}</span>
1291
+ <span class="metric-value">${c(this._formatValue(v.average))}</span>
1286
1292
  </div>
1287
1293
  <div class="metric" part="metric">
1288
1294
  <span class="metric-label">Peak</span>
1289
- <span class="metric-value">${c(this._formatValue(b.max))}</span>
1295
+ <span class="metric-value">${c(this._formatValue(v.max))}</span>
1290
1296
  </div>
1291
1297
  <div class="metric" part="metric">
1292
1298
  <span class="metric-label">Delta</span>
1293
- <span class="metric-value" data-tone="${v}">${c(f)}</span>
1299
+ <span class="metric-value" data-tone="${b}">${c(f)}</span>
1294
1300
  </div>
1295
1301
  </section>
1296
1302
  ` : ""}
@@ -1320,7 +1326,7 @@ class it extends Y {
1320
1326
 
1321
1327
  ${this._activeInsight(t)}
1322
1328
 
1323
- ${d ? `<section class="legend" part="legend">${l}</section>` : ""}
1329
+ ${u ? `<section class="legend" part="legend">${l}</section>` : ""}
1324
1330
 
1325
1331
  ${t.truncated > 0 ? `<div class="message" part="message">Showing last ${t.truncated + t.labels.length} records (truncated to ${V}).</div>` : ""}
1326
1332
 
@@ -1,22 +1,22 @@
1
1
  "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("./ElementBase-DxbvhLJs.js"),n=`
2
2
  :host {
3
- --ui-checkbox-size: 18px;
3
+ --ui-checkbox-size: 16px;
4
4
  --ui-checkbox-hit-area: 24px;
5
- --ui-checkbox-radius: 4px;
6
- --ui-checkbox-border: 1.5px solid color-mix(in srgb, var(--ui-primary, var(--ui-color-primary, #2563eb)) 44%, var(--ui-color-border, #cbd5e1) 56%);
7
- --ui-checkbox-background: var(--ui-bg, var(--ui-color-surface, #ffffff));
8
- --ui-checkbox-check-color: #ffffff;
5
+ --ui-checkbox-radius: calc(var(--ui-radius, 6px) - 2px);
6
+ --ui-checkbox-border: 1px solid var(--ui-color-line-strong, var(--ui-color-border, #cbd5e1));
7
+ --ui-checkbox-background: var(--ui-bg, var(--color-panel-solid, var(--ui-color-surface, #ffffff)));
8
+ --ui-checkbox-check-color: var(--ui-color-foreground-on-primary, #ffffff);
9
9
  --ui-checkbox-checked-background: var(--ui-primary, var(--ui-color-primary, #2563eb));
10
- --ui-checkbox-checked-border: var(--ui-checkbox-border);
11
- --ui-checkbox-indeterminate-bg: #d97706;
12
- --ui-checkbox-indeterminate-border: 1.5px solid color-mix(in srgb, #d97706 72%, #78350f 28%);
13
- --ui-checkbox-invalid-border: 1.5px solid var(--ui-color-danger, #dc2626);
14
- --ui-checkbox-invalid-focus: 0 0 0 4px color-mix(in srgb, var(--ui-color-danger, #dc2626) 24%, transparent);
15
- --ui-checkbox-focus: 0 0 0 4px color-mix(in srgb, var(--ui-color-focus-ring, #2563eb) 26%, transparent);
10
+ --ui-checkbox-checked-border: 1px solid var(--ui-checkbox-checked-background);
11
+ --ui-checkbox-indeterminate-bg: var(--ui-checkbox-checked-background);
12
+ --ui-checkbox-indeterminate-border: 1px solid var(--ui-checkbox-checked-background);
13
+ --ui-checkbox-invalid-border: 1px solid var(--ui-color-danger, #dc2626);
14
+ --ui-checkbox-invalid-focus: 0 0 0 2px var(--ui-color-background, #ffffff), 0 0 0 4px var(--ui-color-danger, #dc2626);
15
+ --ui-checkbox-focus: 0 0 0 2px var(--ui-color-background, #ffffff), 0 0 0 4px var(--ui-ring-color, var(--ui-color-focus-ring, #2563eb));
16
16
  --ui-checkbox-shadow: none;
17
17
  --ui-checkbox-shadow-checked: none;
18
18
  --ui-checkbox-disabled-bg: color-mix(in srgb, var(--ui-color-surface-alt, #f1f5f9) 88%, #ffffff 12%);
19
- --ui-checkbox-disabled-border: 1.5px solid color-mix(in srgb, var(--ui-color-border, #cbd5e1) 78%, transparent);
19
+ --ui-checkbox-disabled-border: 1px solid var(--ui-color-line, var(--ui-color-border, #cbd5e1));
20
20
  --ui-checkbox-label-color: var(--ui-color-text, var(--ui-text, #0f172a));
21
21
  --ui-checkbox-muted: var(--ui-color-muted, #526175);
22
22
  --ui-checkbox-duration: 170ms;
@@ -208,9 +208,13 @@
208
208
  box-shadow: var(--ui-checkbox-focus);
209
209
  }
210
210
 
211
- :host(:not([disabled]):not([loading]):hover) .control {
212
- transform: translateY(-0.5px);
213
- border-color: color-mix(in srgb, var(--ui-primary, var(--ui-color-primary, #2563eb)) 80%, #0f172a 20%);
211
+ :host(:not([disabled]):not([loading]):not([checked]):not([indeterminate]):hover) .control {
212
+ border-color: var(--ui-color-text-secondary, #64748b);
213
+ }
214
+
215
+ :host(:not([disabled]):not([loading])[checked]:hover) .control,
216
+ :host(:not([disabled]):not([loading])[indeterminate]:hover) .control {
217
+ background: color-mix(in srgb, var(--ui-checkbox-checked-background) 88%, var(--ui-color-text-strong, #0f172a));
214
218
  }
215
219
 
216
220
  :host(:not([disabled]):not([loading]):active) .control {