@gem-sdk/components 2.0.0-dev.674 → 2.0.0-dev.676

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.
@@ -17,7 +17,6 @@ var index = require('./common/index.js');
17
17
  const AccordionItem = (props)=>{
18
18
  const { children, index: index$1, parentUid, title, childrenIcon } = props;
19
19
  const { iconSvg, titleTypo, layoutHeader, iconGlobalSize, iconCollapseSize, iconCollapse, iconExpand, alignment, configIconSize, iconPosition } = index.getParentSettings(props.parentSetting) ?? {};
20
- console.log('titleTypo', titleTypo);
21
20
  const { refContainer, getIdDropdownItem, makeIcon, isShow, uniqueId, composeIconColor, isRenderChildren, composeContentSizeStyle, hasTransitionedIn, isMounted, productID } = useAccordionItem.default(props);
22
21
  const composeContainerClasses = system.createClass(classes.getItemContainerClasses);
23
22
  const composeDropdownClasses = system.createClass(classes.getDropdownClasses(props.parentStyle, {
@@ -75,7 +75,7 @@ const AccordionSettings = [
75
75
  },
76
76
  {
77
77
  id: 'titleTypo',
78
- type: 'typography-v2',
78
+ type: 'typography-combo',
79
79
  default: {
80
80
  type: 'paragraph-1'
81
81
  },
@@ -185,48 +185,35 @@ const SettingUIV2 = [
185
185
  label: {
186
186
  en: 'Title'
187
187
  },
188
- type: 'combo',
189
- iconName: 'polaris-text-title',
190
- isHideClear: true,
191
- popoverLabel: {
192
- en: 'Title'
188
+ setting: {
189
+ id: 'titleTypo'
193
190
  },
194
- getValueFromSettingID: 'titleTypo.type',
195
- isTypoValue: true,
196
- controls: [
197
- {
198
- setting: {
199
- id: 'titleTypo'
200
- },
201
- layout: 'vertical',
202
- options: {
203
- updateFields: [
204
- {
205
- field: 'attrs.color',
206
- settingId: 'textColor',
207
- state: 'normal'
208
- }
209
- ]
210
- },
211
- controlChangeTrigger: {
212
- settings: [
213
- {
214
- action: {
215
- controlId: 'textColor',
216
- valueFromField: 'attrs.color',
217
- groupType: 'style',
218
- controlType: 'style',
219
- removeDevice: true,
220
- state: 'normal'
221
- }
222
- }
223
- ],
224
- options: {
225
- noRecordHistory: true
191
+ options: {
192
+ updateFields: [
193
+ {
194
+ field: 'attrs.color',
195
+ settingId: 'textColor',
196
+ state: 'normal'
197
+ }
198
+ ]
199
+ },
200
+ controlChangeTrigger: {
201
+ settings: [
202
+ {
203
+ action: {
204
+ controlId: 'textColor',
205
+ valueFromField: 'attrs.color',
206
+ groupType: 'style',
207
+ controlType: 'style',
208
+ removeDevice: true,
209
+ state: 'normal'
226
210
  }
227
211
  }
212
+ ],
213
+ options: {
214
+ noRecordHistory: true
228
215
  }
229
- ]
216
+ }
230
217
  },
231
218
  {
232
219
  label: {
@@ -271,7 +271,7 @@ const SettingUIV2 = [
271
271
  controlId: 'label',
272
272
  groupType: 'setting',
273
273
  controlType: 'setting',
274
- newValue: 'button'
274
+ newValue: 'Button'
275
275
  }
276
276
  }
277
277
  ],
@@ -21,7 +21,7 @@ const Header = ({ builderAttrs, builderProps, style, setting, styles, children }
21
21
  if (builderProps?.isPreview && isSalesPage) return null;
22
22
  return /*#__PURE__*/ jsxRuntime.jsxs("nav", {
23
23
  "data-id": builderProps?.uid,
24
- className: core.cls('gp-w-full', builderProps?.uid),
24
+ className: core.cls('gp-w-full gp-z-10', builderProps?.uid),
25
25
  ...builderAttrs,
26
26
  style: {
27
27
  ...style,
@@ -13,7 +13,6 @@ import { getParentSettings, MINIMUM_CHILD, BODY_CHILD_INDEX } from './common/ind
13
13
  const AccordionItem = (props)=>{
14
14
  const { children, index, parentUid, title, childrenIcon } = props;
15
15
  const { iconSvg, titleTypo, layoutHeader, iconGlobalSize, iconCollapseSize, iconCollapse, iconExpand, alignment, configIconSize, iconPosition } = getParentSettings(props.parentSetting) ?? {};
16
- console.log('titleTypo', titleTypo);
17
16
  const { refContainer, getIdDropdownItem, makeIcon, isShow, uniqueId, composeIconColor, isRenderChildren, composeContentSizeStyle, hasTransitionedIn, isMounted, productID } = useAccordionItem(props);
18
17
  const composeContainerClasses = createClass(getItemContainerClasses);
19
18
  const composeDropdownClasses = createClass(getDropdownClasses(props.parentStyle, {
@@ -73,7 +73,7 @@ const AccordionSettings = [
73
73
  },
74
74
  {
75
75
  id: 'titleTypo',
76
- type: 'typography-v2',
76
+ type: 'typography-combo',
77
77
  default: {
78
78
  type: 'paragraph-1'
79
79
  },
@@ -183,48 +183,35 @@ const SettingUIV2 = [
183
183
  label: {
184
184
  en: 'Title'
185
185
  },
186
- type: 'combo',
187
- iconName: 'polaris-text-title',
188
- isHideClear: true,
189
- popoverLabel: {
190
- en: 'Title'
186
+ setting: {
187
+ id: 'titleTypo'
191
188
  },
192
- getValueFromSettingID: 'titleTypo.type',
193
- isTypoValue: true,
194
- controls: [
195
- {
196
- setting: {
197
- id: 'titleTypo'
198
- },
199
- layout: 'vertical',
200
- options: {
201
- updateFields: [
202
- {
203
- field: 'attrs.color',
204
- settingId: 'textColor',
205
- state: 'normal'
206
- }
207
- ]
208
- },
209
- controlChangeTrigger: {
210
- settings: [
211
- {
212
- action: {
213
- controlId: 'textColor',
214
- valueFromField: 'attrs.color',
215
- groupType: 'style',
216
- controlType: 'style',
217
- removeDevice: true,
218
- state: 'normal'
219
- }
220
- }
221
- ],
222
- options: {
223
- noRecordHistory: true
189
+ options: {
190
+ updateFields: [
191
+ {
192
+ field: 'attrs.color',
193
+ settingId: 'textColor',
194
+ state: 'normal'
195
+ }
196
+ ]
197
+ },
198
+ controlChangeTrigger: {
199
+ settings: [
200
+ {
201
+ action: {
202
+ controlId: 'textColor',
203
+ valueFromField: 'attrs.color',
204
+ groupType: 'style',
205
+ controlType: 'style',
206
+ removeDevice: true,
207
+ state: 'normal'
224
208
  }
225
209
  }
210
+ ],
211
+ options: {
212
+ noRecordHistory: true
226
213
  }
227
- ]
214
+ }
228
215
  },
229
216
  {
230
217
  label: {
@@ -269,7 +269,7 @@ const SettingUIV2 = [
269
269
  controlId: 'label',
270
270
  groupType: 'setting',
271
271
  controlType: 'setting',
272
- newValue: 'button'
272
+ newValue: 'Button'
273
273
  }
274
274
  }
275
275
  ],
@@ -17,7 +17,7 @@ const Header = ({ builderAttrs, builderProps, style, setting, styles, children }
17
17
  if (builderProps?.isPreview && isSalesPage) return null;
18
18
  return /*#__PURE__*/ jsxs("nav", {
19
19
  "data-id": builderProps?.uid,
20
- className: cls('gp-w-full', builderProps?.uid),
20
+ className: cls('gp-w-full gp-z-10', builderProps?.uid),
21
21
  ...builderAttrs,
22
22
  style: {
23
23
  ...style,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.674",
3
+ "version": "2.0.0-dev.676",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "2.0.0-dev.673",
28
+ "@gem-sdk/core": "2.0.0-dev.676",
29
29
  "@gem-sdk/styles": "2.0.0-dev.661",
30
30
  "@gem-sdk/system": "2.0.0-dev.661",
31
31
  "@types/react-transition-group": "^4.4.5",