Skip to content

Commit

Permalink
reduce chromatic churn
Browse files Browse the repository at this point in the history
  • Loading branch information
mollykreis committed Dec 12, 2024
1 parent 5e6bf30 commit 8bb205d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export default metadata;

// prettier-ignore
const component = (
[requiredVisibleName, requiredVisible]: RequiredVisibleState,
[disabledName, disabled]: DisabledState,
[appearanceName, appearance]: AppearanceState,
[errorName, errorVisible, errorText]: ErrorState,
[valueName, value, placeholder]: ValueState,
[requiredVisibleName, requiredVisible]: RequiredVisibleState
[valueName, value, placeholder]: ValueState
): ViewTemplate => html`
<${comboboxTag}
?disabled="${() => disabled}"
Expand All @@ -76,11 +76,11 @@ const component = (

export const comboboxThemeMatrix: StoryFn = createMatrixThemeStory(
createMatrix(component, [
requiredVisibleStates,
disabledStates,
appearanceStates,
errorStates,
valueStates,
requiredVisibleStates
valueStates
])
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ const metadata: Meta = {
export default metadata;

const component = (
[requiredVisibleName, requiredVisible]: RequiredVisibleState,
[disabledName, disabled]: DisabledState,
[orientationName, orientation]: OrientationState,
[errorName, errorVisible, errorText]: ErrorState,
[requiredVisibleName, requiredVisible]: RequiredVisibleState
[errorName, errorVisible, errorText]: ErrorState
): ViewTemplate => html`<${radioGroupTag}
orientation="${() => orientation}"
?disabled="${() => disabled}"
Expand All @@ -57,10 +57,10 @@ const component = (

export const radioGroupThemeMatrix: StoryFn = createMatrixThemeStory(
createMatrix(component, [
requiredVisibleStates,
disabledStates,
orientationStates,
errorStates,
requiredVisibleStates
errorStates
])
);

Expand Down
8 changes: 4 additions & 4 deletions packages/storybook/src/nimble/select/select-matrix.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ export default metadata;

// prettier-ignore
const component = (
[requiredVisibleName, requiredVisible]: RequiredVisibleState
[disabledName, disabled]: DisabledState,
[appearanceName, appearance]: AppearanceState,
[errorName, errorVisible, errorText]: ErrorState,
[valueName, valueValue]: ValueState,
[clearableName, clearable]: ClearableState,
[requiredVisibleName, requiredVisible]: RequiredVisibleState
[clearableName, clearable]: ClearableState
): ViewTemplate => html`
<${selectTag}
?error-visible="${() => errorVisible}"
Expand All @@ -81,12 +81,12 @@ const component = (

export const selectThemeMatrix: StoryFn = createMatrixThemeStory(
createMatrix(component, [
requiredVisibleStates,
disabledStates,
appearanceStates,
errorStates,
valueStates,
clearableStates,
requiredVisibleStates
clearableStates
])
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ const metadata: Meta = {
export default metadata;

const component = (
[requiredVisibleName, requiredVisible]: RequiredVisibleState,
[readOnlyName, readonly]: ReadOnlyState,
[disabledName, disabled]: DisabledState,
[appearanceName, appearance]: AppearanceState,
[valueName, valueValue, placeholderValue]: ValueState,
[errorStateName, isError, errorText]: ErrorState,
[requiredVisibleName, requiredVisible]: RequiredVisibleState
[errorStateName, isError, errorText]: ErrorState
): ViewTemplate => html`
<${textAreaTag}
style="width: 250px; margin: 15px;"
Expand All @@ -70,12 +70,12 @@ const component = (

export const textAreaThemeMatrix: StoryFn = createMatrixThemeStory(
createMatrix(component, [
requiredVisibleStates,
readOnlyStates,
disabledStates,
appearanceStates,
valueStates,
errorStates,
requiredVisibleStates
errorStates
])
);

Expand Down

0 comments on commit 8bb205d

Please sign in to comment.