@gem-sdk/components 2.0.0-dev.250 → 2.0.0-dev.253

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.
Files changed (30) hide show
  1. package/dist/cjs/post-purchase/advanced-list/types/index.js +15 -10
  2. package/dist/cjs/post-purchase/button/setting/configs/settings.js +7 -20
  3. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-box/setting.js +12 -22
  4. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +16 -25
  5. package/dist/cjs/post-purchase/link/components/PostPurchaseLink.js +1 -1
  6. package/dist/cjs/post-purchase/link/components/common/common.js +1 -1
  7. package/dist/cjs/post-purchase/link/components/common/getClasses.js +2 -2
  8. package/dist/cjs/post-purchase/link/setting/configs/settings.js +6 -11
  9. package/dist/cjs/post-purchase/link/setting/configs/uiV2.js +3 -2
  10. package/dist/cjs/post-purchase/product/settings/accept-button/configs/settings.js +7 -20
  11. package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +7 -20
  12. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +9 -21
  13. package/dist/cjs/post-purchase/text/settings/text/settingV2.js +8 -4
  14. package/dist/cjs/post-purchase/text/settings/text/uiV2.js +1 -1
  15. package/dist/esm/post-purchase/advanced-list/types/index.js +15 -10
  16. package/dist/esm/post-purchase/button/setting/configs/settings.js +7 -20
  17. package/dist/esm/post-purchase/callout-banner/setting/config/callout-box/setting.js +12 -22
  18. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +16 -25
  19. package/dist/esm/post-purchase/link/components/PostPurchaseLink.js +1 -1
  20. package/dist/esm/post-purchase/link/components/common/common.js +1 -1
  21. package/dist/esm/post-purchase/link/components/common/getClasses.js +2 -2
  22. package/dist/esm/post-purchase/link/setting/configs/settings.js +6 -11
  23. package/dist/esm/post-purchase/link/setting/configs/uiV2.js +3 -2
  24. package/dist/esm/post-purchase/product/settings/accept-button/configs/settings.js +7 -20
  25. package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +7 -20
  26. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +9 -21
  27. package/dist/esm/post-purchase/text/settings/text/settingV2.js +8 -4
  28. package/dist/esm/post-purchase/text/settings/text/uiV2.js +1 -1
  29. package/dist/types/index.d.ts +1 -4
  30. package/package.json +2 -2
@@ -3,28 +3,33 @@
3
3
  const postPurchaseSpacingV2 = [
4
4
  {
5
5
  label: 'XSmall',
6
- title: '5px',
7
- value: 'xtight'
6
+ displayValue: '5px',
7
+ value: 'xtight',
8
+ showValue: true
8
9
  },
9
10
  {
10
11
  label: 'Small',
11
- title: '9px',
12
- value: 'tight'
12
+ displayValue: '9px',
13
+ value: 'tight',
14
+ showValue: true
13
15
  },
14
16
  {
15
17
  label: 'Medium',
16
- title: '14px',
17
- value: 'medium'
18
+ displayValue: '14px',
19
+ value: 'medium',
20
+ showValue: true
18
21
  },
19
22
  {
20
23
  label: 'Large',
21
- title: '21px',
22
- value: 'large'
24
+ displayValue: '21px',
25
+ value: 'large',
26
+ showValue: true
23
27
  },
24
28
  {
25
29
  label: 'XLarge',
26
- title: '38px',
27
- value: 'xlarge'
30
+ displayValue: '38px',
31
+ value: 'xlarge',
32
+ showValue: true
28
33
  }
29
34
  ];
30
35
  const postPurchaseSpacingValueV2 = {
@@ -91,38 +91,25 @@ const DeclineButtonSettings = [
91
91
  label: 'Left',
92
92
  value: 'start',
93
93
  type: 'align',
94
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
95
- <path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
96
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
97
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
98
- </svg>
99
- `,
100
- tooltip: 'Align left'
94
+ tooltip: 'Align left',
95
+ iconName: 'gp-align-left'
101
96
  },
102
97
  {
103
98
  label: 'Center',
104
99
  value: 'center',
105
100
  type: 'align',
106
- icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
107
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.25C10.3452 1.25 10.625 1.52982 10.625 1.875V4.375H13.125C14.1605 4.375 15 5.21447 15 6.25V7.5C15 8.53553 14.1605 9.375 13.125 9.375H10.625V10.625H15C16.0355 10.625 16.875 11.4645 16.875 12.5V13.75C16.875 14.7855 16.0355 15.625 15 15.625H10.625V18.125C10.625 18.4702 10.3452 18.75 10 18.75C9.65482 18.75 9.375 18.4702 9.375 18.125V15.625H5C3.96447 15.625 3.125 14.7855 3.125 13.75V12.5C3.125 11.4645 3.96447 10.625 5 10.625H9.375V9.375H6.875C5.83947 9.375 5 8.53553 5 7.5V6.25C5 5.21447 5.83947 4.375 6.875 4.375H9.375V1.875C9.375 1.52982 9.65482 1.25 10 1.25ZM15 14.375C15.3452 14.375 15.625 14.0952 15.625 13.75V12.5C15.625 12.1548 15.3452 11.875 15 11.875H5C4.65482 11.875 4.375 12.1548 4.375 12.5V13.75C4.375 14.0952 4.65482 14.375 5 14.375H15ZM13.125 8.125H6.875C6.52982 8.125 6.25 7.84518 6.25 7.5V6.25C6.25 5.90482 6.52982 5.625 6.875 5.625H13.125C13.4702 5.625 13.75 5.90482 13.75 6.25V7.5C13.75 7.84518 13.4702 8.125 13.125 8.125Z" fill="currentColor"/>
108
- </svg>
109
- `,
110
- tooltip: 'Align center'
101
+ tooltip: 'Align center',
102
+ iconName: 'gp-align-center'
111
103
  },
112
104
  {
113
105
  label: 'Right',
114
106
  value: 'end',
115
107
  type: 'align',
116
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
117
- <path d="M17.5208 18.75C17.866 18.75 18.1458 18.4702 18.1458 18.125V1.875C18.1458 1.52982 17.866 1.25 17.5208 1.25C17.1757 1.25 16.8958 1.52982 16.8958 1.875V18.125C16.8958 18.4702 17.1757 18.75 17.5208 18.75Z" fill="currentColor"/>
118
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.27083 7.5C6.27083 8.53553 7.11029 9.375 8.14583 9.375H14.3958C15.4314 9.375 16.2708 8.53553 16.2708 7.5V6.25C16.2708 5.21447 15.4314 4.375 14.3958 4.375H8.14583C7.11029 4.375 6.27083 5.21447 6.27083 6.25V7.5ZM8.14583 8.125C7.80065 8.125 7.52083 7.84518 7.52083 7.5V6.25C7.52083 5.90482 7.80065 5.625 8.14583 5.625H14.3958C14.741 5.625 15.0208 5.90482 15.0208 6.25V7.5C15.0208 7.84518 14.741 8.125 14.3958 8.125H8.14583Z" fill="currentColor"/>
119
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.39583 15.625C3.36029 15.625 2.52083 14.7855 2.52083 13.75V12.5C2.52083 11.4645 3.36029 10.625 4.39583 10.625H14.3958C15.4314 10.625 16.2708 11.4645 16.2708 12.5V13.75C16.2708 14.7855 15.4314 15.625 14.3958 15.625H4.39583ZM3.77083 13.75C3.77083 14.0952 4.05065 14.375 4.39583 14.375H14.3958C14.741 14.375 15.0208 14.0952 15.0208 13.75V12.5C15.0208 12.1548 14.741 11.875 14.3958 11.875H4.39583C4.05065 11.875 3.77083 12.1548 3.77083 12.5V13.75Z" fill="currentColor"/>
120
- </svg>
121
- `,
122
- tooltip: 'Align right'
108
+ tooltip: 'Align right',
109
+ iconName: 'gp-align-right'
123
110
  }
124
111
  ],
125
- default: 'center'
112
+ default: 'start'
126
113
  },
127
114
  {
128
115
  id: 'direction',
@@ -20,38 +20,28 @@ const CalloutBoxSettings = [
20
20
  },
21
21
  {
22
22
  id: 'horizontalAlign',
23
- type: 'segment',
23
+ type: 'option:value',
24
24
  options: [
25
25
  {
26
- label: 'Start',
26
+ label: 'Left',
27
27
  value: 'start',
28
- icon: `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
29
- <path d="M1.91699 1C2.19314 1 2.41699 1.22386 2.41699 1.5L2.41699 14.5C2.41699 14.7761 2.19313 15 1.91699 15C1.64085 15 1.41699 14.7761 1.41699 14.5V1.5C1.41699 1.22386 1.64085 1 1.91699 1Z" fill="currentColor"/>
30
- <path fill-rule="evenodd" clip-rule="evenodd" d="M2.91699 5C2.91699 4.17157 3.58857 3.5 4.41699 3.5H9.41699C10.2454 3.5 10.917 4.17157 10.917 5V6C10.917 6.82843 10.2454 7.5 9.41699 7.5H4.41699C3.58857 7.5 2.91699 6.82843 2.91699 6V5ZM4.41699 4.5C4.14085 4.5 3.91699 4.72386 3.91699 5V6C3.91699 6.27614 4.14085 6.5 4.41699 6.5H9.41699C9.69314 6.5 9.91699 6.27614 9.91699 6V5C9.91699 4.72386 9.69314 4.5 9.41699 4.5H4.41699Z" fill="currentColor"/>
31
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.41699 8.5C3.58857 8.5 2.91699 9.17157 2.91699 10V11C2.91699 11.8284 3.58857 12.5 4.41699 12.5H12.417C13.2454 12.5 13.917 11.8284 13.917 11V10C13.917 9.17157 13.2454 8.5 12.417 8.5H4.41699ZM3.91699 10C3.91699 9.72386 4.14085 9.5 4.41699 9.5H12.417C12.6931 9.5 12.917 9.72386 12.917 10V11C12.917 11.2761 12.6931 11.5 12.417 11.5H4.41699C4.14085 11.5 3.91699 11.2761 3.91699 11V10Z" fill="currentColor"/>
32
- </svg>
33
- `,
34
- tooltip: 'Start'
28
+ type: 'align',
29
+ tooltip: 'Align left',
30
+ iconName: 'gp-align-left'
35
31
  },
36
32
  {
37
33
  label: 'Center',
38
34
  value: 'center',
39
- icon: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
40
- <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8.27614 1 8.5 1.22386 8.5 1.5V3.5H10.5C11.3284 3.5 12 4.17157 12 5V6C12 6.82843 11.3284 7.5 10.5 7.5H8.5V8.5H12C12.8284 8.5 13.5 9.17157 13.5 10V11C13.5 11.8284 12.8284 12.5 12 12.5H8.5V14.5C8.5 14.7761 8.27614 15 8 15C7.72386 15 7.5 14.7761 7.5 14.5V12.5H4C3.17157 12.5 2.5 11.8284 2.5 11V10C2.5 9.17157 3.17157 8.5 4 8.5H7.5V7.5H5.5C4.67157 7.5 4 6.82843 4 6V5C4 4.17157 4.67157 3.5 5.5 3.5H7.5V1.5C7.5 1.22386 7.72386 1 8 1ZM12 11.5C12.2761 11.5 12.5 11.2761 12.5 11V10C12.5 9.72386 12.2761 9.5 12 9.5H4C3.72386 9.5 3.5 9.72386 3.5 10V11C3.5 11.2761 3.72386 11.5 4 11.5H12ZM10.5 6.5H5.5C5.22386 6.5 5 6.27614 5 6V5C5 4.72386 5.22386 4.5 5.5 4.5H10.5C10.7761 4.5 11 4.72386 11 5V6C11 6.27614 10.7761 6.5 10.5 6.5Z" fill="currentColor"/>
41
- </svg>
42
- `,
43
- tooltip: 'Center'
35
+ type: 'align',
36
+ tooltip: 'Align center',
37
+ iconName: 'gp-align-center'
44
38
  },
45
39
  {
46
- label: 'End',
40
+ label: 'Right',
47
41
  value: 'end',
48
- icon: `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
49
- <path d="M14.084 15C14.3601 15 14.584 14.7761 14.584 14.5L14.584 1.5C14.584 1.22386 14.3601 1 14.084 1C13.8078 1 13.584 1.22386 13.584 1.5L13.584 14.5C13.584 14.7761 13.8078 15 14.084 15Z" fill="currentColor"/>
50
- <path fill-rule="evenodd" clip-rule="evenodd" d="M5.08398 6C5.08398 6.82843 5.75556 7.5 6.58398 7.5H11.584C12.4124 7.5 13.084 6.82843 13.084 6V5C13.084 4.17157 12.4124 3.5 11.584 3.5L6.58398 3.5C5.75556 3.5 5.08398 4.17157 5.08398 5V6ZM6.58398 6.5C6.30784 6.5 6.08398 6.27614 6.08398 6V5C6.08398 4.72386 6.30784 4.5 6.58398 4.5L11.584 4.5C11.8601 4.5 12.084 4.72386 12.084 5V6C12.084 6.27614 11.8601 6.5 11.584 6.5H6.58398Z" fill="currentColor"/>
51
- <path fill-rule="evenodd" clip-rule="evenodd" d="M3.58398 12.5C2.75556 12.5 2.08398 11.8284 2.08398 11L2.08398 10C2.08398 9.17157 2.75556 8.5 3.58398 8.5H11.584C12.4124 8.5 13.084 9.17157 13.084 10V11C13.084 11.8284 12.4124 12.5 11.584 12.5L3.58398 12.5ZM3.08398 11C3.08398 11.2761 3.30784 11.5 3.58398 11.5L11.584 11.5C11.8601 11.5 12.084 11.2761 12.084 11V10C12.084 9.72386 11.8601 9.5 11.584 9.5L3.58398 9.5C3.30784 9.5 3.08398 9.72386 3.08398 10L3.08398 11Z" fill="currentColor"/>
52
- </svg>
53
- `,
54
- tooltip: 'End'
42
+ type: 'align',
43
+ tooltip: 'Align right',
44
+ iconName: 'gp-align-right'
55
45
  }
56
46
  ],
57
47
  devices: {
@@ -60,31 +60,35 @@ const CalloutTextSettings = [
60
60
  {
61
61
  id: 'textAlign',
62
62
  label: 'Alignment',
63
- type: 'segment',
63
+ type: 'option:value',
64
64
  options: [
65
65
  {
66
66
  label: 'Left',
67
67
  value: 'left',
68
68
  type: 'text',
69
- tooltip: 'Align left'
69
+ tooltip: 'Align left',
70
+ iconName: 'polaris-text-align-left'
70
71
  },
71
72
  {
72
73
  label: 'Center',
73
74
  value: 'center',
74
75
  type: 'text',
75
- tooltip: 'Align center'
76
+ tooltip: 'Align center',
77
+ iconName: 'polaris-text-align-center'
76
78
  },
77
79
  {
78
80
  label: 'Right',
79
81
  value: 'right',
80
82
  type: 'text',
81
- tooltip: 'Align right'
83
+ tooltip: 'Align right',
84
+ iconName: 'polaris-text-align-right'
82
85
  },
83
86
  {
84
87
  label: 'Justify',
85
88
  value: 'justify',
86
89
  type: 'text',
87
- tooltip: 'Align justify'
90
+ tooltip: 'Align justify',
91
+ iconName: 'gp-text-align-justify'
88
92
  }
89
93
  ],
90
94
  default: 'left'
@@ -147,41 +151,28 @@ const CalloutTextSettings = [
147
151
  {
148
152
  id: 'align',
149
153
  label: 'Alignment',
150
- type: 'segment',
154
+ type: 'option:value',
151
155
  options: [
152
156
  {
153
157
  label: 'Left',
154
158
  value: 'left',
155
159
  type: 'align',
156
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
157
- <path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
158
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
159
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
160
- </svg>
161
- `,
162
- tooltip: 'Align left'
160
+ tooltip: 'Align left',
161
+ iconName: 'gp-align-left'
163
162
  },
164
163
  {
165
164
  label: 'Center',
166
165
  value: 'center',
167
166
  type: 'align',
168
- icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
169
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.25C10.3452 1.25 10.625 1.52982 10.625 1.875V4.375H13.125C14.1605 4.375 15 5.21447 15 6.25V7.5C15 8.53553 14.1605 9.375 13.125 9.375H10.625V10.625H15C16.0355 10.625 16.875 11.4645 16.875 12.5V13.75C16.875 14.7855 16.0355 15.625 15 15.625H10.625V18.125C10.625 18.4702 10.3452 18.75 10 18.75C9.65482 18.75 9.375 18.4702 9.375 18.125V15.625H5C3.96447 15.625 3.125 14.7855 3.125 13.75V12.5C3.125 11.4645 3.96447 10.625 5 10.625H9.375V9.375H6.875C5.83947 9.375 5 8.53553 5 7.5V6.25C5 5.21447 5.83947 4.375 6.875 4.375H9.375V1.875C9.375 1.52982 9.65482 1.25 10 1.25ZM15 14.375C15.3452 14.375 15.625 14.0952 15.625 13.75V12.5C15.625 12.1548 15.3452 11.875 15 11.875H5C4.65482 11.875 4.375 12.1548 4.375 12.5V13.75C4.375 14.0952 4.65482 14.375 5 14.375H15ZM13.125 8.125H6.875C6.52982 8.125 6.25 7.84518 6.25 7.5V6.25C6.25 5.90482 6.52982 5.625 6.875 5.625H13.125C13.4702 5.625 13.75 5.90482 13.75 6.25V7.5C13.75 7.84518 13.4702 8.125 13.125 8.125Z" fill="currentColor"/>
170
- </svg>
171
- `,
172
- tooltip: 'Align center'
167
+ tooltip: 'Align center',
168
+ iconName: 'gp-align-center'
173
169
  },
174
170
  {
175
171
  label: 'Right',
176
172
  value: 'right',
177
173
  type: 'align',
178
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
179
- <path d="M17.5208 18.75C17.866 18.75 18.1458 18.4702 18.1458 18.125V1.875C18.1458 1.52982 17.866 1.25 17.5208 1.25C17.1757 1.25 16.8958 1.52982 16.8958 1.875V18.125C16.8958 18.4702 17.1757 18.75 17.5208 18.75Z" fill="currentColor"/>
180
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.27083 7.5C6.27083 8.53553 7.11029 9.375 8.14583 9.375H14.3958C15.4314 9.375 16.2708 8.53553 16.2708 7.5V6.25C16.2708 5.21447 15.4314 4.375 14.3958 4.375H8.14583C7.11029 4.375 6.27083 5.21447 6.27083 6.25V7.5ZM8.14583 8.125C7.80065 8.125 7.52083 7.84518 7.52083 7.5V6.25C7.52083 5.90482 7.80065 5.625 8.14583 5.625H14.3958C14.741 5.625 15.0208 5.90482 15.0208 6.25V7.5C15.0208 7.84518 14.741 8.125 14.3958 8.125H8.14583Z" fill="currentColor"/>
181
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.39583 15.625C3.36029 15.625 2.52083 14.7855 2.52083 13.75V12.5C2.52083 11.4645 3.36029 10.625 4.39583 10.625H14.3958C15.4314 10.625 16.2708 11.4645 16.2708 12.5V13.75C16.2708 14.7855 15.4314 15.625 14.3958 15.625H4.39583ZM3.77083 13.75C3.77083 14.0952 4.05065 14.375 4.39583 14.375H14.3958C14.741 14.375 15.0208 14.0952 15.0208 13.75V12.5C15.0208 12.1548 14.741 11.875 14.3958 11.875H4.39583C4.05065 11.875 3.77083 12.1548 3.77083 12.5V13.75Z" fill="currentColor"/>
182
- </svg>
183
- `,
184
- tooltip: 'Align right'
174
+ tooltip: 'Align right',
175
+ iconName: 'gp-align-right'
185
176
  }
186
177
  ],
187
178
  default: 'left'
@@ -42,7 +42,7 @@ const Link = ({ builderAttrs, setting = {}, styles, builderProps })=>{
42
42
  children: /*#__PURE__*/ jsxRuntime.jsx("div", {
43
43
  style: wrapperStyle,
44
44
  children: /*#__PURE__*/ jsxRuntime.jsx(Component, {
45
- href: link?.link,
45
+ href: link,
46
46
  target: "_blank",
47
47
  rel: "noreferrer",
48
48
  className: componentClasses,
@@ -3,7 +3,7 @@
3
3
  var helper = require('../../../utils/helper.js');
4
4
 
5
5
  const getComponentTag = (link)=>{
6
- const isValidLink = helper.checkIsValidURL(link?.link || '');
6
+ const isValidLink = helper.checkIsValidURL(link || '');
7
7
  return isValidLink ? 'a' : 'div';
8
8
  };
9
9
 
@@ -17,13 +17,13 @@ const getClasses = ({ builderProps, styles })=>{
17
17
  };
18
18
  };
19
19
  const getComponentClasses = (link)=>{
20
- const isValidLink = helper.checkIsValidURL(link?.link || '');
20
+ const isValidLink = helper.checkIsValidURL(link || '');
21
21
  return {
22
22
  'gp-underline': !isValidLink
23
23
  };
24
24
  };
25
25
  const getTextClasses = (link)=>{
26
- const isValidLink = helper.checkIsValidURL(link?.link || '');
26
+ const isValidLink = helper.checkIsValidURL(link || '');
27
27
  const classList = '!gp-break-normal gp-leading-[15px] gp-min-w-fit [&>*]:gp-text-center [&>*]:gp-inline-block ';
28
28
  return {
29
29
  ...core.composeClasses(classList),
@@ -6,23 +6,18 @@ const PostPurchaseLinkSettings = [
6
6
  controls: [
7
7
  {
8
8
  id: 'link',
9
- type: 'pick-link',
10
- pickLinkLabel: 'Link',
11
- label: 'Pick Link',
12
- default: {
13
- link: '',
14
- target: '_blank'
15
- },
16
- isHiddenInsertLink: true,
17
- isHiddenOpenLinkSelect: true
9
+ label: 'Link',
10
+ type: 'input',
11
+ default: '',
12
+ placeholder: 'E.g. gempages.net'
18
13
  },
19
14
  {
20
15
  id: 'label',
21
16
  label: 'Text',
22
- type: 'post-purchase-textarea',
17
+ type: 'textarea',
23
18
  default: 'Preview Sample',
24
19
  autoHeight: true,
25
- isFallback: true
20
+ lazyUpdate: true
26
21
  },
27
22
  {
28
23
  id: 'width',
@@ -7,8 +7,9 @@ const PostPurchaseLinkUIV2 = [
7
7
  },
8
8
  controls: [
9
9
  {
10
- type: 'control',
11
- layout: 'vertical',
10
+ label: {
11
+ en: 'Link'
12
+ },
12
13
  setting: {
13
14
  id: 'link'
14
15
  }
@@ -97,38 +97,25 @@ const AcceptButtonSettings = [
97
97
  label: 'Left',
98
98
  value: 'start',
99
99
  type: 'align',
100
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
101
- <path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
102
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
103
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
104
- </svg>
105
- `,
106
- tooltip: 'Align left'
100
+ tooltip: 'Align left',
101
+ iconName: 'gp-align-left'
107
102
  },
108
103
  {
109
104
  label: 'Center',
110
105
  value: 'center',
111
106
  type: 'align',
112
- icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
113
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.25C10.3452 1.25 10.625 1.52982 10.625 1.875V4.375H13.125C14.1605 4.375 15 5.21447 15 6.25V7.5C15 8.53553 14.1605 9.375 13.125 9.375H10.625V10.625H15C16.0355 10.625 16.875 11.4645 16.875 12.5V13.75C16.875 14.7855 16.0355 15.625 15 15.625H10.625V18.125C10.625 18.4702 10.3452 18.75 10 18.75C9.65482 18.75 9.375 18.4702 9.375 18.125V15.625H5C3.96447 15.625 3.125 14.7855 3.125 13.75V12.5C3.125 11.4645 3.96447 10.625 5 10.625H9.375V9.375H6.875C5.83947 9.375 5 8.53553 5 7.5V6.25C5 5.21447 5.83947 4.375 6.875 4.375H9.375V1.875C9.375 1.52982 9.65482 1.25 10 1.25ZM15 14.375C15.3452 14.375 15.625 14.0952 15.625 13.75V12.5C15.625 12.1548 15.3452 11.875 15 11.875H5C4.65482 11.875 4.375 12.1548 4.375 12.5V13.75C4.375 14.0952 4.65482 14.375 5 14.375H15ZM13.125 8.125H6.875C6.52982 8.125 6.25 7.84518 6.25 7.5V6.25C6.25 5.90482 6.52982 5.625 6.875 5.625H13.125C13.4702 5.625 13.75 5.90482 13.75 6.25V7.5C13.75 7.84518 13.4702 8.125 13.125 8.125Z" fill="currentColor"/>
114
- </svg>
115
- `,
116
- tooltip: 'Align center'
107
+ tooltip: 'Align center',
108
+ iconName: 'gp-align-center'
117
109
  },
118
110
  {
119
111
  label: 'Right',
120
112
  value: 'end',
121
113
  type: 'align',
122
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
123
- <path d="M17.5208 18.75C17.866 18.75 18.1458 18.4702 18.1458 18.125V1.875C18.1458 1.52982 17.866 1.25 17.5208 1.25C17.1757 1.25 16.8958 1.52982 16.8958 1.875V18.125C16.8958 18.4702 17.1757 18.75 17.5208 18.75Z" fill="currentColor"/>
124
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.27083 7.5C6.27083 8.53553 7.11029 9.375 8.14583 9.375H14.3958C15.4314 9.375 16.2708 8.53553 16.2708 7.5V6.25C16.2708 5.21447 15.4314 4.375 14.3958 4.375H8.14583C7.11029 4.375 6.27083 5.21447 6.27083 6.25V7.5ZM8.14583 8.125C7.80065 8.125 7.52083 7.84518 7.52083 7.5V6.25C7.52083 5.90482 7.80065 5.625 8.14583 5.625H14.3958C14.741 5.625 15.0208 5.90482 15.0208 6.25V7.5C15.0208 7.84518 14.741 8.125 14.3958 8.125H8.14583Z" fill="currentColor"/>
125
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.39583 15.625C3.36029 15.625 2.52083 14.7855 2.52083 13.75V12.5C2.52083 11.4645 3.36029 10.625 4.39583 10.625H14.3958C15.4314 10.625 16.2708 11.4645 16.2708 12.5V13.75C16.2708 14.7855 15.4314 15.625 14.3958 15.625H4.39583ZM3.77083 13.75C3.77083 14.0952 4.05065 14.375 4.39583 14.375H14.3958C14.741 14.375 15.0208 14.0952 15.0208 13.75V12.5C15.0208 12.1548 14.741 11.875 14.3958 11.875H4.39583C4.05065 11.875 3.77083 12.1548 3.77083 12.5V13.75Z" fill="currentColor"/>
126
- </svg>
127
- `,
128
- tooltip: 'Align right'
114
+ tooltip: 'Align right',
115
+ iconName: 'gp-align-right'
129
116
  }
130
117
  ],
131
- default: 'center'
118
+ default: 'start'
132
119
  },
133
120
  {
134
121
  id: 'direction',
@@ -139,38 +139,25 @@ const ProductPriceBreakdownSettings = [
139
139
  label: 'Left',
140
140
  value: 'left',
141
141
  type: 'align',
142
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
143
- <path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
144
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
145
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
146
- </svg>
147
- `,
148
- tooltip: 'Align left'
142
+ tooltip: 'Align left',
143
+ iconName: 'gp-align-left'
149
144
  },
150
145
  {
151
146
  label: 'Center',
152
147
  value: 'center',
153
148
  type: 'align',
154
- icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
155
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.25C10.3452 1.25 10.625 1.52982 10.625 1.875V4.375H13.125C14.1605 4.375 15 5.21447 15 6.25V7.5C15 8.53553 14.1605 9.375 13.125 9.375H10.625V10.625H15C16.0355 10.625 16.875 11.4645 16.875 12.5V13.75C16.875 14.7855 16.0355 15.625 15 15.625H10.625V18.125C10.625 18.4702 10.3452 18.75 10 18.75C9.65482 18.75 9.375 18.4702 9.375 18.125V15.625H5C3.96447 15.625 3.125 14.7855 3.125 13.75V12.5C3.125 11.4645 3.96447 10.625 5 10.625H9.375V9.375H6.875C5.83947 9.375 5 8.53553 5 7.5V6.25C5 5.21447 5.83947 4.375 6.875 4.375H9.375V1.875C9.375 1.52982 9.65482 1.25 10 1.25ZM15 14.375C15.3452 14.375 15.625 14.0952 15.625 13.75V12.5C15.625 12.1548 15.3452 11.875 15 11.875H5C4.65482 11.875 4.375 12.1548 4.375 12.5V13.75C4.375 14.0952 4.65482 14.375 5 14.375H15ZM13.125 8.125H6.875C6.52982 8.125 6.25 7.84518 6.25 7.5V6.25C6.25 5.90482 6.52982 5.625 6.875 5.625H13.125C13.4702 5.625 13.75 5.90482 13.75 6.25V7.5C13.75 7.84518 13.4702 8.125 13.125 8.125Z" fill="currentColor"/>
156
- </svg>
157
- `,
158
- tooltip: 'Align center'
149
+ tooltip: 'Align center',
150
+ iconName: 'gp-align-center'
159
151
  },
160
152
  {
161
153
  label: 'Right',
162
154
  value: 'right',
163
155
  type: 'align',
164
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
165
- <path d="M17.5208 18.75C17.866 18.75 18.1458 18.4702 18.1458 18.125V1.875C18.1458 1.52982 17.866 1.25 17.5208 1.25C17.1757 1.25 16.8958 1.52982 16.8958 1.875V18.125C16.8958 18.4702 17.1757 18.75 17.5208 18.75Z" fill="currentColor"/>
166
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.27083 7.5C6.27083 8.53553 7.11029 9.375 8.14583 9.375H14.3958C15.4314 9.375 16.2708 8.53553 16.2708 7.5V6.25C16.2708 5.21447 15.4314 4.375 14.3958 4.375H8.14583C7.11029 4.375 6.27083 5.21447 6.27083 6.25V7.5ZM8.14583 8.125C7.80065 8.125 7.52083 7.84518 7.52083 7.5V6.25C7.52083 5.90482 7.80065 5.625 8.14583 5.625H14.3958C14.741 5.625 15.0208 5.90482 15.0208 6.25V7.5C15.0208 7.84518 14.741 8.125 14.3958 8.125H8.14583Z" fill="currentColor"/>
167
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.39583 15.625C3.36029 15.625 2.52083 14.7855 2.52083 13.75V12.5C2.52083 11.4645 3.36029 10.625 4.39583 10.625H14.3958C15.4314 10.625 16.2708 11.4645 16.2708 12.5V13.75C16.2708 14.7855 15.4314 15.625 14.3958 15.625H4.39583ZM3.77083 13.75C3.77083 14.0952 4.05065 14.375 4.39583 14.375H14.3958C14.741 14.375 15.0208 14.0952 15.0208 13.75V12.5C15.0208 12.1548 14.741 11.875 14.3958 11.875H4.39583C4.05065 11.875 3.77083 12.1548 3.77083 12.5V13.75Z" fill="currentColor"/>
168
- </svg>
169
- `,
170
- tooltip: 'Align right'
156
+ tooltip: 'Align right',
157
+ iconName: 'gp-align-right'
171
158
  }
172
159
  ],
173
- default: 'center'
160
+ default: 'left'
174
161
  },
175
162
  {
176
163
  id: 'width',
@@ -16,7 +16,8 @@ const ProductQuantitySettings = [
16
16
  label: 'Text',
17
17
  type: 'input:stepper',
18
18
  min: 1,
19
- default: 1
19
+ default: 1,
20
+ disableDecimal: true
20
21
  }
21
22
  ]
22
23
  },
@@ -71,38 +72,25 @@ const ProductQuantitySettings = [
71
72
  label: 'Left',
72
73
  value: 'start',
73
74
  type: 'align',
74
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
75
- <path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
76
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
77
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
78
- </svg>
79
- `,
80
- tooltip: 'Align left'
75
+ tooltip: 'Align left',
76
+ iconName: 'gp-align-left'
81
77
  },
82
78
  {
83
79
  label: 'Center',
84
80
  value: 'center',
85
81
  type: 'align',
86
- icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
87
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.25C10.3452 1.25 10.625 1.52982 10.625 1.875V4.375H13.125C14.1605 4.375 15 5.21447 15 6.25V7.5C15 8.53553 14.1605 9.375 13.125 9.375H10.625V10.625H15C16.0355 10.625 16.875 11.4645 16.875 12.5V13.75C16.875 14.7855 16.0355 15.625 15 15.625H10.625V18.125C10.625 18.4702 10.3452 18.75 10 18.75C9.65482 18.75 9.375 18.4702 9.375 18.125V15.625H5C3.96447 15.625 3.125 14.7855 3.125 13.75V12.5C3.125 11.4645 3.96447 10.625 5 10.625H9.375V9.375H6.875C5.83947 9.375 5 8.53553 5 7.5V6.25C5 5.21447 5.83947 4.375 6.875 4.375H9.375V1.875C9.375 1.52982 9.65482 1.25 10 1.25ZM15 14.375C15.3452 14.375 15.625 14.0952 15.625 13.75V12.5C15.625 12.1548 15.3452 11.875 15 11.875H5C4.65482 11.875 4.375 12.1548 4.375 12.5V13.75C4.375 14.0952 4.65482 14.375 5 14.375H15ZM13.125 8.125H6.875C6.52982 8.125 6.25 7.84518 6.25 7.5V6.25C6.25 5.90482 6.52982 5.625 6.875 5.625H13.125C13.4702 5.625 13.75 5.90482 13.75 6.25V7.5C13.75 7.84518 13.4702 8.125 13.125 8.125Z" fill="currentColor"/>
88
- </svg>
89
- `,
90
- tooltip: 'Align center'
82
+ tooltip: 'Align center',
83
+ iconName: 'gp-align-center'
91
84
  },
92
85
  {
93
86
  label: 'Right',
94
87
  value: 'end',
95
88
  type: 'align',
96
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
97
- <path d="M17.5208 18.75C17.866 18.75 18.1458 18.4702 18.1458 18.125V1.875C18.1458 1.52982 17.866 1.25 17.5208 1.25C17.1757 1.25 16.8958 1.52982 16.8958 1.875V18.125C16.8958 18.4702 17.1757 18.75 17.5208 18.75Z" fill="currentColor"/>
98
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.27083 7.5C6.27083 8.53553 7.11029 9.375 8.14583 9.375H14.3958C15.4314 9.375 16.2708 8.53553 16.2708 7.5V6.25C16.2708 5.21447 15.4314 4.375 14.3958 4.375H8.14583C7.11029 4.375 6.27083 5.21447 6.27083 6.25V7.5ZM8.14583 8.125C7.80065 8.125 7.52083 7.84518 7.52083 7.5V6.25C7.52083 5.90482 7.80065 5.625 8.14583 5.625H14.3958C14.741 5.625 15.0208 5.90482 15.0208 6.25V7.5C15.0208 7.84518 14.741 8.125 14.3958 8.125H8.14583Z" fill="currentColor"/>
99
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.39583 15.625C3.36029 15.625 2.52083 14.7855 2.52083 13.75V12.5C2.52083 11.4645 3.36029 10.625 4.39583 10.625H14.3958C15.4314 10.625 16.2708 11.4645 16.2708 12.5V13.75C16.2708 14.7855 15.4314 15.625 14.3958 15.625H4.39583ZM3.77083 13.75C3.77083 14.0952 4.05065 14.375 4.39583 14.375H14.3958C14.741 14.375 15.0208 14.0952 15.0208 13.75V12.5C15.0208 12.1548 14.741 11.875 14.3958 11.875H4.39583C4.05065 11.875 3.77083 12.1548 3.77083 12.5V13.75Z" fill="currentColor"/>
100
- </svg>
101
- `,
102
- tooltip: 'Align right'
89
+ tooltip: 'Align right',
90
+ iconName: 'gp-align-right'
103
91
  }
104
92
  ],
105
- default: 'center'
93
+ default: 'start'
106
94
  }
107
95
  ]
108
96
  }
@@ -81,25 +81,29 @@ const settingV2 = [
81
81
  label: 'Left',
82
82
  value: 'left',
83
83
  type: 'text',
84
- tooltip: 'Align left'
84
+ tooltip: 'Align left',
85
+ iconName: 'polaris-text-align-left'
85
86
  },
86
87
  {
87
88
  label: 'Center',
88
89
  value: 'center',
89
90
  type: 'text',
90
- tooltip: 'Align center'
91
+ tooltip: 'Align center',
92
+ iconName: 'polaris-text-align-center'
91
93
  },
92
94
  {
93
95
  label: 'Right',
94
96
  value: 'right',
95
97
  type: 'text',
96
- tooltip: 'Align right'
98
+ tooltip: 'Align right',
99
+ iconName: 'polaris-text-align-right'
97
100
  },
98
101
  {
99
102
  label: 'Justify',
100
103
  value: 'justify',
101
104
  type: 'text',
102
- tooltip: 'Align justify'
105
+ tooltip: 'Align justify',
106
+ iconName: 'gp-text-align-justify'
103
107
  }
104
108
  ],
105
109
  default: 'left'
@@ -75,7 +75,7 @@ const uiV2 = [
75
75
  label: {
76
76
  en: 'Align'
77
77
  },
78
- conditionEnable: `width !== '100%'`,
78
+ conditionEnable: `activeScreenId === 'desktop' ? width !== '100%' : (width !== '100%' && width !== 'default')`,
79
79
  setting: {
80
80
  id: 'align'
81
81
  },
@@ -1,28 +1,33 @@
1
1
  const postPurchaseSpacingV2 = [
2
2
  {
3
3
  label: 'XSmall',
4
- title: '5px',
5
- value: 'xtight'
4
+ displayValue: '5px',
5
+ value: 'xtight',
6
+ showValue: true
6
7
  },
7
8
  {
8
9
  label: 'Small',
9
- title: '9px',
10
- value: 'tight'
10
+ displayValue: '9px',
11
+ value: 'tight',
12
+ showValue: true
11
13
  },
12
14
  {
13
15
  label: 'Medium',
14
- title: '14px',
15
- value: 'medium'
16
+ displayValue: '14px',
17
+ value: 'medium',
18
+ showValue: true
16
19
  },
17
20
  {
18
21
  label: 'Large',
19
- title: '21px',
20
- value: 'large'
22
+ displayValue: '21px',
23
+ value: 'large',
24
+ showValue: true
21
25
  },
22
26
  {
23
27
  label: 'XLarge',
24
- title: '38px',
25
- value: 'xlarge'
28
+ displayValue: '38px',
29
+ value: 'xlarge',
30
+ showValue: true
26
31
  }
27
32
  ];
28
33
  const postPurchaseSpacingValueV2 = {
@@ -89,38 +89,25 @@ const DeclineButtonSettings = [
89
89
  label: 'Left',
90
90
  value: 'start',
91
91
  type: 'align',
92
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
93
- <path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
94
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
95
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
96
- </svg>
97
- `,
98
- tooltip: 'Align left'
92
+ tooltip: 'Align left',
93
+ iconName: 'gp-align-left'
99
94
  },
100
95
  {
101
96
  label: 'Center',
102
97
  value: 'center',
103
98
  type: 'align',
104
- icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
105
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.25C10.3452 1.25 10.625 1.52982 10.625 1.875V4.375H13.125C14.1605 4.375 15 5.21447 15 6.25V7.5C15 8.53553 14.1605 9.375 13.125 9.375H10.625V10.625H15C16.0355 10.625 16.875 11.4645 16.875 12.5V13.75C16.875 14.7855 16.0355 15.625 15 15.625H10.625V18.125C10.625 18.4702 10.3452 18.75 10 18.75C9.65482 18.75 9.375 18.4702 9.375 18.125V15.625H5C3.96447 15.625 3.125 14.7855 3.125 13.75V12.5C3.125 11.4645 3.96447 10.625 5 10.625H9.375V9.375H6.875C5.83947 9.375 5 8.53553 5 7.5V6.25C5 5.21447 5.83947 4.375 6.875 4.375H9.375V1.875C9.375 1.52982 9.65482 1.25 10 1.25ZM15 14.375C15.3452 14.375 15.625 14.0952 15.625 13.75V12.5C15.625 12.1548 15.3452 11.875 15 11.875H5C4.65482 11.875 4.375 12.1548 4.375 12.5V13.75C4.375 14.0952 4.65482 14.375 5 14.375H15ZM13.125 8.125H6.875C6.52982 8.125 6.25 7.84518 6.25 7.5V6.25C6.25 5.90482 6.52982 5.625 6.875 5.625H13.125C13.4702 5.625 13.75 5.90482 13.75 6.25V7.5C13.75 7.84518 13.4702 8.125 13.125 8.125Z" fill="currentColor"/>
106
- </svg>
107
- `,
108
- tooltip: 'Align center'
99
+ tooltip: 'Align center',
100
+ iconName: 'gp-align-center'
109
101
  },
110
102
  {
111
103
  label: 'Right',
112
104
  value: 'end',
113
105
  type: 'align',
114
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
115
- <path d="M17.5208 18.75C17.866 18.75 18.1458 18.4702 18.1458 18.125V1.875C18.1458 1.52982 17.866 1.25 17.5208 1.25C17.1757 1.25 16.8958 1.52982 16.8958 1.875V18.125C16.8958 18.4702 17.1757 18.75 17.5208 18.75Z" fill="currentColor"/>
116
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.27083 7.5C6.27083 8.53553 7.11029 9.375 8.14583 9.375H14.3958C15.4314 9.375 16.2708 8.53553 16.2708 7.5V6.25C16.2708 5.21447 15.4314 4.375 14.3958 4.375H8.14583C7.11029 4.375 6.27083 5.21447 6.27083 6.25V7.5ZM8.14583 8.125C7.80065 8.125 7.52083 7.84518 7.52083 7.5V6.25C7.52083 5.90482 7.80065 5.625 8.14583 5.625H14.3958C14.741 5.625 15.0208 5.90482 15.0208 6.25V7.5C15.0208 7.84518 14.741 8.125 14.3958 8.125H8.14583Z" fill="currentColor"/>
117
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.39583 15.625C3.36029 15.625 2.52083 14.7855 2.52083 13.75V12.5C2.52083 11.4645 3.36029 10.625 4.39583 10.625H14.3958C15.4314 10.625 16.2708 11.4645 16.2708 12.5V13.75C16.2708 14.7855 15.4314 15.625 14.3958 15.625H4.39583ZM3.77083 13.75C3.77083 14.0952 4.05065 14.375 4.39583 14.375H14.3958C14.741 14.375 15.0208 14.0952 15.0208 13.75V12.5C15.0208 12.1548 14.741 11.875 14.3958 11.875H4.39583C4.05065 11.875 3.77083 12.1548 3.77083 12.5V13.75Z" fill="currentColor"/>
118
- </svg>
119
- `,
120
- tooltip: 'Align right'
106
+ tooltip: 'Align right',
107
+ iconName: 'gp-align-right'
121
108
  }
122
109
  ],
123
- default: 'center'
110
+ default: 'start'
124
111
  },
125
112
  {
126
113
  id: 'direction',
@@ -18,38 +18,28 @@ const CalloutBoxSettings = [
18
18
  },
19
19
  {
20
20
  id: 'horizontalAlign',
21
- type: 'segment',
21
+ type: 'option:value',
22
22
  options: [
23
23
  {
24
- label: 'Start',
24
+ label: 'Left',
25
25
  value: 'start',
26
- icon: `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
27
- <path d="M1.91699 1C2.19314 1 2.41699 1.22386 2.41699 1.5L2.41699 14.5C2.41699 14.7761 2.19313 15 1.91699 15C1.64085 15 1.41699 14.7761 1.41699 14.5V1.5C1.41699 1.22386 1.64085 1 1.91699 1Z" fill="currentColor"/>
28
- <path fill-rule="evenodd" clip-rule="evenodd" d="M2.91699 5C2.91699 4.17157 3.58857 3.5 4.41699 3.5H9.41699C10.2454 3.5 10.917 4.17157 10.917 5V6C10.917 6.82843 10.2454 7.5 9.41699 7.5H4.41699C3.58857 7.5 2.91699 6.82843 2.91699 6V5ZM4.41699 4.5C4.14085 4.5 3.91699 4.72386 3.91699 5V6C3.91699 6.27614 4.14085 6.5 4.41699 6.5H9.41699C9.69314 6.5 9.91699 6.27614 9.91699 6V5C9.91699 4.72386 9.69314 4.5 9.41699 4.5H4.41699Z" fill="currentColor"/>
29
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.41699 8.5C3.58857 8.5 2.91699 9.17157 2.91699 10V11C2.91699 11.8284 3.58857 12.5 4.41699 12.5H12.417C13.2454 12.5 13.917 11.8284 13.917 11V10C13.917 9.17157 13.2454 8.5 12.417 8.5H4.41699ZM3.91699 10C3.91699 9.72386 4.14085 9.5 4.41699 9.5H12.417C12.6931 9.5 12.917 9.72386 12.917 10V11C12.917 11.2761 12.6931 11.5 12.417 11.5H4.41699C4.14085 11.5 3.91699 11.2761 3.91699 11V10Z" fill="currentColor"/>
30
- </svg>
31
- `,
32
- tooltip: 'Start'
26
+ type: 'align',
27
+ tooltip: 'Align left',
28
+ iconName: 'gp-align-left'
33
29
  },
34
30
  {
35
31
  label: 'Center',
36
32
  value: 'center',
37
- icon: `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
38
- <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1C8.27614 1 8.5 1.22386 8.5 1.5V3.5H10.5C11.3284 3.5 12 4.17157 12 5V6C12 6.82843 11.3284 7.5 10.5 7.5H8.5V8.5H12C12.8284 8.5 13.5 9.17157 13.5 10V11C13.5 11.8284 12.8284 12.5 12 12.5H8.5V14.5C8.5 14.7761 8.27614 15 8 15C7.72386 15 7.5 14.7761 7.5 14.5V12.5H4C3.17157 12.5 2.5 11.8284 2.5 11V10C2.5 9.17157 3.17157 8.5 4 8.5H7.5V7.5H5.5C4.67157 7.5 4 6.82843 4 6V5C4 4.17157 4.67157 3.5 5.5 3.5H7.5V1.5C7.5 1.22386 7.72386 1 8 1ZM12 11.5C12.2761 11.5 12.5 11.2761 12.5 11V10C12.5 9.72386 12.2761 9.5 12 9.5H4C3.72386 9.5 3.5 9.72386 3.5 10V11C3.5 11.2761 3.72386 11.5 4 11.5H12ZM10.5 6.5H5.5C5.22386 6.5 5 6.27614 5 6V5C5 4.72386 5.22386 4.5 5.5 4.5H10.5C10.7761 4.5 11 4.72386 11 5V6C11 6.27614 10.7761 6.5 10.5 6.5Z" fill="currentColor"/>
39
- </svg>
40
- `,
41
- tooltip: 'Center'
33
+ type: 'align',
34
+ tooltip: 'Align center',
35
+ iconName: 'gp-align-center'
42
36
  },
43
37
  {
44
- label: 'End',
38
+ label: 'Right',
45
39
  value: 'end',
46
- icon: `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
47
- <path d="M14.084 15C14.3601 15 14.584 14.7761 14.584 14.5L14.584 1.5C14.584 1.22386 14.3601 1 14.084 1C13.8078 1 13.584 1.22386 13.584 1.5L13.584 14.5C13.584 14.7761 13.8078 15 14.084 15Z" fill="currentColor"/>
48
- <path fill-rule="evenodd" clip-rule="evenodd" d="M5.08398 6C5.08398 6.82843 5.75556 7.5 6.58398 7.5H11.584C12.4124 7.5 13.084 6.82843 13.084 6V5C13.084 4.17157 12.4124 3.5 11.584 3.5L6.58398 3.5C5.75556 3.5 5.08398 4.17157 5.08398 5V6ZM6.58398 6.5C6.30784 6.5 6.08398 6.27614 6.08398 6V5C6.08398 4.72386 6.30784 4.5 6.58398 4.5L11.584 4.5C11.8601 4.5 12.084 4.72386 12.084 5V6C12.084 6.27614 11.8601 6.5 11.584 6.5H6.58398Z" fill="currentColor"/>
49
- <path fill-rule="evenodd" clip-rule="evenodd" d="M3.58398 12.5C2.75556 12.5 2.08398 11.8284 2.08398 11L2.08398 10C2.08398 9.17157 2.75556 8.5 3.58398 8.5H11.584C12.4124 8.5 13.084 9.17157 13.084 10V11C13.084 11.8284 12.4124 12.5 11.584 12.5L3.58398 12.5ZM3.08398 11C3.08398 11.2761 3.30784 11.5 3.58398 11.5L11.584 11.5C11.8601 11.5 12.084 11.2761 12.084 11V10C12.084 9.72386 11.8601 9.5 11.584 9.5L3.58398 9.5C3.30784 9.5 3.08398 9.72386 3.08398 10L3.08398 11Z" fill="currentColor"/>
50
- </svg>
51
- `,
52
- tooltip: 'End'
40
+ type: 'align',
41
+ tooltip: 'Align right',
42
+ iconName: 'gp-align-right'
53
43
  }
54
44
  ],
55
45
  devices: {
@@ -58,31 +58,35 @@ const CalloutTextSettings = [
58
58
  {
59
59
  id: 'textAlign',
60
60
  label: 'Alignment',
61
- type: 'segment',
61
+ type: 'option:value',
62
62
  options: [
63
63
  {
64
64
  label: 'Left',
65
65
  value: 'left',
66
66
  type: 'text',
67
- tooltip: 'Align left'
67
+ tooltip: 'Align left',
68
+ iconName: 'polaris-text-align-left'
68
69
  },
69
70
  {
70
71
  label: 'Center',
71
72
  value: 'center',
72
73
  type: 'text',
73
- tooltip: 'Align center'
74
+ tooltip: 'Align center',
75
+ iconName: 'polaris-text-align-center'
74
76
  },
75
77
  {
76
78
  label: 'Right',
77
79
  value: 'right',
78
80
  type: 'text',
79
- tooltip: 'Align right'
81
+ tooltip: 'Align right',
82
+ iconName: 'polaris-text-align-right'
80
83
  },
81
84
  {
82
85
  label: 'Justify',
83
86
  value: 'justify',
84
87
  type: 'text',
85
- tooltip: 'Align justify'
88
+ tooltip: 'Align justify',
89
+ iconName: 'gp-text-align-justify'
86
90
  }
87
91
  ],
88
92
  default: 'left'
@@ -145,41 +149,28 @@ const CalloutTextSettings = [
145
149
  {
146
150
  id: 'align',
147
151
  label: 'Alignment',
148
- type: 'segment',
152
+ type: 'option:value',
149
153
  options: [
150
154
  {
151
155
  label: 'Left',
152
156
  value: 'left',
153
157
  type: 'align',
154
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
155
- <path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
156
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
157
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
158
- </svg>
159
- `,
160
- tooltip: 'Align left'
158
+ tooltip: 'Align left',
159
+ iconName: 'gp-align-left'
161
160
  },
162
161
  {
163
162
  label: 'Center',
164
163
  value: 'center',
165
164
  type: 'align',
166
- icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
167
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.25C10.3452 1.25 10.625 1.52982 10.625 1.875V4.375H13.125C14.1605 4.375 15 5.21447 15 6.25V7.5C15 8.53553 14.1605 9.375 13.125 9.375H10.625V10.625H15C16.0355 10.625 16.875 11.4645 16.875 12.5V13.75C16.875 14.7855 16.0355 15.625 15 15.625H10.625V18.125C10.625 18.4702 10.3452 18.75 10 18.75C9.65482 18.75 9.375 18.4702 9.375 18.125V15.625H5C3.96447 15.625 3.125 14.7855 3.125 13.75V12.5C3.125 11.4645 3.96447 10.625 5 10.625H9.375V9.375H6.875C5.83947 9.375 5 8.53553 5 7.5V6.25C5 5.21447 5.83947 4.375 6.875 4.375H9.375V1.875C9.375 1.52982 9.65482 1.25 10 1.25ZM15 14.375C15.3452 14.375 15.625 14.0952 15.625 13.75V12.5C15.625 12.1548 15.3452 11.875 15 11.875H5C4.65482 11.875 4.375 12.1548 4.375 12.5V13.75C4.375 14.0952 4.65482 14.375 5 14.375H15ZM13.125 8.125H6.875C6.52982 8.125 6.25 7.84518 6.25 7.5V6.25C6.25 5.90482 6.52982 5.625 6.875 5.625H13.125C13.4702 5.625 13.75 5.90482 13.75 6.25V7.5C13.75 7.84518 13.4702 8.125 13.125 8.125Z" fill="currentColor"/>
168
- </svg>
169
- `,
170
- tooltip: 'Align center'
165
+ tooltip: 'Align center',
166
+ iconName: 'gp-align-center'
171
167
  },
172
168
  {
173
169
  label: 'Right',
174
170
  value: 'right',
175
171
  type: 'align',
176
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
177
- <path d="M17.5208 18.75C17.866 18.75 18.1458 18.4702 18.1458 18.125V1.875C18.1458 1.52982 17.866 1.25 17.5208 1.25C17.1757 1.25 16.8958 1.52982 16.8958 1.875V18.125C16.8958 18.4702 17.1757 18.75 17.5208 18.75Z" fill="currentColor"/>
178
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.27083 7.5C6.27083 8.53553 7.11029 9.375 8.14583 9.375H14.3958C15.4314 9.375 16.2708 8.53553 16.2708 7.5V6.25C16.2708 5.21447 15.4314 4.375 14.3958 4.375H8.14583C7.11029 4.375 6.27083 5.21447 6.27083 6.25V7.5ZM8.14583 8.125C7.80065 8.125 7.52083 7.84518 7.52083 7.5V6.25C7.52083 5.90482 7.80065 5.625 8.14583 5.625H14.3958C14.741 5.625 15.0208 5.90482 15.0208 6.25V7.5C15.0208 7.84518 14.741 8.125 14.3958 8.125H8.14583Z" fill="currentColor"/>
179
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.39583 15.625C3.36029 15.625 2.52083 14.7855 2.52083 13.75V12.5C2.52083 11.4645 3.36029 10.625 4.39583 10.625H14.3958C15.4314 10.625 16.2708 11.4645 16.2708 12.5V13.75C16.2708 14.7855 15.4314 15.625 14.3958 15.625H4.39583ZM3.77083 13.75C3.77083 14.0952 4.05065 14.375 4.39583 14.375H14.3958C14.741 14.375 15.0208 14.0952 15.0208 13.75V12.5C15.0208 12.1548 14.741 11.875 14.3958 11.875H4.39583C4.05065 11.875 3.77083 12.1548 3.77083 12.5V13.75Z" fill="currentColor"/>
180
- </svg>
181
- `,
182
- tooltip: 'Align right'
172
+ tooltip: 'Align right',
173
+ iconName: 'gp-align-right'
183
174
  }
184
175
  ],
185
176
  default: 'left'
@@ -38,7 +38,7 @@ const Link = ({ builderAttrs, setting = {}, styles, builderProps })=>{
38
38
  children: /*#__PURE__*/ jsx("div", {
39
39
  style: wrapperStyle,
40
40
  children: /*#__PURE__*/ jsx(Component, {
41
- href: link?.link,
41
+ href: link,
42
42
  target: "_blank",
43
43
  rel: "noreferrer",
44
44
  className: componentClasses,
@@ -1,7 +1,7 @@
1
1
  import { checkIsValidURL } from '../../../utils/helper.js';
2
2
 
3
3
  const getComponentTag = (link)=>{
4
- const isValidLink = checkIsValidURL(link?.link || '');
4
+ const isValidLink = checkIsValidURL(link || '');
5
5
  return isValidLink ? 'a' : 'div';
6
6
  };
7
7
 
@@ -15,13 +15,13 @@ const getClasses = ({ builderProps, styles })=>{
15
15
  };
16
16
  };
17
17
  const getComponentClasses = (link)=>{
18
- const isValidLink = checkIsValidURL(link?.link || '');
18
+ const isValidLink = checkIsValidURL(link || '');
19
19
  return {
20
20
  'gp-underline': !isValidLink
21
21
  };
22
22
  };
23
23
  const getTextClasses = (link)=>{
24
- const isValidLink = checkIsValidURL(link?.link || '');
24
+ const isValidLink = checkIsValidURL(link || '');
25
25
  const classList = '!gp-break-normal gp-leading-[15px] gp-min-w-fit [&>*]:gp-text-center [&>*]:gp-inline-block ';
26
26
  return {
27
27
  ...composeClasses(classList),
@@ -4,23 +4,18 @@ const PostPurchaseLinkSettings = [
4
4
  controls: [
5
5
  {
6
6
  id: 'link',
7
- type: 'pick-link',
8
- pickLinkLabel: 'Link',
9
- label: 'Pick Link',
10
- default: {
11
- link: '',
12
- target: '_blank'
13
- },
14
- isHiddenInsertLink: true,
15
- isHiddenOpenLinkSelect: true
7
+ label: 'Link',
8
+ type: 'input',
9
+ default: '',
10
+ placeholder: 'E.g. gempages.net'
16
11
  },
17
12
  {
18
13
  id: 'label',
19
14
  label: 'Text',
20
- type: 'post-purchase-textarea',
15
+ type: 'textarea',
21
16
  default: 'Preview Sample',
22
17
  autoHeight: true,
23
- isFallback: true
18
+ lazyUpdate: true
24
19
  },
25
20
  {
26
21
  id: 'width',
@@ -5,8 +5,9 @@ const PostPurchaseLinkUIV2 = [
5
5
  },
6
6
  controls: [
7
7
  {
8
- type: 'control',
9
- layout: 'vertical',
8
+ label: {
9
+ en: 'Link'
10
+ },
10
11
  setting: {
11
12
  id: 'link'
12
13
  }
@@ -95,38 +95,25 @@ const AcceptButtonSettings = [
95
95
  label: 'Left',
96
96
  value: 'start',
97
97
  type: 'align',
98
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
99
- <path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
100
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
101
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
102
- </svg>
103
- `,
104
- tooltip: 'Align left'
98
+ tooltip: 'Align left',
99
+ iconName: 'gp-align-left'
105
100
  },
106
101
  {
107
102
  label: 'Center',
108
103
  value: 'center',
109
104
  type: 'align',
110
- icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
111
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.25C10.3452 1.25 10.625 1.52982 10.625 1.875V4.375H13.125C14.1605 4.375 15 5.21447 15 6.25V7.5C15 8.53553 14.1605 9.375 13.125 9.375H10.625V10.625H15C16.0355 10.625 16.875 11.4645 16.875 12.5V13.75C16.875 14.7855 16.0355 15.625 15 15.625H10.625V18.125C10.625 18.4702 10.3452 18.75 10 18.75C9.65482 18.75 9.375 18.4702 9.375 18.125V15.625H5C3.96447 15.625 3.125 14.7855 3.125 13.75V12.5C3.125 11.4645 3.96447 10.625 5 10.625H9.375V9.375H6.875C5.83947 9.375 5 8.53553 5 7.5V6.25C5 5.21447 5.83947 4.375 6.875 4.375H9.375V1.875C9.375 1.52982 9.65482 1.25 10 1.25ZM15 14.375C15.3452 14.375 15.625 14.0952 15.625 13.75V12.5C15.625 12.1548 15.3452 11.875 15 11.875H5C4.65482 11.875 4.375 12.1548 4.375 12.5V13.75C4.375 14.0952 4.65482 14.375 5 14.375H15ZM13.125 8.125H6.875C6.52982 8.125 6.25 7.84518 6.25 7.5V6.25C6.25 5.90482 6.52982 5.625 6.875 5.625H13.125C13.4702 5.625 13.75 5.90482 13.75 6.25V7.5C13.75 7.84518 13.4702 8.125 13.125 8.125Z" fill="currentColor"/>
112
- </svg>
113
- `,
114
- tooltip: 'Align center'
105
+ tooltip: 'Align center',
106
+ iconName: 'gp-align-center'
115
107
  },
116
108
  {
117
109
  label: 'Right',
118
110
  value: 'end',
119
111
  type: 'align',
120
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
121
- <path d="M17.5208 18.75C17.866 18.75 18.1458 18.4702 18.1458 18.125V1.875C18.1458 1.52982 17.866 1.25 17.5208 1.25C17.1757 1.25 16.8958 1.52982 16.8958 1.875V18.125C16.8958 18.4702 17.1757 18.75 17.5208 18.75Z" fill="currentColor"/>
122
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.27083 7.5C6.27083 8.53553 7.11029 9.375 8.14583 9.375H14.3958C15.4314 9.375 16.2708 8.53553 16.2708 7.5V6.25C16.2708 5.21447 15.4314 4.375 14.3958 4.375H8.14583C7.11029 4.375 6.27083 5.21447 6.27083 6.25V7.5ZM8.14583 8.125C7.80065 8.125 7.52083 7.84518 7.52083 7.5V6.25C7.52083 5.90482 7.80065 5.625 8.14583 5.625H14.3958C14.741 5.625 15.0208 5.90482 15.0208 6.25V7.5C15.0208 7.84518 14.741 8.125 14.3958 8.125H8.14583Z" fill="currentColor"/>
123
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.39583 15.625C3.36029 15.625 2.52083 14.7855 2.52083 13.75V12.5C2.52083 11.4645 3.36029 10.625 4.39583 10.625H14.3958C15.4314 10.625 16.2708 11.4645 16.2708 12.5V13.75C16.2708 14.7855 15.4314 15.625 14.3958 15.625H4.39583ZM3.77083 13.75C3.77083 14.0952 4.05065 14.375 4.39583 14.375H14.3958C14.741 14.375 15.0208 14.0952 15.0208 13.75V12.5C15.0208 12.1548 14.741 11.875 14.3958 11.875H4.39583C4.05065 11.875 3.77083 12.1548 3.77083 12.5V13.75Z" fill="currentColor"/>
124
- </svg>
125
- `,
126
- tooltip: 'Align right'
112
+ tooltip: 'Align right',
113
+ iconName: 'gp-align-right'
127
114
  }
128
115
  ],
129
- default: 'center'
116
+ default: 'start'
130
117
  },
131
118
  {
132
119
  id: 'direction',
@@ -137,38 +137,25 @@ const ProductPriceBreakdownSettings = [
137
137
  label: 'Left',
138
138
  value: 'left',
139
139
  type: 'align',
140
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
141
- <path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
142
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
143
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
144
- </svg>
145
- `,
146
- tooltip: 'Align left'
140
+ tooltip: 'Align left',
141
+ iconName: 'gp-align-left'
147
142
  },
148
143
  {
149
144
  label: 'Center',
150
145
  value: 'center',
151
146
  type: 'align',
152
- icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
153
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.25C10.3452 1.25 10.625 1.52982 10.625 1.875V4.375H13.125C14.1605 4.375 15 5.21447 15 6.25V7.5C15 8.53553 14.1605 9.375 13.125 9.375H10.625V10.625H15C16.0355 10.625 16.875 11.4645 16.875 12.5V13.75C16.875 14.7855 16.0355 15.625 15 15.625H10.625V18.125C10.625 18.4702 10.3452 18.75 10 18.75C9.65482 18.75 9.375 18.4702 9.375 18.125V15.625H5C3.96447 15.625 3.125 14.7855 3.125 13.75V12.5C3.125 11.4645 3.96447 10.625 5 10.625H9.375V9.375H6.875C5.83947 9.375 5 8.53553 5 7.5V6.25C5 5.21447 5.83947 4.375 6.875 4.375H9.375V1.875C9.375 1.52982 9.65482 1.25 10 1.25ZM15 14.375C15.3452 14.375 15.625 14.0952 15.625 13.75V12.5C15.625 12.1548 15.3452 11.875 15 11.875H5C4.65482 11.875 4.375 12.1548 4.375 12.5V13.75C4.375 14.0952 4.65482 14.375 5 14.375H15ZM13.125 8.125H6.875C6.52982 8.125 6.25 7.84518 6.25 7.5V6.25C6.25 5.90482 6.52982 5.625 6.875 5.625H13.125C13.4702 5.625 13.75 5.90482 13.75 6.25V7.5C13.75 7.84518 13.4702 8.125 13.125 8.125Z" fill="currentColor"/>
154
- </svg>
155
- `,
156
- tooltip: 'Align center'
147
+ tooltip: 'Align center',
148
+ iconName: 'gp-align-center'
157
149
  },
158
150
  {
159
151
  label: 'Right',
160
152
  value: 'right',
161
153
  type: 'align',
162
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
163
- <path d="M17.5208 18.75C17.866 18.75 18.1458 18.4702 18.1458 18.125V1.875C18.1458 1.52982 17.866 1.25 17.5208 1.25C17.1757 1.25 16.8958 1.52982 16.8958 1.875V18.125C16.8958 18.4702 17.1757 18.75 17.5208 18.75Z" fill="currentColor"/>
164
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.27083 7.5C6.27083 8.53553 7.11029 9.375 8.14583 9.375H14.3958C15.4314 9.375 16.2708 8.53553 16.2708 7.5V6.25C16.2708 5.21447 15.4314 4.375 14.3958 4.375H8.14583C7.11029 4.375 6.27083 5.21447 6.27083 6.25V7.5ZM8.14583 8.125C7.80065 8.125 7.52083 7.84518 7.52083 7.5V6.25C7.52083 5.90482 7.80065 5.625 8.14583 5.625H14.3958C14.741 5.625 15.0208 5.90482 15.0208 6.25V7.5C15.0208 7.84518 14.741 8.125 14.3958 8.125H8.14583Z" fill="currentColor"/>
165
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.39583 15.625C3.36029 15.625 2.52083 14.7855 2.52083 13.75V12.5C2.52083 11.4645 3.36029 10.625 4.39583 10.625H14.3958C15.4314 10.625 16.2708 11.4645 16.2708 12.5V13.75C16.2708 14.7855 15.4314 15.625 14.3958 15.625H4.39583ZM3.77083 13.75C3.77083 14.0952 4.05065 14.375 4.39583 14.375H14.3958C14.741 14.375 15.0208 14.0952 15.0208 13.75V12.5C15.0208 12.1548 14.741 11.875 14.3958 11.875H4.39583C4.05065 11.875 3.77083 12.1548 3.77083 12.5V13.75Z" fill="currentColor"/>
166
- </svg>
167
- `,
168
- tooltip: 'Align right'
154
+ tooltip: 'Align right',
155
+ iconName: 'gp-align-right'
169
156
  }
170
157
  ],
171
- default: 'center'
158
+ default: 'left'
172
159
  },
173
160
  {
174
161
  id: 'width',
@@ -14,7 +14,8 @@ const ProductQuantitySettings = [
14
14
  label: 'Text',
15
15
  type: 'input:stepper',
16
16
  min: 1,
17
- default: 1
17
+ default: 1,
18
+ disableDecimal: true
18
19
  }
19
20
  ]
20
21
  },
@@ -69,38 +70,25 @@ const ProductQuantitySettings = [
69
70
  label: 'Left',
70
71
  value: 'start',
71
72
  type: 'align',
72
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
73
- <path d="M3.47916 1.25C3.82434 1.25 4.10416 1.52982 4.10416 1.875L4.10416 18.125C4.10416 18.4702 3.82434 18.75 3.47916 18.75C3.13399 18.75 2.85416 18.4702 2.85416 18.125L2.85416 1.875C2.85416 1.52982 3.13399 1.25 3.47916 1.25Z" fill="currentColor"/>
74
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.72916 6.25C4.72916 5.21447 5.56863 4.375 6.60416 4.375H12.8542C13.8897 4.375 14.7292 5.21447 14.7292 6.25V7.5C14.7292 8.53553 13.8897 9.375 12.8542 9.375H6.60416C5.56863 9.375 4.72916 8.53553 4.72916 7.5V6.25ZM6.60416 5.625C6.25899 5.625 5.97916 5.90482 5.97916 6.25V7.5C5.97916 7.84518 6.25899 8.125 6.60416 8.125H12.8542C13.1993 8.125 13.4792 7.84518 13.4792 7.5V6.25C13.4792 5.90482 13.1993 5.625 12.8542 5.625H6.60416Z" fill="currentColor"/>
75
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.60416 10.625C5.56863 10.625 4.72916 11.4645 4.72916 12.5V13.75C4.72916 14.7855 5.56863 15.625 6.60416 15.625H16.6042C17.6397 15.625 18.4792 14.7855 18.4792 13.75V12.5C18.4792 11.4645 17.6397 10.625 16.6042 10.625H6.60416ZM5.97916 12.5C5.97916 12.1548 6.25899 11.875 6.60416 11.875H16.6042C16.9493 11.875 17.2292 12.1548 17.2292 12.5V13.75C17.2292 14.0952 16.9493 14.375 16.6042 14.375H6.60416C6.25899 14.375 5.97916 14.0952 5.97916 13.75V12.5Z" fill="currentColor"/>
76
- </svg>
77
- `,
78
- tooltip: 'Align left'
73
+ tooltip: 'Align left',
74
+ iconName: 'gp-align-left'
79
75
  },
80
76
  {
81
77
  label: 'Center',
82
78
  value: 'center',
83
79
  type: 'align',
84
- icon: `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
85
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10 1.25C10.3452 1.25 10.625 1.52982 10.625 1.875V4.375H13.125C14.1605 4.375 15 5.21447 15 6.25V7.5C15 8.53553 14.1605 9.375 13.125 9.375H10.625V10.625H15C16.0355 10.625 16.875 11.4645 16.875 12.5V13.75C16.875 14.7855 16.0355 15.625 15 15.625H10.625V18.125C10.625 18.4702 10.3452 18.75 10 18.75C9.65482 18.75 9.375 18.4702 9.375 18.125V15.625H5C3.96447 15.625 3.125 14.7855 3.125 13.75V12.5C3.125 11.4645 3.96447 10.625 5 10.625H9.375V9.375H6.875C5.83947 9.375 5 8.53553 5 7.5V6.25C5 5.21447 5.83947 4.375 6.875 4.375H9.375V1.875C9.375 1.52982 9.65482 1.25 10 1.25ZM15 14.375C15.3452 14.375 15.625 14.0952 15.625 13.75V12.5C15.625 12.1548 15.3452 11.875 15 11.875H5C4.65482 11.875 4.375 12.1548 4.375 12.5V13.75C4.375 14.0952 4.65482 14.375 5 14.375H15ZM13.125 8.125H6.875C6.52982 8.125 6.25 7.84518 6.25 7.5V6.25C6.25 5.90482 6.52982 5.625 6.875 5.625H13.125C13.4702 5.625 13.75 5.90482 13.75 6.25V7.5C13.75 7.84518 13.4702 8.125 13.125 8.125Z" fill="currentColor"/>
86
- </svg>
87
- `,
88
- tooltip: 'Align center'
80
+ tooltip: 'Align center',
81
+ iconName: 'gp-align-center'
89
82
  },
90
83
  {
91
84
  label: 'Right',
92
85
  value: 'end',
93
86
  type: 'align',
94
- icon: `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
95
- <path d="M17.5208 18.75C17.866 18.75 18.1458 18.4702 18.1458 18.125V1.875C18.1458 1.52982 17.866 1.25 17.5208 1.25C17.1757 1.25 16.8958 1.52982 16.8958 1.875V18.125C16.8958 18.4702 17.1757 18.75 17.5208 18.75Z" fill="currentColor"/>
96
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.27083 7.5C6.27083 8.53553 7.11029 9.375 8.14583 9.375H14.3958C15.4314 9.375 16.2708 8.53553 16.2708 7.5V6.25C16.2708 5.21447 15.4314 4.375 14.3958 4.375H8.14583C7.11029 4.375 6.27083 5.21447 6.27083 6.25V7.5ZM8.14583 8.125C7.80065 8.125 7.52083 7.84518 7.52083 7.5V6.25C7.52083 5.90482 7.80065 5.625 8.14583 5.625H14.3958C14.741 5.625 15.0208 5.90482 15.0208 6.25V7.5C15.0208 7.84518 14.741 8.125 14.3958 8.125H8.14583Z" fill="currentColor"/>
97
- <path fill-rule="evenodd" clip-rule="evenodd" d="M4.39583 15.625C3.36029 15.625 2.52083 14.7855 2.52083 13.75V12.5C2.52083 11.4645 3.36029 10.625 4.39583 10.625H14.3958C15.4314 10.625 16.2708 11.4645 16.2708 12.5V13.75C16.2708 14.7855 15.4314 15.625 14.3958 15.625H4.39583ZM3.77083 13.75C3.77083 14.0952 4.05065 14.375 4.39583 14.375H14.3958C14.741 14.375 15.0208 14.0952 15.0208 13.75V12.5C15.0208 12.1548 14.741 11.875 14.3958 11.875H4.39583C4.05065 11.875 3.77083 12.1548 3.77083 12.5V13.75Z" fill="currentColor"/>
98
- </svg>
99
- `,
100
- tooltip: 'Align right'
87
+ tooltip: 'Align right',
88
+ iconName: 'gp-align-right'
101
89
  }
102
90
  ],
103
- default: 'center'
91
+ default: 'start'
104
92
  }
105
93
  ]
106
94
  }
@@ -79,25 +79,29 @@ const settingV2 = [
79
79
  label: 'Left',
80
80
  value: 'left',
81
81
  type: 'text',
82
- tooltip: 'Align left'
82
+ tooltip: 'Align left',
83
+ iconName: 'polaris-text-align-left'
83
84
  },
84
85
  {
85
86
  label: 'Center',
86
87
  value: 'center',
87
88
  type: 'text',
88
- tooltip: 'Align center'
89
+ tooltip: 'Align center',
90
+ iconName: 'polaris-text-align-center'
89
91
  },
90
92
  {
91
93
  label: 'Right',
92
94
  value: 'right',
93
95
  type: 'text',
94
- tooltip: 'Align right'
96
+ tooltip: 'Align right',
97
+ iconName: 'polaris-text-align-right'
95
98
  },
96
99
  {
97
100
  label: 'Justify',
98
101
  value: 'justify',
99
102
  type: 'text',
100
- tooltip: 'Align justify'
103
+ tooltip: 'Align justify',
104
+ iconName: 'gp-text-align-justify'
101
105
  }
102
106
  ],
103
107
  default: 'left'
@@ -73,7 +73,7 @@ const uiV2 = [
73
73
  label: {
74
74
  en: 'Align'
75
75
  },
76
- conditionEnable: `width !== '100%'`,
76
+ conditionEnable: `activeScreenId === 'desktop' ? width !== '100%' : (width !== '100%' && width !== 'default')`,
77
77
  setting: {
78
78
  id: 'align'
79
79
  },
@@ -5011,10 +5011,7 @@ declare const _default$7: {
5011
5011
  };
5012
5012
 
5013
5013
  type PostPurchaseLinkProps = BasePropsWrap<{
5014
- link?: {
5015
- link?: string;
5016
- target?: string;
5017
- };
5014
+ link?: string;
5018
5015
  label?: string;
5019
5016
  width?: ObjectDevices<string>;
5020
5017
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.250",
3
+ "version": "2.0.0-dev.253",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -22,7 +22,7 @@
22
22
  "relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js"
23
23
  },
24
24
  "devDependencies": {
25
- "@gem-sdk/core": "2.0.0-dev.249",
25
+ "@gem-sdk/core": "2.0.0-dev.251",
26
26
  "@gem-sdk/styles": "2.0.0-dev.234",
27
27
  "@gem-sdk/system": "2.0.0-dev.234",
28
28
  "@types/react-transition-group": "^4.4.5"