🔧 chore: adjust design to figma
This commit is contained in:
parent
add2559860
commit
c1da92bc99
@ -16,12 +16,16 @@ export const stepTheme = tv({
|
|||||||
'shrink-0',
|
'shrink-0',
|
||||||
],
|
],
|
||||||
label: ['text-sm', 'font-sans', 'text-elements-mid-em'],
|
label: ['text-sm', 'font-sans', 'text-elements-mid-em'],
|
||||||
connector: ['bg-border-interactive-hovered'],
|
connector: [],
|
||||||
},
|
},
|
||||||
variants: {
|
variants: {
|
||||||
orientation: {
|
orientation: {
|
||||||
vertical: { connector: ['w-px', 'h-3', 'ml-5'] },
|
vertical: {
|
||||||
horizontal: { connector: ['h-px', 'w-full'] },
|
connector: ['bg-border-interactive-hovered', 'w-px', 'h-3', 'ml-5'],
|
||||||
|
},
|
||||||
|
horizontal: {
|
||||||
|
connector: ['text-border-interactive-hovered', 'h-3', 'w-3'],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
active: {
|
active: {
|
||||||
true: {
|
true: {
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
import React, { useCallback, ComponentPropsWithoutRef } from 'react';
|
import React, { useCallback, ComponentPropsWithoutRef } from 'react';
|
||||||
import { stepTheme, StepTheme } from './Step.theme';
|
import { stepTheme, StepTheme } from './Step.theme';
|
||||||
import { CheckRoundFilledIcon } from 'components/shared/CustomIcon';
|
import {
|
||||||
|
CheckRoundFilledIcon,
|
||||||
|
ChevronRight,
|
||||||
|
} from 'components/shared/CustomIcon';
|
||||||
|
|
||||||
export interface StepProps extends ComponentPropsWithoutRef<'li'>, StepTheme {
|
export interface StepProps extends ComponentPropsWithoutRef<'li'>, StepTheme {
|
||||||
/**
|
/**
|
||||||
@ -35,9 +38,13 @@ export const Step = ({
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div aria-hidden className={theme.connector({ orientation })} />;
|
return (
|
||||||
|
<div aria-hidden className={theme.connector({ orientation })}>
|
||||||
|
{orientation === 'horizontal' && <ChevronRight size={12} />}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
},
|
},
|
||||||
[theme],
|
[orientation, theme],
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -7,7 +7,7 @@ export const stepsTheme = tv({
|
|||||||
variants: {
|
variants: {
|
||||||
orientation: {
|
orientation: {
|
||||||
vertical: { root: ['flex', 'flex-col'] },
|
vertical: { root: ['flex', 'flex-col'] },
|
||||||
horizontal: { root: ['flex', 'items-center'] },
|
horizontal: { root: ['flex', 'items-center', 'gap-1'] },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
|
Loading…
Reference in New Issue
Block a user