Skip to content

Commit

Permalink
Pub 2.30.0-canary.1 (#962)
Browse files Browse the repository at this point in the history
* chore: update changelog

* chore(release): publish %s

 - @carbon/vue@2.30.0-canary.1

Co-authored-by: Lee Chase <lee.chase@uk.ibm.com>
  • Loading branch information
lee-chase and lee-chase authored Jul 24, 2020
1 parent 86d10c1 commit 17c5435
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 23 deletions.
4 changes: 4 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 2.30.0-canary.1

- fix snapshots

## 2.30.0-canary.0

- feat: add kind 'button' to file upload component.
Expand Down
19 changes: 15 additions & 4 deletions packages/core/__tests__/__snapshots__/cv-number-input.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ exports[`CvNumberInput should match snapshot when all props are default 1`] = `
</button></div>
</div>
<!---->
<!---->
</div>
</cv-wrapper-stub>
`;
exports[`CvNumberInput should match snapshot when all props are provided 1`] = `
<cv-wrapper-stub tagtype="" class="cv-number-input bx--form-item">
<div data-numberinput="" class="bx--number bx--number--helpertext cv-number-input" data-invalid="true"><label for="1" class="bx--label">label</label>
<div class="bx--form__helper-text">helperText</div>
<!---->
<div class="bx--number__input-wrapper">
<!----> <input id="1" type="number">
<warningfilled16-stub class="bx--number__invalid"></warningfilled16-stub>
Expand All @@ -32,16 +33,15 @@ exports[`CvNumberInput should match snapshot when all props are provided 1`] = `
</button></div>
</div>
<div class="bx--form-requirement">invalidMessage</div>
<!---->
</div>
</cv-wrapper-stub>
`;
exports[`CvNumberInput should match snapshot when helper-text slot is provided 1`] = `
<cv-wrapper-stub tagtype="div" class="cv-number-input bx--form-item">
<div data-numberinput="" class="bx--number bx--number--helpertext"><label for="1" class="bx--label"></label>
<div class="bx--form__helper-text">
<div class="fake-slot">my helper text</div>
</div>
<!---->
<div class="bx--number__input-wrapper">
<!----> <input id="1" type="number">
<!---->
Expand All @@ -52,6 +52,9 @@ exports[`CvNumberInput should match snapshot when helper-text slot is provided 1
</button></div>
</div>
<!---->
<div class="bx--form__helper-text">
<div class="fake-slot">my helper text</div>
</div>
</div>
</cv-wrapper-stub>
`;
Expand All @@ -72,6 +75,7 @@ exports[`CvNumberInput should match snapshot when invalid-message slot is provid
<div class="bx--form-requirement">
<div class="fake-slot">my invalid message</div>
</div>
<!---->
</div>
</cv-wrapper-stub>
`;
Expand All @@ -90,6 +94,7 @@ exports[`CvNumberInput should match snapshot when it is not a formItem 1`] = `
</button></div>
</div>
<!---->
<!---->
</div>
</cv-wrapper-stub>
`;
Expand All @@ -108,6 +113,7 @@ exports[`CvNumberInput should match snapshot when light theme 1`] = `
</button></div>
</div>
<!---->
<!---->
</div>
</cv-wrapper-stub>
`;
Expand All @@ -125,6 +131,7 @@ exports[`CvNumberInput should match snapshot when mobile variant requested 1`] =
<caretupglyph-stub></caretupglyph-stub>
</button></div>
<!---->
<!---->
</div>
</cv-wrapper-stub>
`;
Expand All @@ -143,6 +150,7 @@ exports[`CvNumberInput should match snapshot when value is Number 1`] = `
</button></div>
</div>
<!---->
<!---->
</div>
</cv-wrapper-stub>
`;
Expand All @@ -161,6 +169,7 @@ exports[`CvNumberInput should match snapshot when value is String 1`] = `
</button></div>
</div>
<!---->
<!---->
</div>
</cv-wrapper-stub>
`;
Expand All @@ -179,6 +188,7 @@ exports[`CvNumberInput should match snapshot with min, max and step as Strings 1
</button></div>
</div>
<!---->
<!---->
</div>
</cv-wrapper-stub>
`;
Expand All @@ -197,6 +207,7 @@ exports[`CvNumberInput should match snapshot with optional min, max and step as
</button></div>
</div>
<!---->
<!---->
</div>
</cv-wrapper-stub>
`;
Expand Down
16 changes: 8 additions & 8 deletions packages/core/__tests__/__snapshots__/cv-text-area.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,60 +2,60 @@

exports[`CvTextArea should render correctly 1`] = `
<div class="cv-text-area bx--form-item"><label for="1" class="bx--label">test label</label>
<!---->
<div class="bx--text-area__wrapper">
<!----> <textarea id="1" class="bx--text-area"></textarea></div>
<!---->
<!---->
</div>
`;

exports[`CvTextArea should render correctly when helper text is provided 1`] = `
<div class="cv-text-area bx--form-item"><label for="1" class="bx--label">test label</label>
<div class="bx--form__helper-text">helper test message</div>
<div class="bx--text-area__wrapper">
<!----> <textarea id="1" class="bx--text-area"></textarea></div>
<!---->
<div class="bx--form__helper-text">helper test message</div>
</div>
`;

exports[`CvTextArea should render correctly when helper text slot is provided 1`] = `
<div class="cv-text-area bx--form-item"><label for="1" class="bx--label">test label</label>
<div class="bx--form__helper-text">
<div class="helper-text-class">helper text slot</div>
</div>
<div class="bx--text-area__wrapper">
<!----> <textarea id="1" class="bx--text-area"></textarea></div>
<!---->
<div class="bx--form__helper-text">
<div class="helper-text-class">helper text slot</div>
</div>
</div>
`;

exports[`CvTextArea should render correctly when invalid message is provided 1`] = `
<div class="cv-text-area bx--form-item"><label for="1" class="bx--label">test label</label>
<!---->
<div class="bx--text-area__wrapper" data-invalid="true">
<warningfilled16-stub class="bx--text-area__invalid-icon"></warningfilled16-stub> <textarea id="1" class="bx--text-area bx--text-area--invalid"></textarea>
</div>
<div class="bx--form-requirement">invalid test message</div>
<!---->
</div>
`;

exports[`CvTextArea should render correctly when invalid message slot is provided 1`] = `
<div class="cv-text-area bx--form-item"><label for="1" class="bx--label">test label</label>
<!---->
<div class="bx--text-area__wrapper" data-invalid="true">
<warningfilled16-stub class="bx--text-area__invalid-icon"></warningfilled16-stub> <textarea id="1" class="bx--text-area bx--text-area--invalid"></textarea>
</div>
<div class="bx--form-requirement">
<div class="invalid-message-class">invalid message slot</div>
</div>
<!---->
</div>
`;

exports[`CvTextArea should render correctly when light theme is used 1`] = `
<div class="cv-text-area bx--form-item"><label for="1" class="bx--label">test label</label>
<!---->
<div class="bx--text-area__wrapper">
<!----> <textarea id="1" class="bx--text-area bx--text-area--light"></textarea></div>
<!---->
<!---->
</div>
`;
20 changes: 10 additions & 10 deletions packages/core/__tests__/__snapshots__/cv-text-input.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,92 +2,92 @@

exports[`CvTextInput should render correctly 1`] = `
<div class="cv-text-input bx--form-item"><label for="1" class="bx--label">test label</label>
<!---->
<div class="bx--text-input__field-wrapper">
<!----> <input id="1" type="text" class="bx--text-input">
<!---->
</div>
<!---->
<!---->
</div>
`;
exports[`CvTextInput should render correctly when helper text is provided 1`] = `
<div class="cv-text-input bx--form-item"><label for="1" class="bx--label">test label</label>
<div class="bx--form__helper-text">helper test message</div>
<div class="bx--text-input__field-wrapper">
<!----> <input id="1" type="text" class="bx--text-input">
<!---->
</div>
<!---->
<div class="bx--form__helper-text">helper test message</div>
</div>
`;
exports[`CvTextInput should render correctly when helper text slot is provided 1`] = `
<div class="cv-text-input bx--form-item"><label for="1" class="bx--label">test label</label>
<div class="bx--form__helper-text">
<div class="helper-text-class">helper text slot</div>
</div>
<div class="bx--text-input__field-wrapper">
<!----> <input id="1" type="text" class="bx--text-input">
<!---->
</div>
<!---->
<div class="bx--form__helper-text">
<div class="helper-text-class">helper text slot</div>
</div>
</div>
`;
exports[`CvTextInput should render correctly when invalid message is provided 1`] = `
<div class="cv-text-input bx--form-item"><label for="1" class="bx--label">test label</label>
<!---->
<div class="bx--text-input__field-wrapper" data-invalid="true">
<warningfilled16-stub class="bx--text-input__invalid-icon"></warningfilled16-stub> <input id="1" type="text" class="bx--text-input bx--text-input--invalid">
<!---->
</div>
<div class="bx--form-requirement">invalid test message</div>
<!---->
</div>
`;
exports[`CvTextInput should render correctly when invalid message slot is provided 1`] = `
<div class="cv-text-input bx--form-item"><label for="1" class="bx--label">test label</label>
<!---->
<div class="bx--text-input__field-wrapper" data-invalid="true">
<warningfilled16-stub class="bx--text-input__invalid-icon"></warningfilled16-stub> <input id="1" type="text" class="bx--text-input bx--text-input--invalid">
<!---->
</div>
<div class="bx--form-requirement">
<div class="invalid-message-class">invalid message slot</div>
</div>
<!---->
</div>
`;
exports[`CvTextInput should render correctly when light theme is used 1`] = `
<div class="cv-text-input bx--form-item"><label for="1" class="bx--label">test label</label>
<!---->
<div class="bx--text-input__field-wrapper">
<!----> <input id="1" type="text" class="bx--text-input bx--text-input--light">
<!---->
</div>
<!---->
<!---->
</div>
`;
exports[`CvTextInput should render correctly when type is password and is not visible 1`] = `
<div class="cv-text-input bx--form-item"><label for="1" class="bx--label">test label</label>
<!---->
<div class="bx--text-input__field-wrapper">
<!----> <input id="1" data-toggle-password-visibility="true" type="password" class="bx--text-input"> <button type="button" class="bx--text-input--password__visibility__toggle bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--bottom bx--tooltip--align-center"><span class="bx--assistive-text">Show password</span>
<view16-stub class="bx--icon-visibility-off"></view16-stub>
</button></div>
<!---->
<!---->
</div>
`;
exports[`CvTextInput should render correctly when type is password and is visible 1`] = `
<div class="cv-text-input bx--form-item"><label for="1" class="bx--label">test label</label>
<!---->
<div class="bx--text-input__field-wrapper">
<!----> <input id="1" data-toggle-password-visibility="true" type="password" class="bx--text-input"> <button type="button" class="bx--text-input--password__visibility__toggle bx--tooltip__trigger bx--tooltip--a11y bx--tooltip--bottom bx--tooltip--align-center"><span class="bx--assistive-text">Show password</span>
<view16-stub class="bx--icon-visibility-off"></view16-stub>
</button></div>
<!---->
<!---->
</div>
`;
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@carbon/vue",
"description": "A collection of components for the Carbon Design System built using Vue.js",
"version": "2.30.0-canary.0",
"version": "2.30.0-canary.1",
"license": "Apache-2.0",
"repository": {
"type": "git",
Expand Down

0 comments on commit 17c5435

Please sign in to comment.