-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add upload list and fetch metadata for selected uploaded items
- Loading branch information
1 parent
482dc9b
commit 4fec259
Showing
10 changed files
with
600 additions
and
130 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,5 @@ | ||
.gallery-file-upload { | ||
&.button-only { | ||
--height-border: 0; | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
app/components/report/ReportBuilder/DatasetsConfigureButton/DatasetItem/index.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,40 @@ | ||
import React from 'react'; | ||
import { _cs } from '@togglecorp/fujs'; | ||
import { | ||
RawButton, | ||
} from '@the-deep/deep-ui'; | ||
|
||
import styles from './styles.css'; | ||
|
||
interface Props { | ||
datasetId: string; | ||
title: string; | ||
active: boolean; | ||
onClick: (datasetId: string) => void; | ||
} | ||
|
||
function DatasetItem(props: Props) { | ||
const { | ||
title, | ||
datasetId, | ||
onClick, | ||
active, | ||
} = props; | ||
|
||
return ( | ||
<RawButton | ||
name={datasetId} | ||
onClick={onClick} | ||
className={_cs( | ||
styles.frameworkItem, | ||
active && styles.selected, | ||
)} | ||
> | ||
<div className={styles.title}> | ||
{title} | ||
</div> | ||
</RawButton> | ||
); | ||
} | ||
|
||
export default DatasetItem; |
18 changes: 18 additions & 0 deletions
18
app/components/report/ReportBuilder/DatasetsConfigureButton/DatasetItem/styles.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,18 @@ | ||
.framework-item { | ||
display: flex; | ||
flex-direction: column; | ||
border-bottom: var(--dui-width-separator-thin) solid var(--dui-color-separator); | ||
background-color: var(--dui-color-background-information); | ||
padding: var(--dui-spacing-small) var(--dui-spacing-medium); | ||
width: 100%; | ||
text-align: left; | ||
gap: var(--dui-spacing-small); | ||
|
||
.title { | ||
font-weight: var(--dui-font-weight-bold); | ||
} | ||
|
||
&.selected { | ||
background-color: var(--dui-color-surface-information); | ||
} | ||
} |
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
27 changes: 11 additions & 16 deletions
27
...components/report/ReportBuilder/DatasetsConfigureButton/SheetItem/VariableItem/styles.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 |
---|---|---|
@@ -1,20 +1,15 @@ | ||
.expandable-container { | ||
border: none; | ||
.variable-item { | ||
display: flex; | ||
align-items: flex-end; | ||
gap: var(--dui-spacing-extra-small); | ||
|
||
.header-description { | ||
display: flex; | ||
gap: var(--dui-spacing-small); | ||
.heading { | ||
width: 10rem; | ||
} | ||
} | ||
.column-header { | ||
background-color: transparent; | ||
color: var(--dui-color-text); | ||
|
||
.column-heading { | ||
color: var(--dui-color-text); | ||
.completeness { | ||
width: 10rem; | ||
} | ||
.type { | ||
width: 20rem; | ||
} | ||
} | ||
.column-content { | ||
display: flex; | ||
gap: var(--dui-spacing-medium); | ||
} |
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
Oops, something went wrong.