react-jupiter 5.7.16 → 5.7.19

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.
@@ -1,2 +1,3 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VERTICAL_CARD=exports.HORIZONTAL_CARD=void 0;var VERTICAL_CARD="vertical";exports.VERTICAL_CARD="vertical";
2
- var HORIZONTAL_CARD="horizontal";exports.HORIZONTAL_CARD="horizontal";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VERTICAL_CARD=exports.HORIZONTAL_MOBILE_CARD=exports.HORIZONTAL_CARD=void 0;var VERTICAL_CARD="vertical";exports.VERTICAL_CARD="vertical";
2
+ var HORIZONTAL_CARD="horizontal";exports.HORIZONTAL_CARD="horizontal";
3
+ var HORIZONTAL_MOBILE_CARD="horizontal-mobile";exports.HORIZONTAL_MOBILE_CARD="horizontal-mobile";
@@ -22,6 +22,7 @@
22
22
 
23
23
 
24
24
 
25
+
25
26
 
26
27
 
27
28
  finishedClockLabelUrl="https://evand-storage.oss-eu-central-1.aliyuncs.com/assets/images/other/finished-clock-label.svg",
@@ -140,6 +141,38 @@ onClick:w,
140
141
 
141
142
 
142
143
  m(/*#__PURE__*/_react.default.createElement(_index.HorizontalTitle,{level:2,size:"sm"},b)),/*#__PURE__*/
144
+ _react.default.createElement(_index.HorizontalPlacePrice,{list:v,isHorizontal:!0}))))},
145
+
146
+
147
+
148
+
149
+ z=function(){return/*#__PURE__*/(
150
+ _react.default.createElement(_index.HorizontalCardContainer,_extends({
151
+ direction:d,
152
+ hoverToLevel:3,
153
+ maxWidth:560},
154
+ q),
155
+
156
+ m(/*#__PURE__*/_react.default.createElement(_index.HorizontalMobileCover,{"data-test":"horizontal-mobile-cover",src:h||defaultCoverUrl,loading:"lazy"})),/*#__PURE__*/
157
+ _react.default.createElement(_index.HorizontalContentContainer,{"data-test":"horizontal-content"},/*#__PURE__*/
158
+ _react.default.createElement(_index.DateBookmarkContainer,null,/*#__PURE__*/
159
+ _react.default.createElement(_index.DateLabelContainer,null,
160
+ j&&/*#__PURE__*/_react.default.createElement(_eventCardLabel.default,{type:"finished"}),
161
+ !j&&i&&/*#__PURE__*/_react.default.createElement(_eventCardLabel.default,{type:"ads"}),
162
+ g&&/*#__PURE__*/_react.default.createElement(_showDate.default,{date:g,color:"gray",fontSize:"10"}),
163
+ p&&/*#__PURE__*/
164
+ _react.default.createElement(_typography.Text,{size:"10",color:"gray","data-test":"show-date"},p)),/*#__PURE__*/
165
+
166
+
167
+ _react.default.createElement(_index.BookmarkIcon,{
168
+ name:t?"bookmark":"bookmark-border",
169
+ size:"sm",
170
+ color:"gray",
171
+ onClick:w,
172
+ "data-test":t?"bookmark":"bookmark-border"})),
173
+
174
+
175
+ m(/*#__PURE__*/_react.default.createElement(_index.HorizontalTitle,{level:4,size:"sm"},b)),/*#__PURE__*/
143
176
  _react.default.createElement(_index.HorizontalPlacePrice,{list:v,isHorizontal:!0}))))};
144
177
 
145
178
 
@@ -156,10 +189,12 @@ _react.default.createElement(_index.HorizontalPlacePrice,{list:v,isHorizontal:!0
156
189
 
157
190
 
158
191
 
192
+
193
+
159
194
  return/*#__PURE__*/(
160
195
  _react.default.createElement(_react.default.Fragment,null,/*#__PURE__*/
161
196
  _react.default.createElement(_globalStyle.default,null),
162
- function renderCard(){var b=a.type;switch(b){case _constants.HORIZONTAL_CARD:return y(a);case _constants.VERTICAL_CARD:default:return x(a);}}()));
197
+ function renderCard(){var b=a.type;switch(b){case _constants.HORIZONTAL_CARD:return y(a);case _constants.HORIZONTAL_MOBILE_CARD:return z(a);case _constants.VERTICAL_CARD:default:return x(a);}}()));
163
198
 
164
199
 
165
200
  };
@@ -181,9 +216,9 @@ finished:_propTypes.default.bool,
181
216
  organization:(0,_propTypes.oneOfType)([
182
217
  _propTypes.default.shape({
183
218
  name:_propTypes.default.string.isRequired,
184
- logo:_propTypes.default.string}),void 0]),
185
-
219
+ logo:_propTypes.default.string}),
186
220
 
221
+ _propTypes.default.undefined]),
187
222
 
188
223
  renderEventLink:_propTypes.default.func.isRequired,
189
224
  renderOrganizationLink:_propTypes.default.func,
@@ -5,11 +5,24 @@
5
5
 
6
6
 
7
7
  (0,_react2.storiesOf)("EventCard",module).
8
+ add("horizontal mobile event card",function(){return/*#__PURE__*/(
9
+ _react.default.createElement(_index.default,{
10
+ type:"horizontal-mobile",
11
+ title:"\u062A\u0627\u06CC\u062A\u0644 \u06CC\u06A9 \u0631\u0648\u06CC\u062F\u0627\u062F \u0646\u0633\u0628\u062A\u0627 \u0637\u0648\u0644\u0627\u0646\u06CC \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627\u0633\u062A \u06A9\u0647 \u0628\u0627\u06CC\u062F \u0648 \u0628\u0627\u06CC\u062F \u0648 \u0642\u0631\u0627\u0631 \u0627\u0633\u062A \u0627\u0636\u0627\u0641\u0647 \u0628\u06CC\u0627\u06CC\u062F \u0648 \u0628\u0632\u0646\u062F \u0628\u0647 \u0628\u06CC\u0631\u0648\u0646",
12
+ cover:"https://static.evand.net/assets/images/defaults/event-cover.jpg",
13
+ date:"2020-01-10T14:00:00+0330",
14
+ place:"\u062A\u0647\u0631\u0627\u0646",
15
+ price:"\u0627\u0632 \u06F4\u06F4\u06F0\u06F0\u06F0 \u062A\u0648\u0645\u0627\u0646",
16
+ clickBookmark:function clickBookmark(){return!0},
17
+ queryString:"icn=trendEvents&ici=fp5",
18
+ renderEventLink:function renderEventLink(a){return/*#__PURE__*/_react.default.createElement("a",{href:"/tosomewhere"},a)}}))}).
19
+
20
+
8
21
  add("horizontal event card",function(){return/*#__PURE__*/(
9
22
  _react.default.createElement(_index.default,{
10
23
  type:"horizontal",
11
24
  title:"\u062A\u0627\u06CC\u062A\u0644 \u06CC\u06A9 \u0631\u0648\u06CC\u062F\u0627\u062F \u0646\u0633\u0628\u062A\u0627 \u0637\u0648\u0644\u0627\u0646\u06CC \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627\u0633\u062A \u06A9\u0647 \u0628\u0627\u06CC\u062F \u0648 \u0628\u0627\u06CC\u062F \u0648 \u0642\u0631\u0627\u0631 \u0627\u0633\u062A \u0627\u0636\u0627\u0641\u0647 \u0628\u06CC\u0627\u06CC\u062F \u0648 \u0628\u0632\u0646\u062F \u0628\u0647 \u0628\u06CC\u0631\u0648\u0646",
12
- cover:"https://static.evand.net/images/events/covers/original/2e6f40ac8e1bc78304ccf3fd77b1b3d5.jpg",
25
+ cover:"https://static.evand.net/assets/images/defaults/event-cover.jpg",
13
26
  date:"2020-01-10T14:00:00+0330",
14
27
  place:"\u062A\u0647\u0631\u0627\u0646",
15
28
  price:"\u0627\u0632 \u06F4\u06F4\u06F0\u06F0\u06F0 \u062A\u0648\u0645\u0627\u0646",
@@ -22,7 +35,7 @@ add("horizontal event card with ads",function(){return/*#__PURE__*/(
22
35
  _react.default.createElement(_index.default,{
23
36
  type:"horizontal",
24
37
  title:"\u062A\u0627\u06CC\u062A\u0644 \u06CC\u06A9 \u0631\u0648\u06CC\u062F\u0627\u062F \u0646\u0633\u0628\u062A\u0627 \u0637\u0648\u0644\u0627\u0646\u06CC \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627\u0633\u062A \u06A9\u0647 \u0628\u0627\u06CC\u062F \u0648 \u0628\u0627\u06CC\u062F \u0648 \u0642\u0631\u0627\u0631 \u0627\u0633\u062A \u0627\u0636\u0627\u0641\u0647 \u0628\u06CC\u0627\u06CC\u062F \u0648 \u0628\u0632\u0646\u062F \u0628\u0647 \u0628\u06CC\u0631\u0648\u0646",
25
- cover:"https://static.evand.net/images/events/covers/original/2e6f40ac8e1bc78304ccf3fd77b1b3d5.jpg",
38
+ cover:"https://static.evand.net/assets/images/defaults/event-cover.jpg",
26
39
  date:"2020-01-10T14:00:00+0330",
27
40
  place:"\u062A\u0647\u0631\u0627\u0646",
28
41
  ads:!0,
@@ -36,7 +49,7 @@ add("horizontal event card with finished",function(){return/*#__PURE__*/(
36
49
  _react.default.createElement(_index.default,{
37
50
  type:"horizontal",
38
51
  title:"\u062A\u0627\u06CC\u062A\u0644 \u06CC\u06A9 \u0631\u0648\u06CC\u062F\u0627\u062F \u0646\u0633\u0628\u062A\u0627 \u0637\u0648\u0644\u0627\u0646\u06CC \u062F\u0631 \u0627\u06CC\u0646\u062C\u0627\u0633\u062A \u06A9\u0647 \u0628\u0627\u06CC\u062F \u0648 \u0628\u0627\u06CC\u062F \u0648 \u0642\u0631\u0627\u0631 \u0627\u0633\u062A \u0627\u0636\u0627\u0641\u0647 \u0628\u06CC\u0627\u06CC\u062F \u0648 \u0628\u0632\u0646\u062F \u0628\u0647 \u0628\u06CC\u0631\u0648\u0646",
39
- cover:"https://static.evand.net/images/events/covers/original/2e6f40ac8e1bc78304ccf3fd77b1b3d5.jpg",
52
+ cover:"https://static.evand.net/assets/images/defaults/event-cover.jpg",
40
53
  date:"2020-01-10T14:00:00+0330",
41
54
  place:"\u062A\u0647\u0631\u0627\u0646",
42
55
  finished:!0,
@@ -50,7 +63,7 @@ add("vertical event card",function(){return/*#__PURE__*/(
50
63
  _react.default.createElement(_index.default,{
51
64
  type:"vertical",
52
65
  title:"\u062A\u0627\u06CC\u062A\u0644 \u06CC\u06A9 \u0631\u0648\u06CC\u062F\u0627\u062F \u0627\u06CC\u0646\u062C\u0627\u0633\u062A \u06A9\u0647\u0646",
53
- cover:"https://static.evand.net/images/events/covers/original/2e6f40ac8e1bc78304ccf3fd77b1b3d5.jpg",
66
+ cover:"https://static.evand.net/assets/images/defaults/event-cover.jpg",
54
67
  date:"2020-01-10T14:00:00+0330",
55
68
  place:"\u062A\u0647\u0631\u0627\u0646",
56
69
  price:"\u0627\u0632 \u06F4\u06F4\u06F0\u06F0\u06F0 \u062A\u0648\u0645\u0627\u0646",
@@ -67,7 +80,7 @@ add("vertical event card with finished",function(){return/*#__PURE__*/(
67
80
  _react.default.createElement(_index.default,{
68
81
  type:"vertical",
69
82
  title:"\u062A\u0627\u06CC\u062A\u0644 \u06CC\u06A9 \u0631\u0648\u06CC\u062F\u0627\u062F \u0627\u06CC\u0646\u062C\u0627\u0633\u062A \u06A9\u0647\u0646",
70
- cover:"https://static.evand.net/images/events/covers/original/2e6f40ac8e1bc78304ccf3fd77b1b3d5.jpg",
83
+ cover:"https://static.evand.net/assets/images/defaults/event-cover.jpg",
71
84
  date:"2020-01-10T14:00:00+0330",
72
85
  place:"\u062A\u0647\u0631\u0627\u0646",
73
86
  price:"\u0627\u0632 \u06F4\u06F4\u06F0\u06F0\u06F0 \u062A\u0648\u0645\u0627\u0646",
@@ -85,7 +98,7 @@ add("vertical event card with ads",function(){return/*#__PURE__*/(
85
98
  _react.default.createElement(_index.default,{
86
99
  type:"vertical",
87
100
  title:"\u062A\u0627\u06CC\u062A\u0644 \u06CC\u06A9 \u0631\u0648\u06CC\u062F\u0627\u062F \u0627\u06CC\u0646\u062C\u0627\u0633\u062A \u06A9\u0647\u0646",
88
- cover:"https://static.evand.net/images/events/covers/original/2e6f40ac8e1bc78304ccf3fd77b1b3d5.jpg",
101
+ cover:"https://static.evand.net/assets/images/defaults/event-cover.jpg",
89
102
  date:"2020-01-10T14:00:00+0330",
90
103
  place:"\u062A\u0647\u0631\u0627\u0646",
91
104
  price:"\u0627\u0632 \u06F4\u06F4\u06F0\u06F0\u06F0 \u062A\u0648\u0645\u0627\u0646",
@@ -103,7 +116,7 @@ add("vertical event card with partnership",function(){return/*#__PURE__*/(
103
116
  _react.default.createElement(_index.default,{
104
117
  type:"vertical",
105
118
  title:"\u062A\u0627\u06CC\u062A\u0644 \u06CC\u06A9 \u0631\u0648\u06CC\u062F\u0627\u062F \u0627\u06CC\u0646\u062C\u0627\u0633\u062A \u06A9\u0647\u0646",
106
- cover:"https://static.evand.net/images/events/covers/original/2e6f40ac8e1bc78304ccf3fd77b1b3d5.jpg",
119
+ cover:"https://static.evand.net/assets/images/defaults/event-cover.jpg",
107
120
  date:"2020-01-10T14:00:00+0330",
108
121
  place:"\u062A\u0647\u0631\u0627\u0646",
109
122
  price:"\u0627\u0632 \u06F4\u06F4\u06F0\u06F0\u06F0 \u062A\u0648\u0645\u0627\u0646",
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VerticalTitle=exports.VerticalPlacePrice=exports.VerticalCover=exports.VerticalContentContainer=exports.VerticalCardContainer=exports.PartnershipBox=exports.Link=exports.HorizontalTitle=exports.HorizontalPlacePrice=exports.HorizontalCover=exports.HorizontalContentContainer=exports.HorizontalCardContainer=exports.DateLabelContainer=exports.DateBookmarkContainer=exports.BookmarkIcon=void 0;var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_styledComponents=_interopRequireDefault(require("styled-components")),_cardTemplate=_interopRequireDefault(require("../card-template")),_typography=require("../../typography"),_productProperties=_interopRequireDefault(require("../../product-properties")),_icon=_interopRequireDefault(require("../../icon"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _taggedTemplateLiteral(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))}
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VerticalTitle=exports.VerticalPlacePrice=exports.VerticalCover=exports.VerticalContentContainer=exports.VerticalCardContainer=exports.PartnershipBox=exports.Link=exports.HorizontalTitle=exports.HorizontalPlacePrice=exports.HorizontalMobileCover=exports.HorizontalMobileContentContainer=exports.HorizontalCover=exports.HorizontalContentContainer=exports.HorizontalCardContainer=exports.DateLabelContainer=exports.DateBookmarkContainer=exports.BookmarkIcon=void 0;var _templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16,_templateObject17,_styledComponents=_interopRequireDefault(require("styled-components")),_cardTemplate=_interopRequireDefault(require("../card-template")),_typography=require("../../typography"),_productProperties=_interopRequireDefault(require("../../product-properties")),_icon=_interopRequireDefault(require("../../icon"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _taggedTemplateLiteral(a,b){return b||(b=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))}
2
2
 
3
3
 
4
4
 
@@ -84,21 +84,36 @@ var HorizontalCover=_styledComponents.default.img(_templateObject11||(_templateO
84
84
 
85
85
 
86
86
 
87
- var HorizontalContentContainer=_styledComponents.default.div(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 16px;\n justify-content: space-between;\n flex: 1;\n min-width: 250px;\n"])));exports.HorizontalContentContainer=HorizontalContentContainer;
87
+ var HorizontalMobileCover=_styledComponents.default.img(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n width: 146px;\n min-width: 146px;\n height: 100%;\n"])));exports.HorizontalMobileCover=HorizontalMobileCover;
88
88
 
89
89
 
90
90
 
91
91
 
92
92
 
93
+ var HorizontalContentContainer=_styledComponents.default.div(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 16px;\n justify-content: space-between;\n flex: 1;\n min-width: 250px;\n"])));exports.HorizontalContentContainer=HorizontalContentContainer;
93
94
 
94
95
 
95
96
 
96
- var HorizontalTitle=(0,_styledComponents.default)(_typography.Heading)(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));exports.HorizontalTitle=HorizontalTitle;
97
97
 
98
98
 
99
99
 
100
100
 
101
101
 
102
- var HorizontalPlacePrice=(0,_styledComponents.default)(_productProperties.default)(_templateObject14||(_templateObject14=_taggedTemplateLiteral([""])));exports.HorizontalPlacePrice=HorizontalPlacePrice;
102
+ var HorizontalMobileContentContainer=_styledComponents.default.div(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n padding: 16px;\n justify-content: space-between;\n flex: 1;\n min-width: 0px;\n"])));exports.HorizontalMobileContentContainer=HorizontalMobileContentContainer;
103
103
 
104
- var PartnershipBox=_styledComponents.default.div(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["\n background: #FFC72724;\n border-radius: 5px;\n margin-left: 5px;\n color: #FFD324;\n display: inline-flex;\n align-items: center;\n min-width: 50px;\n height: 25px;\n justify-content: center;\n"])));exports.PartnershipBox=PartnershipBox;
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+ var HorizontalTitle=(0,_styledComponents.default)(_typography.Heading)(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));exports.HorizontalTitle=HorizontalTitle;
112
+
113
+
114
+
115
+
116
+
117
+ var HorizontalPlacePrice=(0,_styledComponents.default)(_productProperties.default)(_templateObject16||(_templateObject16=_taggedTemplateLiteral([""])));exports.HorizontalPlacePrice=HorizontalPlacePrice;
118
+
119
+ var PartnershipBox=_styledComponents.default.div(_templateObject17||(_templateObject17=_taggedTemplateLiteral(["\n background: #FFC72724;\n border-radius: 5px;\n margin-left: 5px;\n color: #FFD324;\n display: inline-flex;\n align-items: center;\n min-width: 60px;\n height: 25px;\n justify-content: center;\n"])));exports.PartnershipBox=PartnershipBox;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-jupiter",
3
- "version": "5.7.16",
3
+ "version": "5.7.19",
4
4
  "main": "./index.js",
5
5
  "license": "MIT",
6
6
  "keywords": [