@gem-sdk/components 2.0.0-dev.467 → 2.0.0-dev.468

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.
@@ -57,7 +57,7 @@ const BaseVariant = (props)=>{
57
57
  return core.template`
58
58
  <div
59
59
  class="${wrapperTextClasses}"
60
- style="${isColorType ? getColorStyleLiquid() : ''} ${wrapperTextStyle}">
60
+ style="${isColorType ? getColorStyleLiquid() : ''} ${_function.getStyleOfObject(wrapperTextStyle)}">
61
61
  ${system.If(isUploadImageType, `<svg width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="#D6D6D6"></circle><path d="M0.196854 10.6453L2.40968 8.05946C2.4846 7.97175 2.57719 7.9008 2.68141 7.85124C2.78562 7.80168 2.89913 7.77461 3.01452 7.77181C3.12991 7.76902 3.2446 7.79055 3.3511 7.835C3.45761 7.87945 3.55353 7.94583 3.63262 8.02981L4.66733 9.12714L8.71205 4.29464C8.79123 4.19995 8.89077 4.1243 9.00325 4.07333C9.11573 4.02236 9.23827 3.99737 9.36176 4.00022C9.48524 4.00307 9.6065 4.03369 9.71651 4.08979C9.82651 4.1459 9.92245 4.22605 9.99717 4.32429L14.8329 10.6772C14.9254 10.7989 14.982 10.9441 14.9964 11.0962C15.0107 11.2484 14.9823 11.4016 14.9144 11.5385C14.8464 11.6754 14.7415 11.7907 14.6115 11.8713C14.4815 11.952 14.3316 11.9948 14.1786 11.995L0.822048 12C0.664945 11.9999 0.511148 11.9549 0.378853 11.8703C0.246557 11.7857 0.141299 11.6649 0.0755311 11.5224C0.00976323 11.3799 -0.013762 11.2216 0.00773837 11.0661C0.0292388 10.9107 0.0948652 10.7646 0.196854 10.6453Z" fill="#D6D6D6"></path></svg>`, ' ')}
62
62
  <span class="${textClasses}" style="${textStyle}">{{value}}</span>
63
63
  </div>
@@ -185,15 +185,6 @@ const SettingUIV2 = [
185
185
  state: 'normal'
186
186
  }
187
187
  },
188
- {
189
- label: {
190
- en: 'Has Shadow'
191
- },
192
- setting: {
193
- id: 'optionHasShadow',
194
- state: 'active'
195
- }
196
- },
197
188
  {
198
189
  label: {
199
190
  en: 'Shadow'
@@ -359,7 +350,6 @@ const SettingUIV2 = [
359
350
  label: {
360
351
  en: 'Sold out style'
361
352
  },
362
- conditionDisplay: "optionType !== 'groupOption'",
363
353
  controls: [
364
354
  {
365
355
  label: {
@@ -386,6 +376,84 @@ const SettingUIV2 = [
386
376
  }
387
377
  ]
388
378
  },
379
+ {
380
+ label: {
381
+ en: 'Shape'
382
+ },
383
+ controls: [
384
+ {
385
+ label: {
386
+ en: 'Border'
387
+ },
388
+ setting: {
389
+ id: 'border',
390
+ state: 'normal'
391
+ }
392
+ },
393
+ {
394
+ label: {
395
+ en: 'Corner'
396
+ },
397
+ setting: {
398
+ id: 'rounded',
399
+ state: 'normal'
400
+ }
401
+ },
402
+ {
403
+ label: {
404
+ en: 'Shadow'
405
+ },
406
+ setting: {
407
+ id: 'boxShadow',
408
+ state: 'normal'
409
+ },
410
+ options: {
411
+ updateFields: [
412
+ {
413
+ field: 'enable',
414
+ settingId: 'advanced.hasBoxShadow',
415
+ state: 'normal'
416
+ }
417
+ ]
418
+ },
419
+ controlChangeTrigger: {
420
+ settings: [
421
+ {
422
+ condition: `boxShadow.normal.enable === true`,
423
+ source: [
424
+ 'boxShadow',
425
+ 'hasBoxShadow'
426
+ ],
427
+ action: {
428
+ controlId: 'hasBoxShadow',
429
+ groupType: 'advanced',
430
+ controlType: 'advanced',
431
+ state: 'normal',
432
+ newValue: true
433
+ }
434
+ },
435
+ {
436
+ condition: `boxShadow.normal.enable === false`,
437
+ source: [
438
+ 'boxShadow',
439
+ 'hasBoxShadow'
440
+ ],
441
+ action: {
442
+ controlId: 'hasBoxShadow',
443
+ groupType: 'advanced',
444
+ controlType: 'advanced',
445
+ state: 'normal',
446
+ newValue: false
447
+ }
448
+ }
449
+ ],
450
+ options: {
451
+ noRecordHistory: true
452
+ }
453
+ }
454
+ }
455
+ ]
456
+ },
389
457
  {
390
458
  label: {
391
459
  en: 'Display condition'
@@ -439,7 +507,7 @@ const SettingUIV2 = [
439
507
  options: {
440
508
  labelVariant: 'primary',
441
509
  fullWidth: true,
442
- disableMessage: `Align is not supported when width is 100%`
510
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
443
511
  }
444
512
  }
445
513
  ]
@@ -53,7 +53,7 @@ const BaseVariant = (props)=>{
53
53
  return template`
54
54
  <div
55
55
  class="${wrapperTextClasses}"
56
- style="${isColorType ? getColorStyleLiquid() : ''} ${wrapperTextStyle}">
56
+ style="${isColorType ? getColorStyleLiquid() : ''} ${getStyleOfObject(wrapperTextStyle)}">
57
57
  ${If(isUploadImageType, `<svg width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="#D6D6D6"></circle><path d="M0.196854 10.6453L2.40968 8.05946C2.4846 7.97175 2.57719 7.9008 2.68141 7.85124C2.78562 7.80168 2.89913 7.77461 3.01452 7.77181C3.12991 7.76902 3.2446 7.79055 3.3511 7.835C3.45761 7.87945 3.55353 7.94583 3.63262 8.02981L4.66733 9.12714L8.71205 4.29464C8.79123 4.19995 8.89077 4.1243 9.00325 4.07333C9.11573 4.02236 9.23827 3.99737 9.36176 4.00022C9.48524 4.00307 9.6065 4.03369 9.71651 4.08979C9.82651 4.1459 9.92245 4.22605 9.99717 4.32429L14.8329 10.6772C14.9254 10.7989 14.982 10.9441 14.9964 11.0962C15.0107 11.2484 14.9823 11.4016 14.9144 11.5385C14.8464 11.6754 14.7415 11.7907 14.6115 11.8713C14.4815 11.952 14.3316 11.9948 14.1786 11.995L0.822048 12C0.664945 11.9999 0.511148 11.9549 0.378853 11.8703C0.246557 11.7857 0.141299 11.6649 0.0755311 11.5224C0.00976323 11.3799 -0.013762 11.2216 0.00773837 11.0661C0.0292388 10.9107 0.0948652 10.7646 0.196854 10.6453Z" fill="#D6D6D6"></path></svg>`, ' ')}
58
58
  <span class="${textClasses}" style="${textStyle}">{{value}}</span>
59
59
  </div>
@@ -183,15 +183,6 @@ const SettingUIV2 = [
183
183
  state: 'normal'
184
184
  }
185
185
  },
186
- {
187
- label: {
188
- en: 'Has Shadow'
189
- },
190
- setting: {
191
- id: 'optionHasShadow',
192
- state: 'active'
193
- }
194
- },
195
186
  {
196
187
  label: {
197
188
  en: 'Shadow'
@@ -357,7 +348,6 @@ const SettingUIV2 = [
357
348
  label: {
358
349
  en: 'Sold out style'
359
350
  },
360
- conditionDisplay: "optionType !== 'groupOption'",
361
351
  controls: [
362
352
  {
363
353
  label: {
@@ -384,6 +374,84 @@ const SettingUIV2 = [
384
374
  }
385
375
  ]
386
376
  },
377
+ {
378
+ label: {
379
+ en: 'Shape'
380
+ },
381
+ controls: [
382
+ {
383
+ label: {
384
+ en: 'Border'
385
+ },
386
+ setting: {
387
+ id: 'border',
388
+ state: 'normal'
389
+ }
390
+ },
391
+ {
392
+ label: {
393
+ en: 'Corner'
394
+ },
395
+ setting: {
396
+ id: 'rounded',
397
+ state: 'normal'
398
+ }
399
+ },
400
+ {
401
+ label: {
402
+ en: 'Shadow'
403
+ },
404
+ setting: {
405
+ id: 'boxShadow',
406
+ state: 'normal'
407
+ },
408
+ options: {
409
+ updateFields: [
410
+ {
411
+ field: 'enable',
412
+ settingId: 'advanced.hasBoxShadow',
413
+ state: 'normal'
414
+ }
415
+ ]
416
+ },
417
+ controlChangeTrigger: {
418
+ settings: [
419
+ {
420
+ condition: `boxShadow.normal.enable === true`,
421
+ source: [
422
+ 'boxShadow',
423
+ 'hasBoxShadow'
424
+ ],
425
+ action: {
426
+ controlId: 'hasBoxShadow',
427
+ groupType: 'advanced',
428
+ controlType: 'advanced',
429
+ state: 'normal',
430
+ newValue: true
431
+ }
432
+ },
433
+ {
434
+ condition: `boxShadow.normal.enable === false`,
435
+ source: [
436
+ 'boxShadow',
437
+ 'hasBoxShadow'
438
+ ],
439
+ action: {
440
+ controlId: 'hasBoxShadow',
441
+ groupType: 'advanced',
442
+ controlType: 'advanced',
443
+ state: 'normal',
444
+ newValue: false
445
+ }
446
+ }
447
+ ],
448
+ options: {
449
+ noRecordHistory: true
450
+ }
451
+ }
452
+ }
453
+ ]
454
+ },
387
455
  {
388
456
  label: {
389
457
  en: 'Display condition'
@@ -437,7 +505,7 @@ const SettingUIV2 = [
437
505
  options: {
438
506
  labelVariant: 'primary',
439
507
  fullWidth: true,
440
- disableMessage: `Align is not supported when width is 100%`
508
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
441
509
  }
442
510
  }
443
511
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.467",
3
+ "version": "2.0.0-dev.468",
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.464",
26
+ "@gem-sdk/core": "2.0.0-dev.468",
27
27
  "@gem-sdk/styles": "2.0.0-dev.464",
28
28
  "@gem-sdk/system": "2.0.0-dev.464",
29
29
  "@types/react-transition-group": "^4.4.5"