From 7157ebf049e8a783be5e4cf2c72404298c12f124 Mon Sep 17 00:00:00 2001 From: Luke Shay Date: Wed, 22 Nov 2023 19:26:41 -0600 Subject: [PATCH] fixed build --- src/components/form/Input.astro | 7 ++----- src/components/form/Textarea.astro | 13 ++++--------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/components/form/Input.astro b/src/components/form/Input.astro index 17b4491..291433a 100644 --- a/src/components/form/Input.astro +++ b/src/components/form/Input.astro @@ -2,11 +2,8 @@ import ExclamationCircle from "@components/icons/ExclamationCircle.astro" import { clsx } from "@utils/cn" -export type ExcludedProps = - | "name" - | "class" - | "aria-describedby" - | "aria-invalid" +// prettier-ignore +export type ExcludedProps = "name" | "class" | "aria-describedby" | "aria-invalid" export type Props = Omit & { name: string diff --git a/src/components/form/Textarea.astro b/src/components/form/Textarea.astro index 75f9c0a..51c191b 100644 --- a/src/components/form/Textarea.astro +++ b/src/components/form/Textarea.astro @@ -2,16 +2,11 @@ import ExclamationCircle from "@components/icons/ExclamationCircle.astro" import { clsx } from "@utils/cn" -export type ExcludedProps = - | "name" - | "class" - | "aria-describedby" - | "aria-invalid" +// prettier-ignore +export type ExcludedProps = "name" | "class" | "aria-describedby" | "aria-invalid" -export type Props = Omit< - astroHTML.JSX.TextareaHTMLAttributes, - ExcludedProps -> & { +// prettier-ignore +export type Props = Omit & { name: string label: string helpText?: string