@@ -2,6 +2,7 @@ import type { StoryFn, Meta } from '@storybook/html-vite';
22import { html , repeat , ViewTemplate , when } from '@ni/fast-element' ;
33import { stepTag } from '@ni/nimble-components/dist/esm/step' ;
44import { stepperTag } from '@ni/nimble-components/dist/esm/stepper' ;
5+ import { iconCogTag } from '@ni/nimble-components/dist/esm/icons/cog' ;
56import { bodyFont , bodyFontColor } from '@ni/nimble-components/dist/esm/theme-provider/design-tokens' ;
67import {
78 createMatrix ,
@@ -11,7 +12,7 @@ import {
1112} from '../../utilities/matrix' ;
1213import { createFixedThemeStory , createStory } from '../../utilities/storybook' ;
1314import { hiddenWrapper } from '../../utilities/hidden' ;
14- import { selectedStates , severityStates , stepContentStates , stepContentStateShort , stepLayoutStates , type SelectedState , type SeverityStates , type StepContentStates , type StepLayoutStates } from '../stepper/types' ;
15+ import { selectedStates , severityStates , stepContentStates , stepContentStateShort , stepContentStateStepIndicator , stepLayoutStates , type SelectedState , type SeverityStates , type StepContentStates , type StepLayoutStates } from '../stepper/types' ;
1516import { disabledStates , type DisabledState , backgroundStates } from '../../utilities/states' ;
1617
1718const metadata : Meta = {
@@ -39,9 +40,9 @@ const component = (
3940 [ layoutName , isLast , orientation ] : StepLayoutStates ,
4041 [ selectedName , selected ] : SelectedState ,
4142 [ severityName , severity ] : SeverityStates ,
42- [ contentName , titleContent , subtitleContent , severityTextContent ] : StepContentStates ,
43+ [ contentName , titleContent , subtitleContent , severityTextContent , stepIndicatorVisible ] : StepContentStates ,
4344) : ViewTemplate => html `
44- < div style ="display: inline-flex; flex-direction: column; ">
45+ < div style ="display: inline-flex; flex-direction: column; width: min-content; ">
4546 < div style ="padding-right: 16px; "> ${ disabledName } ${ selectedName } Severity(${ severityName } ) Layout(${ layoutName } ) Content(${ contentName } )</ div >
4647 < ${ stepperTag } style ="padding-bottom: 16px; width: 200px; height: 80px;" orientation="${ ( ) => orientation } ">
4748 ${ repeat ( ( ) => [ isLast , ! isLast ] , html `
@@ -50,6 +51,7 @@ const component = (
5051 style="${ currentIsLast => ( currentIsLast ? 'display:none;' : '' ) } ">
5152 ${ when ( ( ) => titleContent !== undefined , html `<span slot="title">${ ( ) => titleContent } </span>` ) }
5253 ${ when ( ( ) => subtitleContent !== undefined , html `<span slot="subtitle">${ ( ) => subtitleContent } </span>` ) }
54+ ${ when ( ( ) => stepIndicatorVisible , html `<${ iconCogTag } slot="step-indicator">${ ( ) => subtitleContent } </${ iconCogTag } >` ) }
5355 </${ stepTag } >
5456 ` ) }
5557 </${ stepperTag } >
@@ -83,15 +85,15 @@ const interactionStatesHover = cartesianProduct([
8385 stepLayoutStates ,
8486 selectedStates ,
8587 severityStates ,
86- [ stepContentStateShort ] ,
88+ [ stepContentStateShort , stepContentStateStepIndicator ] ,
8789] as const ) ;
8890
8991const interactionStates = cartesianProduct ( [
9092 disabledStates ,
9193 stepLayoutStates ,
9294 selectedStates ,
9395 severityStates ,
94- [ stepContentStateShort ] ,
96+ [ stepContentStateShort , stepContentStateStepIndicator ] ,
9597] as const ) ;
9698
9799const interactionsTemplate = createMatrixInteractionsFromStates ( component , {
0 commit comments