Skip to content

Commit

Permalink
feat(grid): add component (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
Artess999 committed Feb 11, 2021
1 parent 94e0669 commit 96bd0f3
Show file tree
Hide file tree
Showing 25 changed files with 1,141 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .storybook/public/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Don't mess with Voodoo
*/

/* stylelint-disable */
@font-face {
font-family: 'Styrene UI';
src: url('https://alfabank.st/media/fonts/styrene-ui/styrene-ui_regular.woff2') format('woff2'),
Expand Down Expand Up @@ -786,3 +787,7 @@ div.lib-welcome {
margin: 0;
border: 0;
}

.docblock-propstable .docblock-propstable-body code {
white-space: normal;
}
2 changes: 1 addition & 1 deletion bin/purgecss.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { promisify } = require('util');

const writeFile = promisify(fs.writeFile);

const matches = glob.sync('dist/**/*.css', { ignore: 'dist/+(themes|vars|bank-card|toast-plate)/**' });
const matches = glob.sync('dist/**/*.css', { ignore: 'dist/+(themes|vars|bank-card|grid|toast-plate)/**' });

/**
* Purgecss вырезает селекторы по атрибуту (например .component[data-popper-placement='left'] .arrow в поповере).
Expand Down
1 change: 1 addition & 0 deletions bin/purgecss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ node bin/purgecss.js
lerna exec --parallel \
--ignore @alfalab/core-components-vars \
--ignore @alfalab/core-components-themes \
--ignore @alfalab/core-components-grid \
--ignore @alfalab/core-components-toast-plate \
-- node ../../bin/purgecss.js
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@
"playwright": "^1.7.1",
"playwright-cli": "^0.171.0",
"postcss-cli": "^7.1.0",
"postcss-custom-media": "^7.0.8",
"postcss-each": "^0.10.0",
"postcss-for": "^2.1.1",
"postcss-import": "^12.0.1",
"postcss-mixins": "^6.2.3",
"postcss-preset-env": "^6.7.0",
Expand Down
21 changes: 21 additions & 0 deletions packages/grid/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "@alfalab/core-components-grid",
"version": "1.0.0",
"description": "",
"keywords": [],
"license": "ISC",
"main": "dist/index.js",
"module": "./dist/esm/index.js",
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"peerDependencies": {
"react": "^16.9.0"
},
"dependencies": {
"classnames": "^2.2.6"
}
}

0 comments on commit 96bd0f3

Please sign in to comment.