@aceshooting/lyra-ui 3.6.0 → 3.7.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.
- package/README.md +4 -3
- package/custom-elements.json +497 -4
- package/dist/components/button/button.class.d.ts +5 -2
- package/dist/components/button/button.class.d.ts.map +1 -1
- package/dist/components/button/button.class.js +4 -1
- package/dist/components/button/button.class.js.map +1 -1
- package/dist/components/button/button.styles.d.ts.map +1 -1
- package/dist/components/button/button.styles.js +16 -0
- package/dist/components/button/button.styles.js.map +1 -1
- package/dist/components/file-icon/file-icon.class.d.ts +5 -1
- package/dist/components/file-icon/file-icon.class.d.ts.map +1 -1
- package/dist/components/file-icon/file-icon.class.js +20 -2
- package/dist/components/file-icon/file-icon.class.js.map +1 -1
- package/dist/components/file-icon/file-icon.styles.d.ts.map +1 -1
- package/dist/components/file-icon/file-icon.styles.js +4 -0
- package/dist/components/file-icon/file-icon.styles.js.map +1 -1
- package/dist/components/map/map.class.d.ts.map +1 -1
- package/dist/components/map/map.class.js +10 -0
- package/dist/components/map/map.class.js.map +1 -1
- package/dist/components/swatch-picker/swatch-picker.class.d.ts +55 -0
- package/dist/components/swatch-picker/swatch-picker.class.d.ts.map +1 -0
- package/dist/components/swatch-picker/swatch-picker.class.js +120 -0
- package/dist/components/swatch-picker/swatch-picker.class.js.map +1 -0
- package/dist/components/swatch-picker/swatch-picker.d.ts +2 -0
- package/dist/components/swatch-picker/swatch-picker.d.ts.map +1 -0
- package/dist/components/swatch-picker/swatch-picker.js +5 -0
- package/dist/components/swatch-picker/swatch-picker.js.map +1 -0
- package/dist/components/swatch-picker/swatch-picker.styles.d.ts +2 -0
- package/dist/components/swatch-picker/swatch-picker.styles.d.ts.map +1 -0
- package/dist/components/swatch-picker/swatch-picker.styles.js +55 -0
- package/dist/components/swatch-picker/swatch-picker.styles.js.map +1 -0
- package/dist/internal/localization.d.ts +1 -1
- package/dist/internal/localization.d.ts.map +1 -1
- package/dist/internal/localization.js +1 -0
- package/dist/internal/localization.js.map +1 -1
- package/dist/internal/root-registration-allowlist.d.ts +1 -1
- package/dist/internal/root-registration-allowlist.d.ts.map +1 -1
- package/dist/internal/root-registration-allowlist.js +1 -0
- package/dist/internal/root-registration-allowlist.js.map +1 -1
- package/dist/lyra.d.ts +4 -0
- package/dist/lyra.d.ts.map +1 -1
- package/dist/lyra.js +2 -0
- package/dist/lyra.js.map +1 -1
- package/llms-full.txt +71 -5
- package/llms.txt +2 -2
- package/package.json +1 -1
- package/vscode-css-data.json +14 -0
- package/vscode-html-data.json +40 -3
- package/web-types.json +49 -4
package/vscode-html-data.json
CHANGED
|
@@ -1104,7 +1104,7 @@
|
|
|
1104
1104
|
"name": "appearance",
|
|
1105
1105
|
"description": {
|
|
1106
1106
|
"kind": "markdown",
|
|
1107
|
-
"value": "`'filled'` (the default) reads `--lyra-button-fill`, which for `variant=\"neutral\"` is the\nambient `--lyra-color-surface` -- matching this component's own container, by design, for a\nlow-emphasis default. `'accent'` is the loud tier: a solid, high-contrast fill for every\nvariant, including `neutral
|
|
1107
|
+
"value": "`'filled'` (the default) reads `--lyra-button-fill`, which for `variant=\"neutral\"` is the\nambient `--lyra-color-surface` -- matching this component's own container, by design, for a\nlow-emphasis default. `'accent'` is the loud tier: a solid, high-contrast fill for every\nvariant, including `neutral`. `'link'` is zero-chrome inline text — no padding, border, or\nmin-height, underlined, colored from `--lyra-button-accent` (the same token `'plain'` uses)\nand inheriting the surrounding font — for a text link that flows inline in a sentence rather\nthan a button-shaped control.\n\nType: `ButtonAppearance` \nDefault: `'filled'`"
|
|
1108
1108
|
}
|
|
1109
1109
|
},
|
|
1110
1110
|
{
|
|
@@ -4004,7 +4004,7 @@
|
|
|
4004
4004
|
"name": "lyra-file-icon",
|
|
4005
4005
|
"description": {
|
|
4006
4006
|
"kind": "markdown",
|
|
4007
|
-
"value": "Displays a localized, tokenized file-type badge from a MIME type.\n\n---\n\n**CSS Shadow Parts**\n\n| Name | Description |\n| --- | --- |\n| `base` | The outer presentation wrapper. |\n| `icon` | The format badge. |\n| `label` | The localized format label in `variant=\"label\"` mode. |"
|
|
4007
|
+
"value": "Displays a localized, tokenized file-type badge from a MIME type.\n\n---\n\n**CSS Shadow Parts**\n\n| Name | Description |\n| --- | --- |\n| `base` | The outer presentation wrapper. |\n| `icon` | The format badge. |\n| `label` | The localized format label in `variant=\"label\"` mode. |\n| `size` | The formatted `size`, shown alongside `label` in `variant=\"label\"` mode when `size` is known. |\n\n---\n\n**CSS Custom Properties**\n\n- `--lyra-file-icon-size` (default: `var(--lyra-size-2rem)`) — Inline/block size of the format badge."
|
|
4008
4008
|
},
|
|
4009
4009
|
"attributes": [
|
|
4010
4010
|
{
|
|
@@ -4032,7 +4032,7 @@
|
|
|
4032
4032
|
"name": "mime-type",
|
|
4033
4033
|
"description": {
|
|
4034
4034
|
"kind": "markdown",
|
|
4035
|
-
"value": "MIME type used to resolve metadata.\n\nType: `string` \nDefault: `''`"
|
|
4035
|
+
"value": "MIME type used to resolve metadata. Also exposed as a `title` tooltip on the badge.\n\nType: `string` \nDefault: `''`"
|
|
4036
4036
|
}
|
|
4037
4037
|
},
|
|
4038
4038
|
{
|
|
@@ -4042,6 +4042,13 @@
|
|
|
4042
4042
|
"value": "Optional filename used for fallback detection with an empty or generic MIME type.\n\nType: `string` \nDefault: `''`"
|
|
4043
4043
|
}
|
|
4044
4044
|
},
|
|
4045
|
+
{
|
|
4046
|
+
"name": "size",
|
|
4047
|
+
"description": {
|
|
4048
|
+
"kind": "markdown",
|
|
4049
|
+
"value": "File size in bytes, shown alongside the label in `variant=\"label\"` mode. `0` (the default) renders no size — matches `<lyra-attachment-chip>`'s `size` convention.\n\nType: `number` \nDefault: `0`"
|
|
4050
|
+
}
|
|
4051
|
+
},
|
|
4045
4052
|
{
|
|
4046
4053
|
"name": "variant",
|
|
4047
4054
|
"description": {
|
|
@@ -8796,6 +8803,36 @@
|
|
|
8796
8803
|
}
|
|
8797
8804
|
]
|
|
8798
8805
|
},
|
|
8806
|
+
{
|
|
8807
|
+
"name": "lyra-swatch-picker",
|
|
8808
|
+
"description": {
|
|
8809
|
+
"kind": "markdown",
|
|
8810
|
+
"value": "`<lyra-swatch-picker>` -- a single-select picker over a small, fixed set of color swatches with\nthe WAI-ARIA APG `radiogroup` contract built in: `role=\"radiogroup\"`/`role=\"radio\"`, roving\ntabindex, automatic activation (click or arrow-key move both select immediately, like a native\nradio group), cyclic Arrow/Home/End navigation. Distinct from `<lyra-color-picker>`'s freeform\nnative color input -- this picks exactly one of N designer-chosen named colors, the shape apps\notherwise hand-roll as a row of round accent-color buttons.\n\n---\n\n**CSS Shadow Parts**\n\n| Name | Description |\n| --- | --- |\n| `base` | The `role=\"radiogroup\"` root. |\n| `swatch` | A single `role=\"radio\"` color swatch; the selected one is `[part='swatch'][aria-checked='true']`. |\n\n---\n\n**CSS Custom Properties**\n\n- `--lyra-swatch-picker-selected-color` (default: `var(--lyra-color-brand)`) — Ring color drawn around the selected swatch, themeable independently of the focus ring and every other ring color."
|
|
8811
|
+
},
|
|
8812
|
+
"attributes": [
|
|
8813
|
+
{
|
|
8814
|
+
"name": "label",
|
|
8815
|
+
"description": {
|
|
8816
|
+
"kind": "markdown",
|
|
8817
|
+
"value": "Accessible name for the radiogroup, used when no visible label context\nexists around it (e.g. no wrapping `<label>` or adjacent heading). Set\nas `aria-label` on the `role=\"radiogroup\"` element. A plain `aria-label`\nattribute on the host itself is honored as a fallback when this is left\nunset, matching `<lyra-segmented>`.\n\nType: `string` \nDefault: `''`"
|
|
8818
|
+
}
|
|
8819
|
+
},
|
|
8820
|
+
{
|
|
8821
|
+
"name": "locale",
|
|
8822
|
+
"description": {
|
|
8823
|
+
"kind": "markdown",
|
|
8824
|
+
"value": "Optional locale override. Otherwise the nearest `locale`/`lang` ancestor is used.\n\nType: `string` \nDefault: `''`"
|
|
8825
|
+
}
|
|
8826
|
+
},
|
|
8827
|
+
{
|
|
8828
|
+
"name": "value",
|
|
8829
|
+
"description": {
|
|
8830
|
+
"kind": "markdown",
|
|
8831
|
+
"value": "The currently selected option's `value`, or `null` when nothing is selected.\n\nType: `string | null` \nDefault: `null`"
|
|
8832
|
+
}
|
|
8833
|
+
}
|
|
8834
|
+
]
|
|
8835
|
+
},
|
|
8799
8836
|
{
|
|
8800
8837
|
"name": "lyra-switch",
|
|
8801
8838
|
"description": {
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@aceshooting/lyra-ui",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.7.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -1271,7 +1271,7 @@
|
|
|
1271
1271
|
"attributes": [
|
|
1272
1272
|
{
|
|
1273
1273
|
"name": "appearance",
|
|
1274
|
-
"description": "`'filled'` (the default) reads `--lyra-button-fill`, which for `variant=\"neutral\"` is the\nambient `--lyra-color-surface` -- matching this component's own container, by design, for a\nlow-emphasis default. `'accent'` is the loud tier: a solid, high-contrast fill for every\nvariant, including `neutral
|
|
1274
|
+
"description": "`'filled'` (the default) reads `--lyra-button-fill`, which for `variant=\"neutral\"` is the\nambient `--lyra-color-surface` -- matching this component's own container, by design, for a\nlow-emphasis default. `'accent'` is the loud tier: a solid, high-contrast fill for every\nvariant, including `neutral`. `'link'` is zero-chrome inline text — no padding, border, or\nmin-height, underlined, colored from `--lyra-button-accent` (the same token `'plain'` uses)\nand inheriting the surrounding font — for a text link that flows inline in a sentence rather\nthan a button-shaped control.\n\nType: `ButtonAppearance` \nDefault: `'filled'`",
|
|
1275
1275
|
"value": {
|
|
1276
1276
|
"type": [
|
|
1277
1277
|
"ButtonAppearance"
|
|
@@ -4533,7 +4533,7 @@
|
|
|
4533
4533
|
},
|
|
4534
4534
|
{
|
|
4535
4535
|
"name": "lyra-file-icon",
|
|
4536
|
-
"description": "Displays a localized, tokenized file-type badge from a MIME type.\n\n---\n\n**CSS Shadow Parts**\n\n| Name | Description |\n| --- | --- |\n| `base` | The outer presentation wrapper. |\n| `icon` | The format badge. |\n| `label` | The localized format label in `variant=\"label\"` mode. |",
|
|
4536
|
+
"description": "Displays a localized, tokenized file-type badge from a MIME type.\n\n---\n\n**CSS Shadow Parts**\n\n| Name | Description |\n| --- | --- |\n| `base` | The outer presentation wrapper. |\n| `icon` | The format badge. |\n| `label` | The localized format label in `variant=\"label\"` mode. |\n| `size` | The formatted `size`, shown alongside `label` in `variant=\"label\"` mode when `size` is known. |\n\n---\n\n**CSS Custom Properties**\n\n- `--lyra-file-icon-size` (default: `var(--lyra-size-2rem)`) — Inline/block size of the format badge.",
|
|
4537
4537
|
"attributes": [
|
|
4538
4538
|
{
|
|
4539
4539
|
"name": "decorative",
|
|
@@ -4564,7 +4564,7 @@
|
|
|
4564
4564
|
},
|
|
4565
4565
|
{
|
|
4566
4566
|
"name": "mime-type",
|
|
4567
|
-
"description": "MIME type used to resolve metadata.\n\nType: `string` \nDefault: `''`",
|
|
4567
|
+
"description": "MIME type used to resolve metadata. Also exposed as a `title` tooltip on the badge.\n\nType: `string` \nDefault: `''`",
|
|
4568
4568
|
"value": {
|
|
4569
4569
|
"type": [
|
|
4570
4570
|
"string"
|
|
@@ -4580,6 +4580,15 @@
|
|
|
4580
4580
|
]
|
|
4581
4581
|
}
|
|
4582
4582
|
},
|
|
4583
|
+
{
|
|
4584
|
+
"name": "size",
|
|
4585
|
+
"description": "File size in bytes, shown alongside the label in `variant=\"label\"` mode. `0` (the default) renders no size — matches `<lyra-attachment-chip>`'s `size` convention.\n\nType: `number` \nDefault: `0`",
|
|
4586
|
+
"value": {
|
|
4587
|
+
"type": [
|
|
4588
|
+
"number"
|
|
4589
|
+
]
|
|
4590
|
+
}
|
|
4591
|
+
},
|
|
4583
4592
|
{
|
|
4584
4593
|
"name": "variant",
|
|
4585
4594
|
"description": "Shows only the icon or the icon together with its localized label.\n\nType: `LyraFileIconVariant` \nDefault: `'icon'`",
|
|
@@ -9777,6 +9786,34 @@
|
|
|
9777
9786
|
}
|
|
9778
9787
|
]
|
|
9779
9788
|
},
|
|
9789
|
+
{
|
|
9790
|
+
"name": "lyra-swatch-picker",
|
|
9791
|
+
"description": "`<lyra-swatch-picker>` -- a single-select picker over a small, fixed set of color swatches with\nthe WAI-ARIA APG `radiogroup` contract built in: `role=\"radiogroup\"`/`role=\"radio\"`, roving\ntabindex, automatic activation (click or arrow-key move both select immediately, like a native\nradio group), cyclic Arrow/Home/End navigation. Distinct from `<lyra-color-picker>`'s freeform\nnative color input -- this picks exactly one of N designer-chosen named colors, the shape apps\notherwise hand-roll as a row of round accent-color buttons.\n\n---\n\n**CSS Shadow Parts**\n\n| Name | Description |\n| --- | --- |\n| `base` | The `role=\"radiogroup\"` root. |\n| `swatch` | A single `role=\"radio\"` color swatch; the selected one is `[part='swatch'][aria-checked='true']`. |\n\n---\n\n**CSS Custom Properties**\n\n- `--lyra-swatch-picker-selected-color` (default: `var(--lyra-color-brand)`) — Ring color drawn around the selected swatch, themeable independently of the focus ring and every other ring color.",
|
|
9792
|
+
"attributes": [
|
|
9793
|
+
{
|
|
9794
|
+
"name": "label",
|
|
9795
|
+
"description": "Accessible name for the radiogroup, used when no visible label context\nexists around it (e.g. no wrapping `<label>` or adjacent heading). Set\nas `aria-label` on the `role=\"radiogroup\"` element. A plain `aria-label`\nattribute on the host itself is honored as a fallback when this is left\nunset, matching `<lyra-segmented>`.\n\nType: `string` \nDefault: `''`",
|
|
9796
|
+
"value": {
|
|
9797
|
+
"type": [
|
|
9798
|
+
"string"
|
|
9799
|
+
]
|
|
9800
|
+
}
|
|
9801
|
+
},
|
|
9802
|
+
{
|
|
9803
|
+
"name": "locale",
|
|
9804
|
+
"description": "Optional locale override. Otherwise the nearest `locale`/`lang` ancestor is used.\n\nType: `string` \nDefault: `''`",
|
|
9805
|
+
"value": {
|
|
9806
|
+
"type": [
|
|
9807
|
+
"string"
|
|
9808
|
+
]
|
|
9809
|
+
}
|
|
9810
|
+
},
|
|
9811
|
+
{
|
|
9812
|
+
"name": "value",
|
|
9813
|
+
"description": "The currently selected option's `value`, or `null` when nothing is selected.\n\nType: `string | null` \nDefault: `null`"
|
|
9814
|
+
}
|
|
9815
|
+
]
|
|
9816
|
+
},
|
|
9780
9817
|
{
|
|
9781
9818
|
"name": "lyra-switch",
|
|
9782
9819
|
"description": "`<lyra-switch>` — a boolean toggle-switch form control. Structurally the\nsame idea as a checkbox (form-associated via `ElementInternals`, click and\nSpace/Enter both toggle) but with switch semantics: `role=\"switch\"` +\n`aria-checked` read to assistive tech as an on/off state rather than a\nchecked/unchecked one, and there is no indeterminate state.\n\n`checked` is not a plain string, so this attaches `ElementInternals`\ndirectly and implements its own `updateValidity()` rather than using the\n`FormAssociated` mixin (that mixin's `value` accessor assumes a string —\nsee `<lyra-combobox>` for the same direct-`ElementInternals` shape with a\nnon-string value).\n\nShips an opt-in `hint`/`errorText` form-control chrome (props + matching named slots +\n`hint`/`error` CSS parts), mirroring `<lyra-select>`'s pattern for those two pieces -- left\nunset, neither renders. Deliberately no separate top-of-field `label` prop/slot/part mirroring\n`<lyra-select>`'s `form-control-label`: the default slot already *is* this control's visible,\nclickable label (same as `<lyra-checkbox>`), so a second label surface would be redundant.\n\n---\n\n**Slots**\n\n| Name | Description |\n| --- | --- |\n| (default) | Label text, rendered next to the track. Clicking it toggles the switch, the same as clicking a checkbox's associated `<label>`. If left empty, set `aria-label` on the host so the control still has an accessible name. |\n| `error` | Custom error content. |\n| `hint` | Custom hint content. |\n\n---\n\n**CSS Shadow Parts**\n\n| Name | Description |\n| --- | --- |\n| `base` | The whole interactive control (`role=\"switch\"`); wraps the track and label. |\n| `error` | The error message. |\n| `form-control` | The outer wrapper around the switch, error and hint. |\n| `hint` | The hint message. |\n| `label` | The wrapper around the default slot. |\n| `thumb` | The circular knob that slides across the track. |\n| `track` | The pill-shaped background. |",
|
|
@@ -11891,6 +11928,10 @@
|
|
|
11891
11928
|
"name": "--lyra-empty-compact-padding",
|
|
11892
11929
|
"description": "**`<lyra-empty>`** (default: `var(--lyra-space-xs)`) — Padding used in compact mode; accepts any padding shorthand (e.g. `8px 2px`)."
|
|
11893
11930
|
},
|
|
11931
|
+
{
|
|
11932
|
+
"name": "--lyra-file-icon-size",
|
|
11933
|
+
"description": "**`<lyra-file-icon>`** (default: `var(--lyra-size-2rem)`) — Inline/block size of the format badge."
|
|
11934
|
+
},
|
|
11894
11935
|
{
|
|
11895
11936
|
"name": "--lyra-flag-aspect-ratio",
|
|
11896
11937
|
"description": "**`<lyra-flag>`** (default: `4 / 3`) — Rectangular flag aspect ratio."
|
|
@@ -12035,6 +12076,10 @@
|
|
|
12035
12076
|
"name": "--lyra-svg-viewer-max-height",
|
|
12036
12077
|
"description": "**`<lyra-svg-viewer>`** (default: `none`) — Maximum block size of the scrollable body before it scrolls internally. Also settable via the `max-height` property."
|
|
12037
12078
|
},
|
|
12079
|
+
{
|
|
12080
|
+
"name": "--lyra-swatch-picker-selected-color",
|
|
12081
|
+
"description": "**`<lyra-swatch-picker>`** (default: `var(--lyra-color-brand)`) — Ring color drawn around the selected swatch, themeable independently of the focus ring and every other ring color."
|
|
12082
|
+
},
|
|
12038
12083
|
{
|
|
12039
12084
|
"name": "--lyra-textarea-max-block-size",
|
|
12040
12085
|
"description": "**`<lyra-textarea>`** (default: `none`) — Maximum auto-grown block size before the textarea scrolls."
|