diff --git a/src/theme/input.ts b/src/theme/input.ts index c00f8184..ef89dafb 100644 --- a/src/theme/input.ts +++ b/src/theme/input.ts @@ -11,35 +11,35 @@ export default (config: { colors: string[] }) => { variants: { size: { xs: { - base: 'text-xs gap-1 px-2 py-1', + base: 'text-xs px-2 py-1', leading: 'pl-2', trailing: 'pr-2', leadingIcon: 'size-4', trailingIcon: 'size-4' }, sm: { - base: 'text-sm gap-1.5 px-2.5 py-1', + base: 'text-sm px-2.5 py-1', leading: 'pl-2.5', trailing: 'pr-2.5', leadingIcon: 'size-4', trailingIcon: 'size-4' }, md: { - base: 'text-sm gap-1.5 px-2.5 py-1.5', + base: 'text-sm px-2.5 py-1.5', leading: 'pl-2.5', trailing: 'pr-2.5', leadingIcon: 'size-5', trailingIcon: 'size-5' }, lg: { - base: 'text-sm gap-1.5 px-3 py-2', + base: 'text-sm px-3 py-2', leading: 'pl-3', trailing: 'pr-3', leadingIcon: 'size-5', trailingIcon: 'size-5' }, xl: { - base: 'text-sm gap-2.5 px-3.5 py-2.5', + base: 'text-sm px-3.5 py-2.5', leading: 'pl-3.5', trailing: 'pr-3.5', leadingIcon: 'size-5', diff --git a/src/theme/textarea.ts b/src/theme/textarea.ts index 59cf4372..efc4de2e 100644 --- a/src/theme/textarea.ts +++ b/src/theme/textarea.ts @@ -6,19 +6,19 @@ export default (config: { colors: string[] }) => ({ variants: { size: { xs: { - base: 'text-xs gap-1 px-2 py-1' + base: 'text-xs px-2 py-1' }, sm: { - base: 'text-sm gap-1.5 px-2.5 py-1' + base: 'text-sm px-2.5 py-1' }, md: { - base: 'text-sm gap-1.5 px-2.5 py-1.5' + base: 'text-sm px-2.5 py-1.5' }, lg: { - base: 'text-sm gap-1.5 px-3 py-2' + base: 'text-sm px-3 py-2' }, xl: { - base: 'text-sm gap-2.5 px-3.5 py-2.5' + base: 'text-sm px-3.5 py-2.5' } }, variant: { diff --git a/test/components/__snapshots__/Form.spec.ts.snap b/test/components/__snapshots__/Form.spec.ts.snap index 11625d93..e7ce988a 100644 --- a/test/components/__snapshots__/Form.spec.ts.snap +++ b/test/components/__snapshots__/Form.spec.ts.snap @@ -8,7 +8,7 @@ exports[`Form > custom validation works > with error 1`] = `
-
+
@@ -21,7 +21,7 @@ exports[`Form > custom validation works > with error 1`] = `
-
+
@@ -39,7 +39,7 @@ exports[`Form > custom validation works > without error 1`] = `
-
+
@@ -52,7 +52,7 @@ exports[`Form > custom validation works > without error 1`] = `
-
+
@@ -70,7 +70,7 @@ exports[`Form > joi validation works > with error 1`] = `
-
+
@@ -83,7 +83,7 @@ exports[`Form > joi validation works > with error 1`] = `
-
+
@@ -101,7 +101,7 @@ exports[`Form > joi validation works > without error 1`] = `
-
+
@@ -114,7 +114,7 @@ exports[`Form > joi validation works > without error 1`] = `
-
+
@@ -136,7 +136,7 @@ exports[`Form > valibot validation works > with error 1`] = `
-
+
@@ -149,7 +149,7 @@ exports[`Form > valibot validation works > with error 1`] = `
-
+
@@ -167,7 +167,7 @@ exports[`Form > valibot validation works > without error 1`] = `
-
+
@@ -180,7 +180,7 @@ exports[`Form > valibot validation works > without error 1`] = `
-
+
@@ -198,7 +198,7 @@ exports[`Form > yup validation works > with error 1`] = `
-
+
@@ -211,7 +211,7 @@ exports[`Form > yup validation works > with error 1`] = `
-
+
@@ -229,7 +229,7 @@ exports[`Form > yup validation works > without error 1`] = `
-
+
@@ -242,7 +242,7 @@ exports[`Form > yup validation works > without error 1`] = `
-
+
@@ -260,7 +260,7 @@ exports[`Form > zod validation works > with error 1`] = `
-
+
@@ -273,7 +273,7 @@ exports[`Form > zod validation works > with error 1`] = `
-
+
@@ -291,7 +291,7 @@ exports[`Form > zod validation works > without error 1`] = `
-
+
@@ -304,7 +304,7 @@ exports[`Form > zod validation works > without error 1`] = `
-
+
diff --git a/test/components/__snapshots__/Input.spec.ts.snap b/test/components/__snapshots__/Input.spec.ts.snap index a66b7ef9..8f9e8768 100644 --- a/test/components/__snapshots__/Input.spec.ts.snap +++ b/test/components/__snapshots__/Input.spec.ts.snap @@ -1,201 +1,201 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Input > renders with class correctly 1`] = ` -"
+"
" `; exports[`Input > renders with color gray correctly 1`] = ` -"
+"
" `; exports[`Input > renders with color green correctly 1`] = ` -"
+"
" `; exports[`Input > renders with color primary correctly 1`] = ` -"
+"
" `; exports[`Input > renders with color red correctly 1`] = ` -"
+"
" `; exports[`Input > renders with color white correctly 1`] = ` -"
+"
" `; exports[`Input > renders with default slot correctly 1`] = ` -"
Default slot +"
Default slot
" `; exports[`Input > renders with disabled correctly 1`] = ` -"
+"
" `; exports[`Input > renders with icon correctly 1`] = ` -"
+"
" `; exports[`Input > renders with id correctly 1`] = ` -"
+"
" `; exports[`Input > renders with leading and icon correctly 1`] = ` -"
+"
" `; exports[`Input > renders with leading slot correctly 1`] = ` -"
Leading slot +"
Leading slot
" `; exports[`Input > renders with leadingIcon correctly 1`] = ` -"
+"
" `; exports[`Input > renders with loading correctly 1`] = ` -"
+"
" `; exports[`Input > renders with loadingIcon correctly 1`] = ` -"
+"
" `; exports[`Input > renders with name correctly 1`] = ` -"
+"
" `; exports[`Input > renders with placeholder correctly 1`] = ` -"
+"
" `; exports[`Input > renders with required correctly 1`] = ` -"
+"
" `; exports[`Input > renders with size lg correctly 1`] = ` -"
+"
" `; exports[`Input > renders with size md correctly 1`] = ` -"
+"
" `; exports[`Input > renders with size sm correctly 1`] = ` -"
+"
" `; exports[`Input > renders with size xl correctly 1`] = ` -"
+"
" `; exports[`Input > renders with size xs correctly 1`] = ` -"
+"
" `; exports[`Input > renders with trailing and icon correctly 1`] = ` -"
+"
" `; exports[`Input > renders with trailing slot correctly 1`] = ` -"
+"
Trailing slot
" `; exports[`Input > renders with trailingIcon correctly 1`] = ` -"
+"
" `; exports[`Input > renders with type correctly 1`] = ` -"
+"
" `; exports[`Input > renders with ui correctly 1`] = ` -"
+"
" `; exports[`Input > renders with variant none correctly 1`] = ` -"
+"
" `; exports[`Input > renders with variant outline correctly 1`] = ` -"
+"
" diff --git a/test/components/__snapshots__/Textarea.spec.ts.snap b/test/components/__snapshots__/Textarea.spec.ts.snap index aa8550a9..7582f9ea 100644 --- a/test/components/__snapshots__/Textarea.spec.ts.snap +++ b/test/components/__snapshots__/Textarea.spec.ts.snap @@ -1,43 +1,43 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`Textarea > renders with class correctly 1`] = `"
"`; +exports[`Textarea > renders with class correctly 1`] = `"
"`; -exports[`Textarea > renders with color gray correctly 1`] = `"
"`; +exports[`Textarea > renders with color gray correctly 1`] = `"
"`; -exports[`Textarea > renders with color green correctly 1`] = `"
"`; +exports[`Textarea > renders with color green correctly 1`] = `"
"`; -exports[`Textarea > renders with color primary correctly 1`] = `"
"`; +exports[`Textarea > renders with color primary correctly 1`] = `"
"`; -exports[`Textarea > renders with color red correctly 1`] = `"
"`; +exports[`Textarea > renders with color red correctly 1`] = `"
"`; -exports[`Textarea > renders with color white correctly 1`] = `"
"`; +exports[`Textarea > renders with color white correctly 1`] = `"
"`; -exports[`Textarea > renders with default slot correctly 1`] = `"
Default slot
"`; +exports[`Textarea > renders with default slot correctly 1`] = `"
Default slot
"`; -exports[`Textarea > renders with disabled correctly 1`] = `"
"`; +exports[`Textarea > renders with disabled correctly 1`] = `"
"`; -exports[`Textarea > renders with id correctly 1`] = `"
"`; +exports[`Textarea > renders with id correctly 1`] = `"
"`; -exports[`Textarea > renders with name correctly 1`] = `"
"`; +exports[`Textarea > renders with name correctly 1`] = `"
"`; -exports[`Textarea > renders with placeholder correctly 1`] = `"
"`; +exports[`Textarea > renders with placeholder correctly 1`] = `"
"`; -exports[`Textarea > renders with required correctly 1`] = `"
"`; +exports[`Textarea > renders with required correctly 1`] = `"
"`; -exports[`Textarea > renders with rows correctly 1`] = `"
"`; +exports[`Textarea > renders with rows correctly 1`] = `"
"`; -exports[`Textarea > renders with size lg correctly 1`] = `"
"`; +exports[`Textarea > renders with size lg correctly 1`] = `"
"`; -exports[`Textarea > renders with size md correctly 1`] = `"
"`; +exports[`Textarea > renders with size md correctly 1`] = `"
"`; -exports[`Textarea > renders with size sm correctly 1`] = `"
"`; +exports[`Textarea > renders with size sm correctly 1`] = `"
"`; -exports[`Textarea > renders with size xl correctly 1`] = `"
"`; +exports[`Textarea > renders with size xl correctly 1`] = `"
"`; -exports[`Textarea > renders with size xs correctly 1`] = `"
"`; +exports[`Textarea > renders with size xs correctly 1`] = `"
"`; -exports[`Textarea > renders with ui correctly 1`] = `"
"`; +exports[`Textarea > renders with ui correctly 1`] = `"
"`; -exports[`Textarea > renders with variant none correctly 1`] = `"
"`; +exports[`Textarea > renders with variant none correctly 1`] = `"
"`; -exports[`Textarea > renders with variant outline correctly 1`] = `"
"`; +exports[`Textarea > renders with variant outline correctly 1`] = `"
"`;