@aceshooting/lyra-ui 32.0.0 → 33.0.0

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 (468) hide show
  1. package/CHANGELOG.md +224 -1380
  2. package/README.md +36 -7
  3. package/custom-elements.slim.json +1 -0
  4. package/design-tokens.json +1 -1
  5. package/dist/accent-roles.css +1 -0
  6. package/dist/all.d.ts +1 -1
  7. package/dist/all.js +1 -1
  8. package/dist/autoloader.d.ts +10 -0
  9. package/dist/autoloader.js +1 -1
  10. package/dist/cli/migrate-wa.mjs +54 -44
  11. package/dist/cli/migration-contract.json.gz +0 -0
  12. package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +1 -0
  13. package/dist/components/agent-tools/budget-meter/budget-meter.styles.js +1 -1
  14. package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +1 -1
  15. package/dist/components/charts/chart/box-plot.class.d.ts +3 -0
  16. package/dist/components/charts/chart/chart-band.js +1 -1
  17. package/dist/components/charts/chart/chart-input-projection.js +1 -1
  18. package/dist/components/charts/chart/chart-surface.styles.js +1 -1
  19. package/dist/components/charts/chart/chart-types.d.ts +16 -2
  20. package/dist/components/charts/chart/chart.class.d.ts +4 -1
  21. package/dist/components/charts/chart/chart.class.js +3 -3
  22. package/dist/components/charts/chart/lite-chart.class.d.ts +3 -0
  23. package/dist/components/charts/chart/lite-chart.styles.js +1 -1
  24. package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -0
  25. package/dist/components/conversation/code-block/code-block-base.class.d.ts +31 -3
  26. package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
  27. package/dist/components/conversation/code-block/code-block-core.class.d.ts +46 -2
  28. package/dist/components/conversation/code-block/code-block-core.class.js +1 -1
  29. package/dist/components/conversation/code-block/code-block-shared.d.ts +6 -2
  30. package/dist/components/conversation/code-block/code-block-shared.js +5 -4
  31. package/dist/components/conversation/code-block/code-block.class.d.ts +48 -3
  32. package/dist/components/conversation/code-block/code-block.class.js +1 -1
  33. package/dist/components/conversation/code-block/code-block.styles.js +1 -1
  34. package/dist/components/conversation/code-block/code-grammar-registry.d.ts +35 -0
  35. package/dist/components/conversation/code-block/code-grammar-registry.js +1 -0
  36. package/dist/components/conversation/markdown/markdown-core.class.d.ts +12 -0
  37. package/dist/components/conversation/markdown/markdown.class.d.ts +12 -0
  38. package/dist/components/conversation/markdown/markdown.styles.js +1 -1
  39. package/dist/components/conversation/model-select/model-select.class.d.ts +12 -5
  40. package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
  41. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +1 -0
  42. package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
  43. package/dist/components/conversation/thread-list/thread-list.class.d.ts +3 -0
  44. package/dist/components/conversation/thread-list/thread-list.styles.js +1 -1
  45. package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +1 -1
  46. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +12 -5
  47. package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +4 -0
  48. package/dist/components/data/heatmap/heatmap.class.d.ts +21 -2
  49. package/dist/components/data/heatmap/heatmap.class.js +2 -2
  50. package/dist/components/data/heatmap/heatmap.styles.js +1 -1
  51. package/dist/components/data/stat/stat.class.d.ts +24 -1
  52. package/dist/components/data/stat/stat.class.js +2 -2
  53. package/dist/components/data/stat/stat.styles.js +1 -1
  54. package/dist/components/data/table/table-row-attributes.js +1 -0
  55. package/dist/components/data/table/table-support.d.ts +64 -5
  56. package/dist/components/data/table/table-support.js +1 -1
  57. package/dist/components/data/table/table.class.d.ts +78 -7
  58. package/dist/components/data/table/table.class.js +10 -10
  59. package/dist/components/data/table/table.styles.js +1 -1
  60. package/dist/components/data/timeline/timeline-item.class.d.ts +27 -5
  61. package/dist/components/data/timeline/timeline-item.class.js +11 -7
  62. package/dist/components/data/timeline/timeline-item.styles.js +1 -1
  63. package/dist/components/data/timeline/timeline.class.d.ts +54 -8
  64. package/dist/components/data/timeline/timeline.class.js +11 -7
  65. package/dist/components/data/timeline/timeline.styles.js +1 -1
  66. package/dist/components/data/tree/tree-item.class.d.ts +2 -0
  67. package/dist/components/data/tree/tree-item.class.js +2 -2
  68. package/dist/components/data/tree/tree-item.styles.js +1 -1
  69. package/dist/components/forms/button/button.class.d.ts +13 -0
  70. package/dist/components/forms/button/button.styles.js +1 -1
  71. package/dist/components/forms/catalog-picker-base.d.ts +14 -1
  72. package/dist/components/forms/checkbox/checkbox.class.js +1 -1
  73. package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +28 -2
  74. package/dist/components/forms/checkbox-group/checkbox-group.class.js +3 -3
  75. package/dist/components/forms/checkbox-group/checkbox-group.styles.js +1 -1
  76. package/dist/components/forms/code-editor/code-editor.class.d.ts +18 -3
  77. package/dist/components/forms/code-editor/code-editor.styles.js +1 -1
  78. package/dist/components/forms/color-picker/color-picker.class.d.ts +25 -5
  79. package/dist/components/forms/color-picker/color-picker.class.js +3 -3
  80. package/dist/components/forms/color-picker/color-picker.styles.js +1 -1
  81. package/dist/components/forms/combobox/combobox-option-html.js +1 -0
  82. package/dist/components/forms/combobox/combobox.class.d.ts +140 -12
  83. package/dist/components/forms/combobox/combobox.class.js +113 -22
  84. package/dist/components/forms/combobox/combobox.styles.js +1 -1
  85. package/dist/components/forms/country-picker/country-picker.class.d.ts +4 -3
  86. package/dist/components/forms/currency-picker/currency-picker.class.d.ts +4 -3
  87. package/dist/components/forms/date-picker/date-input.class.d.ts +53 -3
  88. package/dist/components/forms/date-picker/date-input.class.js +2 -2
  89. package/dist/components/forms/date-picker/date-input.styles.js +1 -1
  90. package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +14 -0
  91. package/dist/components/forms/emoji-picker/emoji-picker.class.js +1 -1
  92. package/dist/components/forms/icon-button/icon-button.class.d.ts +2 -1
  93. package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
  94. package/dist/components/forms/input/input-shared.d.ts +24 -3
  95. package/dist/components/forms/input/input.styles.js +1 -1
  96. package/dist/components/forms/input/time-input.class.d.ts +19 -4
  97. package/dist/components/forms/input/time-input.styles.js +1 -1
  98. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +17 -5
  99. package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
  100. package/dist/components/forms/otp-input/otp-input.class.d.ts +8 -3
  101. package/dist/components/forms/otp-input/otp-input.styles.js +1 -1
  102. package/dist/components/forms/phone-input/phone-input.class.d.ts +18 -3
  103. package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
  104. package/dist/components/forms/radio/radio-group.class.d.ts +23 -2
  105. package/dist/components/forms/radio/radio-group.class.js +2 -2
  106. package/dist/components/forms/radio/radio-group.styles.js +1 -1
  107. package/dist/components/forms/radio/radio.class.js +2 -2
  108. package/dist/components/forms/rubric-form/rubric-form.class.d.ts +4 -0
  109. package/dist/components/forms/select/select.class.d.ts +16 -4
  110. package/dist/components/forms/select/select.class.js +1 -1
  111. package/dist/components/forms/select/select.styles.js +1 -1
  112. package/dist/components/forms/signature-pad/signature-pad.class.d.ts +8 -3
  113. package/dist/components/forms/signature-pad/signature-pad.styles.js +1 -1
  114. package/dist/components/forms/slider/slider.class.d.ts +29 -2
  115. package/dist/components/forms/slider/slider.class.js +3 -3
  116. package/dist/components/forms/slider/slider.styles.js +1 -1
  117. package/dist/components/forms/switch/switch.class.d.ts +2 -0
  118. package/dist/components/forms/switch/switch.styles.js +1 -1
  119. package/dist/components/forms/textarea/textarea.class.d.ts +20 -3
  120. package/dist/components/forms/textarea/textarea.styles.js +1 -1
  121. package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +4 -3
  122. package/dist/components/forms/token-input/token-input.class.d.ts +99 -21
  123. package/dist/components/forms/token-input/token-input.class.js +11 -8
  124. package/dist/components/forms/token-input/token-input.styles.js +1 -1
  125. package/dist/components/forms/unit-picker/unit-picker.class.d.ts +4 -3
  126. package/dist/components/layout/app-rail/app-rail.class.d.ts +3 -0
  127. package/dist/components/layout/app-rail/app-rail.styles.js +1 -1
  128. package/dist/components/layout/button-group/button-group.class.d.ts +4 -0
  129. package/dist/components/layout/button-group/button-group.class.js +1 -1
  130. package/dist/components/layout/card/card.class.d.ts +15 -1
  131. package/dist/components/layout/card/card.styles.js +1 -1
  132. package/dist/components/layout/command-palette/command-palette.class.d.ts +1 -1
  133. package/dist/components/layout/details/details.class.d.ts +6 -0
  134. package/dist/components/layout/details/details.styles.js +1 -1
  135. package/dist/components/layout/filter-bar/filter-bar.class.d.ts +6 -0
  136. package/dist/components/layout/filter-bar/filter-bar.styles.js +1 -1
  137. package/dist/components/layout/index.d.ts +1 -1
  138. package/dist/components/layout/index.js +1 -1
  139. package/dist/components/layout/menu/dropdown-item.class.d.ts +8 -2
  140. package/dist/components/layout/menu/dropdown-item.class.js +1 -1
  141. package/dist/components/layout/menu/menu-item.class.d.ts +7 -0
  142. package/dist/components/layout/menu/menu-item.styles.js +1 -1
  143. package/dist/components/layout/menu/menu-label.class.d.ts +5 -0
  144. package/dist/components/layout/menu/menu-label.class.js +1 -1
  145. package/dist/components/layout/menu/menu.class.d.ts +4 -1
  146. package/dist/components/layout/menu/menu.styles.js +1 -1
  147. package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +1 -1
  148. package/dist/components/layout/page/page.class.d.ts +9 -1
  149. package/dist/components/layout/page/page.class.js +2 -2
  150. package/dist/components/layout/segmented/segmented.class.d.ts +22 -3
  151. package/dist/components/layout/segmented/segmented.class.js +3 -4
  152. package/dist/components/layout/segmented/segmented.styles.js +1 -1
  153. package/dist/components/layout/stepper/step.class.d.ts +102 -0
  154. package/dist/components/layout/stepper/step.class.js +18 -0
  155. package/dist/components/layout/stepper/step.styles.js +1 -0
  156. package/dist/components/layout/stepper/stepper.class.d.ts +106 -13
  157. package/dist/components/layout/stepper/stepper.class.js +6 -2
  158. package/dist/components/layout/stepper/stepper.styles.js +1 -1
  159. package/dist/components/layout/tab-group/tab-group.class.d.ts +10 -1
  160. package/dist/components/layout/tab-group/tab-group.class.js +1 -1
  161. package/dist/components/layout/tab-group/tab-group.styles.js +1 -1
  162. package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -0
  163. package/dist/components/layout/tab-group/tab-panel.class.js +1 -1
  164. package/dist/components/layout/tab-group/tab.class.d.ts +4 -0
  165. package/dist/components/layout/widget/widget.class.d.ts +1 -0
  166. package/dist/components/layout/widget/widget.styles.js +1 -1
  167. package/dist/components/lr-code-block-core.d.ts +1 -1
  168. package/dist/components/lr-code-block.d.ts +1 -1
  169. package/dist/components/lr-counter.d.ts +1 -0
  170. package/dist/components/lr-counter.js +1 -0
  171. package/dist/components/lr-lightbox-item.d.ts +1 -0
  172. package/dist/components/lr-lightbox-item.js +1 -0
  173. package/dist/components/lr-lightbox.d.ts +1 -1
  174. package/dist/components/lr-lightbox.js +1 -1
  175. package/dist/components/lr-number-ticker.d.ts +1 -0
  176. package/dist/components/lr-number-ticker.js +1 -0
  177. package/dist/components/lr-step.d.ts +1 -0
  178. package/dist/components/lr-step.js +1 -0
  179. package/dist/components/media/file-input/file-input.class.d.ts +8 -1
  180. package/dist/components/media/file-input/file-input.class.js +2 -2
  181. package/dist/components/media/file-input/file-input.styles.js +1 -1
  182. package/dist/components/media/index.d.ts +1 -1
  183. package/dist/components/media/index.js +1 -1
  184. package/dist/components/media/lightbox/lightbox-item.class.d.ts +67 -0
  185. package/dist/components/media/lightbox/lightbox-item.class.js +9 -0
  186. package/dist/components/media/lightbox/lightbox-item.styles.js +1 -0
  187. package/dist/components/media/lightbox/lightbox-source.js +1 -1
  188. package/dist/components/media/lightbox/lightbox-types.d.ts +4 -1
  189. package/dist/components/media/lightbox/lightbox.class.d.ts +123 -30
  190. package/dist/components/media/lightbox/lightbox.class.js +18 -12
  191. package/dist/components/media/lightbox/lightbox.styles.js +1 -1
  192. package/dist/components/media/map/map-anchor-avoid.js +1 -1
  193. package/dist/components/media/map/map-drawing-controller.js +1 -1
  194. package/dist/components/media/map/map.class.d.ts +137 -7
  195. package/dist/components/media/map/map.class.js +6 -6
  196. package/dist/components/media/map/map.styles.js +1 -1
  197. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +9 -0
  198. package/dist/components/media/sequence-playback/sequence-playback.class.js +2 -2
  199. package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
  200. package/dist/components/media/video/video.class.d.ts +4 -0
  201. package/dist/components/media/video/video.class.js +2 -2
  202. package/dist/components/media/video/video.styles.js +1 -1
  203. package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -0
  204. package/dist/components/media/zoomable-frame/zoomable-frame.class.js +2 -2
  205. package/dist/components/overlays/badge/badge.class.d.ts +2 -0
  206. package/dist/components/overlays/badge/badge.styles.js +1 -1
  207. package/dist/components/overlays/badge/tag.class.d.ts +2 -0
  208. package/dist/components/overlays/badge/tag.class.js +1 -1
  209. package/dist/components/overlays/chip/chip-group.class.d.ts +31 -4
  210. package/dist/components/overlays/chip/chip-group.class.js +3 -3
  211. package/dist/components/overlays/context-menu/context-menu.class.d.ts +6 -1
  212. package/dist/components/overlays/context-menu/context-menu.class.js +1 -1
  213. package/dist/components/overlays/dialog/dialog.class.d.ts +54 -6
  214. package/dist/components/overlays/dialog/dialog.class.js +3 -3
  215. package/dist/components/overlays/dialog/dialog.styles.js +1 -1
  216. package/dist/components/overlays/dialog/prompt.d.ts +60 -0
  217. package/dist/components/overlays/dialog/prompt.js +1 -0
  218. package/dist/components/overlays/drawer/drawer.class.d.ts +22 -1
  219. package/dist/components/overlays/drawer/drawer.class.js +1 -1
  220. package/dist/components/overlays/empty/empty.class.d.ts +1 -0
  221. package/dist/components/overlays/empty/empty.class.js +1 -1
  222. package/dist/components/overlays/overlay/dropdown.class.d.ts +5 -1
  223. package/dist/components/overlays/overlay/dropdown.class.js +1 -1
  224. package/dist/components/overlays/overlay/overlay.styles.js +1 -1
  225. package/dist/components/overlays/overlay/popover.class.d.ts +30 -4
  226. package/dist/components/overlays/overlay/popover.class.js +2 -2
  227. package/dist/components/overlays/overlay/tooltip.class.d.ts +7 -0
  228. package/dist/components/overlays/overlay/tooltip.class.js +4 -4
  229. package/dist/components/overlays/toast/toast-item.class.d.ts +3 -2
  230. package/dist/components/overlays/toast/toast-item.class.js +1 -1
  231. package/dist/components/overlays/toast/toast-item.styles.js +1 -1
  232. package/dist/components/overlays/toast/toast.class.d.ts +6 -0
  233. package/dist/components/overlays/toast/toast.class.js +1 -1
  234. package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
  235. package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +1 -1
  236. package/dist/components/utility/copy-button/copy-button.class.d.ts +4 -1
  237. package/dist/components/utility/copy-button/copy-button.class.js +2 -2
  238. package/dist/components/utility/counter/counter-time.d.ts +15 -0
  239. package/dist/components/utility/counter/counter-time.js +1 -0
  240. package/dist/components/utility/counter/counter.class.d.ts +67 -0
  241. package/dist/components/utility/counter/counter.class.js +1 -0
  242. package/dist/components/utility/counter/counter.styles.js +1 -0
  243. package/dist/components/utility/divider/divider.class.d.ts +21 -3
  244. package/dist/components/utility/divider/divider.class.js +5 -1
  245. package/dist/components/utility/export-button/export-button.class.d.ts +6 -1
  246. package/dist/components/utility/export-button/export-button.styles.js +1 -1
  247. package/dist/components/utility/icon/icon-library-bootstrap.d.ts +50 -0
  248. package/dist/components/utility/icon/icon-library-bootstrap.js +1 -0
  249. package/dist/components/utility/icon/icon-library-font-awesome.d.ts +68 -0
  250. package/dist/components/utility/icon/icon-library-font-awesome.js +1 -0
  251. package/dist/components/utility/icon/icon-library.d.ts +14 -1
  252. package/dist/components/utility/icon/icon-library.js +1 -1
  253. package/dist/components/utility/icon/icon-sprite.js +1 -0
  254. package/dist/components/utility/icon/icon.class.d.ts +4 -2
  255. package/dist/components/utility/icon/icon.class.js +2 -2
  256. package/dist/components/utility/index.d.ts +1 -1
  257. package/dist/components/utility/index.js +1 -1
  258. package/dist/components/utility/known-date/known-date.class.d.ts +14 -0
  259. package/dist/components/utility/mention-popover/mention-popover.class.d.ts +1 -1
  260. package/dist/components/utility/number-ticker/number-ticker.class.d.ts +66 -0
  261. package/dist/components/utility/number-ticker/number-ticker.class.js +1 -0
  262. package/dist/components/utility/number-ticker/number-ticker.styles.js +1 -0
  263. package/dist/components/utility/tour/tour.class.d.ts +1 -1
  264. package/dist/components/viewers/include/include.class.d.ts +4 -1
  265. package/dist/components/viewers/include/include.class.js +1 -1
  266. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +10 -1
  267. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
  268. package/dist/components/viewers/pdf-viewer/pdf-viewer.styles.js +1 -1
  269. package/dist/custom-elements-jsx.d.ts +1 -1
  270. package/dist/event-classes.d.ts +2342 -0
  271. package/dist/event-classes.js +1 -0
  272. package/dist/events.d.ts +48 -22
  273. package/dist/framework-types.d.ts +2 -2
  274. package/dist/internal/accessibility-visibility.js +1 -1
  275. package/dist/internal/all-defined-arguments.d.ts +19 -0
  276. package/dist/internal/all-defined-arguments.js +1 -0
  277. package/dist/internal/autoloader-manifest.js +1 -1
  278. package/dist/internal/autoloader-tags.d.ts +1 -1
  279. package/dist/internal/autoloader-tags.js +1 -1
  280. package/dist/internal/checked-control-label.js +1 -1
  281. package/dist/internal/component-loaders.generated.js +1 -1
  282. package/dist/internal/declarative-overlay-action.js +1 -0
  283. package/dist/internal/dedent.js +7 -0
  284. package/dist/internal/default-strings/forms.generated.js +1 -1
  285. package/dist/internal/default-strings/layout.generated.js +1 -1
  286. package/dist/internal/dev-mode-attribute-warning.development.js +1 -1
  287. package/dist/internal/document-token-css.generated.js +10 -0
  288. package/dist/internal/document-tokens.generated.js +2 -11
  289. package/dist/internal/document-tokens.js +2 -2
  290. package/dist/internal/dom-guards.js +1 -1
  291. package/dist/internal/external-label-association.js +1 -0
  292. package/dist/internal/focus-navigation.js +1 -1
  293. package/dist/internal/form-control/chrome.styles.js +1 -1
  294. package/dist/internal/form-control-labels.js +1 -1
  295. package/dist/internal/form-control.styles.js +1 -1
  296. package/dist/internal/interactive-control.styles.js +2 -2
  297. package/dist/internal/labeled-group.js +1 -1
  298. package/dist/internal/localization-runtime.d.ts +5 -0
  299. package/dist/internal/localization-runtime.js +1 -1
  300. package/dist/internal/localization-types.d.ts +1 -1
  301. package/dist/internal/localization.js +2 -2
  302. package/dist/internal/lyra-element.d.ts +11 -2
  303. package/dist/internal/lyra-element.js +2 -2
  304. package/dist/internal/lyra-event.d.ts +22 -0
  305. package/dist/internal/lyra-event.js +1 -0
  306. package/dist/internal/overlay-shared.d.ts +5 -2
  307. package/dist/internal/overlay-shared.js +1 -1
  308. package/dist/internal/package-metadata.js +1 -1
  309. package/dist/internal/root-registration-allowlist.js +1 -1
  310. package/dist/internal/scoped-definitions.generated.js +1 -1
  311. package/dist/internal/shiki/core.d.ts +4 -1
  312. package/dist/internal/shiki/tokenize.js +1 -1
  313. package/dist/internal/srcset.js +1 -0
  314. package/dist/internal/theme-observation.js +1 -1
  315. package/dist/lyra.d.ts +1 -1
  316. package/dist/lyra.js +1 -1
  317. package/dist/ssr/all.d.ts +1 -1
  318. package/dist/ssr/all.js +1 -1
  319. package/dist/ssr.d.ts +5 -5
  320. package/dist/ssr.js +1 -1
  321. package/dist/styles/native.css +1 -1
  322. package/dist/styles/palette.css +1 -0
  323. package/dist/styles/tokens-root.css +1 -1
  324. package/dist/styles/utilities.css +1 -1
  325. package/dist/svelte.d.ts +1 -1
  326. package/dist/testing/happy-dom-shims.d.ts +11 -2
  327. package/dist/testing/happy-dom-shims.js +1 -1
  328. package/dist/testing/index.d.ts +1 -1
  329. package/dist/testing/index.js +1 -1
  330. package/dist/testing/lyra-tag-event-map.d.ts +2 -2
  331. package/dist/testing/lyra-tag-event-map.js +1 -1
  332. package/dist/theme-core.css +1 -1
  333. package/dist/theme.css +1 -1
  334. package/dist/utilities/defined.d.ts +10 -1
  335. package/dist/utilities/defined.js +1 -1
  336. package/dist/utilities/form.d.ts +9 -0
  337. package/dist/utilities/form.js +1 -0
  338. package/dist/utilities/index.d.ts +1 -1
  339. package/dist/utilities/index.js +1 -1
  340. package/dist/vue.d.ts +1 -1
  341. package/llms/components/lr-app-rail.md +4 -2
  342. package/llms/components/lr-badge.md +4 -4
  343. package/llms/components/lr-bar-chart.md +1 -1
  344. package/llms/components/lr-box-plot.md +6 -1
  345. package/llms/components/lr-bubble-chart.md +1 -1
  346. package/llms/components/lr-budget-meter.md +2 -2
  347. package/llms/components/lr-button-group.md +7 -3
  348. package/llms/components/lr-button.md +11 -1
  349. package/llms/components/lr-card.md +11 -1
  350. package/llms/components/lr-chart.md +21 -7
  351. package/llms/components/lr-checkbox-group.md +11 -1
  352. package/llms/components/lr-chip.md +11 -1
  353. package/llms/components/lr-citation-badge.md +1 -1
  354. package/llms/components/lr-code-block-core.md +39 -9
  355. package/llms/components/lr-code-block.md +59 -6
  356. package/llms/components/lr-code-editor.md +11 -1
  357. package/llms/components/lr-color-picker.md +19 -6
  358. package/llms/components/lr-combobox.md +81 -9
  359. package/llms/components/lr-context-menu.md +6 -4
  360. package/llms/components/lr-copy-button.md +6 -4
  361. package/llms/components/lr-counter.md +60 -0
  362. package/llms/components/lr-country-picker.md +4 -0
  363. package/llms/components/lr-currency-picker.md +4 -0
  364. package/llms/components/lr-date-input.md +1 -1
  365. package/llms/components/lr-date-picker.md +25 -1
  366. package/llms/components/lr-details.md +6 -2
  367. package/llms/components/lr-dialog.md +101 -9
  368. package/llms/components/lr-divider.md +14 -5
  369. package/llms/components/lr-doughnut-chart.md +1 -1
  370. package/llms/components/lr-drawer.md +32 -7
  371. package/llms/components/lr-dropdown-item.md +1 -1
  372. package/llms/components/lr-dropdown.md +8 -4
  373. package/llms/components/lr-emoji-picker.md +10 -1
  374. package/llms/components/lr-empty.md +3 -2
  375. package/llms/components/lr-entity-chip.md +1 -1
  376. package/llms/components/lr-export-button.md +6 -3
  377. package/llms/components/lr-file-input.md +13 -1
  378. package/llms/components/lr-filter-bar.md +6 -2
  379. package/llms/components/lr-graph-query-builder.md +10 -1
  380. package/llms/components/lr-heatmap.md +20 -3
  381. package/llms/components/lr-histogram.md +7 -2
  382. package/llms/components/lr-icon-button.md +3 -1
  383. package/llms/components/lr-icon.md +104 -0
  384. package/llms/components/lr-include.md +3 -0
  385. package/llms/components/lr-input.md +9 -1
  386. package/llms/components/lr-known-date.md +10 -1
  387. package/llms/components/lr-lightbox-item.md +14 -0
  388. package/llms/components/lr-lightbox.md +119 -14
  389. package/llms/components/lr-line-chart.md +7 -2
  390. package/llms/components/lr-lite-chart.md +3 -2
  391. package/llms/components/lr-locale-picker.md +17 -1
  392. package/llms/components/lr-map.md +122 -11
  393. package/llms/components/lr-markdown-core.md +15 -4
  394. package/llms/components/lr-markdown.md +13 -4
  395. package/llms/components/lr-mention-popover.md +1 -1
  396. package/llms/components/lr-menu-item.md +1 -1
  397. package/llms/components/lr-menu-label.md +5 -2
  398. package/llms/components/lr-menu.md +22 -7
  399. package/llms/components/lr-model-select.md +13 -3
  400. package/llms/components/lr-native-time-input.md +11 -1
  401. package/llms/components/lr-number-input.md +11 -1
  402. package/llms/components/lr-number-ticker.md +60 -0
  403. package/llms/components/lr-otp-input.md +11 -1
  404. package/llms/components/lr-page.md +7 -1
  405. package/llms/components/lr-pagination.md +18 -0
  406. package/llms/components/lr-pdf-viewer.md +6 -1
  407. package/llms/components/lr-phone-input.md +11 -1
  408. package/llms/components/lr-pie-chart.md +1 -1
  409. package/llms/components/lr-polar-area-chart.md +1 -1
  410. package/llms/components/lr-popover.md +26 -6
  411. package/llms/components/lr-radar-chart.md +1 -1
  412. package/llms/components/lr-radio-group.md +11 -1
  413. package/llms/components/lr-rubric-form.md +7 -1
  414. package/llms/components/lr-scatter-chart.md +1 -1
  415. package/llms/components/lr-segmented.md +20 -2
  416. package/llms/components/lr-select.md +11 -3
  417. package/llms/components/lr-selection-toolbar.md +1 -1
  418. package/llms/components/lr-sequence-playback.md +8 -2
  419. package/llms/components/lr-signature-pad.md +8 -1
  420. package/llms/components/lr-slider.md +17 -4
  421. package/llms/components/lr-stat.md +20 -5
  422. package/llms/components/lr-step.md +67 -0
  423. package/llms/components/lr-stepper.md +64 -8
  424. package/llms/components/lr-suggestion-chips.md +3 -2
  425. package/llms/components/lr-switch.md +4 -3
  426. package/llms/components/lr-tab-group.md +10 -3
  427. package/llms/components/lr-tab-panel.md +2 -2
  428. package/llms/components/lr-table.md +87 -8
  429. package/llms/components/lr-tag.md +1 -1
  430. package/llms/components/lr-textarea.md +17 -1
  431. package/llms/components/lr-thread-list.md +4 -2
  432. package/llms/components/lr-time-input.md +9 -2
  433. package/llms/components/lr-time-zone-picker.md +4 -0
  434. package/llms/components/lr-timeline-item.md +1 -1
  435. package/llms/components/lr-timeline.md +47 -3
  436. package/llms/components/lr-toast-item.md +1 -1
  437. package/llms/components/lr-toast.md +8 -3
  438. package/llms/components/lr-token-input.md +68 -11
  439. package/llms/components/lr-tool-call-chip.md +1 -1
  440. package/llms/components/lr-tooltip.md +8 -3
  441. package/llms/components/lr-tree-item.md +1 -1
  442. package/llms/components/lr-tree.md +2 -1
  443. package/llms/components/lr-unit-picker.md +4 -0
  444. package/llms/components/lr-usage-badge.md +1 -1
  445. package/llms/components/lr-video.md +5 -4
  446. package/llms/components/lr-voice-picker.md +10 -2
  447. package/llms/components/lr-widget.md +2 -2
  448. package/llms/components/lr-zoomable-frame.md +8 -0
  449. package/llms/index.md +205 -201
  450. package/llms/migration.md +103 -16
  451. package/llms/peers.md +3 -3
  452. package/llms/shared/events-and-types.md +36 -0
  453. package/llms/shared/forms-and-accessibility.md +4 -1
  454. package/llms/shared/frameworks-and-ssr.md +10 -1
  455. package/llms/shared/imports-and-registration.md +68 -2
  456. package/llms/shared/localization-and-rtl.md +5 -0
  457. package/llms/shared/native-styles-and-utilities.md +142 -7
  458. package/llms/shared/styles-and-tokens.md +60 -6
  459. package/llms/shared/testing-and-utilities.md +30 -0
  460. package/llms/shared.md +354 -17
  461. package/llms/tokens.md +6 -1
  462. package/llms.txt +3 -3
  463. package/locales.json +1 -1
  464. package/package.json +48 -10
  465. package/registrations.json +1 -1
  466. package/skills/compose-lyra-interfaces/SKILL.md +1 -1
  467. package/skills/lyra-ui/SKILL.md +1 -1
  468. package/skills/lyra-ui/commands/migrate.md +1 -1
package/llms/shared.md CHANGED
@@ -77,13 +77,20 @@ cross-shadow-selection gap and conditions for dropping a `@supports` fallback:
77
77
  ## Importing and registering components
78
78
 
79
79
  Every component has a stable, tag-shaped side-effect entry point that registers its own tag. Use
80
- `components/<tag>.js`; this public boundary stays unchanged if the internal family folders move:
80
+ `components/<tag>.js`; this public boundary stays unchanged if the internal family folders move.
81
+ Load the token stylesheet first — `theme.css`, or `tokens-root.css` (the document token layer
82
+ alone) when the page does not use `theme.css` — with a `<link>` in `<head>` or a bundler CSS import:
81
83
 
82
84
  ```js
85
+ import "@aceshooting/lyra-ui/theme.css"; // or tokens-root.css; once per page, before any component
83
86
  import "@aceshooting/lyra-ui/components/lr-combobox.js"; // registers <lr-combobox>
84
87
  import "@aceshooting/lyra-ui/components/lr-table.js"; // registers <lr-table>
85
88
  ```
86
89
 
90
+ Without either stylesheet, the first registration loads the layer as a separate script on demand
91
+ and components hold their first render until it arrives, so a missed import still renders
92
+ correctly, one request later.
93
+
87
94
  Family barrels register their family. Registration-free `.class.js` entries retain the owning
88
95
  family/component path, exposing source organization.
89
96
 
@@ -125,7 +132,7 @@ The entry points, then:
125
132
  or future exports. Prefer the owning entry for that component's complete contract and smaller
126
133
  bundles.
127
134
 
128
- - **`all.js` compatibility entry.** `import '@aceshooting/lyra-ui/all.js';` registers the 302
135
+ - **`all.js` compatibility entry.** `import '@aceshooting/lyra-ui/all.js';` registers the 306
129
136
  root-included tags — everything **except** the 15 inventory-designated optional-peer-family tags:
130
137
  `lr-chart` and its 8 typed subclasses (`lr-line-chart`, `lr-bar-chart`, `lr-pie-chart`,
131
138
  `lr-doughnut-chart`, `lr-radar-chart`, `lr-polar-area-chart`, `lr-bubble-chart`,
@@ -277,6 +284,37 @@ exports `normalizeLyraSpanKind` and `normalizeLyraSpanStatus`; the widget regist
277
284
  only `DEFAULT_WIDGET_TYPE_REGISTRY`. Import a component registration entry separately when the page
278
285
  also renders that component.
279
286
 
287
+ ### Single script tag (no build step, no import map)
288
+
289
+ `@aceshooting/lyra-cdn` is a companion package with a pre-bundled build of the same components: lit,
290
+ tslib and Floating UI are inlined into relative, code-split chunks, so one tag is the whole install.
291
+ Only the components the page renders are fetched (the autoloader's lazy loaders become chunks).
292
+
293
+ ```html
294
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aceshooting/lyra-cdn@VERSION/dist/theme.css">
295
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aceshooting/lyra-cdn@VERSION/dist/lyra-ui.loader.js"></script>
296
+
297
+ <lr-button variant="primary">Save</lr-button>
298
+ ```
299
+
300
+ It versions together with `@aceshooting/lyra-ui`; pin an exact version in production. Also published
301
+ beside the loader: `theme.css`, `theme-core.css`, `density.css`, `accents.css`, `design-tokens.css`,
302
+ `native.css` and `utilities.css`.
303
+
304
+ - The loader starts the autoloader on `DOMContentLoaded` (immediately when the document is already
305
+ parsed) and keeps watching insertions. It injects no styles or inline script.
306
+ - Script attributes: `data-lyra-optional-peers="dompurify,postal-mime"` (or `all`),
307
+ `data-lyra-autoload-events`, the opt-out `data-lyra-autoload="false"` (alias
308
+ `data-lyra-no-autoload`), which loads the module without starting it (it re-exports `start`,
309
+ `stop` and `discover`), and `data-lyra-cloak-timeout` (milliseconds, default `2000`).
310
+ - Cloaking: elements carrying class or attribute `lr-cloak` are revealed when the first scan
311
+ settles, or when the cloak timeout elapses, whichever comes first. Pair it with `.lr-fouce-hidden`
312
+ from `utilities.css` to hide not-yet-defined tags.
313
+ - Optional peers and the non-English catalogs of `@aceshooting/lyra-translations` are not bundled.
314
+ A component that needs one takes its usual localized fallback until the dependency resolves, for
315
+ example through an import map to a CDN URL.
316
+ - Bundler users keep importing `@aceshooting/lyra-ui` itself; the CDN build ships no source maps.
317
+
280
318
  ### Optional autoloader
281
319
 
282
320
  `@aceshooting/lyra-ui/autoloader.js` exports `discover(root?, options?)`, `start(root?, options?)`
@@ -331,6 +369,34 @@ when `document` exists and reads `data-lyra-optional-peers="peer-a,peer-b"` plus
331
369
  an ESM CDN executes the package entry behind a wrapper URL. Neither entry imports the root barrel,
332
370
  and both are safe to import in plain Node.
333
371
 
372
+ ### Loading from a CDN with no build step
373
+
374
+ An import map lets plain HTML use the same bare specifiers as an application. The ESM CDN rewrites
375
+ each package's own dependencies, so map only the entries you import:
376
+
377
+ ```html
378
+ <script type="importmap">
379
+ {
380
+ "imports": {
381
+ "@aceshooting/lyra-ui/": "https://esm.sh/@aceshooting/lyra-ui@30/",
382
+ "lit": "https://esm.sh/lit@3",
383
+ "lit/": "https://esm.sh/lit@3/"
384
+ }
385
+ }
386
+ </script>
387
+ <script type="module">
388
+ import '@aceshooting/lyra-ui/autoloader-cdn.js'; // defines each lr-* tag when it first appears
389
+ import { allDefined } from '@aceshooting/lyra-ui/utilities/defined.js';
390
+ await allDefined({ timeout: 5000 }); // resolves after the page's lr-* tags are defined
391
+ </script>
392
+ <lr-button>Hello</lr-button>
393
+ ```
394
+
395
+ Pin an exact version for production, and import `components/lr-<tag>.js` instead of the autoloader
396
+ when the page uses only a few tags. Add `data-lyra-autoloader` to the autoloader `<script>` if the
397
+ CDN serves the entry behind a wrapper URL. Without an import map, use the full CDN URL in each
398
+ `import`. `startLoader`/`stopLoader` are accepted aliases of the autoloader's `start`/`stop`.
399
+
334
400
  ## Optional native scoped registries
335
401
 
336
402
  `utilities/scoped-registry.js` exports `supportsScopedRegistries()` and
@@ -482,6 +548,25 @@ Those nested detail fields are separate from deprecated event names and are not
482
548
  type graph, so add it once (a root `main.ts`, or a `.d.ts` in the project's `include`). A direct
483
549
  element reference never needs it — `LyraElement` overrides `addEventListener`, so
484
550
  `table.addEventListener('lr-sort', …)` resolves through `LyraTableEventMap` first either way.
551
+ - **`instanceof` narrowing: `@aceshooting/lyra-ui/event-classes`.** Every event a component dispatches
552
+ is a `LyraEvent` (a bubbling, composed `CustomEvent`), and this subpath exports one class per event
553
+ name — `lr-step-change` → `LyraStepChangeEvent` — whose `instanceof` is true for exactly those events
554
+ and narrows `detail`. Each constructor takes `(detail, options?)`, where the options record is
555
+ `LyraEventOptions { cancelable?: boolean }`:
556
+
557
+ ```ts
558
+ import { LyraChangeEvent } from "@aceshooting/lyra-ui/event-classes";
559
+
560
+ document.addEventListener("lr-change", (event) => {
561
+ if (event instanceof LyraChangeEvent) event.detail; // typed
562
+ });
563
+ ```
564
+
565
+ A class is also constructible (`new LyraChangeEvent(detail, { cancelable })`) for tests or for
566
+ re-dispatching. The classes are side-effect free and tree-shakable, components never import them, and
567
+ the names match the type aliases in `@aceshooting/lyra-ui/events` (import from one subpath per
568
+ file). Events created for an element adopted into another window keep that window's `CustomEvent`
569
+ constructor but still match.
485
570
  `LyraGlobalEventMap` is exported as well, for writing your own typed helper over it.
486
571
 
487
572
  - **The surface is per-event type aliases, not runtime event classes.** `LyraSortEvent` and its
@@ -724,7 +809,10 @@ labels are inserted, removed, retargeted, or edited. A host `aria-label` always
724
809
  controls such as `lr-tool-param-form`, `lr-rubric-form`, and `lr-time-range` put that aggregate name
725
810
  on an internal `role="group"` while retaining the more specific names of their fields/handles.
726
811
  Disabled controls, including controls disabled by an ancestor `<fieldset disabled>`, ignore label
727
- activation.
812
+ activation. A label already associated when a control connects is applied in its first update. The
813
+ indexed observer that tracks later association changes is a separate chunk under code splitting,
814
+ loaded only once some control has a label or a mutation could give it one; changes made before it
815
+ first arrives are replayed when it does, so pages that never use external labels never load it.
728
816
 
729
817
  - **Read `effectiveDisabled`, not `disabled`, for the merged state.** `effectiveDisabled` is own
730
818
  `disabled` OR an ancestor `<fieldset disabled>`'s cascaded state.
@@ -1109,8 +1197,9 @@ Three layers, and **which one you set decides how far the override reaches**:
1109
1197
  **Layer 2 (`--lr-*`) is declared once per document, not on each component**. The
1110
1198
  _document token layer_ declares every shared output on `:root` and re-derives it only at
1111
1199
  [theme scopes](#theme-scopes). `theme.css` carries it, so a page that imports `theme.css` has it from
1112
- first paint; on a page without `theme.css`, registering the first `lr-*` element adopts the same text
1113
- as a constructed stylesheet. Components inherit the result, and so do your own elements —
1200
+ first paint; on a page without `theme.css` or `tokens-root.css`, registering the first `lr-*` element
1201
+ loads the same text on demand and adopts it as a constructed stylesheet, and components hold their
1202
+ first render until it arrives. Components inherit the result, and so do your own elements —
1114
1203
  `body { color: var(--lr-color-text) }` resolves everywhere the layer applies.
1115
1204
  [`tokens-root.css`](#reading-the-resolved-tokens-from-your-own-components--tokens-rootcss) is the
1116
1205
  layer alone, for pages that do not use `theme.css`. Retheme through layer 1 (`--lr-theme-*`) **on a theme scope**: `:root`, a
@@ -1318,8 +1407,11 @@ component does: `var(--lr-color-border)` inside **your** component resolves wher
1318
1407
  applies. `theme.css` carries the layer, so importing `theme.css` is enough, including for
1319
1408
  server-rendered pages and for application elements that paint before any Lyra element exists.
1320
1409
  `tokens-root.css` is the same layer alone, as a static stylesheet, for pages that do not use
1321
- `theme.css`:
1410
+ `theme.css`. Link one of them on every page: the layer then costs components no JavaScript.
1322
1411
 
1412
+ - **Every page, for size.** Component modules do not bundle the layer. Without a static copy, the
1413
+ first registration imports it as a separate module (about 4 KB gzip) and adopts it; with
1414
+ `theme.css` or `tokens-root.css` present, that module is never requested.
1323
1415
  - **Server-rendered pages.** See
1324
1416
  [SSR and declarative shadow DOM](./shared/frameworks-and-ssr.md#ssr-and-declarative-shadow-dom) and
1325
1417
  [Theme scopes](#theme-scopes) for application shadow roots.
@@ -1365,10 +1457,10 @@ needs to sit inside a Lyra UI without looking foreign, and the file's header lis
1365
1457
  | Ambient colour | `--lr-color-surface`, `--lr-color-surface-raised`, `--lr-color-surface-overlay`, `--lr-color-overlay`, `--lr-color-text`, `--lr-color-text-quiet`, `--lr-color-border`, `--lr-color-border-strong`, `--lr-color-border-subtle` |
1366
1458
  | The semantic grid | all 45 `--lr-color-{brand,success,warning,danger,neutral}-{fill,border,on}-{quiet,normal,loud}` slots |
1367
1459
  | Flat colour aliases | `--lr-color-{brand,success,warning,danger,neutral}`, `--lr-color-{brand,success,warning,danger}-quiet`, `--lr-color-on-{brand,success,warning,danger,neutral}` |
1368
- | Spacing | `--lr-space-2xs`, `--lr-space-xs`, `--lr-space-s`, `--lr-space-m`, `--lr-space-l`, `--lr-space-2xl` |
1460
+ | Spacing | `--lr-space-2xs`, `--lr-space-xs`, `--lr-space-s`, `--lr-space-m`, `--lr-space-l`, `--lr-space-xl`, `--lr-space-2xl`, `--lr-space-3xl`, `--lr-space-4xl` (`xl`, `3xl`, `4xl` derive from the `l`/`2xl` theme inputs, so density and re-theming carry through) |
1369
1461
  | Geometry | `--lr-radius-xs`, `--lr-radius`, `--lr-radius-pill`, `--lr-border-width-thin`, `--lr-border-width-medium`, `--lr-border-width-thick` |
1370
1462
  | Elevation | `--lr-shadow-color`, `--lr-shadow-xs`, `--lr-shadow-s`, `--lr-shadow-m`, `--lr-shadow-l`, `--lr-shadow-xl`, `--lr-shadow` |
1371
- | Typography | `--lr-font`, `--lr-font-mono`, the ten `--lr-font-size-*` steps, the four `--lr-font-weight-*` steps |
1463
+ | Typography | `--lr-font`, `--lr-font-mono`, the twelve `--lr-font-size-*` steps (`--lr-font-size-4xl` and `-5xl` derive from the `3xl` theme input at 1.25x and 1.5x), the four `--lr-font-weight-*` steps |
1372
1464
  | State and motion | `--lr-focus-ring`, `--lr-focus-ring-color`, `--lr-focus-ring-width`, `--lr-focus-ring-offset`, `--lr-opacity-disabled`, `--lr-opacity-muted`, `--lr-duration-fast`, `--lr-duration-base`, `--lr-easing-standard`, `--lr-easing-emphasized`, `--lr-transition-fast`, `--lr-transition-base`, `--lr-transition-interactive` |
1373
1465
 
1374
1466
  The grid is stable as a whole because its [contrast contract](#semantic-colour-contrast-contract)
@@ -1404,7 +1496,9 @@ properties only — notably not `color-scheme` — so importing it paints nothin
1404
1496
  A **theme scope** is an element that re-derives the whole token layer from the `--lr-theme-*` inputs
1405
1497
  and the mode it sees. The list is closed: `:root`; the mode scopes `.lr-light`, `.lr-dark` and
1406
1498
  `[data-lr-theme]` (any value); the style-axis boundaries `[data-lr-mode]`, `[data-lr-look]`,
1407
- `[data-lr-accent]`, `[data-lr-density]`, `[data-lr-contrast]`, `[data-lr-motion]`; a look's scoped
1499
+ `[data-lr-accent]`, the per-role `[data-lr-accent-neutral]`, `[data-lr-accent-success]`,
1500
+ `[data-lr-accent-warning]`, `[data-lr-accent-danger]`, `[data-lr-density]`, `[data-lr-contrast]`,
1501
+ `[data-lr-motion]`; a look's scoped
1408
1502
  `.light` / `.dark` aliases; the design-token fixture scopes `.lr-token-light`, `.lr-token-dark`,
1409
1503
  `[data-lr-design-token-mode]`; and the mode-neutral marker **`data-lr-theme-scope`**.
1410
1504
 
@@ -1709,6 +1803,7 @@ Each sheet is the one that style needs under `theme-core.css`:
1709
1803
  | `look: 'shadcn'`, `'material'`, `'data'`, `'terminal'`, `'high-contrast'` | `looks/<look>.css` |
1710
1804
  | `surface: 'glass'`, or the `.lr-surface-chrome` class | `surfaces/glass.css` |
1711
1805
  | a named `accent` such as `'emerald'` | `accents.css` |
1806
+ | a per-role `data-lr-accent-<role>` remap | `accent-roles.css` |
1712
1807
  | `density: 'compact'` or `'touch'` | `density.css` |
1713
1808
 
1714
1809
  An application that keeps the whole built-in profile should stay on `theme.css`, which is smaller
@@ -1730,6 +1825,53 @@ axes on `<html>` and restore only the mode, as in
1730
1825
  </html>
1731
1826
  ```
1732
1827
 
1828
+ ### Per-role accents — accent-roles.css
1829
+
1830
+ `data-lr-accent` names the brand palette. To recolor another semantic role declaratively, import
1831
+ `accent-roles.css` and name a gemstone on the role's own attribute: `data-lr-accent-neutral`,
1832
+ `data-lr-accent-success`, `data-lr-accent-warning` or `data-lr-accent-danger`. The values are the
1833
+ nine gemstones that `data-lr-accent` accepts (`emerald`, `peridot`, `topaz`, `ruby`, `tourmaline`,
1834
+ `amethyst`, `aquamarine`, `sapphire`, `hematite`), plus `none`.
1835
+
1836
+ ```css
1837
+ @import "@aceshooting/lyra-ui/theme.css";
1838
+ @import "@aceshooting/lyra-ui/accent-roles.css";
1839
+ ```
1840
+
1841
+ ```html
1842
+ <html data-lr-accent-success="aquamarine" data-lr-accent-danger="tourmaline">
1843
+ …
1844
+ <section data-lr-accent-success="sapphire">…</section> <!-- this region only -->
1845
+ <aside data-lr-accent-success="none">…</aside> <!-- the look's own success colours -->
1846
+ </html>
1847
+ ```
1848
+
1849
+ - **Same ramp as brand.** A remapped role gets exactly the quiet, normal and loud fill, border and
1850
+ `on` ramp that `data-lr-accent="<gemstone>"` gives brand, in both light and dark mode, qualified
1851
+ by the same rules: every `on` colour meets 4.5:1 on its fill, the loud fill meets 4.5:1 as text on
1852
+ the quiet fill and on every built-in reference surface (each look's page and raised surfaces),
1853
+ and normal and loud borders meet 3:1 against those surfaces. Every component that reads `--lr-color-<role>-*` follows, including
1854
+ `variant="success"` and friends.
1855
+ - **Defaults are unchanged.** Without a role attribute, or without `accent-roles.css`, each role
1856
+ keeps the look's colours. Brand and the focus ring belong to `data-lr-accent`; a role attribute
1857
+ never moves them, and remapping one role leaves the others alone.
1858
+ - **Scoping.** Each attribute is a theme scope, so it works on any element and nests: a closer
1859
+ attribute wins, `none` restores the look's colours for that role below it, and an unknown value
1860
+ changes nothing. A `data-lr-accent` element starts a fresh accent scope for every role, so set the
1861
+ role attributes on that element (or inside it) as well when you nest a brand accent. Both
1862
+ attributes compose on one element.
1863
+ - **Mode, contrast and forced colours.** The role follows the mode of its nearest scope
1864
+ (`data-lr-mode`, `.lr-dark`, System). `prefers-contrast: more` and `data-lr-contrast="more"` still
1865
+ strengthen control borders and focus rings exactly as they do with a brand accent. Under `forced-colors: active` the role aliases resolve to system colours, so
1866
+ a remap never overrides the user's palette.
1867
+ - **Runtime precedence.** `setLyraStyle({ accent: { success: '#0d9488' } })` and
1868
+ `applyLyraStyleScope()` write inline per-role ramps, which win over the attribute on the same
1869
+ element; use them for arbitrary colours, and the attributes for the built-in palette with no
1870
+ JavaScript and no first-paint flash.
1871
+ - **Cost.** `theme.css` and `theme-core.css` carry only the four scope selectors;
1872
+ `accent-roles.css` (under 3 KB gzipped) holds the palettes, so pages that never remap a role pay
1873
+ nothing.
1874
+
1733
1875
  ### Cascade layers
1734
1876
 
1735
1877
  `theme.css` declares its layer order up front, with base inputs in `lr-theme` and built-in profile
@@ -2361,16 +2503,21 @@ the first connected Lyra element would otherwise adopt, available before any com
2361
2503
  | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
2362
2504
  | Display and composition | `lr-block`, `lr-inline-block`, `lr-flex`, `lr-inline-flex`, `lr-grid`, `lr-flow-root`, `lr-stack`, `lr-cluster`, `lr-grid-auto` |
2363
2505
  | Static 12-column grid | `lr-grid-12`, `lr-span-1` – `lr-span-12`, `lr-row-span-2` – `lr-row-span-4` |
2364
- | Flex direction and wrapping | `lr-row`, `lr-column`, `lr-wrap`, `lr-nowrap`, `lr-grow`, `lr-grow-0`, `lr-shrink`, `lr-shrink-0` |
2365
- | Item alignment | `lr-items-start`, `lr-items-center`, `lr-items-end`, `lr-items-stretch`, `lr-items-baseline`, `lr-self-start`, `lr-self-center`, `lr-self-end`, `lr-self-stretch` |
2366
- | Distribution | `lr-justify-start`, `lr-justify-center`, `lr-justify-end`, `lr-justify-between`, `lr-justify-around` |
2367
- | Gaps | `lr-gap-0`, `lr-gap-xs`, `lr-gap-s`, `lr-gap-m`, `lr-gap-l`, `lr-gap-2xl` |
2506
+ | Flex direction and wrapping | `lr-row`, `lr-column`, `lr-wrap`, `lr-wrap-reverse`, `lr-nowrap`, `lr-grow`, `lr-grow-0`, `lr-shrink`, `lr-shrink-0` |
2507
+ | Item alignment | `lr-items-start`, `lr-items-center`, `lr-items-end`, `lr-items-stretch`, `lr-items-baseline`, `lr-self-baseline`, `lr-self-start`, `lr-self-center`, `lr-self-end`, `lr-self-stretch` |
2508
+ | Distribution | `lr-justify-start`, `lr-justify-center`, `lr-justify-end`, `lr-justify-between`, `lr-justify-around`, `lr-justify-evenly` |
2509
+ | Gaps | `lr-gap-0`, `lr-gap-2xs`, `lr-gap-xs`, `lr-gap-s`, `lr-gap-m`, `lr-gap-l`, `lr-gap-xl`, `lr-gap-2xl`, `lr-gap-3xl`, `lr-gap-4xl` |
2510
+ | Compositions | `lr-flank`, `lr-flank-end`, `lr-split`, `lr-split-column`, `lr-frame`, `lr-frame-square`, `lr-frame-landscape`, `lr-frame-portrait`, `lr-span-grid`, `lr-container` |
2511
+ | Plain-element helpers | `lr-link-plain`, `lr-list-plain`, `lr-placeholder`, `lr-scroll-lock`, `lr-cloak` |
2512
+ | Radius and case | `lr-radius-none`, `lr-radius-xs`, `lr-radius-m`, `lr-radius-container`, `lr-radius-pill`, `lr-radius-circle`, `lr-uppercase`, `lr-lowercase`, `lr-capitalize`, `lr-normal-case` |
2513
+ | Variant and size | `lr-neutral`, `lr-brand`, `lr-success`, `lr-warning`, `lr-danger`; `lr-size-2xs`, `lr-size-xs`, `lr-size-s`, `lr-size-m`, `lr-size-l`, `lr-size-xl` (`lr-size-full` stays the 100% box) |
2368
2514
  | Logical sizing | `lr-inline-full`, `lr-block-full`, `lr-size-full`, `lr-min-inline-0`, `lr-min-block-0`, `lr-max-inline-full`, `lr-max-inline-prose`, `lr-center` |
2369
2515
  | Overflow | `lr-overflow-auto`, `lr-overflow-hidden` |
2370
- | Text alignment and size | `lr-text-start`, `lr-text-center`, `lr-text-end`, `lr-text-xs`, `lr-text-sm`, `lr-text-base`, `lr-text-lg`, `lr-text-xl`, `lr-text-quiet` |
2371
- | Font | `lr-font-normal`, `lr-font-medium`, `lr-font-semibold`, `lr-font-bold`, `lr-font-mono` |
2516
+ | Text alignment and size | `lr-text-start`, `lr-text-center`, `lr-text-end`, `lr-text-justify`, `lr-text-xs`, `lr-text-sm`, `lr-text-base`, `lr-text-lg`, `lr-text-xl`, `lr-text-2xl` – `lr-text-5xl`, `lr-text-quiet` |
2517
+ | Font | `lr-font-normal`, `lr-font-medium`, `lr-font-light`, `lr-font-semibold`, `lr-font-bold`, `lr-font-mono`, `lr-tabular-nums` |
2518
+ | Table rows | `lr-zebra-rows`, `lr-hover-rows` (on the `table`; tint `tbody` rows from `--lr-color-text` and `--lr-color-mix-hover`) |
2372
2519
  | Text flow | `lr-text-break`, `lr-text-nowrap`, `lr-truncate`, `lr-text-balance`, `lr-text-pretty`, `lr-prose` |
2373
- | Typography | `lr-typography`, `lr-not-typography`, `lr-heading-1`, `lr-heading-2`, `lr-heading-3`, `lr-heading-4`, `lr-inline-code` |
2520
+ | Typography | `lr-typography`, `lr-not-typography`, `lr-heading-1`, `lr-heading-2`, `lr-heading-3`, `lr-heading-4`, `lr-heading-5`, `lr-heading-6`, `lr-inline-code` |
2374
2521
  | Visibility and focus | `lr-visually-hidden`, `lr-visually-hidden-focusable`, `lr-fouce-hidden`, `lr-hidden` |
2375
2522
  | Page allocation | `lr-page-mobile-only`, `lr-page-desktop-only` |
2376
2523
 
@@ -2391,6 +2538,43 @@ properties, so these two widths are fixed. Source order is reading order at ever
2391
2538
  </section>
2392
2539
  ```
2393
2540
 
2541
+ ### Compositions and small utilities
2542
+
2543
+ All spacing here reads `--lr-layout-gap` (default `--lr-space-m`).
2544
+
2545
+ - **`lr-flank` / `lr-flank-end`** — a flex row where the first (or, for `-end`, the last) child keeps
2546
+ its own width (`--lr-flank-inline-size`, default `auto`) and the other fills the rest. The filling
2547
+ child wraps onto its own row below `--lr-flank-content-min-inline-size` (default `50%`).
2548
+ - **`lr-split` / `lr-split-column`** — items pushed to the two ends of a wrapping row, or of a
2549
+ column. Logical, so the ends swap under `dir="rtl"`.
2550
+ - **`lr-frame`, `lr-frame-square` (1/1), `lr-frame-landscape` (16/9), `lr-frame-portrait` (3/4)** —
2551
+ a clipped aspect-ratio box; a direct `img`, `picture`, `video`, `canvas`, `svg` or `iframe` child
2552
+ fills it with `object-fit: cover`. A bare `lr-frame` reads `--lr-frame-ratio` (default `1 / 1`).
2553
+ - **`lr-span-grid`** — takes the whole row of its grid parent, including inside `lr-grid-12` at every
2554
+ container width. **`lr-container`** makes an element an inline-size query container.
2555
+ - **`lr-link-plain`** — inherited colour, no underline until hover. **`lr-list-plain`** — no
2556
+ marker, no indent, no margin (an `ul`/`ol` that keeps `role="list"` stays announced as a list).
2557
+ - **`lr-placeholder`** — a quiet neutral block (`--lr-placeholder-block-size`, default `1em`) that
2558
+ pulses only when `prefers-reduced-motion: no-preference`.
2559
+ - **`lr-radius-*`** read the radius tokens; `lr-radius-circle` is `50%`. **`lr-uppercase`,
2560
+ `lr-lowercase`, `lr-capitalize`, `lr-normal-case`** set `text-transform`.
2561
+ - **Variants** `lr-neutral|brand|success|warning|danger` (the `variant` vocabulary) colour the
2562
+ element's text and native-control accent with that tone's loud fill and publish
2563
+ `--lr-variant-fill-quiet`, `--lr-variant-fill-loud`, `--lr-variant-on-quiet` and
2564
+ `--lr-variant-border` for your own rules. **Sizes** `lr-size-2xs … lr-size-xl` (the `size` ladder;
2565
+ `small`/`medium`/`large` spellings are not classes) set the type size and scale the native control
2566
+ block size and padding that `.lr-native` reads.
2567
+ - **`lr-scroll-lock`** is pure CSS (`overflow: hidden`, `overscroll-behavior: contain`, plus a stable
2568
+ scrollbar gutter on `html`). Put it on `html`, `body` or a scroll container. It is independent of
2569
+ the lock a modal component takes: both can be active, and the component's lock sees the stable
2570
+ gutter and adds no padding.
2571
+ - **`lr-cloak`** on `html`/`body` (or any root) hides the root with `visibility: hidden` while any
2572
+ custom element beneath it still matches `:not(:defined)`, then reveals it as soon as they are
2573
+ all defined. It fails open: after `--lr-cloak-timeout` (default `3s`) the root becomes visible
2574
+ regardless, so a script that never loads cannot leave a blank page. The fail-open is a
2575
+ visibility switch, not motion, so it needs no reduced-motion branch. Only light-DOM descendants
2576
+ are seen; for a single element use `lr-fouce-hidden`.
2577
+
2394
2578
  `lr-fouce-hidden` hides only an opted-in custom element while it matches `:not(:defined)`, then
2395
2579
  reveals it automatically after registration. `lr-visually-hidden-focusable` becomes visible on
2396
2580
  focus or when a descendant receives focus, making it suitable for skip links.
@@ -2702,6 +2886,98 @@ the surface layer and disables Glass in the same way as an unlayered rule. Keep
2702
2886
  `:not(.lr-surface-chrome)`. See [Cascade layers](./shared/styles-and-tokens.md#cascade-layers) for the full
2703
2887
  order.
2704
2888
 
2889
+ ### Native control extensions
2890
+
2891
+ Inside `.lr-native`, `native.css` also styles: **checkbox, radio and range** (`accent-color` from the
2892
+ brand token, a `--lr-native-check-size` box, hover shifts to the loud border tone); **colour and file
2893
+ inputs** (control border and radius, a styled `::file-selector-button`, pointer cursor with hover);
2894
+ **`progress` and `meter`** (a pill track of `--lr-native-meter-block-size`, brand bar, semantic
2895
+ optimum/sub-optimum/even-less-good meter colours); **`details`/`summary`** (subtle bounded block, open
2896
+ rule under the summary); **`dialog`** (overlay surface, container radius, `--lr-color-overlay` scrim);
2897
+ **`mark`** (quiet warning fill and its paired foreground); and **lists** (`--lr-native-list-indent`
2898
+ logical start inset, quiet markers). Disabled controls use `not-allowed`, every control shows the
2899
+ shared focus ring, and `forced-colors: active` maps accents and bars to system colours. Dark mode
2900
+ follows the tokens.
2901
+
2902
+ ### Migrating Web Awesome and Shoelace classes and stylesheets
2903
+
2904
+ `lyra-ui-migrate` (no `--origin`) rewrites the upstream utility and theme classes that have a Lyra
2905
+ counterpart, and only whole class tokens in class positions: `class`/`className` values,
2906
+ `:class`, `[class]` and `[ngClass]` bindings, `className={...}`, `classMap()`, `classList.add/remove/
2907
+ toggle/contains/replace()`, `.className =` and `setAttribute('class', ...)`. Selectors, prose, other
2908
+ attributes and `${}`/`{{}}` interpolations are never read. A name the tool does not list is left alone,
2909
+ because it is as likely your own class as an upstream one.
2910
+
2911
+ | Upstream | Lyra |
2912
+ | -------- | ---- |
2913
+ | `wa-stack`, `wa-cluster`, `wa-flank`, `wa-split`, `wa-frame` (with `:end`, `:column`, `:square`, `:landscape`, `:portrait`) | `lr-stack`, `lr-cluster`, `lr-flank`/`lr-flank-end`, `lr-split`/`lr-split-column`, `lr-frame`/`lr-frame-*` |
2914
+ | `wa-grid`, `wa-span-grid` | `lr-grid-auto`, `lr-span-grid` |
2915
+ | `wa-gap-<step>` | `lr-gap-<step>`, mapped by resolved length: the two spacing scales are offset by one step, so `wa-gap-m` (1rem) is `lr-gap-l` |
2916
+ | `wa-align-items-*`, `wa-align-self-*`, `wa-justify-content-*`, `wa-flex-wrap`/`wa-flex-nowrap` | `lr-items-*`, `lr-self-*`, `lr-justify-*`, `lr-wrap`/`lr-nowrap` |
2917
+ | `wa-text-*`, `wa-font-weight-*`, `wa-color-text-quiet`, `wa-link-plain`, `wa-list-plain`, `wa-prose`, `wa-visually-hidden`, `wa-cloak`, `wa-placeholder`, `wa-scroll-lock` | the same helper under `lr-`; see the inventory above |
2918
+ | `wa-brand`, `wa-neutral`, `wa-success`, `wa-warning`, `wa-danger`, `wa-size-*` | `lr-brand`, `lr-neutral`, `lr-success`, `lr-warning`, `lr-danger`, `lr-size-*` |
2919
+ | `wa-dark`, `wa-light`, `sl-theme-dark`, `sl-theme-light` | `lr-dark`, `lr-light` |
2920
+
2921
+ `wa-font-size-*`, `wa-body-*` and `wa-border-radius-s`/`-m` rewrite to the nearest class
2922
+ (`lr-text-*`, `lr-radius-*`) and report `UPSTREAM_CLASS_APPROXIMATE_REVIEW`: the type and radius scales
2923
+ are not value-aligned. `wa-heading-*`, `wa-caption-*`, `wa-longform-*`, the hue-pinned variants
2924
+ (`wa-brand-blue`), `wa-theme-*`, the `native.css` opt-ins (`wa-button`, `wa-zebra-rows`, ...), the
2925
+ `wa-form-control-*` classes and the gaps Lyra has no step for are reported as `UPSTREAM_CLASS_REVIEW`
2926
+ with the nearest alternative and are not rewritten.
2927
+
2928
+ Design-token references (`var(--wa-*)`, `var(--sl-*)`) follow a reviewed route table, matched by role
2929
+ and resolved value rather than by name, and every target is a document-layer token. Semantic colours
2930
+ (`--wa-color-brand-fill-loud` becomes `--lr-color-brand-fill-loud`; surface, text, border, overlay,
2931
+ shadow and focus colours likewise), border widths, font families and weights, and spacing steps
2932
+ with the same length (`--wa-space-m` and `--sl-spacing-medium`, both 1rem, become `--lr-space-l`) are
2933
+ rewritten silently. Type sizes, radii, line heights, shadows, durations, easing and the Shoelace
2934
+ `-600` palette steps rewrite to the nearest role and report `UPSTREAM_TOKEN_APPROXIMATE_REVIEW`.
2935
+ A token with no equivalent (`--wa-space-2xl` at 2.5rem, numbered and hue palettes) stays as-is and is
2936
+ reported as `UPSTREAM_TOKEN_REVIEW` with the nearest alternatives. A token the file declares itself
2937
+ (`--wa-space-m: 2rem`) is treated as its own property and left alone.
2938
+
2939
+ Stylesheet and loader imports (`import '...'` and CSS `@import`) map to real package subpaths:
2940
+ `dist/styles/webawesome.css` becomes `theme.css`, `native.css` and `utilities.css`;
2941
+ `styles/native.css`, `styles/utilities.css`, `styles/themes/default.css` and Shoelace
2942
+ `themes/light.css`/`dark.css` become the matching one. `native.css` styles only inside `.lr-native`, and
2943
+ `dark.css` is mode switching with `lr-dark`, so both carry an `UPSTREAM_ASSET_REVIEW` note. The
2944
+ self-starting loaders (`webawesome.loader.js`, `shoelace-autoloader.js`) become
2945
+ `@aceshooting/lyra-ui/autoloader-cdn.js` and, like the all-components entries (`webawesome.js`,
2946
+ `shoelace.js`), are rewritten only when the scanned files have no manual uses left. `setBasePath` and
2947
+ `utilities/base-path`, `layers.css`, the `awesome` and `shoelace` themes and the colour palettes have no
2948
+ Lyra counterpart and are reported as `UPSTREAM_ASSET_REVIEW`.
2949
+
2950
+ Translation imports (`dist/translations/<lang>.js`) become the matching
2951
+ `@aceshooting/lyra-translations/<locale>.js` catalog with Lyra's casing (`de-ch` becomes `de-CH`)
2952
+ and report `OPTIONAL_PEER_REQUIRED` once, because that package is an optional peer. The `en` import is
2953
+ removed, because English is built in. A bare `pt` or `zh` loads `pt-BR` or `zh-CN`, the region CLDR
2954
+ resolves it to, and reports `TRANSLATION_LOCALE_REVIEW`. A locale Lyra does not ship stays unchanged
2955
+ and reports `UPSTREAM_ASSET_REVIEW`.
2956
+
2957
+ Named imports from `dist/utilities/*.js` are rewritten symbol by symbol when every name has a Lyra
2958
+ export with the same call shape: `serialize` (`utilities/form.js`), `registerIconLibrary`,
2959
+ `unregisterIconLibrary`, `setDefaultIconFamily`, `getDefaultIconFamily` and `getDefaultIconVariant`
2960
+ (`components/utility/icon/icon-library.js`), `allDefined` (`utilities/defined.js`),
2961
+ `setDefaultAnimation`, `setAnimation` and `getAnimation` (`utilities/animation-registry.js`, with a
2962
+ `UTILITY_BEHAVIOR_REVIEW` note to check animation names), and `getAnimationNames` and
2963
+ `getEasingNames` (`components/media/animation/animation.class.js`). A statement that also imports
2964
+ an unlisted name, a type-only import or a re-export stays unchanged with
2965
+ `IMPORT_BINDING_REVIEW_REQUIRED`.
2966
+
2967
+ ### Hue palette
2968
+
2969
+ ```css
2970
+ @import "@aceshooting/lyra-ui/palette.css";
2971
+ ```
2972
+
2973
+ Declares static `--lr-color-<hue>-<step>` ramps on `:root` and every `[data-lr-theme-scope]`, for
2974
+ hues `gray`, `red`, `orange`, `yellow`, `green`, `cyan`, `blue`, `purple` and `pink` and steps `05 10
2975
+ 20 30 40 50 60 70 80 90 95` (near-black to near-white). `gray`, `red`, `orange`, `green` and `blue`
2976
+ are the neutral, danger, warning, success and brand tooling ramps; the others are the brand ramp
2977
+ rotated in hue at the same lightness. The values do not change with light/dark mode: use them for
2978
+ tags, charts, avatars and illustrations, and keep UI chrome on the semantic grid. To recolour the
2979
+ semantic roles themselves, use `setLyraStyle({ accent: { success, warning, danger, neutral } })`.
2980
+
2705
2981
  ## Localization: `locale`, `strings`, and the locale runtime
2706
2982
 
2707
2983
  Every built-in string — button labels, accessible names, descriptions, validation messages, status
@@ -2782,6 +3058,11 @@ writing direction remain live references: loading or extending the parent later
2782
3058
  components. Ordinary `registerLyraLocale()` calls can extend the delta without discarding its
2783
3059
  parent. Self-references, cycles and parent chains beyond 32 edges reject before changing the outer
2784
3060
  registration. Delta catalogs do not become reverse fallbacks for another tag sharing the language.
3061
+
3062
+ The full fallback chain (truncation, implied script, regional siblings and delta parents) is
3063
+ installed by the first registration. Until then every message is the built-in English default, so
3064
+ only the inherited tag itself is consulted, for plural selection and number formatting. Register
3065
+ catalogs before the first render, as usual, to render localized text without a re-render.
2785
3066
  The existing complete built-in regional catalogs retain their original messages.
2786
3067
 
2787
3068
  ```js
@@ -3460,7 +3741,7 @@ page that does not use `theme.css` links `styles/tokens-root.css`, the layer alo
3460
3741
  <link rel="stylesheet" href="/node_modules/@aceshooting/lyra-ui/dist/theme.css" />
3461
3742
  ```
3462
3743
 
3463
- Hydration then skips the constructed copy. An application's **own** declarative shadow roots that
3744
+ Hydration then skips the constructed copy and never requests the layer's script. An application's **own** declarative shadow roots that
3464
3745
  contain theme scopes (for example a `.lr-dark` region or a `data-lr-theme-scope` wrapper) include the
3465
3746
  same `<link rel="stylesheet" href="…/tokens-root.css">` inside their template: document styles do not
3466
3747
  reach into a shadow root until hydration adopts the layer there. Without any link and without
@@ -3498,6 +3779,15 @@ corrects itself on the next update, so a slotted override lands one frame after
3498
3779
  browser-only mount is unaffected and renders the final result the first time. Layout/observer/canvas/media work
3499
3780
  begins after hydration, and remote content is client-only.
3500
3781
 
3782
+ **Localized server output.** The server renderer gives a component no ancestors, so an ancestor
3783
+ `lang` (`<html lang="fr">`, `<div lang="fr">`) reaches only the browser. The server resolves
3784
+ messages and number/date formats from the host's own `locale`/`lang`, else the active locale. To
3785
+ serve translated text, import the catalog on the server and call `setLyraLocale(requestLocale)`
3786
+ around the render (clear it with `setLyraLocale('')` afterwards), matching the page's `lang`; also
3787
+ import the catalog in the browser before hydration. The hydrated page then keeps the server text
3788
+ with no flash. When the server rendered a different locale than the browser inherits, the
3789
+ hydrating render reproduces the server's text and the next update commits the inherited locale.
3790
+
3501
3791
  **If hydration never runs at all** — a page that intentionally ships no script bundle, a reader
3502
3792
  that fetches the raw HTML, or a crawler — a `render-and-hydrate` tag's declarative-shadow-DOM
3503
3793
  output is either permanently complete and correct on its own, or only ever promised once hydration
@@ -3570,6 +3860,12 @@ An existing platform collection is never replaced, and plain Node remains unchan
3570
3860
  `Element.part` (Happy DOM), rendering does not throw, and highlighted lines keep their
3571
3861
  `line-highlight` part wherever CSS parts exist. `installHappyDomShims()` does not install one.
3572
3862
 
3863
+ `installHappyDomShims()` also calls `installHappyDomResponseBytesShim()`, which adds
3864
+ `Response.prototype.bytes()` (read through `arrayBuffer()`) where Happy DOM 21 lacks it. Shiki's
3865
+ inlined Oniguruma engine, which `lr-code-block` loads on demand, calls `bytes()` as it imports, so
3866
+ without it each highlighter load leaves an unhandled rejection. It is a no-op where `bytes()`
3867
+ exists, takes an optional prototype, and returns a function that removes the method again.
3868
+
3573
3869
  When Happy DOM lacks the HTML `dir="ltr"`/`dir="rtl"` presentational hints,
3574
3870
  `installHappyDomShims()` adds zero-specificity direction rules to the document head. This restores
3575
3871
  computed direction and inherited component direction while preserving explicit author CSS.
@@ -3834,6 +4130,15 @@ files matter when scaffolding a project's editor configuration. Build tools can
3834
4130
  through the explicit `@aceshooting/lyra-ide/custom-elements.json` package export; native Node ESM
3835
4131
  uses `with { type: 'json' }` on that import.
3836
4132
 
4133
+ **Slim manifest in `@aceshooting/lyra-ui`.** The main package's `customElements` field points at
4134
+ `custom-elements.slim.json` (export `@aceshooting/lyra-ui/custom-elements.slim.json`), so Storybook,
4135
+ wc-toolkit and analyzers discover every tag without installing `@aceshooting/lyra-ide`. Per tag it
4136
+ lists attributes (name, `fieldName`, type, default), public fields and methods, events, slots, CSS
4137
+ parts, CSS properties and CSS states, already flattened across superclasses, with module paths at the
4138
+ shipped `dist/` files. It carries no descriptions, status, `since` or deprecation records and no
4139
+ companion-package tags; use the full `@aceshooting/lyra-ide/custom-elements.json` for those. The
4140
+ inheritance note below applies to the full manifest only.
4141
+
3837
4142
  **Inherited members in `custom-elements.json`.** A subclass declaration's `cssParts` array is
3838
4143
  always the complete flattened set, including everything inherited from a superclass — `::part()`
3839
4144
  has no type-level inheritance chain a consumer could otherwise walk. `attributes`, `members`,
@@ -4130,6 +4435,18 @@ boolean; set defaultChecked(next: boolean) }`.
4130
4435
  `RecencyBucket<T> { label; items }`.
4131
4436
  The callable signature is `groupByRecency<T>(items: T[], options?:
4132
4437
  GroupByRecencyOptions<T>): RecencyBucket<T>[]`.
4438
+ - **`allDefined({ match?, additionalElements?, root?, timeout? })`** — options form of the helper
4439
+ below. Without `match` it waits like the root form; with `match` it waits for every undefined
4440
+ element under `root` (default `document`) whose lowercase tag the function accepts.
4441
+ `additionalElements` (a tag or tags) names elements that may not be on the page yet. After
4442
+ `timeout` ms (default `2000`, `Infinity` disables it) it logs a console warning listing the tags
4443
+ still undefined and resolves anyway. A negative or `NaN` timeout throws `RangeError`. The
4444
+ `(root, options)` form never times out.
4445
+ - **`form` → `serialize(form): Record<string, FormDataEntryValue | FormDataEntryValue[]>`** — a
4446
+ form's successful controls as a plain object; a name that occurs more than once becomes an array
4447
+ in document order (`serializeFormData(formData: FormData): Record<string, FormDataEntryValue |
4448
+ FormDataEntryValue[]>` is the same fold over any `FormData`). The result
4449
+ has a `null` prototype, so a field named `__proto__` is just a key.
4133
4450
  - **`defined` → `allDefined(root?, options?): Promise<void>`** — iteratively waits for every
4134
4451
  currently rendered, inventory-known Lyra tag below a `Document`, `DocumentFragment`/open
4135
4452
  `ShadowRoot`, or `Element` to be defined in its owning/scoped registry. It also waits for each
@@ -4146,6 +4463,9 @@ GroupByRecencyOptions<T>): RecencyBucket<T>[]`.
4146
4463
  The exact options record is `AllDefinedOptions { readonly maxPasses?: number; readonly
4147
4464
  maxElements?: number; readonly maxRoots?: number; readonly maxDepth?: number; readonly maxWork?:
4148
4465
  number }`.
4466
+ The options form takes `AllDefinedWaitOptions { readonly match?: (tagName: string) => boolean;
4467
+ readonly additionalElements?: string | readonly string[]; readonly root?: LyraDefinitionRoot;
4468
+ readonly timeout?: number }`.
4149
4469
  - **`css-length` → `resolveCssLength(value, options?)`** — resolves finite numbers and CSS
4150
4470
  `px`/`rem`/`em`/`%`/`vw`/`vh` lengths to pixels without allocating DOM. Supply `host` for live
4151
4471
  font and owner-realm context, `percentBase` for percentages, and an optional `viewportBasis` for
@@ -5607,6 +5927,7 @@ These named interfaces and helper signatures are available to typed integrations
5607
5927
  'lr-control-group': LyraControlGroupReactProps;
5608
5928
  'lr-conversation-item': LyraConversationItemReactProps;
5609
5929
  'lr-copy-button': LyraCopyButtonReactProps;
5930
+ 'lr-counter': LyraCounterReactProps;
5610
5931
  'lr-country-picker': LyraCountryPickerReactProps;
5611
5932
  'lr-csv-viewer': LyraCsvViewerReactProps;
5612
5933
  'lr-currency-picker': LyraCurrencyPickerReactProps;
@@ -5687,6 +6008,7 @@ These named interfaces and helper signatures are available to typed integrations
5687
6008
  'lr-knowledge-graph-explorer': LyraKnowledgeGraphExplorerReactProps;
5688
6009
  'lr-known-date': LyraKnownDateReactProps;
5689
6010
  'lr-lightbox': LyraLightboxReactProps;
6011
+ 'lr-lightbox-item': LyraLightboxItemReactProps;
5690
6012
  'lr-line-chart': LyraLineChartReactProps;
5691
6013
  'lr-lite-chart': LyraLiteChartReactProps;
5692
6014
  'lr-live-region': LyraLiveRegionReactProps;
@@ -5720,6 +6042,7 @@ These named interfaces and helper signatures are available to typed integrations
5720
6042
  'lr-node-palette': LyraNodePaletteReactProps;
5721
6043
  'lr-notebook-viewer': LyraNotebookViewerReactProps;
5722
6044
  'lr-number-input': LyraNumberInputReactProps;
6045
+ 'lr-number-ticker': LyraNumberTickerReactProps;
5723
6046
  'lr-option': LyraOptionReactProps;
5724
6047
  'lr-otp-input': LyraOtpInputReactProps;
5725
6048
  'lr-page': LyraPageReactProps;
@@ -5789,6 +6112,7 @@ These named interfaces and helper signatures are available to typed integrations
5789
6112
  'lr-spreadsheet-viewer': LyraSpreadsheetViewerReactProps;
5790
6113
  'lr-stack-trace': LyraStackTraceReactProps;
5791
6114
  'lr-stat': LyraStatReactProps;
6115
+ 'lr-step': LyraStepReactProps;
5792
6116
  'lr-stepper': LyraStepperReactProps;
5793
6117
  'lr-stream-status': LyraStreamStatusReactProps;
5794
6118
  'lr-streaming-text': LyraStreamingTextReactProps;
@@ -6055,6 +6379,7 @@ These named interfaces and helper signatures are available to typed integrations
6055
6379
  'lr-control-group': LyraComponentTypeMap['lr-control-group']['element'];
6056
6380
  'lr-conversation-item': LyraComponentTypeMap['lr-conversation-item']['element'];
6057
6381
  'lr-copy-button': LyraComponentTypeMap['lr-copy-button']['element'];
6382
+ 'lr-counter': LyraComponentTypeMap['lr-counter']['element'];
6058
6383
  'lr-country-picker': LyraComponentTypeMap['lr-country-picker']['element'];
6059
6384
  'lr-csv-viewer': LyraComponentTypeMap['lr-csv-viewer']['element'];
6060
6385
  'lr-currency-picker': LyraComponentTypeMap['lr-currency-picker']['element'];
@@ -6135,6 +6460,7 @@ These named interfaces and helper signatures are available to typed integrations
6135
6460
  'lr-knowledge-graph-explorer': LyraComponentTypeMap['lr-knowledge-graph-explorer']['element'];
6136
6461
  'lr-known-date': LyraComponentTypeMap['lr-known-date']['element'];
6137
6462
  'lr-lightbox': LyraComponentTypeMap['lr-lightbox']['element'];
6463
+ 'lr-lightbox-item': LyraComponentTypeMap['lr-lightbox-item']['element'];
6138
6464
  'lr-line-chart': LyraComponentTypeMap['lr-line-chart']['element'];
6139
6465
  'lr-lite-chart': LyraComponentTypeMap['lr-lite-chart']['element'];
6140
6466
  'lr-live-region': LyraComponentTypeMap['lr-live-region']['element'];
@@ -6168,6 +6494,7 @@ These named interfaces and helper signatures are available to typed integrations
6168
6494
  'lr-node-palette': LyraComponentTypeMap['lr-node-palette']['element'];
6169
6495
  'lr-notebook-viewer': LyraComponentTypeMap['lr-notebook-viewer']['element'];
6170
6496
  'lr-number-input': LyraComponentTypeMap['lr-number-input']['element'];
6497
+ 'lr-number-ticker': LyraComponentTypeMap['lr-number-ticker']['element'];
6171
6498
  'lr-option': LyraComponentTypeMap['lr-option']['element'];
6172
6499
  'lr-otp-input': LyraComponentTypeMap['lr-otp-input']['element'];
6173
6500
  'lr-page': LyraComponentTypeMap['lr-page']['element'];
@@ -6237,6 +6564,7 @@ These named interfaces and helper signatures are available to typed integrations
6237
6564
  'lr-spreadsheet-viewer': LyraComponentTypeMap['lr-spreadsheet-viewer']['element'];
6238
6565
  'lr-stack-trace': LyraComponentTypeMap['lr-stack-trace']['element'];
6239
6566
  'lr-stat': LyraComponentTypeMap['lr-stat']['element'];
6567
+ 'lr-step': LyraComponentTypeMap['lr-step']['element'];
6240
6568
  'lr-stepper': LyraComponentTypeMap['lr-stepper']['element'];
6241
6569
  'lr-stream-status': LyraComponentTypeMap['lr-stream-status']['element'];
6242
6570
  'lr-streaming-text': LyraComponentTypeMap['lr-streaming-text']['element'];
@@ -6374,6 +6702,7 @@ These named interfaces and helper signatures are available to typed integrations
6374
6702
  'lr-control-group': LyraControlGroupSvelteProps;
6375
6703
  'lr-conversation-item': LyraConversationItemSvelteProps;
6376
6704
  'lr-copy-button': LyraCopyButtonSvelteProps;
6705
+ 'lr-counter': LyraCounterSvelteProps;
6377
6706
  'lr-country-picker': LyraCountryPickerSvelteProps;
6378
6707
  'lr-csv-viewer': LyraCsvViewerSvelteProps;
6379
6708
  'lr-currency-picker': LyraCurrencyPickerSvelteProps;
@@ -6454,6 +6783,7 @@ These named interfaces and helper signatures are available to typed integrations
6454
6783
  'lr-knowledge-graph-explorer': LyraKnowledgeGraphExplorerSvelteProps;
6455
6784
  'lr-known-date': LyraKnownDateSvelteProps;
6456
6785
  'lr-lightbox': LyraLightboxSvelteProps;
6786
+ 'lr-lightbox-item': LyraLightboxItemSvelteProps;
6457
6787
  'lr-line-chart': LyraLineChartSvelteProps;
6458
6788
  'lr-lite-chart': LyraLiteChartSvelteProps;
6459
6789
  'lr-live-region': LyraLiveRegionSvelteProps;
@@ -6487,6 +6817,7 @@ These named interfaces and helper signatures are available to typed integrations
6487
6817
  'lr-node-palette': LyraNodePaletteSvelteProps;
6488
6818
  'lr-notebook-viewer': LyraNotebookViewerSvelteProps;
6489
6819
  'lr-number-input': LyraNumberInputSvelteProps;
6820
+ 'lr-number-ticker': LyraNumberTickerSvelteProps;
6490
6821
  'lr-option': LyraOptionSvelteProps;
6491
6822
  'lr-otp-input': LyraOtpInputSvelteProps;
6492
6823
  'lr-page': LyraPageSvelteProps;
@@ -6556,6 +6887,7 @@ These named interfaces and helper signatures are available to typed integrations
6556
6887
  'lr-spreadsheet-viewer': LyraSpreadsheetViewerSvelteProps;
6557
6888
  'lr-stack-trace': LyraStackTraceSvelteProps;
6558
6889
  'lr-stat': LyraStatSvelteProps;
6890
+ 'lr-step': LyraStepSvelteProps;
6559
6891
  'lr-stepper': LyraStepperSvelteProps;
6560
6892
  'lr-stream-status': LyraStreamStatusSvelteProps;
6561
6893
  'lr-streaming-text': LyraStreamingTextSvelteProps;
@@ -6627,6 +6959,7 @@ These named interfaces and helper signatures are available to typed integrations
6627
6959
  `flattenCascadeLayers(css: string): string`
6628
6960
  `installHappyDomAriaControlsShim(proto: object | undefined = globalThis.Element?.prototype): void`
6629
6961
  `installHappyDomCascadeLayerShim(proto: SheetTextMethods | undefined = globalThis.CSSStyleSheet?.prototype, misbehaves: () => boolean = cascadeLayerRulesDropped): () => void`
6962
+ `installHappyDomResponseBytesShim(proto: BytesBody | undefined = globalThis.Response?.prototype as BytesBody | undefined): () => void`
6630
6963
  `installHappyDomShims(): void`
6631
6964
  `installStubInternalsForTest(host: Element): StubElementInternals`
6632
6965
 
@@ -6851,6 +7184,7 @@ These named interfaces and helper signatures are available to typed integrations
6851
7184
  'lr-control-group': LyraControlGroupVueProps;
6852
7185
  'lr-conversation-item': LyraConversationItemVueProps;
6853
7186
  'lr-copy-button': LyraCopyButtonVueProps;
7187
+ 'lr-counter': LyraCounterVueProps;
6854
7188
  'lr-country-picker': LyraCountryPickerVueProps;
6855
7189
  'lr-csv-viewer': LyraCsvViewerVueProps;
6856
7190
  'lr-currency-picker': LyraCurrencyPickerVueProps;
@@ -6931,6 +7265,7 @@ These named interfaces and helper signatures are available to typed integrations
6931
7265
  'lr-knowledge-graph-explorer': LyraKnowledgeGraphExplorerVueProps;
6932
7266
  'lr-known-date': LyraKnownDateVueProps;
6933
7267
  'lr-lightbox': LyraLightboxVueProps;
7268
+ 'lr-lightbox-item': LyraLightboxItemVueProps;
6934
7269
  'lr-line-chart': LyraLineChartVueProps;
6935
7270
  'lr-lite-chart': LyraLiteChartVueProps;
6936
7271
  'lr-live-region': LyraLiveRegionVueProps;
@@ -6964,6 +7299,7 @@ These named interfaces and helper signatures are available to typed integrations
6964
7299
  'lr-node-palette': LyraNodePaletteVueProps;
6965
7300
  'lr-notebook-viewer': LyraNotebookViewerVueProps;
6966
7301
  'lr-number-input': LyraNumberInputVueProps;
7302
+ 'lr-number-ticker': LyraNumberTickerVueProps;
6967
7303
  'lr-option': LyraOptionVueProps;
6968
7304
  'lr-otp-input': LyraOtpInputVueProps;
6969
7305
  'lr-page': LyraPageVueProps;
@@ -7033,6 +7369,7 @@ These named interfaces and helper signatures are available to typed integrations
7033
7369
  'lr-spreadsheet-viewer': LyraSpreadsheetViewerVueProps;
7034
7370
  'lr-stack-trace': LyraStackTraceVueProps;
7035
7371
  'lr-stat': LyraStatVueProps;
7372
+ 'lr-step': LyraStepVueProps;
7036
7373
  'lr-stepper': LyraStepperVueProps;
7037
7374
  'lr-stream-status': LyraStreamStatusVueProps;
7038
7375
  'lr-streaming-text': LyraStreamingTextVueProps;