This repository has been archived by the owner on Jan 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from stk-dmitry/refactor/remove-deps
Refactor/remove deps
- Loading branch information
Showing
21 changed files
with
153 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
'use strict'; | ||
|
||
exports.__esModule = true; | ||
|
||
var _const = require('./Row/const'); | ||
|
||
var EnumRow = _interopRequireWildcard(_const); | ||
|
||
var _helpers = require('./helpers'); | ||
|
||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
|
||
var defaultParams = { | ||
flexWrap: { xs: EnumRow.flexWrap.wrap }, | ||
flexDirection: { xs: EnumRow.flexDirection.row }, | ||
justifyContent: { xs: EnumRow.justifyContent.flexStart }, | ||
alignItems: { xs: EnumRow.alignItems.stretch }, | ||
alignContent: { xs: EnumRow.alignContent.stretch } | ||
}; | ||
|
||
exports.default = function (props, valueKey, paramsKey, isCheckPecent) { | ||
if (Object.prototype.hasOwnProperty.call(props, valueKey)) { | ||
return (0, _helpers.mediaProperty)(props, props[valueKey], paramsKey, isCheckPecent); | ||
} | ||
return (0, _helpers.mediaProperty)(props, defaultParams[valueKey], paramsKey, isCheckPecent); | ||
}; | ||
|
||
module.exports = exports['default']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"name": "reflexer", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "React flexbox grid library", | ||
"main": "lib/index.js", | ||
"repository": "[email protected]:stk-dmitry/reflexer.git", | ||
"author": "__strelkov <[email protected]>, @recats", | ||
"author": "Dmitry Strelkov <[email protected]>", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "nwb build-react-component", | ||
|
@@ -38,8 +38,6 @@ | |
"nwb": "^0.23.0" | ||
}, | ||
"dependencies": { | ||
"react": "^16.5.2", | ||
"react-dom": "^16.5.2", | ||
"styled-components": "^4.0.0" | ||
}, | ||
"peerDependencies": { | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.