@tds/community-testimonial
Advanced tools
Comparing version 1.0.5 to 2.0.0
@@ -6,2 +6,23 @@ # Change Log | ||
# [2.0.0](https://github.com/telus/tds-community/compare/@tds/community-testimonial@1.0.5...@tds/community-testimonial@2.0.0) (2019-05-22) | ||
### Bug Fixes | ||
* **community-testimonial:** changes paragraph size on body text ([9c9ecb8](https://github.com/telus/tds-community/commit/9c9ecb8)) | ||
### Features | ||
* **community-testimonial:** remove card from community-testimonial ([48158ca](https://github.com/telus/tds-community/commit/48158ca)), closes [#192](https://github.com/telus/tds-community/issues/192) | ||
### BREAKING CHANGES | ||
* **community-testimonial:** removes card from community-testimonial component | ||
## [1.0.5](https://github.com/telus/tds-community/compare/@tds/community-testimonial@1.0.4...@tds/community-testimonial@1.0.5) (2019-05-17) | ||
@@ -8,0 +29,0 @@ |
@@ -10,6 +10,23 @@ 'use strict'; | ||
var Box = _interopDefault(require('@tds/core-box')); | ||
var Card = _interopDefault(require('@tds/core-card')); | ||
var Paragraph = _interopDefault(require('@tds/core-paragraph')); | ||
var utilPropTypes = require('@tds/util-prop-types'); | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
@@ -73,5 +90,7 @@ if (source == null) return {}; | ||
return React.createElement(Card, safeRest(rest), React.createElement(Box, { | ||
return React.createElement(Box, _extends({}, safeRest(rest), { | ||
between: 3 | ||
}, React.createElement(Paragraph, null, testimonial), React.createElement("div", { | ||
}), React.createElement(Paragraph, { | ||
size: "large" | ||
}, testimonial), React.createElement("div", { | ||
className: styles.imageAndQuote | ||
@@ -82,3 +101,3 @@ }, image && React.createElement("div", { | ||
bold: true | ||
}, title), React.createElement(Paragraph, null, additionalInfo))))); | ||
}, title), React.createElement(Paragraph, null, additionalInfo)))); | ||
}; | ||
@@ -85,0 +104,0 @@ |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import Box from '@tds/core-box'; | ||
import Card from '@tds/core-card'; | ||
import Paragraph from '@tds/core-paragraph'; | ||
import { componentWithName } from '@tds/util-prop-types'; | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
function _objectWithoutPropertiesLoose(source, excluded) { | ||
@@ -66,5 +83,7 @@ if (source == null) return {}; | ||
return React.createElement(Card, safeRest(rest), React.createElement(Box, { | ||
return React.createElement(Box, _extends({}, safeRest(rest), { | ||
between: 3 | ||
}, React.createElement(Paragraph, null, testimonial), React.createElement("div", { | ||
}), React.createElement(Paragraph, { | ||
size: "large" | ||
}, testimonial), React.createElement("div", { | ||
className: styles.imageAndQuote | ||
@@ -75,3 +94,3 @@ }, image && React.createElement("div", { | ||
bold: true | ||
}, title), React.createElement(Paragraph, null, additionalInfo))))); | ||
}, title), React.createElement(Paragraph, null, additionalInfo)))); | ||
}; | ||
@@ -78,0 +97,0 @@ |
{ | ||
"name": "@tds/community-testimonial", | ||
"version": "1.0.5", | ||
"version": "2.0.0", | ||
"description": "", | ||
@@ -29,4 +29,3 @@ "main": "index.cjs.js", | ||
"@tds/core-box": "^1.0.1", | ||
"@tds/core-card": "^1.0.2", | ||
"@tds/core-paragraph": "^1.0.4", | ||
"@tds/core-paragraph": "^1.0.11", | ||
"@tds/core-responsive": "^1.1.0", | ||
@@ -39,3 +38,3 @@ "@tds/util-prop-types": "^1.3.2", | ||
}, | ||
"gitHead": "c0030b2b5caeefe0eb30dd15d93fc50a1eda8289" | ||
"gitHead": "4f3bb941d2ba61ac4533bf236043c54ea02b1bc9" | ||
} |
@@ -5,3 +5,2 @@ import React from 'react' | ||
import Box from '@tds/core-box' | ||
import Card from '@tds/core-card' | ||
import Paragraph from '@tds/core-paragraph' | ||
@@ -19,14 +18,12 @@ import safeRest from '@tds/shared-safe-rest' | ||
return ( | ||
<Card {...safeRest(rest)}> | ||
<Box between={3}> | ||
<Paragraph>{testimonial}</Paragraph> | ||
<div className={styles.imageAndQuote}> | ||
{image && <div className={styles.image}>{image}</div>} | ||
<div> | ||
<Paragraph bold>{title}</Paragraph> | ||
<Paragraph>{additionalInfo}</Paragraph> | ||
</div> | ||
<Box {...safeRest(rest)} between={3}> | ||
<Paragraph size="large">{testimonial}</Paragraph> | ||
<div className={styles.imageAndQuote}> | ||
{image && <div className={styles.image}>{image}</div>} | ||
<div> | ||
<Paragraph bold>{title}</Paragraph> | ||
<Paragraph>{additionalInfo}</Paragraph> | ||
</div> | ||
</Box> | ||
</Card> | ||
</div> | ||
</Box> | ||
) | ||
@@ -33,0 +30,0 @@ } |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
17537
7
314
0
- Removed@tds/core-card@^1.0.2
- Removed@tds/core-card@1.0.11(transitive)
Updated@tds/core-paragraph@^1.0.11