Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inputs implementation #271

Merged
merged 5 commits into from
Feb 27, 2023
Merged

Inputs implementation #271

merged 5 commits into from
Feb 27, 2023

Conversation

andrzejewsky
Copy link
Member

Ref: #232 (partially closes)

@vercel
Copy link

vercel bot commented Feb 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
macaw-ui ❌ Failed (Inspect) Feb 27, 2023 at 9:17AM (UTC)
macaw-ui-next ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 27, 2023 at 9:17AM (UTC)

@vercel vercel bot temporarily deployed to Preview – macaw-ui-next February 24, 2023 13:05 Inactive
@andrzejewsky andrzejewsky requested review from krzysztofzuraw and removed request for krzysztofzuraw February 24, 2023 13:06
@vercel vercel bot temporarily deployed to Preview – macaw-ui February 24, 2023 13:06 Inactive
@vercel vercel bot temporarily deployed to Preview – macaw-ui-next February 24, 2023 13:07 Inactive
@vercel vercel bot temporarily deployed to Preview – macaw-ui February 24, 2023 15:14 Inactive
@vercel vercel bot temporarily deployed to Preview – macaw-ui-next February 24, 2023 15:15 Inactive
"color" | "width" | "height" | "size"
> & {
children?: ReactNode;
disabled?: boolean;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: disabled is already part of InputHTMLAttributes interface

Suggested change
disabled?: boolean;

src/components/Input/Input.tsx Show resolved Hide resolved
const [active, setActive] = useState(false);
const typed = Boolean(inputValue || active);

const handleChange = (evt: React.ChangeEvent<HTMLInputElement>) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: I'd rather use e | event for event name

@andrzejewsky andrzejewsky changed the title Basic inputs, without sizes Inputs implementation Feb 27, 2023
@vercel vercel bot temporarily deployed to Preview – macaw-ui February 27, 2023 09:16 Inactive
@vercel vercel bot temporarily deployed to Preview – macaw-ui-next February 27, 2023 09:17 Inactive
@andrzejewsky andrzejewsky merged commit e938279 into canary Feb 27, 2023
@andrzejewsky andrzejewsky deleted the 232-implement-basic-inputs branch February 27, 2023 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants