@gem-sdk/components 2.0.0-dev.628 → 2.0.0-dev.629
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/button/components/Button.liquid.js +2 -2
- package/dist/cjs/countdown-timer/setting/configs/settings.js +3 -3
- package/dist/cjs/countdown-timer/setting/configs/uiV2.js +3 -1
- package/dist/cjs/product/setting/product-button/configs/uiV2.js +1 -0
- package/dist/esm/button/components/Button.liquid.js +2 -2
- package/dist/esm/countdown-timer/setting/configs/settings.js +3 -3
- package/dist/esm/countdown-timer/setting/configs/uiV2.js +3 -1
- package/dist/esm/product/setting/product-button/configs/uiV2.js +1 -0
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ var helpers = require('./common/helpers.js');
|
|
|
16
16
|
|
|
17
17
|
const Button = (props)=>{
|
|
18
18
|
const { advanced, className, nodePrice, customAttrs, styles: styles$1 = {}, setting = {}, builderProps, wrapClassName = '' } = props;
|
|
19
|
-
const { iconSvg,
|
|
19
|
+
const { iconSvg, btnLink, htmlType, disabled, enableBtnLink, shouldClearSpace, disabledLoading = true } = setting;
|
|
20
20
|
const { enableTextStyle = true } = styles$1;
|
|
21
21
|
const { customCss, wrapStyle, restStyle, dataState, dataIdAttr, isShowIcon, isScrollToElement, getArialLabel, getLabelToDisplay, checkIsShowLabel, checkIsEditableLabel } = data.getData(props);
|
|
22
22
|
const { HTMLTag: ButtonWrapper, urlData, shouldRenderLink } = helpers.getInsertLinkData({
|
|
@@ -103,7 +103,7 @@ const Button = (props)=>{
|
|
|
103
103
|
style="${buttonStyles}"
|
|
104
104
|
class="${buttonClasses}"
|
|
105
105
|
>
|
|
106
|
-
${system.If(
|
|
106
|
+
${system.If(!disabledLoading, ButtonLoadingIndicator_liquid.default(), '')}
|
|
107
107
|
<div class="${buttonContentWrapperClasses}">
|
|
108
108
|
${system.If(isShowIcon, ButtonIcon_liquid.default({
|
|
109
109
|
iconSvg: iconSvg ?? '',
|
|
@@ -22,15 +22,15 @@ const CountdownSettings = [
|
|
|
22
22
|
default: 'evergreen',
|
|
23
23
|
options: [
|
|
24
24
|
{
|
|
25
|
-
label: '
|
|
25
|
+
label: 'End at',
|
|
26
26
|
value: 'standard'
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
label: '
|
|
29
|
+
label: 'Auto-renew',
|
|
30
30
|
value: 'daily'
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
label: '
|
|
33
|
+
label: 'Manual',
|
|
34
34
|
value: 'evergreen'
|
|
35
35
|
}
|
|
36
36
|
]
|
|
@@ -8,7 +8,7 @@ const SettingUIV2 = [
|
|
|
8
8
|
controls: [
|
|
9
9
|
{
|
|
10
10
|
label: {
|
|
11
|
-
en: '
|
|
11
|
+
en: 'Type'
|
|
12
12
|
},
|
|
13
13
|
setting: {
|
|
14
14
|
id: 'behaviour'
|
|
@@ -254,6 +254,7 @@ const SettingUIV2 = [
|
|
|
254
254
|
iconName: 'polaris-text-title',
|
|
255
255
|
getValueFromSettingID: 'numTypo.type',
|
|
256
256
|
isHideClear: true,
|
|
257
|
+
isTypoValue: true,
|
|
257
258
|
controls: [
|
|
258
259
|
{
|
|
259
260
|
setting: {
|
|
@@ -291,6 +292,7 @@ const SettingUIV2 = [
|
|
|
291
292
|
iconName: 'polaris-text-title',
|
|
292
293
|
isHideClear: true,
|
|
293
294
|
getValueFromSettingID: 'labelTypo.type',
|
|
295
|
+
isTypoValue: true,
|
|
294
296
|
controls: [
|
|
295
297
|
{
|
|
296
298
|
setting: {
|
|
@@ -12,7 +12,7 @@ import { getInsertLinkData } from './common/helpers.js';
|
|
|
12
12
|
|
|
13
13
|
const Button = (props)=>{
|
|
14
14
|
const { advanced, className, nodePrice, customAttrs, styles = {}, setting = {}, builderProps, wrapClassName = '' } = props;
|
|
15
|
-
const { iconSvg,
|
|
15
|
+
const { iconSvg, btnLink, htmlType, disabled, enableBtnLink, shouldClearSpace, disabledLoading = true } = setting;
|
|
16
16
|
const { enableTextStyle = true } = styles;
|
|
17
17
|
const { customCss, wrapStyle, restStyle, dataState, dataIdAttr, isShowIcon, isScrollToElement, getArialLabel, getLabelToDisplay, checkIsShowLabel, checkIsEditableLabel } = getData(props);
|
|
18
18
|
const { HTMLTag: ButtonWrapper, urlData, shouldRenderLink } = getInsertLinkData({
|
|
@@ -99,7 +99,7 @@ const Button = (props)=>{
|
|
|
99
99
|
style="${buttonStyles}"
|
|
100
100
|
class="${buttonClasses}"
|
|
101
101
|
>
|
|
102
|
-
${If(
|
|
102
|
+
${If(!disabledLoading, ButtonLoadingIndicator(), '')}
|
|
103
103
|
<div class="${buttonContentWrapperClasses}">
|
|
104
104
|
${If(isShowIcon, ButtonIcon({
|
|
105
105
|
iconSvg: iconSvg ?? '',
|
|
@@ -20,15 +20,15 @@ const CountdownSettings = [
|
|
|
20
20
|
default: 'evergreen',
|
|
21
21
|
options: [
|
|
22
22
|
{
|
|
23
|
-
label: '
|
|
23
|
+
label: 'End at',
|
|
24
24
|
value: 'standard'
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
label: '
|
|
27
|
+
label: 'Auto-renew',
|
|
28
28
|
value: 'daily'
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
label: '
|
|
31
|
+
label: 'Manual',
|
|
32
32
|
value: 'evergreen'
|
|
33
33
|
}
|
|
34
34
|
]
|
|
@@ -6,7 +6,7 @@ const SettingUIV2 = [
|
|
|
6
6
|
controls: [
|
|
7
7
|
{
|
|
8
8
|
label: {
|
|
9
|
-
en: '
|
|
9
|
+
en: 'Type'
|
|
10
10
|
},
|
|
11
11
|
setting: {
|
|
12
12
|
id: 'behaviour'
|
|
@@ -252,6 +252,7 @@ const SettingUIV2 = [
|
|
|
252
252
|
iconName: 'polaris-text-title',
|
|
253
253
|
getValueFromSettingID: 'numTypo.type',
|
|
254
254
|
isHideClear: true,
|
|
255
|
+
isTypoValue: true,
|
|
255
256
|
controls: [
|
|
256
257
|
{
|
|
257
258
|
setting: {
|
|
@@ -289,6 +290,7 @@ const SettingUIV2 = [
|
|
|
289
290
|
iconName: 'polaris-text-title',
|
|
290
291
|
isHideClear: true,
|
|
291
292
|
getValueFromSettingID: 'labelTypo.type',
|
|
293
|
+
isTypoValue: true,
|
|
292
294
|
controls: [
|
|
293
295
|
{
|
|
294
296
|
setting: {
|