@travelswitchhq/flight-search-react 1.1.2 → 1.1.3

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/dist/index.mjs CHANGED
@@ -95,6 +95,9 @@ var flightSearchWidgetStyles = `
95
95
  .sw-container h5 {
96
96
  font-size: 14px;
97
97
  }
98
+ .sw-container .font14 {
99
+ font-size: 14px;
100
+ }
98
101
  .sw-container h6,
99
102
  .sw-container small {
100
103
  font-size: 12px;
@@ -842,6 +845,7 @@ padding-inline-start: 25px;
842
845
  flex: 1 1 50%;
843
846
  min-width: 0;
844
847
  justify-content: center;
848
+ border: 1px solid transparent;
845
849
  }
846
850
  .sw-add-return-label label {
847
851
  color: var(--primary) !important;
@@ -1319,8 +1323,8 @@ padding-inline-start: 25px;
1319
1323
  .sw-fsrh-chk-main{
1320
1324
  flex-wrap: wrap;
1321
1325
  }
1322
- .sw-custom-dropdown-trigger{
1323
- pointer-events: none;
1326
+ .mobiBox{
1327
+ flex-direction: row;
1324
1328
  }
1325
1329
  }
1326
1330
  `;
@@ -2133,8 +2137,9 @@ function FlightSearchWidget({
2133
2137
  "input",
2134
2138
  {
2135
2139
  type: "text",
2140
+ readOnly: true,
2136
2141
  id: `${dropdownType}-${segmentIndex}`,
2137
- className: `sw-custom-dropdown-trigger MobileHide ${value === placeholder || !value ? "sw-placeholder" : ""}`,
2142
+ className: `sw-custom-dropdown-trigger MobileShow ${value === placeholder || !value ? "sw-placeholder" : ""}`,
2138
2143
  value: value === placeholder ? "" : value ?? "",
2139
2144
  placeholder,
2140
2145
  onFocus: (e) => {
@@ -2154,9 +2159,8 @@ function FlightSearchWidget({
2154
2159
  "input",
2155
2160
  {
2156
2161
  type: "text",
2157
- readOnly: true,
2158
2162
  id: `${dropdownType}-${segmentIndex}`,
2159
- className: `sw-custom-dropdown-trigger MobileShow ${value === placeholder || !value ? "sw-placeholder" : ""}`,
2163
+ className: `sw-custom-dropdown-trigger MobileHide ${value === placeholder || !value ? "sw-placeholder" : ""}`,
2160
2164
  value: value === placeholder ? "" : value ?? "",
2161
2165
  placeholder,
2162
2166
  onFocus: (e) => {
@@ -2234,7 +2238,7 @@ function FlightSearchWidget({
2234
2238
  renderAirportDropdown(index, "destination", destinationDropdownRef || destinationRef, isDestOpen, () => toggleSegmentDropdown(index, "destination"))
2235
2239
  ] }, index),
2236
2240
  isMultiCityOrCustom && /* @__PURE__ */ jsxs("div", { className: "sw-srh-wrap sw-pos-rel", children: [
2237
- /* @__PURE__ */ jsxs("div", { className: "sw-form-field sw-com-cal", children: [
2241
+ /* @__PURE__ */ jsxs("div", { className: "sw-form-field sw-com-cal ", children: [
2238
2242
  /* @__PURE__ */ jsx("label", { htmlFor: `departure-${index}`, children: "Departure" }),
2239
2243
  /* @__PURE__ */ jsx(
2240
2244
  Calendar,
@@ -2353,7 +2357,7 @@ function FlightSearchWidget({
2353
2357
  ),
2354
2358
  renderAirportDropdown(0, "destination", destinationDropdownRef, isDestinationDropdownOpen, () => setIsDestinationDropdownOpen(true))
2355
2359
  ] }),
2356
- (tripType === "round-trip" || tripType === "one-way") && /* @__PURE__ */ jsx("div", { className: "sw-srh-wrap sw-pos-rel ", children: tripType === "round-trip" ? /* @__PURE__ */ jsxs(Fragment, { children: [
2360
+ (tripType === "round-trip" || tripType === "one-way") && /* @__PURE__ */ jsx("div", { className: "sw-srh-wrap sw-pos-rel mobiBox", children: tripType === "round-trip" ? /* @__PURE__ */ jsxs(Fragment, { children: [
2357
2361
  /* @__PURE__ */ jsxs("div", { style: { cursor: "pointer" }, onClick: () => {
2358
2362
  dateRangeCalendarRef.current?.show?.();
2359
2363
  mobileDateRangeCalendarRef.current?.show?.();
@@ -2538,7 +2542,7 @@ function FlightSearchWidget({
2538
2542
  /* @__PURE__ */ jsx("div", { className: "sw-form-field sw-pos-rel sw-com-cal sw-add-return-label", style: { cursor: "pointer" }, onClick: () => {
2539
2543
  setTripType("round-trip");
2540
2544
  setTimeout(() => document.getElementById("dateRange")?.querySelector("input")?.focus?.(), 100);
2541
- }, children: /* @__PURE__ */ jsx("label", { children: "Add return" }) })
2545
+ }, children: /* @__PURE__ */ jsx("label", { className: "font14", children: "Add return" }) })
2542
2546
  ] }) }),
2543
2547
  (tripType === "multi-city" || tripType === "custom-search") && /* @__PURE__ */ jsx("div", { className: "sw-srh-mc-foot", children: segments.length < getMaxSegments() && /* @__PURE__ */ jsxs("button", { type: "button", className: "sw-srh-add-btn", onClick: addFlightSegment, children: [
2544
2548
  /* @__PURE__ */ jsxs("svg", { width: "14", height: "14", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", children: [