tf-checkout-react 1.7.30 → 2.0.0-beta.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/LICENSE +1 -1
- package/README.md +141 -1033
- package/dist/checkout.css +17 -0
- package/dist/index.d.mts +3930 -0
- package/dist/index.d.ts +3930 -30
- package/dist/index.esm.js +9123 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +9277 -6
- package/dist/index.js.map +1 -0
- package/dist/styles/addons.css +75 -0
- package/dist/styles/auth.css +294 -0
- package/dist/styles/billing.css +98 -0
- package/dist/styles/confirmation.css +51 -0
- package/dist/styles/foundation.css +146 -0
- package/dist/styles/payment.css +179 -0
- package/dist/styles/primitives.css +356 -0
- package/dist/styles/seat-map.css +46 -0
- package/dist/styles/tickets.css +285 -0
- package/dist/styles/verification-confirmation.css +258 -0
- package/package.json +93 -78
- package/src/.d.ts +1 -1
- package/src/CardInput.tsx +374 -0
- package/src/EmbeddedCheckout.tsx +400 -0
- package/src/ResumedCheckout.tsx +132 -0
- package/src/auth/AuthModal.tsx +231 -0
- package/src/auth/ForgotPasswordForm.tsx +93 -0
- package/src/auth/LoginForm.tsx +104 -0
- package/src/auth/PasswordInput.tsx +33 -0
- package/src/auth/RegisterForm.tsx +333 -0
- package/src/auth/ResetPasswordForm.tsx +112 -0
- package/src/auth/index.ts +5 -0
- package/src/checkout.css +17 -0
- package/src/configure.ts +29 -0
- package/src/confirmer.ts +439 -0
- package/src/index.ts +41 -30
- package/src/instance.ts +21 -0
- package/src/sections/AddOns.tsx +241 -0
- package/src/sections/BillingInfo.tsx +743 -0
- package/src/sections/Confirmation.tsx +146 -0
- package/src/sections/IDVerification.tsx +76 -0
- package/src/sections/OrderConfirmation.tsx +277 -0
- package/src/sections/OrderIDVerification.tsx +117 -0
- package/src/sections/OrderSummary.tsx +84 -0
- package/src/sections/Payment.tsx +541 -0
- package/src/sections/SeatMap.tsx +512 -0
- package/src/sections/Tickets.tsx +573 -0
- package/src/sections/billing/BillingAddressFields.tsx +138 -0
- package/src/sections/billing/BuyerField.tsx +75 -0
- package/src/sections/billing/TicketHoldersCard.tsx +119 -0
- package/src/sections/billing/types.ts +10 -0
- package/src/sections/index.ts +15 -0
- package/src/sections/seatMap.utils.ts +105 -0
- package/src/styles/addons.css +75 -0
- package/src/styles/auth.css +294 -0
- package/src/styles/billing.css +98 -0
- package/src/styles/confirmation.css +51 -0
- package/src/styles/foundation.css +146 -0
- package/src/styles/payment.css +179 -0
- package/src/styles/primitives.css +356 -0
- package/src/styles/seat-map.css +46 -0
- package/src/styles/tickets.css +285 -0
- package/src/styles/verification-confirmation.css +258 -0
- package/src/typings.d.ts +2 -2
- package/src/ui/Button.tsx +38 -0
- package/src/ui/Card.tsx +54 -0
- package/src/ui/CheckoutProvider.tsx +172 -0
- package/src/ui/CustomFields.tsx +195 -0
- package/src/ui/Field.tsx +114 -0
- package/src/ui/I18nProvider.tsx +36 -0
- package/src/ui/InstallmentPicker.tsx +69 -0
- package/src/ui/Loader.tsx +12 -0
- package/src/ui/PaymentMethods.tsx +133 -0
- package/src/ui/PriceLine.tsx +24 -0
- package/src/ui/QuantitySelect.tsx +50 -0
- package/src/ui/Stepper.tsx +36 -0
- package/src/ui/Timer.tsx +34 -0
- package/src/ui/TimerBanner.tsx +55 -0
- package/src/ui/cx.ts +3 -0
- package/src/ui/index.ts +54 -0
- package/src/ui/theme.ts +83 -0
- package/src/useCheckout.ts +35 -0
- package/src/xendit.ts +438 -0
- package/dist/adapters/customFields.d.ts +0 -12
- package/dist/adapters/index.d.ts +0 -1
- package/dist/api/auth.d.ts +0 -27
- package/dist/api/cart.d.ts +0 -2
- package/dist/api/checkout.d.ts +0 -3
- package/dist/api/common.d.ts +0 -11
- package/dist/api/guestTicketDelegation.d.ts +0 -47
- package/dist/api/index.d.ts +0 -82
- package/dist/api/interceptors.d.ts +0 -1
- package/dist/api/orders.d.ts +0 -2
- package/dist/api/payment.d.ts +0 -5
- package/dist/api/preRegistrationComplete.d.ts +0 -3
- package/dist/api/publicRequest.d.ts +0 -9
- package/dist/api/resale.d.ts +0 -5
- package/dist/components/account-settings/index.d.ts +0 -3
- package/dist/components/addonsContainer/AddonComponent.d.ts +0 -18
- package/dist/components/addonsContainer/SimpleAddonsContainer.d.ts +0 -20
- package/dist/components/addonsContainer/adapters/index.d.ts +0 -12
- package/dist/components/addonsContainer/index.d.ts +0 -22
- package/dist/components/addonsContainer/normalizers/index.d.ts +0 -1
- package/dist/components/addonsContainer/useAddons.d.ts +0 -23
- package/dist/components/addonsContainer/utils/index.d.ts +0 -16
- package/dist/components/billing-info-container/hooks/index.d.ts +0 -3
- package/dist/components/billing-info-container/hooks/usePaymentContext.d.ts +0 -5
- package/dist/components/billing-info-container/hooks/usePaymentRedirect.d.ts +0 -14
- package/dist/components/billing-info-container/hooks/useStripePayment.d.ts +0 -18
- package/dist/components/billing-info-container/index.d.ts +0 -69
- package/dist/components/billing-info-container/utils.d.ts +0 -59
- package/dist/components/common/Checkbox.d.ts +0 -11
- package/dist/components/common/CheckboxField/index.d.ts +0 -9
- package/dist/components/common/CopyField.d.ts +0 -12
- package/dist/components/common/CopyMessageModal.d.ts +0 -7
- package/dist/components/common/CustomField.d.ts +0 -26
- package/dist/components/common/DatePickerField.d.ts +0 -20
- package/dist/components/common/FieldSection/index.d.ts +0 -19
- package/dist/components/common/FieldSection/utils/index.d.ts +0 -8
- package/dist/components/common/FormikPhoneNumberField.d.ts +0 -11
- package/dist/components/common/Loader.d.ts +0 -2
- package/dist/components/common/ModalComponent/index.d.ts +0 -16
- package/dist/components/common/NativeSelectFeild/index.d.ts +0 -21
- package/dist/components/common/PhoneNumberField.d.ts +0 -14
- package/dist/components/common/PoweredBy.d.ts +0 -2
- package/dist/components/common/RadioField.d.ts +0 -11
- package/dist/components/common/RadioGroupField/index.d.ts +0 -17
- package/dist/components/common/RedirectModal.d.ts +0 -7
- package/dist/components/common/SelectField/index.d.ts +0 -19
- package/dist/components/common/SnackbarAlert.d.ts +0 -13
- package/dist/components/common/index.d.ts +0 -11
- package/dist/components/common/socials.d.ts +0 -10
- package/dist/components/confirmModal/index.d.ts +0 -10
- package/dist/components/confirmationContainer/config.d.ts +0 -1
- package/dist/components/confirmationContainer/index.d.ts +0 -46
- package/dist/components/confirmationContainer/social-buttons.d.ts +0 -16
- package/dist/components/countdown/index.d.ts +0 -14
- package/dist/components/delegationsContainer/IssueComponent.d.ts +0 -10
- package/dist/components/delegationsContainer/IssueTicketForm.d.ts +0 -9
- package/dist/components/delegationsContainer/TicketsAssignedTable.d.ts +0 -11
- package/dist/components/delegationsContainer/TicketsAvailableTable.d.ts +0 -11
- package/dist/components/delegationsContainer/index.d.ts +0 -10
- package/dist/components/forgotPasswordModal/index.d.ts +0 -12
- package/dist/components/idVerificationContainer/VerificationPendingModal.d.ts +0 -10
- package/dist/components/idVerificationContainer/constants.d.ts +0 -21
- package/dist/components/idVerificationContainer/index.d.ts +0 -16
- package/dist/components/index.d.ts +0 -12
- package/dist/components/loginForm/index.d.ts +0 -31
- package/dist/components/loginModal/SignUpForm.d.ts +0 -10
- package/dist/components/loginModal/constants.d.ts +0 -39
- package/dist/components/loginModal/index.d.ts +0 -22
- package/dist/components/myTicketsContainer/index.d.ts +0 -16
- package/dist/components/myTicketsContainer/row.d.ts +0 -3
- package/dist/components/myTicketsContainer/tableConfig.d.ts +0 -5
- package/dist/components/orderDetailsContainer/CustomFieldsForm.d.ts +0 -12
- package/dist/components/orderDetailsContainer/TicketHolderCustomFields.d.ts +0 -10
- package/dist/components/orderDetailsContainer/index.d.ts +0 -66
- package/dist/components/orderDetailsContainer/ticketsTable.d.ts +0 -46
- package/dist/components/orderDetailsContainer/utils/index.d.ts +0 -6
- package/dist/components/paymentContainer/OrderDetails.d.ts +0 -9
- package/dist/components/paymentContainer/PaymentPlanSection.d.ts +0 -10
- package/dist/components/paymentContainer/handlePayment.d.ts +0 -15
- package/dist/components/paymentContainer/index.d.ts +0 -39
- package/dist/components/preRegistration/FieldsSection.d.ts +0 -19
- package/dist/components/preRegistration/Influancers.d.ts +0 -2
- package/dist/components/preRegistration/PreRegistrationComplete.d.ts +0 -13
- package/dist/components/preRegistration/PreRegistrationInformations.d.ts +0 -2
- package/dist/components/preRegistration/Prewards.d.ts +0 -2
- package/dist/components/preRegistration/ShareOptions.d.ts +0 -2
- package/dist/components/preRegistration/constants.d.ts +0 -2
- package/dist/components/preRegistration/index.d.ts +0 -23
- package/dist/components/preRegistration/utils.d.ts +0 -12
- package/dist/components/registerForm/adapters/index.d.ts +0 -4
- package/dist/components/registerForm/constants.d.ts +0 -1
- package/dist/components/registerForm/index.d.ts +0 -16
- package/dist/components/registerModal/index.d.ts +0 -12
- package/dist/components/resetPasswordContainer/index.d.ts +0 -10
- package/dist/components/rsvpContainer/index.d.ts +0 -7
- package/dist/components/seatMapContainer/SeatMapComponent.d.ts +0 -8
- package/dist/components/seatMapContainer/TicketsSection.d.ts +0 -9
- package/dist/components/seatMapContainer/addToCart.d.ts +0 -14
- package/dist/components/seatMapContainer/index.d.ts +0 -2
- package/dist/components/seatMapContainer/utils.d.ts +0 -6
- package/dist/components/signupModal/index.d.ts +0 -12
- package/dist/components/ticketResale/index.d.ts +0 -12
- package/dist/components/ticketResaleModal/index.d.ts +0 -19
- package/dist/components/ticketsContainer/AccessCodeSection.d.ts +0 -7
- package/dist/components/ticketsContainer/InfoIcon.d.ts +0 -5
- package/dist/components/ticketsContainer/PromoCodeSection.d.ts +0 -15
- package/dist/components/ticketsContainer/ReferralLogic.d.ts +0 -5
- package/dist/components/ticketsContainer/TicketRow.d.ts +0 -13
- package/dist/components/ticketsContainer/TicketsSection.d.ts +0 -20
- package/dist/components/ticketsContainer/TimeSlotTicketRow.d.ts +0 -19
- package/dist/components/ticketsContainer/TimeSlotsSection.d.ts +0 -25
- package/dist/components/ticketsContainer/index.d.ts +0 -93
- package/dist/components/ticketsContainer/utils.d.ts +0 -13
- package/dist/components/timerWidget/index.d.ts +0 -16
- package/dist/components/waitingList/index.d.ts +0 -9
- package/dist/constants/index.d.ts +0 -7
- package/dist/env.d.ts +0 -16
- package/dist/hoc/CustomFields/index.d.ts +0 -3
- package/dist/hoc/index.d.ts +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useCookieListener.d.ts +0 -1
- package/dist/hooks/useEventListener.d.ts +0 -1
- package/dist/hooks/useLocalStorageListener.d.ts +0 -1
- package/dist/hooks/useOnline.d.ts +0 -1
- package/dist/hooks/usePixel.d.ts +0 -6
- package/dist/images/Polygon.png +0 -0
- package/dist/images/cross.svg +0 -44
- package/dist/images/done.svg +0 -3
- package/dist/images/edit.svg +0 -10
- package/dist/images/email.svg +0 -1
- package/dist/images/instagram.svg +0 -5
- package/dist/images/logo-ttf.png +0 -0
- package/dist/images/spotify.svg +0 -6
- package/dist/images/user.svg +0 -1
- package/dist/images/xmark.svg +0 -92
- package/dist/normalizers/index.d.ts +0 -4
- package/dist/tf-checkout-react.cjs.development.js +0 -16149
- package/dist/tf-checkout-react.cjs.development.js.map +0 -1
- package/dist/tf-checkout-react.cjs.production.min.js +0 -2
- package/dist/tf-checkout-react.cjs.production.min.js.map +0 -1
- package/dist/tf-checkout-react.esm.js +0 -16116
- package/dist/tf-checkout-react.esm.js.map +0 -1
- package/dist/tf-checkout-styles.css +0 -1
- package/dist/types/add_on.d.ts +0 -8
- package/dist/types/billing-info-data.d.ts +0 -27
- package/dist/types/checkoutPageConfigs.d.ts +0 -13
- package/dist/types/index.d.ts +0 -6
- package/dist/types/order-data.d.ts +0 -15
- package/dist/types/payment-field.d.ts +0 -6
- package/dist/types/payment-plan-configuration.d.ts +0 -18
- package/dist/types/referral-promotion.d.ts +0 -6
- package/dist/types/verification.d.ts +0 -12
- package/dist/utils/adaptStripeErrors.d.ts +0 -8
- package/dist/utils/auth.d.ts +0 -21
- package/dist/utils/cookies.d.ts +0 -3
- package/dist/utils/createCheckoutDataBodyWithDefaultHolder.d.ts +0 -23
- package/dist/utils/createMarkup.d.ts +0 -3
- package/dist/utils/customFields.d.ts +0 -35
- package/dist/utils/downloadPDF.d.ts +0 -1
- package/dist/utils/form.d.ts +0 -3
- package/dist/utils/formikErrorFocus.d.ts +0 -2
- package/dist/utils/getDomain.d.ts +0 -1
- package/dist/utils/getImage.d.ts +0 -1
- package/dist/utils/getQueryVariable.d.ts +0 -1
- package/dist/utils/htmlNodeFromString.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -15
- package/dist/utils/isBrowser.d.ts +0 -1
- package/dist/utils/isValidNumber.d.ts +0 -1
- package/dist/utils/jsonUtils.d.ts +0 -1
- package/dist/utils/replaceVarInString.d.ts +0 -1
- package/dist/utils/setConfigs.d.ts +0 -11
- package/dist/utils/showZero.d.ts +0 -1
- package/dist/validators/index.d.ts +0 -8
- package/src/adapters/customFields.ts +0 -85
- package/src/adapters/index.ts +0 -1
- package/src/api/auth.ts +0 -88
- package/src/api/cart.ts +0 -28
- package/src/api/checkout.ts +0 -28
- package/src/api/common.ts +0 -190
- package/src/api/guestTicketDelegation.ts +0 -79
- package/src/api/index.ts +0 -346
- package/src/api/interceptors.ts +0 -77
- package/src/api/orders.ts +0 -30
- package/src/api/payment.ts +0 -77
- package/src/api/preRegistrationComplete.ts +0 -37
- package/src/api/publicRequest.ts +0 -47
- package/src/api/resale.ts +0 -28
- package/src/assets/images/Polygon.png +0 -0
- package/src/assets/images/cross.svg +0 -44
- package/src/assets/images/done.svg +0 -3
- package/src/assets/images/edit.svg +0 -10
- package/src/assets/images/email.svg +0 -1
- package/src/assets/images/instagram.svg +0 -5
- package/src/assets/images/logo-ttf.png +0 -0
- package/src/assets/images/spotify.svg +0 -6
- package/src/assets/images/user.svg +0 -1
- package/src/assets/images/xmark.svg +0 -92
- package/src/components/account-settings/index.tsx +0 -161
- package/src/components/account-settings/style.css +0 -200
- package/src/components/addonsContainer/AddonComponent.tsx +0 -204
- package/src/components/addonsContainer/SimpleAddonsContainer.tsx +0 -459
- package/src/components/addonsContainer/adapters/index.tsx +0 -62
- package/src/components/addonsContainer/index.tsx +0 -353
- package/src/components/addonsContainer/normalizers/index.ts +0 -5
- package/src/components/addonsContainer/useAddons.ts +0 -248
- package/src/components/addonsContainer/utils/index.tsx +0 -231
- package/src/components/billing-info-container/hooks/index.ts +0 -3
- package/src/components/billing-info-container/hooks/usePaymentContext.ts +0 -22
- package/src/components/billing-info-container/hooks/usePaymentRedirect.ts +0 -145
- package/src/components/billing-info-container/hooks/useStripePayment.ts +0 -119
- package/src/components/billing-info-container/index.tsx +0 -1695
- package/src/components/billing-info-container/style.css +0 -150
- package/src/components/billing-info-container/utils.tsx +0 -413
- package/src/components/common/Checkbox.tsx +0 -51
- package/src/components/common/CheckboxField/index.tsx +0 -41
- package/src/components/common/CopyField.tsx +0 -53
- package/src/components/common/CopyMessageModal.tsx +0 -34
- package/src/components/common/CustomField.tsx +0 -168
- package/src/components/common/DatePickerField.tsx +0 -126
- package/src/components/common/FieldSection/index.tsx +0 -141
- package/src/components/common/FieldSection/utils/index.tsx +0 -92
- package/src/components/common/FormikPhoneNumberField.tsx +0 -51
- package/src/components/common/Loader.tsx +0 -8
- package/src/components/common/ModalComponent/index.tsx +0 -68
- package/src/components/common/NativeSelectFeild/index.tsx +0 -86
- package/src/components/common/PhoneNumberField.tsx +0 -117
- package/src/components/common/PoweredBy.tsx +0 -15
- package/src/components/common/RadioField.tsx +0 -36
- package/src/components/common/RadioGroupField/index.tsx +0 -76
- package/src/components/common/RedirectModal.tsx +0 -43
- package/src/components/common/SelectField/index.tsx +0 -104
- package/src/components/common/SnackbarAlert.tsx +0 -52
- package/src/components/common/index.tsx +0 -11
- package/src/components/common/socials.tsx +0 -33
- package/src/components/confirmModal/index.tsx +0 -60
- package/src/components/confirmationContainer/config.ts +0 -79
- package/src/components/confirmationContainer/index.tsx +0 -349
- package/src/components/confirmationContainer/social-buttons.tsx +0 -149
- package/src/components/confirmationContainer/style.css +0 -206
- package/src/components/countdown/index.tsx +0 -100
- package/src/components/countdown/style.css +0 -10
- package/src/components/delegationsContainer/IssueComponent.tsx +0 -156
- package/src/components/delegationsContainer/IssueTicketForm.tsx +0 -109
- package/src/components/delegationsContainer/TicketsAssignedTable.tsx +0 -55
- package/src/components/delegationsContainer/TicketsAvailableTable.tsx +0 -54
- package/src/components/delegationsContainer/index.tsx +0 -83
- package/src/components/forgotPasswordModal/index.tsx +0 -138
- package/src/components/forgotPasswordModal/style.css +0 -47
- package/src/components/idVerificationContainer/VerificationPendingModal.tsx +0 -47
- package/src/components/idVerificationContainer/constants.ts +0 -27
- package/src/components/idVerificationContainer/index.tsx +0 -323
- package/src/components/index.ts +0 -12
- package/src/components/loginForm/index.tsx +0 -202
- package/src/components/loginModal/SignUpForm.tsx +0 -329
- package/src/components/loginModal/constants.ts +0 -46
- package/src/components/loginModal/index.tsx +0 -263
- package/src/components/loginModal/style.css +0 -116
- package/src/components/myTicketsContainer/index.tsx +0 -228
- package/src/components/myTicketsContainer/row.tsx +0 -46
- package/src/components/myTicketsContainer/style.css +0 -40
- package/src/components/myTicketsContainer/tableConfig.tsx +0 -80
- package/src/components/myTicketsContainer/types.d.ts +0 -41
- package/src/components/orderDetailsContainer/CustomFieldsForm.tsx +0 -75
- package/src/components/orderDetailsContainer/TicketHolderCustomFields.tsx +0 -100
- package/src/components/orderDetailsContainer/index.tsx +0 -586
- package/src/components/orderDetailsContainer/style.css +0 -77
- package/src/components/orderDetailsContainer/ticketsTable.tsx +0 -246
- package/src/components/orderDetailsContainer/utils/index.tsx +0 -55
- package/src/components/paymentContainer/OrderDetails.tsx +0 -277
- package/src/components/paymentContainer/PaymentPlanSection.tsx +0 -169
- package/src/components/paymentContainer/handlePayment.ts +0 -86
- package/src/components/paymentContainer/index.tsx +0 -643
- package/src/components/paymentContainer/style.css +0 -196
- package/src/components/preRegistration/FieldsSection.tsx +0 -150
- package/src/components/preRegistration/Influancers.tsx +0 -34
- package/src/components/preRegistration/PreRegistrationComplete.tsx +0 -186
- package/src/components/preRegistration/PreRegistrationInformations.tsx +0 -60
- package/src/components/preRegistration/Prewards.tsx +0 -41
- package/src/components/preRegistration/ShareOptions.tsx +0 -77
- package/src/components/preRegistration/constants.tsx +0 -169
- package/src/components/preRegistration/index.tsx +0 -330
- package/src/components/preRegistration/style.css +0 -3
- package/src/components/preRegistration/utils.ts +0 -163
- package/src/components/registerForm/adapters/index.tsx +0 -10
- package/src/components/registerForm/constants.tsx +0 -98
- package/src/components/registerForm/index.tsx +0 -188
- package/src/components/registerModal/index.tsx +0 -154
- package/src/components/registerModal/style.css +0 -18
- package/src/components/resetPasswordContainer/index.tsx +0 -102
- package/src/components/resetPasswordContainer/style.css +0 -36
- package/src/components/rsvpContainer/index.tsx +0 -126
- package/src/components/seatMapContainer/SeatMapComponent.tsx +0 -77
- package/src/components/seatMapContainer/TicketsSection.tsx +0 -286
- package/src/components/seatMapContainer/addToCart.ts +0 -66
- package/src/components/seatMapContainer/index.tsx +0 -443
- package/src/components/seatMapContainer/utils.ts +0 -133
- package/src/components/signupModal/index.tsx +0 -178
- package/src/components/signupModal/style.css +0 -58
- package/src/components/ticketResale/index.tsx +0 -86
- package/src/components/ticketResaleModal/index.tsx +0 -224
- package/src/components/ticketResaleModal/style.css +0 -28
- package/src/components/ticketsContainer/AccessCodeSection.tsx +0 -50
- package/src/components/ticketsContainer/InfoIcon.tsx +0 -35
- package/src/components/ticketsContainer/PromoCodeSection.tsx +0 -116
- package/src/components/ticketsContainer/ReferralLogic.tsx +0 -33
- package/src/components/ticketsContainer/TicketRow.tsx +0 -107
- package/src/components/ticketsContainer/TicketsSection.tsx +0 -350
- package/src/components/ticketsContainer/TimeSlotTicketRow.tsx +0 -243
- package/src/components/ticketsContainer/TimeSlotsSection.tsx +0 -194
- package/src/components/ticketsContainer/index.tsx +0 -986
- package/src/components/ticketsContainer/style.css +0 -178
- package/src/components/ticketsContainer/utils.ts +0 -35
- package/src/components/timerWidget/index.tsx +0 -97
- package/src/components/timerWidget/style.css +0 -35
- package/src/components/waitingList/index.tsx +0 -190
- package/src/components/waitingList/style.css +0 -27
- package/src/constants/index.ts +0 -3
- package/src/env.ts +0 -29
- package/src/hoc/CustomFields/index.tsx +0 -85
- package/src/hoc/index.ts +0 -1
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useCookieListener.ts +0 -32
- package/src/hooks/useEventListener.ts +0 -32
- package/src/hooks/useLocalStorageListener.ts +0 -32
- package/src/hooks/useOnline.ts +0 -21
- package/src/hooks/usePixel.ts +0 -88
- package/src/normalizers/index.ts +0 -49
- package/src/types/add_on.ts +0 -8
- package/src/types/api/auth.d.ts +0 -63
- package/src/types/api/axiosResponse.d.ts +0 -6
- package/src/types/api/cart.d.ts +0 -73
- package/src/types/api/checkout.d.ts +0 -92
- package/src/types/api/common.d.ts +0 -153
- package/src/types/api/guestTicketDelegation.d.ts +0 -18
- package/src/types/api/orders.d.ts +0 -116
- package/src/types/api/payment.d.ts +0 -180
- package/src/types/api/preRegistration.d.ts +0 -11
- package/src/types/api/preRegistrationComplete.d.ts +0 -95
- package/src/types/api/ticketResale.d.ts +0 -13
- package/src/types/billing-info-data.ts +0 -37
- package/src/types/checkoutPageConfigs.ts +0 -13
- package/src/types/formFields.d.ts +0 -29
- package/src/types/index.ts +0 -6
- package/src/types/order-data.ts +0 -16
- package/src/types/payment-field.ts +0 -7
- package/src/types/payment-plan-configuration.ts +0 -19
- package/src/types/pre-registration-complete.d.ts +0 -47
- package/src/types/referral-promotion.ts +0 -7
- package/src/types/seatMap.d.ts +0 -159
- package/src/types/verification.ts +0 -12
- package/src/utils/adaptStripeErrors.ts +0 -26
- package/src/utils/auth.ts +0 -45
- package/src/utils/cookies.ts +0 -73
- package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +0 -81
- package/src/utils/createMarkup.ts +0 -1
- package/src/utils/customFields.ts +0 -80
- package/src/utils/downloadPDF.tsx +0 -42
- package/src/utils/form.ts +0 -34
- package/src/utils/formikErrorFocus.ts +0 -24
- package/src/utils/getDomain.ts +0 -21
- package/src/utils/getImage.ts +0 -14
- package/src/utils/getQueryVariable.ts +0 -13
- package/src/utils/htmlNodeFromString.ts +0 -6
- package/src/utils/index.ts +0 -15
- package/src/utils/isBrowser.ts +0 -2
- package/src/utils/isValidNumber.ts +0 -8
- package/src/utils/jsonUtils.ts +0 -8
- package/src/utils/replaceVarInString.ts +0 -9
- package/src/utils/setConfigs.ts +0 -24
- package/src/utils/showZero.tsx +0 -10
- package/src/validators/index.ts +0 -61
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
/* ============================ Authentication ============================ */
|
|
2
|
+
.tf-checkout-auth {
|
|
3
|
+
position: fixed;
|
|
4
|
+
inset: 0;
|
|
5
|
+
z-index: 10000;
|
|
6
|
+
display: grid;
|
|
7
|
+
place-items: center;
|
|
8
|
+
padding: 32px 16px;
|
|
9
|
+
background: rgb(0 0 0 / 48%);
|
|
10
|
+
}
|
|
11
|
+
.tf-checkout-auth__dialog {
|
|
12
|
+
position: relative;
|
|
13
|
+
width: min(480px, 100%);
|
|
14
|
+
max-height: calc(100dvh - 64px);
|
|
15
|
+
overflow-y: auto;
|
|
16
|
+
padding: 0 26px 26px;
|
|
17
|
+
border: 1px solid var(--tf-checkout-border);
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
outline: none;
|
|
20
|
+
background: var(--tf-checkout-surface);
|
|
21
|
+
box-shadow: 0 8px 30px rgb(0 0 0 / 18%);
|
|
22
|
+
color: var(--tf-checkout-text);
|
|
23
|
+
}
|
|
24
|
+
.tf-checkout-auth__close {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 8px;
|
|
27
|
+
right: 8px;
|
|
28
|
+
display: grid;
|
|
29
|
+
width: 32px;
|
|
30
|
+
height: 32px;
|
|
31
|
+
place-items: center;
|
|
32
|
+
padding: 0;
|
|
33
|
+
border: 0;
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
background: transparent;
|
|
36
|
+
color: var(--tf-checkout-muted);
|
|
37
|
+
font: inherit;
|
|
38
|
+
font-size: 24px;
|
|
39
|
+
line-height: 1;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
.tf-checkout-auth__close:hover:not(:disabled) {
|
|
43
|
+
background: var(--tf-checkout-surface-muted);
|
|
44
|
+
color: var(--tf-checkout-text);
|
|
45
|
+
}
|
|
46
|
+
.tf-checkout-auth__close:focus-visible,
|
|
47
|
+
.tf-checkout-auth__tab:focus-visible,
|
|
48
|
+
.tf-checkout-auth__text-button:focus-visible {
|
|
49
|
+
outline: 2px solid var(--tf-checkout-accent);
|
|
50
|
+
outline-offset: 2px;
|
|
51
|
+
}
|
|
52
|
+
.tf-checkout-auth__close:disabled {
|
|
53
|
+
cursor: not-allowed;
|
|
54
|
+
opacity: 0.45;
|
|
55
|
+
}
|
|
56
|
+
.tf-checkout-auth__logo-wrap {
|
|
57
|
+
min-height: 58px;
|
|
58
|
+
padding: 0 44px 22px;
|
|
59
|
+
text-align: center;
|
|
60
|
+
}
|
|
61
|
+
.tf-checkout-auth__logo {
|
|
62
|
+
display: inline-block;
|
|
63
|
+
width: auto;
|
|
64
|
+
max-width: 200px;
|
|
65
|
+
height: 34px;
|
|
66
|
+
object-fit: contain;
|
|
67
|
+
}
|
|
68
|
+
.tf-checkout--dark .tf-checkout-auth__logo {
|
|
69
|
+
filter: invert(1) grayscale(1) brightness(1.8);
|
|
70
|
+
}
|
|
71
|
+
@media (prefers-color-scheme: dark) {
|
|
72
|
+
.tf-checkout:not(.tf-checkout--light) .tf-checkout-auth__logo {
|
|
73
|
+
filter: invert(1) grayscale(1) brightness(1.8);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.tf-checkout-auth__title {
|
|
77
|
+
margin: 0 40px 24px;
|
|
78
|
+
font-size: 20px;
|
|
79
|
+
line-height: 1.25;
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
.tf-checkout-auth__message,
|
|
83
|
+
.tf-checkout-auth__intro {
|
|
84
|
+
margin: 0 0 var(--tf-checkout-space-4);
|
|
85
|
+
color: var(--tf-checkout-muted);
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
line-height: 1.5;
|
|
88
|
+
text-align: center;
|
|
89
|
+
}
|
|
90
|
+
.tf-checkout-auth__message {
|
|
91
|
+
padding: 10px 12px;
|
|
92
|
+
border-radius: var(--tf-checkout-radius-control);
|
|
93
|
+
background: var(--tf-checkout-surface-muted);
|
|
94
|
+
}
|
|
95
|
+
.tf-checkout-auth__tabs {
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: 1fr 1fr;
|
|
98
|
+
padding: 0;
|
|
99
|
+
margin: 0 0 30px;
|
|
100
|
+
border: 0;
|
|
101
|
+
background: transparent;
|
|
102
|
+
}
|
|
103
|
+
.tf-checkout-auth__tab {
|
|
104
|
+
min-height: 60px;
|
|
105
|
+
padding: 16px 12px 14px;
|
|
106
|
+
border: 0;
|
|
107
|
+
border-bottom: 2px solid transparent;
|
|
108
|
+
border-radius: 0;
|
|
109
|
+
background: transparent;
|
|
110
|
+
color: var(--tf-checkout-muted);
|
|
111
|
+
font: inherit;
|
|
112
|
+
font-size: 16px;
|
|
113
|
+
font-weight: 600;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
}
|
|
116
|
+
.tf-checkout-auth__tab--active {
|
|
117
|
+
color: var(--tf-checkout-text);
|
|
118
|
+
border-bottom-color: var(--tf-checkout-text);
|
|
119
|
+
background: transparent;
|
|
120
|
+
box-shadow: none;
|
|
121
|
+
}
|
|
122
|
+
.tf-checkout-auth__form > .tf-checkout-field:first-of-type,
|
|
123
|
+
.tf-checkout-auth__form > .tf-checkout-field--row:first-of-type {
|
|
124
|
+
margin-top: 0;
|
|
125
|
+
}
|
|
126
|
+
.tf-checkout-auth__form > .tf-checkout-field,
|
|
127
|
+
.tf-checkout-auth__form > .tf-checkout-field--row {
|
|
128
|
+
margin-top: 14px;
|
|
129
|
+
}
|
|
130
|
+
.tf-checkout-auth__form--register {
|
|
131
|
+
display: grid;
|
|
132
|
+
row-gap: 14px;
|
|
133
|
+
}
|
|
134
|
+
.tf-checkout-auth__form--register > .tf-checkout-field,
|
|
135
|
+
.tf-checkout-auth__form--register > .tf-checkout-field--row {
|
|
136
|
+
margin-top: 0;
|
|
137
|
+
}
|
|
138
|
+
.tf-checkout-auth__form.tf-checkout-auth__form--register > .tf-checkout-button {
|
|
139
|
+
margin-top: 10px;
|
|
140
|
+
}
|
|
141
|
+
.tf-checkout-auth__input-field > .tf-checkout-field__label {
|
|
142
|
+
position: absolute;
|
|
143
|
+
width: 1px;
|
|
144
|
+
height: 1px;
|
|
145
|
+
padding: 0;
|
|
146
|
+
margin: -1px;
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
clip: rect(0, 0, 0, 0);
|
|
149
|
+
white-space: nowrap;
|
|
150
|
+
border: 0;
|
|
151
|
+
}
|
|
152
|
+
.tf-checkout-auth__input-field > .tf-checkout-input,
|
|
153
|
+
.tf-checkout-auth__password > .tf-checkout-input,
|
|
154
|
+
.tf-checkout-auth__select-field > .tf-checkout-select,
|
|
155
|
+
.tf-checkout-auth__phone-field .tf-checkout-phone {
|
|
156
|
+
min-height: 50px;
|
|
157
|
+
}
|
|
158
|
+
.tf-checkout-auth__input-field > .tf-checkout-input,
|
|
159
|
+
.tf-checkout-auth__password > .tf-checkout-input,
|
|
160
|
+
.tf-checkout-auth__select-field > .tf-checkout-select,
|
|
161
|
+
.tf-checkout-auth__phone-field .tf-checkout-phone__input {
|
|
162
|
+
font-size: 16px;
|
|
163
|
+
}
|
|
164
|
+
.tf-checkout-auth__input-field > .tf-checkout-input::placeholder,
|
|
165
|
+
.tf-checkout-auth__password > .tf-checkout-input::placeholder {
|
|
166
|
+
color: var(--tf-checkout-muted);
|
|
167
|
+
opacity: 1;
|
|
168
|
+
}
|
|
169
|
+
.tf-checkout-auth__select-field,
|
|
170
|
+
.tf-checkout-auth__phone-field {
|
|
171
|
+
position: relative;
|
|
172
|
+
}
|
|
173
|
+
.tf-checkout-auth__select-field > .tf-checkout-field__label,
|
|
174
|
+
.tf-checkout-auth__phone-field > .tf-checkout-field__label {
|
|
175
|
+
position: absolute;
|
|
176
|
+
z-index: 1;
|
|
177
|
+
top: -8px;
|
|
178
|
+
left: 12px;
|
|
179
|
+
padding: 0 4px;
|
|
180
|
+
margin: 0;
|
|
181
|
+
background: var(--tf-checkout-surface);
|
|
182
|
+
color: var(--tf-checkout-muted);
|
|
183
|
+
font-size: 12px;
|
|
184
|
+
line-height: 16px;
|
|
185
|
+
}
|
|
186
|
+
.tf-checkout-auth__password {
|
|
187
|
+
position: relative;
|
|
188
|
+
display: block;
|
|
189
|
+
}
|
|
190
|
+
.tf-checkout-auth__password > .tf-checkout-input {
|
|
191
|
+
padding-right: 46px;
|
|
192
|
+
}
|
|
193
|
+
.tf-checkout-auth__password-toggle {
|
|
194
|
+
position: absolute;
|
|
195
|
+
top: 50%;
|
|
196
|
+
right: 12px;
|
|
197
|
+
display: grid;
|
|
198
|
+
width: 28px;
|
|
199
|
+
height: 28px;
|
|
200
|
+
place-items: center;
|
|
201
|
+
padding: 0;
|
|
202
|
+
border: 0;
|
|
203
|
+
background: transparent;
|
|
204
|
+
color: var(--tf-checkout-muted);
|
|
205
|
+
transform: translateY(-50%);
|
|
206
|
+
cursor: pointer;
|
|
207
|
+
}
|
|
208
|
+
.tf-checkout-auth__password-toggle svg {
|
|
209
|
+
width: 23px;
|
|
210
|
+
height: 23px;
|
|
211
|
+
fill: currentcolor;
|
|
212
|
+
}
|
|
213
|
+
.tf-checkout-auth__password-toggle:focus-visible {
|
|
214
|
+
border-radius: 50%;
|
|
215
|
+
outline: 2px solid var(--tf-checkout-accent);
|
|
216
|
+
outline-offset: 2px;
|
|
217
|
+
}
|
|
218
|
+
.tf-checkout-auth__form > .tf-checkout-button {
|
|
219
|
+
min-height: 46px;
|
|
220
|
+
margin-top: 24px;
|
|
221
|
+
border-color: var(--tf-checkout-text);
|
|
222
|
+
border-radius: 0;
|
|
223
|
+
background: var(--tf-checkout-text);
|
|
224
|
+
color: var(--tf-checkout-surface);
|
|
225
|
+
font-size: 16px;
|
|
226
|
+
font-weight: 400;
|
|
227
|
+
}
|
|
228
|
+
.tf-checkout-auth__form > .tf-checkout-button:hover:not(:disabled) {
|
|
229
|
+
border-color: color-mix(in srgb, var(--tf-checkout-text) 78%, var(--tf-checkout-surface));
|
|
230
|
+
background: color-mix(in srgb, var(--tf-checkout-text) 78%, var(--tf-checkout-surface));
|
|
231
|
+
}
|
|
232
|
+
.tf-checkout-auth__alert,
|
|
233
|
+
.tf-checkout-auth__success {
|
|
234
|
+
padding: 11px 13px;
|
|
235
|
+
margin-bottom: var(--tf-checkout-space-4);
|
|
236
|
+
border-radius: var(--tf-checkout-radius-control);
|
|
237
|
+
font-size: 13px;
|
|
238
|
+
line-height: 1.45;
|
|
239
|
+
}
|
|
240
|
+
.tf-checkout-auth__alert {
|
|
241
|
+
border: 1px solid color-mix(in srgb, var(--tf-checkout-error) 40%, transparent);
|
|
242
|
+
background: color-mix(in srgb, var(--tf-checkout-error) 9%, transparent);
|
|
243
|
+
color: var(--tf-checkout-error);
|
|
244
|
+
}
|
|
245
|
+
.tf-checkout-auth__success {
|
|
246
|
+
border: 1px solid color-mix(in srgb, var(--tf-checkout-success) 40%, transparent);
|
|
247
|
+
background: color-mix(in srgb, var(--tf-checkout-success) 9%, transparent);
|
|
248
|
+
color: var(--tf-checkout-text);
|
|
249
|
+
}
|
|
250
|
+
.tf-checkout-auth__text-button {
|
|
251
|
+
display: block;
|
|
252
|
+
width: max-content;
|
|
253
|
+
padding: 2px;
|
|
254
|
+
border: 0;
|
|
255
|
+
background: transparent;
|
|
256
|
+
color: var(--tf-checkout-text);
|
|
257
|
+
font: inherit;
|
|
258
|
+
font-size: 16px;
|
|
259
|
+
font-weight: 400;
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
}
|
|
262
|
+
.tf-checkout-auth__forgot {
|
|
263
|
+
margin: 14px auto 0;
|
|
264
|
+
}
|
|
265
|
+
.tf-checkout-auth__back {
|
|
266
|
+
margin: var(--tf-checkout-space-4) auto 0;
|
|
267
|
+
}
|
|
268
|
+
.tf-checkout-auth__password-hint {
|
|
269
|
+
margin: var(--tf-checkout-space-2) 0 0;
|
|
270
|
+
color: var(--tf-checkout-muted);
|
|
271
|
+
font-size: 12px;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@media (max-width: 600px) {
|
|
275
|
+
.tf-checkout-auth {
|
|
276
|
+
align-items: center;
|
|
277
|
+
padding: 16px;
|
|
278
|
+
}
|
|
279
|
+
.tf-checkout-auth__dialog {
|
|
280
|
+
width: 100%;
|
|
281
|
+
max-height: calc(100dvh - 32px);
|
|
282
|
+
padding: 0 18px 22px;
|
|
283
|
+
border-radius: 5px;
|
|
284
|
+
}
|
|
285
|
+
.tf-checkout-auth__form .tf-checkout-field--row {
|
|
286
|
+
display: block;
|
|
287
|
+
}
|
|
288
|
+
.tf-checkout-auth__form
|
|
289
|
+
.tf-checkout-field--row
|
|
290
|
+
> .tf-checkout-field
|
|
291
|
+
+ .tf-checkout-field {
|
|
292
|
+
margin-top: var(--tf-checkout-space-3);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* ============================ Billing login row ============================ */
|
|
2
|
+
.tf-checkout-billing__login {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: var(--tf-checkout-space-3);
|
|
6
|
+
padding: var(--tf-checkout-space-3);
|
|
7
|
+
margin-bottom: var(--tf-checkout-space-3);
|
|
8
|
+
border-radius: var(--tf-checkout-radius-control);
|
|
9
|
+
background: var(--tf-checkout-surface-muted);
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
}
|
|
12
|
+
.tf-checkout-billing__login-btn {
|
|
13
|
+
margin-left: auto;
|
|
14
|
+
border: 1px solid var(--tf-checkout-accent);
|
|
15
|
+
background: transparent;
|
|
16
|
+
color: var(--tf-checkout-accent);
|
|
17
|
+
font: inherit;
|
|
18
|
+
font-weight: 600;
|
|
19
|
+
padding: 6px 16px;
|
|
20
|
+
border-radius: var(--tf-checkout-radius-control);
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
.tf-checkout-billing__email-taken {
|
|
24
|
+
color: var(--tf-checkout-text);
|
|
25
|
+
}
|
|
26
|
+
.tf-checkout-billing__login-link {
|
|
27
|
+
border: 0;
|
|
28
|
+
background: transparent;
|
|
29
|
+
color: var(--tf-checkout-accent);
|
|
30
|
+
font: inherit;
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
padding: 0;
|
|
34
|
+
text-decoration: underline;
|
|
35
|
+
}
|
|
36
|
+
.tf-checkout-tickets__currency {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: var(--tf-checkout-space-3);
|
|
40
|
+
margin-bottom: var(--tf-checkout-space-3);
|
|
41
|
+
}
|
|
42
|
+
.tf-checkout-tickets__currency-label {
|
|
43
|
+
font-size: 13px;
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
color: var(--tf-checkout-muted);
|
|
46
|
+
}
|
|
47
|
+
.tf-checkout-tickets__currency .tf-checkout-select {
|
|
48
|
+
max-width: 220px;
|
|
49
|
+
}
|
|
50
|
+
.tf-checkout-billing__section-label {
|
|
51
|
+
margin: var(--tf-checkout-space-4) 0 var(--tf-checkout-space-1);
|
|
52
|
+
font-size: 13px;
|
|
53
|
+
font-weight: 700;
|
|
54
|
+
color: var(--tf-checkout-muted);
|
|
55
|
+
}
|
|
56
|
+
.tf-checkout-billing__holder {
|
|
57
|
+
margin-top: var(--tf-checkout-space-4);
|
|
58
|
+
padding-top: var(--tf-checkout-space-3);
|
|
59
|
+
border-top: 1px solid var(--tf-checkout-border);
|
|
60
|
+
}
|
|
61
|
+
.tf-checkout-billing__holder-title {
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
font-weight: 700;
|
|
64
|
+
margin-bottom: var(--tf-checkout-space-1);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* ============================ Card title ============================ */
|
|
68
|
+
.tf-checkout-card__title {
|
|
69
|
+
flex: 0 1 auto;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* ============================ Field hint / textarea ============================ */
|
|
73
|
+
.tf-checkout-field__hint {
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
color: var(--tf-checkout-muted);
|
|
76
|
+
margin-bottom: 4px;
|
|
77
|
+
}
|
|
78
|
+
.tf-checkout-textarea {
|
|
79
|
+
min-height: 84px;
|
|
80
|
+
resize: vertical;
|
|
81
|
+
font: inherit;
|
|
82
|
+
}
|
|
83
|
+
/* Radio / multi-select choice groups (custom fields). */
|
|
84
|
+
.tf-checkout-choices {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
gap: 6px;
|
|
88
|
+
}
|
|
89
|
+
.tf-checkout-choice {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
gap: var(--tf-checkout-space-2);
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
.tf-checkout-choice input {
|
|
97
|
+
accent-color: var(--tf-checkout-accent);
|
|
98
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* ============================ Confirmation ============================ */
|
|
2
|
+
.tf-checkout-confirmation {
|
|
3
|
+
display: grid;
|
|
4
|
+
place-items: center;
|
|
5
|
+
text-align: center;
|
|
6
|
+
gap: var(--tf-checkout-space-2);
|
|
7
|
+
padding: var(--tf-checkout-space-4) 0;
|
|
8
|
+
}
|
|
9
|
+
.tf-checkout-confirmation__check {
|
|
10
|
+
display: inline-grid;
|
|
11
|
+
place-items: center;
|
|
12
|
+
width: 44px;
|
|
13
|
+
height: 44px;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
font-size: 22px;
|
|
16
|
+
color: #fff;
|
|
17
|
+
background: var(--tf-checkout-success);
|
|
18
|
+
}
|
|
19
|
+
.tf-checkout-confirmation__title {
|
|
20
|
+
font-size: 20px;
|
|
21
|
+
font-weight: 800;
|
|
22
|
+
letter-spacing: -0.01em;
|
|
23
|
+
}
|
|
24
|
+
.tf-checkout-confirmation__share {
|
|
25
|
+
width: 100%;
|
|
26
|
+
margin-top: var(--tf-checkout-space-4);
|
|
27
|
+
padding-top: var(--tf-checkout-space-4);
|
|
28
|
+
border-top: 1px solid var(--tf-checkout-border);
|
|
29
|
+
text-align: center;
|
|
30
|
+
}
|
|
31
|
+
.tf-checkout-confirmation__share-link {
|
|
32
|
+
display: flex;
|
|
33
|
+
gap: var(--tf-checkout-space-2);
|
|
34
|
+
margin: var(--tf-checkout-space-2) 0;
|
|
35
|
+
}
|
|
36
|
+
.tf-checkout-confirmation__share-link .tf-checkout-input {
|
|
37
|
+
flex: 1;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
}
|
|
40
|
+
.tf-checkout-confirmation__socials {
|
|
41
|
+
display: flex;
|
|
42
|
+
gap: var(--tf-checkout-space-2);
|
|
43
|
+
justify-content: center;
|
|
44
|
+
flex-wrap: wrap;
|
|
45
|
+
}
|
|
46
|
+
.tf-checkout-confirmation__ref {
|
|
47
|
+
font-size: 13px;
|
|
48
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
49
|
+
color: var(--tf-checkout-muted);
|
|
50
|
+
word-break: break-all;
|
|
51
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* tf-checkout-react — default theme + component styles.
|
|
3
|
+
*
|
|
4
|
+
* Loaded automatically by `tf-checkout-react`.
|
|
5
|
+
*
|
|
6
|
+
* Everything is scoped under `.tf-checkout` (the <CheckoutProvider> root) so it
|
|
7
|
+
* can't leak into your app, and every value is a `--tf-checkout-*` custom
|
|
8
|
+
* property so you can retheme by overriding tokens — via the provider's `theme`
|
|
9
|
+
* prop, or your own CSS. Class names follow `tf-checkout-<block>__<el>--<mod>`
|
|
10
|
+
* (BEM); target any of them to override what the tokens can't reach.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.tf-checkout {
|
|
14
|
+
/* ---- color ---- */
|
|
15
|
+
--tf-checkout-accent: #6d28d9;
|
|
16
|
+
--tf-checkout-accent-hover: #5b21b6;
|
|
17
|
+
--tf-checkout-accent-contrast: #ffffff;
|
|
18
|
+
--tf-checkout-surface: #ffffff;
|
|
19
|
+
--tf-checkout-surface-muted: #f5f5fa;
|
|
20
|
+
--tf-checkout-text: #16162e;
|
|
21
|
+
--tf-checkout-muted: #6b7280;
|
|
22
|
+
--tf-checkout-border: #e7e7f0;
|
|
23
|
+
--tf-checkout-error: #e5484d;
|
|
24
|
+
--tf-checkout-success: #16a34a;
|
|
25
|
+
--tf-checkout-focus-ring: color-mix(
|
|
26
|
+
in srgb,
|
|
27
|
+
var(--tf-checkout-accent) 22%,
|
|
28
|
+
transparent
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
/* ---- shape ---- */
|
|
32
|
+
/* Flat + form-like on purpose — the old checkout wasn't a stack of floating,
|
|
33
|
+
heavily-shadowed cards. Sections are defined by a hairline border, not a
|
|
34
|
+
drop shadow, and corners are modest so it reads as a clean form. */
|
|
35
|
+
--tf-checkout-radius-card: 12px;
|
|
36
|
+
--tf-checkout-radius-control: 8px;
|
|
37
|
+
--tf-checkout-shadow: none;
|
|
38
|
+
|
|
39
|
+
/* ---- type ---- */
|
|
40
|
+
--tf-checkout-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
|
|
41
|
+
sans-serif;
|
|
42
|
+
--tf-checkout-font-size: 15px;
|
|
43
|
+
|
|
44
|
+
/* ---- space (4px base scale) ---- */
|
|
45
|
+
--tf-checkout-space-1: 4px;
|
|
46
|
+
--tf-checkout-space-2: 8px;
|
|
47
|
+
--tf-checkout-space-3: 12px;
|
|
48
|
+
--tf-checkout-space-4: 16px;
|
|
49
|
+
--tf-checkout-space-5: 22px;
|
|
50
|
+
|
|
51
|
+
/* ---- layout ---- */
|
|
52
|
+
--tf-checkout-max-width: 480px;
|
|
53
|
+
|
|
54
|
+
font-family: var(--tf-checkout-font);
|
|
55
|
+
font-size: var(--tf-checkout-font-size);
|
|
56
|
+
color: var(--tf-checkout-text);
|
|
57
|
+
max-width: var(--tf-checkout-max-width);
|
|
58
|
+
margin: 0 auto;
|
|
59
|
+
text-align: left;
|
|
60
|
+
}
|
|
61
|
+
.tf-checkout *,
|
|
62
|
+
.tf-checkout *::before,
|
|
63
|
+
.tf-checkout *::after {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* ============================ Embedded flow ============================ */
|
|
68
|
+
.tf-checkout-flow__checkout {
|
|
69
|
+
scroll-margin-top: var(--tf-checkout-space-5);
|
|
70
|
+
}
|
|
71
|
+
.tf-checkout-flow__checkout > .tf-checkout-card {
|
|
72
|
+
padding: 30px 20px;
|
|
73
|
+
margin-bottom: 20px;
|
|
74
|
+
border: 0;
|
|
75
|
+
border-radius: 40px;
|
|
76
|
+
background: var(--tf-checkout-surface);
|
|
77
|
+
color: var(--tf-checkout-text);
|
|
78
|
+
box-shadow: none;
|
|
79
|
+
}
|
|
80
|
+
.tf-checkout-payment-stack > .tf-checkout-card {
|
|
81
|
+
padding: 30px 20px;
|
|
82
|
+
margin-bottom: 20px;
|
|
83
|
+
border: 0;
|
|
84
|
+
border-radius: 40px;
|
|
85
|
+
background: var(--tf-checkout-surface);
|
|
86
|
+
color: var(--tf-checkout-text);
|
|
87
|
+
box-shadow: none;
|
|
88
|
+
}
|
|
89
|
+
.tf-checkout-flow__selection {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: space-between;
|
|
93
|
+
gap: var(--tf-checkout-space-3);
|
|
94
|
+
padding: 12px var(--tf-checkout-space-4);
|
|
95
|
+
margin-bottom: var(--tf-checkout-space-4);
|
|
96
|
+
border-radius: var(--tf-checkout-radius-control);
|
|
97
|
+
background: var(--tf-checkout-accent);
|
|
98
|
+
color: var(--tf-checkout-accent-contrast);
|
|
99
|
+
}
|
|
100
|
+
.tf-checkout-flow__selection-text {
|
|
101
|
+
font-size: 14px;
|
|
102
|
+
font-weight: 700;
|
|
103
|
+
}
|
|
104
|
+
.tf-checkout-flow__edit {
|
|
105
|
+
flex: none;
|
|
106
|
+
padding: 8px 14px;
|
|
107
|
+
border: 0;
|
|
108
|
+
border-radius: var(--tf-checkout-radius-control);
|
|
109
|
+
background: var(--tf-checkout-accent-contrast);
|
|
110
|
+
color: var(--tf-checkout-accent);
|
|
111
|
+
font: inherit;
|
|
112
|
+
font-size: 13px;
|
|
113
|
+
font-weight: 700;
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
}
|
|
116
|
+
.tf-checkout-flow__edit:hover {
|
|
117
|
+
filter: brightness(0.96);
|
|
118
|
+
}
|
|
119
|
+
.tf-checkout-flow__edit:focus-visible,
|
|
120
|
+
.tf-checkout-flow__back:focus-visible {
|
|
121
|
+
outline: none;
|
|
122
|
+
box-shadow: 0 0 0 3px var(--tf-checkout-focus-ring);
|
|
123
|
+
}
|
|
124
|
+
.tf-checkout-flow__back {
|
|
125
|
+
margin: 0 0 var(--tf-checkout-space-3);
|
|
126
|
+
padding: 6px 0;
|
|
127
|
+
border: 0;
|
|
128
|
+
background: transparent;
|
|
129
|
+
color: var(--tf-checkout-accent);
|
|
130
|
+
font: inherit;
|
|
131
|
+
font-weight: 700;
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* ---- dark scheme ----
|
|
136
|
+
Checkout is light by default, matching the hosted storefront. Consumers that
|
|
137
|
+
want dark mode opt in with theme={{ colorScheme: 'dark' }}. A checkout should
|
|
138
|
+
not silently change appearance because the buyer's OS is dark. */
|
|
139
|
+
.tf-checkout--dark {
|
|
140
|
+
--tf-checkout-surface: #1b1b2b;
|
|
141
|
+
--tf-checkout-surface-muted: #23233a;
|
|
142
|
+
--tf-checkout-text: #f3f3fb;
|
|
143
|
+
--tf-checkout-muted: #9a9ab0;
|
|
144
|
+
--tf-checkout-border: #34344d;
|
|
145
|
+
--tf-checkout-shadow: none;
|
|
146
|
+
}
|