@gem-sdk/components 2.0.0-dev.443 → 2.0.0-dev.446

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 (29) hide show
  1. package/dist/cjs/form/components/contact/common/composeStyles.js +0 -2
  2. package/dist/cjs/form/components/form-email/FormEmail.liquid.js +1 -1
  3. package/dist/cjs/form/setting/contact/ContactInitConfig.js +271 -150
  4. package/dist/cjs/form/setting/contact/configs/settings.js +20 -13
  5. package/dist/cjs/form/setting/contact/configs/uiV2.js +3 -12
  6. package/dist/cjs/form/setting/form-textarea/configs/uiV2.js +1 -1
  7. package/dist/cjs/form/setting/text-field/configs/settings.js +2 -2
  8. package/dist/cjs/icon/setting/configs/uiV2.js +31 -28
  9. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -0
  10. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +2 -2
  11. package/dist/cjs/product/components/ProductDiscountTag/common/getStyle.js +6 -1
  12. package/dist/cjs/product/setting/product-price/configs/uiV2.js +2 -0
  13. package/dist/cjs/sticky/setting/preset-config.js +15 -0
  14. package/dist/cjs/text/components/Text.liquid.js +1 -0
  15. package/dist/esm/form/components/contact/common/composeStyles.js +1 -3
  16. package/dist/esm/form/components/form-email/FormEmail.liquid.js +1 -1
  17. package/dist/esm/form/setting/contact/ContactInitConfig.js +271 -150
  18. package/dist/esm/form/setting/contact/configs/settings.js +20 -13
  19. package/dist/esm/form/setting/contact/configs/uiV2.js +3 -12
  20. package/dist/esm/form/setting/form-textarea/configs/uiV2.js +1 -1
  21. package/dist/esm/form/setting/text-field/configs/settings.js +2 -2
  22. package/dist/esm/icon/setting/configs/uiV2.js +31 -28
  23. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -0
  24. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.liquid.js +2 -2
  25. package/dist/esm/product/components/ProductDiscountTag/common/getStyle.js +6 -1
  26. package/dist/esm/product/setting/product-price/configs/uiV2.js +2 -0
  27. package/dist/esm/sticky/setting/preset-config.js +15 -0
  28. package/dist/esm/text/components/Text.liquid.js +1 -0
  29. package/package.json +1 -1
@@ -75,37 +75,40 @@ const SettingUIV2 = [
75
75
  state: 'normal'
76
76
  }
77
77
  }
78
- ],
79
- moreSettings: {
80
- controls: [
81
- {
82
- label: {
83
- en: 'Border'
84
- },
85
- setting: {
86
- id: 'iconBorder',
87
- state: 'normal'
88
- }
78
+ ]
79
+ },
80
+ {
81
+ label: {
82
+ en: 'Shape'
83
+ },
84
+ controls: [
85
+ {
86
+ label: {
87
+ en: 'Border'
89
88
  },
90
- {
91
- label: {
92
- en: 'Corner'
93
- },
94
- setting: {
95
- id: 'iconRounded',
96
- state: 'normal'
97
- }
89
+ setting: {
90
+ id: 'iconBorder',
91
+ state: 'normal'
92
+ }
93
+ },
94
+ {
95
+ label: {
96
+ en: 'Corner'
98
97
  },
99
- {
100
- label: {
101
- en: 'Shadow'
102
- },
103
- setting: {
104
- id: 'iconShadow'
105
- }
98
+ setting: {
99
+ id: 'iconRounded',
100
+ state: 'normal'
106
101
  }
107
- ]
108
- }
102
+ },
103
+ {
104
+ label: {
105
+ en: 'Shadow'
106
+ },
107
+ setting: {
108
+ id: 'iconShadow'
109
+ }
110
+ }
111
+ ]
109
112
  },
110
113
  {
111
114
  label: {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -18,7 +18,7 @@ const ProductBundleDiscountChildrenItemLiquid = (props)=>{
18
18
  const composeItemClasses = system.createClass(classes.getItemClasses);
19
19
  const composeFlexChildren = system.createClass(styles.getFlexChildren);
20
20
  return core.template`
21
- <div ${bundleItem} aria-hidden class="${composeItemClasses}" style="${composeItemWrapStyles}">
21
+ <gp-product-bundle-discount-item ${bundleItem} aria-hidden class="${composeItemClasses}" style="${composeItemWrapStyles}">
22
22
  <div class="${composeLayoutClasses}">
23
23
  ${system.If(setting?.enableIcon, core.template`
24
24
  <div class="${composeIconSectionClasses}" style="${composeIconStyles}">
@@ -39,7 +39,7 @@ const ProductBundleDiscountChildrenItemLiquid = (props)=>{
39
39
  })}
40
40
  </div>
41
41
  </div>
42
- </div>
42
+ </gp-product-bundle-discount-item>
43
43
  `;
44
44
  };
45
45
 
@@ -9,6 +9,11 @@ const getRootClass = (styles)=>{
9
9
  return core.filterTruthyStyles(composeStyles);
10
10
  };
11
11
  const getWrapperTextStyle = (styles)=>{
12
+ const globalRadiusTypeList = [
13
+ 'small',
14
+ 'medium',
15
+ 'large'
16
+ ];
12
17
  const { backgroundColor, roundedTag, borderTag, textColor } = styles ?? {};
13
18
  const composeGlobalSize = core.makeGlobalSize(styles?.size);
14
19
  const borderColorClass = core.getGlobalColorClass('border', borderTag?.color);
@@ -24,7 +29,7 @@ const getWrapperTextStyle = (styles)=>{
24
29
  c: textColorClass === '' ? textColor : undefined,
25
30
  bg: backgroundColorClass === '' ? backgroundColor : undefined
26
31
  }),
27
- ...roundedTag?.radiusType !== 'custom' ? core.getRadiusCSSFromGlobal('normal', roundedTag?.radiusType) : {},
32
+ ...globalRadiusTypeList.includes(roundedTag?.radiusType || '') && core.getRadiusCSSFromGlobal('normal', roundedTag?.radiusType),
28
33
  ...core.getCustomRadius('normal', roundedTag)
29
34
  };
30
35
  return core.filterTruthyStyles(composeStyles);
@@ -82,6 +82,8 @@ const SettingUIV2 = [
82
82
  },
83
83
  getValueFromSettingID: 'lineColor',
84
84
  comboType: 'color',
85
+ defaultValueWhenClear: '',
86
+ compoDefaultValue: 'text-1',
85
87
  controls: [
86
88
  {
87
89
  label: {
@@ -981,6 +981,7 @@ const StickyPresetScrollToTop = {
981
981
  tag: 'Button',
982
982
  label: 'Button',
983
983
  settings: {
984
+ enableBtnLink: true,
984
985
  btnLink: {
985
986
  link: '#scroll-to-top',
986
987
  selectedTab: 'scrollToList',
@@ -998,6 +999,7 @@ const StickyPresetScrollToTop = {
998
999
  translate: 'label'
999
1000
  },
1000
1001
  styles: {
1002
+ enableTextStyle: false,
1001
1003
  align: {
1002
1004
  desktop: 'right'
1003
1005
  },
@@ -1043,6 +1045,19 @@ const StickyPresetScrollToTop = {
1043
1045
  type: 'custom'
1044
1046
  },
1045
1047
  width: 'Auto'
1048
+ },
1049
+ mobile: {
1050
+ gap: '',
1051
+ height: 'Auto',
1052
+ padding: {
1053
+ bottom: '12px',
1054
+ left: '12px',
1055
+ linked: true,
1056
+ right: '12px',
1057
+ top: '12px',
1058
+ type: 'custom'
1059
+ },
1060
+ width: 'Auto'
1046
1061
  }
1047
1062
  },
1048
1063
  hasBoxShadowBtn: {
@@ -64,6 +64,7 @@ const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, cl
64
64
  }}
65
65
  class="${wrapperClasses}"
66
66
  style="${wrapperStyle}"
67
+ data-test-force-publish="${new Date().getTime()}"
67
68
  >
68
69
  <div class="${containerClasses}" style="${containerStyle}">
69
70
  <${Element}
@@ -1,5 +1,5 @@
1
1
  import { filterTruthy } from '../../../helpers/common.js';
2
- import { makeGlobalSize, composeBorderResponsive, composeRadiusResponsive, getResponsiveStyleShadowWithoutState, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
2
+ import { makeGlobalSize, composeBorderResponsive, composeRadiusResponsive, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
3
3
 
4
4
  const composeStyles = (styles)=>filterTruthy(styles);
5
5
  const composeContainerStyles = (setting, styles)=>{
@@ -7,14 +7,12 @@ const composeContainerStyles = (setting, styles)=>{
7
7
  const { globalSize } = styles ?? {};
8
8
  const composeGlobalSize = makeGlobalSize(globalSize);
9
9
  return composeStyles({
10
- ...styles,
11
10
  ...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
12
11
  '--w': '100%'
13
12
  },
14
13
  ...composeGlobalSize.padding,
15
14
  ...composeBorderResponsive(styles?.border),
16
15
  ...composeRadiusResponsive(styles?.rounded),
17
- ...getResponsiveStyleShadowWithoutState(styles?.boxShadow, 'box-shadow', styles?.boxShadow),
18
16
  ...getStyleBackgroundByDevice(background),
19
17
  ...getGradientBgrStyleByDevice(background)
20
18
  });
@@ -42,7 +42,7 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, pageContext,
42
42
  name="${name}"
43
43
  ${If(required, 'required')}
44
44
  autocomplete="email"
45
- ${If(hideOnClient, `value="${defaultEmail}`)}
45
+ ${If(hideOnClient, `value="${defaultEmail}"`)}
46
46
  ></input>
47
47
  </div>
48
48
  `;