Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,049 changes: 982 additions & 67 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"@storybook/addon-actions": "~6.5.9",
"@storybook/addon-essentials": "~6.5.9",
"@storybook/addon-links": "~6.5.9",
"@storybook/addon-storyshots": "~6.5.9",
"@storybook/builder-webpack5": "~6.5",
"@storybook/manager-webpack5": "~6.5",
"@storybook/preset-scss": "~1.0.3",
Expand Down Expand Up @@ -117,5 +118,9 @@
},
"publishConfig": {
"access": "public"
},
"overrides": {
"react-element-to-jsx-string": "^15",
"react-test-renderer": "$react-test-renderer"
}
}
245 changes: 245 additions & 0 deletions src/src/alert/__snapshots__/alert.stories.storyshot
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storyshots Components/Alert Alert 1`] = `
<div
className="fade alert alert-primary show"
role="alert"
>
A simple alert
</div>
`;

exports[`Storyshots Components/Alert Danger 1`] = `
<div
className="fade alert alert-danger show"
role="alert"
>
A
<code
className="code code--inline"
>
danger
</code>
alert with
<a
className="alert-link"
href="#"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex={0}
>
a link
</a>
.
</div>
`;

exports[`Storyshots Components/Alert Dark 1`] = `
<div
className="fade alert alert-dark show"
role="alert"
>
A
<code
className="code code--inline"
>
dark
</code>
alert with
<a
className="alert-link"
href="#"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex={0}
>
a link
</a>
.
</div>
`;

exports[`Storyshots Components/Alert Info 1`] = `
<div
className="fade alert alert-info show"
role="alert"
>
A
<code
className="code code--inline"
>
info
</code>
alert with
<a
className="alert-link"
href="#"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex={0}
>
a link
</a>
.
</div>
`;

exports[`Storyshots Components/Alert Light 1`] = `
<div
className="fade alert alert-light show"
role="alert"
>
A
<code
className="code code--inline"
>
light
</code>
alert with
<a
className="alert-link"
href="#"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex={0}
>
a link
</a>
.
</div>
`;

exports[`Storyshots Components/Alert Primary 1`] = `
<div
className="fade alert alert-primary show"
role="alert"
>
A
<code
className="code code--inline"
>
primary
</code>
alert with
<a
className="alert-link"
href="#"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex={0}
>
a link
</a>
.
</div>
`;

exports[`Storyshots Components/Alert Secondary 1`] = `
<div
className="fade alert alert-secondary show"
role="alert"
>
A
<code
className="code code--inline"
>
secondary
</code>
alert with
<a
className="alert-link"
href="#"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex={0}
>
a link
</a>
.
</div>
`;

exports[`Storyshots Components/Alert Success 1`] = `
<div
className="fade alert alert-success show"
role="alert"
>
A
<code
className="code code--inline"
>
success
</code>
alert with
<a
className="alert-link"
href="#"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex={0}
>
a link
</a>
.
</div>
`;

exports[`Storyshots Components/Alert Warning 1`] = `
<div
className="fade alert alert-warning show"
role="alert"
>
A
<code
className="code code--inline"
>
warning
</code>
alert with
<a
className="alert-link"
href="#"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex={0}
>
a link
</a>
.
</div>
`;

exports[`Storyshots Components/Alert With Additional Content 1`] = `
<div
className="fade alert alert-success show"
role="alert"
>
<h1
className="h4 alert-heading"
id="o-1s-1-hey,-nice-to-see-you"
>
<a
href="#o-1s-1-hey,-nice-to-see-you"
>
Hey, nice to see you
</a>
</h1>
<p>
Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.
</p>
<hr />
<p
className="mb-0"
>
Whenever you need to, be sure to use margin utilities to keep things nice and tidy.
</p>
</div>
`;
Loading