diff --git a/src/theme/button.ts b/src/theme/button.ts index 3e4765b2..430f7610 100644 --- a/src/theme/button.ts +++ b/src/theme/button.ts @@ -22,27 +22,27 @@ export default (config: { colors: string[] }) => ({ }, size: { xs: { - base: 'px-2 py-1 text-xs gap-x-1', + base: 'px-2 py-1 text-xs gap-1', leadingIcon: 'size-4', trailingIcon: 'size-4' }, sm: { - base: 'px-2.5 py-1.5 text-xs gap-x-1.5', + base: 'px-2.5 py-1.5 text-xs gap-1.5', leadingIcon: 'size-4', trailingIcon: 'size-4' }, md: { - base: 'px-2.5 py-1.5 text-sm gap-x-1.5', + base: 'px-2.5 py-1.5 text-sm gap-1.5', leadingIcon: 'size-5', trailingIcon: 'size-5' }, lg: { - base: 'px-3 py-2 text-sm gap-x-2', + base: 'px-3 py-2 text-sm gap-2', leadingIcon: 'size-5', trailingIcon: 'size-5' }, xl: { - base: 'px-3.5 py-2.5 text-sm gap-x-2.5', + base: 'px-3.5 py-2.5 text-sm gap-2.5', leadingIcon: 'size-5', trailingIcon: 'size-5' } diff --git a/src/theme/input.ts b/src/theme/input.ts index d163c465..135fabdd 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-x-1 px-2 py-1', + base: 'text-xs gap-1 px-2 py-1', leading: 'pl-2', trailing: 'pr-2', leadingIcon: 'size-4', trailingIcon: 'size-4' }, sm: { - base: 'text-sm gap-x-1.5 px-2.5 py-1', + base: 'text-sm gap-1.5 px-2.5 py-1', leading: 'pl-2.5', trailing: 'pr-2.5', leadingIcon: 'size-4', trailingIcon: 'size-4' }, md: { - base: 'text-sm gap-x-1.5 px-2.5 py-1.5', + base: 'text-sm gap-1.5 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-x-1.5 px-3 py-2', + base: 'text-sm gap-1.5 px-3 py-2', leading: 'pl-3', trailing: 'pr-3', leadingIcon: 'size-5', trailingIcon: 'size-5' }, xl: { - base: 'text-sm gap-x-2.5 px-3.5 py-2.5', + base: 'text-sm gap-2.5 px-3.5 py-2.5', leading: 'pl-3.5', trailing: 'pr-3.5', leadingIcon: 'size-5', diff --git a/src/theme/modal.ts b/src/theme/modal.ts index 3b9a2b1c..8b2ec985 100644 --- a/src/theme/modal.ts +++ b/src/theme/modal.ts @@ -4,7 +4,7 @@ export default { content: 'fixed z-50 w-full h-dvh bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-800 flex flex-col focus:outline-none', header: 'px-4 py-5 sm:px-6', body: 'flex-1 p-4 sm:p-6', - footer: 'flex items-center gap-x-1.5 p-4 sm:px-6', + footer: 'flex items-center gap-1.5 p-4 sm:px-6', title: 'text-gray-900 dark:text-white font-semibold', description: 'mt-1 text-gray-500 dark:text-gray-400 text-sm', close: 'absolute top-4 right-4' diff --git a/src/theme/slideover.ts b/src/theme/slideover.ts index 72338be5..c6ae5523 100644 --- a/src/theme/slideover.ts +++ b/src/theme/slideover.ts @@ -4,7 +4,7 @@ export default { content: 'fixed z-50 bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-800 sm:ring ring-gray-200 dark:ring-gray-800 sm:shadow-lg flex flex-col focus:outline-none', header: 'px-4 py-5 sm:px-6', body: 'flex-1 overflow-y-auto p-4 sm:p-6', - footer: 'flex items-center gap-x-1.5 p-4 sm:px-6', + footer: 'flex items-center gap-1.5 p-4 sm:px-6', title: 'text-gray-900 dark:text-white font-semibold', description: 'mt-1 text-gray-500 dark:text-gray-400 text-sm', close: 'absolute top-4 right-4' diff --git a/src/theme/textarea.ts b/src/theme/textarea.ts index 55f459cb..59cf4372 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-x-1 px-2 py-1' + base: 'text-xs gap-1 px-2 py-1' }, sm: { - base: 'text-sm gap-x-1.5 px-2.5 py-1' + base: 'text-sm gap-1.5 px-2.5 py-1' }, md: { - base: 'text-sm gap-x-1.5 px-2.5 py-1.5' + base: 'text-sm gap-1.5 px-2.5 py-1.5' }, lg: { - base: 'text-sm gap-x-1.5 px-3 py-2' + base: 'text-sm gap-1.5 px-3 py-2' }, xl: { - base: 'text-sm gap-x-2.5 px-3.5 py-2.5' + base: 'text-sm gap-2.5 px-3.5 py-2.5' } }, variant: { diff --git a/test/components/__snapshots__/Button.spec.ts.snap b/test/components/__snapshots__/Button.spec.ts.snap index 21c5cc58..7cf8f88e 100644 --- a/test/components/__snapshots__/Button.spec.ts.snap +++ b/test/components/__snapshots__/Button.spec.ts.snap @@ -1,72 +1,72 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`Button > renders with block correctly 1`] = ` -"" `; -exports[`Button > renders with class correctly 1`] = `""`; +exports[`Button > renders with class correctly 1`] = `""`; exports[`Button > renders with color black correctly 1`] = ` -"" `; exports[`Button > renders with color gray correctly 1`] = ` -"" `; exports[`Button > renders with color green correctly 1`] = ` -"" `; exports[`Button > renders with color primary correctly 1`] = ` -"" `; exports[`Button > renders with color red correctly 1`] = ` -"" `; exports[`Button > renders with color white correctly 1`] = ` -"" `; exports[`Button > renders with default slot correctly 1`] = ` -"" `; exports[`Button > renders with disabled correctly 1`] = ` -"" `; exports[`Button > renders with icon correctly 1`] = ` -"" `; exports[`Button > renders with leading and icon correctly 1`] = ` -"" `; exports[`Button > renders with size md correctly 1`] = ` -"" `; exports[`Button > renders with size sm correctly 1`] = ` -"" `; exports[`Button > renders with size xl correctly 1`] = ` -"" `; exports[`Button > renders with size xs correctly 1`] = ` -"" `; exports[`Button > renders with square correctly 1`] = ` -"" `; exports[`Button > renders with trailing and icon correctly 1`] = ` -"" `; -exports[`Button > renders with ui correctly 1`] = `""`; +exports[`Button > renders with ui correctly 1`] = `""`; exports[`Button > renders with variant ghost correctly 1`] = ` -"" `; exports[`Button > renders with variant link correctly 1`] = ` -"" `; exports[`Button > renders with variant outline correctly 1`] = ` -"" `; exports[`Button > renders with variant soft correctly 1`] = ` -"" `; exports[`Button > renders with variant solid correctly 1`] = ` -"" `; exports[`Button > renders with variant subtle correctly 1`] = ` -"" diff --git a/test/components/__snapshots__/Form.spec.ts.snap b/test/components/__snapshots__/Form.spec.ts.snap index 1cc937d1..11625d93 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 2d983118..1871f6f4 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__/Modal.spec.ts.snap b/test/components/__snapshots__/Modal.spec.ts.snap index 80b4499b..38d6dd20 100644 --- a/test/components/__snapshots__/Modal.spec.ts.snap +++ b/test/components/__snapshots__/Modal.spec.ts.snap @@ -9,7 +9,7 @@ exports[`Modal > renders with body slot correctly 1`] = ` @@ -178,7 +178,7 @@ exports[`Modal > renders with fullscreen correctly 1`] = ` @@ -217,7 +217,7 @@ exports[`Slideover > renders with left side correctly 1`] = `
-
-
-
-
-
-
-
-
-
-