@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.
- package/es/assets/fonts/AvenirNext-Bold.ttf +0 -0
- package/es/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/es/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/es/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +11 -3
- package/es/assets/fonts/magic-box-iconfont.js +1 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/layout-icon/campaignLayout1.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/es/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
- package/es/assets/less/font.less +29 -0
- package/es/common/Collapse/index.js +3 -1
- package/es/common/CountDown/index.js +29 -2
- package/es/common/CountDown/index.less +38 -5
- package/es/common/Field/index.js +2 -1
- package/es/common/Field/index.less +4 -0
- package/es/common/Iconfont/index.js +4 -2
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.js +18 -1
- package/es/composite-comp/bol/components/ImageGallery/mobile/index.less +9 -0
- package/es/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +14 -10
- package/es/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/es/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
- package/es/composite-comp/dito/components/Campaign/index.js +88 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
- package/es/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
- package/es/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
- package/es/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
- package/es/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
- package/es/composite-comp/dito/components/FlashDeal/defaultJSON.js +25 -11
- package/es/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/es/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/es/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +0 -7
- package/es/composite-comp/dito/components/News/defaultJSON.js +0 -4
- package/es/composite-comp/dito/components/SearchDITO/defaultJSON.js +7 -2
- package/es/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/es/composite-comp/dito/components/SearchDITO/pc/index.js +12 -579
- package/es/composite-comp/dito/components/SearchDITO/pc/index.less +1 -185
- package/es/composite-comp/dito/components/SlideImage/defaultJSON.js +29 -9
- package/es/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +3 -1
- package/es/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +20 -13
- package/es/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +4 -11
- package/es/composite-comp/dito/components/SlideImage/pc/index.js +2 -0
- package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
- package/es/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
- package/es/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
- package/es/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/es/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/es/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +14 -10
- package/es/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +11 -2
- package/es/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +6 -6
- package/es/composite-comp/dito/config-panels/SlideImageConfig/index.js +26 -0
- package/es/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
- package/es/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +11 -0
- package/es/constants/component-types.js +9 -3
- package/es/constants/index.js +38 -1
- package/es/constants/layout.js +16 -2
- package/es/core/Designer/ConfigPanel/index.js +4 -0
- package/es/core/Designer/ToolBarModal/index.js +5 -39
- package/es/decorator/compositeDecorator.js +5 -2
- package/es/locale/en/en.json +6 -1
- package/es/locale/es/es.json +6 -1
- package/es/locale/id/id.json +6 -1
- package/es/meta-comp/components/Button/index.js +4 -1
- package/es/meta-comp/components/Button/index.less +8 -1
- package/es/meta-comp/config-panels/ButtonConfig/index.js +15 -11
- package/es/meta-comp/config-panels/TextConfig/index.js +33 -16
- package/lib/assets/fonts/AvenirNext-Bold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-DemiBold.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Medium.ttf +0 -0
- package/lib/assets/fonts/AvenirNext-Regular.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +11 -3
- package/lib/assets/fonts/magic-box-iconfont.js +1 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/layout-icon/campaignLayout1.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout3.png +0 -0
- package/lib/assets/images/layout-icon/imageGalleryLayout4.png +0 -0
- package/lib/assets/less/font.less +29 -0
- package/lib/common/Collapse/index.js +3 -1
- package/lib/common/CountDown/index.js +29 -2
- package/lib/common/CountDown/index.less +38 -5
- package/lib/common/Field/index.js +2 -1
- package/lib/common/Field/index.less +4 -0
- package/lib/common/Iconfont/index.js +4 -2
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.js +18 -1
- package/lib/composite-comp/bol/components/ImageGallery/mobile/index.less +9 -0
- package/lib/composite-comp/bol/config-panels/NewsletterConfig/InputField/index.js +14 -10
- package/lib/composite-comp/common/config-panels/BackgroundConfig/index.js +15 -73
- package/lib/composite-comp/dito/components/Campaign/defaultJSON.js +112 -0
- package/lib/composite-comp/dito/components/Campaign/index.js +88 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.js +320 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/Bargain/index.less +20 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.js +180 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/CountDown/index.less +26 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.js +434 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/FlashSale/index.less +20 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.js +317 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/GroupBuy/index.less +20 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.js +115 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/components/ProductItem/index.less +14 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/imgs/defImg.png +0 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/index.js +125 -0
- package/lib/composite-comp/dito/components/Campaign/mobile/index.less +57 -0
- package/lib/composite-comp/dito/components/FlashDeal/defaultJSON.js +25 -11
- package/lib/composite-comp/dito/components/FlashDeal/mobile/index.js +15 -14
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.js +197 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/ProductItem/index.less +100 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.js +18 -22
- package/lib/composite-comp/dito/components/FlashDeal/pc/index.less +19 -30
- package/lib/composite-comp/dito/components/GroupedCarousel/defaultJSON.js +0 -7
- package/lib/composite-comp/dito/components/News/defaultJSON.js +0 -4
- package/lib/composite-comp/dito/components/SearchDITO/defaultJSON.js +7 -2
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/ConfirmModal/index.less +69 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.js +602 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/components/Header/index.less +184 -0
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.js +12 -579
- package/lib/composite-comp/dito/components/SearchDITO/pc/index.less +1 -185
- package/lib/composite-comp/dito/components/SlideImage/defaultJSON.js +29 -9
- package/lib/composite-comp/dito/components/SlideImage/pc/components/CardItem/index.js +3 -1
- package/lib/composite-comp/dito/components/SlideImage/pc/components/ParallaxScroll/index.js +5 -1
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.js +20 -13
- package/lib/composite-comp/dito/components/SlideImage/pc/components/VideoItem/index.less +4 -11
- package/lib/composite-comp/dito/components/SlideImage/pc/index.js +2 -0
- package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigContent/index.js +143 -0
- package/lib/composite-comp/dito/config-panels/CampaignConfig/ConfigTitle/index.js +93 -0
- package/lib/composite-comp/dito/config-panels/CampaignConfig/index.js +69 -0
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/FlashDealConfigTitle/index.js +7 -20
- package/lib/composite-comp/dito/config-panels/FlashDealConfig/index.js +15 -1
- package/lib/composite-comp/dito/config-panels/PcNavigationConfig/TextOnlyFontConfig/index.js +14 -10
- package/lib/composite-comp/dito/config-panels/RecommendConfig/index.js +10 -4
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.js +11 -2
- package/lib/composite-comp/dito/config-panels/SearchDITOConfig/ConfigContent/index.less +6 -6
- package/lib/composite-comp/dito/config-panels/SlideImageConfig/index.js +26 -0
- package/lib/composite-comp/dito/second-config-panels/CampaignSecondConfig/index.js +109 -0
- package/lib/composite-comp/dito/second-config-panels/SlideImageSecondConfig/index.js +11 -0
- package/lib/constants/component-types.js +9 -3
- package/lib/constants/index.js +38 -1
- package/lib/constants/layout.js +16 -2
- package/lib/core/Designer/ConfigPanel/index.js +4 -0
- package/lib/core/Designer/ToolBarModal/index.js +5 -39
- package/lib/decorator/compositeDecorator.js +5 -2
- package/lib/locale/en/en.json +6 -1
- package/lib/locale/es/es.json +6 -1
- package/lib/locale/id/id.json +6 -1
- package/lib/meta-comp/components/Button/index.js +4 -1
- package/lib/meta-comp/components/Button/index.less +8 -1
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +15 -11
- package/lib/meta-comp/config-panels/TextConfig/index.js +33 -16
- package/package.json +1 -1
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- package/es/composite-comp/dito/components/FlashDeal/pc/imgs/defImg3.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg1.png +0 -0
- package/lib/composite-comp/dito/components/FlashDeal/pc/imgs/defImg2.png +0 -0
- 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
|
+
}
|