@@ -117,11 +117,12 @@ const defineStepper = <const Steps extends Stepperize.Step[]>(
117
117
return (
118
118
< nav
119
119
aria-label = { ariaLabel }
120
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-to-interactive-role
120
121
role = "tablist"
121
- className = { cn ( 'stepper-navigation' , className ) }
122
+ className = { className }
122
123
{ ...props }
123
124
>
124
- < ol className = { listVariants ( { variant : variant } ) } > { children } </ ol >
125
+ < ol className = { listVariants ( { variant } ) } > { children } </ ol >
125
126
</ nav >
126
127
) ;
127
128
} ,
@@ -150,12 +151,12 @@ const defineStepper = <const Steps extends Stepperize.Step[]>(
150
151
return (
151
152
< li
152
153
className = { cn (
153
- 'stepper-step flex shrink-0 items-center gap-4 rounded-md transition-colors' ,
154
+ 'flex shrink-0 items-center gap-4 rounded-md transition-colors' ,
154
155
className ,
155
156
) }
156
157
>
157
158
< CircleStepIndicator currentStep = { stepIndex + 1 } totalSteps = { steps . length } />
158
- < div className = "stepper-step-content flex flex-col items-start gap-1" >
159
+ < div className = "flex flex-col items-start gap-1" >
159
160
{ title }
160
161
{ description }
161
162
</ div >
@@ -167,7 +168,7 @@ const defineStepper = <const Steps extends Stepperize.Step[]>(
167
168
< >
168
169
< li
169
170
className = { cn ( [
170
- 'stepper-step group peer relative flex items-center gap-2' ,
171
+ 'group peer relative flex items-center gap-2' ,
171
172
'data-[variant=vertical]:flex-row' ,
172
173
'data-[label-orientation=vertical]:w-full' ,
173
174
'data-[label-orientation=vertical]:flex-col' ,
@@ -183,10 +184,7 @@ const defineStepper = <const Steps extends Stepperize.Step[]>(
183
184
type = "button"
184
185
role = "tab"
185
186
tabIndex = { dataState !== 'inactive' ? 0 : - 1 }
186
- className = { cn (
187
- 'stepper-step-indicator rounded-full' ,
188
- clickable === false && 'cursor-default' ,
189
- ) }
187
+ className = { cn ( 'rounded-full' , clickable === false && 'cursor-default' ) }
190
188
variant = { dataState !== 'inactive' ? 'default' : 'secondary' }
191
189
size = "icon"
192
190
aria-controls = { `step-panel-${ props . of } ` }
@@ -208,7 +206,7 @@ const defineStepper = <const Steps extends Stepperize.Step[]>(
208
206
disabled = { props . disabled }
209
207
/>
210
208
) }
211
- < div className = "stepper-step-content flex flex-col items-start" >
209
+ < div className = "flex flex-col items-start" >
212
210
{ title }
213
211
{ description }
214
212
</ div >
@@ -248,19 +246,15 @@ const defineStepper = <const Steps extends Stepperize.Step[]>(
248
246
const { tracking } = useStepperProvider ( ) ;
249
247
250
248
return (
251
- < Comp
252
- className = { cn ( 'stepper-step-panel' , className ) }
253
- ref = { node => scrollIntoStepperPanel ( node , tracking ) }
254
- { ...props }
255
- >
249
+ < Comp className = { className } ref = { node => scrollIntoStepperPanel ( node , tracking ) } { ...props } >
256
250
{ children }
257
251
</ Comp >
258
252
) ;
259
253
} ,
260
254
StepperControls : ( { children, className, asChild, ...props } ) => {
261
255
const Comp = asChild ? Slot : 'div' ;
262
256
return (
263
- < Comp className = { cn ( 'stepper-controls flex justify-end gap-4' , className ) } { ...props } >
257
+ < Comp className = { cn ( 'flex justify-end gap-4' , className ) } { ...props } >
264
258
{ children }
265
259
</ Comp >
266
260
) ;
@@ -281,7 +275,7 @@ const StepperTitle = ({
281
275
const Comp = asChild ? Slot : 'h4' ;
282
276
283
277
return (
284
- < Comp className = { cn ( 'stepper-step-title text-base font-medium' , className ) } { ...props } >
278
+ < Comp className = { cn ( 'text-base font-medium' , className ) } { ...props } >
285
279
{ children }
286
280
</ Comp >
287
281
) ;
@@ -300,10 +294,7 @@ const StepperDescription = ({
300
294
const Comp = asChild ? Slot : 'p' ;
301
295
302
296
return (
303
- < Comp
304
- className = { cn ( 'stepper-step-description text-muted-foreground text-sm' , className ) }
305
- { ...props }
306
- >
297
+ < Comp className = { cn ( 'text-muted-foreground text-sm' , className ) } { ...props } >
307
298
{ children }
308
299
</ Comp >
309
300
) ;
@@ -360,7 +351,7 @@ const CircleStepIndicator = ({
360
351
aria-valuemin = { 1 }
361
352
aria-valuemax = { totalSteps }
362
353
tabIndex = { - 1 }
363
- className = "stepper-step-indicator relative inline-flex items-center justify-center"
354
+ className = "relative inline-flex items-center justify-center"
364
355
>
365
356
< svg width = { size } height = { size } >
366
357
< title > Step Indicator</ title >
@@ -399,7 +390,7 @@ const CircleStepIndicator = ({
399
390
400
391
//#region Styles
401
392
402
- const listVariants = cva ( 'stepper-navigation-list flex gap-2' , {
393
+ const listVariants = cva ( 'flex gap-2' , {
403
394
variants : {
404
395
variant : {
405
396
horizontal : 'flex-row items-center justify-between' ,
0 commit comments