diff --git a/src/theme/textarea.ts b/src/theme/textarea.ts index d30ab6d4..e1e2d48d 100644 --- a/src/theme/textarea.ts +++ b/src/theme/textarea.ts @@ -4,37 +4,11 @@ import input from './input' export default (options: Required) => { return defu({ - slots: { - leading: 'absolute start-0 flex items-start', - trailing: 'absolute end-0 flex items-start' - }, variants: { autoresize: { true: { base: 'resize-none' } - }, - size: { - xs: { - leading: 'ps-2 inset-y-1', - trailing: 'pe-2 inset-y-1' - }, - sm: { - leading: 'ps-2.5 inset-y-1.5', - trailing: 'pe-2.5 inset-y-1.5' - }, - md: { - leading: 'ps-2.5 inset-y-1.5', - trailing: 'pe-2.5 inset-y-1.5' - }, - lg: { - leading: 'ps-3 inset-y-2', - trailing: 'pe-3 inset-y-2' - }, - xl: { - leading: 'ps-3 inset-y-2', - trailing: 'pe-3 inset-y-2' - } } } }, input(options)) diff --git a/test/components/__snapshots__/Textarea-vue.spec.ts.snap b/test/components/__snapshots__/Textarea-vue.spec.ts.snap index 453f4d87..e6967c3a 100644 --- a/test/components/__snapshots__/Textarea-vue.spec.ts.snap +++ b/test/components/__snapshots__/Textarea-vue.spec.ts.snap @@ -22,15 +22,15 @@ exports[`Textarea > renders with autoresize correctly 1`] = ` `; exports[`Textarea > renders with avatar and leadingIcon correctly 1`] = ` -"
+"
" `; -exports[`Textarea > renders with avatar and trailingIcon correctly 1`] = `"
"`; +exports[`Textarea > renders with avatar and trailingIcon correctly 1`] = `"
"`; exports[`Textarea > renders with avatar correctly 1`] = ` -"
+"
" `; @@ -57,7 +57,7 @@ exports[`Textarea > renders with disabled correctly 1`] = ` `; exports[`Textarea > renders with icon correctly 1`] = ` -"
+"
" `; @@ -70,45 +70,45 @@ exports[`Textarea > renders with id correctly 1`] = ` `; exports[`Textarea > renders with leading and icon correctly 1`] = ` -"
+"
" `; exports[`Textarea > renders with leading slot correctly 1`] = ` -"
Leading slot +"
Leading slot
" `; exports[`Textarea > renders with leadingIcon correctly 1`] = ` -"
+"
" `; exports[`Textarea > renders with loading and avatar correctly 1`] = ` -"
+"
" `; exports[`Textarea > renders with loading correctly 1`] = ` -"
+"
" `; -exports[`Textarea > renders with loading trailing and avatar correctly 1`] = `"
"`; +exports[`Textarea > renders with loading trailing and avatar correctly 1`] = `"
"`; exports[`Textarea > renders with loading trailing correctly 1`] = ` "
- +
" `; exports[`Textarea > renders with loadingIcon correctly 1`] = ` -"
+"
" `; @@ -248,19 +248,19 @@ exports[`Textarea > renders with size xs correctly 1`] = ` exports[`Textarea > renders with trailing and icon correctly 1`] = ` "
- +
" `; exports[`Textarea > renders with trailing slot correctly 1`] = ` "
- Trailing slot + Trailing slot
" `; exports[`Textarea > renders with trailingIcon correctly 1`] = ` "
- +
" `; diff --git a/test/components/__snapshots__/Textarea.spec.ts.snap b/test/components/__snapshots__/Textarea.spec.ts.snap index c8811693..35f566ff 100644 --- a/test/components/__snapshots__/Textarea.spec.ts.snap +++ b/test/components/__snapshots__/Textarea.spec.ts.snap @@ -22,15 +22,15 @@ exports[`Textarea > renders with autoresize correctly 1`] = ` `; exports[`Textarea > renders with avatar and leadingIcon correctly 1`] = ` -"
+"
" `; -exports[`Textarea > renders with avatar and trailingIcon correctly 1`] = `"
"`; +exports[`Textarea > renders with avatar and trailingIcon correctly 1`] = `"
"`; exports[`Textarea > renders with avatar correctly 1`] = ` -"
+"
" `; @@ -57,7 +57,7 @@ exports[`Textarea > renders with disabled correctly 1`] = ` `; exports[`Textarea > renders with icon correctly 1`] = ` -"
+"
" `; @@ -70,45 +70,45 @@ exports[`Textarea > renders with id correctly 1`] = ` `; exports[`Textarea > renders with leading and icon correctly 1`] = ` -"
+"
" `; exports[`Textarea > renders with leading slot correctly 1`] = ` -"
Leading slot +"
Leading slot
" `; exports[`Textarea > renders with leadingIcon correctly 1`] = ` -"
+"
" `; exports[`Textarea > renders with loading and avatar correctly 1`] = ` -"
+"
" `; exports[`Textarea > renders with loading correctly 1`] = ` -"
+"
" `; -exports[`Textarea > renders with loading trailing and avatar correctly 1`] = `"
"`; +exports[`Textarea > renders with loading trailing and avatar correctly 1`] = `"
"`; exports[`Textarea > renders with loading trailing correctly 1`] = ` "
- +
" `; exports[`Textarea > renders with loadingIcon correctly 1`] = ` -"
+"
" `; @@ -248,19 +248,19 @@ exports[`Textarea > renders with size xs correctly 1`] = ` exports[`Textarea > renders with trailing and icon correctly 1`] = ` "
- +
" `; exports[`Textarea > renders with trailing slot correctly 1`] = ` "
- Trailing slot + Trailing slot
" `; exports[`Textarea > renders with trailingIcon correctly 1`] = ` "
- +
" `;