@fonixtree/magic-design 1.0.116 → 1.0.118

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 (35) hide show
  1. package/es/assets/images/base64/index.js +8 -2
  2. package/es/common/FontStyles/index.less +3 -1
  3. package/es/composite-comp/common/components/ImageLabel/index.less +7 -0
  4. package/es/composite-comp/dito/components/PersonalInformation/defaultJSON.js +19 -0
  5. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.js +11 -3
  6. package/es/composite-comp/dito/components/PersonalInformation/mobile/index.less +8 -1
  7. package/es/composite-comp/dito/components/SearchBanner/defaultJSON.js +64 -10
  8. package/es/composite-comp/dito/components/SearchBanner/mobile/index.js +13 -28
  9. package/es/composite-comp/dito/components/SearchBanner/mobile/index.less +3 -18
  10. package/es/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  11. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.js +91 -0
  12. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.less +9 -0
  13. package/es/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +10 -2
  14. package/es/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +37 -49
  15. package/es/locale/en/en.json +2 -1
  16. package/es/locale/es/es.json +2 -1
  17. package/es/locale/id/id.json +2 -1
  18. package/lib/assets/images/base64/index.js +8 -2
  19. package/lib/common/FontStyles/index.less +3 -1
  20. package/lib/composite-comp/common/components/ImageLabel/index.less +7 -0
  21. package/lib/composite-comp/dito/components/PersonalInformation/defaultJSON.js +19 -0
  22. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.js +11 -3
  23. package/lib/composite-comp/dito/components/PersonalInformation/mobile/index.less +8 -1
  24. package/lib/composite-comp/dito/components/SearchBanner/defaultJSON.js +64 -10
  25. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.js +13 -28
  26. package/lib/composite-comp/dito/components/SearchBanner/mobile/index.less +3 -18
  27. package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +1 -1
  28. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.js +91 -0
  29. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/ConfigDecoration/index.less +9 -0
  30. package/lib/composite-comp/dito/config-panels/PersonalInformationConfig/index.js +10 -2
  31. package/lib/composite-comp/dito/config-panels/SearchBannerConfig/ConfigContent/index.js +37 -49
  32. package/lib/locale/en/en.json +2 -1
  33. package/lib/locale/es/es.json +2 -1
  34. package/lib/locale/id/id.json +2 -1
  35. package/package.json +1 -1
@@ -9,8 +9,6 @@ exports["default"] = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
12
- var _antd = require("antd");
13
-
14
12
  var _common = require("../../../../../common");
15
13
 
16
14
  var _ImageConfig = _interopRequireDefault(require("../../../../../meta-comp/config-panels/ImageConfig"));
@@ -67,6 +65,42 @@ function (_super) {
67
65
  _this.setState({});
68
66
  };
69
67
 
68
+ _this.getIconPanel = function () {
69
+ var _a, _b, _c;
70
+
71
+ var panelProps = _this.props.panelProps;
72
+ var source = [{
73
+ key: (_a = panelProps.icon.cartIcon) === null || _a === void 0 ? void 0 : _a.id,
74
+ name: (0, _locale.i18n)('CART_ICON'),
75
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
76
+ data: panelProps.icon.cartIcon
77
+ }),
78
+ metaOption: panelProps.icon.cartIcon
79
+ }, {
80
+ key: (_b = panelProps.icon.chatbotIcon) === null || _b === void 0 ? void 0 : _b.id,
81
+ name: (0, _locale.i18n)('CHATBOT_ICON'),
82
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
83
+ data: panelProps.icon.chatbotIcon
84
+ }),
85
+ metaOption: panelProps.icon.chatbotIcon
86
+ }, {
87
+ key: (_c = panelProps.icon.messageIcon) === null || _c === void 0 ? void 0 : _c.id,
88
+ name: (0, _locale.i18n)('MESSAGE_ICON'),
89
+ value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
90
+ data: panelProps.icon.messageIcon
91
+ }),
92
+ metaOption: panelProps.icon.messageIcon
93
+ }];
94
+ return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
95
+ headerSize: "middle",
96
+ onRefresh: function onRefresh() {
97
+ return (0, _coreUtil.renderPreview)();
98
+ },
99
+ source: source,
100
+ type: "switch"
101
+ });
102
+ };
103
+
70
104
  return _this;
71
105
  }
72
106
 
@@ -127,53 +161,7 @@ function (_super) {
127
161
  key: 'search3',
128
162
  name: (0, _locale.i18n)('ICON'),
129
163
  toggleType: 'triangle',
130
- value: /*#__PURE__*/_react["default"].createElement("div", {
131
- style: {
132
- marginTop: 10
133
- }
134
- }, /*#__PURE__*/_react["default"].createElement(_common.Field, null, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
135
- colorType: "rgba",
136
- onChange: function onChange(v) {
137
- if ((0, _coreUtil.isPc)()) {
138
- panelProps.icon.color.pc = v;
139
- } else {
140
- panelProps.icon.color.mobile = v;
141
- }
142
-
143
- _this.selfRender();
144
- },
145
- value: (0, _coreUtil.isPc)() ? panelProps.icon.color.pc : panelProps.icon.color.mobile
146
- })), /*#__PURE__*/_react["default"].createElement("div", {
147
- style: {
148
- background: '#F5F6F7',
149
- padding: '14px 12px 1px'
150
- }
151
- }, /*#__PURE__*/_react["default"].createElement(_common.Field, {
152
- layout: "horizontal",
153
- title: (0, _locale.i18n)('CHATBOT_ICON')
154
- }, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
155
- checked: (0, _coreUtil.isPc)() ? panelProps.icon.cartIcon.pc : panelProps.icon.cartIcon.mobile,
156
- onChange: function onChange(e) {
157
- if ((0, _coreUtil.isPc)()) {
158
- panelProps.icon.cartIcon.pc = e.target.checked;
159
- } else {
160
- panelProps.icon.cartIcon.mobile = e.target.checked;
161
- }
162
-
163
- _this.selfRender();
164
- }
165
- })), !(0, _coreUtil.isPc)() && /*#__PURE__*/_react["default"].createElement(_common.Field, {
166
- layout: "horizontal",
167
- title: (0, _locale.i18n)('MESSAGE_ICON')
168
- }, /*#__PURE__*/_react["default"].createElement(_antd.Checkbox, {
169
- checked: panelProps.icon.messageIcon.mobile,
170
- onChange: function onChange(e) {
171
- panelProps.icon.messageIcon.mobile = e.target.checked;
172
-
173
- _this.selfRender();
174
- }
175
- })))),
176
- metaOption: panelProps.icon
164
+ value: this.getIconPanel()
177
165
  }];
178
166
  return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
179
167
  headerSize: "middle",
@@ -1,6 +1,7 @@
1
1
  {
2
+ "CHATBOT_ICON": "Chatbot icon",
3
+ "FESTIVAL_DECORATION": "Festival Decoration",
2
4
  "PRICE_REDUCTION": "Price Reduction",
3
- "CHATBOT_ICON": "Chatbot Icon",
4
5
  "PRODUCT_LABEL": "Product Label",
5
6
  "LABELS": "Labels",
6
7
  "TAB_BACKGROUND": "Tab Background",
@@ -1,6 +1,7 @@
1
1
  {
2
+ "CHATBOT_ICON": "Chatbot icon",
3
+ "FESTIVAL_DECORATION": "Festival Decoration",
2
4
  "PRICE_REDUCTION": "Price Reduction",
3
- "CHATBOT_ICON": "Chatbot Icon",
4
5
  "PRODUCT_LABEL": "Product Label",
5
6
  "LABELS": "Labels",
6
7
  "TAB_BACKGROUND": "Tab Background",
@@ -1,6 +1,7 @@
1
1
  {
2
+ "CHATBOT_ICON": "Chatbot icon",
3
+ "FESTIVAL_DECORATION": "Festival Decoration",
2
4
  "PRICE_REDUCTION": "Price Reduction",
3
- "CHATBOT_ICON": "Chatbot Icon",
4
5
  "PRODUCT_LABEL": "Product Label",
5
6
  "LABELS": "Labels",
6
7
  "TAB_BACKGROUND": "Tab Background",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.116",
4
+ "version": "1.0.118",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",