@aceshooting/lyra-ui 25.6.1 → 25.6.2
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.
- package/CHANGELOG.md +8 -0
- package/custom-elements.json +1 -1
- package/dist/components/forms/button/button.class.d.ts +3 -2
- package/dist/components/forms/button/button.styles.js +1 -1
- package/dist/components/overlays/overlay/tooltip.class.js +1 -1
- package/dist/internal/accessibility-visibility.d.ts +3 -1
- package/dist/internal/accessibility-visibility.js +1 -1
- package/dist/internal/glass-surface.styles.js +1 -1
- package/dist/internal/package-metadata.d.ts +1 -1
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/tokens.styles.js +1 -1
- package/dist/surfaces/glass.css +1 -1
- package/dist/theme.css +1 -1
- package/llms/components/lr-button.md +1 -1
- package/llms/components/lr-swatch-picker.md +18 -14
- package/llms/shared/native-styles-and-utilities.md +3 -1
- package/llms/shared/styles-and-tokens.md +17 -12
- package/llms/shared.md +20 -13
- package/package.json +4 -4
- package/vscode-css-data.json +1 -1
- package/web-types.json +1 -1
package/llms/shared.md
CHANGED
|
@@ -947,13 +947,16 @@ accepts absolute colors used as contrast reference surfaces, not gradients or im
|
|
|
947
947
|
semantic surface/text pairings for content and keep the decorative layer behind it.
|
|
948
948
|
|
|
949
949
|
Use the existing [gemstoneAccentPicker composition](../components/lr-swatch-picker.md#gemstoneaccentpicker--the-signature-accent-selector),
|
|
950
|
-
with its localized
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
950
|
+
with its single localized “Selected accent: {name}” heading, nine canonical gemstones, and shared
|
|
951
|
+
selected-glyph treatment. Update the name when selection changes. Use the same interpolated label
|
|
952
|
+
for the trigger's accessible name and hover title, dialog, radiogroup, and visible heading; do not
|
|
953
|
+
add a second selected-name row. Pass localized names as each swatch item's `label`, which supplies
|
|
954
|
+
its accessible name and title. Keep `--lr-swatch-picker-wrap: nowrap`: desktop hit size `1.75rem` and
|
|
955
|
+
gap `.25rem`; at widths up to `30rem`, hit size `1.5rem` and gap `.125rem` (28/4px and 24/2px at a
|
|
956
|
+
16px root). Leave its fill size unset. Bound the palette to the viewport and provide horizontal
|
|
957
|
+
overflow for unusually narrow allocations or enlarged text; keyboard focus must bring every swatch
|
|
958
|
+
into view. Do not shrink below the component's 24px floor or replace its Arrow/Home/End and RTL
|
|
959
|
+
behavior. For an independent Shine preference, set `--lr-gemstone-selected-animation: none` on the scope shared by the trigger
|
|
957
960
|
and picker; remove that declaration for Shine ON. OFF preserves the halo and selected accent.
|
|
958
961
|
Application and OS reduced motion still take precedence; persist Shine independently from motion.
|
|
959
962
|
See the composition guide for the controlled picker and preference wiring.
|
|
@@ -2058,8 +2061,10 @@ an already treated Lyra popup.
|
|
|
2058
2061
|
local high container surface, then the overlay surface, and resolves on the painted wrapper, so nearer
|
|
2059
2062
|
theme inputs work.
|
|
2060
2063
|
The existing `--lr-theme-surface-opacity`, `--lr-theme-surface-blur`,
|
|
2061
|
-
`--lr-theme-surface-saturation` and `--lr-theme-surface-highlight` controls apply. Glass uses
|
|
2064
|
+
`--lr-theme-surface-saturation` and `--lr-theme-surface-highlight` controls apply. Glass uses 60%
|
|
2062
2065
|
opacity by default, 12px blur with a 16px ceiling, and qualified text, edges and focus.
|
|
2066
|
+
At opacity below 70%, dark Glass deepens the fill to keep light foregrounds readable against
|
|
2067
|
+
bright backdrops; higher opacity keeps the selected fill color.
|
|
2063
2068
|
The public opacity input accepts 0–1; lower custom opacity may expose backdrops that need
|
|
2064
2069
|
stronger foreground contrast. Solid and accessibility preferences still force opaque fills.
|
|
2065
2070
|
Explicit `data-lr-surface="solid"`, unsupported backdrop filtering, reduced transparency, increased
|
|
@@ -5799,11 +5804,13 @@ forced colors retain solid fills. Solid surfaces use `backdrop-filter: none`; fo
|
|
|
5799
5804
|
`Canvas`. Offer a solid choice wherever the application offers glass, since reduced-transparency
|
|
5800
5805
|
media-query support varies between browsers.
|
|
5801
5806
|
|
|
5802
|
-
Regular glass defaults to
|
|
5807
|
+
Regular glass defaults to 60% opacity with a 12px blur clamped to 16px.
|
|
5803
5808
|
The public `--lr-theme-surface-opacity` input accepts 0 through 1. Lower opacity exposes more
|
|
5804
|
-
of the backdrop; the default foreground qualification covers
|
|
5809
|
+
of the backdrop; the default foreground qualification covers 60%, while a custom lower setting
|
|
5805
5810
|
cannot guarantee contrast against every backdrop. Solid and accessibility preferences retain
|
|
5806
5811
|
opaque fills regardless of this input.
|
|
5812
|
+
Dark Glass deepens the selected fill at opacity below 70% so light foregrounds remain readable
|
|
5813
|
+
against bright backdrops; at 70% and above, the selected fill keeps its original color.
|
|
5807
5814
|
Necessary control borders use the effective painted opacity: their glass adjustment grows as
|
|
5808
5815
|
transparency increases and disappears at 100% opacity. Ordinary and strong borders share this
|
|
5809
5816
|
adjustment; decorative borders and explicit component border overrides keep their own tokens.
|
|
@@ -5817,10 +5824,10 @@ controls use their solid border colors while preserving the enclosing edge again
|
|
|
5817
5824
|
Filled accent interiors retain qualification. Native descendants retain inherited public color
|
|
5818
5825
|
aliases. Custom translucent content fills require the author to choose suitable control borders.
|
|
5819
5826
|
A design panel can offer a Glass opacity range from 0–100%, shown when the selected surface is
|
|
5820
|
-
Glass. Start and reset it at
|
|
5827
|
+
Glass. Start and reset it at 60%; convert the displayed percentage to the public token's 0–1 range.
|
|
5821
5828
|
Apply this CSS input independently of look overrides: `setLyraStyle()` does not accept surface
|
|
5822
5829
|
inputs in its `overrides` allowlist. Persist the percentage in the application's own settings and
|
|
5823
|
-
apply it before first paint, including after restoring those settings. Reset the app setting to
|
|
5830
|
+
apply it before first paint, including after restoring those settings. Reset the app setting to 60
|
|
5824
5831
|
and reapply it. Native `.lr-surface-chrome` wrappers and eligible component chrome consume the
|
|
5825
5832
|
same input:
|
|
5826
5833
|
|
|
@@ -5831,7 +5838,7 @@ function applyGlassOpacity(percent) {
|
|
|
5831
5838
|
document.documentElement.style.setProperty('--lr-theme-surface-opacity', String(opacity));
|
|
5832
5839
|
}
|
|
5833
5840
|
|
|
5834
|
-
applyGlassOpacity(
|
|
5841
|
+
applyGlassOpacity(60); // Default and reset value; apply saved app settings before first paint.
|
|
5835
5842
|
```
|
|
5836
5843
|
|
|
5837
5844
|
Scrolling rail, popup, modal-panel and selection-toolbar surfaces keep a stationary decorative blur layer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aceshooting/lyra-ui",
|
|
3
|
-
"version": "25.6.
|
|
3
|
+
"version": "25.6.2",
|
|
4
4
|
"description": "Free, independent Lit web components: an open-source alternative to Shoelace and Web Awesome with accessible forms, dashboards, charts, and agent UI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -11887,15 +11887,15 @@
|
|
|
11887
11887
|
"katex": "^0.19.0",
|
|
11888
11888
|
"libphonenumber-js": "^1.13.14",
|
|
11889
11889
|
"mammoth": "^1.13.0",
|
|
11890
|
-
"maplibre-gl": "^6.
|
|
11890
|
+
"maplibre-gl": "^6.12.0",
|
|
11891
11891
|
"marked": "^18.0.14",
|
|
11892
11892
|
"oxc-parser": "^0.152.0",
|
|
11893
11893
|
"papaparse": "^5.7.0",
|
|
11894
|
-
"pdfjs-dist": "^6.
|
|
11894
|
+
"pdfjs-dist": "^6.4.299",
|
|
11895
11895
|
"pixelmatch": "^7.2.0",
|
|
11896
11896
|
"playwright": "^1.63.0",
|
|
11897
11897
|
"pngjs": "^7.0.0",
|
|
11898
|
-
"postal-mime": "^4.0.
|
|
11898
|
+
"postal-mime": "^4.0.4",
|
|
11899
11899
|
"qrcode": "^1.5.4",
|
|
11900
11900
|
"react": "^19.3.0",
|
|
11901
11901
|
"shiki": "^4.5.0",
|