@fonixtree/magic-design 2.0.101 → 2.0.102

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 (39) hide show
  1. package/es/common/PopUpModal/index.js +9 -215
  2. package/es/common/PopUpModal/index.less +14 -0
  3. package/es/common/ProductFilterModal/components/FilterSearchModal/index.js +2 -5
  4. package/es/common/ProductFilterModal/components/FilterSearchModal/index.less +21 -6
  5. package/es/common/ProductFilterModal/index.js +3 -8
  6. package/es/common/ProductFilterModal/index.less +41 -2
  7. package/es/common/Tag/index.less +2 -2
  8. package/es/composite-comp/monpay/components/MerchantSales/mobile/index.js +5 -8
  9. package/es/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +1 -1
  10. package/es/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +1 -1
  11. package/es/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +11 -8
  12. package/es/constants/index.js +1 -1
  13. package/es/locale/en/en.json +7 -2
  14. package/es/locale/es/es.json +7 -2
  15. package/es/locale/id/id.json +7 -2
  16. package/es/meta-comp/components/Button/editable.js +1 -1
  17. package/es/meta-comp/components/Button/editable.less +1 -1
  18. package/lib/common/PopUpModal/index.js +9 -215
  19. package/lib/common/PopUpModal/index.less +14 -0
  20. package/lib/common/ProductFilterModal/components/FilterSearchModal/index.js +2 -5
  21. package/lib/common/ProductFilterModal/components/FilterSearchModal/index.less +21 -6
  22. package/lib/common/ProductFilterModal/index.js +3 -8
  23. package/lib/common/ProductFilterModal/index.less +41 -2
  24. package/lib/common/Tag/index.less +2 -2
  25. package/lib/composite-comp/monpay/components/MerchantSales/mobile/index.js +5 -8
  26. package/lib/composite-comp/monpay/components/MonpayFlashDeal/mobile/index.js +1 -1
  27. package/lib/composite-comp/monpay/components/MonpayFlashDeal/pc/index.js +1 -1
  28. package/lib/composite-comp/monpay/components/MonpayRecommend/mobile/index.js +11 -8
  29. package/lib/constants/index.js +1 -1
  30. package/lib/locale/en/en.json +7 -2
  31. package/lib/locale/es/es.json +7 -2
  32. package/lib/locale/id/id.json +7 -2
  33. package/lib/meta-comp/components/Button/editable.js +1 -1
  34. package/lib/meta-comp/components/Button/editable.less +1 -1
  35. package/package.json +1 -1
  36. package/es/common/PopUpModal1/index.js +0 -164
  37. package/es/common/PopUpModal1/style.less +0 -56
  38. package/lib/common/PopUpModal1/index.js +0 -164
  39. package/lib/common/PopUpModal1/style.less +0 -56
@@ -1,4 +1,11 @@
1
1
  {
2
+ "OK": "OK",
3
+ "BRANDS": "Brands",
4
+ "CATEGORY": "Category",
5
+ "SERVICE": "Service",
6
+ "RATINGS": "Ratings",
7
+ "STAR": "Star",
8
+ "APPLY": "Apply",
2
9
  "SORT_BY": "Sort by",
3
10
  "PROMOTION": "Promotion",
4
11
  "HIGHEST_RATED": "Highest rated",
@@ -158,7 +165,6 @@
158
165
  "ALL": "ALL",
159
166
  "HOT": "Hot",
160
167
  "GUESS_YOU_LIKE": "Guess you like",
161
- "CATEGORY": "Category",
162
168
  "LABEL": "Label",
163
169
  "UNDERLINE_STYLE": "Underline Style",
164
170
  "UNDERLINE_COLOR": "Underline Color",
@@ -214,7 +220,6 @@
214
220
  "GROUP_BY": "Group By",
215
221
  "FLASH_SALE": "Flash Sale",
216
222
  "THE_PRODUCT_QUANTITY_WILL_BE_AUTOMATICALLY_UPDATED_WITH_THE_ITEMS_THAT_MEET_THE_CATEGORY_CONDITIONS": "The product quantity will be automatically updated with the items that meet the category conditions",
217
- "OK": "OK",
218
223
  "CANCEL": "Cancel",
219
224
  "LINK_TYPE": "Link Type",
220
225
  "LOOKS_LIKE_YOU_DO_NOT_HAVE_ANY_IMAGES_IN_YOUR_GALLERY__CHOOSE_IMAGES_TO_FEATURE_ON_THIS_PAGE_": "Looks like you do not have any images in your gallery. Choose images to feature on this page.",
@@ -99,7 +99,7 @@ function (_super) {
99
99
  this.preData = JSON.stringify(data);
100
100
  this.preDevice = window.magicDesign.device;
101
101
  return /*#__PURE__*/_react["default"].createElement("span", {
102
- className: "item",
102
+ className: "editable-item",
103
103
  contentEditable: (0, _coreUtil.isDesignMode)() && !readonly,
104
104
  onInput: function onInput(e) {
105
105
  var text = e.target.textContent;
@@ -1,4 +1,4 @@
1
- .item {
1
+ .editable-item {
2
2
  width: 100%;
3
3
  display: flex;
4
4
  align-items: center;
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.101",
4
+ "version": "2.0.102",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",
@@ -1,164 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _antd = require("antd");
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
- var _style = _interopRequireDefault(require("./style.less"));
15
-
16
- var _Button = _interopRequireDefault(require("../Button"));
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
-
22
- var __extends = void 0 && (void 0).__extends || function () {
23
- var _extendStatics = function extendStatics(d, b) {
24
- _extendStatics = Object.setPrototypeOf || {
25
- __proto__: []
26
- } instanceof Array && function (d, b) {
27
- d.__proto__ = b;
28
- } || function (d, b) {
29
- for (var p in b) {
30
- if (b.hasOwnProperty(p)) d[p] = b[p];
31
- }
32
- };
33
-
34
- return _extendStatics(d, b);
35
- };
36
-
37
- return function (d, b) {
38
- _extendStatics(d, b);
39
-
40
- function __() {
41
- this.constructor = d;
42
- }
43
-
44
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
- };
46
- }();
47
-
48
- var __assign = void 0 && (void 0).__assign || function () {
49
- __assign = Object.assign || function (t) {
50
- for (var s, i = 1, n = arguments.length; i < n; i++) {
51
- s = arguments[i];
52
-
53
- for (var p in s) {
54
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
55
- }
56
- }
57
-
58
- return t;
59
- };
60
-
61
- return __assign.apply(this, arguments);
62
- };
63
-
64
- var __rest = void 0 && (void 0).__rest || function (s, e) {
65
- var t = {};
66
-
67
- for (var p in s) {
68
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
69
- }
70
-
71
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
72
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
73
- }
74
- return t;
75
- };
76
- /* eslint-disable max-len */
77
-
78
- /* eslint-disable react/prefer-stateless-function */
79
-
80
-
81
- var MyModal =
82
- /** @class */
83
- function (_super) {
84
- __extends(MyModal, _super);
85
-
86
- function MyModal() {
87
- return _super !== null && _super.apply(this, arguments) || this;
88
- }
89
-
90
- MyModal.prototype.render = function () {
91
- var _a = this.props,
92
- onOk = _a.onOk,
93
- okText = _a.okText,
94
- hideCloseBtn = _a.hideCloseBtn,
95
- title = _a.title,
96
- visible = _a.visible,
97
- onCloseText = _a.onCloseText,
98
- onClose = _a.onClose,
99
- children = _a.children,
100
- rest = __rest(_a, ["onOk", "okText", "hideCloseBtn", "title", "visible", "onCloseText", "onClose", "children"]);
101
-
102
- var style = rest.style;
103
- Reflect.deleteProperty(rest, 'style');
104
- var showCloseBtn = !hideCloseBtn && onClose;
105
- return /*#__PURE__*/_react["default"].createElement(_antd.Popup, _extends({
106
- className: _style["default"].container,
107
- closeOnMaskClick: true,
108
- onClose: onClose,
109
- visible: visible
110
- }, rest), /*#__PURE__*/_react["default"].createElement("div", {
111
- className: "modal-content-wrap",
112
- style: __assign({}, style)
113
- }, /*#__PURE__*/_react["default"].createElement("div", {
114
- className: "topLineWrap"
115
- }, /*#__PURE__*/_react["default"].createElement("div", {
116
- className: "topLine",
117
- onClick: onClose
118
- })), title && /*#__PURE__*/_react["default"].createElement("div", {
119
- className: "modal-title"
120
- }, title), children, (onOk || showCloseBtn) && /*#__PURE__*/_react["default"].createElement("div", {
121
- className: "btn-wrap"
122
- }, onOk && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
123
- onClick: onOk
124
- }, okText), showCloseBtn && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
125
- onClick: onClose,
126
- plain: true
127
- }, onCloseText))));
128
- };
129
-
130
- return MyModal;
131
- }(_react["default"].Component);
132
-
133
- MyModal.propTypes = {
134
- /** title */
135
- title: _propTypes["default"].string,
136
-
137
- /** visible */
138
- visible: _propTypes["default"].bool,
139
-
140
- /** onClose */
141
- onClose: _propTypes["default"].func,
142
-
143
- /** 确认按钮事件 */
144
- onOk: _propTypes["default"].func,
145
-
146
- /** 确认按钮文案 */
147
- okText: _propTypes["default"].string,
148
-
149
- /** 取消按钮文案 */
150
- onCloseText: _propTypes["default"].string,
151
-
152
- /** 取消按钮文案 */
153
- hideCloseBtn: _propTypes["default"].bool
154
- };
155
- MyModal.defaultProps = {
156
- title: '',
157
- visible: false,
158
- onClose: function onClose() {},
159
- okText: 'Ok',
160
- onCloseText: 'Cancel',
161
- hideCloseBtn: false
162
- };
163
- var _default = MyModal;
164
- exports["default"] = _default;
@@ -1,56 +0,0 @@
1
- .container {
2
- :global {
3
- .topLineWrap {
4
- display: flex;
5
- align-items: center;
6
- justify-content: center;
7
- height: 24px;
8
-
9
- .topLine {
10
- width: 42px;
11
- height: 4px;
12
- background: rgba(233, 233, 233, 1);
13
- border-radius: 2px;
14
- }
15
- }
16
-
17
- .btn-wrap {
18
- padding: 12px 24px;
19
-
20
- &>div+div {
21
- margin-top: 12px;
22
- }
23
- }
24
-
25
-
26
- .adm-popup-body {
27
- border-radius: 10px 10px 0px 0px;
28
- background: #FFF;
29
- box-shadow: 0px -10px 5px 0px rgba(0, 0, 0, 0.05);
30
- }
31
-
32
- .am-modal-content {
33
- text-align: left;
34
- }
35
-
36
- .am-modal-content {
37
- border-radius: 0;
38
- }
39
-
40
- .modal-content-wrap {
41
- padding: 0;
42
- position: relative;
43
-
44
- .modal-title {
45
- font-size: 16px;
46
- font-weight: 600;
47
- color: #000;
48
- display: flex;
49
- align-items: center;
50
- justify-content: center;
51
- height: 48px;
52
- padding: 12px 16px 0 16px;
53
- }
54
- }
55
- }
56
- }
@@ -1,164 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _antd = require("antd");
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _propTypes = _interopRequireDefault(require("prop-types"));
13
-
14
- var _style = _interopRequireDefault(require("./style.less"));
15
-
16
- var _Button = _interopRequireDefault(require("../Button"));
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
-
22
- var __extends = void 0 && (void 0).__extends || function () {
23
- var _extendStatics = function extendStatics(d, b) {
24
- _extendStatics = Object.setPrototypeOf || {
25
- __proto__: []
26
- } instanceof Array && function (d, b) {
27
- d.__proto__ = b;
28
- } || function (d, b) {
29
- for (var p in b) {
30
- if (b.hasOwnProperty(p)) d[p] = b[p];
31
- }
32
- };
33
-
34
- return _extendStatics(d, b);
35
- };
36
-
37
- return function (d, b) {
38
- _extendStatics(d, b);
39
-
40
- function __() {
41
- this.constructor = d;
42
- }
43
-
44
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
45
- };
46
- }();
47
-
48
- var __assign = void 0 && (void 0).__assign || function () {
49
- __assign = Object.assign || function (t) {
50
- for (var s, i = 1, n = arguments.length; i < n; i++) {
51
- s = arguments[i];
52
-
53
- for (var p in s) {
54
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
55
- }
56
- }
57
-
58
- return t;
59
- };
60
-
61
- return __assign.apply(this, arguments);
62
- };
63
-
64
- var __rest = void 0 && (void 0).__rest || function (s, e) {
65
- var t = {};
66
-
67
- for (var p in s) {
68
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
69
- }
70
-
71
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
72
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
73
- }
74
- return t;
75
- };
76
- /* eslint-disable max-len */
77
-
78
- /* eslint-disable react/prefer-stateless-function */
79
-
80
-
81
- var MyModal =
82
- /** @class */
83
- function (_super) {
84
- __extends(MyModal, _super);
85
-
86
- function MyModal() {
87
- return _super !== null && _super.apply(this, arguments) || this;
88
- }
89
-
90
- MyModal.prototype.render = function () {
91
- var _a = this.props,
92
- onOk = _a.onOk,
93
- okText = _a.okText,
94
- hideCloseBtn = _a.hideCloseBtn,
95
- title = _a.title,
96
- visible = _a.visible,
97
- onCloseText = _a.onCloseText,
98
- onClose = _a.onClose,
99
- children = _a.children,
100
- rest = __rest(_a, ["onOk", "okText", "hideCloseBtn", "title", "visible", "onCloseText", "onClose", "children"]);
101
-
102
- var style = rest.style;
103
- Reflect.deleteProperty(rest, 'style');
104
- var showCloseBtn = !hideCloseBtn && onClose;
105
- return /*#__PURE__*/_react["default"].createElement(_antd.Popup, _extends({
106
- className: _style["default"].container,
107
- closeOnMaskClick: true,
108
- onClose: onClose,
109
- visible: visible
110
- }, rest), /*#__PURE__*/_react["default"].createElement("div", {
111
- className: "modal-content-wrap",
112
- style: __assign({}, style)
113
- }, /*#__PURE__*/_react["default"].createElement("div", {
114
- className: "topLineWrap"
115
- }, /*#__PURE__*/_react["default"].createElement("div", {
116
- className: "topLine",
117
- onClick: onClose
118
- })), title && /*#__PURE__*/_react["default"].createElement("div", {
119
- className: "modal-title"
120
- }, title), children, (onOk || showCloseBtn) && /*#__PURE__*/_react["default"].createElement("div", {
121
- className: "btn-wrap"
122
- }, onOk && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
123
- onClick: onOk
124
- }, okText), showCloseBtn && /*#__PURE__*/_react["default"].createElement(_Button["default"], {
125
- onClick: onClose,
126
- plain: true
127
- }, onCloseText))));
128
- };
129
-
130
- return MyModal;
131
- }(_react["default"].Component);
132
-
133
- MyModal.propTypes = {
134
- /** title */
135
- title: _propTypes["default"].string,
136
-
137
- /** visible */
138
- visible: _propTypes["default"].bool,
139
-
140
- /** onClose */
141
- onClose: _propTypes["default"].func,
142
-
143
- /** 确认按钮事件 */
144
- onOk: _propTypes["default"].func,
145
-
146
- /** 确认按钮文案 */
147
- okText: _propTypes["default"].string,
148
-
149
- /** 取消按钮文案 */
150
- onCloseText: _propTypes["default"].string,
151
-
152
- /** 取消按钮文案 */
153
- hideCloseBtn: _propTypes["default"].bool
154
- };
155
- MyModal.defaultProps = {
156
- title: '',
157
- visible: false,
158
- onClose: function onClose() {},
159
- okText: 'Ok',
160
- onCloseText: 'Cancel',
161
- hideCloseBtn: false
162
- };
163
- var _default = MyModal;
164
- exports["default"] = _default;
@@ -1,56 +0,0 @@
1
- .container {
2
- :global {
3
- .topLineWrap {
4
- display: flex;
5
- align-items: center;
6
- justify-content: center;
7
- height: 24px;
8
-
9
- .topLine {
10
- width: 42px;
11
- height: 4px;
12
- background: rgba(233, 233, 233, 1);
13
- border-radius: 2px;
14
- }
15
- }
16
-
17
- .btn-wrap {
18
- padding: 12px 24px;
19
-
20
- &>div+div {
21
- margin-top: 12px;
22
- }
23
- }
24
-
25
-
26
- .adm-popup-body {
27
- border-radius: 10px 10px 0px 0px;
28
- background: #FFF;
29
- box-shadow: 0px -10px 5px 0px rgba(0, 0, 0, 0.05);
30
- }
31
-
32
- .am-modal-content {
33
- text-align: left;
34
- }
35
-
36
- .am-modal-content {
37
- border-radius: 0;
38
- }
39
-
40
- .modal-content-wrap {
41
- padding: 0;
42
- position: relative;
43
-
44
- .modal-title {
45
- font-size: 16px;
46
- font-weight: 600;
47
- color: #000;
48
- display: flex;
49
- align-items: center;
50
- justify-content: center;
51
- height: 48px;
52
- padding: 12px 16px 0 16px;
53
- }
54
- }
55
- }
56
- }