Skip to content

Commit

Permalink
docs: revert styled-components removal, but don't use typings
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Mar 27, 2019
1 parent 429caf5 commit c85d9d7
Show file tree
Hide file tree
Showing 10 changed files with 106 additions and 13 deletions.
1 change: 1 addition & 0 deletions packages/documentation/gatsby-config.js
Expand Up @@ -23,6 +23,7 @@ module.exports = {
plugins: [
'gatsby-plugin-typescript',
'gatsby-plugin-react-helmet',
'gatsby-plugin-styled-components',

// Handle Markdown Content
{
Expand Down
4 changes: 3 additions & 1 deletion packages/documentation/package.json
Expand Up @@ -15,6 +15,7 @@
"gatsby-plugin-offline": "^2.0.24",
"gatsby-plugin-react-helmet": "^3.0.8",
"gatsby-plugin-sharp": "^2.0.25",
"gatsby-plugin-styled-components": "^3.0.7",
"gatsby-plugin-typescript": "^2.0.10",
"gatsby-plugin-typography": "^2.2.8",
"gatsby-remark-copy-linked-files": "^2.0.9",
Expand All @@ -27,15 +28,16 @@
"prismjs": "^1.15.0",
"query-string": "^6.3.0",
"react": "^16.8.5",
"react-dom": "^16.8.5",
"react-dnd": "^7.4.3",
"react-dnd-documentation-examples": "^7.4.3",
"react-dnd-documentation-examples-hooks": "^7.4.3",
"react-dnd-html5-backend": "^7.4.0",
"react-dnd-test-backend": "^7.4.0",
"react-dom": "^16.8.5",
"react-helmet": "^5.2.0",
"react-typography": "^0.16.18",
"rehype-react": "^3.1.0",
"styled-components": "^4.2.0",
"typography": "^0.16.18",
"typography-theme-github": "^0.16.18"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/src/components/doc.tsx
@@ -1,6 +1,6 @@
import * as React from 'react'
import styled from 'styled-components'
import renderAst from '../util/renderHtmlAst'
const styled = require('styled-components')

export interface DocProps {
docPage: {
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/src/components/header.tsx
@@ -1,5 +1,5 @@
import * as React from 'react'
import styled from 'styled-components'
const styled = require('styled-components')
import NavBar from './navbar'

export interface HeaderProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/src/components/layout.tsx
Expand Up @@ -3,7 +3,7 @@ declare var require: any

import * as React from 'react'
import Helmet from 'react-helmet'
import styled from 'styled-components'
const styled = require('styled-components')
import HTML5Backend from 'react-dnd-html5-backend'
import { isDebugMode } from 'react-dnd-documentation-examples/lib/esm/index'

Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/src/components/navbar.tsx
@@ -1,7 +1,7 @@
// tslint:disable jsx-no-lambda
import * as React from 'react'
import { Link as GatsbyLink } from 'gatsby'
import styled from 'styled-components'
const styled = require('styled-components')
import theme from '../theme'

const NavBar: React.FC = () => (
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/src/components/pagebody.tsx
@@ -1,5 +1,5 @@
import * as React from 'react'
import styled from 'styled-components'
const styled = require('styled-components')
import theme from '../theme'

export interface PageBodyProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/src/components/sidebar.tsx
@@ -1,6 +1,6 @@
import * as React from 'react'
import { Link as GatsbyLink } from 'gatsby'
import styled from 'styled-components'
const styled = require('styled-components')
import { Page, PageGroup } from '../constants'
import theme from '../theme'

Expand Down
2 changes: 1 addition & 1 deletion packages/examples/package.json
Expand Up @@ -35,8 +35,8 @@
"@types/react": "^16.8.7",
"@types/react-dom": "^16.8.2",
"npm-run-all": "^4.1.5",
"react-dnd-test-utils": "7.4.0",
"react": "^16.8.5",
"react-dnd-test-utils": "7.4.0",
"react-dom": "^16.8.5",
"rimraf": "^2.6.3",
"typescript": "^3.3.3333"
Expand Down
100 changes: 95 additions & 5 deletions yarn.lock
Expand Up @@ -926,6 +926,23 @@
dependencies:
find-up "^2.1.0"

"@emotion/is-prop-valid@^0.7.3":
version "0.7.3"
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.7.3.tgz#a6bf4fa5387cbba59d44e698a4680f481a8da6cc"
integrity sha512-uxJqm/sqwXw3YPA5GXX365OBcJGFtxUVkB6WyezqFHlNe9jqUWH5ur2O2M8dGBz61kn1g3ZBlzUunFQXQIClhA==
dependencies:
"@emotion/memoize" "0.7.1"

"@emotion/memoize@0.7.1":
version "0.7.1"
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.1.tgz#e93c13942592cf5ef01aa8297444dc192beee52f"
integrity sha512-Qv4LTqO11jepd5Qmlp3M1YEjBumoTHcHFdgPTQ+sFlIL5myi/7xu/POwP7IRu6odBdmLXdtIs1D6TuW6kbwbbg==

"@emotion/unitless@^0.7.0":
version "0.7.3"
resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.3.tgz#6310a047f12d21a1036fb031317219892440416f"
integrity sha512-4zAPlpDEh2VwXswwr/t8xGNDGg8RQiPxtxZ3qQEXyQsBV39ptTdESCjuBvGze1nLMVrxmTIKmnO/nAV8Tqjjzg==

"@gatsbyjs/relay-compiler@2.0.0-printer-fix.2":
version "2.0.0-printer-fix.2"
resolved "https://registry.yarnpkg.com/@gatsbyjs/relay-compiler/-/relay-compiler-2.0.0-printer-fix.2.tgz#214db0e6072d40ea78ad5fabdb49d56bc95f4e99"
Expand Down Expand Up @@ -2901,11 +2918,26 @@ babel-plugin-remove-graphql-queries@^2.6.2:
resolved "https://registry.yarnpkg.com/babel-plugin-remove-graphql-queries/-/babel-plugin-remove-graphql-queries-2.6.2.tgz#8ee167324befa6579858fcaf1dbd75a84766d555"
integrity sha512-JrYM0ACSMmt27PeMtwp+5N5c8S1pJkCYWI+Jt+12ERqW3bYKWGCJsdEky2lQRLezLFCiJE7+mXANc91yMGf+HQ==

"babel-plugin-styled-components@>= 1":
version "1.10.0"
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.10.0.tgz#ff1f42ad2cc78c21f26b62266b8f564dbc862939"
integrity sha512-sQVKG8irFXx14ZfaK1bBePirfkacl3j8nZwSZK+ZjsbnadRHKQTbhXbe/RB1vT6Vgkz45E+V95LBq4KqdhZUNw==
dependencies:
"@babel/helper-annotate-as-pure" "^7.0.0"
"@babel/helper-module-imports" "^7.0.0"
babel-plugin-syntax-jsx "^6.18.0"
lodash "^4.17.10"

babel-plugin-syntax-dynamic-import@^6.18.0:
version "6.18.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da"
integrity sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=

babel-plugin-syntax-jsx@^6.18.0:
version "6.18.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
integrity sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=

babel-plugin-syntax-object-rest-spread@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
Expand Down Expand Up @@ -3620,6 +3652,11 @@ camelcase@^5.0.0:
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.2.0.tgz#e7522abda5ed94cc0489e1b8466610e88404cf45"
integrity sha512-IXFsBS2pC+X0j0N/GE7Dm7j3bsEBp+oTpb7F50dwEVX7rf3IgwO9XatnegTsDtniKCUtEJH4fSU6Asw7uoVLfQ==

camelize@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b"
integrity sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=

caniuse-api@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-3.0.0.tgz#5e4d90e2274961d46291997df599e3ed008ee4c0"
Expand Down Expand Up @@ -4519,6 +4556,11 @@ crypto-random-string@^1.0.0:
resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e"
integrity sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=

css-color-keywords@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05"
integrity sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU=

css-color-names@0.0.4, css-color-names@^0.0.4:
version "0.0.4"
resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0"
Expand Down Expand Up @@ -4589,6 +4631,15 @@ css-selector-tokenizer@^0.7.0:
fastparse "^1.1.1"
regexpu-core "^1.0.0"

css-to-react-native@^2.2.2:
version "2.3.0"
resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.3.0.tgz#bf80d24ec4a08e430306ef429c0586e6ed5485f7"
integrity sha512-IhR7bNIrCFwbJbKZOAjNDZdwpsbjTN6f1agXeELHDqg1wHPA8c2QLruttKOW7hgMGetkfraRJCIEMrptifBfVw==
dependencies:
camelize "^1.0.0"
css-color-keywords "^1.0.0"
postcss-value-parser "^3.3.0"

css-tree@1.0.0-alpha.28:
version "1.0.0-alpha.28"
resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.28.tgz#8e8968190d886c9477bc8d61e96f61af3f7ffa7f"
Expand Down Expand Up @@ -5501,7 +5552,7 @@ enzyme-adapter-react-16@^1.11.2:
object.assign "^4.1.0"
object.values "^1.1.0"
prop-types "^15.7.2"
react-is "^16.8.5"
react-is "^16.8.4"
react-test-renderer "^16.0.0-0"
semver "^5.6.0"

Expand Down Expand Up @@ -6777,6 +6828,13 @@ gatsby-plugin-sharp@^2.0.25:
sharp "^0.21.3"
svgo "^1.2.0"

gatsby-plugin-styled-components@^3.0.7:
version "3.0.7"
resolved "https://registry.yarnpkg.com/gatsby-plugin-styled-components/-/gatsby-plugin-styled-components-3.0.7.tgz#c89db04ef646f3b8295455009ddf717896c8c727"
integrity sha512-a9sg4qWC5K75eip7TwN4F2TGXCaoRZhx9lvu1U5aQQrC8OpTgWus66Fzws0XVcUCe18isfOm1kGfhLNm5/lOFw==
dependencies:
"@babel/runtime" "^7.0.0"

gatsby-plugin-typescript@^2.0.10:
version "2.0.11"
resolved "https://registry.yarnpkg.com/gatsby-plugin-typescript/-/gatsby-plugin-typescript-2.0.11.tgz#693087b2b52df7090f78355bf9cc8d624bfe4809"
Expand Down Expand Up @@ -10375,6 +10433,11 @@ mem@^4.0.0:
mimic-fn "^2.0.0"
p-is-promise "^2.0.0"

memoize-one@^5.0.0:
version "5.0.1"
resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.0.1.tgz#35a709ffb6e5f0cb79f9679a96f09ec3a35addfa"
integrity sha512-S3plzyksLOSF4pkf1Xlb7mA8ZRKZlgp3ebg7rULbfwPT8Ww7uZz5CbLgRKaR92GeXpsNiFbfCRWf/uOrCYIbRg==

memory-fs@^0.4.0, memory-fs@^0.4.1, memory-fs@~0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552"
Expand Down Expand Up @@ -12624,7 +12687,7 @@ pretty-format@^24.5.0:
"@jest/types" "^24.5.0"
ansi-regex "^4.0.0"
ansi-styles "^3.2.0"
react-is "^16.8.5"
react-is "^16.8.4"

prismjs@^1.15.0:
version "1.16.0"
Expand Down Expand Up @@ -12985,7 +13048,7 @@ react-dev-utils@^4.2.1:
strip-ansi "3.0.1"
text-table "0.2.0"

react-dom@^16.8.5, react-dom@^16.8.5:
react-dom@^16.8.5:
version "16.8.5"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.5.tgz#b3e37d152b49e07faaa8de41fdf562be3463335e"
integrity sha512-VIEIvZLpFafsfu4kgmftP5L8j7P1f0YThfVTrANMhZUFMDOsA6e0kfR6wxw/8xxKs4NB59TZYbxNdPCDW34x4w==
Expand Down Expand Up @@ -13030,7 +13093,7 @@ react-hot-loader@^4.6.2:
shallowequal "^1.0.2"
source-map "^0.7.3"

react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.5, react-is@^16.8.5:
react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4, react-is@^16.8.5:
version "16.8.5"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.5.tgz#c54ac229dd66b5afe0de5acbe47647c3da692ff8"
integrity sha512-sudt2uq5P/2TznPV4Wtdi+Lnq3yaYW8LfvPKLM9BKD8jJNBkxMVyB0C9/GmVhLw7Jbdmndk/73n7XQGeN9A3QQ==
Expand Down Expand Up @@ -13063,7 +13126,7 @@ react-typography@^0.16.18:
resolved "https://registry.yarnpkg.com/react-typography/-/react-typography-0.16.19.tgz#5736b47961dcf6b9605b6fa38d41980db2588e28"
integrity sha512-kV2qLEsdm0x9P4YXQEDVc88tDb4Vg0h/vdVZGgbqaRn8ERvNzV76JHUeOby3vvcUYU5MPd5Kz5DPH9Bhp4I/iw==

react@^16.8.5, react@^16.8.5:
react@^16.8.5:
version "16.8.5"
resolved "https://registry.yarnpkg.com/react/-/react-16.8.5.tgz#49be3b655489d74504ad994016407e8a0445de66"
integrity sha512-daCb9TD6FZGvJ3sg8da1tRAtIuw29PbKZW++NN4wqkbEvxL+bZpaaYb4xuftW/SpXmgacf1skXl/ddX6CdOlDw==
Expand Down Expand Up @@ -14835,6 +14898,23 @@ style-to-object@^0.2.1:
dependencies:
css "2.2.4"

styled-components@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-4.2.0.tgz#811fbbec4d64c7189f6c7482b9eb6fefa7fefef7"
integrity sha512-L/LzkL3ZbBhqIVHdR7DbYujy4tqvTNRfc+4JWDCYyhTatI+8CRRQUmdaR0+ARl03DWsfKLhjewll5uNLrqrl4A==
dependencies:
"@babel/helper-module-imports" "^7.0.0"
"@emotion/is-prop-valid" "^0.7.3"
"@emotion/unitless" "^0.7.0"
babel-plugin-styled-components ">= 1"
css-to-react-native "^2.2.2"
memoize-one "^5.0.0"
prop-types "^15.5.4"
react-is "^16.6.0"
stylis "^3.5.0"
stylis-rule-sheet "^0.0.10"
supports-color "^5.5.0"

stylehacks@^4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-4.0.3.tgz#6718fcaf4d1e07d8a1318690881e8d96726a71d5"
Expand All @@ -14844,6 +14924,16 @@ stylehacks@^4.0.0:
postcss "^7.0.0"
postcss-selector-parser "^3.0.0"

stylis-rule-sheet@^0.0.10:
version "0.0.10"
resolved "https://registry.yarnpkg.com/stylis-rule-sheet/-/stylis-rule-sheet-0.0.10.tgz#44e64a2b076643f4b52e5ff71efc04d8c3c4a430"
integrity sha512-nTbZoaqoBnmK+ptANthb10ZRZOGC+EmTLLUxeYIuHNkEKcmKgXX1XWKkUBT2Ac4es3NybooPe0SmvKdhKJZAuw==

stylis@^3.5.0:
version "3.5.4"
resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.5.4.tgz#f665f25f5e299cf3d64654ab949a57c768b73fbe"
integrity sha512-8/3pSmthWM7lsPBKv7NXkzn2Uc9W7NotcwGNpJaa3k7WMM1XDCA4MgT5k/8BIexd5ydZdboXtU90XH9Ec4Bv/Q==

supports-color@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
Expand Down

0 comments on commit c85d9d7

Please sign in to comment.