Skip to content

Commit 39e086a

Browse files
tassoevanggazzo
authored andcommitted
feat: Form components (#66)
1 parent 7244533 commit 39e086a

File tree

397 files changed

+3141
-1375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

397 files changed

+3141
-1375
lines changed

packages/fuselage-tokens/borders.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
export default {
2-
default: {
3-
width: 2,
4-
radius: 2,
5-
},
2+
widths: [
3+
0,
4+
2,
5+
],
6+
radii: [
7+
0,
8+
2,
9+
],
610
};
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

packages/fuselage/.storybook/.babelrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@babel/preset-react"
1919
],
2020
"plugins": [
21-
"@babel/plugin-proposal-class-properties"
21+
"@babel/plugin-proposal-class-properties",
22+
"babel-plugin-styled-components"
2223
]
2324
}

packages/fuselage/.storybook/jest-results.json

+1-1
Large diffs are not rendered by default.

packages/fuselage/.storybook/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = async ({ config, mode }) => {
1313
config.module.rules.push({
1414
test: /\.scss$/,
1515
use: [
16-
'style-loader',
16+
'style-loader/useable',
1717
{
1818
loader: 'css-loader',
1919
options: {

packages/fuselage/babel.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ module.exports = {
55
],
66
plugins: [
77
'@babel/plugin-proposal-class-properties',
8+
'babel-plugin-styled-components',
89
],
910
};

packages/fuselage/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
},
3737
"peerDependencies": {
3838
"@rocket.chat/fuselage-hooks": "^0.2.0-alpha.6",
39-
"react": "^16.8.6"
39+
"react": "^16.8.6",
40+
"styled-components": "^4.4.0"
4041
},
4142
"devDependencies": {
4243
"@babel/core": "^7.4.5",
@@ -50,6 +51,7 @@
5051
"@storybook/addon-docs": "^5.2.1",
5152
"@storybook/addon-jest": "^5.0.11",
5253
"@storybook/addon-knobs": "^5.0.11",
54+
"@storybook/addon-links": "^5.2.3",
5355
"@storybook/addon-options": "^5.0.11",
5456
"@storybook/addon-viewport": "^5.0.11",
5557
"@storybook/addons": "^5.0.11",
@@ -58,6 +60,7 @@
5860
"autoprefixer": "^9.6.1",
5961
"babel-eslint": "^10.0.2",
6062
"babel-loader": "^8.0.6",
63+
"babel-plugin-styled-components": "^1.10.6",
6164
"cross-env": "^5.2.0",
6265
"css-vars-ponyfill": "^2.0.2",
6366
"cssnano": "^4.1.10",
@@ -79,6 +82,7 @@
7982
"postcss-loader": "^3.0.0",
8083
"react": "^16.8.6",
8184
"sass-loader": "^7.1.0",
85+
"styled-components": "^4.4.0",
8286
"stylelint": "^10.0.1",
8387
"stylelint-order": "^3.0.0",
8488
"stylelint-scss": "^3.11.1",

0 commit comments

Comments
 (0)