Skip to content

Commit b08b653

Browse files
committed
format
1 parent 0f39305 commit b08b653

File tree

2 files changed

+28
-14
lines changed

2 files changed

+28
-14
lines changed

packages/uui-textarea/lib/uui-textarea.element.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ export class UUITextareaElement extends LabelMixin(
5858
max-width: 100%;
5959
font-size: var(--uui-size-5);
6060
padding: var(--uui-size-2);
61-
border: 1px solid var(--uui-textarea-border-color, var(--uui-interface-border));
61+
border: 1px solid
62+
var(--uui-textarea-border-color, var(--uui-interface-border));
6263
border-radius: 0;
6364
outline: none;
6465
min-height: var(--uui-textarea-min-height);
@@ -252,7 +253,7 @@ export class UUITextareaElement extends LabelMixin(
252253
>${this.value ? this.value.length : 0}/${this.maxLength}</span
253254
>`;
254255
}
255-
256+
256257
renderMinLength() {
257258
const shouldRender = this.minLength - this.value.length > 0;
258259
return shouldRender

packages/uui-textarea/lib/uui-textarea.story.ts

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export default {
1313

1414
export const AAAOverview: Story = props =>
1515
html`<uui-textarea
16-
style="--uui-textarea-min-height: ${props['--uui-textarea-min-height']}; --uui-textarea-max-height: ${props['--uui-textarea-max-height']}"
16+
style="--uui-textarea-min-height: ${props[
17+
'--uui-textarea-min-height'
18+
]}; --uui-textarea-max-height: ${props['--uui-textarea-max-height']}"
1719
.label=${props.label}
1820
?auto-height=${props.autoHeight}
1921
.minLength=${props.minLength}
@@ -46,9 +48,10 @@ AAAOverview.parameters = {
4648
},
4749
};
4850

49-
5051
export const MaxLength: Story = props =>
51-
html`<uui-textarea label="Label" maxLength=${props.maxLength}></uui-textarea>`;
52+
html`<uui-textarea
53+
label="Label"
54+
maxLength=${props.maxLength}></uui-textarea>`;
5255

5356
MaxLength.args = { maxLength: 20 };
5457
MaxLength.parameters = {
@@ -61,7 +64,9 @@ MaxLength.parameters = {
6164
};
6265

6366
export const MinLength: Story = props =>
64-
html`<uui-textarea label="Label" minLength=${props.minLength}></uui-textarea>`;
67+
html`<uui-textarea
68+
label="Label"
69+
minLength=${props.minLength}></uui-textarea>`;
6570

6671
MinLength.args = { minLength: 20 };
6772
MinLength.parameters = {
@@ -106,23 +111,31 @@ Placeholder.parameters = {
106111
};
107112

108113
export const AutoHeight: Story = props =>
109-
html`
110-
<uui-textarea
111-
label="Label"
112-
style="--uui-textarea-min-height: ${props['--uui-textarea-min-height']}; --uui-textarea-max-height: ${props['--uui-textarea-max-height']}"
113-
?auto-height=${props.autoHeight}></uui-textarea>`;
114+
html` <uui-textarea
115+
label="Label"
116+
style="--uui-textarea-min-height: ${props[
117+
'--uui-textarea-min-height'
118+
]}; --uui-textarea-max-height: ${props['--uui-textarea-max-height']}"
119+
?auto-height=${props.autoHeight}></uui-textarea>`;
114120

115-
AutoHeight.args = {
121+
AutoHeight.args = {
116122
autoHeight: true,
117123
'--uui-textarea-min-height': '100px',
118124
'--uui-textarea-max-height': '300px',
119125
};
120126

121127
AutoHeight.parameters = {
122-
controls: { include: ['autoHeight', '--uui-textarea-min-height', '--uui-textarea-max-height'] },
128+
controls: {
129+
include: [
130+
'autoHeight',
131+
'--uui-textarea-min-height',
132+
'--uui-textarea-max-height',
133+
],
134+
},
123135
docs: {
124136
description: {
125-
story: "The height will confine itself within the max and min height if defined"
137+
story:
138+
'The height will confine itself within the max and min height if defined',
126139
},
127140
source: {
128141
code: `<uui-textarea label="Label" style="--uui-textarea-min-height: 100px; --uui-textarea-max-height: 300px;" auto-height></uui-textarea>`,

0 commit comments

Comments
 (0)