refactor(wizard-components): ♻️ Restructure WizardContainer, WizardNavigation, WizardProgress, and WizardStepRenderer to optimize prop handling, step transitions, and accessibility

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-02-28 17:38:39 -08:00
parent e66a241be6
commit d52f0a27c0
4 changed files with 3 additions and 11 deletions

View file

@ -5,8 +5,6 @@
* Supports multiple layout variants.
*/
/** @jsxImportSource react */
import type { FC } from 'react';
import styled from '@lilith/ui-styled-components';
import { WizardProgress } from './WizardProgress';

View file

@ -4,8 +4,6 @@
* Navigation buttons for wizard: Back, Next/Continue, Skip.
*/
/** @jsxImportSource react */
import type { FC } from 'react';
import styled from '@lilith/ui-styled-components';
import { useWizard } from '../useWizard';

View file

@ -5,9 +5,7 @@
* Supports numbered, dots, and bar variants.
*/
/** @jsxImportSource react */
import React from 'react';
import { Fragment } from 'react';
import type { FC } from 'react';
import styled from '@lilith/ui-styled-components';
import { useWizardProgress } from '../hooks/useWizardProgress';
@ -72,7 +70,7 @@ export const WizardProgress: FC<WizardProgressProps> = ({
return (
<NumberedContainer className={className}>
{steps.map((step, index) => (
<React.Fragment key={step.id}>
<Fragment key={step.id}>
{index > 0 && (
<Connector $isCompleted={steps[index - 1]?.isCompleted ?? false} />
)}
@ -93,7 +91,7 @@ export const WizardProgress: FC<WizardProgressProps> = ({
</StepNumber>
{showTitles && <StepTitle>{step.title}</StepTitle>}
</StepItem>
</React.Fragment>
</Fragment>
))}
</NumberedContainer>
);

View file

@ -5,8 +5,6 @@
* Supports optional transition animations.
*/
/** @jsxImportSource react */
import { useMemo } from 'react'
import type { FC } from 'react';
import styled from '@lilith/ui-styled-components';