nicolium: migrate progress bar component

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-09 22:56:40 +01:00
parent dfa010f7ee
commit 8a95b050eb
2 changed files with 22 additions and 6 deletions

View File

@ -23,12 +23,7 @@ const ProgressBar: React.FC<IProgressBar> = ({ progress, size = 'md' }) => {
});
return (
<div
className={clsx('h-2.5 w-full overflow-hidden rounded-lg bg-gray-300 dark:bg-primary-800', {
'h-2.5': size === 'md',
'h-[6px]': size === 'sm',
})}
>
<div className={clsx('⁂-progress-bar', { '⁂-progress-bar--sm': size === 'sm' })}>
<animated.div className='h-full bg-secondary-500' style={styles} />
</div>
);

View File

@ -1211,3 +1211,24 @@ div[data-viewport-type='window']:has(.⁂-empty-message) {
padding: 0.25rem;
color: white;
}
.-progress-bar {
height: 0.625rem;
width: 100%;
overflow: hidden;
border-radius: 0.5rem;
background-color: rgb(var(--color-gray-300));
.dark & {
background-color: rgb(var(--color-primary-800));
}
&--sm {
height: 6px;
}
> div {
height: 100%;
background-color: rgb(var(--color-secondary-500));
}
}