generated from kubefirst/react-app-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* give form container option for footer content to be disconnected from the padding present in the FormContent * pass along boolean value from onChange * remove container and inherant styles from LearMore comp that make it difficult to properly place the component * hoist advanced options state outside of component for control of other states further up based off this value * omit draft cluster that will kick off retrieval of clusters from api during provisioning of a new workload cluster * add back footer learn more link back to forms during provision of management cluster based off installation step * clean up remnants and revise styles accordingly for cluster forms
- Loading branch information
Showing
18 changed files
with
185 additions
and
82 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,13 @@ | ||
import styled from 'styled-components'; | ||
|
||
import Column from '../column'; | ||
|
||
export const Container = styled(Column)` | ||
background-color: ${({ theme }) => theme.colors.white}; | ||
border-radius: 8px; | ||
box-shadow: 0px 1px 1px rgba(100, 116, 139, 0.06), 0px 1px 2px rgba(100, 116, 139, 0.1); | ||
`; | ||
|
||
export const FormContent = styled(Column)` | ||
padding: 24px; | ||
`; |
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,14 +1,22 @@ | ||
'use client'; | ||
import React, { ComponentPropsWithoutRef, FunctionComponent, ReactNode } from 'react'; | ||
import styled from 'styled-components'; | ||
import Box from '@mui/material/Box'; | ||
|
||
export default styled(Box)` | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
height: fit-content; | ||
padding: 30px 20px; | ||
background-color: ${({ theme }) => theme.colors.white}; | ||
border-radius: 8px; | ||
box-shadow: 0px 1px 1px rgba(100, 116, 139, 0.06), 0px 1px 2px rgba(100, 116, 139, 0.1); | ||
`; | ||
|
||
import { Container, FormContent } from './formContainer.styled'; | ||
|
||
interface FormContainerProps extends ComponentPropsWithoutRef<'div'> { | ||
footerContent?: ReactNode; | ||
} | ||
|
||
const FormContainer: FunctionComponent<FormContainerProps> = ({ | ||
children, | ||
footerContent, | ||
...rest | ||
}) => ( | ||
<Container {...rest}> | ||
<FormContent>{children}</FormContent> | ||
{footerContent} | ||
</Container> | ||
); | ||
|
||
export default styled(FormContainer)<FormContainerProps>``; |
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
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
Oops, something went wrong.