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

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.
@@ -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
  };
@@ -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
  },
@@ -52,10 +52,10 @@ const SettingUIV2 = [
52
52
  desktop: {
53
53
  default: {
54
54
  type: 'medium',
55
- top: '8px',
56
- bottom: '8px',
57
- left: '12px',
58
- right: '12px'
55
+ top: '16px',
56
+ bottom: '16px',
57
+ left: '16px',
58
+ right: '16px'
59
59
  }
60
60
  }
61
61
  }
@@ -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
  };
@@ -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
  },
@@ -50,10 +50,10 @@ const SettingUIV2 = [
50
50
  desktop: {
51
51
  default: {
52
52
  type: 'medium',
53
- top: '8px',
54
- bottom: '8px',
55
- left: '12px',
56
- right: '12px'
53
+ top: '16px',
54
+ bottom: '16px',
55
+ left: '16px',
56
+ right: '16px'
57
57
  }
58
58
  }
59
59
  }
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.497",
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"