@tripian/react 9.1.36 → 9.1.38

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.
@@ -3,6 +3,7 @@ interface IBooking {
3
3
  fill?: string;
4
4
  color?: string;
5
5
  size?: string;
6
+ className?: string;
6
7
  }
7
8
  declare const Booking: React.FC<IBooking>;
8
9
  export default Booking;
@@ -3,6 +3,7 @@ interface IOffer {
3
3
  fill?: string;
4
4
  color?: string;
5
5
  size?: string;
6
+ className?: string;
6
7
  }
7
8
  declare const Offer: React.FC<IOffer>;
8
9
  export default Offer;
@@ -3,6 +3,7 @@ interface IOffer {
3
3
  fill?: string;
4
4
  color?: string;
5
5
  size?: string;
6
+ className?: string;
6
7
  }
7
8
  declare const Offer: React.FC<IOffer>;
8
9
  export default Offer;
package/index.js CHANGED
@@ -26248,7 +26248,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26248
26248
  Object.defineProperty(exports, "__esModule", { value: true });
26249
26249
  const react_1 = __importDefault(__webpack_require__(0));
26250
26250
  const Svg_1 = __importDefault(__webpack_require__(2));
26251
- const Offer = ({ fill, color, size = '20px' }) => (react_1.default.createElement(Svg_1.default, { fill: fill, color: color, size: size, path: "M13.7,49.54,8,33.63a3.47,3.47,0,0,1,2.1-4.44,3.93,3.93,0,0,1,.81-.18L27.3,27.3,29,10.79a3.47,3.47,0,0,1,3.81-3.1,2.9,2.9,0,0,1,.71.15l16,4.11L58.8,1.21A3.49,3.49,0,0,1,63.7.83a3.91,3.91,0,0,1,.61.68l9,12.17,15.91-5.8A3.48,3.48,0,0,1,93.69,10a3.44,3.44,0,0,1,.19.83l1.7,16.51L112.09,29a3.47,3.47,0,0,1,2.71,5.09l-7.3,13.77,14,10.83a3.46,3.46,0,0,1,.62,4.87,3.18,3.18,0,0,1-.72.7L109.2,73.33,115,89.24a3.48,3.48,0,0,1-2.08,4.45,3.44,3.44,0,0,1-.83.19l-16.51,1.7L93.88,112a3.48,3.48,0,0,1-3.81,3.1,3.61,3.61,0,0,1-1.27-.38L75,107.49l-10.85,14a3.46,3.46,0,0,1-5.57-.1l-9.08-12.25-15.91,5.74A3.47,3.47,0,0,1,29,112.05L27.3,97.29,10.53,93.82a3.46,3.46,0,0,1-2.7-4.09A2.62,2.62,0,0,1,8,89.11L13.7,73.34,1.4,64.23a3.48,3.48,0,0,1-.72-4.86,3.42,3.42,0,0,1,.77-.75L13.7,49.54Zm62.39-6.2L55.66,78.86a6.86,6.86,0,0,1-.67,1,2.76,2.76,0,0,1-.82.71,3.14,3.14,0,0,1-1.1.31,10.25,10.25,0,0,1-1.31.07H47.9a1.16,1.16,0,0,1-1.16-1.15,1.18,1.18,0,0,1,.21-.67L67.39,43.57a7.2,7.2,0,0,1,.65-1l0-.06a2.84,2.84,0,0,1,.78-.65A3.15,3.15,0,0,1,70,41.59h0a10,10,0,0,1,1.29-.07h3.85a1.16,1.16,0,0,1,1.16,1.15,1.18,1.18,0,0,1-.21.67Zm-7.4,36.07c-1.72-1.8-2.59-4.56-2.59-8.28s.87-6.48,2.59-8.28,4.52-2.7,8.4-2.7,6.68.9,8.4,2.7,2.58,4.56,2.58,8.28-.86,6.48-2.58,8.28-4.52,2.7-8.4,2.7-6.68-.9-8.4-2.7Zm6-11.44v8h1.3a16.21,16.21,0,0,0,3.27-.26c.22-.18.33-.67.33-1.46v-8h-3a3,3,0,0,0-1.58.26c-.21.18-.32.67-.32,1.46ZM37.39,60q-2.58-2.7-2.58-8.28t2.58-8.28q2.58-2.7,8.4-2.7t8.4,2.7q2.58,2.7,2.58,8.28T54.19,60q-2.58,2.7-8.4,2.7T37.39,60Zm6-11.44v8h3a2.93,2.93,0,0,0,1.57-.27c.22-.18.33-.67.33-1.46v-8H46.93a15.28,15.28,0,0,0-3.26.27c-.22.17-.33.66-.33,1.45ZM16,35.46l5,14a3.48,3.48,0,0,1-1.14,4.13L9.3,61.44,19.9,69.3a3.48,3.48,0,0,1,1.2,4L15.84,87.84,31,91a3.48,3.48,0,0,1,3,3.05l1.49,12.9,14.05-5.06A3.47,3.47,0,0,1,53.59,103l7.91,10.68,9.74-12.61A3.48,3.48,0,0,1,75.69,100l11.81,6.21L89,92.1A3.47,3.47,0,0,1,92.06,89L107,87.43,101.8,73.32a3.46,3.46,0,0,1,1.18-4l10.67-7.92-12.52-9.67A3.5,3.5,0,0,1,100,47.18l6.26-11.8L92.1,33.93A3.48,3.48,0,0,1,89,30.82L87.43,15.93,73.32,21.08a3.48,3.48,0,0,1-4-1.18L61.24,9l-7.8,9.07a3.48,3.48,0,0,1-3.5,1.1L35.5,15.5,33.92,30.78a3.47,3.47,0,0,1-3.1,3.14L16,35.46Z", viewBox: "0 0 122.88 122.88" }));
26251
+ const Offer = ({ fill, color, size = '20px', className }) => (react_1.default.createElement(Svg_1.default, { fill: fill, className: className, color: color, size: size, path: "M13.7,49.54,8,33.63a3.47,3.47,0,0,1,2.1-4.44,3.93,3.93,0,0,1,.81-.18L27.3,27.3,29,10.79a3.47,3.47,0,0,1,3.81-3.1,2.9,2.9,0,0,1,.71.15l16,4.11L58.8,1.21A3.49,3.49,0,0,1,63.7.83a3.91,3.91,0,0,1,.61.68l9,12.17,15.91-5.8A3.48,3.48,0,0,1,93.69,10a3.44,3.44,0,0,1,.19.83l1.7,16.51L112.09,29a3.47,3.47,0,0,1,2.71,5.09l-7.3,13.77,14,10.83a3.46,3.46,0,0,1,.62,4.87,3.18,3.18,0,0,1-.72.7L109.2,73.33,115,89.24a3.48,3.48,0,0,1-2.08,4.45,3.44,3.44,0,0,1-.83.19l-16.51,1.7L93.88,112a3.48,3.48,0,0,1-3.81,3.1,3.61,3.61,0,0,1-1.27-.38L75,107.49l-10.85,14a3.46,3.46,0,0,1-5.57-.1l-9.08-12.25-15.91,5.74A3.47,3.47,0,0,1,29,112.05L27.3,97.29,10.53,93.82a3.46,3.46,0,0,1-2.7-4.09A2.62,2.62,0,0,1,8,89.11L13.7,73.34,1.4,64.23a3.48,3.48,0,0,1-.72-4.86,3.42,3.42,0,0,1,.77-.75L13.7,49.54Zm62.39-6.2L55.66,78.86a6.86,6.86,0,0,1-.67,1,2.76,2.76,0,0,1-.82.71,3.14,3.14,0,0,1-1.1.31,10.25,10.25,0,0,1-1.31.07H47.9a1.16,1.16,0,0,1-1.16-1.15,1.18,1.18,0,0,1,.21-.67L67.39,43.57a7.2,7.2,0,0,1,.65-1l0-.06a2.84,2.84,0,0,1,.78-.65A3.15,3.15,0,0,1,70,41.59h0a10,10,0,0,1,1.29-.07h3.85a1.16,1.16,0,0,1,1.16,1.15,1.18,1.18,0,0,1-.21.67Zm-7.4,36.07c-1.72-1.8-2.59-4.56-2.59-8.28s.87-6.48,2.59-8.28,4.52-2.7,8.4-2.7,6.68.9,8.4,2.7,2.58,4.56,2.58,8.28-.86,6.48-2.58,8.28-4.52,2.7-8.4,2.7-6.68-.9-8.4-2.7Zm6-11.44v8h1.3a16.21,16.21,0,0,0,3.27-.26c.22-.18.33-.67.33-1.46v-8h-3a3,3,0,0,0-1.58.26c-.21.18-.32.67-.32,1.46ZM37.39,60q-2.58-2.7-2.58-8.28t2.58-8.28q2.58-2.7,8.4-2.7t8.4,2.7q2.58,2.7,2.58,8.28T54.19,60q-2.58,2.7-8.4,2.7T37.39,60Zm6-11.44v8h3a2.93,2.93,0,0,0,1.57-.27c.22-.18.33-.67.33-1.46v-8H46.93a15.28,15.28,0,0,0-3.26.27c-.22.17-.33.66-.33,1.45ZM16,35.46l5,14a3.48,3.48,0,0,1-1.14,4.13L9.3,61.44,19.9,69.3a3.48,3.48,0,0,1,1.2,4L15.84,87.84,31,91a3.48,3.48,0,0,1,3,3.05l1.49,12.9,14.05-5.06A3.47,3.47,0,0,1,53.59,103l7.91,10.68,9.74-12.61A3.48,3.48,0,0,1,75.69,100l11.81,6.21L89,92.1A3.47,3.47,0,0,1,92.06,89L107,87.43,101.8,73.32a3.46,3.46,0,0,1,1.18-4l10.67-7.92-12.52-9.67A3.5,3.5,0,0,1,100,47.18l6.26-11.8L92.1,33.93A3.48,3.48,0,0,1,89,30.82L87.43,15.93,73.32,21.08a3.48,3.48,0,0,1-4-1.18L61.24,9l-7.8,9.07a3.48,3.48,0,0,1-3.5,1.1L35.5,15.5,33.92,30.78a3.47,3.47,0,0,1-3.1,3.14L16,35.46Z", viewBox: "0 0 122.88 122.88" }));
26252
26252
  exports.default = Offer;
26253
26253
 
26254
26254
 
@@ -63782,7 +63782,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
63782
63782
  Object.defineProperty(exports, "__esModule", { value: true });
63783
63783
  const react_1 = __importDefault(__webpack_require__(0));
63784
63784
  const Svg_1 = __importDefault(__webpack_require__(2));
63785
- const Booking = ({ fill, color, size = '20px' }) => (react_1.default.createElement(Svg_1.default, { fill: fill, color: color, size: size, path: "M18 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V4C20 2.9 19.1 2 18 2ZM9 4H11V9L10 8.25L9 9V4ZM18 20H6V4H7V13L10 10.75L13 13V4H18V20Z", viewBox: "0 0 24 24" }));
63785
+ const Booking = ({ fill, color, size = '20px', className }) => (react_1.default.createElement(Svg_1.default, { fill: fill, className: className, color: color, size: size, path: "M18 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V4C20 2.9 19.1 2 18 2ZM9 4H11V9L10 8.25L9 9V4ZM18 20H6V4H7V13L10 10.75L13 13V4H18V20Z", viewBox: "0 0 24 24" }));
63786
63786
  exports.default = Booking;
63787
63787
 
63788
63788
 
@@ -64359,7 +64359,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
64359
64359
  Object.defineProperty(exports, "__esModule", { value: true });
64360
64360
  const react_1 = __importDefault(__webpack_require__(0));
64361
64361
  const Svg_1 = __importDefault(__webpack_require__(2));
64362
- const Offer = ({ fill, color, size = '20px' }) => (react_1.default.createElement(Svg_1.default, { fill: fill, color: color, size: size, path: "", viewBox: "-24.62 0 227 227" },
64362
+ const Offer = ({ fill = '#000', color, size = '20px', className }) => (react_1.default.createElement(Svg_1.default, { fill: fill, className: className, color: color, size: size, path: "", viewBox: "-24.62 0 227 227" },
64363
64363
  react_1.default.createElement("defs", null,
64364
64364
  react_1.default.createElement("style", null, `.cls-1{fill:${fill};}
64365
64365
  .cls-2{fill:${fill};}
@@ -78496,30 +78496,31 @@ const StepDestination = ({ tripProfile, destinations, setTripProfile, isTripEdit
78496
78496
  }));
78497
78497
  }, [tripProfile.arrivalDatetime, tripProfile.departureDatetime]);
78498
78498
  const callbackDateRangePicker = (startDate, endDate) => {
78499
- const newTripProfile = { ...tripProfile };
78500
- const notUtcStartDate = startDate.utcOffset(0);
78501
- const notUtcEndDate = endDate.utcOffset(0);
78502
- const newStartDate = { year: +notUtcStartDate.format('YYYY'), month: +notUtcStartDate.format('MM') - 1, day: +notUtcStartDate.format('DD') };
78503
- const newEndDate = { year: +notUtcEndDate.format('YYYY'), month: +notUtcEndDate.format('MM') - 1, day: +notUtcEndDate.format('DD') };
78504
- const startDateTime = (0, moment_1.default)(newTripProfile.arrivalDatetime)
78505
- .set({
78506
- year: newStartDate.year,
78507
- month: newStartDate.month,
78508
- date: newStartDate.day,
78509
- })
78510
- .utcOffset(0);
78511
- // .format('YYYY-MM-DDTHH:mm:ss[Z]');
78512
- newTripProfile.arrivalDatetime = `${startDateTime.format('YYYY')}-${startDateTime.format('MM')}-${startDateTime.format('DD')}T${newTripProfile.arrivalDatetime.split('T')[1]}`;
78513
- const endDateTime = (0, moment_1.default)(newTripProfile.departureDatetime)
78514
- .set({
78515
- year: newEndDate.year,
78516
- month: newEndDate.month,
78517
- date: newEndDate.day,
78518
- })
78519
- .utcOffset(0);
78520
- // .format('YYYY-MM-DDTHH:mm:ss[Z]');
78521
- newTripProfile.departureDatetime = `${endDateTime.format('YYYY')}-${endDateTime.format('MM')}-${endDateTime.format('DD')}T${newTripProfile.departureDatetime.split('T')[1]}`;
78522
- setTripProfile(newTripProfile);
78499
+ // Check if startDate and endDate are not null
78500
+ if (startDate && endDate) {
78501
+ const newTripProfile = { ...tripProfile };
78502
+ const notUtcStartDate = startDate.utcOffset(0);
78503
+ const notUtcEndDate = endDate.utcOffset(0);
78504
+ const newStartDate = { year: +notUtcStartDate.format('YYYY'), month: +notUtcStartDate.format('MM') - 1, day: +notUtcStartDate.format('DD') };
78505
+ const newEndDate = { year: +notUtcEndDate.format('YYYY'), month: +notUtcEndDate.format('MM') - 1, day: +notUtcEndDate.format('DD') };
78506
+ const startDateTime = (0, moment_1.default)(newTripProfile.arrivalDatetime)
78507
+ .set({
78508
+ year: newStartDate.year,
78509
+ month: newStartDate.month,
78510
+ date: newStartDate.day,
78511
+ })
78512
+ .utcOffset(0);
78513
+ newTripProfile.arrivalDatetime = `${startDateTime.format('YYYY')}-${startDateTime.format('MM')}-${startDateTime.format('DD')}T${newTripProfile.arrivalDatetime.split('T')[1]}`;
78514
+ const endDateTime = (0, moment_1.default)(newTripProfile.departureDatetime)
78515
+ .set({
78516
+ year: newEndDate.year,
78517
+ month: newEndDate.month,
78518
+ date: newEndDate.day,
78519
+ })
78520
+ .utcOffset(0);
78521
+ newTripProfile.departureDatetime = `${endDateTime.format('YYYY')}-${endDateTime.format('MM')}-${endDateTime.format('DD')}T${newTripProfile.departureDatetime.split('T')[1]}`;
78522
+ setTripProfile(newTripProfile);
78523
+ }
78523
78524
  };
78524
78525
  const callbackArrivalDateTime = (arrivalTime) => {
78525
78526
  const newTripProfile = { ...tripProfile };