@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.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -11,7 +11,6 @@ var flightSearchWidgetStyles = `
|
|
|
11
11
|
.sw-container {
|
|
12
12
|
--sw-font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
13
13
|
--sw-en-font-family: Arial, sans-serif;
|
|
14
|
-
--sw-secondary-bg-text: #ffffff;
|
|
15
14
|
--sw-label-color: #66797F;
|
|
16
15
|
--sw-body-text: #0B1215;
|
|
17
16
|
--sw-btn-radius: 8px;
|
|
@@ -736,7 +735,7 @@ padding-inline-start: 25px;
|
|
|
736
735
|
gap: 10px;
|
|
737
736
|
cursor: pointer;
|
|
738
737
|
user-select: none;
|
|
739
|
-
color: var(--
|
|
738
|
+
color: var(--secondary-bg-text);
|
|
740
739
|
font-size: 14px;
|
|
741
740
|
}
|
|
742
741
|
.sw-material-checkbox input {
|
|
@@ -789,10 +788,13 @@ padding-inline-start: 25px;
|
|
|
789
788
|
background-color: var(--primary-light);
|
|
790
789
|
color: var(--primary);
|
|
791
790
|
}
|
|
791
|
+
.sw-card-box .sw-srh-class .sw-tab-content {
|
|
792
|
+
border: 1px solid var(--sw-form-border);
|
|
793
|
+
}
|
|
792
794
|
.sw-card-box .sw-tab-content {
|
|
793
795
|
height: 40px;
|
|
794
796
|
padding: 6px 15px;
|
|
795
|
-
border: 1px solid var(--
|
|
797
|
+
border: 1px solid var(--secondary-bg-text);
|
|
796
798
|
border-radius: var(--sw-radius);
|
|
797
799
|
align-content: center;
|
|
798
800
|
}
|
|
@@ -862,11 +864,11 @@ padding-inline-start: 25px;
|
|
|
862
864
|
height: 40px;
|
|
863
865
|
}
|
|
864
866
|
.sw-srh-round-text .sw-tab-content{
|
|
865
|
-
color: var(--
|
|
867
|
+
color: var(--secondary-bg-text);
|
|
866
868
|
}
|
|
867
869
|
.sw-advanced-search-options .p-accordion-header-text,
|
|
868
870
|
.sw-card-box .p-accordion-toggle-icon{
|
|
869
|
-
color: var(--
|
|
871
|
+
color: var(--secondary-bg-text);
|
|
870
872
|
}
|
|
871
873
|
.sw-remove-segment{
|
|
872
874
|
fill: var(--primary);
|
|
@@ -945,10 +947,11 @@ padding-inline-start: 25px;
|
|
|
945
947
|
}
|
|
946
948
|
.p-autocomplete-multiple-container {
|
|
947
949
|
width: 100%;
|
|
950
|
+
background-color: var(--sw-white);
|
|
948
951
|
min-width: 270px;
|
|
949
952
|
padding: 10px;
|
|
950
953
|
padding-inline-end: 2rem;
|
|
951
|
-
border: 1px solid var(--
|
|
954
|
+
border: 1px solid var(--secondary-bg-text);
|
|
952
955
|
border-radius: var(--sw-radius);
|
|
953
956
|
gap: 0.5rem;
|
|
954
957
|
font-size: 14px;
|
|
@@ -1445,8 +1448,9 @@ function FlightSearchWidget({
|
|
|
1445
1448
|
}) {
|
|
1446
1449
|
const theme = config?.theme;
|
|
1447
1450
|
const primaryColor = theme?.primary ?? "#2c0a82";
|
|
1448
|
-
const secondaryColor = theme?.secondary ?? "#2c0a82";
|
|
1449
1451
|
const primaryLightColor = theme?.primaryLight ?? "#f3e2ff";
|
|
1452
|
+
const secondaryColor = theme?.secondary ?? "#2c0a82";
|
|
1453
|
+
const secondaryBgText = theme?.secondaryBgText ?? "#ffffff";
|
|
1450
1454
|
const fontName = config?.fontName;
|
|
1451
1455
|
const redirectionDomain = config?.redirectionDomain;
|
|
1452
1456
|
const env = config?.env ?? "dev";
|
|
@@ -1697,15 +1701,16 @@ function FlightSearchWidget({
|
|
|
1697
1701
|
() => {
|
|
1698
1702
|
const style = {
|
|
1699
1703
|
["--primary"]: primaryColor,
|
|
1704
|
+
["--primary-light"]: primaryLightColor,
|
|
1700
1705
|
["--secondary"]: secondaryColor,
|
|
1701
|
-
["--
|
|
1706
|
+
["--secondary-bg-text"]: secondaryBgText
|
|
1702
1707
|
};
|
|
1703
1708
|
if (fontName) {
|
|
1704
1709
|
style["--font-family"] = fontName;
|
|
1705
1710
|
}
|
|
1706
1711
|
return style;
|
|
1707
1712
|
},
|
|
1708
|
-
[primaryColor, secondaryColor, primaryLightColor]
|
|
1713
|
+
[primaryColor, secondaryColor, primaryLightColor, secondaryBgText]
|
|
1709
1714
|
);
|
|
1710
1715
|
useEffect(() => {
|
|
1711
1716
|
ensureStylesInjected();
|