pcm-shared-components 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -73,8 +73,12 @@ const useStyles = makeStyles(theme => ({
73
73
  productName: {
74
74
  fontSize: 16,
75
75
  lineHeight: 1,
76
- "-webkit-line-clamp": 1,
77
- WebkitLineClamp: 1,
76
+ "-webkit-line-clamp": ({
77
+ hasFooterSection
78
+ }) => hasFooterSection ? 1 : 2,
79
+ WebkitLineClamp: ({
80
+ hasFooterSection
81
+ }) => hasFooterSection ? 1 : 2,
78
82
  display: '-webkit-box',
79
83
  "-webkit-box-orient": 'vertical',
80
84
  whiteSpace: 'normal',
@@ -158,7 +162,8 @@ export const ProductItemButton = props => {
158
162
  PRODUCT_SMALL_BUTTON_WIDTH,
159
163
  PRODUCT_LARGE_BUTTON_WIDTH,
160
164
  hasImage: productData.picturesFullURL && productData.picturesFullURL.length > 0 ? true : false,
161
- isTierPricing: Number(productData.is_unit_pricing) !== 1 ? true : false
165
+ isTierPricing: Number(productData.is_unit_pricing) !== 1 ? true : false,
166
+ hasFooterSection: FooterSection ? true : false
162
167
  });
163
168
  const compTheme = theme ? theme : useTheme();
164
169
  const defaultTheme = createTheme(compTheme); //---------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {