@datacamp/waffles-card
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.0.6](https://github.com/datacamp-engineering/design-system/tree/master/packages/react-components/card/compare/@datacamp/waffles-card@1.0.5...@datacamp/waffles-card@1.0.6) (2019-09-12) | ||
### Bug Fixes | ||
* allow ReactNode as child of card ([a6f9846](https://github.com/datacamp-engineering/design-system/tree/master/packages/react-components/card/commit/a6f9846)) | ||
## [1.0.5](https://github.com/datacamp-engineering/design-system/tree/master/packages/react-components/card/compare/@datacamp/waffles-card@1.0.4...@datacamp/waffles-card@1.0.5) (2019-09-09) | ||
@@ -8,0 +19,0 @@ |
@@ -48,3 +48,3 @@ import { jsx as ___EmotionJSX } from "@emotion/core"; | ||
transition: 'all 0.6s cubic-bezier(0.075, 0.82, 0.165, 1)' | ||
}, "label:Card;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbURXIiwiZmlsZSI6Ii4uL3NyYy9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdG9rZW5zIGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXRva2Vucy9saWIvZnV0dXJlLXRva2Vucy5qc29uJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0JztcblxuZXhwb3J0IGNvbnN0IGVsZXZhdGlvbk1hcCA9IHtcbiAgMDogdG9rZW5zLnNoYWRvdy5ib3JkZXIudmFsdWUsXG4gIDE6IHRva2Vucy5zaGFkb3cuc20udmFsdWUsXG4gIDI6IHRva2Vucy5zaGFkb3cubWQudmFsdW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mRgLiBob3ZlckVsZXZhdGlvbiBtdXN0IGJlIGdyZWF0ZXIgdGhhbiBlbGV2YXRpb24nXG4gICAgICAgICAgKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gbnVsbDtcbiAgICAgIH0sXG4gICAgfSxcbiAgICB7IGVsZXZhdGlvbiwgaG92ZXJFbGV2YXRpb24gfSxcbiAgICAnaG92ZXJFbGV2YXRpb24nLFxuICAgICdDYXJkJ1xuICApO1xuXG4gIHJldHVybiAoXG4gICAgPEVsZW1lbnRcbiAgICAgIGNsYXNzTmFtZT17Y2xhc3NOYW1lfVxuICAgICAgY3NzPXtjc3Moe1xuICAgICAgICAnOmhvdmVyJzpcbiAgICAgICAgICBob3ZlckVsZXZhdGlvbiAhPT0gdW5kZWZpbmVkXG4gICAgICAgICAgICA/IHtcbiAgICAgICAgICAgICAgICBib3hTaGFkb3c6IGVsZXZhdGlvbk1hcFtob3ZlckVsZXZhdGlvbl0sXG4gICAgICAgICAgICAgICAgdHJhbnNmb3JtOiBgdHJhbnNsYXRlKDAsIC0xcHgpYCxcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgOiB7fSxcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiB0b2tlbnMuY29sb3Iub3BhcXVlLndoaXRlLnZhbHVlLnJnYixcbiAgICAgICAgYm9yZGVyUmFkaXVzOiB0b2tlbnMucmFkaWkuc21hbGwudmFsdWUsXG4gICAgICAgIGJveFNoYWRvdzogZWxldmF0aW9uTWFwW2VsZXZhdGlvbl0sXG4gICAgICAgIHRyYW5zaXRpb246ICdhbGwgMC42cyBjdWJpYy1iZXppZXIoMC4wNzUsIDAuODIsIDAuMTY1LCAxKScsXG4gICAgICB9KX1cbiAgICA+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgPC9FbGVtZW50PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQ2FyZDtcbiJdfQ== */")) | ||
}, "label:Card;" + (process.env.NODE_ENV === "production" ? "" : "/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ICAgICAgIHRyYW5zZm9ybTogYHRyYW5zbGF0ZSgwLCAtMXB4KWAsXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDoge30sXG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogdG9rZW5zLmNvbG9yLm9wYXF1ZS53aGl0ZS52YWx1ZS5yZ2IsXG4gICAgICAgIGJvcmRlclJhZGl1czogdG9rZW5zLnJhZGlpLnNtYWxsLnZhbHVlLFxuICAgICAgICBib3hTaGFkb3c6IGVsZXZhdGlvbk1hcFtlbGV2YXRpb25dLFxuICAgICAgICB0cmFuc2l0aW9uOiAnYWxsIDAuNnMgY3ViaWMtYmV6aWVyKDAuMDc1LCAwLjgyLCAwLjE2NSwgMSknLFxuICAgICAgfSl9XG4gICAgPlxuICAgICAge2NoaWxkcmVufVxuICAgIDwvRWxlbWVudD5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IENhcmQ7XG4iXX0= */")) | ||
}, children); | ||
@@ -55,3 +55,3 @@ }; | ||
as: PropTypes.oneOf(['div', 'section', 'aside']), | ||
children: PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]).isRequired, | ||
children: PropTypes.node.isRequired, | ||
className: PropTypes.string, | ||
@@ -58,0 +58,0 @@ elevation: PropTypes.oneOf([0, 1, 2, 3, 4]), |
@@ -66,3 +66,3 @@ "use strict"; | ||
transition: 'all 0.6s cubic-bezier(0.075, 0.82, 0.165, 1)' | ||
}, "label:Card;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbURXIiwiZmlsZSI6Ii4uL3NyYy9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdG9rZW5zIGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXRva2Vucy9sa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b2tlbnMucmFkaWkuc21hbGwudmFsdWUsXG4gICAgICAgIGJveFNoYWRvdzogZWxldmF0aW9uTWFwW2VsZXZhdGlvbl0sXG4gICAgICAgIHRyYW5zaXRpb246ICdhbGwgMC42cyBjdWJpYy1iZXppZXIoMC4wNzUsIDAuODIsIDAuMTY1LCAxKScsXG4gICAgICB9KX1cbiAgICA+XG4gICAgICB7Y2hpbGRyZW59XG4gICAgPC9FbGVtZW50PlxuICApO1xufTtcblxuZXhwb3J0IGRlZmF1bHQgQ2FyZDtcbiJdfQ== */")) | ||
}, "label:Card;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbURXIiwiZmlsZSI6Ii4uL3NyYy9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgdG9rZW5zIGZyb20gJ0BkYXRhY2FtcC93YWZmbGVzLXRva2Vucy9saWIvZnV0dXJlLXRva2Vucy5qc29uJztcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJztcbmltcG9ydCAqIGFzIFJlYWN0IGZyb20gJ3JlYWN0JztcblxuZXhwb3J0IGNvbnN0IGVsZXZhdGlvbk1hcCA9IHtcbiAgMDogdG9rZW5zLnNoYWRvdy5ib3JkZXIudmFsdWUsXG4gIDE6IHRva2Vucy5zaGFkb3cuc20udmFsdWUsXG4gIDI6IHRva2Vucy5zaGFkb3cubWQudmFsdWUsXG4gIDM6IHRva2Vucy5zaGFkb3cubGcudmFsdWUsXG4gIDQ6IHRva2Vucy5zaGFkb3cueGwudmFsdWUsXG59O1xuXG4vLyBzYW1lIGFzIGtleW9mIHR5cGVvZiBlbGV2YXRpb25NYXAgYnV0IGFibG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aW9uIH0sXG4gICAgJ2hvdmVyRWxldmF0aW9uJyxcbiAgICAnQ2FyZCdcbiAgKTtcblxuICByZXR1cm4gKFxuICAgIDxFbGVtZW50XG4gICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgIGNzcz17Y3NzKHtcbiAgICAgICAgJzpob3Zlcic6XG4gICAgICAgICAgaG92ZXJFbGV2YXRpb24gIT09IHVuZGVmaW5lZFxuICAgICAgICAgICAgPyB7XG4gICAgICAgICAgICAgICAgYm94U2hhZG93OiBlbGV2YXRpb25NYXBbaG92ZXJFbGV2YXRpb25dLFxuICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogYHRyYW5zbGF0ZSgwLCAtMXB4KWAsXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDoge30sXG4gICAgICAgIGJhY2tncm91bmRDb2xvcjogdG9rZW5zLmNvbG9yLm9wYXF1ZS53aGl0ZS52YWx1ZS5yZ2IsXG4gICAgICAgIGJvcmRlclJhZGl1czogdG9rZW5zLnJhZGlpLnNtYWxsLnZhbHVlLFxuICAgICAgICBib3hTaGFkb3c6IGVsZXZhdGlvbk1hcFtlbGV2YXRpb25dLFxuICAgICAgICB0cmFuc2l0aW9uOiAnYWxsIDAuNnMgY3ViaWMtYmV6aWVyKDAuMDc1LCAwLjgyLCAwLjE2NSwgMSknLFxuICAgICAgfSl9XG4gICAgPlxuICAgICAge2NoaWxkcmVufVxuICAgIDwvRWxlbWVudD5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IENhcmQ7XG4iXX0= */")) | ||
}, children); | ||
@@ -73,3 +73,3 @@ }; | ||
as: _propTypes.default.oneOf(['div', 'section', 'aside']), | ||
children: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.arrayOf(_propTypes.default.element)]).isRequired, | ||
children: _propTypes.default.node.isRequired, | ||
className: _propTypes.default.string, | ||
@@ -76,0 +76,0 @@ elevation: _propTypes.default.oneOf([0, 1, 2, 3, 4]), |
{ | ||
"name": "@datacamp/waffles-card", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"main": "lib/index.js", | ||
@@ -29,6 +29,6 @@ "module": "es/index.js", | ||
"devDependencies": { | ||
"@babel/cli": "7.5.5", | ||
"@babel/cli": "7.6.0", | ||
"@babel/core": "7.5.5", | ||
"@datacamp/waffles-axe-render": "^1.1.3", | ||
"@datacamp/waffles-babel-preset": "^1.2.3", | ||
"@datacamp/waffles-babel-preset": "^1.2.4", | ||
"@datacamp/waffles-tsconfig": "^1.1.2", | ||
@@ -56,3 +56,3 @@ "@testing-library/jest-dom": "4.1.0", | ||
}, | ||
"gitHead": "5fa71ba10623705acde9aa69c0351681a0a6c04e" | ||
"gitHead": "98925159cdfb070528f97b3dcbaf8307b161a050" | ||
} |
@@ -12,3 +12,3 @@ import * as React from 'react'; | ||
as?: 'div' | 'section' | 'aside'; | ||
children: React.ReactElement | React.ReactElement[]; | ||
children: React.ReactNode; | ||
className?: string; | ||
@@ -15,0 +15,0 @@ elevation?: elevationKeys; |
Sorry, the diff of this file is not supported yet
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
853775
370