@fonixtree/magic-design 2.0.128 → 2.0.129

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.
@@ -29,7 +29,8 @@ var getDefaultJSON = function getDefaultJSON() {
29
29
  fontFamily: 'Open Sans',
30
30
  fontWeight: 600,
31
31
  fontSize: 16,
32
- color: '#000'
32
+ color: '#000',
33
+ urlDisabled: true
33
34
  },
34
35
  underline: {
35
36
  open: false,
@@ -45,6 +46,7 @@ var getDefaultJSON = function getDefaultJSON() {
45
46
  text: 'Follow',
46
47
  content: {
47
48
  url: '',
49
+ urlDisabled: true,
48
50
  backgroundColor: '#FF8650'
49
51
  },
50
52
  buttonText: {
@@ -148,6 +148,7 @@ function (_super) {
148
148
  split: true,
149
149
  title: (0, _locale.i18n)('URL')
150
150
  }, /*#__PURE__*/_react["default"].createElement(_common.UrlPicker, {
151
+ disabled: data.content.urlDisabled,
151
152
  onChange: function onChange(value) {
152
153
  _this.updateAttr(data.content, 'url', value);
153
154
  },
@@ -362,6 +363,7 @@ function (_super) {
362
363
  data: {
363
364
  content: {
364
365
  url: '',
366
+ urlDisabled: false,
365
367
  backgroundColor: '#2F54EB'
366
368
  },
367
369
  buttonText: {
@@ -484,6 +484,7 @@ var getPromotionList = function getPromotionList(offer) {
484
484
  2: 'FLASH',
485
485
  4: 'Group',
486
486
  12: 'Bargain',
487
+ 14: 'Discount',
487
488
  C: 'Discount',
488
489
  D: 'Discount',
489
490
  G: 'Gift'
@@ -29,7 +29,8 @@ var getDefaultJSON = function getDefaultJSON() {
29
29
  fontFamily: 'Open Sans',
30
30
  fontWeight: 600,
31
31
  fontSize: 16,
32
- color: '#000'
32
+ color: '#000',
33
+ urlDisabled: true
33
34
  },
34
35
  underline: {
35
36
  open: false,
@@ -45,6 +46,7 @@ var getDefaultJSON = function getDefaultJSON() {
45
46
  text: 'Follow',
46
47
  content: {
47
48
  url: '',
49
+ urlDisabled: true,
48
50
  backgroundColor: '#FF8650'
49
51
  },
50
52
  buttonText: {
@@ -148,6 +148,7 @@ function (_super) {
148
148
  split: true,
149
149
  title: (0, _locale.i18n)('URL')
150
150
  }, /*#__PURE__*/_react["default"].createElement(_common.UrlPicker, {
151
+ disabled: data.content.urlDisabled,
151
152
  onChange: function onChange(value) {
152
153
  _this.updateAttr(data.content, 'url', value);
153
154
  },
@@ -362,6 +363,7 @@ function (_super) {
362
363
  data: {
363
364
  content: {
364
365
  url: '',
366
+ urlDisabled: false,
365
367
  backgroundColor: '#2F54EB'
366
368
  },
367
369
  buttonText: {
@@ -484,6 +484,7 @@ var getPromotionList = function getPromotionList(offer) {
484
484
  2: 'FLASH',
485
485
  4: 'Group',
486
486
  12: 'Bargain',
487
+ 14: 'Discount',
487
488
  C: 'Discount',
488
489
  D: 'Discount',
489
490
  G: 'Gift'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "2.0.128",
4
+ "version": "2.0.129",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",