Skip to content

Commit eff2f2f

Browse files
authored
Merge pull request #14 from laurazenc/feat/raui
feat: raui
2 parents 698b8dd + 9625ffc commit eff2f2f

File tree

5 files changed

+94
-9
lines changed

5 files changed

+94
-9
lines changed

packages/theme/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"react": "16.x"
4646
},
4747
"dependencies": {
48-
"@emotion/react": "^11.1.5"
48+
"@emotion/react": "^11.1.5",
49+
"@emotion/styled": "^11.1.5"
4950
}
5051
}

packages/theme/src/raui.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
export const raui = null
1+
import styled from "@emotion/styled"
2+
3+
export const raui = styled

packages/theme/tests/raui.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { raui } from "../src/raui"
2+
3+
describe("raui", () => {
4+
it("should create component", () => {
5+
expect(raui["a"]).toBeDefined()
6+
expect(raui.a``).toBeDefined()
7+
})
8+
})

packages/theme/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"outDir": "dist",
5-
"baseUrl": "src"
5+
"baseUrl": "."
66
},
77
"include": [
88
"src"

yarn.lock

Lines changed: 80 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
dependencies:
240240
"@babel/types" "^7.12.1"
241241

242-
"@babel/helper-module-imports@^7.12.13":
242+
"@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.7.0":
243243
version "7.12.13"
244244
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.12.13.tgz#ec67e4404f41750463e455cc3203f6a32e93fcb0"
245245
integrity sha512-NGmfvRp9Rqxy0uHSSVP+SRIW1q31a7Ji10cLBcqSDUngGentY4FRiHOFZFE1CLU5eiL0oE8reH7Tg1y99TDM/g==
@@ -614,7 +614,7 @@
614614
dependencies:
615615
"@babel/helper-plugin-utils" "^7.10.4"
616616

617-
"@babel/plugin-syntax-jsx@^7.12.13":
617+
"@babel/plugin-syntax-jsx@^7.12.1", "@babel/plugin-syntax-jsx@^7.12.13":
618618
version "7.12.13"
619619
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.12.13.tgz#044fb81ebad6698fe62c478875575bcbb9b70f15"
620620
integrity sha512-d4HM23Q1K7oq/SLNmG6mRt85l2csmQ0cHRaxRXjKW0YFdEXqlZ5kzFQKH5Uc3rDJECgu+yCRgPkG04Mm98R/1g==
@@ -1339,6 +1339,24 @@
13391339
dependencies:
13401340
chalk "^4.0.0"
13411341

1342+
"@emotion/babel-plugin@^11.1.2":
1343+
version "11.2.0"
1344+
resolved "https://registry.yarnpkg.com/@emotion/babel-plugin/-/babel-plugin-11.2.0.tgz#f25c6df8ec045dad5ae6ca63df0791673b98c920"
1345+
integrity sha512-lsnQBnl3l4wu/FJoyHnYRpHJeIPNkOBMbtDUIXcO8luulwRKZXPvA10zd2eXVN6dABIWNX4E34en/jkejIg/yA==
1346+
dependencies:
1347+
"@babel/helper-module-imports" "^7.7.0"
1348+
"@babel/plugin-syntax-jsx" "^7.12.1"
1349+
"@babel/runtime" "^7.7.2"
1350+
"@emotion/hash" "^0.8.0"
1351+
"@emotion/memoize" "^0.7.5"
1352+
"@emotion/serialize" "^1.0.0"
1353+
babel-plugin-macros "^2.6.1"
1354+
convert-source-map "^1.5.0"
1355+
escape-string-regexp "^4.0.0"
1356+
find-root "^1.1.0"
1357+
source-map "^0.5.7"
1358+
stylis "^4.0.3"
1359+
13421360
"@emotion/cache@^11.1.3":
13431361
version "11.1.3"
13441362
resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-11.1.3.tgz#c7683a9484bcd38d5562f2b9947873cf66829afd"
@@ -1355,7 +1373,14 @@
13551373
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413"
13561374
integrity sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==
13571375

1358-
"@emotion/memoize@^0.7.4":
1376+
"@emotion/is-prop-valid@^1.1.0":
1377+
version "1.1.0"
1378+
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-1.1.0.tgz#29ef6be1e946fb4739f9707def860f316f668cde"
1379+
integrity sha512-9RkilvXAufQHsSsjQ3PIzSns+pxuX4EW8EbGeSPjZMHuMx6z/MOzb9LpqNieQX4F3mre3NWS2+X3JNRHTQztUQ==
1380+
dependencies:
1381+
"@emotion/memoize" "^0.7.4"
1382+
1383+
"@emotion/memoize@^0.7.4", "@emotion/memoize@^0.7.5":
13591384
version "0.7.5"
13601385
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.5.tgz#2c40f81449a4e554e9fc6396910ed4843ec2be50"
13611386
integrity sha512-igX9a37DR2ZPGYtV6suZ6whr8pTFtyHL3K/oLUotxpSVO2ASaprmAe2Dkq7tBo7CRY7MMDrAa9nuQP9/YG8FxQ==
@@ -1389,6 +1414,17 @@
13891414
resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-1.0.1.tgz#245f54abb02dfd82326e28689f34c27aa9b2a698"
13901415
integrity sha512-GbIvVMe4U+Zc+929N1V7nW6YYJtidj31lidSmdYcWozwoBIObXBnaJkKNDjZrLm9Nc0BR+ZyHNaRZxqNZbof5g==
13911416

1417+
"@emotion/styled@^11.1.5":
1418+
version "11.1.5"
1419+
resolved "https://registry.yarnpkg.com/@emotion/styled/-/styled-11.1.5.tgz#3d7bfa58b346e48315f65ee956aeef81f0bea8e0"
1420+
integrity sha512-nIq7pOBEDqT5xSFbclQ3XFy0q8C9EUU8ECqKN2kJKGxKh+vLz/x26kEih4aOpoAsyzc+R60rQxh7VJiLTUEdmg==
1421+
dependencies:
1422+
"@babel/runtime" "^7.7.2"
1423+
"@emotion/babel-plugin" "^11.1.2"
1424+
"@emotion/is-prop-valid" "^1.1.0"
1425+
"@emotion/serialize" "^1.0.0"
1426+
"@emotion/utils" "^1.0.0"
1427+
13921428
"@emotion/unitless@^0.7.5":
13931429
version "0.7.5"
13941430
resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.5.tgz#77211291c1900a700b8a78cfafda3160d76949ed"
@@ -3530,6 +3566,15 @@ babel-plugin-jest-hoist@^26.6.2:
35303566
"@types/babel__core" "^7.0.0"
35313567
"@types/babel__traverse" "^7.0.6"
35323568

3569+
babel-plugin-macros@^2.6.1:
3570+
version "2.8.0"
3571+
resolved "https://registry.yarnpkg.com/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz#0f958a7cc6556b1e65344465d99111a1e5e10138"
3572+
integrity sha512-SEP5kJpfGYqYKpBrj5XU3ahw5p5GOHJ0U5ssOSQ/WBVdwkD2Dzlce95exQTs3jOVWPPKLBN2rlEWkCK7dSmLvg==
3573+
dependencies:
3574+
"@babel/runtime" "^7.7.2"
3575+
cosmiconfig "^6.0.0"
3576+
resolve "^1.12.0"
3577+
35333578
babel-plugin-syntax-jsx@6.18.0:
35343579
version "6.18.0"
35353580
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
@@ -4556,7 +4601,7 @@ conventional-recommended-bump@^5.0.0:
45564601
meow "^4.0.0"
45574602
q "^1.5.1"
45584603

4559-
convert-source-map@1.7.0, convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0:
4604+
convert-source-map@1.7.0, convert-source-map@^1.1.0, convert-source-map@^1.4.0, convert-source-map@^1.5.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0:
45604605
version "1.7.0"
45614606
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.7.0.tgz#17a2cb882d7f77d3490585e2ce6c524424a3a442"
45624607
integrity sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==
@@ -4608,6 +4653,17 @@ cosmiconfig@^5.1.0:
46084653
js-yaml "^3.13.1"
46094654
parse-json "^4.0.0"
46104655

4656+
cosmiconfig@^6.0.0:
4657+
version "6.0.0"
4658+
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982"
4659+
integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==
4660+
dependencies:
4661+
"@types/parse-json" "^4.0.0"
4662+
import-fresh "^3.1.0"
4663+
parse-json "^5.0.0"
4664+
path-type "^4.0.0"
4665+
yaml "^1.7.2"
4666+
46114667
cosmiconfig@^7.0.0:
46124668
version "7.0.0"
46134669
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.0.tgz#ef9b44d773959cae63ddecd122de23853b60f8d3"
@@ -5295,6 +5351,11 @@ escape-string-regexp@^2.0.0:
52955351
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344"
52965352
integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==
52975353

5354+
escape-string-regexp@^4.0.0:
5355+
version "4.0.0"
5356+
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34"
5357+
integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==
5358+
52985359
escodegen@^1.14.1:
52995360
version "1.14.3"
53005361
resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503"
@@ -5835,6 +5896,11 @@ find-cache-dir@3.3.1, find-cache-dir@^3.3.1:
58355896
make-dir "^3.0.2"
58365897
pkg-dir "^4.1.0"
58375898

5899+
find-root@^1.1.0:
5900+
version "1.1.0"
5901+
resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4"
5902+
integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==
5903+
58385904
find-up@^1.0.0:
58395905
version "1.1.2"
58405906
resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f"
@@ -6680,6 +6746,14 @@ import-fresh@^3.0.0, import-fresh@^3.2.1:
66806746
parent-module "^1.0.0"
66816747
resolve-from "^4.0.0"
66826748

6749+
import-fresh@^3.1.0:
6750+
version "3.3.0"
6751+
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b"
6752+
integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==
6753+
dependencies:
6754+
parent-module "^1.0.0"
6755+
resolve-from "^4.0.0"
6756+
66836757
import-lazy@^2.1.0:
66846758
version "2.1.0"
66856759
resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
@@ -10932,7 +11006,7 @@ source-map@0.8.0-beta.0:
1093211006
dependencies:
1093311007
whatwg-url "^7.0.0"
1093411008

10935-
source-map@^0.5.0, source-map@^0.5.6:
11009+
source-map@^0.5.0, source-map@^0.5.6, source-map@^0.5.7:
1093611010
version "0.5.7"
1093711011
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
1093811012
integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=
@@ -12439,7 +12513,7 @@ yallist@^4.0.0:
1243912513
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
1244012514
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
1244112515

12442-
yaml@^1.10.0:
12516+
yaml@^1.10.0, yaml@^1.7.2:
1244312517
version "1.10.2"
1244412518
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"
1244512519
integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==

0 commit comments

Comments
 (0)