-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added black as the new default TextColor for the input shape
- Loading branch information
1 parent
7278aa6
commit 4113bc5
Showing
5 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './password.component'; |
17 changes: 17 additions & 0 deletions
17
src/pods/properties/components/password/password.component.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.container { | ||
display: flex; | ||
gap: 0.5em; | ||
align-items: center; | ||
padding: var(--space-xs) var(--space-md); | ||
border-bottom: 1px solid var(--primary-300); | ||
} | ||
|
||
.container :first-child { | ||
flex: 1; | ||
} | ||
|
||
.checkbox { | ||
width: var(--space-md); | ||
height: var(--space-md); | ||
cursor: pointer; | ||
} |
23 changes: 23 additions & 0 deletions
23
src/pods/properties/components/password/password.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import classes from './password.component.module.css'; | ||
|
||
interface Props { | ||
label: string; | ||
isPassword: boolean; | ||
onChange: (isPassword: boolean) => void; | ||
} | ||
|
||
export const Password: React.FC<Props> = props => { | ||
const { label, isPassword, onChange } = props; | ||
|
||
return ( | ||
<div className={classes.container}> | ||
<p>{label}</p> | ||
<input | ||
type="checkbox" | ||
checked={isPassword} | ||
onChange={() => onChange(!isPassword)} | ||
className={classes.checkbox} | ||
/> | ||
</div> | ||
); | ||
}; |