diff --git a/.changeset/yellow-mails-exist.md b/.changeset/yellow-mails-exist.md
new file mode 100644
index 000000000..eae484171
--- /dev/null
+++ b/.changeset/yellow-mails-exist.md
@@ -0,0 +1,7 @@
+---
+'@lion/nodejs-helpers': minor
+---
+
+Update underlying code-formatter prettier to major version 3 and updated the prettify API accordingly.
+
+Consumers of this package need to make sure to await any calls to `prettify` as the function now returns a promise.
diff --git a/docs/blog/extending-documentation.md b/docs/blog/extending-documentation.md
index bf8cd476c..911bfd647 100644
--- a/docs/blog/extending-documentation.md
+++ b/docs/blog/extending-documentation.md
@@ -262,15 +262,14 @@ Or you can add an extra paragraph below the content. Create a fenced codeblock:
### Lea Tabs Special Feature
```js
-export const specialFeature = () =>
- html`
-
- Info
- Info page with lots of information about us.
- Work
- Work page that showcases our work.
-
- `;
+export const specialFeature = () => html`
+
+ Info
+ Info page with lots of information about us.
+ Work
+ Work page that showcases our work.
+
+`;
```
## Summary
diff --git a/docs/components/button/use-cases.md b/docs/components/button/use-cases.md
index dd32cff89..8ba83e0b9 100644
--- a/docs/components/button/use-cases.md
+++ b/docs/components/button/use-cases.md
@@ -28,16 +28,17 @@ export const disabled = () => html`Disabled`
The minimum click area needs to be at least `44px` by `44px` according to [WCAG Success Criterion 2.5.5 Target Size (Enhanced)](https://www.w3.org/TR/WCAG22/#target-size-enhanced).
```js preview-story
-export const minimumClickArea = () => html`
- xs`;
+export const minimumClickArea = () =>
+ html`
+ xs`;
```
## Usage with native form
diff --git a/docs/components/collapsible/assets/applyDemoCollapsibleStyles.js b/docs/components/collapsible/assets/applyDemoCollapsibleStyles.js
index caba2de06..dd5b6b8ee 100644
--- a/docs/components/collapsible/assets/applyDemoCollapsibleStyles.js
+++ b/docs/components/collapsible/assets/applyDemoCollapsibleStyles.js
@@ -7,7 +7,9 @@ const applyDemoCollapsibleStyles = () => {
margin: 16px;
border-radius: 4px;
width: 400px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
+ box-shadow:
+ 0 1px 3px rgba(0, 0, 0, 0.12),
+ 0 1px 2px rgba(0, 0, 0, 0.24);
}
.demo-custom-collapsible-body {
@@ -18,7 +20,9 @@ const applyDemoCollapsibleStyles = () => {
border-width: 0;
border-radius: 2px;
padding: 12px 24px;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
+ box-shadow:
+ 0 1px 3px rgba(0, 0, 0, 0.12),
+ 0 1px 2px rgba(0, 0, 0, 0.24);
font-weight: bold;
color: #3f51b5;
}
diff --git a/docs/components/combobox/overview.md b/docs/components/combobox/overview.md
index dcee94177..b5f7fc9c1 100644
--- a/docs/components/combobox/overview.md
+++ b/docs/components/combobox/overview.md
@@ -25,8 +25,9 @@ export const main = () => html`
${lazyRender(
listboxData.map(
- (entry, i) =>
- html` ${entry} `,
+ (entry, i) => html`
+ ${entry}
+ `,
),
)}
diff --git a/docs/components/combobox/src/gh-combobox/gh-button.js b/docs/components/combobox/src/gh-combobox/gh-button.js
index c24f2d33a..65f8f5505 100644
--- a/docs/components/combobox/src/gh-combobox/gh-button.js
+++ b/docs/components/combobox/src/gh-combobox/gh-button.js
@@ -35,7 +35,9 @@ export class GhButton extends LionButton {
color: #24292e;
background-color: #fafbfc;
border-color: rgba(27, 31, 35, 0.15);
- box-shadow: 0 1px 0 rgba(27, 31, 35, 0.04), inset 0 1px 0 hsla(0, 0%, 100%, 0.25);
+ box-shadow:
+ 0 1px 0 rgba(27, 31, 35, 0.04),
+ inset 0 1px 0 hsla(0, 0%, 100%, 0.25);
transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
}
diff --git a/docs/components/combobox/src/gh-combobox/gh-combobox.js b/docs/components/combobox/src/gh-combobox/gh-combobox.js
index c4c6a47e5..cee9f254d 100644
--- a/docs/components/combobox/src/gh-combobox/gh-combobox.js
+++ b/docs/components/combobox/src/gh-combobox/gh-combobox.js
@@ -123,8 +123,15 @@ export class GhCombobox extends LionCombobox {
/** @configure LionCombobox */
:host {
- font-family: apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif,
- Apple Color Emoji, Segoe UI Emoji;
+ font-family:
+ apple-system,
+ BlinkMacSystemFont,
+ Segoe UI,
+ Helvetica,
+ Arial,
+ sans-serif,
+ Apple Color Emoji,
+ Segoe UI Emoji;
font-size: 14px;
}
diff --git a/docs/components/combobox/src/google-combobox/google-combobox.js b/docs/components/combobox/src/google-combobox/google-combobox.js
index 128bb78b5..e5881c9e7 100644
--- a/docs/components/combobox/src/google-combobox/google-combobox.js
+++ b/docs/components/combobox/src/google-combobox/google-combobox.js
@@ -403,15 +403,13 @@ export class GoogleCombobox extends LionCombobox {
),
prefix: () => renderLitAsNode(html` ${googleSearchIcon} `),
suffix: () =>
- renderLitAsNode(
- html` `,
- ),
+ renderLitAsNode(html`
+
+ `),
'clear-btn': () =>
- renderLitAsNode(
- html`
-
- `,
- ),
+ renderLitAsNode(html`
+
+ `),
};
}
diff --git a/docs/components/combobox/src/md-combobox/MdFieldMixin.js b/docs/components/combobox/src/md-combobox/MdFieldMixin.js
index 1c813f9c9..c0f9e1aa5 100644
--- a/docs/components/combobox/src/md-combobox/MdFieldMixin.js
+++ b/docs/components/combobox/src/md-combobox/MdFieldMixin.js
@@ -48,7 +48,8 @@ export const MdFieldMixin = dedupeMixin(
transform: perspective(100px);
-ms-transform: none;
transform-origin: 0 0;
- transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
+ transition:
+ transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
/* z-index: 1; */
@@ -205,7 +206,9 @@ export const MdFieldMixin = dedupeMixin(
background-position: 50%;
transform: scale(10, 10);
opacity: 0;
- transition: transform 0.25s, opacity 0.5s;
+ transition:
+ transform 0.25s,
+ opacity 0.5s;
}
.input-group__container > .input-group__prefix ::slotted(button:active)::after,
@@ -288,7 +291,8 @@ export const MdFieldMixin = dedupeMixin(
visibility: visible;
opacity: 1;
transform: scaleX(1);
- transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
+ transition:
+ transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
opacity 0.1s cubic-bezier(0.25, 0.8, 0.25, 1),
background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
diff --git a/docs/components/combobox/src/wa-combobox/wa-combobox.js b/docs/components/combobox/src/wa-combobox/wa-combobox.js
index 70180c9f9..be3f0dbaf 100644
--- a/docs/components/combobox/src/wa-combobox/wa-combobox.js
+++ b/docs/components/combobox/src/wa-combobox/wa-combobox.js
@@ -28,7 +28,9 @@ class WaOption extends LionOption {
cursor: pointer;
color: rgb(74, 74, 74);
padding: 0;
- transition: max-height 0.4s ease, opacity 0.3s ease;
+ transition:
+ max-height 0.4s ease,
+ opacity 0.3s ease;
max-height: 500px;
}
@@ -287,8 +289,18 @@ class WaCombobox extends LionCombobox {
...super.styles,
css`
:host {
- font-family: SF Pro Text, SF Pro Icons, system, -apple-system, system-ui, BlinkMacSystemFont,
- Helvetica Neue, Helvetica, Lucida Grande, Kohinoor Devanagari, sans-serif;
+ font-family:
+ SF Pro Text,
+ SF Pro Icons,
+ system,
+ -apple-system,
+ system-ui,
+ BlinkMacSystemFont,
+ Helvetica Neue,
+ Helvetica,
+ Lucida Grande,
+ Kohinoor Devanagari,
+ sans-serif;
}
.input-group__container {
diff --git a/docs/components/combobox/use-cases.md b/docs/components/combobox/use-cases.md
index 6fb52e918..d213efb39 100644
--- a/docs/components/combobox/use-cases.md
+++ b/docs/components/combobox/use-cases.md
@@ -242,8 +242,9 @@ export const multipleChoice = () => html`
>
${lazyRender(
listboxData.map(
- (entry, i) =>
- html` ${entry} `,
+ (entry, i) => html`
+ ${entry}
+ `,
),
)}
@@ -264,8 +265,9 @@ export const multipleCustomizableChoice = () => html`
>
${lazyRender(
listboxData.map(
- (entry, i) =>
- html` ${entry} `,
+ (entry, i) => html`
+ ${entry}
+ `,
),
)}
@@ -434,23 +436,23 @@ const onModelValueChanged = event => {
console.log(`event.target.modelValue: ${JSON.stringify(event.target.modelValue)}`);
};
-export const complexObjectChoiceValue = () => html`
- ${lazyRender(
- listboxComplexData.map(
- entry =>
- html`
+export const complexObjectChoiceValue = () =>
+ html`
+ ${lazyRender(
+ listboxComplexData.map(
+ entry => html`
${entry.label}
${entry.description}
`,
- ),
- )}
-`;
+ ),
+ )}
+ `;
```
## Listbox compatibility
diff --git a/docs/components/input-tel-dropdown/src/intl-input-tel-dropdown.js b/docs/components/input-tel-dropdown/src/intl-input-tel-dropdown.js
index 8c32d01cc..e263edcb2 100644
--- a/docs/components/input-tel-dropdown/src/intl-input-tel-dropdown.js
+++ b/docs/components/input-tel-dropdown/src/intl-input-tel-dropdown.js
@@ -46,9 +46,15 @@ export class IntlInputTelDropdown extends ScopedElementsMixin(LionInputTelDropdo
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
- -webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
- -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
- transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
+ -webkit-transition:
+ border-color ease-in-out 0.15s,
+ -webkit-box-shadow ease-in-out 0.15s;
+ -o-transition:
+ border-color ease-in-out 0.15s,
+ box-shadow ease-in-out 0.15s;
+ transition:
+ border-color ease-in-out 0.15s,
+ box-shadow ease-in-out 0.15s;
}
.input-group__input {
@@ -64,8 +70,12 @@ export class IntlInputTelDropdown extends ScopedElementsMixin(LionInputTelDropdo
:host([focused]) .input-group__container {
border-color: #66afe9;
outline: 0;
- -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(102 175 233 / 60%);
- box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(102 175 233 / 60%);
+ -webkit-box-shadow:
+ inset 0 1px 1px rgb(0 0 0 / 8%),
+ 0 0 8px rgb(102 175 233 / 60%);
+ box-shadow:
+ inset 0 1px 1px rgb(0 0 0 / 8%),
+ 0 0 8px rgb(102 175 233 / 60%);
}
`,
];
diff --git a/docs/components/input/use-cases.md b/docs/components/input/use-cases.md
index 613faa79a..f1d170ca0 100644
--- a/docs/components/input/use-cases.md
+++ b/docs/components/input/use-cases.md
@@ -20,8 +20,9 @@ Can be provided via the `label-sr-only` boolean attribute.
The label will be hidden, but still readable by screen readers.
```js preview-story
-export const labelSrOnly = () =>
- html` `;
+export const labelSrOnly = () => html`
+
+`;
```
> Note: Once we support the ElementInternals API, the equivalent will be ``
diff --git a/docs/components/progress-indicator/examples.md b/docs/components/progress-indicator/examples.md
index 1f91a1517..3cf24cb97 100644
--- a/docs/components/progress-indicator/examples.md
+++ b/docs/components/progress-indicator/examples.md
@@ -51,15 +51,14 @@ By given the progress-indicator a value it becomes determinate.
The min is automatically set to "0" and max to "100", but they can be set to your local needs.
```js preview-story
-export const progressBarDemo = () =>
- html`
-
-
- `;
+export const progressBarDemo = () => html`
+
+
+`;
```
## Styled progress spinner example
@@ -120,6 +119,7 @@ class MyIndeterminateProgressSpinner extends LionProgressIndicator {
```
```js preview-story
-export const main = () =>
- html` `;
+export const main = () => html`
+
+`;
```
diff --git a/docs/components/tabs/src/lea-tab-panel.js b/docs/components/tabs/src/lea-tab-panel.js
index dfe27f1e2..42b1aed8b 100644
--- a/docs/components/tabs/src/lea-tab-panel.js
+++ b/docs/components/tabs/src/lea-tab-panel.js
@@ -7,7 +7,9 @@ export class LeaTabPanel extends LitElement {
background-color: #fff;
background-image: linear-gradient(top, #fff, #ddd);
border-radius: 0 2px 2px 2px;
- box-shadow: 0 2px 2px #000, 0 -1px 0 #fff inset;
+ box-shadow:
+ 0 2px 2px #000,
+ 0 -1px 0 #fff inset;
padding: 30px;
}
`;
diff --git a/docs/components/tabs/src/lea-tab.js b/docs/components/tabs/src/lea-tab.js
index 752cd5a4d..07e269ae6 100644
--- a/docs/components/tabs/src/lea-tab.js
+++ b/docs/components/tabs/src/lea-tab.js
@@ -10,7 +10,10 @@ export class LeaTab extends LitElement {
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
color: #fff;
float: left;
- font: bold 12px/35px 'Lucida sans', Arial, Helvetica;
+ font:
+ bold 12px/35px 'Lucida sans',
+ Arial,
+ Helvetica;
height: 35px;
padding: 0 30px;
text-decoration: none;
@@ -23,7 +26,9 @@ export class LeaTab extends LitElement {
:host(:focus) {
border-radius: 4px;
- box-shadow: 0 0 8px #9fcaea, 0 0 0 1px #559bd1;
+ box-shadow:
+ 0 0 8px #9fcaea,
+ 0 0 0 1px #559bd1;
/* outline: 0; */
}
diff --git a/docs/fundamentals/node-tools/providence-analytics/assets/_mermaid.svg.js b/docs/fundamentals/node-tools/providence-analytics/assets/_mermaid.svg.js
index 189e03117..4a6d15d55 100644
--- a/docs/fundamentals/node-tools/providence-analytics/assets/_mermaid.svg.js
+++ b/docs/fundamentals/node-tools/providence-analytics/assets/_mermaid.svg.js
@@ -19,7 +19,10 @@ export const providenceFlowSvg = html`