-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring components one more level
- Loading branch information
Showing
20 changed files
with
45 additions
and
25 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
...components/ConfigPanel/ConfigContent/ConfigSectionWrapper/ConfigSectionWrapper.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,6 @@ | ||
.configSectionWrapper { | ||
display: flex; | ||
flex-direction: column; | ||
margin-inline: 1rem; | ||
gap: 1rem; | ||
} |
16 changes: 16 additions & 0 deletions
16
...or/src/components/ConfigPanel/ConfigContent/ConfigSectionWrapper/ConfigSectionWrapper.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,16 @@ | ||
import React, { ReactNode } from 'react'; | ||
import classes from './ConfigSectionWrapper.module.css'; | ||
import { Divider } from '@digdir/design-system-react'; | ||
|
||
export type ConfigSectionWrapperProps = { | ||
children: ReactNode; | ||
}; | ||
|
||
export const ConfigSectionWrapper = ({ children }: ConfigSectionWrapperProps): JSX.Element => { | ||
return ( | ||
<> | ||
<div className={classes.configSectionWrapper}>{children}</div> | ||
<Divider /> | ||
</> | ||
); | ||
}; |
1 change: 1 addition & 0 deletions
1
...ges/process-editor/src/components/ConfigPanel/ConfigContent/ConfigSectionWrapper/index.ts
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 { ConfigSectionWrapper } from './ConfigSectionWrapper'; |
1 change: 1 addition & 0 deletions
1
frontend/packages/process-editor/src/components/ConfigPanel/ConfigContent/index.ts
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 { ConfigContent } from './ConfigContent'; |
4 changes: 1 addition & 3 deletions
4
frontend/packages/process-editor/src/components/ConfigPanel/ConfigPanel.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,13 +1,11 @@ | ||
.configPanel { | ||
--margin-inline: 1rem; | ||
|
||
background-color: var(--fds-semantic-surface-neutral-subtle); | ||
flex: 1; | ||
overflow-y: scroll; | ||
border-left: 1px solid var(--fds-semantic-border-neutral-subtle); | ||
} | ||
|
||
.configPanelParagraph { | ||
margin-inline: var(--margin-inline); | ||
margin-inline: 1rem; | ||
margin-top: 1rem; | ||
} |
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
frontend/packages/process-editor/src/components/ConfigPanel/ConfigSection/index.ts
This file was deleted.
Oops, something went wrong.
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