@gem-sdk/components 2.0.0-staging.159 → 2.0.0-staging.162
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/dist/cjs/product/components/ProductDescription.js +1 -1
- package/dist/cjs/product/components/ProductVariants/variants/index.js +1 -1
- package/dist/cjs/product/components/ProductVariants/variants/index.liquid.js +1 -1
- package/dist/esm/product/components/ProductDescription.js +1 -1
- package/dist/esm/product/components/ProductVariants/variants/index.js +1 -1
- package/dist/esm/product/components/ProductVariants/variants/index.liquid.js +1 -1
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ const ProductDescription = ({ setting, builderProps })=>{
|
|
|
36
36
|
const lineHeight = getLineHeightFromDom();
|
|
37
37
|
const lineText = Math.round((scrollHeight ?? 0) / lineHeight);
|
|
38
38
|
dom.style.maxHeight = getMaxHeight(lineHeight);
|
|
39
|
-
const conditionCheckLine =
|
|
39
|
+
const conditionCheckLine = value && value < lineText || clientHeight < scrollHeight;
|
|
40
40
|
if (value && conditionCheckLine) {
|
|
41
41
|
allowShowViewMore(()=>true);
|
|
42
42
|
} else {
|
|
@@ -81,7 +81,7 @@ const VariantItem = ({ name, variantKey, optionName, optionValue, ...props })=>{
|
|
|
81
81
|
htmlFor: `${props.uid}-${variantKey}`,
|
|
82
82
|
children: [
|
|
83
83
|
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
84
|
-
className: "gp-invisible !gp-max-w-[150px] gp-left-[50%] gp-translate-x-[-50%] gp-translate-y-0 gp-absolute gp-bottom-[calc(100%+20px)] gp-text-[12px] group-hover:gp-visible gp-w-max gp-bg-[#333333] gp-text-[#F9F9F9] gp-px-[8px] gp-py-[4px] gp-rounded-[8px] gp-mb-[-10px] after:gp-content-[''] after:gp-absolute after:gp-p-[7px] after:gp-left-0 after:gp-w-full after:gp-bottom-[-10px]",
|
|
84
|
+
className: "gp-invisible gp-overflow-hidden tablet:gp-overflow-[unset] !gp-max-w-[0px] tablet:!gp-max-w-[150px] gp-left-[50%] gp-translate-x-[-50%] gp-translate-y-0 gp-absolute gp-bottom-[calc(100%+20px)] gp-text-[12px] group-hover:gp-visible gp-w-max gp-bg-[#333333] gp-text-[#F9F9F9] gp-px-[0px] tablet:gp-px-[8px] gp-py-[4px] gp-rounded-[8px] gp-mb-[-10px] after:gp-content-[''] after:gp-absolute after:gp-p-[0px] tablet:after:gp-p-[7px] after:gp-left-0 after:gp-w-full after:gp-bottom-[-10px]",
|
|
85
85
|
children: [
|
|
86
86
|
/*#__PURE__*/ jsxRuntime.jsx("p", {
|
|
87
87
|
className: "gp-text-[#F9F9F9]",
|
|
@@ -120,7 +120,7 @@ const VariantItem = ({ name, variantKey, value, id, activeClass, optionPosition,
|
|
|
120
120
|
for="{{product.id}}-${props.uid}-${variantKey}"
|
|
121
121
|
class="gp-group gp-relative option-item gp-child-item-${props.uid}"
|
|
122
122
|
>
|
|
123
|
-
<div class="gp-invisible !gp-max-w-[150px] gp-left-[50%] gp-translate-x-[-50%] gp-translate-y-0 gp-absolute gp-bottom-[calc(100%+20px)] gp-text-[12px] group-hover:gp-visible gp-w-max gp-bg-[#333333] gp-text-[#F9F9F9] gp-px-[8px] gp-py-[4px] gp-rounded-[8px] gp-mb-[-10px] after:gp-content-[''] after:gp-absolute after:gp-p-[7px] after:gp-left-0 after:gp-w-full after:gp-bottom-[-10px]">
|
|
123
|
+
<div class="gp-invisible gp-overflow-hidden tablet:gp-overflow-[unset] !gp-max-w-[0px] tablet:!gp-max-w-[150px] gp-left-[50%] gp-translate-x-[-50%] gp-translate-y-0 gp-absolute gp-bottom-[calc(100%+20px)] gp-text-[12px] group-hover:gp-visible gp-w-max gp-bg-[#333333] gp-text-[#F9F9F9] gp-px-[0px] tablet:gp-px-[8px] gp-py-[4px] gp-rounded-[8px] gp-mb-[-10px] after:gp-content-[''] after:gp-absolute after:gp-p-[0px] tablet:after:gp-p-[7px] after:gp-left-0 after:gp-w-full after:gp-bottom-[-10px]">
|
|
124
124
|
<p class="gp-text-[#F9F9F9]">${value?.label}</p>
|
|
125
125
|
<svg class="gp-absolute gp-left-[50%] gp-translate-x-[-50%] gp-translate-y-0 gp-z-10 gp-bottom-[-4px]" width="8" height="4" viewBox="0 0 16 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
126
126
|
<path d="M8 10L0 0L16 1.41326e-06L8 10Z" fill="#333333"/>
|
|
@@ -32,7 +32,7 @@ const ProductDescription = ({ setting, builderProps })=>{
|
|
|
32
32
|
const lineHeight = getLineHeightFromDom();
|
|
33
33
|
const lineText = Math.round((scrollHeight ?? 0) / lineHeight);
|
|
34
34
|
dom.style.maxHeight = getMaxHeight(lineHeight);
|
|
35
|
-
const conditionCheckLine =
|
|
35
|
+
const conditionCheckLine = value && value < lineText || clientHeight < scrollHeight;
|
|
36
36
|
if (value && conditionCheckLine) {
|
|
37
37
|
allowShowViewMore(()=>true);
|
|
38
38
|
} else {
|
|
@@ -77,7 +77,7 @@ const VariantItem = ({ name, variantKey, optionName, optionValue, ...props })=>{
|
|
|
77
77
|
htmlFor: `${props.uid}-${variantKey}`,
|
|
78
78
|
children: [
|
|
79
79
|
/*#__PURE__*/ jsxs("div", {
|
|
80
|
-
className: "gp-invisible !gp-max-w-[150px] gp-left-[50%] gp-translate-x-[-50%] gp-translate-y-0 gp-absolute gp-bottom-[calc(100%+20px)] gp-text-[12px] group-hover:gp-visible gp-w-max gp-bg-[#333333] gp-text-[#F9F9F9] gp-px-[8px] gp-py-[4px] gp-rounded-[8px] gp-mb-[-10px] after:gp-content-[''] after:gp-absolute after:gp-p-[7px] after:gp-left-0 after:gp-w-full after:gp-bottom-[-10px]",
|
|
80
|
+
className: "gp-invisible gp-overflow-hidden tablet:gp-overflow-[unset] !gp-max-w-[0px] tablet:!gp-max-w-[150px] gp-left-[50%] gp-translate-x-[-50%] gp-translate-y-0 gp-absolute gp-bottom-[calc(100%+20px)] gp-text-[12px] group-hover:gp-visible gp-w-max gp-bg-[#333333] gp-text-[#F9F9F9] gp-px-[0px] tablet:gp-px-[8px] gp-py-[4px] gp-rounded-[8px] gp-mb-[-10px] after:gp-content-[''] after:gp-absolute after:gp-p-[0px] tablet:after:gp-p-[7px] after:gp-left-0 after:gp-w-full after:gp-bottom-[-10px]",
|
|
81
81
|
children: [
|
|
82
82
|
/*#__PURE__*/ jsx("p", {
|
|
83
83
|
className: "gp-text-[#F9F9F9]",
|
|
@@ -116,7 +116,7 @@ const VariantItem = ({ name, variantKey, value, id, activeClass, optionPosition,
|
|
|
116
116
|
for="{{product.id}}-${props.uid}-${variantKey}"
|
|
117
117
|
class="gp-group gp-relative option-item gp-child-item-${props.uid}"
|
|
118
118
|
>
|
|
119
|
-
<div class="gp-invisible !gp-max-w-[150px] gp-left-[50%] gp-translate-x-[-50%] gp-translate-y-0 gp-absolute gp-bottom-[calc(100%+20px)] gp-text-[12px] group-hover:gp-visible gp-w-max gp-bg-[#333333] gp-text-[#F9F9F9] gp-px-[8px] gp-py-[4px] gp-rounded-[8px] gp-mb-[-10px] after:gp-content-[''] after:gp-absolute after:gp-p-[7px] after:gp-left-0 after:gp-w-full after:gp-bottom-[-10px]">
|
|
119
|
+
<div class="gp-invisible gp-overflow-hidden tablet:gp-overflow-[unset] !gp-max-w-[0px] tablet:!gp-max-w-[150px] gp-left-[50%] gp-translate-x-[-50%] gp-translate-y-0 gp-absolute gp-bottom-[calc(100%+20px)] gp-text-[12px] group-hover:gp-visible gp-w-max gp-bg-[#333333] gp-text-[#F9F9F9] gp-px-[0px] tablet:gp-px-[8px] gp-py-[4px] gp-rounded-[8px] gp-mb-[-10px] after:gp-content-[''] after:gp-absolute after:gp-p-[0px] tablet:after:gp-p-[7px] after:gp-left-0 after:gp-w-full after:gp-bottom-[-10px]">
|
|
120
120
|
<p class="gp-text-[#F9F9F9]">${value?.label}</p>
|
|
121
121
|
<svg class="gp-absolute gp-left-[50%] gp-translate-x-[-50%] gp-translate-y-0 gp-z-10 gp-bottom-[-4px]" width="8" height="4" viewBox="0 0 16 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
122
122
|
<path d="M8 10L0 0L16 1.41326e-06L8 10Z" fill="#333333"/>
|