@gem-sdk/components 2.0.0-dev.496 → 2.0.0-dev.498

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 (25) hide show
  1. package/dist/cjs/carousel/setting/configs/uiV2.js +1 -1
  2. package/dist/cjs/form/components/contact/common/composeStyles.js +3 -1
  3. package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +1 -1
  4. package/dist/cjs/form/setting/contact/configs/settings.js +0 -12
  5. package/dist/cjs/form/setting/contact/configs/uiV2.js +4 -8
  6. package/dist/cjs/form/setting/newsletter/configs/settings.js +2 -8
  7. package/dist/cjs/form/setting/newsletter/configs/uiV2.js +5 -9
  8. package/dist/cjs/icon-list/common/styles.js +1 -0
  9. package/dist/cjs/icon-list/setting/IconList.js +22 -17
  10. package/dist/cjs/icon-list/setting/configs/settings.js +2 -14
  11. package/dist/cjs/icon-list/setting/configs/uiV2.js +5 -5
  12. package/dist/cjs/product/setting/product-properties/configs/uiV2.js +1 -1
  13. package/dist/esm/carousel/setting/configs/uiV2.js +1 -1
  14. package/dist/esm/form/components/contact/common/composeStyles.js +3 -1
  15. package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -1
  16. package/dist/esm/form/setting/contact/configs/settings.js +0 -12
  17. package/dist/esm/form/setting/contact/configs/uiV2.js +4 -8
  18. package/dist/esm/form/setting/newsletter/configs/settings.js +2 -8
  19. package/dist/esm/form/setting/newsletter/configs/uiV2.js +5 -9
  20. package/dist/esm/icon-list/common/styles.js +1 -0
  21. package/dist/esm/icon-list/setting/IconList.js +22 -17
  22. package/dist/esm/icon-list/setting/configs/settings.js +2 -14
  23. package/dist/esm/icon-list/setting/configs/uiV2.js +5 -5
  24. package/dist/esm/product/setting/product-properties/configs/uiV2.js +1 -1
  25. package/package.json +2 -2
@@ -580,7 +580,7 @@ const SettingUIV2 = [
580
580
  options: {
581
581
  updateFields: [
582
582
  {
583
- field: 'normal.enable',
583
+ field: 'enable',
584
584
  settingId: 'hasBoxShadow',
585
585
  state: 'normal'
586
586
  }
@@ -7,7 +7,9 @@ const composeStyles = (styles)=>common.filterTruthy(styles);
7
7
  const composeContainerStyles = (setting, styles, style)=>{
8
8
  const { background } = setting ?? {};
9
9
  const { globalSize } = styles ?? {};
10
- const composeGlobalSize = core.makeGlobalSize(globalSize);
10
+ const composeGlobalSize = core.makeGlobalSize({
11
+ ...globalSize
12
+ });
11
13
  return composeStyles({
12
14
  ...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
13
15
  '--w': '100%'
@@ -24,7 +24,7 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
24
24
  uid: builderProps?.uid,
25
25
  settingId: 'successMessage',
26
26
  pageContext,
27
- defaultVal: pageContext?.isPreviewing ? `Thanks for contacting us. We'll get back to you as soon as possible.` : helpers.getStaticLocale('Newsletter', 'success_msg_default'),
27
+ defaultVal: pageContext?.isPreviewing ? `Thanks for subscribing` : helpers.getStaticLocale('Newsletter', 'success_msg_default'),
28
28
  translate: setting?.translate
29
29
  });
30
30
  const containerAttrs = composeAttrs.composeContainerAttrs(builderProps, setting);
@@ -6,12 +6,6 @@ const ContactSettings = [
6
6
  {
7
7
  id: 'setting',
8
8
  controls: [
9
- {
10
- id: 'contentBanner',
11
- type: 'banner',
12
- message: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`,
13
- closable: true
14
- },
15
9
  {
16
10
  id: 'callbackURL',
17
11
  type: 'pick-link',
@@ -23,12 +17,6 @@ const ContactSettings = [
23
17
  type: 'stay-on-page',
24
18
  link: '',
25
19
  target: '_self'
26
- },
27
- hiddenOptions: {
28
- 'scroll-to': true,
29
- 'open-popup': true,
30
- 'send-email': true,
31
- 'call-phone': true
32
20
  }
33
21
  },
34
22
  {
@@ -2,14 +2,10 @@
2
2
 
3
3
  const SettingUIV2 = [
4
4
  {
5
- controls: [
6
- {
7
- setting: {
8
- id: 'contentBanner'
9
- },
10
- layout: 'vertical'
11
- }
12
- ]
5
+ messageConfig: {
6
+ type: 'info',
7
+ message: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`
8
+ }
13
9
  },
14
10
  {
15
11
  label: {
@@ -6,12 +6,6 @@ const NewsletterSettings = [
6
6
  {
7
7
  id: 'setting',
8
8
  controls: [
9
- {
10
- id: 'contentBanner',
11
- type: 'banner',
12
- message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`,
13
- closable: true
14
- },
15
9
  {
16
10
  id: 'afterSubmitAction',
17
11
  type: 'select',
@@ -44,10 +38,10 @@ const NewsletterSettings = [
44
38
  id: 'successMessage',
45
39
  type: 'textarea',
46
40
  label: 'Success Message',
47
- default: "Thanks for contacting us. We'll get back to you as soon as possible.",
41
+ default: 'Thanks for subscribing',
48
42
  autoHeight: true,
49
43
  minHeight: 58,
50
- compoDefaultValue: "Thanks for contacting us. We'll get back to you as soon as possible."
44
+ compoDefaultValue: 'Thanks for subscribing'
51
45
  },
52
46
  {
53
47
  id: 'successColor',
@@ -2,14 +2,10 @@
2
2
 
3
3
  const SettingUIV2 = [
4
4
  {
5
- controls: [
6
- {
7
- setting: {
8
- id: 'contentBanner'
9
- },
10
- layout: 'vertical'
11
- }
12
- ]
5
+ messageConfig: {
6
+ type: 'info',
7
+ message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`
8
+ }
13
9
  },
14
10
  {
15
11
  label: {
@@ -25,7 +21,7 @@ const SettingUIV2 = [
25
21
  getValueFromSettingID: 'successMessage',
26
22
  isHideClear: true,
27
23
  disableScrollbar: true,
28
- compoDefaultValue: "Thanks for contacting us. We'll get back to you as soon as possible.",
24
+ compoDefaultValue: 'Thanks for subscribing',
29
25
  popoverLabel: {
30
26
  en: 'Success message'
31
27
  },
@@ -25,6 +25,7 @@ const getItemStyles = (parentStyles)=>{
25
25
  ...core.composeRadiusResponsive(parentStyles?.itemRounded),
26
26
  ...core.composeBorderResponsive(parentStyles?.itemBorder),
27
27
  ...core.getGlobalColorResponsiveStyle('bgc', parentStyles?.itemBackgroundColor),
28
+ ...core.getGlobalColorResponsiveStyle('bgi', parentStyles?.itemBackgroundColor),
28
29
  ...core.makeStyleResponsive('cg', parentStyles?.horizontalSpacing)
29
30
  };
30
31
  };
@@ -129,23 +129,23 @@ const config = {
129
129
  presetId: 'icon-list-ver1-2-image'
130
130
  },
131
131
  advanced: {
132
- hasBoxShadow: {
133
- desktop: {
134
- normal: true
135
- }
136
- },
137
- boxShadow: {
138
- desktop: {
139
- normal: {
140
- type: 'shadow-1',
141
- distance: '0px',
142
- blur: '10px',
143
- spread: '0px',
144
- color: 'rgba(0, 0, 0, 0.1)',
145
- angle: 90
146
- }
147
- }
148
- },
132
+ // hasBoxShadow: {
133
+ // desktop: {
134
+ // normal: true,
135
+ // },
136
+ // },
137
+ // boxShadow: {
138
+ // desktop: {
139
+ // normal: {
140
+ // type: 'shadow-1',
141
+ // distance: '0px',
142
+ // blur: '10px',
143
+ // spread: '0px',
144
+ // color: 'rgba(0, 0, 0, 0.1)',
145
+ // angle: 90,
146
+ // },
147
+ // },
148
+ // },
149
149
  'spacing-setting': {
150
150
  desktop: {
151
151
  margin: {
@@ -172,6 +172,11 @@ const config = {
172
172
  },
173
173
  rootOverride: {
174
174
  styles: {
175
+ globalSize: {
176
+ desktop: {
177
+ width: '1200px'
178
+ }
179
+ },
175
180
  align: {
176
181
  desktop: 'left'
177
182
  }
@@ -148,13 +148,7 @@ const IconListSettings = [
148
148
  devices: {
149
149
  desktop: {
150
150
  default: {
151
- padding: {
152
- type: 'medium',
153
- top: '8px',
154
- bottom: '8px',
155
- left: '12px',
156
- right: '12px'
157
- }
151
+ padding: {}
158
152
  }
159
153
  }
160
154
  },
@@ -245,13 +239,7 @@ const IconListSettings = [
245
239
  desktop: {
246
240
  default: {
247
241
  width: '100%',
248
- padding: {
249
- type: 'medium',
250
- top: '8px',
251
- bottom: '8px',
252
- left: '12px',
253
- right: '12px'
254
- }
242
+ padding: {}
255
243
  }
256
244
  },
257
245
  mobile: {
@@ -54,8 +54,8 @@ const SettingUIV2 = [
54
54
  type: 'medium',
55
55
  top: '8px',
56
56
  bottom: '8px',
57
- left: '12px',
58
- right: '12px'
57
+ left: '16px',
58
+ right: '16px'
59
59
  }
60
60
  }
61
61
  }
@@ -162,7 +162,7 @@ const SettingUIV2 = [
162
162
  default: {
163
163
  type: 'medium',
164
164
  top: '16px',
165
- bottom: '12px',
165
+ bottom: '16px',
166
166
  left: '16px',
167
167
  right: '16px'
168
168
  }
@@ -243,8 +243,8 @@ const SettingUIV2 = [
243
243
  options: {
244
244
  updateFields: [
245
245
  {
246
- field: 'normal.enable',
247
- settingId: 'hasBoxShadow',
246
+ field: 'enable',
247
+ settingId: 'advanced.hasBoxShadow',
248
248
  state: 'normal'
249
249
  }
250
250
  ]
@@ -201,7 +201,7 @@ const SettingUIV2 = [
201
201
  options: {
202
202
  updateFields: [
203
203
  {
204
- field: 'normal.enable',
204
+ field: 'enable',
205
205
  settingId: 'hasShadowInput',
206
206
  state: 'normal'
207
207
  }
@@ -578,7 +578,7 @@ const SettingUIV2 = [
578
578
  options: {
579
579
  updateFields: [
580
580
  {
581
- field: 'normal.enable',
581
+ field: 'enable',
582
582
  settingId: 'hasBoxShadow',
583
583
  state: 'normal'
584
584
  }
@@ -5,7 +5,9 @@ const composeStyles = (styles)=>filterTruthy(styles);
5
5
  const composeContainerStyles = (setting, styles, style)=>{
6
6
  const { background } = setting ?? {};
7
7
  const { globalSize } = styles ?? {};
8
- const composeGlobalSize = makeGlobalSize(globalSize);
8
+ const composeGlobalSize = makeGlobalSize({
9
+ ...globalSize
10
+ });
9
11
  return composeStyles({
10
12
  ...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
11
13
  '--w': '100%'
@@ -20,7 +20,7 @@ const Newsletter = ({ builderProps, setting, children, style, formType, advanced
20
20
  uid: builderProps?.uid,
21
21
  settingId: 'successMessage',
22
22
  pageContext,
23
- defaultVal: pageContext?.isPreviewing ? `Thanks for contacting us. We'll get back to you as soon as possible.` : getStaticLocale('Newsletter', 'success_msg_default'),
23
+ defaultVal: pageContext?.isPreviewing ? `Thanks for subscribing` : getStaticLocale('Newsletter', 'success_msg_default'),
24
24
  translate: setting?.translate
25
25
  });
26
26
  const containerAttrs = composeContainerAttrs(builderProps, setting);
@@ -2,12 +2,6 @@ const ContactSettings = [
2
2
  {
3
3
  id: 'setting',
4
4
  controls: [
5
- {
6
- id: 'contentBanner',
7
- type: 'banner',
8
- message: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`,
9
- closable: true
10
- },
11
5
  {
12
6
  id: 'callbackURL',
13
7
  type: 'pick-link',
@@ -19,12 +13,6 @@ const ContactSettings = [
19
13
  type: 'stay-on-page',
20
14
  link: '',
21
15
  target: '_self'
22
- },
23
- hiddenOptions: {
24
- 'scroll-to': true,
25
- 'open-popup': true,
26
- 'send-email': true,
27
- 'call-phone': true
28
16
  }
29
17
  },
30
18
  {
@@ -1,13 +1,9 @@
1
1
  const SettingUIV2 = [
2
2
  {
3
- controls: [
4
- {
5
- setting: {
6
- id: 'contentBanner'
7
- },
8
- layout: 'vertical'
9
- }
10
- ]
3
+ messageConfig: {
4
+ type: 'info',
5
+ message: `This element sends submissions to <a class="no-underline text-primary-250" target="_blank" href="https://help.shopify.com/en/manual/customers/manage-customers#email-customers">the sender email address</a>`
6
+ }
11
7
  },
12
8
  {
13
9
  label: {
@@ -2,12 +2,6 @@ const NewsletterSettings = [
2
2
  {
3
3
  id: 'setting',
4
4
  controls: [
5
- {
6
- id: 'contentBanner',
7
- type: 'banner',
8
- message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`,
9
- closable: true
10
- },
11
5
  {
12
6
  id: 'afterSubmitAction',
13
7
  type: 'select',
@@ -40,10 +34,10 @@ const NewsletterSettings = [
40
34
  id: 'successMessage',
41
35
  type: 'textarea',
42
36
  label: 'Success Message',
43
- default: "Thanks for contacting us. We'll get back to you as soon as possible.",
37
+ default: 'Thanks for subscribing',
44
38
  autoHeight: true,
45
39
  minHeight: 58,
46
- compoDefaultValue: "Thanks for contacting us. We'll get back to you as soon as possible."
40
+ compoDefaultValue: 'Thanks for subscribing'
47
41
  },
48
42
  {
49
43
  id: 'successColor',
@@ -1,13 +1,9 @@
1
1
  const SettingUIV2 = [
2
2
  {
3
- controls: [
4
- {
5
- setting: {
6
- id: 'contentBanner'
7
- },
8
- layout: 'vertical'
9
- }
10
- ]
3
+ messageConfig: {
4
+ type: 'info',
5
+ message: `You can manage collected email in <a class="no-underline text-primary-250" target="_blank" href="https://admin.shopify.com/customers">Customers</a>`
6
+ }
11
7
  },
12
8
  {
13
9
  label: {
@@ -23,7 +19,7 @@ const SettingUIV2 = [
23
19
  getValueFromSettingID: 'successMessage',
24
20
  isHideClear: true,
25
21
  disableScrollbar: true,
26
- compoDefaultValue: "Thanks for contacting us. We'll get back to you as soon as possible.",
22
+ compoDefaultValue: 'Thanks for subscribing',
27
23
  popoverLabel: {
28
24
  en: 'Success message'
29
25
  },
@@ -23,6 +23,7 @@ const getItemStyles = (parentStyles)=>{
23
23
  ...composeRadiusResponsive(parentStyles?.itemRounded),
24
24
  ...composeBorderResponsive(parentStyles?.itemBorder),
25
25
  ...getGlobalColorResponsiveStyle('bgc', parentStyles?.itemBackgroundColor),
26
+ ...getGlobalColorResponsiveStyle('bgi', parentStyles?.itemBackgroundColor),
26
27
  ...makeStyleResponsive('cg', parentStyles?.horizontalSpacing)
27
28
  };
28
29
  };
@@ -125,23 +125,23 @@ const config = {
125
125
  presetId: 'icon-list-ver1-2-image'
126
126
  },
127
127
  advanced: {
128
- hasBoxShadow: {
129
- desktop: {
130
- normal: true
131
- }
132
- },
133
- boxShadow: {
134
- desktop: {
135
- normal: {
136
- type: 'shadow-1',
137
- distance: '0px',
138
- blur: '10px',
139
- spread: '0px',
140
- color: 'rgba(0, 0, 0, 0.1)',
141
- angle: 90
142
- }
143
- }
144
- },
128
+ // hasBoxShadow: {
129
+ // desktop: {
130
+ // normal: true,
131
+ // },
132
+ // },
133
+ // boxShadow: {
134
+ // desktop: {
135
+ // normal: {
136
+ // type: 'shadow-1',
137
+ // distance: '0px',
138
+ // blur: '10px',
139
+ // spread: '0px',
140
+ // color: 'rgba(0, 0, 0, 0.1)',
141
+ // angle: 90,
142
+ // },
143
+ // },
144
+ // },
145
145
  'spacing-setting': {
146
146
  desktop: {
147
147
  margin: {
@@ -168,6 +168,11 @@ const config = {
168
168
  },
169
169
  rootOverride: {
170
170
  styles: {
171
+ globalSize: {
172
+ desktop: {
173
+ width: '1200px'
174
+ }
175
+ },
171
176
  align: {
172
177
  desktop: 'left'
173
178
  }
@@ -146,13 +146,7 @@ const IconListSettings = [
146
146
  devices: {
147
147
  desktop: {
148
148
  default: {
149
- padding: {
150
- type: 'medium',
151
- top: '8px',
152
- bottom: '8px',
153
- left: '12px',
154
- right: '12px'
155
- }
149
+ padding: {}
156
150
  }
157
151
  }
158
152
  },
@@ -243,13 +237,7 @@ const IconListSettings = [
243
237
  desktop: {
244
238
  default: {
245
239
  width: '100%',
246
- padding: {
247
- type: 'medium',
248
- top: '8px',
249
- bottom: '8px',
250
- left: '12px',
251
- right: '12px'
252
- }
240
+ padding: {}
253
241
  }
254
242
  },
255
243
  mobile: {
@@ -52,8 +52,8 @@ const SettingUIV2 = [
52
52
  type: 'medium',
53
53
  top: '8px',
54
54
  bottom: '8px',
55
- left: '12px',
56
- right: '12px'
55
+ left: '16px',
56
+ right: '16px'
57
57
  }
58
58
  }
59
59
  }
@@ -160,7 +160,7 @@ const SettingUIV2 = [
160
160
  default: {
161
161
  type: 'medium',
162
162
  top: '16px',
163
- bottom: '12px',
163
+ bottom: '16px',
164
164
  left: '16px',
165
165
  right: '16px'
166
166
  }
@@ -241,8 +241,8 @@ const SettingUIV2 = [
241
241
  options: {
242
242
  updateFields: [
243
243
  {
244
- field: 'normal.enable',
245
- settingId: 'hasBoxShadow',
244
+ field: 'enable',
245
+ settingId: 'advanced.hasBoxShadow',
246
246
  state: 'normal'
247
247
  }
248
248
  ]
@@ -199,7 +199,7 @@ const SettingUIV2 = [
199
199
  options: {
200
200
  updateFields: [
201
201
  {
202
- field: 'normal.enable',
202
+ field: 'enable',
203
203
  settingId: 'hasShadowInput',
204
204
  state: 'normal'
205
205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.496",
3
+ "version": "2.0.0-dev.498",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -23,7 +23,7 @@
23
23
  "update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
24
24
  },
25
25
  "devDependencies": {
26
- "@gem-sdk/core": "2.0.0-dev.479",
26
+ "@gem-sdk/core": "2.0.0-dev.497",
27
27
  "@gem-sdk/styles": "2.0.0-dev.482",
28
28
  "@gem-sdk/system": "2.0.0-dev.464",
29
29
  "@types/react-transition-group": "^4.4.5"