@tripian/react 6.0.39 → 6.0.40
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/index.js +37 -30
- package/index.js.map +1 -1
- package/min.css +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -71518,29 +71518,31 @@ var FormTemplateTripNext = function (_a) {
|
|
|
71518
71518
|
callbackTripProfile(newTripProfile);
|
|
71519
71519
|
}, callbackUserCompanionAdd: callbackUserCompanionAdd, companionLoadingList: companionLoadingList, userCompanionQuestions: userCompanionQuestions, userCompanions: userCompanions, travelerInfoTips: travelerInfoTips })),
|
|
71520
71520
|
stepId > 0 && react_1.default.createElement(StepComponent_1.default, { defaultTip: questionDefaultTip, header: stepHeader.header, stepQuestions: stepQuestions, stepId: stepId, tripProfile: tripProfile, callbackTripAnswers: callbackTripAnswers }),
|
|
71521
|
-
react_1.default.createElement("div", { className: "row
|
|
71522
|
-
react_1.default.createElement("div", { className: "col
|
|
71523
|
-
|
|
71524
|
-
|
|
71525
|
-
|
|
71526
|
-
|
|
71527
|
-
|
|
71528
|
-
|
|
71529
|
-
|
|
71530
|
-
|
|
71531
|
-
|
|
71532
|
-
|
|
71533
|
-
|
|
71534
|
-
|
|
71535
|
-
|
|
71536
|
-
|
|
71537
|
-
|
|
71538
|
-
|
|
71539
|
-
|
|
71540
|
-
|
|
71541
|
-
|
|
71542
|
-
|
|
71543
|
-
|
|
71521
|
+
react_1.default.createElement("div", { className: "row ".concat(FormTemplateTripNext_scss_1.default.formTempButtons) },
|
|
71522
|
+
react_1.default.createElement("div", { className: "col col12 col8-m mb0" },
|
|
71523
|
+
react_1.default.createElement("div", { className: "row center m0" },
|
|
71524
|
+
react_1.default.createElement("div", { className: "col col6 p0" }, stepId === -1 ? (react_1.default.createElement(Button_1.default, { text: "Cancel", color: "primary", onClick: function () {
|
|
71525
|
+
onCancel();
|
|
71526
|
+
} })) : (react_1.default.createElement(Button_1.default, { text: "Previous", color: "primary", onClick: function () {
|
|
71527
|
+
setStepId(function (prevStepId) { return prevStepId - 1; });
|
|
71528
|
+
} }))),
|
|
71529
|
+
react_1.default.createElement("div", { className: "col col6 p0" }, stepId === -1 ? (react_1.default.createElement(Button_1.default, { text: "Continue", color: "primary",
|
|
71530
|
+
// color={isNextButtonDisabled ? 'disabled' : 'primary'}
|
|
71531
|
+
disabled: isNextButtonDisabledStep1, onClick: function () {
|
|
71532
|
+
setStepId(function (prevStepId) { return prevStepId + 1; });
|
|
71533
|
+
} })) : stepId === 0 ? (react_1.default.createElement(Button_1.default, { text: "Continue", color: "primary",
|
|
71534
|
+
// color={isNextButtonDisabled ? 'disabled' : 'primary'}
|
|
71535
|
+
disabled: isNextButtonDisabledStep2, onClick: function () {
|
|
71536
|
+
setStepId(function (prevStepId) { return prevStepId + 1; });
|
|
71537
|
+
} })) : stepId === 2 ? (react_1.default.createElement(Button_1.default, { text: onSubmitText, color: "primary",
|
|
71538
|
+
// color={isNextButtonDisabled ? 'disabled' : 'primary'}
|
|
71539
|
+
disabled: isNextButtonDisabledStep1 || isNextButtonDisabledStep2, onClick: function () {
|
|
71540
|
+
onSubmit();
|
|
71541
|
+
} })) : (react_1.default.createElement(Button_1.default, { text: "Continue", color: "primary",
|
|
71542
|
+
// color={isNextButtonDisabled ? 'disabled' : 'primary'}
|
|
71543
|
+
disabled: isNextButtonDisabledStep1 || isNextButtonDisabledStep2, onClick: function () {
|
|
71544
|
+
setStepId(function (prevStepId) { return prevStepId + 1; });
|
|
71545
|
+
} })))))))));
|
|
71544
71546
|
};
|
|
71545
71547
|
exports.default = FormTemplateTripNext;
|
|
71546
71548
|
|
|
@@ -72454,11 +72456,16 @@ var StepTravelerInfo = function (_a) {
|
|
|
72454
72456
|
var tripProfile = _a.tripProfile, setTripProfile = _a.setTripProfile, bound = _a.bound, cities = _a.cities, setBound = _a.setBound, userCompanionQuestions = _a.userCompanionQuestions, userCompanions = _a.userCompanions, companionLoadingList = _a.companionLoadingList, callbackUserCompanionAdd = _a.callbackUserCompanionAdd, travelerInfoTips = _a.travelerInfoTips;
|
|
72455
72457
|
var _b = (0, react_1.useState)(travelerInfoTips[0]), tip = _b[0], setTip = _b[1];
|
|
72456
72458
|
(0, react_1.useEffect)(function () {
|
|
72457
|
-
var _a;
|
|
72458
72459
|
var currentCity = cities.find(function (city) { return city.id === tripProfile.cityId; });
|
|
72459
72460
|
if (currentCity) {
|
|
72460
|
-
var
|
|
72461
|
-
|
|
72461
|
+
var getTopParentCity_1 = function (c) {
|
|
72462
|
+
var parentCity = cities.find(function (city) { return city.id === c.parentLocationId; });
|
|
72463
|
+
if (parentCity === undefined)
|
|
72464
|
+
return c;
|
|
72465
|
+
return getTopParentCity_1(parentCity);
|
|
72466
|
+
};
|
|
72467
|
+
var topParentCity = getTopParentCity_1(currentCity);
|
|
72468
|
+
var boundary = topParentCity.boundary;
|
|
72462
72469
|
var newBoundary = new google.maps.LatLngBounds(new google.maps.LatLng(boundary[0], boundary[2]), new google.maps.LatLng(boundary[1], boundary[3]));
|
|
72463
72470
|
setBound(newBoundary);
|
|
72464
72471
|
}
|
|
@@ -76747,7 +76754,7 @@ var StepTimeframe = function (_a) {
|
|
|
76747
76754
|
react_1.default.createElement("div", { className: "col col4 mb0 pb0" },
|
|
76748
76755
|
react_1.default.createElement(Dropdown_1.default, { options: timeOptions, defaultValue: timeframe.endTime, selectChange: function (end) { return changeTimeframe('endTime', end); } })),
|
|
76749
76756
|
showUpdateButton ? (react_1.default.createElement("div", { className: "col col2 mb0 pb0 center ".concat(StepTimeframe_scss_1.default.stepTimeFrameCenter) },
|
|
76750
|
-
react_1.default.createElement(Button_1.default, { type: ButtonTypes_1.default.OUTLINED, color: updateButtonDisabled ? 'disabled' : 'primary', iconPath: "m159.988281 318.582031c-3.988281 4.011719-9.429687 6.25-15.082031 6.25s-11.09375-2.238281-15.082031-6.25l-120.449219-120.46875c-12.5-12.5-12.5-32.769531 0-45.246093l15.082031-15.085938c12.503907-12.5 32.75-12.5 45.25 0l75.199219 75.203125 203.199219-203.203125c12.503906-12.5 32.769531-12.5 45.25 0l15.082031 15.085938c12.5 12.5 12.5 32.765624 0 45.246093zm0 0", iconViewBox: "0 -46 417.81333 417",
|
|
76757
|
+
react_1.default.createElement(Button_1.default, { className: StepTimeframe_scss_1.default.stepTimeFrameButton, type: ButtonTypes_1.default.OUTLINED, color: updateButtonDisabled ? 'disabled' : 'primary', iconPath: "m159.988281 318.582031c-3.988281 4.011719-9.429687 6.25-15.082031 6.25s-11.09375-2.238281-15.082031-6.25l-120.449219-120.46875c-12.5-12.5-12.5-32.769531 0-45.246093l15.082031-15.085938c12.503907-12.5 32.75-12.5 45.25 0l75.199219 75.203125 203.199219-203.203125c12.503906-12.5 32.769531-12.5 45.25 0l15.082031 15.085938c12.5 12.5 12.5 32.765624 0 45.246093zm0 0", iconViewBox: "0 -46 417.81333 417",
|
|
76751
76758
|
/* text="Update" */
|
|
76752
76759
|
disabled: updateButtonDisabled, onClick: function () {
|
|
76753
76760
|
callbackStepTimeframe(timeframe);
|
|
@@ -76755,7 +76762,7 @@ var StepTimeframe = function (_a) {
|
|
|
76755
76762
|
setShowTimeframeSelections(false);
|
|
76756
76763
|
}, size: "small" }))) : null,
|
|
76757
76764
|
react_1.default.createElement("div", { className: "".concat(StepTimeframe_scss_1.default.stepTimeFrameCenter, " ").concat(showUpdateButton ? 'col col2 mb0 pb0 center' : 'col col4 mb0 pb0') },
|
|
76758
|
-
react_1.default.createElement(Button_1.default, { type: ButtonTypes_1.default.OUTLINED, color: "primary", iconPath: "M64.1039 50.6494L97.7399 17.0039C98.6487 16.1262 99.3736 15.0762 99.8723 13.9153C100.371 12.7545 100.633 11.5059 100.644 10.2425C100.655 8.97905 100.415 7.72611 99.9362 6.55673C99.4578 5.38736 98.7513 4.32497 97.8579 3.43157C96.9645 2.53817 95.9021 1.83164 94.7327 1.35321C93.5633 0.874783 92.3104 0.634034 91.047 0.645013C89.7836 0.655991 88.535 0.918478 87.3741 1.41716C86.2132 1.91584 85.1633 2.64072 84.2855 3.54951L50.64 37.1855L17.004 3.54951C16.1263 2.64072 15.0763 1.91584 13.9155 1.41716C12.7546 0.918478 11.506 0.655991 10.2426 0.645013C8.97918 0.634034 7.72623 0.874783 6.55685 1.35321C5.38748 1.83164 4.32509 2.53817 3.43169 3.43157C2.53829 4.32497 1.83176 5.38736 1.35333 6.55673C0.874905 7.72611 0.634156 8.97905 0.645135 10.2425C0.656113 11.5059 0.918601 12.7545 1.41728 13.9153C1.91596 15.0762 2.64084 16.1262 3.54963 17.0039L37.1856 50.6399L3.54963 84.2854C2.64084 85.1632 1.91596 86.2131 1.41728 87.374C0.918601 88.5349 0.656113 89.7834 0.645135 91.0468C0.634156 92.3103 0.874905 93.5632 1.35333 94.7326C1.83176 95.902 2.53829 96.9643 3.43169 97.8577C4.32509 98.7511 5.38748 99.4577 6.55685 99.9361C7.72623 100.415 8.97918 100.655 10.2426 100.644C11.506 100.633 12.7546 100.371 13.9155 99.8722C15.0763 99.3735 16.1263 98.6486 17.004 97.7398L50.64 64.1038L84.2855 97.7398C85.1633 98.6486 86.2132 99.3735 87.3741 99.8722C88.535 100.371 89.7836 100.633 91.047 100.644C92.3104 100.655 93.5633 100.415 94.7327 99.9361C95.9021 99.4577 96.9645 98.7511 97.8579 97.8577C98.7513 96.9643 99.4578 95.902 99.9362 94.7326C100.415 93.5632 100.655 92.3103 100.644 91.0468C100.633 89.7834 100.371 88.5349 99.8723 87.374C99.3736 86.2131 98.6487 85.1632 97.7399 84.2854L64.1039 50.6399V50.6494Z", iconViewBox: "0 0 101 101",
|
|
76765
|
+
react_1.default.createElement(Button_1.default, { className: StepTimeframe_scss_1.default.stepTimeFrameButton, type: ButtonTypes_1.default.OUTLINED, color: "primary", iconPath: "M64.1039 50.6494L97.7399 17.0039C98.6487 16.1262 99.3736 15.0762 99.8723 13.9153C100.371 12.7545 100.633 11.5059 100.644 10.2425C100.655 8.97905 100.415 7.72611 99.9362 6.55673C99.4578 5.38736 98.7513 4.32497 97.8579 3.43157C96.9645 2.53817 95.9021 1.83164 94.7327 1.35321C93.5633 0.874783 92.3104 0.634034 91.047 0.645013C89.7836 0.655991 88.535 0.918478 87.3741 1.41716C86.2132 1.91584 85.1633 2.64072 84.2855 3.54951L50.64 37.1855L17.004 3.54951C16.1263 2.64072 15.0763 1.91584 13.9155 1.41716C12.7546 0.918478 11.506 0.655991 10.2426 0.645013C8.97918 0.634034 7.72623 0.874783 6.55685 1.35321C5.38748 1.83164 4.32509 2.53817 3.43169 3.43157C2.53829 4.32497 1.83176 5.38736 1.35333 6.55673C0.874905 7.72611 0.634156 8.97905 0.645135 10.2425C0.656113 11.5059 0.918601 12.7545 1.41728 13.9153C1.91596 15.0762 2.64084 16.1262 3.54963 17.0039L37.1856 50.6399L3.54963 84.2854C2.64084 85.1632 1.91596 86.2131 1.41728 87.374C0.918601 88.5349 0.656113 89.7834 0.645135 91.0468C0.634156 92.3103 0.874905 93.5632 1.35333 94.7326C1.83176 95.902 2.53829 96.9643 3.43169 97.8577C4.32509 98.7511 5.38748 99.4577 6.55685 99.9361C7.72623 100.415 8.97918 100.655 10.2426 100.644C11.506 100.633 12.7546 100.371 13.9155 99.8722C15.0763 99.3735 16.1263 98.6486 17.004 97.7398L50.64 64.1038L84.2855 97.7398C85.1633 98.6486 86.2132 99.3735 87.3741 99.8722C88.535 100.371 89.7836 100.633 91.047 100.644C92.3104 100.655 93.5633 100.415 94.7327 99.9361C95.9021 99.4577 96.9645 98.7511 97.8579 97.8577C98.7513 96.9643 99.4578 95.902 99.9362 94.7326C100.415 93.5632 100.655 92.3103 100.644 91.0468C100.633 89.7834 100.371 88.5349 99.8723 87.374C99.3736 86.2131 98.6487 85.1632 97.7399 84.2854L64.1039 50.6399V50.6494Z", iconViewBox: "0 0 101 101",
|
|
76759
76766
|
/* text="Cancel" */
|
|
76760
76767
|
onClick: function () {
|
|
76761
76768
|
setShowTimeframeSelections(false);
|
|
@@ -76777,7 +76784,7 @@ exports.default = StepTimeframe;
|
|
|
76777
76784
|
/***/ (function(module, exports, __webpack_require__) {
|
|
76778
76785
|
|
|
76779
76786
|
// extracted by mini-css-extract-plugin
|
|
76780
|
-
module.exports = {"timeframe":"components-StepTimeframe-StepTimeframe__timeframe--36M-x","stepTimeFrameCenter":"components-StepTimeframe-StepTimeframe__stepTimeFrameCenter--2ztrw","timeFrameSelections":"components-StepTimeframe-StepTimeframe__timeFrameSelections--cQjWE","hourText":"components-StepTimeframe-StepTimeframe__hourText---oVCI"};
|
|
76787
|
+
module.exports = {"timeframe":"components-StepTimeframe-StepTimeframe__timeframe--36M-x","stepTimeFrameCenter":"components-StepTimeframe-StepTimeframe__stepTimeFrameCenter--2ztrw","stepTimeFrameButton":"components-StepTimeframe-StepTimeframe__stepTimeFrameButton--wdGVM","timeFrameSelections":"components-StepTimeframe-StepTimeframe__timeFrameSelections--cQjWE","hourText":"components-StepTimeframe-StepTimeframe__hourText---oVCI"};
|
|
76781
76788
|
|
|
76782
76789
|
/***/ }),
|
|
76783
76790
|
/* 807 */
|
|
@@ -76799,7 +76806,7 @@ var Switch = function (_a) {
|
|
|
76799
76806
|
// const [action, setAction] = useState<boolean>(value);
|
|
76800
76807
|
var onchange = _a.onchange, _b = _a.value, value = _b === void 0 ? false : _b;
|
|
76801
76808
|
if (value) {
|
|
76802
|
-
return (react_1.default.createElement(Button_1.default, { text: "DONE", color: "
|
|
76809
|
+
return (react_1.default.createElement(Button_1.default, { text: "DONE", color: "default", style: { fontWeight: 'bold' }, type: ButtonTypes_1.default.OUTLINED, onClick: function () {
|
|
76803
76810
|
onchange(false);
|
|
76804
76811
|
} }));
|
|
76805
76812
|
}
|