Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
fix(icons): changed icons import & upgraded tokens package
Browse files Browse the repository at this point in the history
  • Loading branch information
juliankoehn committed Aug 3, 2020
1 parent 07d20f1 commit 38f7819
Show file tree
Hide file tree
Showing 50 changed files with 3,495 additions and 2,087 deletions.
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@babel/preset-typescript": "^7.10.4",
"@emotion/babel-preset-css-prop": "^10.0.27",
"@emotion/core": "^10.0.28",
"@ruids/tokens": "^1.3.1",
"@ruids/tokens": "^1.5.0",
"@storybook/addon-actions": "^5.3.19",
"@storybook/addon-docs": "^5.3.19",
"@storybook/addon-knobs": "^5.3.19",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React from 'react'
import { Button } from './Button'
import { withKnobs, text, boolean, select } from '@storybook/addon-knobs'
import { action } from '@storybook/addon-actions';
import { icons } from '../Icon/Icon';
import { IconNames } from '../Icon/types';
import { ButtonGroup } from './ButtonGroup';
import { icons } from '../Icon/icons';

export default {
title: 'Button',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React from 'react'
import { IconButton } from './IconButton'
import { withKnobs, text, boolean, select } from '@storybook/addon-knobs'
import { action } from '@storybook/addon-actions';
import { icons } from '../Icon/Icon';
import { withKnobs, text, select } from '@storybook/addon-knobs'
import { IconNames } from '../Icon/types';
import { icons } from '../Icon/icons';

export default {
title: 'Button/IconButton',
Expand Down
8 changes: 4 additions & 4 deletions packages/components/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1568,10 +1568,10 @@
prop-types "^15.6.1"
react-lifecycles-compat "^3.0.4"

"@ruids/tokens@^1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@ruids/tokens/-/tokens-1.3.1.tgz#691f90e0cee64d61cecefbed07ca88203b4a30c6"
integrity sha512-dhkAmNqZN3CoU69jC199fQfF1hh7IY1xPkSVbEyUzEwFtkCOdF8hOs5z2P6mT9cOaPW4XGqBxbjrz1x9lHyDdA==
"@ruids/tokens@^1.5.0":
version "1.5.0"
resolved "https://registry.yarnpkg.com/@ruids/tokens/-/tokens-1.5.0.tgz#d73833a52bfadd35503e526c02f86db8f1dd2f41"
integrity sha512-yEL6ZYG8QYgmU9nxQ3UxMOIshFh0KBOvF8ohfn1GK40NK8I/btjGmRzLEwNIuwM6gcIhSJBSm1lkNGEMmk0heg==

"@sindresorhus/is@^0.14.0":
version "0.14.0"
Expand Down
Empty file removed packages/website/.eslintignore
Empty file.
2 changes: 1 addition & 1 deletion packages/website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ typings/
# Output of 'npm pack'
*.tgz

# dotenv environment variables file
# dotenv environment variable files
.env*

# gatsby files
Expand Down
4 changes: 4 additions & 0 deletions packages/website/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.cache
package.json
package-lock.json
public
5 changes: 5 additions & 0 deletions packages/website/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"arrowParens": "avoid",
"semi": false,
"singleQuote": true
}
14 changes: 14 additions & 0 deletions packages/website/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
The BSD Zero Clause License (0BSD)

Copyright (c) 2020 Julian Köhn.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
99 changes: 99 additions & 0 deletions packages/website/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<!-- AUTO-GENERATED-CONTENT:START (STARTER) -->
<p align="center">
<a href="https://www.gatsbyjs.org">
<img alt="Gatsby" src="https://www.gatsbyjs.org/monogram.svg" width="60" />
</a>
</p>
<h1 align="center">
Gatsby's default starter
</h1>

Kick off your project with this default boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.

_Have another more specific idea? You may want to check out our vibrant collection of [official and community-created starters](https://www.gatsbyjs.org/docs/gatsby-starters/)._

## 🚀 Quick start

1. **Create a Gatsby site.**

Use the Gatsby CLI to create a new site, specifying the default starter.

```shell
# create a new Gatsby site using the default starter
gatsby new my-default-starter https://github.com/gatsbyjs/gatsby-starter-default
```

1. **Start developing.**

Navigate into your new site’s directory and start it up.

```shell
cd my-default-starter/
gatsby develop
```

1. **Open the source code and start editing!**

Your site is now running at `http://localhost:8000`!

_Note: You'll also see a second link: _`http://localhost:8000/___graphql`_. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql)._
Open the `my-default-starter` directory in your code editor of choice and edit `src/pages/index.js`. Save your changes and the browser will update in real time!
## 🧐 What's inside?

A quick look at the top-level files and directories you'll see in a Gatsby project.
.
├── node_modules
├── src
├── .gitignore
├── .prettierrc
├── gatsby-browser.js
├── gatsby-config.js
├── gatsby-node.js
├── gatsby-ssr.js
├── LICENSE
├── package-lock.json
├── package.json
└── README.md
1. **`/node_modules`**: This directory contains all of the modules of code that your project depends on (npm packages) are automatically installed.
2. **`/src`**: This directory will contain all of the code related to what you will see on the front-end of your site (what you see in the browser) such as your site header or a page template. `src` is a convention for “source code”.
3. **`.gitignore`**: This file tells git which files it should not track / not maintain a version history for.
4. **`.prettierrc`**: This is a configuration file for [Prettier](https://prettier.io/). Prettier is a tool to help keep the formatting of your code consistent.
5. **`gatsby-browser.js`**: This file is where Gatsby expects to find any usage of the [Gatsby browser APIs](https://www.gatsbyjs.org/docs/browser-apis/) (if any). These allow customization/extension of default Gatsby settings affecting the browser.
6. **`gatsby-config.js`**: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. (Check out the [config docs](https://www.gatsbyjs.org/docs/gatsby-config/) for more detail).
7. **`gatsby-node.js`**: This file is where Gatsby expects to find any usage of the [Gatsby Node APIs](https://www.gatsbyjs.org/docs/node-apis/) (if any). These allow customization/extension of default Gatsby settings affecting pieces of the site build process.
8. **`gatsby-ssr.js`**: This file is where Gatsby expects to find any usage of the [Gatsby server-side rendering APIs](https://www.gatsbyjs.org/docs/ssr-apis/) (if any). These allow customization of default Gatsby settings affecting server-side rendering.
9. **`LICENSE`**: This Gatsby starter is licensed under the 0BSD license. This means that you can see this file as a placeholder and replace it with your own license.
10. **`package-lock.json`** (See `package.json` below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. **(You won’t change this file directly).**
11. **`package.json`**: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.
12. **`README.md`**: A text file containing useful reference information about your project.
## 🎓 Learning Gatsby
Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start:
- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.
## 💫 Deploy
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-default)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/gatsbyjs/gatsby-starter-default)
<!-- AUTO-GENERATED-CONTENT:END -->
99 changes: 48 additions & 51 deletions packages/website/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
siteMetadata: {
title: 'Ruis - Design System',
title: `ruids - Design System`,
description: `Kick off your next project with ruids Design System`,
promoText: '',
promoLink: '',
promoLinkText: '',
Expand All @@ -12,57 +13,53 @@ module.exports = {
{
name: 'Color',
link: '/foundation/color/',
},
{
name: 'Typography',
link: '/foundation/typography/',
},
{
name: 'Spacing',
link: '/foundation/spacing/',
},
{
name: 'Box Shadows',
link: '/foundation/box-shadows/',
},
}
]
},
{
name: 'Guidelines',
link: '',
menuLinks: []
}
]
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-svgr',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pages',
path: `${__dirname}/src/pages/`,
},
},
'gatsby-transformer-javascript-frontmatter',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-plugin-mdx',
options: {
defaultLayouts: {
default: require.resolve('./src/components/Layout'),
},
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 912,
},
},
],
},
},
'gatsby-plugin-sharp',
'gatsby-plugin-emotion',
]
}
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: 'gatsby-plugin-mdx',
options: {
defaultLayouts: {
default: require.resolve('./src/components/layout.tsx'),
},
gatsbyRemarkPlugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 912,
},
},
],
},
},
'gatsby-plugin-emotion',
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
}
7 changes: 7 additions & 0 deletions packages/website/gatsby-node.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Implement Gatsby's Node APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/node-apis/
*/

// You can delete this file if you're not using it
84 changes: 53 additions & 31 deletions packages/website/package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,55 @@
{
"name": "@ruids/website",
"description": "ruis documentation app",
"private": true,
"version": "0.0.0-dev",
"license": "MIT",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"start": "yarn develop"
},
"dependencies": {
"@emotion/core": "^10.0.28",
"@ruids/tokens": "^1.0.0",
"@svgr/webpack": "^5.4.0",
"gatsby": "^2.24.15",
"gatsby-plugin-emotion": "^4.3.10",
"gatsby-plugin-manifest": "^2.4.21",
"gatsby-plugin-mdx": "^1.2.30",
"gatsby-plugin-react-helmet": "^3.3.10",
"gatsby-plugin-sharp": "^2.6.24",
"gatsby-plugin-svgr": "^2.0.2",
"gatsby-remark-images": "^3.3.23",
"gatsby-source-filesystem": "^2.3.23",
"gatsby-transformer-javascript-frontmatter": "^2.3.11",
"gatsby-transformer-sharp": "^2.5.12",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-helmet": "^6.1.0",
"react-live": "^2.2.2"
}
"name": "@ruids/website",
"private": true,
"description": "ruis documentation app",
"version": "0.0.0-dev",
"author": "Julian Koehn <[email protected]>",
"dependencies": {
"@ruids/components": "^1.4.0",
"@ruids/css": "^1.3.0",
"@ruids/tokens": "^1.3.2",
"gatsby": "^2.23.12",
"gatsby-image": "^2.4.9",
"gatsby-plugin-emotion": "^4.3.10",
"gatsby-plugin-manifest": "^2.4.14",
"gatsby-plugin-offline": "^3.2.13",
"gatsby-plugin-react-helmet": "^3.3.6",
"gatsby-plugin-sharp": "^2.6.14",
"gatsby-remark-images": "^3.3.23",
"gatsby-source-filesystem": "^2.3.14",
"gatsby-transformer-sharp": "^2.5.7",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-helmet": "^6.1.0"
},
"devDependencies": {
"@emotion/core": "^10.0.28",
"@mdx-js/mdx": "^1.6.16",
"@mdx-js/react": "^1.6.16",
"@types/mdx-js__react": "^1.5.2",
"@types/react-helmet": "^6.0.0",
"gatsby-plugin-mdx": "^1.2.30",
"prettier": "2.0.5"
},
"keywords": [
"gatsby"
],
"license": "0BSD",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"start": "yarn develop",
"serve": "gatsby serve",
"clean": "gatsby clean",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/gatsbyjs/gatsby-starter-default"
},
"bugs": {
"url": "https://github.com/gatsbyjs/gatsby/issues"
}
}
Loading

0 comments on commit 38f7819

Please sign in to comment.