Skip to content

Commit

Permalink
Merge pull request #20 from sippy-platform/0.11
Browse files Browse the repository at this point in the history
Mellow UI 0.11.1
  • Loading branch information
Studio384 authored Jul 1, 2022
2 parents c964629 + dee8095 commit 5cc6215
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sippy-platform/mellow-ui",
"version": "0.11.0",
"version": "0.11.1",
"description": "React components for the Mellow Design System.",
"main": "./dist/mellow-ui.umd.js",
"module": "./dist/mellow-ui.es.js",
Expand Down
6 changes: 6 additions & 0 deletions src/components/InputControl/InputControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ export interface InputControlProps {
* Type of the input
*/
type?: string;
/**
* If the input is required or not
*/
required?: boolean;
/**
* Custom classes for the label
*/
Expand All @@ -54,6 +58,7 @@ export const InputControl = ({
placeholder,
helper,
onChange,
required,
...props
}: InputControlProps) => {
const uniqueName = name ?? id;
Expand All @@ -68,6 +73,7 @@ export const InputControl = ({
value={value}
className={clsx("input", className)}
placeholder={placeholder}
required={required}
onChange={(event) => onChange({ value: event?.target.value, id })}
aria-describedby={helper ? `${uniqueName}-help` : undefined}
{...props}
Expand Down
2 changes: 1 addition & 1 deletion src/components/SelectControl/SelectControl.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ReactNode, Fragment, useMemo } from "react";
import { ReactNode, Fragment, useMemo } from "react";

import { InputLabel } from "..";

Expand Down

0 comments on commit 5cc6215

Please sign in to comment.