@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
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 6 parts, 20 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 6 parts, 23 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Tokens by part** (prefer these over a `::part()` rule) `trigger`: `--lr-export-button-radius`
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
@@ -128,7 +128,10 @@ hover, `--lr-export-button-hover-bg`, `--lr-export-button-hover-color` and
128
128
  the current `appearance` resolves to and leaves the other paints alone, so they are also the way to
129
129
  keep `appearance="outlined"` chrome while returning its label to neutral text — `outlined` paints
130
130
  the label `--lr-color-brand` and, unlike `lr-button`, this component has no `variant` of its own to
131
- opt out.
131
+ opt out. The trigger's type and padding take `--lr-export-button-font-size` (unset, it inherits the
132
+ host font size or takes the `size` tier's), `--lr-export-button-font-weight` (default `inherit`) and
133
+ `--lr-export-button-padding-inline` (default `var(--lr-space-m)`, also over the `size` tier's; an
134
+ `icon-only` trigger stays a padding-free square). The menu rows keep their own.
132
135
  `--lr-export-button-gap` (default `var(--lr-space-xs)`, constant across the `size` ladder) and
133
136
  `--lr-export-button-radius` (default `var(--lr-radius)`) retune the trigger's icon/label gap and
134
137
  corner radius without a `::part(trigger)` rule. Plus shared
@@ -139,7 +142,7 @@ The menu popup is a floating surface and paints from the **shared overlay-surfac
139
142
  `--lr-overlay-surface` (default `var(--lr-color-surface-overlay)`), `--lr-overlay-border` (default
140
143
  `var(--lr-color-border-subtle)`) and `--lr-overlay-shadow-anchored` (default `var(--lr-shadow-m)`). None is
141
144
  declared on `:host`, so one declaration on `:root` — or on any ancestor, to scope it — retints this
142
- surface together with every other floating surface in the library. `--lr-overlay-radius` (default `var(--lr-radius)`) is the matching corner radius.
145
+ surface together with every other floating surface in the library. `--lr-overlay-radius` (default `var(--lr-radius-container)`) is the matching corner radius.
143
146
 
144
147
  `--lr-positioning-strategy` — the format menu reads this same cascading `absolute`/`fixed`
145
148
  override documented on `<lr-popover>` when it is (re)positioned, falling back to its own `fixed`
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 21 parts, 34 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 22 parts, 38 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Tokens by part** (prefer these over a `::part()` rule) `dropzone-icon`: `--lr-file-input-dropzone-icon-size`; `file`: `--lr-file-input-file-bg`, `--lr-file-input-file-border-color`, `--lr-file-input-file-radius`; `file-input`: `--lr-file-input-accept-bg`, `--lr-file-input-accept-border-color`, `--lr-file-input-compact-padding`, `--lr-file-input-dropzone-padding`, `--lr-file-input-radius`, `--lr-file-input-reject-bg`, `--lr-file-input-reject-border-color`; `file-thumbnail`: `--lr-file-input-thumbnail-size`; `form-control-label`: `--lr-form-control-required-content`; `remove-button`: `--lr-file-input-remove-hover-bg`
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
@@ -264,6 +264,8 @@ What this changes for you:
264
264
  - **A `::part(rejection)[role]`-style selector never matched anyway** — an attribute selector
265
265
  cannot follow `::part()`. Nothing that worked before stopped working.
266
266
 
267
+ Further CSS parts: `remove-button__button`: Web Awesome-named alias on the same remove button.
268
+
267
269
  **CSS custom states:** `blank` and `dragging`, plus the shared validity states `required`,
268
270
  `optional`, `valid`, `invalid`, `user-valid`, and `user-invalid`. As on every other form-associated
269
271
  control, `valid`/`invalid` and `user-valid`/`user-invalid` stop matching entirely while the control
@@ -317,6 +319,9 @@ tokens — `--lr-space-xs`, `--lr-space-l`,
317
319
  `--lr-focus-ring-width/-color/-offset` (`[part="file-input"]:focus-visible` outline),
318
320
  `--lr-opacity-disabled` (`:host([disabled])` dimming).
319
321
 
322
+ More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
323
+ height of the field label.
324
+
320
325
  **Optional peer deps:** none.
321
326
 
322
327
  ```html
@@ -369,4 +374,11 @@ an extension-only `accept` list.
369
374
 
370
375
  Use `--lr-file-input-dropzone-active-border-color` and `--lr-file-input-dropzone-active-bg` for the pressed field. `--lr-file-input-file-radius` sets the row radius, `--lr-file-input-file-bg` (default `var(--lr-color-surface-raised)`) and `--lr-file-input-file-border-color` (default `var(--lr-color-border-subtle)`) paint it, and `--lr-file-input-remove-hover-bg` (default `var(--lr-color-brand-quiet)`) / `--lr-file-input-remove-active-bg` tint its remove button. `--lr-file-input-thumbnail-size` and `--lr-file-input-thumbnail-radius` size and round its preview.
371
376
 
377
+ Further custom properties:
378
+
379
+ - `--lr-form-control-label-gap` (default `var(--lr-space-xs)`): Space between the label above the field and the field.
380
+ - `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
381
+ - `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
382
+ - `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
383
+
372
384
  ---
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 30 parts, 2 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 30 parts, 4 custom properties — see this component's own `@csspart`/`@cssprop` list below
13
13
  - **Tokens by part** (prefer these over a `::part()` rule) `controls`: `--lr-filter-bar-gap`; `end`: `--lr-filter-bar-gap`; `field`: `--lr-filter-bar-field-basis`
14
14
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
@@ -200,7 +200,11 @@ baked-in label text is visible or screen-reader-only).
200
200
  flex-basis is themeable via `--lr-filter-bar-field-basis` (default `var(--lr-size-12rem)`).
201
201
  `--lr-filter-bar-gap` (default `var(--lr-space-s)`) themes the gap between filter fields, the
202
202
  `end` slot, the reset button, and the loading status in the `controls` row. Both are byte-identical
203
- to the previous hardcoded values when unset.
203
+ to the previous hardcoded values when unset. `--lr-filter-bar-control-height` gives every filter
204
+ type (select, combobox, date, text and checkbox-menu) and the reset button one control height at any
205
+ `size`, and `--lr-filter-bar-control-font-size` one field font size; both are unset by default, so
206
+ each control keeps its own tier and any value set on an ancestor through that control's own token. A
207
+ control's own font token set on an ancestor still wins over `--lr-filter-bar-control-font-size`.
204
208
 
205
209
  The reset button and the `end` slot form one wrapping action group, and the `end` wrapper reserves the
206
210
  same trailing validation spacer as a field, so slotted end actions sit on the field frames' bottom
@@ -9,7 +9,7 @@
9
9
  - **Release history** [CHANGELOG.md](../../CHANGELOG.md)
10
10
  - **Deprecations** none
11
11
  - **Optional peers** none
12
- - **Themeable via** 28 parts, 29 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 28 parts, 32 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
  ---
@@ -121,6 +121,9 @@ surface/text/brand/danger colors and hover/active mixes. They are inline `var()`
121
121
  longhand that consumes them, so an override on a parent themes every descendant builder without
122
122
  being shadowed by a declaration on the component host.
123
123
 
124
+ More themeable custom properties: `--lr-form-control-label-line-height` (default `inherit`): Line
125
+ height of the field label.
126
+
124
127
  **Additional API surface:**
125
128
 
126
129
  - `errorText` — Caller-supplied outer error text. Field-level validation remains on the affected controls. Type: `string`.
@@ -129,3 +132,9 @@ being shadowed by a declaration on the component host.
129
132
  - `hint` attribute — Supporting text rendered below the outer label.
130
133
  - `hint` slot — Supporting text for the complete form control.
131
134
  - `part="hint"` — Supporting text for the complete form control.
135
+
136
+ Further custom properties:
137
+
138
+ - `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
139
+ - `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
140
+ - `--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** 25 parts, 25 custom properties — see this component's own `@csspart`/`@cssprop` list below
12
+ - **Themeable via** 25 parts, 30 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
  ---
@@ -385,6 +385,17 @@ weekdayLabelWidth?: number|'auto'; weekdayLabelText?: (jsWeekday:number)=>string
385
385
  label bands keep working instead of an outer container scrolling the whole component. Percentage
386
386
  trap: without `fill`, `--lr-heatmap-grid-max-block-size: 100%` resolves to `none`, because the
387
387
  base is auto-height; and `fill` itself needs a definite parent height, like any percentage.
388
+ - `fitBlock: boolean = false` (attribute `fit-block`, reflected) — fits the heatmap within the
389
+ host's own `max-block-size` with no definite parent height: the heatmap takes its content height
390
+ up to that ceiling and, in matrix mode, the grid renders inside the `[part="grid"]` scrollport
391
+ (as under `fill`), which takes the block size the legend leaves and becomes the single scroller.
392
+ A short matrix stays as tall as its content; calendar mode is unchanged. Set the ceiling on the
393
+ element itself; a percentage ceiling only resolves against a definite parent. Without a ceiling
394
+ it changes nothing visible.
395
+
396
+ ```html
397
+ <lr-heatmap fit-block sticky-labels="cols" style="max-block-size: 24rem"></lr-heatmap>
398
+ ```
388
399
  - `scale: 'linear' | 'sqrt' = 'linear'` — governs both modes: in matrix mode, `'sqrt'` compresses the
389
400
  color ramp via `sqrtStep()` instead of mapping linearly; in calendar mode, the default `'linear'`
390
401
  still buckets by quartile (`quartileBucket()`, unchanged), while `'sqrt'` instead compresses via the
@@ -687,9 +698,15 @@ that real DOM element; set it to give a frozen column band vertical scrolling to
687
698
  The legend row reads `--lr-heatmap-legend-font-size` (default `var(--lr-font-size-xs)`),
688
699
  `--lr-heatmap-legend-color` (default `var(--lr-color-text-quiet)`), `--lr-heatmap-legend-gap`
689
700
  (default `var(--lr-space-xs)`), `--lr-heatmap-legend-padding` (default `0`),
690
- `--lr-heatmap-legend-bg` (default `transparent`), `--lr-heatmap-legend-radius` (default `0`) and
701
+ `--lr-heatmap-legend-bg` (default `transparent`), `--lr-heatmap-legend-radius` (default `0`),
702
+ `--lr-heatmap-legend-font-family` (default `inherit`), `--lr-heatmap-legend-divider` (border
703
+ shorthand, default `none`; drawn on the legend edge facing the grid: its block start under the
704
+ default bottom placement, its block end under `legendPlacement = 'top'`) and
691
705
  `--lr-heatmap-legend-swatch-size` (default `var(--lr-size-0-6rem)`, stop swatches and annotation
692
- rings); the continuous ramp reads `--lr-heatmap-legend-ramp-inline-size` (default
706
+ rings), `--lr-heatmap-legend-swatch-radius` (default `var(--lr-radius-xs)`, a `legendStops` swatch's
707
+ corners), `--lr-heatmap-legend-justify` (default `normal`, the row's `justify-content`) and
708
+ `--lr-heatmap-legend-offset` (default `var(--lr-space-xs)`, the distance between the grid and the
709
+ legend on whichever edge `legend-placement` puts it); the continuous ramp reads `--lr-heatmap-legend-ramp-inline-size` (default
693
710
  `var(--lr-size-6rem)`), `--lr-heatmap-legend-ramp-block-size` (default `var(--lr-size-0-5rem)`)
694
711
  and `--lr-heatmap-legend-ramp-radius` (default `var(--lr-size-2px)`). The suffixes match the chart
695
712
  and map legend tokens. Also consumes `--lr-color-text-quiet` (axis label
@@ -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
  - **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
15
15
 
16
16
  ---
@@ -174,4 +174,9 @@ their semantics, defaults, and gotchas.
174
174
  active `setLyraLocale()` locale instead of a hardcoded `'en'`, matching `utilities/format.ts`'s
175
175
  helpers; an app that never calls `setLyraLocale()` sees no change, and an explicit tag still wins.
176
176
 
177
+ Further custom properties:
178
+
179
+ - `--lr-chart-legend-item-line-height` (default `inherit`): Line height of each legend item.
180
+ - `--lr-chart-legend-justify` (default `normal`): `justify-content` of the legend row, for example `center` or `flex-end`.
181
+
177
182
  ---
@@ -144,7 +144,9 @@ no appearance attribute or reset rules to sit quietly in a toolbar.
144
144
  the floor makes the button exactly `--lr-icon-button-size` on both axes; no `::part(button)`
145
145
  width/height rule is needed. Set the size on the element for one button, or
146
146
  `--lr-icon-button-size-scope` on a wrapper for a toolbar, and keep the slotted glyph (or
147
- `--lr-icon-size`) at or below it:
147
+ `--lr-icon-size`) at or below it. The native button sets `line-height: 1`, so a glyph wrapped in an
148
+ inline element (a `<span>` around an `<svg>`) does not grow the box to the page's line-height at a
149
+ large root font size:
148
150
 
149
151
  ```html
150
152
  <lr-icon-button icon="info-circle" label="Details" style="--lr-icon-button-size: 2rem"></lr-icon-button>
@@ -41,6 +41,14 @@ Pairs with `lr-icon-button` (see `llms/components/lr-icon-button.md`).
41
41
  - `family: string = ''` and `variant: string = ''` (reflected once set) — forwarded with `name` to
42
42
  a registered library resolver. Their vocabulary belongs to that library; for example, an icon
43
43
  host might distinguish `classic`/`sharp` families and `regular`/`solid` variants.
44
+ While `family`/`variant` is empty the values from `setDefaultIconFamily(family, variant?)` are
45
+ forwarded instead (`getDefaultIconFamily()`/`getDefaultIconVariant()` read them; both are `''`
46
+ until set). Changing the defaults re-resolves every rendered icon, and an omitted `variant` keeps
47
+ the current default variant.
48
+ - Sprite sheets: `registerIconLibrary(name, { resolver, spriteSheet: true })` makes the resolver
49
+ return a same-origin `sheet.svg#symbol-id` URL, rendered as `<svg part="svg"><use part="use"
50
+ href>`. Nothing is fetched or sanitized, so cross-origin, `data:`, `blob:` and fragment-less
51
+ results fail with `lr-error` (the library `mutator` does not run).
44
52
  - `src: string = ''` — URL of a single SVG document to fetch. It applies only when no registered
45
53
  library owns the icon: no `library` set, an unregistered one, or an empty `name`. Once a
46
54
  registered library does own the name it decides alone — a resolver that returns `''` or throws
@@ -204,3 +212,99 @@ Promise<string>`, `LyraIconLibraryMutator = (svg: SVGElement) => void`, and
204
212
  mirrored artwork in LTR and RTL. A glyph that must follow reading direction is mirrored by the
205
213
  wrapping part of the component that owns it; a second, direction-driven flip here would silently
206
214
  cancel that one out.
215
+
216
+ ### Font Awesome preset
217
+
218
+ An opt-in resolver preset for Font Awesome lives at its own side-effect-free subpath. Importing it
219
+ registers and fetches nothing; the built-in glyph set stays the offline default until you call
220
+ `registerFontAwesomeIconLibrary()`, and even then an icon is requested only when an `<lr-icon>`
221
+ names that library. Every request still runs the pipeline above (fetch allowlist, 1 MiB cap,
222
+ DOMPurify, resource-sink stripping, shared bounded cache).
223
+
224
+ ```ts
225
+ import "@aceshooting/lyra-ui/components/lr-icon.js";
226
+ import { setDefaultIconFamily } from "@aceshooting/lyra-ui/components/utility/icon/icon-library.js";
227
+ import { registerFontAwesomeIconLibrary } from "@aceshooting/lyra-ui/components/utility/icon/icon-library-font-awesome.js";
228
+
229
+ // Free tier from a pinned jsDelivr release: classic solid/regular and brands.
230
+ const unregister = registerFontAwesomeIconLibrary(); // library name "fa"
231
+ // Pro and Pro+ families: a kit code (Font Awesome's kit SVG host) or a self-hosted copy.
232
+ registerFontAwesomeIconLibrary({ name: "fa-pro", kitCode: "abc123" });
233
+ registerFontAwesomeIconLibrary({ name: "fa-local", basePath: "/assets/fontawesome/svgs" });
234
+ setDefaultIconFamily("sharp", "light"); // used by icons whose family/variant are unset
235
+ ```
236
+
237
+ ```html
238
+ <lr-icon library="fa" name="house" label="Home"></lr-icon>
239
+ <lr-icon library="fa" family="brands" name="github"></lr-icon>
240
+ <lr-icon library="fa-pro" family="duotone" variant="thin" name="house" swap-opacity></lr-icon>
241
+ ```
242
+
243
+ - Options (`LyraFontAwesomeIconLibraryOptions`): `name` (default `'fa'`; `'default'` makes Font
244
+ Awesome own every icon without a `library`), `kitCode`, `basePath` (wins over `kitCode`; icons
245
+ resolve to `<basePath>/<folder>/<name>.svg`), `version` (exact `major.minor.patch`, default
246
+ `FONT_AWESOME_DEFAULT_VERSION` = `7.3.1`), `defaultFamily` (default `'classic'`) and
247
+ `defaultVariant`. Malformed options throw at the call site. The function returns an unregister
248
+ callback that only removes its own registration.
249
+ - Families (`LyraFontAwesomeFamily`): `classic` and `brands` (free); `duotone`, `sharp`,
250
+ `sharp-duotone` (Pro, each `solid`/`regular`/`light`/`thin`); and the single-style Pro+ packs
251
+ `chisel`, `etch`, `graphite`, `jelly`, `jelly-duo`, `jelly-fill`, `mosaic`, `notdog`,
252
+ `notdog-duo`, `pixel`, `slab`, `slab-press`, `slab-duo`, `slab-press-duo`, `thumbprint`,
253
+ `utility`, `utility-duo`, `utility-fill`, `vellum`, `whiteboard`. A single-style pack always
254
+ uses its own style (`jelly` → regular, `utility` → semibold, …), as `brands` ignores `variant`.
255
+ Variants (`LyraFontAwesomeVariant`): `solid`, `regular`, `light`, `thin`, `semibold`.
256
+ - Precedence: the icon's `family`/`variant`, then `setDefaultIconFamily()`, then the preset's
257
+ `defaultFamily`/`defaultVariant`, then `classic` and the family's first style. A family given
258
+ without a variant uses that family's default style.
259
+ - The resolver fails closed **before any request**: a name other than lowercase kebab-case (the
260
+ copy-pasted `fa-house` class form is accepted), an unknown family or variant, or a Pro family on
261
+ the free tier throws, so the icon shows the localized `iconLoadError` alert and emits `lr-error`
262
+ with `detail.src` set to the name. A 404, an oversized file or a missing sanitizer fails the same
263
+ way with `iconLoadError`, `iconTooLarge` or `iconSanitizerMissing`.
264
+ - Duotone layers (`.fa-primary`/`.fa-secondary`) use the `--primary-*`/`--secondary-*` hooks and
265
+ `swap-opacity` listed above; they inherit, so one rule on an ancestor themes every icon. The
266
+ preset mutator only adds `fill="currentColor"` to SVGs that declare no fill.
267
+ - Helpers for custom resolvers: `createFontAwesomeIconResolver(options)` (the same validated
268
+ resolver) and `fontAwesomeIconFolder(family, variant)` (`duotone`/`light` → `duotone-light`;
269
+ throws `RangeError` on unknown input). `fontAwesomeIconMutator` is exported too.
270
+ - Font Awesome's icons are licensed separately (Free: CC BY 4.0); a kit code is a public,
271
+ domain-restricted token, so restrict it to your domains in Font Awesome's kit settings.
272
+
273
+ ### Bootstrap Icons preset
274
+
275
+ Bootstrap Icons (MIT) is the vocabulary Shoelace's `<sl-icon>` resolves by default. Its opt-in
276
+ preset lives at its own side-effect-free subpath and follows the same rules as the Font Awesome
277
+ preset: importing registers and fetches nothing, and every request runs the pipeline above.
278
+
279
+ ```ts
280
+ import "@aceshooting/lyra-ui/components/lr-icon.js";
281
+ import { registerBootstrapIconLibrary } from "@aceshooting/lyra-ui/components/utility/icon/icon-library-bootstrap.js";
282
+
283
+ const unregister = registerBootstrapIconLibrary(); // library name "bi", pinned jsDelivr release
284
+ // Migrated Shoelace markup: own every icon that sets no library, from a self-hosted copy.
285
+ registerBootstrapIconLibrary({ name: "default", basePath: "/assets/bootstrap-icons" });
286
+ ```
287
+
288
+ ```html
289
+ <lr-icon library="bi" name="gear" label="Settings"></lr-icon>
290
+ <lr-icon name="house-fill"></lr-icon>
291
+ ```
292
+
293
+ - Options (`LyraBootstrapIconLibraryOptions`): `name` (default `'bi'`; `'default'` matches
294
+ Shoelace's default library), `basePath` (the package's `icons/` folder; icons resolve to
295
+ `<basePath>/<name>.svg`) and `version` (exact `major.minor.patch`, default
296
+ `BOOTSTRAP_ICONS_DEFAULT_VERSION` = `1.13.2`; ignored with `basePath`). Malformed options throw
297
+ at the call site. The function returns an unregister callback that only removes its own
298
+ registration.
299
+ - Bootstrap Icons has no families or variants, so `family`/`variant` are ignored; a filled glyph is
300
+ its own name (`house-fill`).
301
+ - The resolver fails closed **before any request** for a name other than lowercase kebab-case (the
302
+ copy-pasted `bi-house` class form is accepted), with the localized `iconLoadError` alert and
303
+ `lr-error`. A 404, an oversized file or a missing sanitizer fails as described above.
304
+ - The preset mutator only adds `fill="currentColor"` to SVGs that declare no fill; the published
305
+ files already paint with `currentColor`.
306
+ - Helpers for custom resolvers: `createBootstrapIconResolver(options)` (the same validated resolver)
307
+ and `bootstrapIconMutator`.
308
+ - `lyra-ui-migrate` reports migrated `sl-icon`/`sl-icon-button` tags with
309
+ `BEHAVIOR_REVIEW_REQUIRED` and names this preset as the remedy; registering it is left to the
310
+ application, which chooses the CDN or a self-hosted copy.
@@ -52,6 +52,9 @@ the source is loading and being sanitized. Build error UI from `lr-include-error
52
52
  cross-origin fetching is opt-in; an invalid value is normalized back to `same-origin` rather than
53
53
  letting `fetch()` throw. `no-cors` is accepted for enum completeness but always yields an opaque
54
54
  response (`status` `0`, unreadable body) — a Fetch API limitation, not a bug here.
55
+ - `withoutFragment: boolean = false` (attribute `without-fragment`) — includes the whole sanitized
56
+ remote document and ignores the hash in `src`; no effect on a same-page `#id` source. Sanitization
57
+ is unchanged.
55
58
  - `withoutCache: boolean = false` (attribute `without-cache`, not reflected) — by default an
56
59
  include shares matching in-flight work and retains successful sanitized remote documents in a
57
60
  bounded cache; `without-cache` opts this instance out of both deduplication and retention.
@@ -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, 39 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-gap` also spaces a label above the field.
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
  ---
@@ -30,7 +31,8 @@ A lightbox opened outside an existing native `dialog.showModal()` stays interact
30
31
  - `open: boolean = false` (reflected) — post-render writes run the same cancelable lifecycle as
31
32
  `show()`/`hide()`/`close()`. Initial `open` markup is state and emits no lifecycle events.
32
33
  - `images: readonly LyraLightboxImage[] = []` (attribute: false) —
33
- `LyraLightboxImage { readonly src: string; readonly alt?: string; readonly caption?: string }`.
34
+ `LyraLightboxImage { readonly src: string; readonly alt?: string; readonly caption?: string; readonly thumbnail?: string }`
35
+ (`thumbnail` is the `with-thumbnails` strip image, falling back to `src`).
34
36
  Assignment clones/freezes the records and inspects at most 10,000 candidates; malformed records
35
37
  are omitted and updates require a new collection assignment. `src` is passed to the embedded
36
38
  frame, which runs it through `safeMediaSrc()`. `alt`/`caption` are caller data, never localized.
@@ -39,15 +41,16 @@ A lightbox opened outside an existing native `dialog.showModal()` stays interact
39
41
  Invalid defined sources show a localized error and retry action; they never fall back to the
40
42
  legacy array. Setting `undefined` restores the current `images` input. Reassign the source,
41
43
  including the same object, or call a keyless `requestUpdate()` after changing its revision or
42
- mutable provider state. Unrelated named display updates do not refresh the source.
44
+ mutable provider state. Unrelated named display updates do not refresh the source. With
45
+ `with-thumbnails`, a separate strip window reads the descriptors of the 15 positions around the
46
+ current one (never the whole collection); a position still loading shows its number.
43
47
  - `index: number = 0` (reflected) — clamped defensively for rendering and re-synced (emitting
44
48
  `lr-index-change`) when the active collection shrinks. In source mode, it retains the requested
45
49
  logical index while its descriptor and image load.
46
50
  - `loop: boolean = false` (reflected) — wraps prev/next past the ends.
47
51
  - `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.
52
+ - `withoutCounter: boolean = false` (attribute `without-counter`, not reflected) — hides the
53
+ visible `[part="counter"]`; the polite position announcement stays active.
51
54
  Spoken position updates remain active when the counter is hidden: the shadow
52
55
  `[part="live-region"]` is only an `aria-hidden` text mirror, while announcements append to the
53
56
  shared light-DOM polite sink. Announcements stay silent when the lightbox or a composed ancestor
@@ -66,6 +69,13 @@ A lightbox opened outside an existing native `dialog.showModal()` stays interact
66
69
  - `accessibleLabel: string | null = null` (attribute `aria-label`) — the dialog's accessible name.
67
70
  Blank labels use the localized `lightboxLabel` default.
68
71
 
72
+ More properties: `withThumbnails` (attribute `with-thumbnails`, default `false`): Shows a strip of
73
+ thumbnails for jumping between items in every mode; each uses the item's `thumbnail`, else the
74
+ full image (a bounded 15-position window with `imageSource`). `withoutNavigation` (attribute `without-navigation`, default
75
+ `false`): Hides the previous/next buttons. Swiping and the arrow keys still navigate. `withoutZoom`
76
+ (attribute `without-zoom`, default `false`): Disables zooming and removes the zoom button and the
77
+ embedded zoom controls.
78
+
69
79
  **Methods:** promise-based `show()`, `hide()`, and `close(reason?)`, plus `next()`, `previous()`, and
70
80
  `goTo(index)`. `show()`/`hide()` resolve after the successful rendered transition; a veto resolves
71
81
  without changing state. `goTo()` ignores a non-finite
@@ -100,18 +110,24 @@ document revokes obsolete work, so a late completion cannot display an old image
100
110
  pan/zoom frame stays mounted and retains focus. The provider should honor the request's abort
101
111
  signal; stale-result protection does not make an abort-ignoring provider settle promptly.
102
112
 
103
- **Events:** cancelable `lr-show`, followed after a successful open render by `lr-after-show`;
113
+ **Events:** cancelable `lr-show`, followed by `lr-after-show` once the open panel has rendered and its
114
+ enter animation has finished;
104
115
  conditionally cancelable `lr-hide` (`detail: LyraLightboxHideDetail = { source: Element }`):
105
116
  cancelable before a requested close, non-cancelable when an open instance unmounts. A requested
106
117
  close then emits cancelable `lr-close-request` with `{ reason: LyraLightboxCloseReason }`.
107
118
  An accepted dismissal sets `open = false` and emits non-cancelable `lr-close` with the same reason
108
119
  object. Use
109
120
  `lr-close-request` for vetoes and `lr-close` for accepted dismissals.
110
- `lr-after-hide` follows the closed render. Removal while open cannot be vetoed and reports reason
121
+ `lr-after-hide` follows once the exit animation has finished. Both after-events fire straight after
122
+ the render under `prefers-reduced-motion` or a zero duration, `show()`/`hide()` resolve with them,
123
+ and a transition interrupted by the opposite one emits no after-event. Removal while open cannot be vetoed and reports reason
111
124
  `unmount`. `lr-index-change` (`detail: { index }`, fired
112
- for internally-driven navigation — a button, a keyboard shortcut, or `next()`/`previous()`/
113
- `goTo()` — and when a shrinking active collection normalizes the index; **not** when a consumer sets
114
- `index` directly); `lr-zoom-change` (`detail: {
125
+ for internally-driven navigation — a button, a thumbnail, a swipe, a keyboard shortcut, or
126
+ `next()`/`previous()`/`goTo()` — and when a shrinking active collection normalizes the index; **not** when a consumer sets
127
+ `index` directly); `lr-item-change` (`detail: { index, previousIndex, item, previousItem }`, the
128
+ items `null` in data mode) fires alongside `lr-index-change` for the same navigations and, like it,
129
+ not when `index` is written directly, open or closed (the same rule as `lr-carousel`'s
130
+ `lr-slide-change` for a direct `currentSlide` write; call `goTo()` to change the item and be notified); `lr-zoom-change` (`detail: {
115
131
  zoom }`) is not emitted by the lightbox itself — it bubbles up composed from the embedded frame.
116
132
 
117
133
  **Slots:** `actions` — extra toolbar buttons (download/share/delete), rendered in `[part="toolbar"]`
@@ -135,6 +151,19 @@ Source loading and error messages use `--lr-lightbox-status-color`, falling back
135
151
  `--lr-color-on-strong-overlay`. When the image collection shrinks, a listener for the resulting
136
152
  `lr-index-change` sees the newly rendered image.
137
153
 
154
+ Further CSS parts: `navigation-button`: Both the previous and the next button.
155
+ `navigation-button-next`: The same element as `next-button`. `navigation-button-previous`: The same
156
+ element as `previous-button`. `scroll-container`: The same element as `stage`. `slide`: The wrapper
157
+ around the current image or video. `surface`: The viewer's viewport layer. Only positioned and shown
158
+ while open (slotted mode). `thumbnail`: One thumbnail button in the strip. `thumbnail-active`: Added
159
+ to the current item's thumbnail. `thumbnails`: The thumbnail strip, rendered only with
160
+ `with-thumbnails`. `video`: The current video of a `type="video"` item. `zoom-button`: Toolbar
161
+ button that toggles between fitted and zoomed in. Rendered for slotted items only;
162
+ `images`/`imageSource` galleries keep the embedded `frame-controls`.
163
+
164
+ Each slotted `lr-lightbox-item` exposes its own `trigger`, `thumbnail-image`, `play-button` and
165
+ `play-glyph` parts, described with the slotted items below.
166
+
138
167
  **Themeable custom properties:** `--lr-lightbox-overlay-color` (default
139
168
  `var(--lr-color-overlay-strong)` — the backdrop scrim), `--lr-lightbox-control-bg` (default
140
169
  `var(--lr-color-neutral)`) and `--lr-lightbox-control-color` (default `var(--lr-color-on-neutral)`)
@@ -158,8 +187,84 @@ photo content.
158
187
  measured by the lightbox, so stale load events cannot apply a previous image's size. The fit
159
188
  policy covers the painted image only; the lightbox's DOM caption, toolbar, legend-like actions,
160
189
  and tooltip content remain outside that image surface.
161
- - scope for v1: no per-image slotted content (data-driven via `images` or `imageSource`), no dot indicators, no
162
- visual open/close animation, no click-image-to-navigate, no touch-swipe. Lifecycle phases are
163
- still observable through the before/after events and methods above.
190
+ - scope: no dot indicators, no click-image-to-navigate and no inertial fling (only the release
191
+ distance decides a swipe). Per-item custom content uses `<lr-lightbox-item>` templates (below).
164
192
 
165
193
  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.
194
+
195
+ ### `lr-lightbox` slotted items (`lr-lightbox-item`)
196
+
197
+ `<lr-lightbox>` also accepts `<lr-lightbox-item>` children (any depth, no nested lightbox), mirroring
198
+ `wa-lightbox`/`wa-lightbox-item`. `images`/`imageSource` keep working unchanged and take precedence
199
+ when set. With items the host stays inline and the viewer opens over the page.
200
+
201
+ ```html
202
+ <lr-lightbox label="Trip" with-thumbnails>
203
+ <lr-lightbox-item src="/photos/a-full.jpg" alt="Harbour" width="1600" height="900">
204
+ <img src="/photos/a-thumb.jpg" alt="Harbour" />
205
+ <span slot="caption">Harbour at dawn</span>
206
+ </lr-lightbox-item>
207
+ <lr-lightbox-item type="video" src="/clips/b.mp4" thumbnail="/clips/b.jpg" alt="Boat"></lr-lightbox-item>
208
+ </lr-lightbox>
209
+ ```
210
+
211
+ **`lr-lightbox-item`** — `type: 'image' | 'video' = 'image'` (reflected; video shows a play button),
212
+ `src` (the link target, so the gallery works without JavaScript and can be opened in a new tab; a modified
213
+ click is left to the browser), `srcset`/`sizes` (the lightbox loads the smallest candidate covering
214
+ the viewport or a single `px`/`vw` `sizes` length, else the largest), `alt` (defaults to the slotted
215
+ `img` alt), `caption`, `thumbnail` (strip image and the item's own image when nothing is slotted),
216
+ `width`/`height` (reserve space). Slots: default thumbnail, `caption` (text shown in the viewer),
217
+ `play-icon`. Parts: `trigger`, `thumbnail-image`, `play-button`. The `data-active` attribute marks the
218
+ current item while open. URLs are validated: `src` for the link with `safeLinkHref()` and all media
219
+ with `safeMediaSrc()`; a rejected `src` leaves a button-style trigger and the item out of the viewer.
220
+ An item with no `src` is activated with Enter/Space.
221
+
222
+ **Custom slides** — anything other than an image or a native video (an embed, a player, another
223
+ component) goes in a `<template>` that is a direct child of the item. The lightbox copies the
224
+ template's content only while that slide is shown, into a `<div slot="slide-content">` it appends to
225
+ itself (light DOM, so page styles apply), and removes the copy on any other slide or once the close
226
+ motion ends. `src` is optional (it stays the no-JavaScript link when set); `width`/`height` give the
227
+ slide its proportions; custom content cannot be zoomed; the slotted `img` or `thumbnail` stays the
228
+ page and strip thumbnail. Slotted controls in the copy keep their arrow keys, and content that
229
+ handles its own dragging should call `preventDefault()` on `pointerdown` so no swipe starts there.
230
+
231
+ ```html
232
+ <lr-lightbox-item width="1600" height="900" thumbnail="/maps/route-thumb.jpg" alt="Route map">
233
+ <template><iframe src="https://maps.example/embed/route" title="Route map" style="inline-size: 100%; block-size: 100%; border: 0"></iframe></template>
234
+ </lr-lightbox-item>
235
+ ```
236
+
237
+ **Lightbox additions** — `with-thumbnails` (thumbnail strip, in every mode), `without-navigation`
238
+ (hides previous/next; arrow keys and swipe stay), `without-zoom` (no zoom button/controls; the toolbar zoom button exists for slotted items only), `label`
239
+ (reflected; names the dialog; a host `aria-label` wins), `items` and `currentItem` getters, `zoomIn()`/`zoomOut()`.
240
+ `lr-item-change` fires with every `lr-index-change` and adds `{ index, previousIndex, item, previousItem }`
241
+ (items are `null` in data mode); like `lr-index-change` it is not fired when `index` is written directly.
242
+ Touch and pen swipes (never mouse) follow the pointer once the drag is clearly horizontal: releasing
243
+ at least 50px toward an existing item moves to it, the incoming slide continuing from the release
244
+ point; a shorter or mostly vertical drag, a drag past the first/last item without `loop` (followed
245
+ with resistance) and `pointercancel` settle the slide back. Directions reverse under RTL; under
246
+ `prefers-reduced-motion` the slide does not follow the pointer and the release navigates or stays
247
+ without motion. No swipe starts on a control, link, video or form field, or while zoomed. A `type="video"` item plays in a native `<video>`
248
+ that pauses on slide change and close; zoom is unavailable for video. Slots `close-icon`,
249
+ `previous-icon`, `next-icon`, `zoom-in-icon`, `zoom-out-icon`. Added part aliases: `dialog` (panel),
250
+ `scroll-container` (stage), `image` (the zoomable `frame`),
251
+ `navigation-button`/`navigation-button-previous`/`navigation-button-next`, plus `surface`, `slide`, `video`, `zoom-button`, `thumbnails`, `thumbnail`, `thumbnail-active`.
252
+ Match them with `[part~="…"]` when querying.
253
+ Motion: `--show-duration`/`--hide-duration` (or `--lr-lightbox-panel-duration`, default
254
+ `--lr-duration-base`) drive the open/close and slide animations, which are flattened under
255
+ `prefers-reduced-motion`; `lr-after-show`/`lr-after-hide` wait for the open/close motion to finish
256
+ (the host stays painted with `data-closing` until the exit motion ends).
257
+ `--slide-gap` (`--lr-lightbox-slide-gap`), `--thumbnail-size` (`--lr-lightbox-thumbnail-size`) and
258
+ `--media-border-radius` (`--lr-lightbox-media-radius`) style slides and the strip.
259
+ Upstream-named styling properties: `--backdrop-color` (scrim), `--backdrop-filter` (default `none`,
260
+ e.g. `blur(1rem)`), `--controls-background` and `--controls-color` (controls, counter, caption) and
261
+ `--spacing` (gap between toolbar, media, caption and strip; default `var(--lr-space-s)`); each
262
+ `--lr-lightbox-*` token wins over its alias. Custom states: `lr-lightbox:state(open)`,
263
+ `:state(zoomed)`; on items `lr-lightbox-item:state(active)` (current item while open),
264
+ `:state(empty)` (nothing slotted, no `thumbnail`; hidden on the page) and `:state(morphing)` (while
265
+ the open/close motion runs for that item).
266
+
267
+ **CSS parts:** `trigger` (the link, or button-like anchor, that wraps the thumbnail and opens the
268
+ lightbox), `thumbnail-image` (the image rendered from `thumbnail` when nothing is slotted),
269
+ `play-button` (the play button shown over a video's thumbnail) and `play-glyph` (the default play
270
+ 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
  ---