-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from beda-software/add-allotment
Add allotment component
- Loading branch information
Showing
9 changed files
with
201 additions
and
262 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@import 'src/styles/colors'; | ||
|
||
.title { | ||
display: flex; | ||
line-height: 32px; | ||
margin-bottom: 3px; | ||
} | ||
|
||
.container { | ||
width: 100%; | ||
height: 100%; | ||
overflow: auto; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.evenContainer { | ||
background-color: $base-light-color; | ||
} | ||
|
||
.oddContainer { | ||
background-color: $base-surface-color; | ||
} | ||
|
||
.content { | ||
flex: 1; | ||
padding: 20px; | ||
overflow-y: auto; | ||
} | ||
|
||
.boxHeader { | ||
position: relative; | ||
} |
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 classNames from 'classnames'; | ||
|
||
import s from './Cell.module.scss'; | ||
|
||
interface CellProps extends React.HTMLAttributes<HTMLDivElement> { | ||
title?: string; | ||
even?: boolean; | ||
} | ||
|
||
export function Cell({ title, children, even }: CellProps) { | ||
const isEven = even ?? false; | ||
|
||
return ( | ||
<div className={classNames(s.container, isEven ? s.evenContainer : s.oddContainer)}> | ||
<div className={s.content}> | ||
<div className={s.boxHeader}> | ||
<h2 className={s.title}>{title}</h2> | ||
</div> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
} |
74 changes: 0 additions & 74 deletions
74
web/src/components/ExpandableElement/ExpandableElement.module.scss
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
web/src/components/ExpandableRow/ExpandableRow.module.scss
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.