diff --git a/package-lock.json b/package-lock.json index 94fbcb22f..ec519c8b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,8 @@ "requires": true, "packages": { "": { - "version": "4.0.7", + "name": "react-bulma-components", + "version": "4.1.0", "license": "MIT", "dependencies": { "classnames": "2.3.1" @@ -41,7 +42,7 @@ "babel-jest": "26.6.3", "babel-plugin-transform-react-remove-prop-types": "0.4.24", "babel-runtime": "6.26.0", - "bulma": "0.9.2", + "bulma": "0.9.4", "chai": "4.3.4", "coveralls": "3.1.0", "emotion": "11.0.0", @@ -7286,9 +7287,9 @@ "dev": true }, "node_modules/bulma": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/bulma/-/bulma-0.9.2.tgz", - "integrity": "sha512-e14EF+3VSZ488yL/lJH0tR8mFWiEQVCMi/BQUMi2TGMBOk+zrDg4wryuwm/+dRSHJw0gMawp2tsW7X1JYUCE3A==", + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/bulma/-/bulma-0.9.4.tgz", + "integrity": "sha512-86FlT5+1GrsgKbPLRRY7cGDg8fsJiP/jzTqXXVqiUZZ2aZT8uemEOHlU1CDU+TxklPEZ11HZNNWclRBBecP4CQ==", "dev": true }, "node_modules/bytes": { @@ -30746,9 +30747,9 @@ "dev": true }, "bulma": { - "version": "0.9.2", - "resolved": "https://registry.npmjs.org/bulma/-/bulma-0.9.2.tgz", - "integrity": "sha512-e14EF+3VSZ488yL/lJH0tR8mFWiEQVCMi/BQUMi2TGMBOk+zrDg4wryuwm/+dRSHJw0gMawp2tsW7X1JYUCE3A==", + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/bulma/-/bulma-0.9.4.tgz", + "integrity": "sha512-86FlT5+1GrsgKbPLRRY7cGDg8fsJiP/jzTqXXVqiUZZ2aZT8uemEOHlU1CDU+TxklPEZ11HZNNWclRBBecP4CQ==", "dev": true }, "bytes": { diff --git a/package.json b/package.json index a76ff45b2..96f876bc0 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "babel-jest": "26.6.3", "babel-plugin-transform-react-remove-prop-types": "0.4.24", "babel-runtime": "6.26.0", - "bulma": "0.9.2", + "bulma": "0.9.4", "chai": "4.3.4", "coveralls": "3.1.0", "emotion": "11.0.0", diff --git a/src/components/button/__test__/__snapshots__/button.test.js.snap b/src/components/button/__test__/__snapshots__/button.test.js.snap index b6e2d3e3c..b30de83ef 100644 --- a/src/components/button/__test__/__snapshots__/button.test.js.snap +++ b/src/components/button/__test__/__snapshots__/button.test.js.snap @@ -102,6 +102,13 @@ exports[`Button component Should be a Large Primary Button 1`] = ` /> `; +exports[`Button component Should be a Normal Primary Button 1`] = ` + +`; + exports[`Button component Should be a Primary Button 1`] = ` `; +exports[`Button component Should be a Responsive Primary Button 1`] = ` + +`; + exports[`Button component Should be a default Button 1`] = `
`; + +exports[`Content component Should have content classname with normal size 1`] = ` ++
+ Default +
++ Container +
+ ++
Default
+Container
+ +Custom {props.children} diff --git a/src/components/element/element.js b/src/components/element/element.js index 1371b6a11..ac9d1ccd0 100644 --- a/src/components/element/element.js +++ b/src/components/element/element.js @@ -11,9 +11,8 @@ const buildResponsiveness = ( return classnames({ [`is-${display}-${currentViewport}${suffix}`]: display, - [`has-text-${normalizeAlign( + [`has-text-${normalizeAlign(textAlign)}-${currentViewport}${suffix}`]: textAlign, - )}-${currentViewport}${suffix}`]: textAlign, [`is-size-${textSize}-${currentViewport}${suffix}`]: textSize, [`is-invisible-${currentViewport}${suffix}`]: invisible, }); @@ -60,6 +59,7 @@ export const useElementClassNames = ({ textWeight, textTransform, italic, + underline, textSize, textAlign, textFamily, @@ -119,6 +119,7 @@ export const useElementClassNames = ({ [`is-${textTransform}`]: textTransform, [`is-family-${textFamily}`]: textFamily, 'is-italic': italic, + 'is-underline': underline, }, buildResponsiveness('mobile', mobile), buildResponsiveness('tablet', tablet), @@ -209,6 +210,7 @@ Element.propTypes = { flexWrap: PropTypes.oneOf(['nowrap', 'wrap', 'wrap-reverse']), flexGrow: PropTypes.oneOf([0, 1, 2, 3, 4, 5]), italic: PropTypes.bool, + underline: PropTypes.bool, invisible: PropTypes.bool, justifyContent: PropTypes.oneOf([ 'flex-start', @@ -223,37 +225,37 @@ Element.propTypes = { 'right', ]), m: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), mt: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), mr: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), mb: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), ml: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), mx: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), my: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), @@ -261,37 +263,37 @@ Element.propTypes = { overlay: PropTypes.bool, paddingless: PropTypes.bool, p: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), pt: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), pr: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), pb: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), pl: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), px: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), py: PropTypes.oneOfType([ - PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6]), + PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 'auto']), PropTypes.number, PropTypes.string, ]), diff --git a/src/components/form/components/__test__/__snapshots__/field.test.js.snap b/src/components/form/components/__test__/__snapshots__/field.test.js.snap index 3e068a349..7f1f45944 100644 --- a/src/components/form/components/__test__/__snapshots__/field.test.js.snap +++ b/src/components/form/components/__test__/__snapshots__/field.test.js.snap @@ -90,3 +90,20 @@ exports[`Field component Should have field-label classname 1`] = `
+
+ Default +
++ Container +
+ +