@travelswitchhq/flight-search-react 1.0.3 → 1.0.5
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.cjs +29 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +29 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -244,7 +244,7 @@ var flightSearchWidgetStyles = `
|
|
|
244
244
|
border-radius: 50%;
|
|
245
245
|
background-color: #fff;
|
|
246
246
|
cursor: pointer;
|
|
247
|
-
transform: translate(
|
|
247
|
+
transform: translate(50%, -50%);
|
|
248
248
|
}
|
|
249
249
|
.sw-srh-wrap.sw-srh-box.sw-pos-rel .sw-form-field.sw-pos-rel:last-child {
|
|
250
250
|
padding-inline-start: 25px;
|
|
@@ -794,7 +794,7 @@ padding-inline-start: 25px;
|
|
|
794
794
|
-webkit-user-select: none;
|
|
795
795
|
user-select: none;
|
|
796
796
|
}
|
|
797
|
-
.sw-tab-checkbox input {
|
|
797
|
+
.sw-container .sw-tab-checkbox input {
|
|
798
798
|
display: none;
|
|
799
799
|
}
|
|
800
800
|
.sw-tab-checkbox input:checked + .sw-tab-content,
|
|
@@ -1295,7 +1295,7 @@ padding-inline-start: 25px;
|
|
|
1295
1295
|
.sw-rooms-guests-title{
|
|
1296
1296
|
display: none !important;
|
|
1297
1297
|
}
|
|
1298
|
-
.sw-rooms-
|
|
1298
|
+
.sw-rooms-gst-content{
|
|
1299
1299
|
padding: 15px;
|
|
1300
1300
|
}
|
|
1301
1301
|
.sw-rooms-guests-footer{
|
|
@@ -2102,14 +2102,14 @@ function FlightSearchWidget({
|
|
|
2102
2102
|
}
|
|
2103
2103
|
),
|
|
2104
2104
|
isOpen && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "sw-dropdown", children: [
|
|
2105
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mobileHead
|
|
2105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mobileHead MobileShow", children: [
|
|
2106
2106
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { type: "button", onClick: () => closeAirportDropdown(dropdownType, segmentIndex), children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { width: "20px", height: "20px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2107
2107
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M19 5L5 19", stroke: "black", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }),
|
|
2108
2108
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5 5L19 19", stroke: "black", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })
|
|
2109
2109
|
] }) }),
|
|
2110
2110
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { children: isOrigin ? "Origin" : "Destination" })
|
|
2111
2111
|
] }),
|
|
2112
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mobileSrgInput
|
|
2112
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mobileSrgInput MobileShow", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", { type: "text", placeholder: `Search ${isOrigin ? "Origin" : "Destination"}`, value: value ?? "", onChange: (e) => {
|
|
2113
2113
|
const val = e.target.value;
|
|
2114
2114
|
handleSegmentFieldChange(segmentIndex, dropdownType, val);
|
|
2115
2115
|
triggerSearchAirport(segmentIndex, dropdownType, val);
|
|
@@ -2206,7 +2206,29 @@ function FlightSearchWidget({
|
|
|
2206
2206
|
dateFormat: "dd M yy",
|
|
2207
2207
|
placeholder: "29 Jan 2026",
|
|
2208
2208
|
className: "p-inputtext-sm MobileShow",
|
|
2209
|
-
minDate: getMinDateForSegment(index)
|
|
2209
|
+
minDate: getMinDateForSegment(index),
|
|
2210
|
+
headerTemplate: () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mobileHead MobileShow", children: [
|
|
2211
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { type: "button", onClick: (e) => {
|
|
2212
|
+
e.stopPropagation();
|
|
2213
|
+
mobileDateRangeCalendarRef.current?.hide?.();
|
|
2214
|
+
}, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { width: "20px", height: "20px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
2215
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M19 5L5 19", stroke: "black", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
2216
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5 5L19 19", stroke: "black", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
2217
|
+
] }) }),
|
|
2218
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { children: "Departure" })
|
|
2219
|
+
] }),
|
|
2220
|
+
footerTemplate: () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mobileFooter MobileShow", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
2221
|
+
"button",
|
|
2222
|
+
{
|
|
2223
|
+
type: "button",
|
|
2224
|
+
className: "sw-confirm-btn",
|
|
2225
|
+
onClick: (e) => {
|
|
2226
|
+
e.stopPropagation();
|
|
2227
|
+
mobileDateRangeCalendarRef.current?.hide?.();
|
|
2228
|
+
},
|
|
2229
|
+
children: "Confirm"
|
|
2230
|
+
}
|
|
2231
|
+
) })
|
|
2210
2232
|
}
|
|
2211
2233
|
)
|
|
2212
2234
|
] }),
|
|
@@ -2477,7 +2499,7 @@ function FlightSearchWidget({
|
|
|
2477
2499
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h4", { children: "Number of Travellers" })
|
|
2478
2500
|
] }),
|
|
2479
2501
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "sw-rooms-guests-title", children: "Number of Travellers" }),
|
|
2480
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "sw-rooms-
|
|
2502
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "sw-rooms-gst-content", children: [
|
|
2481
2503
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "sw-srh-pax", children: [
|
|
2482
2504
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "sw-srh-common-adult", children: [
|
|
2483
2505
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { children: "Adults" }),
|