tf-checkout-react 1.4.6 → 1.4.7
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/components/ticketsContainer/PromoCodeSection.d.ts +2 -1
- package/dist/components/ticketsContainer/index.d.ts +2 -1
- package/dist/tf-checkout-react.cjs.development.js +9 -5
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +9 -5
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ticketsContainer/PromoCodeSection.tsx +15 -9
- package/src/components/ticketsContainer/index.tsx +3 -0
- package/src/components/common/dist/PhoneNumberField.js +0 -96
|
@@ -5153,7 +5153,8 @@ var PromoCodeSection = function PromoCodeSection(_ref) {
|
|
|
5153
5153
|
setCodeIsApplied = _ref.setCodeIsApplied,
|
|
5154
5154
|
codeIsInvalid = _ref.codeIsInvalid,
|
|
5155
5155
|
setCodeIsInvalid = _ref.setCodeIsInvalid,
|
|
5156
|
-
promoText = _ref.promoText
|
|
5156
|
+
promoText = _ref.promoText,
|
|
5157
|
+
showAlertIcons = _ref.showAlertIcons;
|
|
5157
5158
|
var isPromoCodeHasValue = !!code.trim();
|
|
5158
5159
|
var renderInputField = function renderInputField() {
|
|
5159
5160
|
return React.createElement("div", {
|
|
@@ -5186,7 +5187,7 @@ var PromoCodeSection = function PromoCodeSection(_ref) {
|
|
|
5186
5187
|
};
|
|
5187
5188
|
return React.createElement("div", null, codeIsApplied ? React.createElement("div", {
|
|
5188
5189
|
className: "alert-info"
|
|
5189
|
-
}, React.createElement(SVG, {
|
|
5190
|
+
}, showAlertIcons && React.createElement(SVG, {
|
|
5190
5191
|
src: DoneSvg,
|
|
5191
5192
|
preProcessor: function preProcessor(code) {
|
|
5192
5193
|
return code.replace(/fill=".*?"/g, 'fill="currentColor"');
|
|
@@ -5195,7 +5196,7 @@ var PromoCodeSection = function PromoCodeSection(_ref) {
|
|
|
5195
5196
|
className: "promo-code-success"
|
|
5196
5197
|
}, "PROMO CODE APPLIED SUCCESSFULLY")) : null, codeIsInvalid ? React.createElement("div", {
|
|
5197
5198
|
className: "alert-info fail"
|
|
5198
|
-
}, React.createElement(SVG, {
|
|
5199
|
+
}, showAlertIcons && React.createElement(SVG, {
|
|
5199
5200
|
src: XmarkSvg
|
|
5200
5201
|
}), React.createElement("p", {
|
|
5201
5202
|
className: "promo-code-fail"
|
|
@@ -5523,7 +5524,9 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
5523
5524
|
_ref$onReserveButtonC = _ref.onReserveButtonClick,
|
|
5524
5525
|
onReserveButtonClick = _ref$onReserveButtonC === void 0 ? _identity : _ref$onReserveButtonC,
|
|
5525
5526
|
_ref$onPendingVerific = _ref.onPendingVerification,
|
|
5526
|
-
onPendingVerification = _ref$onPendingVerific === void 0 ? _identity : _ref$onPendingVerific
|
|
5527
|
+
onPendingVerification = _ref$onPendingVerific === void 0 ? _identity : _ref$onPendingVerific,
|
|
5528
|
+
_ref$showAlertIcons = _ref.showAlertIcons,
|
|
5529
|
+
showAlertIcons = _ref$showAlertIcons === void 0 ? true : _ref$showAlertIcons;
|
|
5527
5530
|
var _useState = useState({}),
|
|
5528
5531
|
selectedTickets = _useState[0],
|
|
5529
5532
|
setSelectedTickets = _useState[1];
|
|
@@ -6063,7 +6066,8 @@ var TicketsContainer = function TicketsContainer(_ref) {
|
|
|
6063
6066
|
updateTickets: updateTickets,
|
|
6064
6067
|
codeIsInvalid: codeIsInvalid,
|
|
6065
6068
|
setCodeIsInvalid: setCodeIsInvalid,
|
|
6066
|
-
promoText: promoText
|
|
6069
|
+
promoText: promoText,
|
|
6070
|
+
showAlertIcons: showAlertIcons
|
|
6067
6071
|
}) : null, wrappedActionsSectionComponent, canShowGetTicketBtn() && React.createElement(Button$1, {
|
|
6068
6072
|
"aria-hidden": true,
|
|
6069
6073
|
className: "book-button \n " + (bookButtonIsDisabled ? 'disabled' : '') + " \n " + (isButtonScrollable ? 'is-scrollable' : '') + "\n " + (!isLoggedIn ? 'on-bottom' : '') + "\n ",
|