Skip to content

Commit

Permalink
feat: add <CssResetMinimalistic2>
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Jan 21, 2018
1 parent 8e61ace commit 9308103
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ const MyComponent = mock();
- [`<Theme>`](./docs/theme.md#theme), [`<Themed>`](./docs/theme.md#themed), and [`withTheme()`](./docs/theme.md#withtheme)
- `<CssVars>`
- CSS resets
- [`<CssResetEricMeyer>`](./docs/CssResetEricMeyer.md)
- [`<CssResetEricMeyerCondensed>`](./docs/CssResetEricMeyerCondensed.md)
- [`<CssResetMinimalistic>`](./docs/CssResetMinimalistic.md)
- [`<CssResetEricMeyer>`](./docs/reset/CssResetEricMeyer.md)
- [`<CssResetEricMeyerCondensed>`](./docs/reset/CssResetEricMeyerCondensed.md)
- [`<CssResetMinimalistic>`](./docs/reset/CssResetMinimalistic.md)
- [`<CssResetMinimalistic2>`](./docs/reset/CssResetMinimalistic2.md)
- Other
- [`<Resolve>`](./docs/Resolve.md)
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions docs/reset/CssResetMinimalistic2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# `<CssResetMinimalistic2>`

## Usage

Simply render it in your React app

```jsx
import CssResetMinimalistic2 from 'mol-fe-react/lib/reset/CssResetMinimalistic2';

<CssResetMinimalistic2 />
```

## Contents

```js
{
'*': {
pad: 0,
mar: 0,
bd: 0,
},
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<CssResetMinimalistic2> renders as expected 1`] = `"<style>*{padding:0;margin:0;border:0;}</style>"`;
11 changes: 11 additions & 0 deletions src/reset/CssResetMinimalistic2/__tests__/index.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {createElement as h} from 'react';
import {renderToStaticMarkup} from 'react-dom/server';
import CssResetMinimalistic2 from '..';

describe('<CssResetMinimalistic2>', () => {
it('renders as expected', () => {
const html = renderToStaticMarkup(h(CssResetMinimalistic2));

expect(html).toMatchSnapshot();
});
});
13 changes: 13 additions & 0 deletions src/reset/CssResetMinimalistic2/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import createCssResetComponent from '../createCssResetComponent';

export const css = {
'*': {
pad: 0,
mar: 0,
bd: 0,
},
};

const CssResetMinimalistic2 = createCssResetComponent(css);

export default CssResetMinimalistic2;
10 changes: 10 additions & 0 deletions src/reset/CssResetMinimalistic2/story.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import {createElement as h} from 'react';
import {storiesOf} from '@storybook/react';
import {action} from '@storybook/addon-actions';
import {linkTo} from '@storybook/addon-links';
import CssResetMinimalistic2 from '.';

storiesOf('reset', module)
.add('CssResetMinimalistic2', () =>
h(CssResetMinimalistic2)
);

0 comments on commit 9308103

Please sign in to comment.