@4c/layout
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -0,1 +1,8 @@ | ||
## [2.0.4](https://github.com/4Catalyzer/layout/compare/v2.0.3...v2.0.4) (2020-02-18) | ||
### Bug Fixes | ||
* flex-grow ([#35](https://github.com/4Catalyzer/layout/issues/35)) ([feab61d](https://github.com/4Catalyzer/layout/commit/feab61d231a5175723c8827bdbeba730ab4ab8a8)) | ||
## [2.0.3](https://github.com/4Catalyzer/layout/compare/v2.0.2...v2.0.3) (2020-02-12) | ||
@@ -2,0 +9,0 @@ |
@@ -39,24 +39,2 @@ import "./Layout.css"; | ||
const align = PropTypes.oneOf(['start', 'end', 'flex-start', 'flex-end', 'center', 'stretch', 'baseline', 'first-baseline', 'last-baseline']); | ||
const content = PropTypes.oneOf(['left', 'right', 'flex-start', 'flex-end', 'center', 'baseline', 'first-baseline', 'last-baseline', 'space-between', 'space-around', 'space-evenly']); | ||
const propTypes = { | ||
as: PropTypes.elementType.isRequired, | ||
direction: PropTypes.oneOf(['row', 'column']).isRequired, | ||
pad: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]), | ||
wrap: PropTypes.bool, | ||
grow: PropTypes.bool, | ||
inline: PropTypes.bool, | ||
flex: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]), | ||
align: align.isRequired, | ||
alignSelf: align, | ||
alignContent: content, | ||
justify: content.isRequired | ||
}; | ||
const defaultProps = { | ||
as: 'div', | ||
direction: 'row', | ||
align: 'stretch', | ||
justify: 'flex-start' | ||
}; | ||
var styles = { | ||
@@ -88,2 +66,24 @@ "layout": "mc7b5ceb67_layout", | ||
const align = PropTypes.oneOf(['start', 'end', 'flex-start', 'flex-end', 'center', 'stretch', 'baseline', 'first-baseline', 'last-baseline']); | ||
const content = PropTypes.oneOf(['left', 'right', 'flex-start', 'flex-end', 'center', 'baseline', 'first-baseline', 'last-baseline', 'space-between', 'space-around', 'space-evenly']); | ||
const propTypes = { | ||
as: PropTypes.elementType.isRequired, | ||
direction: PropTypes.oneOf(['row', 'column']).isRequired, | ||
pad: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]), | ||
wrap: PropTypes.bool, | ||
grow: PropTypes.bool, | ||
inline: PropTypes.bool, | ||
flex: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]), | ||
align: align.isRequired, | ||
alignSelf: align, | ||
alignContent: content, | ||
justify: content.isRequired | ||
}; | ||
const defaultProps = { | ||
as: 'div', | ||
direction: 'row', | ||
align: 'stretch', | ||
justify: 'flex-start' | ||
}; | ||
const Block = React.forwardRef((_ref, ref) => { | ||
@@ -142,3 +142,3 @@ let { | ||
if (grow && flexValue == null) { | ||
flexValue = '1 0 auto'; | ||
flexValue = '1'; | ||
} | ||
@@ -145,0 +145,0 @@ |
@@ -44,24 +44,2 @@ "use strict"; | ||
const align = PropTypes.oneOf(['start', 'end', 'flex-start', 'flex-end', 'center', 'stretch', 'baseline', 'first-baseline', 'last-baseline']); | ||
const content = PropTypes.oneOf(['left', 'right', 'flex-start', 'flex-end', 'center', 'baseline', 'first-baseline', 'last-baseline', 'space-between', 'space-around', 'space-evenly']); | ||
const propTypes = { | ||
as: PropTypes.elementType.isRequired, | ||
direction: PropTypes.oneOf(['row', 'column']).isRequired, | ||
pad: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]), | ||
wrap: PropTypes.bool, | ||
grow: PropTypes.bool, | ||
inline: PropTypes.bool, | ||
flex: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]), | ||
align: align.isRequired, | ||
alignSelf: align, | ||
alignContent: content, | ||
justify: content.isRequired | ||
}; | ||
const defaultProps = { | ||
as: 'div', | ||
direction: 'row', | ||
align: 'stretch', | ||
justify: 'flex-start' | ||
}; | ||
var styles = { | ||
@@ -93,2 +71,24 @@ "layout": "mc7b5ceb67_layout", | ||
const align = PropTypes.oneOf(['start', 'end', 'flex-start', 'flex-end', 'center', 'stretch', 'baseline', 'first-baseline', 'last-baseline']); | ||
const content = PropTypes.oneOf(['left', 'right', 'flex-start', 'flex-end', 'center', 'baseline', 'first-baseline', 'last-baseline', 'space-between', 'space-around', 'space-evenly']); | ||
const propTypes = { | ||
as: PropTypes.elementType.isRequired, | ||
direction: PropTypes.oneOf(['row', 'column']).isRequired, | ||
pad: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]), | ||
wrap: PropTypes.bool, | ||
grow: PropTypes.bool, | ||
inline: PropTypes.bool, | ||
flex: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]), | ||
align: align.isRequired, | ||
alignSelf: align, | ||
alignContent: content, | ||
justify: content.isRequired | ||
}; | ||
const defaultProps = { | ||
as: 'div', | ||
direction: 'row', | ||
align: 'stretch', | ||
justify: 'flex-start' | ||
}; | ||
const Block = React.forwardRef((_ref, ref) => { | ||
@@ -147,3 +147,3 @@ let { | ||
if (grow && flexValue == null) { | ||
flexValue = '1 0 auto'; | ||
flexValue = '1'; | ||
} | ||
@@ -150,0 +150,0 @@ |
{ | ||
"name": "@4c/layout", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"files": [ | ||
@@ -38,7 +38,2 @@ "lib", | ||
}, | ||
"importSort": { | ||
".js, .ts, .tsx": { | ||
"style": "@4c/import-sort" | ||
} | ||
}, | ||
"release": { | ||
@@ -64,13 +59,12 @@ "extends": [ | ||
"devDependencies": { | ||
"@4c/babel-preset": "^7.3.0", | ||
"@4c/import-sort": "^4.3.6", | ||
"@4c/semantic-release-config": "^2.0.4", | ||
"@4c/babel-preset": "^7.3.2", | ||
"@4c/semantic-release-config": "^2.0.5", | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.8.4", | ||
"@csstools/postcss-sass": "^4.0.0", | ||
"@modular-css/rollup": "^25.4.0", | ||
"@modular-css/rollup": "^25.4.1", | ||
"babel-eslint": "^10.0.3", | ||
"dtslint": "^2.0.5", | ||
"dtslint": "^3.0.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-4catalyzer-react": "^1.0.2", | ||
"eslint-config-4catalyzer-react": "^1.0.4", | ||
"eslint-config-prettier": "^6.10.0", | ||
@@ -82,3 +76,3 @@ "eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-react-hooks": "^2.3.0", | ||
"husky": "^4.2.1", | ||
"husky": "^4.2.3", | ||
"lint-staged": "^10.0.7", | ||
@@ -88,9 +82,9 @@ "postcss-scss": "^2.0.0", | ||
"react": "^16.12.0", | ||
"rollup": "^1.31.0", | ||
"rollup": "^1.31.1", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"semantic-release": "^17.0.2", | ||
"semantic-release": "^17.0.3", | ||
"sass": "^1.25.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34618
27