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

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 (27) 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/ProductDiscountTag/common/getStyle.js +6 -1
  11. package/dist/cjs/product/setting/product-price/configs/uiV2.js +2 -0
  12. package/dist/cjs/sticky/setting/preset-config.js +15 -0
  13. package/dist/cjs/text/components/Text.liquid.js +1 -0
  14. package/dist/esm/form/components/contact/common/composeStyles.js +1 -3
  15. package/dist/esm/form/components/form-email/FormEmail.liquid.js +1 -1
  16. package/dist/esm/form/setting/contact/ContactInitConfig.js +271 -150
  17. package/dist/esm/form/setting/contact/configs/settings.js +20 -13
  18. package/dist/esm/form/setting/contact/configs/uiV2.js +3 -12
  19. package/dist/esm/form/setting/form-textarea/configs/uiV2.js +1 -1
  20. package/dist/esm/form/setting/text-field/configs/settings.js +2 -2
  21. package/dist/esm/icon/setting/configs/uiV2.js +31 -28
  22. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +1 -0
  23. package/dist/esm/product/components/ProductDiscountTag/common/getStyle.js +6 -1
  24. package/dist/esm/product/setting/product-price/configs/uiV2.js +2 -0
  25. package/dist/esm/sticky/setting/preset-config.js +15 -0
  26. package/dist/esm/text/components/Text.liquid.js +1 -0
  27. package/package.json +1 -1
@@ -73,37 +73,40 @@ const SettingUIV2 = [
73
73
  state: 'normal'
74
74
  }
75
75
  }
76
- ],
77
- moreSettings: {
78
- controls: [
79
- {
80
- label: {
81
- en: 'Border'
82
- },
83
- setting: {
84
- id: 'iconBorder',
85
- state: 'normal'
86
- }
76
+ ]
77
+ },
78
+ {
79
+ label: {
80
+ en: 'Shape'
81
+ },
82
+ controls: [
83
+ {
84
+ label: {
85
+ en: 'Border'
87
86
  },
88
- {
89
- label: {
90
- en: 'Corner'
91
- },
92
- setting: {
93
- id: 'iconRounded',
94
- state: 'normal'
95
- }
87
+ setting: {
88
+ id: 'iconBorder',
89
+ state: 'normal'
90
+ }
91
+ },
92
+ {
93
+ label: {
94
+ en: 'Corner'
96
95
  },
97
- {
98
- label: {
99
- en: 'Shadow'
100
- },
101
- setting: {
102
- id: 'iconShadow'
103
- }
96
+ setting: {
97
+ id: 'iconRounded',
98
+ state: 'normal'
104
99
  }
105
- ]
106
- }
100
+ },
101
+ {
102
+ label: {
103
+ en: 'Shadow'
104
+ },
105
+ setting: {
106
+ id: 'iconShadow'
107
+ }
108
+ }
109
+ ]
107
110
  },
108
111
  {
109
112
  label: {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsx, jsxs } from 'react/jsx-runtime';
2
3
  import { getItemWrapStyles, getIconStyles, getSvgActiveStyles, getSvgStyles, getFlexChildren } from '../common/styles.js';
3
4
  import { createStyle, createClass, If } from '@gem-sdk/system';
@@ -7,6 +7,11 @@ const getRootClass = (styles)=>{
7
7
  return filterTruthyStyles(composeStyles);
8
8
  };
9
9
  const getWrapperTextStyle = (styles)=>{
10
+ const globalRadiusTypeList = [
11
+ 'small',
12
+ 'medium',
13
+ 'large'
14
+ ];
10
15
  const { backgroundColor, roundedTag, borderTag, textColor } = styles ?? {};
11
16
  const composeGlobalSize = makeGlobalSize(styles?.size);
12
17
  const borderColorClass = getGlobalColorClass('border', borderTag?.color);
@@ -22,7 +27,7 @@ const getWrapperTextStyle = (styles)=>{
22
27
  c: textColorClass === '' ? textColor : undefined,
23
28
  bg: backgroundColorClass === '' ? backgroundColor : undefined
24
29
  }),
25
- ...roundedTag?.radiusType !== 'custom' ? getRadiusCSSFromGlobal('normal', roundedTag?.radiusType) : {},
30
+ ...globalRadiusTypeList.includes(roundedTag?.radiusType || '') && getRadiusCSSFromGlobal('normal', roundedTag?.radiusType),
26
31
  ...getCustomRadius('normal', roundedTag)
27
32
  };
28
33
  return filterTruthyStyles(composeStyles);
@@ -80,6 +80,8 @@ const SettingUIV2 = [
80
80
  },
81
81
  getValueFromSettingID: 'lineColor',
82
82
  comboType: 'color',
83
+ defaultValueWhenClear: '',
84
+ compoDefaultValue: 'text-1',
83
85
  controls: [
84
86
  {
85
87
  label: {
@@ -979,6 +979,7 @@ const StickyPresetScrollToTop = {
979
979
  tag: 'Button',
980
980
  label: 'Button',
981
981
  settings: {
982
+ enableBtnLink: true,
982
983
  btnLink: {
983
984
  link: '#scroll-to-top',
984
985
  selectedTab: 'scrollToList',
@@ -996,6 +997,7 @@ const StickyPresetScrollToTop = {
996
997
  translate: 'label'
997
998
  },
998
999
  styles: {
1000
+ enableTextStyle: false,
999
1001
  align: {
1000
1002
  desktop: 'right'
1001
1003
  },
@@ -1041,6 +1043,19 @@ const StickyPresetScrollToTop = {
1041
1043
  type: 'custom'
1042
1044
  },
1043
1045
  width: 'Auto'
1046
+ },
1047
+ mobile: {
1048
+ gap: '',
1049
+ height: 'Auto',
1050
+ padding: {
1051
+ bottom: '12px',
1052
+ left: '12px',
1053
+ linked: true,
1054
+ right: '12px',
1055
+ top: '12px',
1056
+ type: 'custom'
1057
+ },
1058
+ width: 'Auto'
1044
1059
  }
1045
1060
  },
1046
1061
  hasBoxShadowBtn: {
@@ -60,6 +60,7 @@ const Text = ({ styles, builderAttrs, style, setting, advanced, builderProps, cl
60
60
  }}
61
61
  class="${wrapperClasses}"
62
62
  style="${wrapperStyle}"
63
+ data-test-force-publish="${new Date().getTime()}"
63
64
  >
64
65
  <div class="${containerClasses}" style="${containerStyle}">
65
66
  <${Element}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.443",
3
+ "version": "2.0.0-dev.445",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",