Skip to content

Commit

Permalink
🐛 Fix storybook broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroinacio committed Feb 13, 2024
1 parent a88239d commit cee0eba
Show file tree
Hide file tree
Showing 10 changed files with 9,679 additions and 9,007 deletions.
18,617 changes: 9,633 additions & 8,984 deletions package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

exports[`HdArrowButton renders component 1`] = `
<button autocomplete="off" type="button" class="arrowButton arrowButton--right">
<!----></button>
<!---->
</button>
`;
21 changes: 14 additions & 7 deletions tests/unit/components/buttons/__snapshots__/HdButton.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,44 @@ exports[`HdButton can be used as an icon button 1`] = `

exports[`HdButton should render component with \`btn\` class 1`] = `
<button class="btn btn--primary">
<!----> <span class="btn__content"><span>Button text</span></span></button>
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
`;

exports[`HdButton should render component with btn--dark-background class if prop isInDarkBackground is true 1`] = `
<button class="btn btn--primary btn--dark-background">
<!----> <span class="btn__content"><span>Button text</span></span></button>
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
`;

exports[`HdButton should render component with btn--flat class 1`] = `
<button class="btn btn--flat">
<!----> <span class="btn__content"><span>Button text</span></span></button>
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
`;

exports[`HdButton should render component with btn--ghost class 1`] = `
<button class="btn btn--ghost">
<!----> <span class="btn__content"><span>Button text</span></span></button>
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
`;

exports[`HdButton should render component with btn--primary class 1`] = `
<button class="btn btn--primary">
<!----> <span class="btn__content"><span>Button text</span></span></button>
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
`;

exports[`HdButton should render component with btn--secondary class 1`] = `
<button class="btn btn--secondary">
<!----> <span class="btn__content"><span>Button text</span></span></button>
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
`;

exports[`HdButton should render component with btn--tertiary class 1`] = `
<button class="btn btn--tertiary">
<!----> <span class="btn__content"><span>Button text</span></span></button>
<!----> <span class="btn__content"><span>Button text</span></span>
</button>
`;

exports[`HdButton should render the icon passed as prop 1`] = `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ exports[`HdDynamicForm renders slots 1`] = `
<div>The before button slot</div> <button class="dynamicForm__submit btn btn--primary">
<!----> <span class="btn__content">
submit
</span></button>
</span>
</button>
<div>The after slot</div>
</form>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ exports[`HdInputPassword is rendered as expected 1`] = `
test label
</label>
<div class="field__input-right"><button type="button" class="password-input__visibility-toggle">
<!----></button></div>
<!---->
</button></div>
<div class="field__border"></div>
</div>
<p class="field__helper">‍</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

exports[`HdInputPhone is rendered as expected 1`] = `
<div class="phone-input"><button aria-haspopup="listbox" aria-label="Wählen Sie einen Ländercode:" aria-activedescendant="+49, Deutschland" class="phone-input__selector"><span class="phone-input__selector__flag flag-icon flag-icon-de"></span>
<!----></button>
<!---->
</button>
<ul tabindex="-1" role="listbox" aria-label="Telefonnummer" class="phone-input__dropdown" style="display: none;">
<li id="AD" role="option" class="phone-input__dropdown__option"><button class="option"><span class="option__flag flag-icon flag-icon-ad"></span>
<p><span class="option__name">Andorra</span> <span class="option__dial-code">+376</span></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ exports[`HdPasswordConfirm is rendered as expected 1`] = `
Ihr Passwort
</label>
<div class="field__input-right"><button type="button" class="password-input__visibility-toggle">
<!----></button></div>
<!---->
</button></div>
<div class="field__border"></div>
</div>
<p class="field__helper">‍</p>
Expand Down
18 changes: 12 additions & 6 deletions tests/unit/components/form/__snapshots__/HdRange.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ exports[`HdRange Labels renders 1`] = `
</button><button type="button" class="range__step">
<p class="range__step-label">label4</p>
</button><button type="button" class="range__step">
<!----></button></div>
<!---->
</button></div>
<div class="range__thumb" style="transform: translateX(0px);">
<!---->
<div class="range__thumb__inner">
Expand All @@ -30,11 +31,16 @@ exports[`HdRange renders as expected 1`] = `
<div class="range__progress" style="transform: scaleX(0.5);"></div>
</div>
<div class="range__steps"><button type="button" class="range__step">
<!----></button><button type="button" class="range__step">
<!----></button><button type="button" class="range__step">
<!----></button><button type="button" class="range__step">
<!----></button><button type="button" class="range__step">
<!----></button></div>
<!---->
</button><button type="button" class="range__step">
<!---->
</button><button type="button" class="range__step">
<!---->
</button><button type="button" class="range__step">
<!---->
</button><button type="button" class="range__step">
<!---->
</button></div>
<div class="range__thumb" style="transform: translateX(0px);">
<!---->
<div class="range__thumb__inner">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ exports[`HdTagsSelector The component is rendered 1`] = `
<section class="tags-selector__selected-tags">
<div class="tags-selector__selected-tags__tag">
<div class="tags-selector__selected-tags__tag__label">Jon "Snow"</div> <button class="tags-selector__selected-tags__tag__remove">
<!----></button>
<!---->
</button>
</div>
<div class="tags-selector__selected-tags__tag">
<div class="tags-selector__selected-tags__tag__label">Daenerys</div> <button class="tags-selector__selected-tags__tag__remove">
<!----></button>
<!---->
</button>
</div> <button class="tags-selector__selected-tags__panel-toggle">
<!----></button>
<!---->
</button>
</section>
<section class="tags-selector__panel">
<div class="tags-selector__panel__tag tags-selector__panel__tag--isSelected">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ exports[`HdGallery renders the component 1`] = `
</div>
</div>
<div class="gallery__controls"><button type="button" class="gallery__controls-prev isDisabled">
<!----></button> <button type="button" class="gallery__controls-next">
<!----></button></div>
<!---->
</button> <button type="button" class="gallery__controls-next">
<!---->
</button></div>
<p class="gallery__info">1/10</p>
</div>
</figure>
Expand Down

0 comments on commit cee0eba

Please sign in to comment.