-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add edit functionality for SelectOne and SelectMultiple question types
- Loading branch information
Showing
29 changed files
with
520 additions
and
69 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
src/components/questionPreviews/DateQuestionPreview/index.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.preview { | ||
display: flex; | ||
flex-direction: column; | ||
padding: var(--dui-spacing-extra-large) var(--dui-spacing-large); | ||
gap: var(--dui-spacing-medium); | ||
} |
1 change: 0 additions & 1 deletion
1
src/components/questionPreviews/FileQuestionPreview/index.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
1 change: 0 additions & 1 deletion
1
src/components/questionPreviews/ImageQuestionPreview/index.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
1 change: 0 additions & 1 deletion
1
src/components/questionPreviews/IntegerQuestionPreview/index.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.preview { | ||
display: flex; | ||
flex-direction: column; | ||
padding: var(--dui-spacing-extra-large) var(--dui-spacing-large); | ||
gap: var(--dui-spacing-medium); | ||
} |
1 change: 0 additions & 1 deletion
1
src/components/questionPreviews/NoteQuestionPreview/index.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.preview { | ||
display: flex; | ||
flex-direction: column; | ||
padding: var(--dui-spacing-extra-large) var(--dui-spacing-large); | ||
gap: var(--dui-spacing-medium); | ||
} |
13 changes: 13 additions & 0 deletions
13
src/components/questionPreviews/RankQuestionPreview/RankQuestionItem/index.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,13 @@ | ||
.item-wrapper { | ||
display: flex; | ||
border: var(--dui-width-separator-thin) solid var(--dui-color-separator); | ||
border-radius: var(--dui-border-radius-card); | ||
|
||
.icon { | ||
background-color: var(--color-gray2); | ||
padding: var(--dui-spacing-small); | ||
} | ||
.item { | ||
padding: var(--dui-spacing-small); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/components/questionPreviews/RankQuestionPreview/RankQuestionItem/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,31 @@ | ||
import { | ||
GrDrag, | ||
} from 'react-icons/gr'; | ||
import { | ||
Element, | ||
} from '@the-deep/deep-ui'; | ||
|
||
import styles from './index.module.css'; | ||
|
||
interface Props { | ||
title: string; | ||
} | ||
|
||
function RankQuestionItem(props: Props) { | ||
const { | ||
title, | ||
} = props; | ||
|
||
return ( | ||
<Element | ||
className={styles.itemWrapper} | ||
icons={<GrDrag />} | ||
iconsContainerClassName={styles.icon} | ||
childrenContainerClassName={styles.item} | ||
> | ||
{title} | ||
</Element> | ||
); | ||
} | ||
|
||
export default RankQuestionItem; |
18 changes: 17 additions & 1 deletion
18
src/components/questionPreviews/RankQuestionPreview/index.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 |
---|---|---|
@@ -1,6 +1,22 @@ | ||
.preview { | ||
display: flex; | ||
flex-direction: column; | ||
padding: var(--dui-spacing-extra-large) var(--dui-spacing-large); | ||
gap: var(--dui-spacing-medium); | ||
|
||
.choices-preview { | ||
align-items: flex-start; | ||
gap: var(--dui-spacing-large); | ||
|
||
.icon { | ||
color: var(--dui-color-primary); | ||
font-size: var(--dui-font-size-extra-large); | ||
} | ||
|
||
.choices { | ||
display: flex; | ||
flex-grow: 1; | ||
flex-direction: column; | ||
gap: var(--dui-spacing-small); | ||
} | ||
} | ||
} |
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
1 change: 0 additions & 1 deletion
1
src/components/questionPreviews/SelectMultipleQuestionPreview/index.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
1 change: 0 additions & 1 deletion
1
src/components/questionPreviews/SelectOneQuestionPreview/index.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
1 change: 0 additions & 1 deletion
1
src/components/questionPreviews/TextQuestionPreview/index.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.preview { | ||
display: flex; | ||
flex-direction: column; | ||
padding: var(--dui-spacing-extra-large) var(--dui-spacing-large); | ||
gap: var(--dui-spacing-medium); | ||
} |
1 change: 0 additions & 1 deletion
1
src/components/questionPreviews/TimeQuestionPreview/index.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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.preview { | ||
display: flex; | ||
flex-direction: column; | ||
padding: var(--dui-spacing-extra-large) var(--dui-spacing-large); | ||
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
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
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,15 +1,18 @@ | ||
.preview { | ||
--input-width: 35rem; | ||
border: none !important; | ||
background-color: var(--dui-color-background); | ||
overflow-y: auto; | ||
gap: var(--dui-spacing-large); | ||
|
||
.question-wrapper { | ||
padding: var(--dui-spacing-medium); | ||
align-items: flex-start; | ||
padding: var(--dui-spacing-extra-large); | ||
gap: var(--dui-spacing-extra-large); | ||
} | ||
|
||
.question-item { | ||
flex-grow: 1; | ||
padding: var(--dui-spacing-extra-large); | ||
max-width: var(--input-width); | ||
} | ||
} |
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.