Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 368881e

Browse files
authored
Merge pull request #158 from smooth-code/components
feat: add Card, Menu, Separator, Text
2 parents 453ed10 + 952ea01 commit 368881e

File tree

22 files changed

+2238
-1198
lines changed

22 files changed

+2238
-1198
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ _Before_ submitting a pull request, please make sure the following is done…
4444

4545
```sh
4646
# build packages continuously:
47-
yarn run build:watch
47+
yarn dev
4848
# in website folder have to run:
49-
yarn && yarn run dev
49+
yarn && yarn dev
5050
# each time you want to update the documentation to reflect your change, use:
5151
yarn update-website
5252
```

config/rollup.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,14 @@ export const getRollupConfig = ({ pwd, buildName, name }) => {
4747
plugins: [
4848
babel(getBabelOptions({ useESModules: false })),
4949
nodeResolve(),
50-
commonjs(),
50+
commonjs({
51+
namedExports: {
52+
'../../node_modules/body-scroll-lock/lib/bodyScrollLock.min.js': [
53+
'disableBodyScroll',
54+
'enableBodyScroll',
55+
],
56+
},
57+
}),
5158
replace({ 'process.env.NODE_ENV': JSON.stringify('development') }),
5259
],
5360
}
@@ -64,7 +71,14 @@ export const getRollupConfig = ({ pwd, buildName, name }) => {
6471
plugins: [
6572
babel(getBabelOptions({ useESModules: true })),
6673
nodeResolve(),
67-
commonjs(),
74+
commonjs({
75+
namedExports: {
76+
'../../node_modules/body-scroll-lock/lib/bodyScrollLock.min.js': [
77+
'disableBodyScroll',
78+
'enableBodyScroll',
79+
],
80+
},
81+
}),
6882
replace({ 'process.env.NODE_ENV': JSON.stringify('production') }),
6983
terser(),
7084
],

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packages": [
44
"packages/*"
55
],
6-
"version": "11.0.2",
6+
"version": "11.0.3-alpha.2",
77
"npmClient": "yarn",
88
"useWorkspaces": true
99
}

package.json

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
],
66
"scripts": {
77
"build": "lerna run build",
8-
"build:docs": "yarn build && docz build && cp _redirects .docz/dist",
9-
"build:watch": "WATCH_MODE=true lerna run --parallel build -- --watch",
8+
"dev": "WATCH_MODE=true lerna run --parallel build -- --watch",
109
"update-website": "cp -r ./packages/core-sc/dist ./website/node_modules/smooth-ui-sc-next && cp -r ./packages/core-em/dist ./website/node_modules/smooth-ui-em-next",
1110
"ci": "yarn lint && yarn test && yarn build && bundlesize && yarn tsc:check || true",
12-
"dev": "docz dev",
1311
"format": "prettier --write \"**/*.{js,json,md,mdx}\"",
1412
"lint": "eslint .",
1513
"release": "lerna publish --conventional-commits --force-publish=* && conventional-github-releaser --preset angular",
14+
"prerelease": "lerna publish prerelease --force-publish=* && conventional-github-releaser --preset angular",
1615
"test": "jest"
1716
},
1817
"bundlesize": [
@@ -26,32 +25,32 @@
2625
}
2726
],
2827
"devDependencies": {
29-
"@babel/cli": "^7.5.5",
30-
"@babel/core": "^7.5.5",
28+
"@babel/cli": "^7.6.0",
29+
"@babel/core": "^7.6.0",
3130
"@babel/plugin-external-helpers": "^7.2.0",
3231
"@babel/plugin-proposal-class-properties": "^7.5.5",
33-
"@babel/plugin-transform-modules-commonjs": "^7.5.0",
34-
"@babel/plugin-transform-runtime": "^7.5.5",
35-
"@babel/preset-env": "^7.5.5",
32+
"@babel/plugin-transform-modules-commonjs": "^7.6.0",
33+
"@babel/plugin-transform-runtime": "^7.6.0",
34+
"@babel/preset-env": "^7.6.0",
3635
"@babel/preset-react": "^7.0.0",
37-
"@emotion/core": "^10.0.16",
38-
"@emotion/styled": "^10.0.15",
36+
"@emotion/core": "^10.0.17",
37+
"@emotion/styled": "^10.0.17",
3938
"@xstyled/emotion": "^1.11.0",
4039
"@xstyled/styled-components": "^1.11.0",
4140
"@xstyled/system": "^1.11.0",
4241
"babel-eslint": "^10.0.2",
4342
"babel-jest": "^24.8.0",
4443
"babel-plugin-annotate-pure-calls": "^0.4.0",
45-
"babel-plugin-emotion": "^10.0.15",
44+
"babel-plugin-emotion": "^10.0.19",
4645
"babel-plugin-styled-components": "^1.10.6",
4746
"babel-plugin-transform-rename-import": "^2.3.0",
4847
"bundlesize": "^0.18.0",
4948
"conventional-github-releaser": "^3.1.3",
50-
"cross-env": "^5.2.0",
51-
"emotion-theming": "^10.0.14",
52-
"eslint": "^6.1.0",
49+
"cross-env": "^6.0.0",
50+
"emotion-theming": "^10.0.19",
51+
"eslint": "^6.4.0",
5352
"eslint-config-airbnb": "^18.0.1",
54-
"eslint-config-prettier": "^6.0.0",
53+
"eslint-config-prettier": "^6.3.0",
5554
"eslint-plugin-import": "^2.18.2",
5655
"eslint-plugin-jsx-a11y": "^6.2.3",
5756
"eslint-plugin-react": "^7.14.3",
@@ -60,14 +59,14 @@
6059
"lerna": "^3.16.4",
6160
"react": "^16.9.0",
6261
"react-dom": "^16.9.0",
63-
"reakit": "^1.0.0-beta.4",
64-
"rollup": "^1.20.3",
62+
"reakit": "^1.0.0-beta.7",
63+
"rollup": "^1.21.4",
6564
"rollup-plugin-babel": "^4.3.3",
6665
"rollup-plugin-commonjs": "^10.0.2",
6766
"rollup-plugin-node-resolve": "^5.2.0",
6867
"rollup-plugin-replace": "^2.2.0",
6968
"rollup-plugin-size-snapshot": "^0.10.0",
70-
"rollup-plugin-terser": "^5.1.1",
69+
"rollup-plugin-terser": "^5.1.2",
7170
"shx": "^0.3.2",
7271
"styled-components": "^4.3.2"
7372
}

packages/core-em/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@smooth-ui/core-em",
33
"description": "Modern React UI Library",
4-
"version": "11.0.2",
4+
"version": "11.0.3-alpha.2",
55
"keywords": [
66
"emotion",
77
"ui",
@@ -24,13 +24,14 @@
2424
"access": "public"
2525
},
2626
"dependencies": {
27-
"@babel/runtime": "^7.5.5",
27+
"@babel/runtime": "^7.6.0",
2828
"@xstyled/emotion": "^1.11.0",
2929
"@xstyled/util": "^1.11.0",
3030
"polished": "^3.4.1",
3131
"prop-desc": "^1.0.0",
3232
"prop-types": "^15.7.2",
33-
"react-flatten-children": "^1.0.0"
33+
"react-flatten-children": "^1.0.0",
34+
"react-merge-refs": "^1.0.0"
3435
},
3536
"peerDependencies": {
3637
"@emotion/core": "^10.0.0",

packages/core-sc/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@smooth-ui/core-sc",
33
"description": "Modern React UI Library",
4-
"version": "11.0.2",
4+
"version": "11.0.3-alpha.2",
55
"keywords": [
66
"styled-components",
77
"ui",
@@ -24,13 +24,14 @@
2424
"access": "public"
2525
},
2626
"dependencies": {
27-
"@babel/runtime": "^7.5.5",
27+
"@babel/runtime": "^7.6.0",
2828
"@xstyled/styled-components": "^1.11.0",
2929
"@xstyled/util": "^1.11.0",
3030
"polished": "^3.4.1",
3131
"prop-desc": "^1.0.0",
3232
"prop-types": "^15.7.2",
33-
"react-flatten-children": "^1.0.0"
33+
"react-flatten-children": "^1.0.0",
34+
"react-merge-refs": "^1.0.0"
3435
},
3536
"peerDependencies": {
3637
"react": ">=16.8.0",

packages/shared/core/Button.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ export const Button = createComponent({
5252
/* When used as link */
5353
text-decoration: none;
5454
55+
&[type='button'] {
56+
appearance: none;
57+
}
58+
5559
&:disabled {
5660
opacity: 0.8;
5761
}
@@ -67,6 +71,7 @@ export const Button = createComponent({
6771
6872
&:not(:disabled):hover,
6973
&:not(:disabled):active {
74+
color: ${colorYik(baseColor)(p)};
7075
background-color: ${darken(0.05, baseColor)};
7176
}
7277
`(p)}

0 commit comments

Comments
 (0)