@travelswitchhq/flight-search-react 1.0.9 → 1.1.0
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 +14 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +14 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -37,7 +37,6 @@ var flightSearchWidgetStyles = `
|
|
|
37
37
|
.sw-container {
|
|
38
38
|
--sw-font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
39
39
|
--sw-en-font-family: Arial, sans-serif;
|
|
40
|
-
--sw-secondary-bg-text: #ffffff;
|
|
41
40
|
--sw-label-color: #66797F;
|
|
42
41
|
--sw-body-text: #0B1215;
|
|
43
42
|
--sw-btn-radius: 8px;
|
|
@@ -762,7 +761,7 @@ padding-inline-start: 25px;
|
|
|
762
761
|
gap: 10px;
|
|
763
762
|
cursor: pointer;
|
|
764
763
|
user-select: none;
|
|
765
|
-
color: var(--
|
|
764
|
+
color: var(--secondary-bg-text);
|
|
766
765
|
font-size: 14px;
|
|
767
766
|
}
|
|
768
767
|
.sw-material-checkbox input {
|
|
@@ -815,10 +814,13 @@ padding-inline-start: 25px;
|
|
|
815
814
|
background-color: var(--primary-light);
|
|
816
815
|
color: var(--primary);
|
|
817
816
|
}
|
|
817
|
+
.sw-card-box .sw-srh-class .sw-tab-content {
|
|
818
|
+
border: 1px solid var(--sw-form-border);
|
|
819
|
+
}
|
|
818
820
|
.sw-card-box .sw-tab-content {
|
|
819
821
|
height: 40px;
|
|
820
822
|
padding: 6px 15px;
|
|
821
|
-
border: 1px solid var(--
|
|
823
|
+
border: 1px solid var(--secondary-bg-text);
|
|
822
824
|
border-radius: var(--sw-radius);
|
|
823
825
|
align-content: center;
|
|
824
826
|
}
|
|
@@ -888,11 +890,11 @@ padding-inline-start: 25px;
|
|
|
888
890
|
height: 40px;
|
|
889
891
|
}
|
|
890
892
|
.sw-srh-round-text .sw-tab-content{
|
|
891
|
-
color: var(--
|
|
893
|
+
color: var(--secondary-bg-text);
|
|
892
894
|
}
|
|
893
895
|
.sw-advanced-search-options .p-accordion-header-text,
|
|
894
896
|
.sw-card-box .p-accordion-toggle-icon{
|
|
895
|
-
color: var(--
|
|
897
|
+
color: var(--secondary-bg-text);
|
|
896
898
|
}
|
|
897
899
|
.sw-remove-segment{
|
|
898
900
|
fill: var(--primary);
|
|
@@ -971,10 +973,11 @@ padding-inline-start: 25px;
|
|
|
971
973
|
}
|
|
972
974
|
.p-autocomplete-multiple-container {
|
|
973
975
|
width: 100%;
|
|
976
|
+
background-color: var(--sw-white);
|
|
974
977
|
min-width: 270px;
|
|
975
978
|
padding: 10px;
|
|
976
979
|
padding-inline-end: 2rem;
|
|
977
|
-
border: 1px solid var(--
|
|
980
|
+
border: 1px solid var(--secondary-bg-text);
|
|
978
981
|
border-radius: var(--sw-radius);
|
|
979
982
|
gap: 0.5rem;
|
|
980
983
|
font-size: 14px;
|
|
@@ -1471,8 +1474,9 @@ function FlightSearchWidget({
|
|
|
1471
1474
|
}) {
|
|
1472
1475
|
const theme = config?.theme;
|
|
1473
1476
|
const primaryColor = theme?.primary ?? "#2c0a82";
|
|
1474
|
-
const secondaryColor = theme?.secondary ?? "#2c0a82";
|
|
1475
1477
|
const primaryLightColor = theme?.primaryLight ?? "#f3e2ff";
|
|
1478
|
+
const secondaryColor = theme?.secondary ?? "#2c0a82";
|
|
1479
|
+
const secondaryBgText = theme?.secondaryBgText ?? "#ffffff";
|
|
1476
1480
|
const fontName = config?.fontName;
|
|
1477
1481
|
const redirectionDomain = config?.redirectionDomain;
|
|
1478
1482
|
const env = config?.env ?? "dev";
|
|
@@ -1723,15 +1727,16 @@ function FlightSearchWidget({
|
|
|
1723
1727
|
() => {
|
|
1724
1728
|
const style = {
|
|
1725
1729
|
["--primary"]: primaryColor,
|
|
1730
|
+
["--primary-light"]: primaryLightColor,
|
|
1726
1731
|
["--secondary"]: secondaryColor,
|
|
1727
|
-
["--
|
|
1732
|
+
["--secondary-bg-text"]: secondaryBgText
|
|
1728
1733
|
};
|
|
1729
1734
|
if (fontName) {
|
|
1730
1735
|
style["--font-family"] = fontName;
|
|
1731
1736
|
}
|
|
1732
1737
|
return style;
|
|
1733
1738
|
},
|
|
1734
|
-
[primaryColor, secondaryColor, primaryLightColor]
|
|
1739
|
+
[primaryColor, secondaryColor, primaryLightColor, secondaryBgText]
|
|
1735
1740
|
);
|
|
1736
1741
|
(0, import_react.useEffect)(() => {
|
|
1737
1742
|
ensureStylesInjected();
|