@@ -35,7 +35,7 @@ export const placementOverrides = () => {
Hello! You can close this notification here:
@@ -88,7 +88,7 @@ export const otherOverrides = () => {
Hello! You can close this dialog here:
diff --git a/docs/components/drawer/use-cases.md b/docs/components/drawer/use-cases.md
index 4ca44531d..a26a4cb08 100644
--- a/docs/components/drawer/use-cases.md
+++ b/docs/components/drawer/use-cases.md
@@ -125,9 +125,9 @@ export const methods = ({ shadowRoot }) => html`
${demoStyle}
-
-
-
+
+
+
diff --git a/docs/components/fieldset/overview.md b/docs/components/fieldset/overview.md
index d835cf0cf..55150b0ac 100644
--- a/docs/components/fieldset/overview.md
+++ b/docs/components/fieldset/overview.md
@@ -12,8 +12,8 @@ A web component that can be used to group multiple input fields or other fieldse
```js preview-story
export const main = () => html`
-
-
+
+
`;
```
diff --git a/docs/components/fieldset/use-cases.md b/docs/components/fieldset/use-cases.md
index 2aa181fe0..05b06e40a 100644
--- a/docs/components/fieldset/use-cases.md
+++ b/docs/components/fieldset/use-cases.md
@@ -16,9 +16,9 @@ The fieldset's modelValue is an `Object` containing properties where the key is
```js preview-story
export const data = () => html`
-
-
-
@@ -38,14 +38,14 @@ export const disabled = () => {
}
return html`
-
-
+
+
-
-
+
+
-
Toggle disabled
+
Toggle disabled
`;
};
```
@@ -59,18 +59,18 @@ export const nestingFieldsets = () => html`
Personal data
-
-
+
+
-
+
-
- console.log(ev.target.parentElement.modelValue)}>
+
+ console.log(ev.target.parentElement.modelValue)}">
Log everything to Action Logger
- console.log(ev.target.parentElement.formElements.nameGroup.modelValue)}>
+ console.log(ev.target.parentElement.formElements.nameGroup.modelValue)}">
Log only Name fieldset to Action Logger
@@ -168,7 +168,7 @@ export const validatingMultipleFieldsets = () => {
}
};
return html`
-
+
diff --git a/docs/components/form/overview.md b/docs/components/form/overview.md
index 6d08d6860..886545a70 100644
--- a/docs/components/form/overview.md
+++ b/docs/components/form/overview.md
@@ -21,10 +21,10 @@ export const main = () => {
});
};
return html`
-
-
-
Explicit submit via JavaScript
+
Explicit submit via JavaScript
`;
};
```
diff --git a/docs/components/input-amount/use-cases.md b/docs/components/input-amount/use-cases.md
index a2d615c4c..28cae1a5f 100644
--- a/docs/components/input-amount/use-cases.md
+++ b/docs/components/input-amount/use-cases.md
@@ -16,7 +16,7 @@ It will accept negative numbers with a minus symbol.
```js preview-story
export const negativeNumber = () => html`
-
+
`;
```
@@ -26,7 +26,7 @@ You can optionally set a currency label with the `currency` attribute, which is
```js preview-story
export const currencySuffix = () => html`
-
+
`;
```
@@ -43,7 +43,7 @@ export const forceLocale = () => {
label="Price"
currency="JOD"
.locale="nl-NL"
- .modelValue=${123456.78}
+ .modelValue="${123456.78}"
>
`;
};
@@ -66,7 +66,7 @@ Separator characters include:
import { preprocessAmount } from '@lion/ui/input-amount.js';
export const forceDigits = () => html`
-
+
`;
```
@@ -81,7 +81,7 @@ export const faultyPrefilled = () => html`
`;
```
@@ -96,11 +96,11 @@ export const noDecimals = () => html`
`;
diff --git a/docs/components/input-date/use-cases.md b/docs/components/input-date/use-cases.md
index 6fc04b327..e6ecee6d9 100644
--- a/docs/components/input-date/use-cases.md
+++ b/docs/components/input-date/use-cases.md
@@ -12,7 +12,7 @@ import '@lion/ui/define/lion-input-date.js';
```js preview-story
export const isADate = () => html`
-
+
`;
```
@@ -25,8 +25,8 @@ export const withMinimumDate = () => {
`;
@@ -42,8 +42,8 @@ export const withMaximumDate = () => {
`;
};
@@ -57,8 +57,8 @@ export const withMinimumAndMaximumDate = () => {
return html`
Enter a date between ${formatDate(new Date('2018/05/24'))} and ${formatDate(
@@ -77,7 +77,7 @@ export const faultyPrefilled = () => html`
`;
```
diff --git a/docs/components/input-datepicker/use-cases.md b/docs/components/input-datepicker/use-cases.md
index 6e98f8aab..1b252f737 100644
--- a/docs/components/input-datepicker/use-cases.md
+++ b/docs/components/input-datepicker/use-cases.md
@@ -17,8 +17,8 @@ Below are examples of different validators for dates.
export const minimumAndMaximumDate = () => html`
Enter a date between ${formatDate(new Date('2018/05/24'))} and ${formatDate(
@@ -36,8 +36,8 @@ export const disableSpecificDates = () => html`
d.getDate() === 15)]}
+ .modelValue="${new Date('2023/06/15')}"
+ .validators="${[new IsDateDisabled(d => d.getDate() === 15)]}"
>
`;
```
@@ -53,7 +53,7 @@ export const calendarHeading = () => html`
`;
```
diff --git a/docs/components/input-email/use-cases.md b/docs/components/input-email/use-cases.md
index 5f98e8d79..01e505512 100644
--- a/docs/components/input-email/use-cases.md
+++ b/docs/components/input-email/use-cases.md
@@ -14,7 +14,7 @@ Use `loadDefaultFeedbackMessages` to get our default feedback messages displayed
```js preview-story
export const faultyPrefilled = () => html`
-
+
`;
```
@@ -39,8 +39,8 @@ export const customValidator = () => {
}
return html`
`;
diff --git a/docs/components/input-iban/use-cases.md b/docs/components/input-iban/use-cases.md
index 786b6df41..03d75c6ee 100644
--- a/docs/components/input-iban/use-cases.md
+++ b/docs/components/input-iban/use-cases.md
@@ -11,7 +11,7 @@ import '@lion/ui/define/lion-input-iban.js';
```js preview-story
export const prefilled = () => html`
-
+
`;
```
@@ -20,7 +20,7 @@ export const prefilled = () => html`
```js preview-story
export const faultyPrefilled = () => html`
@@ -39,8 +39,8 @@ export const countryRestrictions = () => {
loadDefaultFeedbackMessages();
return html`
@@ -58,8 +58,8 @@ export const countryRestrictionsMultiple = () => {
loadDefaultFeedbackMessages();
return html`
@@ -88,8 +88,8 @@ export const blacklistedCountry = () => {
loadDefaultFeedbackMessages();
return html`
diff --git a/docs/components/input-tel-dropdown/extensions.md b/docs/components/input-tel-dropdown/extensions.md
index 6c683536e..8b89196e5 100644
--- a/docs/components/input-tel-dropdown/extensions.md
+++ b/docs/components/input-tel-dropdown/extensions.md
@@ -22,7 +22,7 @@ export const IntlInputTelDropdown = () => {
return html`
{
{
{
${ref(inputTel)}
label="Format strategy"
help-text="Choose a strategy above"
- .modelValue=${'+46707123456'}
+ .modelValue="${'+46707123456'}"
format-strategy="national"
name="phoneNumber"
>
@@ -243,7 +243,7 @@ export const formatCountryCodeStyle = () => {
${ref(inputTel)}
label="Format strategy"
help-text="Choose a strategy above"
- .modelValue=${'+46707123456'}
+ .modelValue="${'+46707123456'}"
format-country-code-style="parentheses"
name="phoneNumber"
>
@@ -268,7 +268,7 @@ export const liveFormat = () => {
html`
```js preview-story
export const prefilled = () => html`
-
+
`;
```
@@ -61,7 +61,7 @@ This field **will still be included** in the parent fieldset or form's `serializ
```js preview-story
export const readOnly = () => html`
-
+
`;
```
@@ -73,6 +73,6 @@ This field **will not be included** in the parent fieldset or form's `serialized
```js preview-story
export const disabled = () => html`
-
+
`;
```
diff --git a/docs/components/listbox/overview.md b/docs/components/listbox/overview.md
index 3708b2a62..6a0a6f8c7 100644
--- a/docs/components/listbox/overview.md
+++ b/docs/components/listbox/overview.md
@@ -15,11 +15,11 @@ import '@lion/ui/define/lion-option.js';
```js preview-story
export const main = () => html`
- Apple
- Artichoke
- Asparagus
- Banana
- Beets
+ Apple
+ Artichoke
+ Asparagus
+ Banana
+ Beets
`;
```
diff --git a/docs/components/listbox/use-cases.md b/docs/components/listbox/use-cases.md
index 4e11379b3..4221ca47a 100644
--- a/docs/components/listbox/use-cases.md
+++ b/docs/components/listbox/use-cases.md
@@ -21,16 +21,16 @@ This will:
```html preview-story
- Apple
- Artichoke
- Asparagus
- Banana
- Beets
- Bell pepper
- Broccoli
- Brussels sprout
- Cabbage
- Carrot
+ Apple
+ Artichoke
+ Asparagus
+ Banana
+ Beets
+ Bell pepper
+ Broccoli
+ Brussels sprout
+ Cabbage
+ Carrot
```
@@ -42,16 +42,16 @@ By default, `orientation="vertical"` is set, which enables up and down arrow key
```html preview-story
- Apple
- Artichoke
- Asparagus
- Banana
- Beets
- Bell pepper
- Broccoli
- Brussels sprout
- Cabbage
- Carrot
+ Apple
+ Artichoke
+ Asparagus
+ Banana
+ Beets
+ Bell pepper
+ Broccoli
+ Brussels sprout
+ Cabbage
+ Carrot
```
@@ -64,16 +64,16 @@ With `multiple-choice` flag configured, multiple options can be checked.
orientation="horizontal"
multiple-choice
>
- Apple
- Artichoke
- Asparagus
- Banana
- Beets
- Bell pepper
- Broccoli
- Brussels sprout
- Cabbage
- Carrot
+ Apple
+ Artichoke
+ Asparagus
+ Banana
+ Beets
+ Bell pepper
+ Broccoli
+ Brussels sprout
+ Cabbage
+ Carrot
```
@@ -86,16 +86,16 @@ See [wai aria spec](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_foll
```html preview-story
- Apple
- Artichoke
- Asparagus
- Banana
- Beets
- Bell pepper
- Broccoli
- Brussels sprout
- Cabbage
- Carrot
+ Apple
+ Artichoke
+ Asparagus
+ Banana
+ Beets
+ Bell pepper
+ Broccoli
+ Brussels sprout
+ Cabbage
+ Carrot
```
@@ -105,16 +105,16 @@ See [wai aria spec](https://www.w3.org/TR/wai-aria-practices/#kbd_selection_foll
```html preview-story
- Apple
- Artichoke
- Asparagus
- Banana
- Beets
- Bell pepper
- Broccoli
- Brussels sprout
- Cabbage
- Carrot
+ Apple
+ Artichoke
+ Asparagus
+ Banana
+ Beets
+ Bell pepper
+ Broccoli
+ Brussels sprout
+ Cabbage
+ Carrot
```
@@ -124,16 +124,16 @@ Navigation will skip over disabled options. Let's disable Artichoke and Brussel
```html preview-story
- Apple
- Artichoke
- Asparagus
- Banana
- Beets
- Bell pepper
- Broccoli
- Brussels sprout
- Cabbage
- Carrot
+ Apple
+ Artichoke
+ Asparagus
+ Banana
+ Beets
+ Bell pepper
+ Broccoli
+ Brussels sprout
+ Cabbage
+ Carrot
```
diff --git a/docs/components/pagination/use-cases.md b/docs/components/pagination/use-cases.md
index c917b2c56..ed6015a10 100644
--- a/docs/components/pagination/use-cases.md
+++ b/docs/components/pagination/use-cases.md
@@ -52,17 +52,17 @@ export const methods = ({ shadowRoot }) => {
}}
>
- shadowRoot.getElementById('pagination-method').previous()}>
+ shadowRoot.getElementById('pagination-method').previous()}">
Previous
- shadowRoot.getElementById('pagination-method').next()}>Next
+ shadowRoot.getElementById('pagination-method').next()}">Next
- shadowRoot.getElementById('pagination-method').first()}>First
- shadowRoot.getElementById('pagination-method').last()}>Last
+ shadowRoot.getElementById('pagination-method').first()}">First
+ shadowRoot.getElementById('pagination-method').last()}">Last
- shadowRoot.getElementById('pagination-method').goto(55)}>
+ shadowRoot.getElementById('pagination-method').goto(55)}">
Go to 55
diff --git a/docs/components/radio-group/overview.md b/docs/components/radio-group/overview.md
index 761d6e593..19febaab2 100644
--- a/docs/components/radio-group/overview.md
+++ b/docs/components/radio-group/overview.md
@@ -13,9 +13,9 @@ import '@lion/ui/define/lion-radio.js';
```js preview-story
export const main = () => html`
-
-
-
+
+
+
`;
```
diff --git a/docs/components/radio-group/use-cases.md b/docs/components/radio-group/use-cases.md
index 732320ada..b1417e1fb 100644
--- a/docs/components/radio-group/use-cases.md
+++ b/docs/components/radio-group/use-cases.md
@@ -33,9 +33,9 @@ You can pre-select an option by adding the checked attribute to the selected `li
```js preview-story
export const preSelect = () => html`
-
-
-
+
+
+
`;
```
@@ -47,9 +47,9 @@ You can disable a specific `lion-radio` option by adding the `disabled` attribut
```js preview-story
export const disabledRadio = () => html`
-
-
-
+
+
+
`;
```
@@ -59,9 +59,9 @@ You can do the same thing for the entire group by setting the `disabled` attribu
```js preview-story
export const disabledGroup = () => html`
-
-
-
+
+
+
`;
```
@@ -73,17 +73,17 @@ You can use `slot="label"` instead of the `label` attribute for defining more co
```js preview-story
export const label = () => html`
-
+
-
+
-
+
@@ -101,17 +101,17 @@ export const helpText = () => html`
@@ -130,9 +130,9 @@ export const event = ({ shadowRoot }) => html`
@model-value-changed=${ev =>
(ev.target.parentElement.querySelector('#selectedDinosaur').innerText = ev.target.modelValue)}
>
-
-
-
+
+
+
Selected dinosaur: N/A
diff --git a/docs/components/select-rich/overview.md b/docs/components/select-rich/overview.md
index ff732e905..1a8bda4a5 100644
--- a/docs/components/select-rich/overview.md
+++ b/docs/components/select-rich/overview.md
@@ -14,9 +14,9 @@ import '@lion/ui/define/lion-option.js';
```html preview-story
- Red
- Hotpink
- Blue
+ Red
+ Hotpink
+ Blue
```
diff --git a/docs/components/select-rich/use-cases.md b/docs/components/select-rich/use-cases.md
index dfc910704..fa573fe5f 100644
--- a/docs/components/select-rich/use-cases.md
+++ b/docs/components/select-rich/use-cases.md
@@ -67,7 +67,7 @@ export const manyOptionsWithScrolling = () => {
I am green
-
+
I am blue
@@ -84,9 +84,9 @@ The readonly attribute is delegated to the invoker for disabling opening the ove
```html preview-story
- Red
- Hotpink
- Teal
+ Red
+ Hotpink
+ Teal
```
@@ -98,19 +98,19 @@ If you disable the entire select, the disabled attribute is also delegated to th
```html preview-story
- Red
- Hotpink
- Teal
+ Red
+ Hotpink
+ Teal
```
```html preview-story
- Red
- Blue
- Hotpink
- Green
- Teal
+ Red
+ Blue
+ Hotpink
+ Green
+ Teal
```
@@ -134,8 +134,8 @@ export const renderOptions = ({ shadowRoot }) => {
);
}
return html`
-
- ${objs.map(obj => html` ${obj.label} `)}
+
+ ${objs.map(obj => html`
Full value:
@@ -152,14 +152,14 @@ This changes the keyboard interaction.
```html preview-story
- Red
- Hotpink
- Teal
+ Red
+ Hotpink
+ Teal
- Red
- Hotpink
- Teal
+ Red
+ Hotpink
+ Teal
```
@@ -199,9 +199,9 @@ export const checkedIndexAndValue = ({ shadowRoot }) => html`
Console log checked index and value
- Red
- Hotpink
- Teal
+ Red
+ Hotpink
+ Teal
`;
```
@@ -223,9 +223,9 @@ For this you can use `has-no-default-selected` attribute.
```html preview-story
- Red
- Hotpink
- Teal
+ Red
+ Hotpink
+ Teal
```
@@ -238,7 +238,7 @@ If there is a single option rendered, then `singleOption` property is set to `tr
```html preview-story
- Red
+ Red
```
@@ -259,12 +259,12 @@ class SingleOptionRemoveAdd extends LitElement {
render() {
return html`
- Add an option
- Remove last option
+ Add an option
+ Remove last option
${this.options.map(
- option => html` ${option} `,
+ option => html` `,
)}
diff --git a/docs/components/select/use-cases.md b/docs/components/select/use-cases.md
index 5961c654b..c7ef2f300 100644
--- a/docs/components/select/use-cases.md
+++ b/docs/components/select/use-cases.md
@@ -13,7 +13,7 @@ loadDefaultFeedbackMessages();
You can preselect an option by setting the property modelValue.
```html preview-story
-
+