@gem-sdk/components 2.2.0-staging.37 → 2.2.0-staging.40
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.
|
@@ -129,7 +129,7 @@ const Button = ({ className, onClick, builderProps, builderAttrs, setting = {},
|
|
|
129
129
|
disabled: disabled,
|
|
130
130
|
children: [
|
|
131
131
|
loading ? /*#__PURE__*/ jsxRuntime.jsxs("svg", {
|
|
132
|
-
className: "gp-invisible gp-h-5 gp-w-5 gp-animate-spin group-data-[state=loading]:gp-visible gp-absolute",
|
|
132
|
+
className: "gp-invisible gp-h-5 gp-w-5 gp-animate-spin group-data-[state=loading]/button:gp-visible gp-absolute",
|
|
133
133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
134
134
|
fill: "none",
|
|
135
135
|
viewBox: "0 0 24 24",
|
|
@@ -156,7 +156,7 @@ const Button = ({ className, onClick, builderProps, builderAttrs, setting = {},
|
|
|
156
156
|
children: [
|
|
157
157
|
!!iconSvg && iconVisible && /*#__PURE__*/ jsxRuntime.jsx("span", {
|
|
158
158
|
className: `
|
|
159
|
-
gp-button-icon gp-transition-colors gp-duration-300 gp-z-1 gp-inline-flex gp-shrink-0 gp-items-center gp-justify-center group-data-[state=loading]:gp-invisible [&>svg]:!gp-h-[var(--height-desktop)] [&>svg]:!gp-w-auto tablet:[&>svg]:!gp-h-[var(--height-tablet)] mobile:[&>svg]:!gp-h-[var(--height-mobile)] ${shouldClearSpace && !label ? '!gp-m-0' : ''}`,
|
|
159
|
+
gp-button-icon gp-transition-colors gp-duration-300 gp-z-1 gp-inline-flex gp-shrink-0 gp-items-center gp-justify-center group-data-[state=loading]/button:gp-invisible [&>svg]:!gp-h-[var(--height-desktop)] [&>svg]:!gp-w-auto tablet:[&>svg]:!gp-h-[var(--height-tablet)] mobile:[&>svg]:!gp-h-[var(--height-mobile)] ${shouldClearSpace && !label ? '!gp-m-0' : ''}`,
|
|
160
160
|
style: {
|
|
161
161
|
...iconSpacingStyle,
|
|
162
162
|
'--height-desktop': `${size?.desktop}`,
|
|
@@ -169,7 +169,7 @@ const Button = ({ className, onClick, builderProps, builderAttrs, setting = {},
|
|
|
169
169
|
}),
|
|
170
170
|
(!!label || !shouldClearSpace) && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
171
171
|
"data-gp-text": true,
|
|
172
|
-
className: core.cls(`gp-relative group-hover/button:!gp-text-inherit gp-flex gp-h-full gp-items-center gp-overflow-hidden gp-break-words group-data-[state=loading]:gp-invisible [&_p]:gp-whitespace-pre-line`, styles?.typo?.attrs?.italic ? '[&:not(:has(p))]:gp-pr-[0.2em] [&_p]:[&:has(p)]:gp-pr-[0.2em]' : '', mode === 'edit' && !options?.isCannotEditing ? 'gp-text button-text' : '', nodePrice ? appendTypoClass : {}),
|
|
172
|
+
className: core.cls(`gp-relative group-hover/button:!gp-text-inherit gp-flex gp-h-full gp-items-center gp-overflow-hidden gp-break-words group-data-[state=loading]/button:gp-invisible [&_p]:gp-whitespace-pre-line`, styles?.typo?.attrs?.italic ? '[&:not(:has(p))]:gp-pr-[0.2em] [&_p]:[&:has(p)]:gp-pr-[0.2em]' : '', mode === 'edit' && !options?.isCannotEditing ? 'gp-text button-text' : '', nodePrice ? appendTypoClass : {}),
|
|
173
173
|
style: {
|
|
174
174
|
...core.makeStyle({
|
|
175
175
|
tt: styles?.transform
|
|
@@ -58,8 +58,8 @@ const CollectionPaginator = ({ setting, builderProps, pageContext })=>{
|
|
|
58
58
|
>
|
|
59
59
|
<div class="gf_collection-paginator-wrapper gp-inline-flex gp-flex-wrap">
|
|
60
60
|
{% paginate collection.products by ${limit} %}
|
|
61
|
-
{% assign previousText = ${pageContext?.isPreviewing ? `${previousTextVal}` : previousTextVal} %}
|
|
62
|
-
{% assign nextText = ${pageContext?.isPreviewing ? `${nextTextVal}` : nextTextVal} %}
|
|
61
|
+
{% assign previousText = ${pageContext?.isPreviewing ? `${previousTextVal}` : previousTextVal ?? ''} %}
|
|
62
|
+
{% assign nextText = ${pageContext?.isPreviewing ? `${nextTextVal}` : nextTextVal ?? ''} %}
|
|
63
63
|
{{ paginate | default_pagination: previous: previousText, next: nextText }}
|
|
64
64
|
{% endpaginate %}
|
|
65
65
|
</div>
|
|
@@ -125,7 +125,7 @@ const Button = ({ className, onClick, builderProps, builderAttrs, setting = {},
|
|
|
125
125
|
disabled: disabled,
|
|
126
126
|
children: [
|
|
127
127
|
loading ? /*#__PURE__*/ jsxs("svg", {
|
|
128
|
-
className: "gp-invisible gp-h-5 gp-w-5 gp-animate-spin group-data-[state=loading]:gp-visible gp-absolute",
|
|
128
|
+
className: "gp-invisible gp-h-5 gp-w-5 gp-animate-spin group-data-[state=loading]/button:gp-visible gp-absolute",
|
|
129
129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
130
130
|
fill: "none",
|
|
131
131
|
viewBox: "0 0 24 24",
|
|
@@ -152,7 +152,7 @@ const Button = ({ className, onClick, builderProps, builderAttrs, setting = {},
|
|
|
152
152
|
children: [
|
|
153
153
|
!!iconSvg && iconVisible && /*#__PURE__*/ jsx("span", {
|
|
154
154
|
className: `
|
|
155
|
-
gp-button-icon gp-transition-colors gp-duration-300 gp-z-1 gp-inline-flex gp-shrink-0 gp-items-center gp-justify-center group-data-[state=loading]:gp-invisible [&>svg]:!gp-h-[var(--height-desktop)] [&>svg]:!gp-w-auto tablet:[&>svg]:!gp-h-[var(--height-tablet)] mobile:[&>svg]:!gp-h-[var(--height-mobile)] ${shouldClearSpace && !label ? '!gp-m-0' : ''}`,
|
|
155
|
+
gp-button-icon gp-transition-colors gp-duration-300 gp-z-1 gp-inline-flex gp-shrink-0 gp-items-center gp-justify-center group-data-[state=loading]/button:gp-invisible [&>svg]:!gp-h-[var(--height-desktop)] [&>svg]:!gp-w-auto tablet:[&>svg]:!gp-h-[var(--height-tablet)] mobile:[&>svg]:!gp-h-[var(--height-mobile)] ${shouldClearSpace && !label ? '!gp-m-0' : ''}`,
|
|
156
156
|
style: {
|
|
157
157
|
...iconSpacingStyle,
|
|
158
158
|
'--height-desktop': `${size?.desktop}`,
|
|
@@ -165,7 +165,7 @@ const Button = ({ className, onClick, builderProps, builderAttrs, setting = {},
|
|
|
165
165
|
}),
|
|
166
166
|
(!!label || !shouldClearSpace) && /*#__PURE__*/ jsx("div", {
|
|
167
167
|
"data-gp-text": true,
|
|
168
|
-
className: cls(`gp-relative group-hover/button:!gp-text-inherit gp-flex gp-h-full gp-items-center gp-overflow-hidden gp-break-words group-data-[state=loading]:gp-invisible [&_p]:gp-whitespace-pre-line`, styles?.typo?.attrs?.italic ? '[&:not(:has(p))]:gp-pr-[0.2em] [&_p]:[&:has(p)]:gp-pr-[0.2em]' : '', mode === 'edit' && !options?.isCannotEditing ? 'gp-text button-text' : '', nodePrice ? appendTypoClass : {}),
|
|
168
|
+
className: cls(`gp-relative group-hover/button:!gp-text-inherit gp-flex gp-h-full gp-items-center gp-overflow-hidden gp-break-words group-data-[state=loading]/button:gp-invisible [&_p]:gp-whitespace-pre-line`, styles?.typo?.attrs?.italic ? '[&:not(:has(p))]:gp-pr-[0.2em] [&_p]:[&:has(p)]:gp-pr-[0.2em]' : '', mode === 'edit' && !options?.isCannotEditing ? 'gp-text button-text' : '', nodePrice ? appendTypoClass : {}),
|
|
169
169
|
style: {
|
|
170
170
|
...makeStyle({
|
|
171
171
|
tt: styles?.transform
|
|
@@ -54,8 +54,8 @@ const CollectionPaginator = ({ setting, builderProps, pageContext })=>{
|
|
|
54
54
|
>
|
|
55
55
|
<div class="gf_collection-paginator-wrapper gp-inline-flex gp-flex-wrap">
|
|
56
56
|
{% paginate collection.products by ${limit} %}
|
|
57
|
-
{% assign previousText = ${pageContext?.isPreviewing ? `${previousTextVal}` : previousTextVal} %}
|
|
58
|
-
{% assign nextText = ${pageContext?.isPreviewing ? `${nextTextVal}` : nextTextVal} %}
|
|
57
|
+
{% assign previousText = ${pageContext?.isPreviewing ? `${previousTextVal}` : previousTextVal ?? ''} %}
|
|
58
|
+
{% assign nextText = ${pageContext?.isPreviewing ? `${nextTextVal}` : nextTextVal ?? ''} %}
|
|
59
59
|
{{ paginate | default_pagination: previous: previousText, next: nextText }}
|
|
60
60
|
{% endpaginate %}
|
|
61
61
|
</div>
|