@trafilea/afrodita-components 5.0.0-beta.287 → 5.0.0-beta.288
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.
- package/build/index.esm.js +2 -2
- package/build/index.js +2 -2
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -13201,8 +13201,8 @@ var ButtonSecondaryWrapper = newStyled(ButtonSecondary)(templateObject_19$1 || (
|
|
|
13201
13201
|
var Review$1 = function (_a) {
|
|
13202
13202
|
var reviewId = _a.reviewId, reviewerName = _a.reviewerName, date = _a.date, rating = _a.rating, stars = _a.stars, title = _a.title, description = _a.description, images = _a.images, reviewVariant = _a.reviewVariant, onClickImage = _a.onClickImage, helpfulActionText = _a.helpfulActionText, helpfulAction = _a.helpfulAction, helpfulCount = _a.helpfulCount;
|
|
13203
13203
|
var randomId = Math.random().toString(36).substring(7);
|
|
13204
|
-
var _b = useState(description.length >
|
|
13205
|
-
var _c = useState(description.length >
|
|
13204
|
+
var _b = useState(description.length > REVIEWS_DESCRIPTION_MAX_LENGTH_MOBILE), showMoreMobile = _b[0], setShowMoreMobile = _b[1];
|
|
13205
|
+
var _c = useState(description.length > REVIEWS_DESCRIPTION_MAX_LENGTH_DESKTOP), showMoreDesktop = _c[0], setShowMoreDesktop = _c[1];
|
|
13206
13206
|
useEffect(function () {
|
|
13207
13207
|
var seeMoreElements = document.querySelectorAll("#see-more-".concat(randomId));
|
|
13208
13208
|
var showAllDescription = function () {
|
package/build/index.js
CHANGED
|
@@ -13227,8 +13227,8 @@ var ButtonSecondaryWrapper = newStyled(ButtonSecondary)(templateObject_19$1 || (
|
|
|
13227
13227
|
var Review$1 = function (_a) {
|
|
13228
13228
|
var reviewId = _a.reviewId, reviewerName = _a.reviewerName, date = _a.date, rating = _a.rating, stars = _a.stars, title = _a.title, description = _a.description, images = _a.images, reviewVariant = _a.reviewVariant, onClickImage = _a.onClickImage, helpfulActionText = _a.helpfulActionText, helpfulAction = _a.helpfulAction, helpfulCount = _a.helpfulCount;
|
|
13229
13229
|
var randomId = Math.random().toString(36).substring(7);
|
|
13230
|
-
var _b = React$2.useState(description.length >
|
|
13231
|
-
var _c = React$2.useState(description.length >
|
|
13230
|
+
var _b = React$2.useState(description.length > REVIEWS_DESCRIPTION_MAX_LENGTH_MOBILE), showMoreMobile = _b[0], setShowMoreMobile = _b[1];
|
|
13231
|
+
var _c = React$2.useState(description.length > REVIEWS_DESCRIPTION_MAX_LENGTH_DESKTOP), showMoreDesktop = _c[0], setShowMoreDesktop = _c[1];
|
|
13232
13232
|
React$2.useEffect(function () {
|
|
13233
13233
|
var seeMoreElements = document.querySelectorAll("#see-more-".concat(randomId));
|
|
13234
13234
|
var showAllDescription = function () {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Trafilea's Design System",
|
|
4
4
|
"author": "Trafilea",
|
|
5
5
|
"repository": "https://github.com/trafilea/afrodita-components",
|
|
6
|
-
"version": "5.0.0-beta.
|
|
6
|
+
"version": "5.0.0-beta.288",
|
|
7
7
|
"private": false,
|
|
8
8
|
"main": "build/index.js",
|
|
9
9
|
"style": "build/index.css",
|