Skip to content

Commit

Permalink
feat: container
Browse files Browse the repository at this point in the history
  • Loading branch information
artmsilva committed Feb 25, 2022
1 parent e966a62 commit d5d0153
Show file tree
Hide file tree
Showing 11 changed files with 307 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = {
return config;
},
features: {
storyStoreV7: false,
storyStoreV7: true,
},
framework: "@storybook/react",
core: {
Expand Down
140 changes: 110 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plop-templates/component/src/play.stories.tsx.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from "react";
import { Story, Meta } from "@storybook/react";
import { within, userEvent } from "@storybook/testing-library";
import { {{ componentName } as Component } } from "./";
import { {{ componentName }} as Component } from "./";


export default {
Expand Down
11 changes: 11 additions & 0 deletions ui/container/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Container

The container centers your content horizontally. It's the most basic layout element.

```jsx
import { Container } from "@washingtonpost/wpds-ui-kit";

function Component() {
return <Container>Hello World</Container>;
}
```
44 changes: 44 additions & 0 deletions ui/container/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "@washingtonpost/wpds-container",
"version": "0.1.0-experimental.20",
"description": "The container centers your content horizontally. It's the most basic layout element.",
"author": "artmsilva <[email protected]>",
"homepage": "https://github.com/WPMedia/wpds-ui-kit#readme",
"license": "ISC",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.module.js",
"types": "dist/index.d.ts",
"files": [
"dist",
"README.md",
"src"
],
"sideEffects": false,
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/WPMedia/wpds-ui-kit.git"
},
"scripts": {
"test": "echo \"Error: run tests from root\" && exit 1",
"build": "npx parcel build --log-level verbose --no-cache"
},
"bugs": {
"url": "https://github.com/WPMedia/wpds-ui-kit/issues"
},
"devDependencies": {
"parcel": "^2.0.1",
"react": "^16.14.0"
},
"peerDependencies": {
"@washingtonpost/wpds-theme": "*",
"react": ">=16.8.6"
},
"dependencies": {
"@babel/runtime": "^7.13.10",
"@washingtonpost/wpds-theme": "0.1.0-experimental.20"
}
}
Loading

0 comments on commit d5d0153

Please sign in to comment.