tf-checkout-react 1.0.101 → 1.0.102

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.
Files changed (81) hide show
  1. package/dist/components/billing-info-container/index.d.ts +3 -1
  2. package/dist/components/common/SnackbarAlert.d.ts +13 -0
  3. package/dist/components/confirmationContainer/index.d.ts +2 -1
  4. package/dist/components/ticketsContainer/index.d.ts +2 -1
  5. package/dist/env.d.ts +1 -0
  6. package/dist/images/done.svg +3 -3
  7. package/dist/tf-checkout-react.cjs.development.js +242 -117
  8. package/dist/tf-checkout-react.cjs.development.js.map +1 -1
  9. package/dist/tf-checkout-react.cjs.production.min.js +1 -1
  10. package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
  11. package/dist/tf-checkout-react.esm.js +243 -118
  12. package/dist/tf-checkout-react.esm.js.map +1 -1
  13. package/dist/tf-checkout-styles.css +1 -1
  14. package/package.json +89 -89
  15. package/src/.DS_Store +0 -0
  16. package/src/.d.ts +2 -2
  17. package/src/api/index.ts +278 -278
  18. package/src/assets/images/done.svg +3 -3
  19. package/src/components/.DS_Store +0 -0
  20. package/src/components/billing-info-container/index.tsx +796 -777
  21. package/src/components/billing-info-container/style.css +105 -105
  22. package/src/components/billing-info-container/utils.ts +224 -224
  23. package/src/components/common/CheckboxField.tsx +41 -41
  24. package/src/components/common/CustomField.tsx +84 -84
  25. package/src/components/common/FormikPhoneNumberField.tsx +51 -51
  26. package/src/components/common/Loader.tsx +9 -9
  27. package/src/components/common/RadioField.tsx +35 -35
  28. package/src/components/common/SelectField.tsx +80 -80
  29. package/src/components/common/SnackbarAlert.tsx +54 -0
  30. package/src/components/common/index.tsx +4 -4
  31. package/src/components/confirmModal/index.tsx +51 -51
  32. package/src/components/confirmModal/style.css +21 -21
  33. package/src/components/confirmationContainer/config.ts +72 -72
  34. package/src/components/confirmationContainer/index.tsx +197 -194
  35. package/src/components/confirmationContainer/social-buttons.tsx +94 -94
  36. package/src/components/confirmationContainer/style.css +202 -202
  37. package/src/components/countdown/index.tsx +89 -89
  38. package/src/components/countdown/style.css +9 -9
  39. package/src/components/index.ts +7 -7
  40. package/src/components/loginModal/index.tsx +209 -209
  41. package/src/components/loginModal/style.css +71 -71
  42. package/src/components/myTicketsContainer/index.tsx +196 -137
  43. package/src/components/myTicketsContainer/row.tsx +41 -41
  44. package/src/components/myTicketsContainer/style.css +39 -39
  45. package/src/components/myTicketsContainer/tableConfig.tsx +34 -34
  46. package/src/components/orderDetailsContainer/index.tsx +249 -249
  47. package/src/components/orderDetailsContainer/style.css +72 -72
  48. package/src/components/orderDetailsContainer/ticketsTable.tsx +124 -124
  49. package/src/components/paymentContainer/index.tsx +284 -284
  50. package/src/components/registerModal/index.tsx +190 -190
  51. package/src/components/stripePayment/index.tsx +253 -253
  52. package/src/components/stripePayment/style.css +59 -59
  53. package/src/components/ticketResale/index.tsx +56 -56
  54. package/src/components/ticketResaleModal/index.tsx +210 -210
  55. package/src/components/ticketResaleModal/style.css +28 -28
  56. package/src/components/ticketsContainer/PromoCodeSection.tsx +99 -99
  57. package/src/components/ticketsContainer/ReferralLogic.tsx +33 -33
  58. package/src/components/ticketsContainer/TicketRow.tsx +83 -83
  59. package/src/components/ticketsContainer/TicketsSection.tsx +81 -81
  60. package/src/components/ticketsContainer/index.tsx +430 -422
  61. package/src/components/ticketsContainer/style.css +181 -181
  62. package/src/components/ticketsContainer/utils.ts +11 -11
  63. package/src/components/timerWidget/index.tsx +70 -70
  64. package/src/components/timerWidget/style.css +26 -26
  65. package/src/components/waitingList/index.tsx +178 -178
  66. package/src/components/waitingList/style.css +26 -26
  67. package/src/env.ts +20 -19
  68. package/src/index.ts +13 -13
  69. package/src/normalizers/index.ts +45 -45
  70. package/src/types/billing-info-data.ts +37 -37
  71. package/src/types/payment-field.ts +7 -7
  72. package/src/types/referral-promotion.ts +7 -7
  73. package/src/utils/createCheckoutDataBodyWithDefaultHolder.ts +59 -59
  74. package/src/utils/downloadPDF.tsx +30 -30
  75. package/src/utils/formikErrorFocus.ts +24 -24
  76. package/src/utils/getImage.ts +14 -14
  77. package/src/utils/getQueryVariable.ts +13 -13
  78. package/src/utils/index.ts +5 -5
  79. package/src/utils/setConfigs.ts +26 -26
  80. package/src/utils/showZero.tsx +10 -10
  81. package/src/validators/index.ts +20 -20
@@ -1,51 +1,51 @@
1
- import React, { FC } from 'react'
2
- import Modal from '@mui/material/Modal'
3
- import Box from '@mui/material/Box'
4
- import Button from '@mui/material/Button';
5
- import './style.css'
6
-
7
- interface Props {
8
- message: string;
9
- onClose: () => void;
10
- onConfirm: () => void;
11
- }
12
-
13
- const style: React.CSSProperties = {
14
- position: 'absolute',
15
- top: '50%',
16
- left: '50%',
17
- transform: 'translate(-50%, -50%)',
18
- minWidth: 480,
19
- backgroundColor: '#e3e3e3',
20
- border: '1px solid white',
21
- outline: 'none',
22
- padding: '14px',
23
- maxHeight: '85vh',
24
- overflow: 'auto'
25
- }
26
-
27
- const ConfirmModal: FC<Props> = ({
28
- message = '',
29
- onClose = () => {},
30
- onConfirm = () => {},
31
- }) => {
32
- return (
33
- <Modal
34
- open={true}
35
- onClose={onClose}
36
- aria-labelledby="modal-modal-title"
37
- aria-describedby="modal-modal-description"
38
- className='confirm-modal'
39
- >
40
- <Box style={style}>
41
- <p>{message}</p>
42
- <div className='footer'>
43
- <Button onClick={onClose}>Cancel</Button>
44
- <Button onClick={onConfirm}>OK</Button>
45
- </div>
46
- </Box>
47
- </Modal>
48
- )
49
- }
50
-
51
- export default ConfirmModal
1
+ import React, { FC } from 'react'
2
+ import Modal from '@mui/material/Modal'
3
+ import Box from '@mui/material/Box'
4
+ import Button from '@mui/material/Button';
5
+ import './style.css'
6
+
7
+ interface Props {
8
+ message: string;
9
+ onClose: () => void;
10
+ onConfirm: () => void;
11
+ }
12
+
13
+ const style: React.CSSProperties = {
14
+ position: 'absolute',
15
+ top: '50%',
16
+ left: '50%',
17
+ transform: 'translate(-50%, -50%)',
18
+ minWidth: 480,
19
+ backgroundColor: '#e3e3e3',
20
+ border: '1px solid white',
21
+ outline: 'none',
22
+ padding: '14px',
23
+ maxHeight: '85vh',
24
+ overflow: 'auto'
25
+ }
26
+
27
+ const ConfirmModal: FC<Props> = ({
28
+ message = '',
29
+ onClose = () => {},
30
+ onConfirm = () => {},
31
+ }) => {
32
+ return (
33
+ <Modal
34
+ open={true}
35
+ onClose={onClose}
36
+ aria-labelledby="modal-modal-title"
37
+ aria-describedby="modal-modal-description"
38
+ className='confirm-modal'
39
+ >
40
+ <Box style={style}>
41
+ <p>{message}</p>
42
+ <div className='footer'>
43
+ <Button onClick={onClose}>Cancel</Button>
44
+ <Button onClick={onConfirm}>OK</Button>
45
+ </div>
46
+ </Box>
47
+ </Modal>
48
+ )
49
+ }
50
+
51
+ export default ConfirmModal
@@ -1,21 +1,21 @@
1
- .confirm-modal .footer {
2
- display: flex;
3
- gap: 10px;
4
- justify-content: flex-end;
5
- border-top: 1px solid rgb(192, 191, 191);
6
- }
7
- .confirm-modal .footer button {
8
- width: max-content;
9
- padding: 12px 8px;
10
- font-size: 12px;
11
- min-height: unset;
12
- text-transform: unset;
13
- }
14
- .confirm-modal .footer button:hover {
15
- width: max-content;
16
- padding: 12px 8px;
17
- font-size: 12px;
18
- background: #505050;
19
- min-height: unset;
20
- text-transform: unset;
21
- }
1
+ .confirm-modal .footer {
2
+ display: flex;
3
+ gap: 10px;
4
+ justify-content: flex-end;
5
+ border-top: 1px solid rgb(192, 191, 191);
6
+ }
7
+ .confirm-modal .footer button {
8
+ width: max-content;
9
+ padding: 12px 8px;
10
+ font-size: 12px;
11
+ min-height: unset;
12
+ text-transform: unset;
13
+ }
14
+ .confirm-modal .footer button:hover {
15
+ width: max-content;
16
+ padding: 12px 8px;
17
+ font-size: 12px;
18
+ background: #505050;
19
+ min-height: unset;
20
+ text-transform: unset;
21
+ }
@@ -1,72 +1,72 @@
1
- import {
2
- FacebookShareButton,
3
- FacebookMessengerShareButton,
4
- TwitterShareButton,
5
- LinkedinShareButton,
6
- PinterestShareButton,
7
- VKShareButton,
8
- OKShareButton,
9
- TelegramShareButton,
10
- WhatsappShareButton,
11
- RedditShareButton,
12
- TumblrShareButton,
13
- MailruShareButton,
14
- EmailShareButton,
15
- LivejournalShareButton,
16
- ViberShareButton,
17
- WorkplaceShareButton,
18
- LineShareButton,
19
- PocketShareButton,
20
- InstapaperShareButton,
21
- WeiboShareButton,
22
- HatenaShareButton,
23
- FacebookIcon,
24
- FacebookMessengerIcon,
25
- TwitterIcon,
26
- LinkedinIcon,
27
- PinterestIcon,
28
- VKIcon,
29
- OKIcon,
30
- TelegramIcon,
31
- WhatsappIcon,
32
- RedditIcon,
33
- TumblrIcon,
34
- MailruIcon,
35
- EmailIcon,
36
- LivejournalIcon,
37
- ViberIcon,
38
- WorkplaceIcon,
39
- LineIcon,
40
- PocketIcon,
41
- InstapaperIcon,
42
- WeiboIcon,
43
- HatenaIcon,
44
- } from 'react-share'
45
-
46
- const config: any = {
47
- facebook: { component: FacebookShareButton, icon: FacebookIcon },
48
- messenger: { component: FacebookMessengerShareButton, icon: FacebookMessengerIcon },
49
- twitter: { component: TwitterShareButton, icon: TwitterIcon },
50
- linkedin: { component: LinkedinShareButton, icon: LinkedinIcon },
51
- pinterest: { component: PinterestShareButton, icon: PinterestIcon },
52
- vk: { component: VKShareButton, icon: VKIcon },
53
- ok: { component: OKShareButton, icon: OKIcon },
54
- telegram: { component: TelegramShareButton, icon: TelegramIcon },
55
- whatsapp: { component: WhatsappShareButton, icon: WhatsappIcon },
56
- reddit: { component: RedditShareButton, icon: RedditIcon },
57
- tumblr: { component: TumblrShareButton, icon: TumblrIcon },
58
- mailru: { component: MailruShareButton, icon: MailruIcon },
59
- email: { component: EmailShareButton, icon: EmailIcon },
60
- livejournal: { component: LivejournalShareButton, icon: LivejournalIcon },
61
- viber: { component: ViberShareButton, icon: ViberIcon },
62
- workplace: { component: WorkplaceShareButton, icon: WorkplaceIcon },
63
- line: { component: LineShareButton, icon: LineIcon },
64
- pocket: { component: PocketShareButton, icon: PocketIcon },
65
- instapaper: { component: InstapaperShareButton, icon: InstapaperIcon },
66
- weibo: { component: WeiboShareButton, icon: WeiboIcon },
67
- hatena: { component: HatenaShareButton, icon: HatenaIcon },
68
- }
69
-
70
- export default function (key: string) {
71
- return config[key]
72
- }
1
+ import {
2
+ FacebookShareButton,
3
+ FacebookMessengerShareButton,
4
+ TwitterShareButton,
5
+ LinkedinShareButton,
6
+ PinterestShareButton,
7
+ VKShareButton,
8
+ OKShareButton,
9
+ TelegramShareButton,
10
+ WhatsappShareButton,
11
+ RedditShareButton,
12
+ TumblrShareButton,
13
+ MailruShareButton,
14
+ EmailShareButton,
15
+ LivejournalShareButton,
16
+ ViberShareButton,
17
+ WorkplaceShareButton,
18
+ LineShareButton,
19
+ PocketShareButton,
20
+ InstapaperShareButton,
21
+ WeiboShareButton,
22
+ HatenaShareButton,
23
+ FacebookIcon,
24
+ FacebookMessengerIcon,
25
+ TwitterIcon,
26
+ LinkedinIcon,
27
+ PinterestIcon,
28
+ VKIcon,
29
+ OKIcon,
30
+ TelegramIcon,
31
+ WhatsappIcon,
32
+ RedditIcon,
33
+ TumblrIcon,
34
+ MailruIcon,
35
+ EmailIcon,
36
+ LivejournalIcon,
37
+ ViberIcon,
38
+ WorkplaceIcon,
39
+ LineIcon,
40
+ PocketIcon,
41
+ InstapaperIcon,
42
+ WeiboIcon,
43
+ HatenaIcon,
44
+ } from 'react-share'
45
+
46
+ const config: any = {
47
+ facebook: { component: FacebookShareButton, icon: FacebookIcon },
48
+ messenger: { component: FacebookMessengerShareButton, icon: FacebookMessengerIcon },
49
+ twitter: { component: TwitterShareButton, icon: TwitterIcon },
50
+ linkedin: { component: LinkedinShareButton, icon: LinkedinIcon },
51
+ pinterest: { component: PinterestShareButton, icon: PinterestIcon },
52
+ vk: { component: VKShareButton, icon: VKIcon },
53
+ ok: { component: OKShareButton, icon: OKIcon },
54
+ telegram: { component: TelegramShareButton, icon: TelegramIcon },
55
+ whatsapp: { component: WhatsappShareButton, icon: WhatsappIcon },
56
+ reddit: { component: RedditShareButton, icon: RedditIcon },
57
+ tumblr: { component: TumblrShareButton, icon: TumblrIcon },
58
+ mailru: { component: MailruShareButton, icon: MailruIcon },
59
+ email: { component: EmailShareButton, icon: EmailIcon },
60
+ livejournal: { component: LivejournalShareButton, icon: LivejournalIcon },
61
+ viber: { component: ViberShareButton, icon: ViberIcon },
62
+ workplace: { component: WorkplaceShareButton, icon: WorkplaceIcon },
63
+ line: { component: LineShareButton, icon: LineIcon },
64
+ pocket: { component: PocketShareButton, icon: PocketIcon },
65
+ instapaper: { component: InstapaperShareButton, icon: InstapaperIcon },
66
+ weibo: { component: WeiboShareButton, icon: WeiboIcon },
67
+ hatena: { component: HatenaShareButton, icon: HatenaIcon },
68
+ }
69
+
70
+ export default function (key: string) {
71
+ return config[key]
72
+ }