Skip to content

Commit

Permalink
Bump up version
Browse files Browse the repository at this point in the history
  • Loading branch information
mucahit committed Nov 5, 2020
1 parent 5a642e5 commit 2dea6ee
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 29 deletions.
20 changes: 10 additions & 10 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": "@hipo/react-ui-toolkit",
"version": "0.3.0",
"version": "0.3.1",
"description": "React based UI toolkit.",
"main": "dist/index.js",
"scripts": {
Expand Down
25 changes: 14 additions & 11 deletions src/form/password-input/PasswordInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,20 @@ function PasswordInput({
hasError={hasError}
placeholder={placeholder}
onChange={onChange}
rightIcon={revealIcon && hideIcon && (
<Button
testid={`${testid}-password-visibility-icon`}
customClassName={passwordInputIconClassName}
ariaLabel={iconAriaLabel}
onClick={togglePasswordVisibility}
shouldStopPropagation={false}
shouldPreventDefault={false}>
{icon}
</Button>
)}
rightIcon={
revealIcon &&
hideIcon && (
<Button
testid={`${testid}-password-visibility-icon`}
customClassName={passwordInputIconClassName}
ariaLabel={iconAriaLabel}
onClick={togglePasswordVisibility}
shouldStopPropagation={false}
shouldPreventDefault={false}>
{icon}
</Button>
)
}
/>
);

Expand Down
14 changes: 7 additions & 7 deletions stories/0-Form.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ storiesOf("Form", module)
))
.add("Password Input", () => (
<FormField label={"Password"}>
<PasswordInput
testid={"LoginForm.input"}
name={"password"}
placeholder={"Enter password"}
onChange={(e) => console.log(e.currentTarget.value)}
/>
</FormField>
<PasswordInput
testid={"LoginForm.input"}
name={"password"}
placeholder={"Enter password"}
onChange={(e) => console.log(e.currentTarget.value)}
/>
</FormField>
))
.add("Checkbox States", () => {
const initialState = {
Expand Down

0 comments on commit 2dea6ee

Please sign in to comment.