@aceshooting/lyra-ui 32.1.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.
- package/CHANGELOG.md +224 -1583
- package/README.md +12 -1
- package/custom-elements.slim.json +1 -0
- package/dist/accent-roles.css +1 -0
- package/dist/cli/migrate-wa.mjs +50 -48
- package/dist/cli/migration-contract.json.gz +0 -0
- package/dist/components/agent-tools/tool-call-chip/tool-call-chip.class.d.ts +1 -1
- package/dist/components/conversation/chat-composer/chat-composer.class.d.ts +10 -0
- package/dist/components/conversation/code-block/code-block-base.class.d.ts +3 -1
- package/dist/components/conversation/code-block/code-block-base.class.js +1 -1
- package/dist/components/conversation/code-block/code-block-core.class.d.ts +1 -1
- package/dist/components/conversation/code-block/code-block-core.class.js +1 -1
- package/dist/components/conversation/code-block/code-block.class.d.ts +3 -2
- package/dist/components/conversation/code-block/code-block.class.js +1 -1
- package/dist/components/conversation/code-block/code-grammar-registry.d.ts +35 -0
- package/dist/components/conversation/code-block/code-grammar-registry.js +1 -0
- package/dist/components/conversation/model-select/model-select.class.d.ts +8 -7
- package/dist/components/conversation/selection-toolbar/selection-toolbar.class.d.ts +1 -1
- package/dist/components/conversation/usage-badge/usage-badge.class.d.ts +1 -1
- package/dist/components/conversation/voice-picker/voice-picker.class.d.ts +8 -7
- package/dist/components/data/table/table-support.d.ts +2 -3
- package/dist/components/data/table/table.class.d.ts +2 -1
- package/dist/components/data/timeline/timeline.class.d.ts +17 -6
- package/dist/components/data/timeline/timeline.class.js +2 -2
- package/dist/components/data/timeline/timeline.styles.js +1 -1
- package/dist/components/forms/catalog-picker-base.d.ts +14 -1
- package/dist/components/forms/checkbox/checkbox.class.js +1 -1
- package/dist/components/forms/checkbox-group/checkbox-group.class.d.ts +4 -5
- package/dist/components/forms/checkbox-group/checkbox-group.styles.js +1 -1
- package/dist/components/forms/code-editor/code-editor.class.d.ts +14 -5
- package/dist/components/forms/code-editor/code-editor.styles.js +1 -1
- package/dist/components/forms/color-picker/color-picker.class.d.ts +18 -7
- package/dist/components/forms/color-picker/color-picker.styles.js +1 -1
- package/dist/components/forms/combobox/combobox-option-html.js +1 -0
- package/dist/components/forms/combobox/combobox.class.d.ts +30 -9
- package/dist/components/forms/combobox/combobox.class.js +110 -21
- package/dist/components/forms/combobox/combobox.styles.js +1 -1
- package/dist/components/forms/country-picker/country-picker.class.d.ts +4 -5
- package/dist/components/forms/currency-picker/currency-picker.class.d.ts +4 -5
- package/dist/components/forms/date-picker/date-input.class.d.ts +14 -5
- package/dist/components/forms/date-picker/date-input.class.js +1 -1
- package/dist/components/forms/emoji-picker/emoji-picker.class.d.ts +10 -0
- package/dist/components/forms/emoji-picker/emoji-picker.class.js +1 -1
- package/dist/components/forms/icon-button/icon-button.class.d.ts +2 -1
- package/dist/components/forms/input/input-shared.d.ts +14 -5
- package/dist/components/forms/input/time-input.class.d.ts +15 -6
- package/dist/components/forms/input/time-input.styles.js +1 -1
- package/dist/components/forms/locale-picker/locale-picker.class.d.ts +8 -7
- package/dist/components/forms/otp-input/otp-input.class.d.ts +4 -5
- package/dist/components/forms/otp-input/otp-input.styles.js +1 -1
- package/dist/components/forms/phone-input/phone-input.class.d.ts +14 -5
- package/dist/components/forms/phone-input/phone-input.styles.js +1 -1
- package/dist/components/forms/radio/radio-group.class.d.ts +4 -5
- package/dist/components/forms/radio/radio-group.styles.js +1 -1
- package/dist/components/forms/radio/radio.class.js +2 -2
- package/dist/components/forms/select/select.class.d.ts +5 -6
- package/dist/components/forms/signature-pad/signature-pad.class.d.ts +4 -5
- package/dist/components/forms/signature-pad/signature-pad.styles.js +1 -1
- package/dist/components/forms/slider/slider.class.d.ts +6 -5
- package/dist/components/forms/slider/slider.styles.js +1 -1
- package/dist/components/forms/textarea/textarea.class.d.ts +14 -5
- package/dist/components/forms/time-zone-picker/time-zone-picker.class.d.ts +4 -5
- package/dist/components/forms/token-input/token-input.class.d.ts +10 -10
- package/dist/components/forms/token-input/token-input.class.js +1 -1
- package/dist/components/forms/token-input/token-input.styles.js +1 -1
- package/dist/components/forms/unit-picker/unit-picker.class.d.ts +4 -5
- package/dist/components/layout/command-palette/command-palette.class.d.ts +1 -1
- package/dist/components/layout/menu/menu.class.d.ts +1 -1
- package/dist/components/layout/navigation-menu-item/navigation-menu-item.class.d.ts +1 -1
- package/dist/components/layout/segmented/segmented.class.d.ts +2 -2
- package/dist/components/layout/stepper/step.class.d.ts +14 -1
- package/dist/components/layout/stepper/step.class.js +2 -2
- package/dist/components/media/file-input/file-input.class.d.ts +2 -1
- package/dist/components/media/file-input/file-input.class.js +1 -1
- package/dist/components/media/file-input/file-input.styles.js +1 -1
- package/dist/components/media/lightbox/lightbox-item.class.d.ts +10 -0
- package/dist/components/media/lightbox/lightbox-item.class.js +1 -1
- package/dist/components/media/lightbox/lightbox-source.js +1 -1
- package/dist/components/media/lightbox/lightbox-types.d.ts +4 -1
- package/dist/components/media/lightbox/lightbox.class.d.ts +42 -19
- package/dist/components/media/lightbox/lightbox.class.js +4 -3
- package/dist/components/media/lightbox/lightbox.styles.js +1 -1
- package/dist/components/overlays/context-menu/context-menu.class.d.ts +1 -1
- package/dist/components/overlays/dialog/dialog.class.d.ts +19 -3
- package/dist/components/overlays/dialog/dialog.class.js +1 -1
- package/dist/components/overlays/dialog/dialog.styles.js +1 -1
- package/dist/components/overlays/drawer/drawer.class.d.ts +8 -2
- package/dist/components/overlays/drawer/drawer.class.js +1 -1
- package/dist/components/overlays/overlay/dropdown.class.d.ts +1 -1
- package/dist/components/overlays/overlay/overlay.styles.js +1 -1
- package/dist/components/overlays/overlay/popover.class.d.ts +1 -1
- package/dist/components/overlays/overlay/popover.class.js +1 -1
- package/dist/components/overlays/overlay/tooltip.class.d.ts +5 -0
- package/dist/components/overlays/overlay/tooltip.class.js +2 -2
- package/dist/components/overlays/toast/toast-item.class.d.ts +2 -2
- package/dist/components/overlays/toast/toast-item.styles.js +1 -1
- package/dist/components/retrieval/citation-badge/citation-badge.class.d.ts +1 -1
- package/dist/components/retrieval/entity-chip/entity-chip.class.d.ts +1 -1
- package/dist/components/utility/copy-button/copy-button.class.d.ts +2 -1
- package/dist/components/utility/copy-button/copy-button.class.js +1 -1
- package/dist/components/utility/export-button/export-button.class.d.ts +1 -1
- package/dist/components/utility/icon/icon-library-bootstrap.d.ts +50 -0
- package/dist/components/utility/icon/icon-library-bootstrap.js +1 -0
- package/dist/components/utility/icon/icon-library-font-awesome.d.ts +68 -0
- package/dist/components/utility/icon/icon-library-font-awesome.js +1 -0
- package/dist/components/utility/known-date/known-date.class.d.ts +10 -0
- package/dist/components/utility/mention-popover/mention-popover.class.d.ts +1 -1
- package/dist/components/utility/number-ticker/number-ticker.class.d.ts +10 -2
- package/dist/components/utility/number-ticker/number-ticker.class.js +1 -1
- package/dist/components/utility/tour/tour.class.d.ts +1 -1
- package/dist/framework-types.d.ts +1 -1
- package/dist/internal/accessibility-visibility.js +1 -1
- package/dist/internal/autoloader-manifest.js +1 -1
- package/dist/internal/declarative-overlay-action.js +1 -0
- package/dist/internal/default-strings/forms.generated.js +1 -1
- package/dist/internal/document-token-css.generated.js +10 -0
- package/dist/internal/document-tokens.generated.js +2 -11
- package/dist/internal/document-tokens.js +2 -2
- package/dist/internal/dom-guards.js +1 -1
- package/dist/internal/external-label-association.js +1 -0
- package/dist/internal/focus-navigation.js +1 -1
- package/dist/internal/form-control/chrome.styles.js +1 -1
- package/dist/internal/form-control-labels.js +1 -1
- package/dist/internal/localization-runtime.js +1 -1
- package/dist/internal/localization-types.d.ts +1 -1
- package/dist/internal/localization.js +1 -1
- package/dist/internal/lyra-element.d.ts +11 -2
- package/dist/internal/lyra-element.js +2 -2
- package/dist/internal/package-metadata.js +1 -1
- package/dist/internal/theme-observation.js +1 -1
- package/dist/lyra.d.ts +1 -1
- package/dist/lyra.js +1 -1
- package/dist/styles/tokens-root.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/theme-core.css +1 -1
- package/dist/theme.css +1 -1
- package/llms/components/lr-checkbox-group.md +2 -2
- package/llms/components/lr-citation-badge.md +1 -1
- package/llms/components/lr-code-block-core.md +3 -1
- package/llms/components/lr-code-block.md +14 -0
- package/llms/components/lr-code-editor.md +2 -2
- package/llms/components/lr-color-picker.md +4 -4
- package/llms/components/lr-combobox.md +21 -5
- package/llms/components/lr-context-menu.md +1 -1
- package/llms/components/lr-copy-button.md +4 -3
- package/llms/components/lr-country-picker.md +2 -2
- package/llms/components/lr-currency-picker.md +2 -2
- package/llms/components/lr-date-input.md +1 -1
- package/llms/components/lr-date-picker.md +1 -1
- package/llms/components/lr-dialog.md +30 -2
- package/llms/components/lr-drawer.md +7 -1
- package/llms/components/lr-entity-chip.md +1 -1
- package/llms/components/lr-export-button.md +1 -1
- package/llms/components/lr-file-input.md +1 -1
- package/llms/components/lr-icon.md +96 -0
- package/llms/components/lr-input.md +2 -2
- package/llms/components/lr-lightbox.md +43 -17
- package/llms/components/lr-locale-picker.md +2 -2
- package/llms/components/lr-mention-popover.md +1 -1
- package/llms/components/lr-menu.md +1 -1
- package/llms/components/lr-model-select.md +4 -4
- package/llms/components/lr-native-time-input.md +2 -2
- package/llms/components/lr-number-input.md +2 -2
- package/llms/components/lr-number-ticker.md +7 -2
- package/llms/components/lr-otp-input.md +2 -2
- package/llms/components/lr-phone-input.md +2 -2
- package/llms/components/lr-popover.md +1 -1
- package/llms/components/lr-radio-group.md +2 -2
- package/llms/components/lr-segmented.md +1 -1
- package/llms/components/lr-select.md +3 -3
- package/llms/components/lr-selection-toolbar.md +1 -1
- package/llms/components/lr-signature-pad.md +2 -2
- package/llms/components/lr-slider.md +1 -1
- package/llms/components/lr-step.md +7 -1
- package/llms/components/lr-textarea.md +2 -2
- package/llms/components/lr-time-input.md +3 -3
- package/llms/components/lr-time-zone-picker.md +2 -2
- package/llms/components/lr-timeline.md +12 -5
- package/llms/components/lr-toast.md +1 -1
- package/llms/components/lr-token-input.md +10 -9
- package/llms/components/lr-tool-call-chip.md +1 -1
- package/llms/components/lr-tooltip.md +5 -0
- package/llms/components/lr-unit-picker.md +2 -2
- package/llms/components/lr-usage-badge.md +1 -1
- package/llms/components/lr-voice-picker.md +4 -3
- package/llms/index.md +115 -115
- package/llms/migration.md +87 -8
- package/llms/peers.md +2 -2
- package/llms/shared/forms-and-accessibility.md +4 -1
- package/llms/shared/frameworks-and-ssr.md +10 -1
- package/llms/shared/imports-and-registration.md +8 -1
- package/llms/shared/localization-and-rtl.md +5 -0
- package/llms/shared/native-styles-and-utilities.md +34 -5
- package/llms/shared/styles-and-tokens.md +58 -4
- package/llms/shared/testing-and-utilities.md +9 -0
- package/llms/shared.md +128 -12
- package/locales.json +1 -1
- package/package.json +14 -5
- package/registrations.json +1 -1
- package/skills/compose-lyra-interfaces/SKILL.md +1 -1
- package/skills/lyra-ui/SKILL.md +1 -1
- package/skills/lyra-ui/commands/migrate.md +1 -1
|
@@ -35,8 +35,13 @@ count and during SSR.
|
|
|
35
35
|
- `valueFormatter?: (value: number) => string` — property only; replaces Intl formatting
|
|
36
36
|
|
|
37
37
|
**Methods:** `restart()` — count again from `startValue`.
|
|
38
|
-
**Events:** `lr-finish` (`null` detail) — the ticker settled, including the instant paths. A
|
|
39
|
-
|
|
38
|
+
**Events:** `lr-finish` (`null` detail) — the ticker settled, including the instant paths. A count
|
|
39
|
+
settles early: on the first frame whose formatted text equals the formatted final value it shows
|
|
40
|
+
that value, leaves `:state(counting)` and emits `lr-finish`, rather than repainting the same text until
|
|
41
|
+
`duration` ends (with the default ease-out curve that is when the number visibly stops; an
|
|
42
|
+
overshooting easing settles the first time its text reaches the final value). A `value` change,
|
|
43
|
+
mid-count or later, counts on from the number shown; reduced motion turning on mid-count settles at
|
|
44
|
+
once.
|
|
40
45
|
**CSS parts:** `base`, `value`. **CSS state:** `:state(counting)`.
|
|
41
46
|
|
|
42
47
|
**Accessibility and motion:** the counting text is `aria-hidden` and the final value is visually
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 12 parts,
|
|
12
|
+
- **Themeable via** 12 parts, 31 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
|
---
|
|
@@ -250,7 +250,7 @@ The start-placed label aligns to the first line of the field, measured with `--l
|
|
|
250
250
|
|
|
251
251
|
Further custom properties:
|
|
252
252
|
|
|
253
|
-
- `--lr-form-control-label-
|
|
253
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
254
254
|
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
255
255
|
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
256
256
|
- `--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** 15 parts,
|
|
12
|
+
- **Themeable via** 15 parts, 31 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
|
---
|
|
@@ -346,4 +346,4 @@ Further custom properties:
|
|
|
346
346
|
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
347
347
|
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
348
348
|
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
349
|
-
- `--lr-form-control-label-
|
|
349
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
@@ -318,7 +318,7 @@ capped by the available space. `--lr-overlay-content-padding` (default `var(--lr
|
|
|
318
318
|
|
|
319
319
|
The popup and its arrow paint from the **shared overlay-surface family** (16.0.0):
|
|
320
320
|
`--lr-overlay-surface` (default `var(--lr-color-surface-overlay)`), `--lr-overlay-border` (default
|
|
321
|
-
`var(--lr-color-border-subtle)`), `--lr-overlay-radius` (default `var(--lr-radius)`) and
|
|
321
|
+
`var(--lr-color-border-subtle)`), `--lr-overlay-radius` (default `var(--lr-radius-container)`) and
|
|
322
322
|
`--lr-overlay-shadow-anchored` (default `var(--lr-shadow-m)`). The arrow takes the fill and the
|
|
323
323
|
edge but never the radius — its corners are already cut by its clip path. None of the four is
|
|
324
324
|
declared on `:host`, so a single declaration on `:root` retints every floating surface in the
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
11
11
|
- **Deprecations** none
|
|
12
12
|
- **Optional peers** none
|
|
13
|
-
- **Themeable via** 12 parts,
|
|
13
|
+
- **Themeable via** 12 parts, 17 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
14
14
|
- **Tokens by part** (prefer these over a `::part()` rule) `form-control-label`: `--lr-form-control-required-content`
|
|
15
15
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
16
16
|
|
|
@@ -140,6 +140,6 @@ fieldset disablement, so the group behaves like one native control.
|
|
|
140
140
|
|
|
141
141
|
Further custom properties:
|
|
142
142
|
|
|
143
|
-
- `--lr-form-control-label-
|
|
143
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
144
144
|
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
145
145
|
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -232,7 +232,7 @@ height of the field label.
|
|
|
232
232
|
|
|
233
233
|
Further custom properties:
|
|
234
234
|
|
|
235
|
-
- `--lr-form-control-label-
|
|
235
|
+
- `--lr-form-control-label-gap` (default `var(--lr-space-xs)`): Space between the label above the field and the field.
|
|
236
236
|
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
237
237
|
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
238
238
|
- `--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** 36 parts,
|
|
12
|
+
- **Themeable via** 36 parts, 58 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `form-control-label`: `--lr-form-control-required-content`; `listbox`: `--lr-theme-scrollbar-color`, `--lr-theme-scrollbar-gutter`, `--lr-theme-scrollbar-width`; `option-badge`: `--lr-select-option-badge-bg`; `tag__remove-button`: `--lr-select-tag-remove-hover-bg`; `unknown-value`: `--lr-select-unknown-value-border-style`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -425,7 +425,7 @@ Mapped hooks `--tag-max-size` (default `var(--lr-size-12rem)`), `--show-duration
|
|
|
425
425
|
|
|
426
426
|
The listbox is a floating surface and paints from the **shared overlay-surface family** (16.0.0):
|
|
427
427
|
`--lr-overlay-surface` (default `var(--lr-color-surface-overlay)`), `--lr-overlay-border` (default
|
|
428
|
-
`var(--lr-color-border)`), `--lr-overlay-radius` (default `var(--lr-radius)`) and
|
|
428
|
+
`var(--lr-color-border)`), `--lr-overlay-radius` (default `var(--lr-radius-container)`) and
|
|
429
429
|
`--lr-overlay-shadow-anchored` (default `var(--lr-shadow-m)`). None is declared on `:host`, so one
|
|
430
430
|
declaration on `:root` — or on any ancestor, to scope it — retints this listbox together with every
|
|
431
431
|
other floating surface; the trigger it drops from is untouched and keeps the hooks below.
|
|
@@ -591,6 +591,6 @@ The start-placed label aligns to the first line of the field, measured with `--l
|
|
|
591
591
|
|
|
592
592
|
Further custom properties:
|
|
593
593
|
|
|
594
|
-
- `--lr-form-control-label-
|
|
594
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
595
595
|
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
596
596
|
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -82,7 +82,7 @@ The toolbar is a floating surface and paints from the **shared overlay-surface f
|
|
|
82
82
|
`--lr-overlay-surface` (default `var(--lr-color-surface-overlay)`), `--lr-overlay-border` (default
|
|
83
83
|
`var(--lr-color-border-subtle)`) and `--lr-overlay-shadow-anchored` (default `var(--lr-shadow-m)`). None is
|
|
84
84
|
declared on `:host`, so one declaration on `:root` — or on any ancestor, to scope it — retints this
|
|
85
|
-
surface together with every other floating surface in the library. `--lr-overlay-radius` (default `var(--lr-radius)`) is the matching corner radius.
|
|
85
|
+
surface together with every other floating surface in the library. `--lr-overlay-radius` (default `var(--lr-radius-container)`) is the matching corner radius.
|
|
86
86
|
|
|
87
87
|
**Slots:** `actions` — extra actions rendered after the built-in ask/quote/cite/copy buttons,
|
|
88
88
|
inside the same `role="toolbar"` element and roving-tabindex group. **Optional peer deps:** none.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 8 parts,
|
|
12
|
+
- **Themeable via** 8 parts, 24 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
|
---
|
|
@@ -143,7 +143,7 @@ The start-placed label aligns to the first line of the field, measured with `--l
|
|
|
143
143
|
|
|
144
144
|
Further custom properties:
|
|
145
145
|
|
|
146
|
-
- `--lr-form-control-label-
|
|
146
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
147
147
|
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
148
148
|
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
149
149
|
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
## `lr-slider`
|
|
19
19
|
|
|
20
|
-
**Label and readout.** The label
|
|
20
|
+
**Label and readout.** The label uses the form-control label size, `var(--lr-font-size-md-sm)`, like `lr-input` and `lr-select`; set `--lr-form-control-label-font-size: 1em` on the slider to follow the surrounding font size instead. `label-placement="start"` (see "Label beside the field") puts the label in a column beside a horizontal track. `with-value` shows the **localized number** by default, even when a `valueFormatter` is set and even with `value-placement="label"`; the formatter feeds `aria-valuetext` and the tooltip only. Set `value-display="formatted"` to show the formatter's text in the readout. This is deliberate: a formatter written for assistive text (`"40 percent"`) would otherwise change the visible readout of every existing slider.
|
|
21
21
|
|
|
22
22
|
Labelled `marks` render in the `marks` part: one `mark` per tick, a `mark-label` per label, and
|
|
23
23
|
`mark-label-thinned` on a label hidden for overlapping its neighbour.
|
|
@@ -40,7 +40,13 @@ Locked or Not started), `description`. **Custom property:** `--lr-step-pulse-col
|
|
|
40
40
|
`--pulse-color` (the unprefixed name wins when both are set); layout hooks are the stepper's
|
|
41
41
|
`--lr-stepper-*` properties and their unprefixed aliases. **Custom states:** `:state(active)`, `:state(completed)`,
|
|
42
42
|
`:state(loading)`, `:state(disabled)`, `:state(locked)` and `:state(clickable)`, e.g.
|
|
43
|
-
`lr-step:state(locked) { opacity: 0.6; }`.
|
|
43
|
+
`lr-step:state(locked) { opacity: 0.6; }`. `customStates: string = ''` (attribute `custom-states`) adds
|
|
44
|
+
author-defined states: each space-separated CSS identifier is published as `:state(<name>)`, e.g.
|
|
45
|
+
`<lr-step custom-states="error">` with `lr-step:state(error)::part(marker) { border-color: var(--lr-color-danger); }`.
|
|
46
|
+
The step's own names (`active`, `completed`, `loading`, `disabled`, `locked`, `clickable`), invalid
|
|
47
|
+
identifiers, duplicates, names over 64 characters and names after the 32nd are ignored. It is a
|
|
48
|
+
styling hook only (status text and stepper behavior are unchanged), so pair it with a visible cue.
|
|
49
|
+
**Accessibility:** host `role="listitem"`; `aria-current="step"`
|
|
44
50
|
sits on the focused element (the inner button while clickable, the host otherwise).
|
|
45
51
|
|
|
46
52
|
```html
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 13 parts,
|
|
12
|
+
- **Themeable via** 13 parts, 29 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
|
---
|
|
@@ -279,7 +279,7 @@ The start-placed label aligns to the first line of the field, measured with `--l
|
|
|
279
279
|
|
|
280
280
|
Further custom properties:
|
|
281
281
|
|
|
282
|
-
- `--lr-form-control-label-
|
|
282
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
283
283
|
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
284
284
|
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
285
285
|
- `--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** 23 parts,
|
|
12
|
+
- **Themeable via** 23 parts, 50 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `column`: `--lr-theme-scrollbar-color`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -192,7 +192,7 @@ replaced by it.
|
|
|
192
192
|
|
|
193
193
|
The `popup` panel is a floating surface and paints from the **shared overlay-surface family**
|
|
194
194
|
(16.0.0): `--lr-overlay-surface`, `--lr-overlay-border` (default `var(--lr-color-border)`),
|
|
195
|
-
`--lr-overlay-radius` (default `var(--lr-radius)`) and `--lr-overlay-shadow-anchored` (default
|
|
195
|
+
`--lr-overlay-radius` (default `var(--lr-radius-container)`) and `--lr-overlay-shadow-anchored` (default
|
|
196
196
|
`var(--lr-shadow-m)`). None is declared on `:host`, so one declaration on `:root` — or on any
|
|
197
197
|
ancestor, to scope it — retints this panel together with every other floating surface in the
|
|
198
198
|
library. One deliberate difference from the rest of the family: `--lr-overlay-surface` defaults here
|
|
@@ -230,4 +230,4 @@ Further custom properties:
|
|
|
230
230
|
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
231
231
|
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
232
232
|
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
233
|
-
- `--lr-form-control-label-
|
|
233
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 15 parts,
|
|
12
|
+
- **Themeable via** 15 parts, 7 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
|
---
|
|
@@ -75,4 +75,4 @@ in both modes, following the country picker's event contract.
|
|
|
75
75
|
|
|
76
76
|
Further custom properties:
|
|
77
77
|
|
|
78
|
-
- `--lr-form-control-label-
|
|
78
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
@@ -26,9 +26,9 @@ item's `title`/`description` routinely hold focusable content, so wrapping the r
|
|
|
26
26
|
would trip `nested-interactive`). The opt-in clustered time scale adds only native count-marker
|
|
27
27
|
buttons; it does not make the individual rows interactive.
|
|
28
28
|
|
|
29
|
-
**`wa-timeline` / `wa-timeline-item` parity.** `lr-timeline`
|
|
30
|
-
`orientation="auto"`
|
|
31
|
-
|
|
29
|
+
**`wa-timeline` / `wa-timeline-item` parity.** `lr-timeline` accepts Web Awesome's
|
|
30
|
+
`orientation="auto"` (see the properties below; an unrecognized value keeps `vertical`). It accepts
|
|
31
|
+
`marker-placement: 'start' | 'end' | 'alternate' = 'start'` (`alternate` swaps
|
|
32
32
|
sides on every other item around a central rail and falls back to `start` under 30em; sides follow the
|
|
33
33
|
inline direction, so RTL mirrors), `marker-alignment: 'start' | 'center' = 'start'` (`center` centers the
|
|
34
34
|
marker on the item's height with the rail running above and below it), and `label` (accessible name; a
|
|
@@ -57,8 +57,15 @@ horizontal scrolling retains clipping on the cross axis. Cluster mode keeps its
|
|
|
57
57
|
behavior. Vertical time layouts keep the `--lr-timeline-time-extent` axis and reserve room after it
|
|
58
58
|
for the latest item, which sits at the axis end, so it never overlaps the content that follows.
|
|
59
59
|
|
|
60
|
-
**`lr-timeline` properties:** `orientation: 'vertical' | 'horizontal' = 'vertical'`
|
|
61
|
-
opposite default from `lr-stepper`; `horizontal` makes
|
|
60
|
+
**`lr-timeline` properties:** `orientation: 'vertical' | 'horizontal' | 'auto' = 'vertical'` (type
|
|
61
|
+
`LyraTimelineOrientation`) — note the opposite default from `lr-stepper`; `horizontal` makes
|
|
62
|
+
`[part='base']` a horizontally scrollable row. `auto` measures the timeline's own inline size with a
|
|
63
|
+
`ResizeObserver` and runs it as a row while every item gets about 10em (in the timeline's computed
|
|
64
|
+
font size), as a column otherwise, so a 320px phone or a narrow pane stacks with no breakpoint to
|
|
65
|
+
author; it renders as a column until measured (server-rendered markup included). Read-only
|
|
66
|
+
`effectiveOrientation: 'vertical' | 'horizontal'` reports the axis in effect, and while `auto` the
|
|
67
|
+
host carries a matching `data-effective-orientation` attribute. RTL mirrors the row like
|
|
68
|
+
`horizontal`.
|
|
62
69
|
`accessibleLabel?: string` (attribute `aria-label`) overrides the localized `"Timeline"` name —
|
|
63
70
|
omitting it reads back `undefined` and falls back to that default, while an explicitly empty
|
|
64
71
|
`aria-label` stays empty
|
|
@@ -130,7 +130,7 @@ follow `size`, from a compact `2xs` up to a roomier `xl` — and `--lr-toast-acc
|
|
|
130
130
|
fill). Inherited or direct public values remain authoritative across every size and variant.
|
|
131
131
|
|
|
132
132
|
`--lr-toast-item-gap` (default `var(--lr-space-s)`) controls the gap between the item's icon,
|
|
133
|
-
message, and close action; `--lr-toast-item-radius` (default `var(--lr-radius)`) controls the item
|
|
133
|
+
message, and close action; `--lr-toast-item-radius` (default `var(--lr-radius-container)`) controls the item
|
|
134
134
|
surface and accent-bar start corners, ahead of the shared `--lr-overlay-radius`. They are
|
|
135
135
|
deliberately separate from `--lr-toast-gap`, which continues to control only the region's stack
|
|
136
136
|
spacing. The item joins the shared overlay-surface family for its fill and edge
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 22 parts,
|
|
12
|
+
- **Themeable via** 22 parts, 40 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `form-control-label`: `--lr-form-control-required-content`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -186,13 +186,14 @@ remove button from the tab order, never blocks `focus()`, and never excludes the
|
|
|
186
186
|
`FormData` on submit — only `disabled` does that. Turning it on while a draft is half-typed or an
|
|
187
187
|
inline editor is open discards that uncommitted state without moving focus.
|
|
188
188
|
|
|
189
|
-
**`delimiter` is
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
189
|
+
**`delimiter` is a set of single characters, and it is nullable.** Each character of the string is
|
|
190
|
+
a delimiter on its own: `delimiter=";,"` splits at every semicolon and at every comma, and typing
|
|
191
|
+
either one commits the draft. It does two jobs: it splits
|
|
192
|
+
a committed draft (and a string assigned to `value`) into several tokens, and it supplies the
|
|
193
|
+
keystrokes that commit the draft. Characters are code points, so an emoji delimiter stays whole.
|
|
194
|
+
Pasting never commits by itself; the pasted text joins the draft.
|
|
194
195
|
Setting it to `null` disables both, so a token may contain the delimiter verbatim. **`delimiter="null"`
|
|
195
|
-
does not work** — that
|
|
196
|
+
does not work** — that makes `n`, `u` and `l` delimiters. Use `delimiter="none"`, `delimiter=""`
|
|
196
197
|
(both of which the attribute converter maps to `null`), or a property binding
|
|
197
198
|
(`.delimiter=${null}`). Removing the attribute restores the `,` default.
|
|
198
199
|
|
|
@@ -209,7 +210,7 @@ and the control is neither disabled nor readonly. It proposes each removal throu
|
|
|
209
210
|
`lr-clear`, and returns focus to the draft input.
|
|
210
211
|
|
|
211
212
|
**`value` and `inputValue`.** The array stays canonical, but assigning a string to `value` (or
|
|
212
|
-
`defaultValue`) splits it
|
|
213
|
+
`defaultValue`) splits it at each character of `delimiter` (comma when none) into trimmed, non-empty tokens;
|
|
213
214
|
the reflected `value` attribute remains a JSON array. `inputValue` reads and writes the uncommitted draft
|
|
214
215
|
without committing it.
|
|
215
216
|
|
|
@@ -280,7 +281,7 @@ The start-placed label aligns to the first line of the field, measured with `--l
|
|
|
280
281
|
|
|
281
282
|
Further custom properties:
|
|
282
283
|
|
|
283
|
-
- `--lr-form-control-label-
|
|
284
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
284
285
|
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
285
286
|
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
286
287
|
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|
|
@@ -97,7 +97,7 @@ The anchored detail tooltip is a floating surface and paints from the **shared o
|
|
|
97
97
|
`--lr-overlay-surface` (default `var(--lr-color-surface-overlay)`), `--lr-overlay-border` (default
|
|
98
98
|
`var(--lr-color-border-subtle)`) and `--lr-overlay-shadow-anchored` (default `var(--lr-shadow-m)`). None is
|
|
99
99
|
declared on `:host`, so one declaration on `:root` — or on any ancestor, to scope it — retints this
|
|
100
|
-
surface together with every other floating surface in the library. `--lr-overlay-radius` (default `var(--lr-radius)`) is the matching corner radius.
|
|
100
|
+
surface together with every other floating surface in the library. `--lr-overlay-radius` (default `var(--lr-radius-container)`) is the matching corner radius.
|
|
101
101
|
|
|
102
102
|
`--lr-positioning-strategy` (16.0.0) — the detail tooltip reads this same cascading
|
|
103
103
|
`absolute`/`fixed` override documented on `<lr-popover>` when it is (re)positioned, falling back to
|
|
@@ -86,6 +86,11 @@ later text renders normally.
|
|
|
86
86
|
`arrowPlacement: 'anchor'|'start'|'end'|'center' = 'anchor'` (attribute `arrow-placement`) and
|
|
87
87
|
`arrowPadding: number = 0` (attribute `arrow-padding`) — the same arrow trio `<lr-popover>`
|
|
88
88
|
documents (`llms/components/lr-popover.md`).
|
|
89
|
+
- `fullWidthTrigger: boolean = false` (attribute `full-width-trigger`, reflected) — lays the
|
|
90
|
+
trigger out at full width, as on `<lr-popover>`: the host becomes a block box and the `trigger`
|
|
91
|
+
part and the slotted trigger stretch to the host's inline size, so a block trigger such as an
|
|
92
|
+
actionable card in a grid cell fills its column (and a truncated title inside it can ellipsize).
|
|
93
|
+
Off by default, which keeps the `inline-block` trigger. Positioning is unaffected.
|
|
89
94
|
- `content: string = ''` — plain-text tooltip content, used when nothing is slotted. Whitespace-only
|
|
90
95
|
text in the content slot (template indentation around a `slot="trigger"` element) counts as
|
|
91
96
|
nothing, so `content` still supplies the tooltip text.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 15 parts,
|
|
12
|
+
- **Themeable via** 15 parts, 7 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
|
---
|
|
@@ -73,4 +73,4 @@ in both modes, following the country picker's event contract.
|
|
|
73
73
|
|
|
74
74
|
Further custom properties:
|
|
75
75
|
|
|
76
|
-
- `--lr-form-control-label-
|
|
76
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
@@ -58,7 +58,7 @@ family** (16.0.0): `--lr-overlay-surface` (default `var(--lr-color-surface-overl
|
|
|
58
58
|
`--lr-overlay-border` (default `var(--lr-color-border-subtle)`) and `--lr-overlay-shadow-anchored` (default
|
|
59
59
|
`var(--lr-shadow-m)`). None is declared on `:host`, so one declaration on `:root` — or on any
|
|
60
60
|
ancestor, to scope it — retints this surface together with every other floating surface in the
|
|
61
|
-
library. `--lr-overlay-radius` (default `var(--lr-radius)`) is the matching corner radius.
|
|
61
|
+
library. `--lr-overlay-radius` (default `var(--lr-radius-container)`) is the matching corner radius.
|
|
62
62
|
|
|
63
63
|
`--lr-positioning-strategy` (16.0.0) — the breakdown tooltip reads this same cascading
|
|
64
64
|
`absolute`/`fixed` override documented on `<lr-popover>` when it is (re)positioned, falling back to
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
- **Release history** [CHANGELOG.md](../../CHANGELOG.md)
|
|
10
10
|
- **Deprecations** none
|
|
11
11
|
- **Optional peers** none
|
|
12
|
-
- **Themeable via** 19 parts,
|
|
12
|
+
- **Themeable via** 19 parts, 52 custom properties — see this component's own `@csspart`/`@cssprop` list below
|
|
13
13
|
- **Tokens by part** (prefer these over a `::part()` rule) `form-control-label`: `--lr-form-control-required-content`; `preview-button`: `--lr-voice-picker-trigger-border-color`
|
|
14
14
|
- **Library-wide behavior** (events, form association, `locale`/`strings`, tokens, TS types): `llms/shared.md`
|
|
15
15
|
|
|
@@ -237,7 +237,8 @@ trigger), `expand-icon`, `empty`, `hint`, `error`.
|
|
|
237
237
|
`var(--lr-color-border)` — the control tier, not the decorative `var(--lr-color-border-subtle)`
|
|
238
238
|
floating panels default to, because the listbox belongs to the form control it opens from.
|
|
239
239
|
- `--lr-overlay-radius` — Shared floating-surface corner radius, reached only as the middle arm of
|
|
240
|
-
`--lr-voice-picker-radius`, which still wins when set
|
|
240
|
+
`--lr-voice-picker-radius`, which still wins when set; left unset, the listbox keeps the
|
|
241
|
+
component's own radius default.
|
|
241
242
|
- `--lr-overlay-shadow-anchored` — Elevation of the anchored listbox. Default: `var(--lr-shadow-m)`.
|
|
242
243
|
None of the four is declared on `:host`, so one declaration on `:root` — or on any ancestor, to
|
|
243
244
|
scope it — retints this listbox together with every other floating surface in the library.
|
|
@@ -275,7 +276,7 @@ trigger), `expand-icon`, `empty`, `hint`, `error`.
|
|
|
275
276
|
|
|
276
277
|
Further custom properties:
|
|
277
278
|
|
|
278
|
-
- `--lr-form-control-label-
|
|
279
|
+
- `--lr-form-control-label-gap` also spaces a label above the field.
|
|
279
280
|
- `--lr-form-control-label-line-height` (default `inherit`): Line height of the field label.
|
|
280
281
|
- `--lr-form-control-label-text-align` (default `inherit`): Text alignment of the field label.
|
|
281
282
|
- `--lr-form-control-label-text-transform` (default `inherit`): Text transform of the field label.
|