From 2503a64cbc016f137428e018fddbf7d6525553c5 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sun, 5 May 2024 11:27:57 +0800 Subject: [PATCH] Update components Update email input autocomplete, multiline text input rows, and link button types. --- categories/web/formatted/react/package.json | 2 +- .../react/src/components/EmailInput/index.tsx | 2 +- categories/web/freeform/react/package.json | 2 +- .../components/MultilineTextInput/index.tsx | 4 +++- categories/web/navigation/react/package.json | 2 +- .../react/src/components/LinkButton/index.tsx | 22 +++---------------- 6 files changed, 10 insertions(+), 24 deletions(-) diff --git a/categories/web/formatted/react/package.json b/categories/web/formatted/react/package.json index 33f4879..32618c1 100644 --- a/categories/web/formatted/react/package.json +++ b/categories/web/formatted/react/package.json @@ -1,6 +1,6 @@ { "name": "@tesseract-design/web-formatted-react", - "version": "0.2.0", + "version": "0.2.1", "files": [ "dist", "src" diff --git a/categories/web/formatted/react/src/components/EmailInput/index.tsx b/categories/web/formatted/react/src/components/EmailInput/index.tsx index 271effa..1314b59 100644 --- a/categories/web/formatted/react/src/components/EmailInput/index.tsx +++ b/categories/web/formatted/react/src/components/EmailInput/index.tsx @@ -137,7 +137,7 @@ export const EmailInput = React.forwardRef { component: C; - href: C extends (props: { href?: infer Href }) => React.ReactNode ? Href : never; + href: C extends (props: { href: infer Href }) => React.ReactNode ? Href : never; } type LinkButtonAllProps< @@ -262,19 +262,3 @@ LinkButton.defaultProps = { // eslint-disable-next-line react/default-props-match-prop-types href: undefined, }; - -// extend the component type here for defining new props -// interface LinkButtonComponentType { -// (props: { href?: number }): React.ReactNode; -// } - -// const CustomLink = (props: { href?: string | number }) => { -// return null; -// }; -// -// const a = ( -// -// );