@fonixtree/magic-design 1.0.166 → 1.0.168

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 (173) hide show
  1. package/es/assets/fonts/AvenirNext-Bold.ttf +0 -0
  2. package/es/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
  3. package/es/assets/fonts/AvenirNext-Medium.ttf +0 -0
  4. package/es/assets/fonts/AvenirNext-Regular.ttf +0 -0
  5. package/es/assets/fonts/magic-box-iconfont.css +11 -3
  6. package/es/assets/fonts/magic-box-iconfont.js +1 -1
  7. package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
  8. package/es/assets/fonts/magic-box-iconfont.woff +0 -0
  9. package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
  10. package/es/assets/images/layout-icon/campaignLayout1.png +0 -0
  11. package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
  12. package/es/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
  13. package/es/assets/less/font.less +29 -0
  14. package/es/common/Collapse/index.js +3 -1
  15. package/es/common/CountDown/index.js +29 -2
  16. package/es/common/CountDown/index.less +38 -5
  17. package/es/common/Field/index.js +2 -1
  18. package/es/common/Field/index.less +4 -0
  19. package/es/common/Iconfont/index.js +4 -2
  20. package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +18 -1
  21. package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +9 -0
  22. package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +14 -10
  23. package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
  24. package/es/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
  25. package/es/composite-comp/dito/components/Campaign/index.js +88 -0
  26. package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
  27. package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
  28. package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
  29. package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
  30. package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
  31. package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
  32. package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
  33. package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
  34. package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
  35. package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
  36. package/es/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
  37. package/es/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
  38. package/es/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
  39. package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +25 -11
  40. package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
  41. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
  42. package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
  43. package/es/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
  44. package/es/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
  45. package/es/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +0 -7
  46. package/es/composite-comp/dito/components/News/defaultJSON.js +0 -4
  47. package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +7 -2
  48. package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
  49. package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
  50. package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
  51. package/es/composite-comp/dito/components/SearchDITO/pc/index.js +12 -579
  52. package/es/composite-comp/dito/components/SearchDITO/pc/index.less +1 -185
  53. package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +29 -9
  54. package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +3 -1
  55. package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
  56. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +20 -13
  57. package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +4 -11
  58. package/es/composite-comp/dito/components/SlideImage/pc/index.js +2 -0
  59. package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
  60. package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
  61. package/es/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
  62. package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
  63. package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
  64. package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +14 -10
  65. package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
  66. package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +11 -2
  67. package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +6 -6
  68. package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +26 -0
  69. package/es/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
  70. package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +11 -0
  71. package/es/constants/component-types.js +9 -3
  72. package/es/constants/index.js +38 -1
  73. package/es/constants/layout.js +16 -2
  74. package/es/core/Designer/ConfigPanel/index.js +4 -0
  75. package/es/core/Designer/ToolBarModal/index.js +5 -39
  76. package/es/decorator/compositeDecorator.js +5 -2
  77. package/es/locale/en/en.json +6 -1
  78. package/es/locale/es/es.json +6 -1
  79. package/es/locale/id/id.json +6 -1
  80. package/es/meta-comp/components/Button/index.js +4 -1
  81. package/es/meta-comp/components/Button/index.less +8 -1
  82. package/es/meta-comp/config-panels/ButtonConfig/index.js +15 -11
  83. package/es/meta-comp/config-panels/TextConfig/index.js +33 -16
  84. package/lib/assets/fonts/AvenirNext-Bold.ttf +0 -0
  85. package/lib/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
  86. package/lib/assets/fonts/AvenirNext-Medium.ttf +0 -0
  87. package/lib/assets/fonts/AvenirNext-Regular.ttf +0 -0
  88. package/lib/assets/fonts/magic-box-iconfont.css +11 -3
  89. package/lib/assets/fonts/magic-box-iconfont.js +1 -1
  90. package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
  91. package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
  92. package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
  93. package/lib/assets/images/layout-icon/campaignLayout1.png +0 -0
  94. package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
  95. package/lib/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
  96. package/lib/assets/less/font.less +29 -0
  97. package/lib/common/Collapse/index.js +3 -1
  98. package/lib/common/CountDown/index.js +29 -2
  99. package/lib/common/CountDown/index.less +38 -5
  100. package/lib/common/Field/index.js +2 -1
  101. package/lib/common/Field/index.less +4 -0
  102. package/lib/common/Iconfont/index.js +4 -2
  103. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +18 -1
  104. package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +9 -0
  105. package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +14 -10
  106. package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
  107. package/lib/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
  108. package/lib/composite-comp/dito/components/Campaign/index.js +88 -0
  109. package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
  110. package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
  111. package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
  112. package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
  113. package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
  114. package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
  115. package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
  116. package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
  117. package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
  118. package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
  119. package/lib/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
  120. package/lib/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
  121. package/lib/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
  122. package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +25 -11
  123. package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
  124. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
  125. package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
  126. package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
  127. package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
  128. package/lib/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +0 -7
  129. package/lib/composite-comp/dito/components/News/defaultJSON.js +0 -4
  130. package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +7 -2
  131. package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
  132. package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
  133. package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
  134. package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +12 -579
  135. package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +1 -185
  136. package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +29 -9
  137. package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +3 -1
  138. package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
  139. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +20 -13
  140. package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +4 -11
  141. package/lib/composite-comp/dito/components/SlideImage/pc/index.js +2 -0
  142. package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
  143. package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
  144. package/lib/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
  145. package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
  146. package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
  147. package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +14 -10
  148. package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
  149. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +11 -2
  150. package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +6 -6
  151. package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +26 -0
  152. package/lib/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
  153. package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +11 -0
  154. package/lib/constants/component-types.js +9 -3
  155. package/lib/constants/index.js +38 -1
  156. package/lib/constants/layout.js +16 -2
  157. package/lib/core/Designer/ConfigPanel/index.js +4 -0
  158. package/lib/core/Designer/ToolBarModal/index.js +5 -39
  159. package/lib/decorator/compositeDecorator.js +5 -2
  160. package/lib/locale/en/en.json +6 -1
  161. package/lib/locale/es/es.json +6 -1
  162. package/lib/locale/id/id.json +6 -1
  163. package/lib/meta-comp/components/Button/index.js +4 -1
  164. package/lib/meta-comp/components/Button/index.less +8 -1
  165. package/lib/meta-comp/config-panels/ButtonConfig/index.js +15 -11
  166. package/lib/meta-comp/config-panels/TextConfig/index.js +33 -16
  167. package/package.json +1 -1
  168. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  169. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  170. package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
  171. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
  172. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
  173. package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
@@ -0,0 +1,184 @@
1
+ .search-dito-header {
2
+ display: block;
3
+ max-width: 1200px;
4
+ height: 64px;
5
+ padding: 16px 40px;
6
+ border-radius: 32px;
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: space-between;
10
+ background-color: #fff;
11
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 10%);
12
+ position: absolute;
13
+ left: 120px;
14
+ right: 120px;
15
+ top: 16px;
16
+ margin: auto;
17
+ z-index: 2;
18
+
19
+ .logo {
20
+ width: auto;
21
+ height: 30px;
22
+ }
23
+
24
+ .navigation {
25
+ position: relative;
26
+
27
+ ul {
28
+ padding: 0;
29
+ margin: 0;
30
+ }
31
+
32
+ .nav-list {
33
+ display: flex;
34
+ flex-direction: row;
35
+ gap: 10px;
36
+
37
+ li {
38
+ font-weight: 600;
39
+ font-size: 14px;
40
+ color: #2C2C2C;
41
+ padding: 8px 12px;
42
+ list-style: none;
43
+ cursor: pointer;
44
+ display: flex;
45
+ align-items: center;
46
+ gap: 4px;
47
+
48
+ &:hover {
49
+ color: #CE1126;
50
+
51
+ .icon_down {
52
+ color: #CE1126 !important;
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ .nav-card {
59
+ background-color: #fff;
60
+ padding: 10px;
61
+ border-radius: 16px;
62
+ display: flex;
63
+ gap: 8px;
64
+ width: max-content;
65
+ min-height: 200px;
66
+ position: absolute;
67
+ top: 38px;
68
+ transition: left 0.2s ease;
69
+ box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 10%);
70
+
71
+ ul {
72
+ padding: 10px 0;
73
+
74
+ li {
75
+ list-style: none;
76
+ font-weight: 500;
77
+ font-size: 14px;
78
+ color: #2c2c2c;
79
+ padding: 0 16px;
80
+ height: 36px;
81
+ line-height: 36px;
82
+ cursor: pointer;
83
+ display: flex;
84
+ align-items: center;
85
+ justify-content: space-between;
86
+
87
+ .icon_right {
88
+ margin-left: 4px;
89
+ visibility: hidden;
90
+ }
91
+
92
+ &:hover {
93
+ color: #CE1126;
94
+
95
+ .icon_right {
96
+ visibility: visible;
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ img {
103
+ width: 200px;
104
+ height: 200px;
105
+ border-radius: 8px;
106
+ margin-left: 20px;
107
+ }
108
+ }
109
+ }
110
+
111
+ .right {
112
+ display: flex;
113
+ gap: 20px;
114
+ align-items: center;
115
+
116
+ .icon-wrap {
117
+ cursor: pointer;
118
+ position: relative;
119
+
120
+ .cart-num {
121
+ position: absolute;
122
+ top: -8px;
123
+ right: -8px;
124
+ width: 20px;
125
+ height: 20px;
126
+ background-color: #ce1126;
127
+ color: #fff;
128
+ border-radius: 50%;
129
+ font-size: 11px;
130
+ line-height: 20px;
131
+ text-align: center;
132
+ }
133
+ }
134
+
135
+ .personal-info {
136
+ display: flex;
137
+ align-items: center;
138
+ gap: 8px;
139
+ position: relative;
140
+ font-weight: 500;
141
+ font-size: 14px;
142
+ color: #2c2c2c;
143
+ cursor: pointer;
144
+
145
+ &.showLogOut {
146
+ padding-bottom: 30px;
147
+ margin-bottom: -30px;
148
+ }
149
+
150
+ .avatar-img {
151
+ width: 32px;
152
+ height: 32px;
153
+ border-radius: 50%;
154
+ }
155
+
156
+ .log-out-wrap {
157
+ position: absolute;
158
+ top: 50px;
159
+ left: -2px;
160
+ padding: 4px;
161
+ border-radius: 8px;
162
+ background-color: #fff;
163
+
164
+ .item {
165
+ padding: 8px 16px;
166
+ width: max-content;
167
+ display: flex;
168
+ align-items: center;
169
+ justify-content: center;
170
+ gap: 10px;
171
+ color: #2c2c2c;
172
+ font-weight: 500;
173
+ font-size: 14px;
174
+ cursor: pointer;
175
+ }
176
+
177
+ .icon-log-out {
178
+ transform: rotate(90deg);
179
+ transition: transform 0.3s;
180
+ }
181
+ }
182
+ }
183
+ }
184
+ }