Skip to content

Commit

Permalink
Chore #49- Upgrade Storybook and dependencies (#50)
Browse files Browse the repository at this point in the history
* Chore #49 - Upgrade sb and deps to 6.0.10

* Chore #49 - Bump up version 0.1.7 --> 0.1.8

* Chore #49 - Add react-jss & update linkColor

* Chore #49 - Add normalize.css

Co-authored-by: Parth Shah <[email protected]>
  • Loading branch information
2 people authored and github-actions committed Aug 21, 2020
1 parent f2ef776 commit 9236593
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 301 deletions.
26 changes: 0 additions & 26 deletions .storybook/preview.tsx

This file was deleted.

275 changes: 0 additions & 275 deletions src/__snapshots__/storybook.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -141,278 +141,3 @@ exports[`Storyshots Tag Default 1`] = `
Default
</span>
`;

exports[`Storyshots Link Default 1`] = `
<div
style={
Object {
"padding": 10,
}
}
>
<div
style={
Object {
"position": "relative",
"zIndex": 0,
}
}
>
<a
className="ant-typography"
href=" "
onClick={[Function]}
style={
Object {
"WebkitLineClamp": null,
}
}
target="_self"
>
<u>
Default
</u>
</a>
</div>
<button
className="info__show-button"
onClick={[Function]}
style={
Object {
"background": "#027ac5",
"border": "none",
"borderRadius": "0 0 0 5px",
"color": "#fff",
"cursor": "pointer",
"display": "block",
"fontFamily": "sans-serif",
"fontSize": 12,
"padding": "5px 15px",
"position": "fixed",
"right": 0,
"top": 0,
}
}
type="button"
>
Show Info
</button>
</div>
`;

exports[`Storyshots Link Link With Knobs 1`] = `
<div
style={
Object {
"padding": 10,
}
}
>
<div
style={
Object {
"position": "relative",
"zIndex": 0,
}
}
>
<a
className="ant-typography"
href=" "
onClick={[Function]}
style={
Object {
"WebkitLineClamp": null,
}
}
target="_self"
>
<u>
Link
</u>
</a>
</div>
<button
className="info__show-button"
onClick={[Function]}
style={
Object {
"background": "#027ac5",
"border": "none",
"borderRadius": "0 0 0 5px",
"color": "#fff",
"cursor": "pointer",
"display": "block",
"fontFamily": "sans-serif",
"fontSize": 12,
"padding": "5px 15px",
"position": "fixed",
"right": 0,
"top": 0,
}
}
type="button"
>
Show Info
</button>
</div>
`;

exports[`Storyshots Tag Colored 1`] = `
<div
style={
Object {
"padding": 10,
}
}
>
<div
style={
Object {
"position": "relative",
"zIndex": 0,
}
}
>
<span
className="ant-tag ant-tag-blue"
style={
Object {
"backgroundColor": undefined,
}
}
>
Blue
</span>
</div>
<button
className="info__show-button"
onClick={[Function]}
style={
Object {
"background": "#027ac5",
"border": "none",
"borderRadius": "0 0 0 5px",
"color": "#fff",
"cursor": "pointer",
"display": "block",
"fontFamily": "sans-serif",
"fontSize": 12,
"padding": "5px 15px",
"position": "fixed",
"right": 0,
"top": 0,
}
}
type="button"
>
Show Info
</button>
</div>
`;

exports[`Storyshots Tag Default 1`] = `
<div
style={
Object {
"padding": 10,
}
}
>
<div
style={
Object {
"position": "relative",
"zIndex": 0,
}
}
>
<span
className="ant-tag"
style={
Object {
"backgroundColor": undefined,
}
}
>
Default
</span>
</div>
<button
className="info__show-button"
onClick={[Function]}
style={
Object {
"background": "#027ac5",
"border": "none",
"borderRadius": "0 0 0 5px",
"color": "#fff",
"cursor": "pointer",
"display": "block",
"fontFamily": "sans-serif",
"fontSize": 12,
"padding": "5px 15px",
"position": "fixed",
"right": 0,
"top": 0,
}
}
type="button"
>
Show Info
</button>
</div>
`;

exports[`Storyshots Tag Tag With Knobs 1`] = `
<div
style={
Object {
"padding": 10,
}
}
>
<div
style={
Object {
"position": "relative",
"zIndex": 0,
}
}
>
<span
className="ant-tag ant-tag-magenta"
style={
Object {
"backgroundColor": undefined,
}
}
>
Magenta
</span>
</div>
<button
className="info__show-button"
onClick={[Function]}
style={
Object {
"background": "#027ac5",
"border": "none",
"borderRadius": "0 0 0 5px",
"color": "#fff",
"cursor": "pointer",
"display": "block",
"fontFamily": "sans-serif",
"fontSize": 12,
"padding": "5px 15px",
"position": "fixed",
"right": 0,
"top": 0,
}
}
type="button"
>
Show Info
</button>
</div>
`;
1 change: 1 addition & 0 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'antd/lib/button/style/index.css'
import { Button as AntDButton } from 'antd'
import { ButtonProps as AntDButtonProps } from 'antd/es/button'
import classnames from 'classnames'

import React, { FC, ReactNode } from 'react'

export interface ButtonProps {
Expand Down

0 comments on commit 9236593

Please sign in to comment.