@aceshooting/lyra-ui 32.0.0 → 32.1.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 (419) hide show
  1. package/CHANGELOG.md +203 -0
  2. package/README.md +24 -6
  3. package/design-tokens.json +1 -1
  4. package/dist/all.d.ts +1 -1
  5. package/dist/all.js +1 -1
  6. package/dist/autoloader.d.ts +10 -0
  7. package/dist/autoloader.js +1 -1
  8. package/dist/cli/migrate-wa.mjs +45 -37
  9. package/dist/cli/migration-contract.json.gz +0 -0
  10. package/dist/components/agent-tools/budget-meter/budget-meter.class.d.ts +1 -0
  11. package/dist/components/agent-tools/budget-meter/budget-meter.styles.js +1 -1
  12. package/dist/components/charts/chart/box-plot.class.d.ts +3 -0
  13. package/dist/components/charts/chart/chart-band.js +1 -1
  14. package/dist/components/charts/chart/chart-input-projection.js +1 -1
  15. package/dist/components/charts/chart/chart-surface.styles.js +1 -1
  16. package/dist/components/charts/chart/chart-types.d.ts +16 -2
  17. package/dist/components/charts/chart/chart.class.d.ts +4 -1
  18. package/dist/components/charts/chart/chart.class.js +3 -3
  19. package/dist/components/charts/chart/lite-chart.class.d.ts +3 -0
  20. package/dist/components/charts/chart/lite-chart.styles.js +1 -1
  21. package/dist/components/conversation/code-block/code-block-base.class.d.ts +29 -3
  22. package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
  23. package/dist/components/conversation/code-block/code-block-core.class.d.ts +46 -2
  24. package/dist/components/conversation/code-block/code-block-core.class.js +1 -1
  25. package/dist/components/conversation/code-block/code-block-shared.d.ts +6 -2
  26. package/dist/components/conversation/code-block/code-block-shared.js +5 -4
  27. package/dist/components/conversation/code-block/code-block.class.d.ts +45 -1
  28. package/dist/components/conversation/code-block/code-block.class.js +1 -1
  29. package/dist/components/conversation/code-block/code-block.styles.js +1 -1
  30. package/dist/components/conversation/markdown/markdown-core.class.d.ts +12 -0
  31. package/dist/components/conversation/markdown/markdown.class.d.ts +12 -0
  32. package/dist/components/conversation/markdown/markdown.styles.js +1 -1
  33. package/dist/components/conversation/model-select/model-select.class.d.ts +6 -0
  34. package/dist/components/conversation/suggestion-chips/suggestion-chips.class.d.ts +1 -0
  35. package/dist/components/conversation/suggestion-chips/suggestion-chips.styles.js +1 -1
  36. package/dist/components/conversation/thread-list/thread-list.class.d.ts +3 -0
  37. package/dist/components/conversation/thread-list/thread-list.styles.js +1 -1
  38. package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +6 -0
  39. package/dist/components/data/graph-query-builder/graph-query-builder.class.d.ts +4 -0
  40. package/dist/components/data/heatmap/heatmap.class.d.ts +21 -2
  41. package/dist/components/data/heatmap/heatmap.class.js +2 -2
  42. package/dist/components/data/heatmap/heatmap.styles.js +1 -1
  43. package/dist/components/data/stat/stat.class.d.ts +24 -1
  44. package/dist/components/data/stat/stat.class.js +2 -2
  45. package/dist/components/data/stat/stat.styles.js +1 -1
  46. package/dist/components/data/table/table-row-attributes.js +1 -0
  47. package/dist/components/data/table/table-support.d.ts +65 -5
  48. package/dist/components/data/table/table-support.js +1 -1
  49. package/dist/components/data/table/table.class.d.ts +77 -7
  50. package/dist/components/data/table/table.class.js +10 -10
  51. package/dist/components/data/table/table.styles.js +1 -1
  52. package/dist/components/data/timeline/timeline-item.class.d.ts +27 -5
  53. package/dist/components/data/timeline/timeline-item.class.js +11 -7
  54. package/dist/components/data/timeline/timeline-item.styles.js +1 -1
  55. package/dist/components/data/timeline/timeline.class.d.ts +40 -5
  56. package/dist/components/data/timeline/timeline.class.js +11 -7
  57. package/dist/components/data/timeline/timeline.styles.js +1 -1
  58. package/dist/components/data/tree/tree-item.class.d.ts +2 -0
  59. package/dist/components/data/tree/tree-item.class.js +2 -2
  60. package/dist/components/data/tree/tree-item.styles.js +1 -1
  61. package/dist/components/forms/button/button.class.d.ts +13 -0
  62. package/dist/components/forms/button/button.styles.js +1 -1
  63. package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +29 -2
  64. package/dist/components/forms/checkbox-group/checkbox-group.class.js +3 -3
  65. package/dist/components/forms/checkbox-group/checkbox-group.styles.js +1 -1
  66. package/dist/components/forms/code-editor/code-editor.class.d.ts +6 -0
  67. package/dist/components/forms/color-picker/color-picker.class.d.ts +9 -0
  68. package/dist/components/forms/color-picker/color-picker.class.js +3 -3
  69. package/dist/components/forms/color-picker/color-picker.styles.js +1 -1
  70. package/dist/components/forms/combobox/combobox.class.d.ts +114 -7
  71. package/dist/components/forms/combobox/combobox.class.js +9 -7
  72. package/dist/components/forms/combobox/combobox.styles.js +1 -1
  73. package/dist/components/forms/country-picker/country-picker.class.d.ts +2 -0
  74. package/dist/components/forms/currency-picker/currency-picker.class.d.ts +2 -0
  75. package/dist/components/forms/date-picker/date-input.class.d.ts +41 -0
  76. package/dist/components/forms/date-picker/date-input.class.js +2 -2
  77. package/dist/components/forms/date-picker/date-input.styles.js +1 -1
  78. package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +4 -0
  79. package/dist/components/forms/icon-button/icon-button.styles.js +1 -1
  80. package/dist/components/forms/input/input-shared.d.ts +12 -0
  81. package/dist/components/forms/input/input.styles.js +1 -1
  82. package/dist/components/forms/input/time-input.class.d.ts +6 -0
  83. package/dist/components/forms/input/time-input.styles.js +1 -1
  84. package/dist/components/forms/locale-picker/locale-picker.class.d.ts +11 -0
  85. package/dist/components/forms/locale-picker/locale-picker.styles.js +1 -1
  86. package/dist/components/forms/otp-input/otp-input.class.d.ts +6 -0
  87. package/dist/components/forms/phone-input/phone-input.class.d.ts +6 -0
  88. package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
  89. package/dist/components/forms/radio/radio-group.class.d.ts +24 -2
  90. package/dist/components/forms/radio/radio-group.class.js +2 -2
  91. package/dist/components/forms/radio/radio-group.styles.js +1 -1
  92. package/dist/components/forms/rubric-form/rubric-form.class.d.ts +4 -0
  93. package/dist/components/forms/select/select.class.d.ts +13 -0
  94. package/dist/components/forms/select/select.class.js +1 -1
  95. package/dist/components/forms/select/select.styles.js +1 -1
  96. package/dist/components/forms/signature-pad/signature-pad.class.d.ts +6 -0
  97. package/dist/components/forms/signature-pad/signature-pad.styles.js +1 -1
  98. package/dist/components/forms/slider/slider.class.d.ts +28 -2
  99. package/dist/components/forms/slider/slider.class.js +3 -3
  100. package/dist/components/forms/slider/slider.styles.js +1 -1
  101. package/dist/components/forms/switch/switch.class.d.ts +2 -0
  102. package/dist/components/forms/switch/switch.styles.js +1 -1
  103. package/dist/components/forms/textarea/textarea.class.d.ts +8 -0
  104. package/dist/components/forms/textarea/textarea.styles.js +1 -1
  105. package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +2 -0
  106. package/dist/components/forms/token-input/token-input.class.d.ts +96 -18
  107. package/dist/components/forms/token-input/token-input.class.js +11 -8
  108. package/dist/components/forms/token-input/token-input.styles.js +1 -1
  109. package/dist/components/forms/unit-picker/unit-picker.class.d.ts +2 -0
  110. package/dist/components/layout/app-rail/app-rail.class.d.ts +3 -0
  111. package/dist/components/layout/app-rail/app-rail.styles.js +1 -1
  112. package/dist/components/layout/button-group/button-group.class.d.ts +4 -0
  113. package/dist/components/layout/button-group/button-group.class.js +1 -1
  114. package/dist/components/layout/card/card.class.d.ts +15 -1
  115. package/dist/components/layout/card/card.styles.js +1 -1
  116. package/dist/components/layout/details/details.class.d.ts +6 -0
  117. package/dist/components/layout/details/details.styles.js +1 -1
  118. package/dist/components/layout/filter-bar/filter-bar.class.d.ts +6 -0
  119. package/dist/components/layout/filter-bar/filter-bar.styles.js +1 -1
  120. package/dist/components/layout/index.d.ts +1 -1
  121. package/dist/components/layout/index.js +1 -1
  122. package/dist/components/layout/menu/dropdown-item.class.d.ts +8 -2
  123. package/dist/components/layout/menu/dropdown-item.class.js +1 -1
  124. package/dist/components/layout/menu/menu-item.class.d.ts +7 -0
  125. package/dist/components/layout/menu/menu-item.styles.js +1 -1
  126. package/dist/components/layout/menu/menu-label.class.d.ts +5 -0
  127. package/dist/components/layout/menu/menu-label.class.js +1 -1
  128. package/dist/components/layout/menu/menu.class.d.ts +3 -0
  129. package/dist/components/layout/menu/menu.styles.js +1 -1
  130. package/dist/components/layout/page/page.class.d.ts +9 -1
  131. package/dist/components/layout/page/page.class.js +2 -2
  132. package/dist/components/layout/segmented/segmented.class.d.ts +22 -3
  133. package/dist/components/layout/segmented/segmented.class.js +3 -4
  134. package/dist/components/layout/segmented/segmented.styles.js +1 -1
  135. package/dist/components/layout/stepper/step.class.d.ts +89 -0
  136. package/dist/components/layout/stepper/step.class.js +18 -0
  137. package/dist/components/layout/stepper/step.styles.js +1 -0
  138. package/dist/components/layout/stepper/stepper.class.d.ts +106 -13
  139. package/dist/components/layout/stepper/stepper.class.js +6 -2
  140. package/dist/components/layout/stepper/stepper.styles.js +1 -1
  141. package/dist/components/layout/tab-group/tab-group.class.d.ts +10 -1
  142. package/dist/components/layout/tab-group/tab-group.class.js +1 -1
  143. package/dist/components/layout/tab-group/tab-group.styles.js +1 -1
  144. package/dist/components/layout/tab-group/tab-panel.class.d.ts +1 -0
  145. package/dist/components/layout/tab-group/tab-panel.class.js +1 -1
  146. package/dist/components/layout/tab-group/tab.class.d.ts +4 -0
  147. package/dist/components/layout/widget/widget.class.d.ts +1 -0
  148. package/dist/components/layout/widget/widget.styles.js +1 -1
  149. package/dist/components/lr-code-block-core.d.ts +1 -1
  150. package/dist/components/lr-code-block.d.ts +1 -1
  151. package/dist/components/lr-counter.d.ts +1 -0
  152. package/dist/components/lr-counter.js +1 -0
  153. package/dist/components/lr-lightbox-item.d.ts +1 -0
  154. package/dist/components/lr-lightbox-item.js +1 -0
  155. package/dist/components/lr-lightbox.d.ts +1 -1
  156. package/dist/components/lr-lightbox.js +1 -1
  157. package/dist/components/lr-number-ticker.d.ts +1 -0
  158. package/dist/components/lr-number-ticker.js +1 -0
  159. package/dist/components/lr-step.d.ts +1 -0
  160. package/dist/components/lr-step.js +1 -0
  161. package/dist/components/media/file-input/file-input.class.d.ts +7 -1
  162. package/dist/components/media/file-input/file-input.class.js +2 -2
  163. package/dist/components/media/file-input/file-input.styles.js +1 -1
  164. package/dist/components/media/index.d.ts +1 -1
  165. package/dist/components/media/index.js +1 -1
  166. package/dist/components/media/lightbox/lightbox-item.class.d.ts +57 -0
  167. package/dist/components/media/lightbox/lightbox-item.class.js +9 -0
  168. package/dist/components/media/lightbox/lightbox-item.styles.js +1 -0
  169. package/dist/components/media/lightbox/lightbox.class.d.ts +90 -20
  170. package/dist/components/media/lightbox/lightbox.class.js +17 -12
  171. package/dist/components/media/lightbox/lightbox.styles.js +1 -1
  172. package/dist/components/media/map/map-anchor-avoid.js +1 -1
  173. package/dist/components/media/map/map-drawing-controller.js +1 -1
  174. package/dist/components/media/map/map.class.d.ts +137 -7
  175. package/dist/components/media/map/map.class.js +6 -6
  176. package/dist/components/media/map/map.styles.js +1 -1
  177. package/dist/components/media/sequence-playback/sequence-playback.class.d.ts +9 -0
  178. package/dist/components/media/sequence-playback/sequence-playback.class.js +2 -2
  179. package/dist/components/media/sequence-playback/sequence-playback.styles.js +1 -1
  180. package/dist/components/media/video/video.class.d.ts +4 -0
  181. package/dist/components/media/video/video.class.js +2 -2
  182. package/dist/components/media/video/video.styles.js +1 -1
  183. package/dist/components/media/zoomable-frame/zoomable-frame.class.d.ts +15 -0
  184. package/dist/components/media/zoomable-frame/zoomable-frame.class.js +2 -2
  185. package/dist/components/overlays/badge/badge.class.d.ts +2 -0
  186. package/dist/components/overlays/badge/badge.styles.js +1 -1
  187. package/dist/components/overlays/badge/tag.class.d.ts +2 -0
  188. package/dist/components/overlays/badge/tag.class.js +1 -1
  189. package/dist/components/overlays/chip/chip-group.class.d.ts +31 -4
  190. package/dist/components/overlays/chip/chip-group.class.js +3 -3
  191. package/dist/components/overlays/context-menu/context-menu.class.d.ts +5 -0
  192. package/dist/components/overlays/context-menu/context-menu.class.js +1 -1
  193. package/dist/components/overlays/dialog/dialog.class.d.ts +36 -4
  194. package/dist/components/overlays/dialog/dialog.class.js +3 -3
  195. package/dist/components/overlays/dialog/dialog.styles.js +1 -1
  196. package/dist/components/overlays/dialog/prompt.d.ts +60 -0
  197. package/dist/components/overlays/dialog/prompt.js +1 -0
  198. package/dist/components/overlays/drawer/drawer.class.d.ts +16 -1
  199. package/dist/components/overlays/drawer/drawer.class.js +1 -1
  200. package/dist/components/overlays/empty/empty.class.d.ts +1 -0
  201. package/dist/components/overlays/empty/empty.class.js +1 -1
  202. package/dist/components/overlays/overlay/dropdown.class.d.ts +4 -0
  203. package/dist/components/overlays/overlay/dropdown.class.js +1 -1
  204. package/dist/components/overlays/overlay/overlay.styles.js +1 -1
  205. package/dist/components/overlays/overlay/popover.class.d.ts +29 -3
  206. package/dist/components/overlays/overlay/popover.class.js +2 -2
  207. package/dist/components/overlays/overlay/tooltip.class.d.ts +2 -0
  208. package/dist/components/overlays/overlay/tooltip.class.js +2 -2
  209. package/dist/components/overlays/toast/toast-item.class.d.ts +1 -0
  210. package/dist/components/overlays/toast/toast-item.class.js +1 -1
  211. package/dist/components/overlays/toast/toast-item.styles.js +1 -1
  212. package/dist/components/overlays/toast/toast.class.d.ts +6 -0
  213. package/dist/components/overlays/toast/toast.class.js +1 -1
  214. package/dist/components/utility/copy-button/copy-button.class.d.ts +2 -0
  215. package/dist/components/utility/copy-button/copy-button.class.js +2 -2
  216. package/dist/components/utility/counter/counter-time.d.ts +15 -0
  217. package/dist/components/utility/counter/counter-time.js +1 -0
  218. package/dist/components/utility/counter/counter.class.d.ts +67 -0
  219. package/dist/components/utility/counter/counter.class.js +1 -0
  220. package/dist/components/utility/counter/counter.styles.js +1 -0
  221. package/dist/components/utility/divider/divider.class.d.ts +21 -3
  222. package/dist/components/utility/divider/divider.class.js +5 -1
  223. package/dist/components/utility/export-button/export-button.class.d.ts +5 -0
  224. package/dist/components/utility/export-button/export-button.styles.js +1 -1
  225. package/dist/components/utility/icon/icon-library.d.ts +14 -1
  226. package/dist/components/utility/icon/icon-library.js +1 -1
  227. package/dist/components/utility/icon/icon-sprite.js +1 -0
  228. package/dist/components/utility/icon/icon.class.d.ts +4 -2
  229. package/dist/components/utility/icon/icon.class.js +2 -2
  230. package/dist/components/utility/index.d.ts +1 -1
  231. package/dist/components/utility/index.js +1 -1
  232. package/dist/components/utility/known-date/known-date.class.d.ts +4 -0
  233. package/dist/components/utility/number-ticker/number-ticker.class.d.ts +58 -0
  234. package/dist/components/utility/number-ticker/number-ticker.class.js +1 -0
  235. package/dist/components/utility/number-ticker/number-ticker.styles.js +1 -0
  236. package/dist/components/viewers/include/include.class.d.ts +4 -1
  237. package/dist/components/viewers/include/include.class.js +1 -1
  238. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.d.ts +10 -1
  239. package/dist/components/viewers/pdf-viewer/pdf-viewer.class.js +2 -2
  240. package/dist/components/viewers/pdf-viewer/pdf-viewer.styles.js +1 -1
  241. package/dist/custom-elements-jsx.d.ts +1 -1
  242. package/dist/event-classes.d.ts +2342 -0
  243. package/dist/event-classes.js +1 -0
  244. package/dist/events.d.ts +48 -22
  245. package/dist/framework-types.d.ts +2 -2
  246. package/dist/internal/all-defined-arguments.d.ts +19 -0
  247. package/dist/internal/all-defined-arguments.js +1 -0
  248. package/dist/internal/autoloader-tags.d.ts +1 -1
  249. package/dist/internal/autoloader-tags.js +1 -1
  250. package/dist/internal/checked-control-label.js +1 -1
  251. package/dist/internal/component-loaders.generated.js +1 -1
  252. package/dist/internal/dedent.js +7 -0
  253. package/dist/internal/default-strings/forms.generated.js +1 -1
  254. package/dist/internal/default-strings/layout.generated.js +1 -1
  255. package/dist/internal/dev-mode-attribute-warning.development.js +1 -1
  256. package/dist/internal/document-tokens.generated.js +3 -3
  257. package/dist/internal/form-control/chrome.styles.js +1 -1
  258. package/dist/internal/form-control.styles.js +1 -1
  259. package/dist/internal/interactive-control.styles.js +2 -2
  260. package/dist/internal/labeled-group.js +1 -1
  261. package/dist/internal/localization-runtime.d.ts +5 -0
  262. package/dist/internal/localization-runtime.js +1 -1
  263. package/dist/internal/localization-types.d.ts +1 -1
  264. package/dist/internal/localization.js +2 -2
  265. package/dist/internal/lyra-element.js +2 -2
  266. package/dist/internal/lyra-event.d.ts +22 -0
  267. package/dist/internal/lyra-event.js +1 -0
  268. package/dist/internal/overlay-shared.d.ts +5 -2
  269. package/dist/internal/overlay-shared.js +1 -1
  270. package/dist/internal/package-metadata.js +1 -1
  271. package/dist/internal/root-registration-allowlist.js +1 -1
  272. package/dist/internal/scoped-definitions.generated.js +1 -1
  273. package/dist/internal/shiki/core.d.ts +4 -1
  274. package/dist/internal/shiki/tokenize.js +1 -1
  275. package/dist/internal/srcset.js +1 -0
  276. package/dist/lyra.d.ts +1 -1
  277. package/dist/lyra.js +1 -1
  278. package/dist/ssr/all.d.ts +1 -1
  279. package/dist/ssr/all.js +1 -1
  280. package/dist/ssr.d.ts +5 -5
  281. package/dist/ssr.js +1 -1
  282. package/dist/styles/native.css +1 -1
  283. package/dist/styles/palette.css +1 -0
  284. package/dist/styles/tokens-root.css +1 -1
  285. package/dist/styles/utilities.css +1 -1
  286. package/dist/svelte.d.ts +1 -1
  287. package/dist/testing/happy-dom-shims.d.ts +11 -2
  288. package/dist/testing/happy-dom-shims.js +1 -1
  289. package/dist/testing/index.d.ts +1 -1
  290. package/dist/testing/index.js +1 -1
  291. package/dist/testing/lyra-tag-event-map.d.ts +2 -2
  292. package/dist/testing/lyra-tag-event-map.js +1 -1
  293. package/dist/theme-core.css +1 -1
  294. package/dist/theme.css +1 -1
  295. package/dist/utilities/defined.d.ts +10 -1
  296. package/dist/utilities/defined.js +1 -1
  297. package/dist/utilities/form.d.ts +9 -0
  298. package/dist/utilities/form.js +1 -0
  299. package/dist/utilities/index.d.ts +1 -1
  300. package/dist/utilities/index.js +1 -1
  301. package/dist/vue.d.ts +1 -1
  302. package/llms/components/lr-app-rail.md +4 -2
  303. package/llms/components/lr-badge.md +4 -4
  304. package/llms/components/lr-bar-chart.md +1 -1
  305. package/llms/components/lr-box-plot.md +6 -1
  306. package/llms/components/lr-bubble-chart.md +1 -1
  307. package/llms/components/lr-budget-meter.md +2 -2
  308. package/llms/components/lr-button-group.md +7 -3
  309. package/llms/components/lr-button.md +11 -1
  310. package/llms/components/lr-card.md +11 -1
  311. package/llms/components/lr-chart.md +21 -7
  312. package/llms/components/lr-checkbox-group.md +11 -1
  313. package/llms/components/lr-chip.md +11 -1
  314. package/llms/components/lr-code-block-core.md +36 -8
  315. package/llms/components/lr-code-block.md +45 -6
  316. package/llms/components/lr-code-editor.md +11 -1
  317. package/llms/components/lr-color-picker.md +17 -4
  318. package/llms/components/lr-combobox.md +62 -6
  319. package/llms/components/lr-context-menu.md +5 -3
  320. package/llms/components/lr-copy-button.md +2 -1
  321. package/llms/components/lr-counter.md +60 -0
  322. package/llms/components/lr-country-picker.md +5 -1
  323. package/llms/components/lr-currency-picker.md +5 -1
  324. package/llms/components/lr-date-input.md +1 -1
  325. package/llms/components/lr-date-picker.md +25 -1
  326. package/llms/components/lr-details.md +6 -2
  327. package/llms/components/lr-dialog.md +72 -8
  328. package/llms/components/lr-divider.md +14 -5
  329. package/llms/components/lr-doughnut-chart.md +1 -1
  330. package/llms/components/lr-drawer.md +26 -7
  331. package/llms/components/lr-dropdown-item.md +1 -1
  332. package/llms/components/lr-dropdown.md +8 -4
  333. package/llms/components/lr-emoji-picker.md +10 -1
  334. package/llms/components/lr-empty.md +3 -2
  335. package/llms/components/lr-export-button.md +5 -2
  336. package/llms/components/lr-file-input.md +13 -1
  337. package/llms/components/lr-filter-bar.md +6 -2
  338. package/llms/components/lr-graph-query-builder.md +10 -1
  339. package/llms/components/lr-heatmap.md +20 -3
  340. package/llms/components/lr-histogram.md +7 -2
  341. package/llms/components/lr-icon-button.md +3 -1
  342. package/llms/components/lr-icon.md +8 -0
  343. package/llms/components/lr-include.md +3 -0
  344. package/llms/components/lr-input.md +9 -1
  345. package/llms/components/lr-known-date.md +10 -1
  346. package/llms/components/lr-lightbox-item.md +14 -0
  347. package/llms/components/lr-lightbox.md +84 -5
  348. package/llms/components/lr-line-chart.md +7 -2
  349. package/llms/components/lr-lite-chart.md +3 -2
  350. package/llms/components/lr-locale-picker.md +17 -1
  351. package/llms/components/lr-map.md +122 -11
  352. package/llms/components/lr-markdown-core.md +15 -4
  353. package/llms/components/lr-markdown.md +13 -4
  354. package/llms/components/lr-menu-item.md +1 -1
  355. package/llms/components/lr-menu-label.md +5 -2
  356. package/llms/components/lr-menu.md +21 -6
  357. package/llms/components/lr-model-select.md +11 -1
  358. package/llms/components/lr-native-time-input.md +11 -1
  359. package/llms/components/lr-number-input.md +11 -1
  360. package/llms/components/lr-number-ticker.md +55 -0
  361. package/llms/components/lr-otp-input.md +11 -1
  362. package/llms/components/lr-page.md +7 -1
  363. package/llms/components/lr-pagination.md +18 -0
  364. package/llms/components/lr-pdf-viewer.md +6 -1
  365. package/llms/components/lr-phone-input.md +11 -1
  366. package/llms/components/lr-pie-chart.md +1 -1
  367. package/llms/components/lr-polar-area-chart.md +1 -1
  368. package/llms/components/lr-popover.md +25 -5
  369. package/llms/components/lr-radar-chart.md +1 -1
  370. package/llms/components/lr-radio-group.md +11 -1
  371. package/llms/components/lr-rubric-form.md +7 -1
  372. package/llms/components/lr-scatter-chart.md +1 -1
  373. package/llms/components/lr-segmented.md +20 -2
  374. package/llms/components/lr-select.md +10 -2
  375. package/llms/components/lr-sequence-playback.md +8 -2
  376. package/llms/components/lr-signature-pad.md +8 -1
  377. package/llms/components/lr-slider.md +17 -4
  378. package/llms/components/lr-stat.md +20 -5
  379. package/llms/components/lr-step.md +61 -0
  380. package/llms/components/lr-stepper.md +64 -8
  381. package/llms/components/lr-suggestion-chips.md +3 -2
  382. package/llms/components/lr-switch.md +4 -3
  383. package/llms/components/lr-tab-group.md +10 -3
  384. package/llms/components/lr-tab-panel.md +2 -2
  385. package/llms/components/lr-table.md +87 -8
  386. package/llms/components/lr-tag.md +1 -1
  387. package/llms/components/lr-textarea.md +17 -1
  388. package/llms/components/lr-thread-list.md +4 -2
  389. package/llms/components/lr-time-input.md +8 -1
  390. package/llms/components/lr-time-zone-picker.md +5 -1
  391. package/llms/components/lr-timeline-item.md +1 -1
  392. package/llms/components/lr-timeline.md +38 -1
  393. package/llms/components/lr-toast-item.md +1 -1
  394. package/llms/components/lr-toast.md +7 -2
  395. package/llms/components/lr-token-input.md +64 -8
  396. package/llms/components/lr-tooltip.md +3 -3
  397. package/llms/components/lr-tree-item.md +1 -1
  398. package/llms/components/lr-tree.md +2 -1
  399. package/llms/components/lr-unit-picker.md +5 -1
  400. package/llms/components/lr-video.md +5 -4
  401. package/llms/components/lr-voice-picker.md +8 -1
  402. package/llms/components/lr-widget.md +2 -2
  403. package/llms/components/lr-zoomable-frame.md +8 -0
  404. package/llms/index.md +145 -141
  405. package/llms/migration.md +20 -12
  406. package/llms/peers.md +2 -2
  407. package/llms/shared/events-and-types.md +36 -0
  408. package/llms/shared/imports-and-registration.md +60 -1
  409. package/llms/shared/native-styles-and-utilities.md +109 -3
  410. package/llms/shared/styles-and-tokens.md +2 -2
  411. package/llms/shared/testing-and-utilities.md +21 -0
  412. package/llms/shared.md +227 -6
  413. package/llms/tokens.md +6 -1
  414. package/llms.txt +3 -3
  415. package/locales.json +1 -1
  416. package/package.json +38 -9
  417. package/registrations.json +1 -1
  418. package/skills/compose-lyra-interfaces/SKILL.md +1 -1
  419. package/skills/lyra-ui/SKILL.md +1 -1
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 17 parts, 33 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 17 parts, 40 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Tokens by part** (prefer these over a `::part()` rule) `input-wrapper`: `--lr-input-gap`
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
@@ -17,6 +17,8 @@
17
17
 
18
18
  ## `lr-input`
19
19
 
20
+ Field text can use tabular figures with `--lr-input-font-variant-numeric: tabular-nums` (default `inherit`); `lr-number-input` shares the sheet and honours it. `--lr-input-line-height` (default `inherit`) sets the field text line height. Numeric content (`type="number"`, and `lr-number-input` in either form) renders left to right so digits and signs keep their order; `--lr-input-number-direction` (default `ltr`) changes that inline direction, for example `rtl` to start the number at the right edge of a right-to-left form. The component never sets `dir` itself. Every form-control label also reads `--lr-form-control-label-line-height` (default `inherit`) beside the size, weight and colour tokens.
21
+
20
22
  `labelPlacement: 'top' | 'start' = 'top'` (attribute `label-placement`, reflected) puts the label in
21
23
  an inline-start column, sized by `--lr-form-control-label-inline-size` (default `30%`) and
22
24
  `--lr-form-control-label-gap` (default `var(--lr-space-m)`), returning above the field below
@@ -481,3 +483,9 @@ first field's, referenced here by id.
481
483
  **Additional API surface:**
482
484
 
483
485
  - `click()` — Activates the internal input.
486
+
487
+ Further custom properties:
488
+
489
+ - `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
490
+ - `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
491
+ - `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 16 parts, 17 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 16 parts, 21 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Tokens by part** (prefer these over a `::part()` rule) `field-input`: `--lr-known-date-field-padding-block`, `--lr-known-date-field-padding-inline`, `--lr-known-date-field-font-size`, `--lr-known-date-field-min-height`, `--lr-known-date-field-height`, `--lr-known-date-invalid-border-color`; `legend`: `--lr-form-control-required-content`
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
@@ -187,6 +187,9 @@ The two height knobs work as a pair on `[part='field-input']`, the same way
187
187
  it. Because the component never declares it, it can be set inline, from an ancestor, or from an
188
188
  outer-tree rule.
189
189
 
190
+ More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
191
+ height of the field label.
192
+
190
193
  **Known gotchas:**
191
194
 
192
195
  - Field _order_ is derived from the locale by formatting a probe date (Jan 2 2026) with
@@ -213,3 +216,9 @@ The two height knobs work as a pair on `[part='field-input']`, the same way
213
216
  **Additional API surface:**
214
217
 
215
218
  - `click()` — Activates the first native field in locale order.
219
+
220
+ Further custom properties:
221
+
222
+ - `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
223
+ - `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
224
+ - `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
@@ -0,0 +1,14 @@
1
+ <!-- GENERATED by scripts/build-llms.mjs from llms/media.md — do not edit this file. -->
2
+
3
+ # `lr-lightbox-item`
4
+
5
+ - **Import** `import '@aceshooting/lyra-ui/components/lr-lightbox-item.js';` (stable tag alias; registers the tag)
6
+ - **Class** `LyraLightboxItem`, also available unregistered from `@aceshooting/lyra-ui/components/media/lightbox/lightbox-item.class.js`
7
+ - **Family** `components/media/` — see `llms/index.md` for its siblings
8
+ - **Status** `stable` since `32.1.0` — see the maturity and deprecation policy in `llms/shared.md`
9
+ - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
+ - **Deprecations** none
11
+ - **Optional peers** none
12
+ - **Themeable via** 4 parts, 0 custom properties — see `lr-lightbox.md`
13
+ - **Documented with** `lr-lightbox`: see [lr-lightbox.md](./lr-lightbox.md).
14
+ - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
@@ -9,7 +9,8 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 20 parts, 8 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 33 parts, 22 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
+ - **Documented with** `lr-lightbox-item` (same section below)
13
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
14
15
 
15
16
  ---
@@ -45,9 +46,8 @@ A lightbox opened outside an existing native `dialog.showModal()` stays interact
45
46
  logical index while its descriptor and image load.
46
47
  - `loop: boolean = false` (reflected) — wraps prev/next past the ends.
47
48
  - `lightDismiss: boolean = false` (attribute `light-dismiss`) — opt in to backdrop dismissal. Off by default, matching `lr-dialog`.
48
- - `withoutCounter: boolean = false` (attribute `without-counter`, **not reflected**) — hides the
49
- visible `[part="counter"]`; the polite position announcement stays active. Nothing is ever
50
- written back to the attribute — no stylesheet or selector keys off it.
49
+ - `withoutCounter: boolean = false` (attribute `without-counter`, not reflected) — hides the
50
+ visible `[part="counter"]`; the polite position announcement stays active.
51
51
  Spoken position updates remain active when the counter is hidden: the shadow
52
52
  `[part="live-region"]` is only an `aria-hidden` text mirror, while announcements append to the
53
53
  shared light-DOM polite sink. Announcements stay silent when the lightbox or a composed ancestor
@@ -66,6 +66,13 @@ A lightbox opened outside an existing native `dialog.showModal()` stays interact
66
66
  - `accessibleLabel: string | null = null` (attribute `aria-label`) — the dialog's accessible name.
67
67
  Blank labels use the localized `lightboxLabel` default.
68
68
 
69
+ More properties: `withThumbnails` (attribute `with-thumbnails`, default `false`): Shows a strip of
70
+ thumbnails for jumping between items (images or slotted items). Not available with `imageSource`,
71
+ which only loads the current image. `withoutNavigation` (attribute `without-navigation`, default
72
+ `false`): Hides the previous/next buttons. Swiping and the arrow keys still navigate. `withoutZoom`
73
+ (attribute `without-zoom`, default `false`): Disables zooming and removes the zoom button and the
74
+ embedded zoom controls.
75
+
69
76
  **Methods:** promise-based `show()`, `hide()`, and `close(reason?)`, plus `next()`, `previous()`, and
70
77
  `goTo(index)`. `show()`/`hide()` resolve after the successful rendered transition; a veto resolves
71
78
  without changing state. `goTo()` ignores a non-finite
@@ -111,7 +118,9 @@ object. Use
111
118
  `unmount`. `lr-index-change` (`detail: { index }`, fired
112
119
  for internally-driven navigation — a button, a keyboard shortcut, or `next()`/`previous()`/
113
120
  `goTo()` — and when a shrinking active collection normalizes the index; **not** when a consumer sets
114
- `index` directly); `lr-zoom-change` (`detail: {
121
+ `index` directly); `lr-item-change` (`detail: { index, previousIndex, item, previousItem }`, the
122
+ items `null` in data mode) fires alongside `lr-index-change` for the same navigations and, like it,
123
+ not when `index` is written directly; `lr-zoom-change` (`detail: {
115
124
  zoom }`) is not emitted by the lightbox itself — it bubbles up composed from the embedded frame.
116
125
 
117
126
  **Slots:** `actions` — extra toolbar buttons (download/share/delete), rendered in `[part="toolbar"]`
@@ -135,6 +144,19 @@ Source loading and error messages use `--lr-lightbox-status-color`, falling back
135
144
  `--lr-color-on-strong-overlay`. When the image collection shrinks, a listener for the resulting
136
145
  `lr-index-change` sees the newly rendered image.
137
146
 
147
+ Further CSS parts: `navigation-button`: Both the previous and the next button.
148
+ `navigation-button-next`: The same element as `next-button`. `navigation-button-previous`: The same
149
+ element as `previous-button`. `scroll-container`: The same element as `stage`. `slide`: The wrapper
150
+ around the current image or video. `surface`: The viewer's viewport layer. Only positioned and shown
151
+ while open (slotted mode). `thumbnail`: One thumbnail button in the strip. `thumbnail-active`: Added
152
+ to the current item's thumbnail. `thumbnails`: The thumbnail strip, rendered only with
153
+ `with-thumbnails`. `video`: The current video of a `type="video"` item. `zoom-button`: Toolbar
154
+ button that toggles between fitted and zoomed in. Rendered for slotted items only;
155
+ `images`/`imageSource` galleries keep the embedded `frame-controls`.
156
+
157
+ Each slotted `lr-lightbox-item` exposes its own `trigger`, `thumbnail-image`, `play-button` and
158
+ `play-glyph` parts, described with the slotted items below.
159
+
138
160
  **Themeable custom properties:** `--lr-lightbox-overlay-color` (default
139
161
  `var(--lr-color-overlay-strong)` — the backdrop scrim), `--lr-lightbox-control-bg` (default
140
162
  `var(--lr-color-neutral)`) and `--lr-lightbox-control-color` (default `var(--lr-color-on-neutral)`)
@@ -163,3 +185,60 @@ photo content.
163
185
  still observable through the before/after events and methods above.
164
186
 
165
187
  Set `--lr-lightbox-control-hover-bg` and `--lr-lightbox-control-hover-color` for hovered controls. Set `--lr-lightbox-control-active-bg` and `--lr-lightbox-control-active-color` for pressed controls.
188
+
189
+ ### `lr-lightbox` slotted items (`lr-lightbox-item`)
190
+
191
+ `<lr-lightbox>` also accepts `<lr-lightbox-item>` children (any depth, no nested lightbox), mirroring
192
+ `wa-lightbox`/`wa-lightbox-item`. `images`/`imageSource` keep working unchanged and take precedence
193
+ when set. With items the host stays inline and the viewer opens over the page.
194
+
195
+ ```html
196
+ <lr-lightbox label="Trip" with-thumbnails>
197
+ <lr-lightbox-item src="/photos/a-full.jpg" alt="Harbour" width="1600" height="900">
198
+ <img src="/photos/a-thumb.jpg" alt="Harbour" />
199
+ <span slot="caption">Harbour at dawn</span>
200
+ </lr-lightbox-item>
201
+ <lr-lightbox-item type="video" src="/clips/b.mp4" thumbnail="/clips/b.jpg" alt="Boat"></lr-lightbox-item>
202
+ </lr-lightbox>
203
+ ```
204
+
205
+ **`lr-lightbox-item`** — `type: 'image' | 'video' = 'image'` (reflected; video shows a play button),
206
+ `src` (the link target, so the gallery works without JavaScript and can be opened in a new tab; a modified
207
+ click is left to the browser), `srcset`/`sizes` (the lightbox loads the smallest candidate covering
208
+ the viewport or a single `px`/`vw` `sizes` length, else the largest), `alt` (defaults to the slotted
209
+ `img` alt), `caption`, `thumbnail` (strip image and the item's own image when nothing is slotted),
210
+ `width`/`height` (reserve space). Slots: default thumbnail, `caption` (text shown in the viewer),
211
+ `play-icon`. Parts: `trigger`, `thumbnail-image`, `play-button`. The `data-active` attribute marks the
212
+ current item while open. URLs are validated: `src` for the link with `safeLinkHref()` and all media
213
+ with `safeMediaSrc()`; a rejected `src` leaves a button-style trigger and the item out of the viewer.
214
+ An item with no `src` is activated with Enter/Space.
215
+
216
+ **Lightbox additions** — `with-thumbnails` (thumbnail strip, not with `imageSource`), `without-navigation`
217
+ (hides previous/next; arrow keys and swipe stay), `without-zoom` (no zoom button/controls; the toolbar zoom button exists for slotted items only), `label`
218
+ (reflected; names the dialog; a host `aria-label` wins), `items` and `currentItem` getters, `zoomIn()`/`zoomOut()`.
219
+ `lr-item-change` fires with every `lr-index-change` and adds `{ index, previousIndex, item, previousItem }`
220
+ (items are `null` in data mode); like `lr-index-change` it is not fired when `index` is written directly. Touch and pen swipes (not mouse) navigate, reversed under RTL, and are
221
+ off while zoomed; `pointercancel` abandons a swipe. A `type="video"` item plays in a native `<video>`
222
+ that pauses on slide change and close; zoom is unavailable for video. Slots `close-icon`,
223
+ `previous-icon`, `next-icon`, `zoom-in-icon`, `zoom-out-icon`. Added part aliases: `dialog` (panel),
224
+ `scroll-container` (stage), `image` (the zoomable `frame`),
225
+ `navigation-button`/`navigation-button-previous`/`navigation-button-next`, plus `surface`, `slide`, `video`, `zoom-button`, `thumbnails`, `thumbnail`, `thumbnail-active`.
226
+ Match them with `[part~="…"]` when querying.
227
+ Motion: `--show-duration`/`--hide-duration` (or `--lr-lightbox-panel-duration`, default
228
+ `--lr-duration-base`) drive the open/close and slide animations, which are flattened under
229
+ `prefers-reduced-motion`; `lr-after-show`/`lr-after-hide` keep their render-based timing and the motion
230
+ runs on after them (the host stays painted with `data-closing` until the exit motion ends).
231
+ `--slide-gap` (`--lr-lightbox-slide-gap`), `--thumbnail-size` (`--lr-lightbox-thumbnail-size`) and
232
+ `--media-border-radius` (`--lr-lightbox-media-radius`) style slides and the strip.
233
+ Upstream-named styling properties: `--backdrop-color` (scrim), `--backdrop-filter` (default `none`,
234
+ e.g. `blur(1rem)`), `--controls-background` and `--controls-color` (controls, counter, caption) and
235
+ `--spacing` (gap between toolbar, media, caption and strip; default `var(--lr-space-s)`); each
236
+ `--lr-lightbox-*` token wins over its alias. Custom states: `lr-lightbox:state(open)`,
237
+ `:state(zoomed)`; on items `lr-lightbox-item:state(active)` (current item while open),
238
+ `:state(empty)` (nothing slotted, no `thumbnail`; hidden on the page) and `:state(morphing)` (while
239
+ the open/close motion runs for that item).
240
+
241
+ **CSS parts:** `trigger` (the link, or button-like anchor, that wraps the thumbnail and opens the
242
+ lightbox), `thumbnail-image` (the image rendered from `thumbnail` when nothing is slotted),
243
+ `play-button` (the play button shown over a video's thumbnail) and `play-glyph` (the default play
244
+ glyph inside the `play-icon` slot).
@@ -9,8 +9,8 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [charts](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/charts.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** `chart.js`, `chartjs-plugin-annotation`, `chartjs-plugin-datalabels`, `chartjs-plugin-zoom` — see `llms/peers.md`
12
- - **Themeable via** 19 parts, 52 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
- - **Tokens by part** (prefer these over a `::part()` rule) `canvas`: `--lr-chart-canvas-hover-outline-color`, `--lr-chart-canvas-hover-outline-width`; `legend-swatch`: `--lr-chart-pattern-step`
12
+ - **Themeable via** 19 parts, 54 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
+ - **Tokens by part** (prefer these over a `::part()` rule) `canvas`: `--lr-chart-canvas-hover-outline-color`, `--lr-chart-canvas-hover-outline-width`; `center`: `--lr-chart-legend-justify`; `legend-swatch`: `--lr-chart-pattern-step`
14
14
  - **Documented with** `lr-bar-chart`, `lr-pie-chart`, `lr-doughnut-chart`, `lr-radar-chart`, `lr-polar-area-chart`, `lr-bubble-chart`, `lr-scatter-chart` (same section below)
15
15
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
16
16
 
@@ -130,4 +130,9 @@ together. The mirrored hooks are `--border-color-1`,
130
130
  for bubble radius, and optional `label` for the point-level accessible/event/export label; no
131
131
  runtime cast is needed.
132
132
 
133
+ Further custom properties:
134
+
135
+ - `--lr-chart-legend-item-line-height` (default `inherit`): Line height of each legend item.
136
+ - `--lr-chart-legend-justify` (default `normal`): `justify-content` of the legend row, for example `center` or `flex-end`.
137
+
133
138
  ---
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md); family-wide breaking-change summaries: [charts](https://github.com/aceshooting/lyra-ui/blob/main/packages/lyra-ui/llms/charts.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 21 parts, 33 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 21 parts, 35 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Tokens by part** (prefer these over a `::part()` rule) `legend-swatch`: `--lr-chart-pattern-step`
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
@@ -403,7 +403,8 @@ without moving the library-wide ramp; `--lr-chart-legend-side-max` (default
403
403
  `--lr-chart-legend-gap` (default `var(--lr-space-s)`), `--lr-chart-legend-padding` (default
404
404
  `var(--lr-space-xs)`), `--lr-chart-legend-font-size` (default `var(--lr-font-size-xs)`),
405
405
  `--lr-chart-legend-swatch-size` (default `var(--lr-size-0-7em)`) and
406
- `--lr-chart-legend-swatch-radius` (default `var(--lr-radius-xs)`) restyle the legend without
406
+ `--lr-chart-legend-swatch-radius` (default `var(--lr-radius-xs)`), `--lr-chart-legend-justify`
407
+ (default `center`) and `--lr-chart-legend-item-line-height` (default `inherit`) restyle the legend without
407
408
  `::part()` rules; `--lr-lite-chart-selected-outline-color` (default
408
409
  `var(--lr-color-brand)`) — the stroke drawn on
409
410
  selected `[part='bar']` and `[part='point']` marks whose category index is in `selectedIndices`;
@@ -9,13 +9,19 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 18 parts, 35 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 18 parts, 41 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
14
14
 
15
15
  ---
16
16
 
17
17
  ## `lr-locale-picker`
18
18
 
19
+ `--lr-locale-picker-trigger-radius` rounds the trigger only; unset it follows `--lr-locale-picker-radius`, which keeps rounding the listbox and options.
20
+
21
+ `--lr-locale-picker-listbox-min-inline-size` (default `var(--lr-size-12rem)`) is the options
22
+ popover's minimum inline size, still capped by the viewport, the space beside the trigger and the
23
+ popover's `28rem` maximum.
24
+
19
25
  Under a coarse pointer the editable text is floored at `--lr-form-control-touch-font-size-min`
20
26
  (default `16px`; `0px` opts out) so mobile Safari does not zoom on focus; see "Touch font floor".
21
27
 
@@ -274,6 +280,9 @@ default when nothing is set. There is no per-instance `positioning-strategy` pro
274
280
  `<lr-locale-picker>`; set the custom property on `:root`, a theme, or one clipping ancestor to
275
281
  change every unset locale picker beneath it.
276
282
 
283
+ More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
284
+ height of the field label.
285
+
277
286
  **Optional peer deps:** none directly — each row's `<lr-flag>` degrades to an empty render (no
278
287
  peer warning duplication; `lr-flag` itself already logs one) when the optional
279
288
  `@aceshooting/lyra-flags` package isn't installed and `withoutFlags` is left off.
@@ -345,3 +354,10 @@ only once it has registered the requested messages; it must not change the activ
345
354
  - `--lr-locale-picker-option-selected-color` — Selected option text. Default: `var(--lr-color-brand)`.
346
355
 
347
356
  The start-placed label aligns to the first line of the field, measured with `--lr-form-control-height`.
357
+
358
+ Further custom properties:
359
+
360
+ - `--lr-form-control-label-block-gap` (default `var(--lr-space-xs)`): Space between a label above the field and the field, in top placement and once a `label-placement="start"` row collapses.
361
+ - `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
362
+ - `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
363
+ - `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
@@ -9,8 +9,8 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** `@aceshooting/lyra-map`, `dompurify`, `maplibre-gl` — see `llms/peers.md`
12
- - **Themeable via** 93 parts, 52 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
- - **Tokens by part** (prefer these over a `::part()` rule) `anchor-body`: `--lr-map-anchor-close-reservation`; `anchor-close`: `--lr-map-anchor-close-reservation`; `popup-close-button`: `--lr-map-popup-close-button-active-bg`, `--lr-map-popup-close-button-active-color`, `--lr-map-popup-close-button-hover-bg`, `--lr-map-popup-close-button-hover-color`
12
+ - **Themeable via** 93 parts, 95 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
+ - **Tokens by part** (prefer these over a `::part()` rule) `anchor-body`: `--lr-map-anchor-close-reservation`; `anchor-close`: `--lr-map-anchor-close-reservation`; `initialization-activate`: `--lr-map-initialization-activate-label-display`; `initialization-activate-label`: `--lr-map-initialization-activate-label-display`; `initialization-placeholder`: `--lr-map-initialization-placeholder-bg`; `initialization-skeleton`: `--lr-map-initialization-skeleton-display`; `legend-disclosure`: `--lr-map-legend-disclosure-font-weight`, `--lr-map-legend-disclosure-min-height`, `--lr-map-legend-disclosure-padding`; `legend-group-heading`: `--lr-map-legend-group-heading-color`, `--lr-map-legend-group-heading-padding`; `legend-toggle`: `--lr-map-legend-toggle-font-weight`, `--lr-map-legend-toggle-min-height`, `--lr-map-legend-toggle-padding`; `popup-close-button`: `--lr-map-popup-close-button-active-bg`, `--lr-map-popup-close-button-active-color`, `--lr-map-popup-close-button-hover-bg`, `--lr-map-popup-close-button-hover-color`
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
16
16
  ---
@@ -52,8 +52,29 @@ for exceptions. `--lr-map-control-size` sizes each button (unset: content size a
52
52
  shorthand), `--lr-map-control-shadow`, `--lr-map-control-bg` (resting fill under the shared glass
53
53
  treatment) and `--lr-map-control-color` shape control groups and outlines; `--lr-map-control-hover-bg`
54
54
  and `--lr-map-control-active-bg` paint pointer states in every state (the action tokens no longer reach native controls);
55
- `--lr-map-control-gap` is the margin around each control. The attribution control takes
56
- `--lr-map-attribution-radius` and `--lr-map-attribution-border`.
55
+ `--lr-map-control-gap` is the margin around each control; `--lr-map-attribution-margin` (default
56
+ `--lr-map-control-gap`) gives the attribution control its own margin shorthand. The attribution control takes
57
+ `--lr-map-attribution-radius`, `--lr-map-attribution-border`, `--lr-map-attribution-padding`
58
+ (default `0 var(--lr-space-xs)`), `--lr-map-attribution-link-padding` (default `0`; each link keeps
59
+ its `--lr-size-24px` minimum box), `--lr-map-attribution-max-inline-size` (default `100%`, never
60
+ wider than the map less the control gaps), `--lr-map-attribution-font-family` (default `inherit`),
61
+ `--lr-map-attribution-font-size` (default `var(--lr-font-size-xs)`) and
62
+ `--lr-map-attribution-line-height` (default `inherit`). Its compact toggle takes
63
+ `--lr-map-attribution-toggle-size` (default `--lr-map-control-size`, then `--lr-icon-button-size`;
64
+ the compact control reserves the same room), `--lr-map-attribution-toggle-radius` (default
65
+ `--lr-map-control-radius`, then a pill) and `--lr-map-attribution-toggle-icon-size` (default
66
+ `var(--lr-size-1rem)`). A grouped zoom, compass or
67
+ geolocate stack takes group-level tokens on top: `--lr-map-control-group-radius` and
68
+ `--lr-map-control-group-border` (defaults: `--lr-map-control-radius` and `--lr-map-control-border`)
69
+ shape the group's outer edge, `--lr-map-control-button-radius` (default `inherit`, the group radius)
70
+ sets the buttons' own corners while the first and last button keep the group's outer corners, and
71
+ `--lr-map-control-divider` (border shorthand, default `var(--lr-border-width-thin) solid
72
+ var(--lr-color-border)`; `none` removes it) draws the line between buttons. The scale takes
73
+ `--lr-map-scale-bg` (default `--lr-map-control-bg`), `--lr-map-scale-radius` (default `0`),
74
+ `--lr-map-scale-border` (default `none`), `--lr-map-scale-padding-block` (default
75
+ `var(--lr-space-2xs)`; the block end adds the ruler's height), `--lr-map-scale-padding-inline`
76
+ (default `var(--lr-space-xs)`), `--lr-map-scale-font-size` (default `var(--lr-font-size-xs)`) and
77
+ `--lr-map-scale-color` (default `var(--lr-color-text)`).
57
78
 
58
79
  ```css
59
80
  lr-map.branded {
@@ -62,6 +83,14 @@ lr-map.branded {
62
83
  --lr-map-control-border: none;
63
84
  --lr-map-control-hover-bg: var(--lr-color-brand-quiet);
64
85
  }
86
+ /* One pill per group: rounded outer ends, square inner corners, a quiet divider. */
87
+ lr-map.pill-groups {
88
+ --lr-map-control-group-radius: var(--lr-radius-pill);
89
+ --lr-map-control-button-radius: 0;
90
+ --lr-map-control-divider: var(--lr-border-width-thin) solid var(--lr-color-border-subtle);
91
+ --lr-map-scale-radius: var(--lr-radius-pill);
92
+ --lr-map-scale-padding-inline: var(--lr-space-s);
93
+ }
65
94
  ```
66
95
 
67
96
  **Corner reservations:** when application chrome (a layers button, a sheet handle, a floating
@@ -71,6 +100,30 @@ header) owns part of a map edge, set `--lr-map-controls-inset-block-start`,
71
100
  control stacks inward on that logical edge (`inline-start` is the right edge under RTL), and the
72
101
  legend and the pick, drawing and scene bars clear the same space.
73
102
 
103
+ One corner alone takes `--lr-map-controls-<corner>-inset-block` and
104
+ `--lr-map-controls-<corner>-inset-inline` (`<corner>` is `top-left`, `top-right`, `bottom-left` or
105
+ `bottom-right`, the control position vocabulary; each default `0px`; that is `--lr-map-controls-top-left-inset-block`, `--lr-map-controls-top-left-inset-inline`, `--lr-map-controls-top-right-inset-block`, `--lr-map-controls-top-right-inset-inline`, `--lr-map-controls-bottom-left-inset-block`, `--lr-map-controls-bottom-left-inset-inline`, `--lr-map-controls-bottom-right-inset-block` and `--lr-map-controls-bottom-right-inset-inline`), before and after
106
+ construction. The block inset offsets the corner from its row's edge and the inline inset from its
107
+ column's edge; the left corners are the inline-start corners, so they sit at the right under RTL.
108
+ The control row grows with the corner, so the legend (also under `legendClearance = 'corner'`) and
109
+ the pick, drawing and scene bars keep clearing it.
110
+
111
+ ```css
112
+ /* Only the zoom stack moves down past an application search card. */
113
+ lr-map { --lr-map-controls-top-right-inset-block: 4rem; }
114
+ ```
115
+
116
+ `controlsAvoid?: readonly Element[]` (property only) measures that chrome instead: it is observed
117
+ like `anchorAvoid` (size, page scrolling, visual viewport, once per animation frame), each
118
+ element's overlap with the map is reserved on its cheapest logical edge and added to that edge's
119
+ `--lr-map-controls-inset-*`, so every corner stack, the legend and the bars clear it; the authored
120
+ inset then acts as the gap beyond the element. Clearing it, removing an element or disconnecting
121
+ the map releases the observers.
122
+
123
+ ```ts
124
+ map.controlsAvoid = [document.querySelector('.floating-search')!];
125
+ ```
126
+
74
127
  **Large spatial sources:** a catalog of a million logical geospatial records can stay in a
75
128
  host-owned spatial service. Supply a hosted vector style URL, or a style object with vector tile
76
129
  sources and layers, through `mapStyle`; the selected peer requests and renders tiles for the
@@ -587,10 +640,16 @@ implicitly reopen it unless `drawingCompleteBehavior = 'edit'` (attribute
587
640
  `drawing-complete-behavior`, reflected, default `'clear'`; an unsupported value normalizes to
588
641
  `'clear'`) is set: then the completed shape stays on the map as
589
642
  an edit session, opened synchronously right after `lr-map-draw-complete`, and finishing that edit
590
- commits and clears it. `drawingSticky = false` (reflected attribute `drawing-sticky`) set to `true`
643
+ commits and clears it. `drawingFinishBehavior = 'clear'` (attribute `drawing-finish-behavior`,
644
+ reflected; an unsupported value normalizes to `'clear'`) set to `'keep'` makes Finish
645
+ (`completeDrawing()`) on any edit session commit (`lr-map-draw-complete`) and keep the edit open,
646
+ so the committed shape stays visible and editable and each later Finish commits again; cancel,
647
+ Escape or `cancelDrawing()` ends it. `drawingSticky = false` (reflected attribute `drawing-sticky`) set to `true`
591
648
  keeps `drawMode` armed after a completion or a user cancel (cancel action, Escape,
592
- `cancelDrawing()`), or re-arms it when the edit opened by `'edit'` ends, so the next shape starts at
593
- once without listeners re-assigning `drawMode`. Pick mode, disabling and mode changes still disarm. Before the drawing runtime has loaded it returns `false` without reading the
649
+ `cancelDrawing()`), or re-arms it when the edit opened by `'edit'` ends (under `'keep'`, only once
650
+ it is cancelled), so the next shape starts at once without listeners re-assigning `drawMode`. The
651
+ sticky flag is read when that edit ends: clearing it while the edit is open leaves `drawMode` at
652
+ `'none'`. Pick mode, disabling and mode changes still disarm. Before the drawing runtime has loaded it returns `false` without reading the
594
653
  snapshot and starts the load; await `whenIdle()` and call it again. Keyboard vertex handles and
595
654
  pointer edits update the same session. Arrow keys move a focused vertex in screen direction in both
596
655
  LTR and RTL, because the map canvas is never mirrored.
@@ -635,7 +694,24 @@ consumer that moves `anchor-close` to the header corner through `::part(anchor-c
635
694
  `--lr-map-anchor-close-reservation` to pad that logical edge of `anchor-body`. For a rich card with
636
695
  a fixed header and scrolling details, prefer an `lr-map-anchor` child: its close button owns its own
637
696
  column at the block-start, inline-end corner, so the header never runs under it, and its `body`
638
- scrolls.
697
+ scrolls. To keep such a card in the `anchor` slot, set `anchorFill = false` (attribute `anchor-fill`,
698
+ reflected) to `true`: `anchor-body` stops scrolling and becomes a column that shrinks the slotted
699
+ card to the panel, so the card's own details region (`flex: 1 1 auto; min-block-size: 0;
700
+ overflow: auto`) scrolls with no wrapper. The body then reserves no close room; the slotted content
701
+ inherits `--lr-map-anchor-close-reservation`, so the card pads only its header with it:
702
+
703
+ ```html
704
+ <lr-map anchor-closable anchor-fill style="--lr-map-anchor-close-reservation: 2.5rem">
705
+ <article slot="anchor" style="display: flex; flex-direction: column; min-block-size: 0">
706
+ <h3 style="padding-inline-end: var(--lr-map-anchor-close-reservation)">Station 12</h3>
707
+ <div style="flex: 1 1 auto; min-block-size: 0; overflow: auto">Long details</div>
708
+ </article>
709
+ </lr-map>
710
+ ```
711
+
712
+ Move the close action into the reserved header corner with
713
+ `lr-map::part(anchor-close) { position: absolute; inset-block-start: 0; inset-inline-end: 0; }`;
714
+ the positioned `anchor` panel is its containing block.
639
715
 
640
716
  `anchorAvoid?: readonly Element[]` (property only) keeps anchors clear of application chrome
641
717
  without measuring it: the map observes each element's size, page scrolling and the visual
@@ -643,7 +719,9 @@ viewport (once per animation frame), intersects each with the map and reserves t
643
719
  cheapest logical edge (a full-width header reserves `blockStart`, a full-height side sheet its
644
720
  inline edge). The result is folded into `anchorSafeArea` edge by edge, the larger inset winning,
645
721
  for the `anchor` slot and every `lr-map-anchor` child without its own `safeArea`. Clearing it,
646
- removing an element or disconnecting the map releases the observers.
722
+ removing an element or disconnecting the map releases the observers. `anchorAvoidGap` (attribute
723
+ `anchor-avoid-gap`, CSS pixels, default `0`) keeps that much extra room beyond each edge an
724
+ obstacle reserves, so a panel never sits flush against it; edges no obstacle reserves stay zero.
647
725
 
648
726
  ```ts
649
727
  map.anchorAvoid = [document.querySelector('header.app-bar')!, document.querySelector('.search')!];
@@ -891,9 +969,38 @@ omittedCount, truncatedLabelCount, truncated }` result for the latest assignment
891
969
  drawing or scene bars share the map. An unsupported value normalizes to `'bottom-start'`. Size and type it with
892
970
  `--lr-map-legend-inset-block`, `--lr-map-legend-inset-inline`, `--lr-map-legend-max-inline-size`,
893
971
  `--lr-map-legend-max-block-size`, `--lr-map-legend-columns` (equal row columns, default 1),
894
- `--lr-map-legend-font-size`, `--lr-map-legend-gap`, `--lr-map-legend-padding`,
972
+ `--lr-map-legend-font-size`, `--lr-map-legend-gap`, `--lr-map-legend-row-gap` (rows of one list or
973
+ section only, default `--lr-map-legend-gap`), `--lr-map-legend-group-columns` (equal columns the
974
+ rows of one group flow into, default 1), `--lr-map-legend-padding`, `--lr-map-legend-border`
975
+ (border shorthand, default `var(--lr-border-width-thin) solid var(--lr-color-border-subtle)`),
895
976
  `--lr-map-legend-radius`, `--lr-map-legend-bg`, `--lr-map-legend-shadow`, `--lr-map-legend-color`
896
977
  and `--lr-map-legend-swatch-size` — the same suffixes `lr-heatmap` and `lr-chart` use.
978
+ `--lr-map-legend-toggle-padding` and `--lr-map-legend-disclosure-padding` (both default
979
+ `var(--lr-size-2px) var(--lr-space-xs)`) pad the interactive `legend-toggle` rows and the
980
+ `legend-disclosure` button; their minimum box stays the `--lr-icon-button-size` hit area, so
981
+ shrink that floor through `--lr-icon-button-size-scope` rather than a part rule, or set
982
+ `--lr-map-legend-toggle-min-height` and `--lr-map-legend-disclosure-min-height` (both default
983
+ `var(--lr-icon-button-size)`, never below `--lr-size-24px`). `--lr-map-legend-toggle-font-weight`
984
+ (default `inherit`) and `--lr-map-legend-disclosure-font-weight` (default
985
+ `var(--lr-font-weight-semibold)`) set their weight, and `--lr-map-legend-group-heading-color`
986
+ (default `var(--lr-color-text-quiet)`) and `--lr-map-legend-group-heading-padding` (default `0`)
987
+ style each `legend-group-heading`.
988
+ - `legendFlow: LyraMapLegendFlow = 'row'` (attribute `legend-flow`, reflected) — `'row' | 'column'`,
989
+ the order legend rows fill `--lr-map-legend-columns`. `'row'` places them across each row of an
990
+ equal-column grid; `'column'` fills each column top to bottom before the next, so a sorted key
991
+ reads down, and each group heading spans every column above its own rows. In `'column'` flow
992
+ `--lr-map-legend-group-columns` does not apply; unsupported values normalize to `'row'`.
993
+ - `legendClearance: LyraMapLegendClearance = 'row'` (attribute `legend-clearance`, reflected) — which
994
+ native control corners the legend clears. `'row'` lifts it above the tallest corner of the top and
995
+ bottom rows; `'corner'` clears only the corners in its own logical column, so a `bottom-start`
996
+ legend sits just above the bottom-start controls even when a tall zoom and geolocate stack fills
997
+ the bottom-end corner. Centred `top` and `bottom` placements always clear the whole row. Keep a
998
+ `'corner'` legend narrow enough (`--lr-map-legend-max-inline-size`) not to reach the other column.
999
+ `'none'` reserves nothing for the controls: `--lr-map-legend-inset-block` and
1000
+ `--lr-map-legend-inset-inline` measure from the map edge alone (no control rows, no
1001
+ `--lr-map-controls-inset-*`), so `legend-clearance="none"` with
1002
+ `--lr-map-legend-inset-block: 48px` keeps the panel in a 48px footer lane; the panel may then
1003
+ overlap native controls. An unsupported value normalizes to `'row'`.
897
1004
  - `legendOpen: boolean = true` (attribute `legend-open`, reflected) — whether a `legendCollapsible`
898
1005
  panel is expanded. It defaults **open**, so adding only `legendCollapsible` never hides an existing
899
1006
  key, and it does nothing at all while `legendCollapsible` is unset. Because it is a
@@ -1723,7 +1830,11 @@ control installed or one failed; a later `controls` change replaces them and dis
1723
1830
  Already installed controls gain no outline. Outlines paint with the same glass or solid surface material
1724
1831
  as the installed controls, so the swap does not change their fill. For `initialization="interaction"`,
1725
1832
  `initialization-activate` starts the map and `initialization-activate-label` styles its visible label.
1726
- Hiding that label retains the button's localized accessible name. Pick mode renders `pick-controls` with
1833
+ Hiding that label retains the button's localized accessible name. Three tokens cover the same
1834
+ without part rules: `--lr-map-initialization-placeholder-bg` (default `transparent`) fills the
1835
+ placeholder, `--lr-map-initialization-skeleton-display: none` suppresses the skeleton (default
1836
+ `inline-block`), and `--lr-map-initialization-activate-label-display: none` hides the visible prompt
1837
+ (default `inline`) while the covering button keeps its name. Pick mode renders `pick-controls` with
1727
1838
  `pick-center` and `pick-cancel`; draw mode renders `drawing-controls` with `drawing-add`,
1728
1839
  `drawing-undo`, `drawing-complete`, `drawing-cancel` and the `drawing-status` vertex count (plus
1729
1840
  `drawing-summary` with `drawingMeasurements`; after the controls first render, later changes to
@@ -9,8 +9,8 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** `dompurify`, `katex`, `marked`, `shiki` — see `llms/peers.md`
12
- - **Themeable via** 24 parts, 49 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
- - **Tokens by part** (prefer these over a `::part()` rule) `code-block`: `--lr-code-block-tab-size`, `--lr-markdown-code-bg`, `--lr-markdown-code-block-padding`, `--lr-markdown-code-block-radius`; `content`: `--lr-markdown-font-mono`, `--lr-markdown-max-height`; `table`: `--lr-markdown-table-header-bg`
12
+ - **Themeable via** 24 parts, 57 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
+ - **Tokens by part** (prefer these over a `::part()` rule) `code-block`: `--lr-code-block-tab-size`, `--lr-markdown-code-bg`, `--lr-markdown-code-block-font-size`, `--lr-markdown-code-block-line-height`, `--lr-markdown-code-block-padding`, `--lr-markdown-code-block-radius`; `content`: `--lr-markdown-font-mono`, `--lr-markdown-max-height`; `table`: `--lr-markdown-table-header-bg`
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
16
16
  ---
@@ -106,7 +106,8 @@ anchor-jump message), `content` (respects `max-height`), `heading`, `paragraph`,
106
106
 
107
107
  **Themeable custom properties:** identical to `<lr-markdown>`'s own tokens, including
108
108
  `--lr-markdown-content-min-size`, the three `--lr-markdown-code-copy-bg*` state tokens and the prose
109
- tokens (`--lr-markdown-block-gap`, `--lr-markdown-heading-1-font-size`,
109
+ tokens (`--lr-markdown-block-gap`, `--lr-markdown-heading-margin-block-start`,
110
+ `--lr-markdown-heading-1-font-size`,
110
111
  `--lr-markdown-heading-2-font-size`, `--lr-markdown-heading-3-font-size`,
111
112
  `--lr-markdown-heading-4-font-size`,
112
113
  `--lr-markdown-heading-font-weight`, `--lr-markdown-link-color`, `--lr-markdown-link-hover-color`,
@@ -119,7 +120,9 @@ fenced `code-block` surface), `--lr-markdown-code-padding`/`--lr-markdown-code-r
119
120
  `code` span padding/radius, defaulting to `var(--lr-size-0-125rem) var(--lr-size-0-3125rem)`/
120
121
  `calc(var(--lr-radius) * 0.5)`), and `--lr-markdown-code-block-padding`/
121
122
  `--lr-markdown-code-block-radius` (the fenced `code-block` surface's padding/radius, defaulting to
122
- `var(--lr-space-s) var(--lr-space-m)`/`var(--lr-radius)`) — plus `--lr-code-block-tab-size` (default
123
+ `var(--lr-space-s) var(--lr-space-m)`/`var(--lr-radius)`), `--lr-markdown-code-block-font-size`/
124
+ `--lr-markdown-code-block-line-height` (the fenced code's type, defaulting to
125
+ `var(--lr-font-size-sm)`/`var(--lr-line-height-normal)`) — plus `--lr-code-block-tab-size` (default
123
126
  `2` — tab width inside a rendered fenced or indented `code-block`), with exactly the mechanics
124
127
  described under `<lr-markdown>` above: the same property name and default that
125
128
  `<lr-code-block>`/`<lr-code-editor>` read, declared as a `var()` fallback at the point of use rather
@@ -170,3 +173,11 @@ keeps the box and list gutter aligned. Header hooks are `--lr-markdown-code-head
170
173
  (default `var(--lr-color-text-quiet)`).
171
174
 
172
175
  **Shared icon-button tokens:** the code-block action buttons read the shared tokens `--lr-icon-button-bg`, `--lr-icon-button-hover-bg`, `--lr-icon-button-active-bg`, `--lr-icon-button-border`, `--lr-icon-button-hover-border`, `--lr-icon-button-active-border`, `--lr-icon-button-color`, `--lr-icon-button-hover-color`, `--lr-icon-button-active-color` and `--lr-icon-button-radius`. `--lr-markdown-code-copy-hover-bg` and `--lr-markdown-code-copy-active-bg` set the fenced copy button's hovered and pressed backgrounds. `--lr-markdown-code-copy-hover-color` (default `var(--lr-color-brand)`) and `--lr-markdown-code-copy-active-color` set its glyph color in those states, and `--lr-markdown-code-copy-success-color` / `--lr-markdown-code-copy-error-color` (defaults `var(--lr-color-success)` / `var(--lr-color-danger)`) its copy feedback.
176
+
177
+ Further custom properties:
178
+
179
+ - `--lr-markdown-color` (default `inherit`): Text color of the rendered content.
180
+ - `--lr-markdown-font-size` (default `inherit`): Font size of the rendered content; headings and code scale from it.
181
+ - `--lr-markdown-line-height` (default `var(--lr-line-height-loose)`): Line height of the rendered body text.
182
+ - `--lr-markdown-list-gap` (default `var(--lr-markdown-block-gap)`): Space after each list.
183
+ - `--lr-markdown-paragraph-gap` (default `var(--lr-markdown-block-gap)`): Space after each paragraph.
@@ -9,8 +9,8 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** `dompurify`, `katex`, `marked`, `shiki` — see `llms/peers.md`
12
- - **Themeable via** 24 parts, 49 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
- - **Tokens by part** (prefer these over a `::part()` rule) `code-block`: `--lr-code-block-tab-size`, `--lr-markdown-code-bg`, `--lr-markdown-code-block-padding`, `--lr-markdown-code-block-radius`; `content`: `--lr-markdown-font-mono`, `--lr-markdown-max-height`; `table`: `--lr-markdown-table-header-bg`
12
+ - **Themeable via** 24 parts, 57 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
+ - **Tokens by part** (prefer these over a `::part()` rule) `code-block`: `--lr-code-block-tab-size`, `--lr-markdown-code-bg`, `--lr-markdown-code-block-font-size`, `--lr-markdown-code-block-line-height`, `--lr-markdown-code-block-padding`, `--lr-markdown-code-block-radius`; `content`: `--lr-markdown-font-mono`, `--lr-markdown-max-height`; `table`: `--lr-markdown-table-header-bg`
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
16
16
  ---
@@ -284,7 +284,9 @@ The `streaming-tail` part marks the stable text node used by progressive streami
284
284
 
285
285
  Prefer tokens over part rules for routine prose and code styling: `--lr-markdown-block-gap`
286
286
  (default `var(--lr-space-s)` — space after every paragraph, list, heading, blockquote, code block
287
- and table), `--lr-markdown-heading-1-font-size` (default `calc(var(--lr-size-1em) * 2)`),
287
+ and table), `--lr-markdown-heading-margin-block-start` (default `var(--lr-space-l)` — space before
288
+ every heading; a leading heading keeps none), `--lr-markdown-heading-1-font-size` (default
289
+ `calc(var(--lr-size-1em) * 2)`),
288
290
  `--lr-markdown-heading-2-font-size` (default `var(--lr-size-1-5em)`),
289
291
  `--lr-markdown-heading-3-font-size` (default `calc(var(--lr-size-1em) * 1.17)`) and
290
292
  `--lr-markdown-heading-4-font-size` (default `var(--lr-size-1em)`) — together these restate the
@@ -293,9 +295,16 @@ browser scale — `--lr-markdown-heading-font-weight`
293
295
  and `--lr-markdown-link-hover-color` (default the link colour), `--lr-markdown-blockquote-border-color`
294
296
  (default `var(--lr-color-border-subtle)`), `--lr-markdown-blockquote-color` (default
295
297
  `var(--lr-color-text-quiet)`) and `--lr-markdown-list-indent` (default `var(--lr-size-2-5rem)`).
298
+ `--lr-markdown-paragraph-gap` and `--lr-markdown-list-gap` (both default `--lr-markdown-block-gap`)
299
+ split the space after paragraphs and after lists from the shared rhythm, and
300
+ `--lr-markdown-font-size`, `--lr-markdown-line-height` and `--lr-markdown-color` (all default
301
+ `inherit`) set the rendered prose's body type and colour without a host rule.
296
302
  The `code-block` and `inline-code` surfaces have `--lr-markdown-code-block-padding`,
297
303
  `--lr-markdown-code-block-radius`, `--lr-markdown-code-block-bg`, `--lr-markdown-code-padding`,
298
- `--lr-markdown-code-radius` and `--lr-markdown-code-bg` (all listed below). Every token inherits, so
304
+ `--lr-markdown-code-radius` and `--lr-markdown-code-bg` (all listed below);
305
+ `--lr-markdown-code-block-font-size` (default `var(--lr-font-size-sm)`) and
306
+ `--lr-markdown-code-block-line-height` (default `var(--lr-line-height-normal)`) set the fenced code's
307
+ type. Every token inherits, so
299
308
  a chat bubble with a filled background sets `--lr-markdown-link-color` once on that bubble:
300
309
 
301
310
  ```css
@@ -9,6 +9,6 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 12 parts, 17 custom properties — see `lr-menu.md`
12
+ - **Themeable via** 12 parts, 22 custom properties — see `lr-menu.md`
13
13
  - **Documented with** `lr-menu`: see [lr-menu.md](./lr-menu.md).
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 1 part, 3 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 1 part, 8 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
14
14
 
15
15
  ---
@@ -17,7 +17,10 @@
17
17
  ## `lr-menu-label`
18
18
 
19
19
  The `lr-menu-label` styling hooks include `--lr-menu-label-color`, `--lr-menu-label-padding`, and
20
- `--lr-menu-label-font-size` (default `var(--lr-font-size-sm)`).
20
+ `--lr-menu-label-font-size` (default `var(--lr-font-size-sm)`), `--lr-menu-label-font-weight`
21
+ (default `var(--lr-font-weight-semibold)`) and `--lr-menu-label-letter-spacing` (default `normal`),
22
+ plus `--lr-menu-label-line-height` (default `var(--lr-line-height-snug)`),
23
+ `--lr-menu-label-font-family` and `--lr-menu-label-text-transform` (both default `inherit`).
21
24
 
22
25
  A non-interactive section heading inside `<lr-menu>`'s default slot. Mirrors `sl-menu-label`.
23
26