Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
88 lines
2.6 KiB
TypeScript
88 lines
2.6 KiB
TypeScript
import Stepper from '@mui/joy/Stepper';
|
|
import Step, { stepClasses } from '@mui/joy/Step';
|
|
import StepIndicator, { stepIndicatorClasses } from '@mui/joy/StepIndicator';
|
|
import Typography, { typographyClasses } from '@mui/joy/Typography';
|
|
import CheckRoundedIcon from '@mui/icons-material/CheckRounded';
|
|
import AppRegistrationRoundedIcon from '@mui/icons-material/AppRegistrationRounded';
|
|
|
|
export default function CompanyRegistrationStepper() {
|
|
return (
|
|
<Stepper
|
|
orientation="vertical"
|
|
sx={(theme) => ({
|
|
'--Stepper-verticalGap': '2.5rem',
|
|
'--StepIndicator-size': '2.5rem',
|
|
'--Step-gap': '1rem',
|
|
'--Step-connectorInset': '0.5rem',
|
|
'--Step-connectorRadius': '1rem',
|
|
'--Step-connectorThickness': '4px',
|
|
'--joy-palette-success-solidBg': 'var(--joy-palette-success-400)',
|
|
[`& .${stepClasses.completed}`]: {
|
|
'&::after': { bgcolor: 'success.solidBg' },
|
|
},
|
|
[`& .${stepClasses.active}`]: {
|
|
[`& .${stepIndicatorClasses.root}`]: {
|
|
border: '4px solid',
|
|
borderColor: '#fff',
|
|
boxShadow: `0 0 0 1px ${theme.vars.palette.primary[500]}`,
|
|
},
|
|
},
|
|
[`& .${stepClasses.disabled} *`]: {
|
|
color: 'neutral.softDisabledColor',
|
|
},
|
|
[`& .${typographyClasses['title-sm']}`]: {
|
|
textTransform: 'uppercase',
|
|
letterSpacing: '1px',
|
|
fontSize: '10px',
|
|
},
|
|
})}
|
|
>
|
|
<Step
|
|
completed
|
|
indicator={
|
|
<StepIndicator variant="solid" color="success">
|
|
<CheckRoundedIcon />
|
|
</StepIndicator>
|
|
}
|
|
>
|
|
<div>
|
|
<Typography level="title-sm">Step 1</Typography>
|
|
Basic Details
|
|
</div>
|
|
</Step>
|
|
<Step
|
|
completed
|
|
indicator={
|
|
<StepIndicator variant="solid" color="success">
|
|
<CheckRoundedIcon />
|
|
</StepIndicator>
|
|
}
|
|
>
|
|
<div>
|
|
<Typography level="title-sm">Step 2</Typography>
|
|
Company Details
|
|
</div>
|
|
</Step>
|
|
<Step
|
|
active
|
|
indicator={
|
|
<StepIndicator variant="solid" color="primary">
|
|
<AppRegistrationRoundedIcon />
|
|
</StepIndicator>
|
|
}
|
|
>
|
|
<div>
|
|
<Typography level="title-sm">Step 3</Typography>
|
|
Subscription plan
|
|
</div>
|
|
</Step>
|
|
<Step disabled indicator={<StepIndicator>3</StepIndicator>}>
|
|
<div>
|
|
<Typography level="title-sm">Step 4</Typography>
|
|
Payment details
|
|
</div>
|
|
</Step>
|
|
</Stepper>
|
|
);
|
|
}
|