@eventlook/sdk 1.7.2-beta.0 → 1.7.2
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/.prettierignore +0 -3
- package/dist/cjs/{index-DmK9RPSa.js → index-D1KZ-2U1.js} +22463 -22979
- package/dist/cjs/index-D1KZ-2U1.js.map +1 -0
- package/dist/cjs/index.js +1 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{index.umd-DUMMTVwU.js → index.umd-C2KzR75H.js} +2 -2
- package/dist/cjs/{index.umd-DUMMTVwU.js.map → index.umd-C2KzR75H.js.map} +1 -1
- package/dist/cjs/{mui-tel-input.es-Dk9M_v4X.js → mui-tel-input.es-Bjml407E.js} +6 -6
- package/dist/{esm/mui-tel-input.es-Cb4Lpqx7.js.map → cjs/mui-tel-input.es-Bjml407E.js.map} +1 -1
- package/dist/esm/{index-C0HcmMMr.js → index-DRYwiFvp.js} +24559 -25057
- package/dist/esm/index-DRYwiFvp.js.map +1 -0
- package/dist/esm/index.js +1 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{index.umd-BqJOlKvJ.js → index.umd-BXOC8cuK.js} +4 -4
- package/dist/esm/{index.umd-BqJOlKvJ.js.map → index.umd-BXOC8cuK.js.map} +1 -1
- package/dist/esm/{mui-tel-input.es-Cb4Lpqx7.js → mui-tel-input.es-Bt2rE3An.js} +21 -21
- package/dist/{cjs/mui-tel-input.es-Dk9M_v4X.js.map → esm/mui-tel-input.es-Bt2rE3An.js.map} +1 -1
- package/dist/types/locales/cs.d.ts +0 -31
- package/dist/types/locales/en.d.ts +0 -31
- package/dist/types/locales/es.d.ts +0 -31
- package/dist/types/locales/pl.d.ts +0 -31
- package/dist/types/locales/sk.d.ts +0 -31
- package/dist/types/locales/uk.d.ts +0 -31
- package/dist/types/utils/data/ticket.d.ts +1 -0
- package/dist/types/utils/types/global.type.d.ts +0 -1
- package/dist/types/utils/types/order.type.d.ts +0 -2
- package/package.json +1 -3
- package/src/form/ChildEventCard.tsx +70 -64
- package/src/form/PaymentSuccess.tsx +2 -6
- package/src/form/TicketForm.tsx +1 -7
- package/src/form/tickets/ReleaseWithMerchandise.tsx +7 -6
- package/src/form/tickets/TicketSelection.tsx +7 -6
- package/src/form/tickets/TicketSelectionMap.tsx +2 -2
- package/src/form/tickets/TicketSelectionMobile.tsx +4 -3
- package/src/form/tickets/TicketWithMerchandiseSelection.tsx +5 -4
- package/src/locales/cs.tsx +0 -37
- package/src/locales/en.tsx +0 -35
- package/src/locales/es.tsx +0 -36
- package/src/locales/pl.tsx +0 -35
- package/src/locales/sk.tsx +0 -37
- package/src/locales/uk.tsx +0 -35
- package/src/utils/data/ticket.ts +10 -0
- package/src/utils/types/global.type.ts +0 -1
- package/src/utils/types/order.type.ts +0 -2
- package/CLAUDE.md +0 -33
- package/dist/cjs/index-DmK9RPSa.js.map +0 -1
- package/dist/esm/index-C0HcmMMr.js.map +0 -1
- package/dist/types/form/paydroid/PaydroidCashlessSection.d.ts +0 -7
- package/dist/types/form/paydroid/PaydroidError.d.ts +0 -3
- package/dist/types/form/paydroid/PaydroidErrorAccount.d.ts +0 -3
- package/dist/types/form/paydroid/PaydroidErrorTicket.d.ts +0 -3
- package/dist/types/form/paydroid/PaydroidPage.d.ts +0 -6
- package/dist/types/form/paydroid/PaydroidStatusCard.d.ts +0 -10
- package/dist/types/form/paydroid/PaydroidSuccess.d.ts +0 -3
- package/dist/types/form/paydroid/PaydroidSuccessTopup.d.ts +0 -3
- package/dist/types/modules/paydroid.d.ts +0 -4
- package/dist/types/utils/data/page.d.ts +0 -7
- package/dist/types/utils/page.d.ts +0 -1
- package/dist/types/utils/paydroid.d.ts +0 -6
- package/dist/types/utils/types/paydroid.d.ts +0 -23
- package/src/form/paydroid/PaydroidCashlessSection.tsx +0 -311
- package/src/form/paydroid/PaydroidError.tsx +0 -26
- package/src/form/paydroid/PaydroidErrorAccount.tsx +0 -26
- package/src/form/paydroid/PaydroidErrorTicket.tsx +0 -26
- package/src/form/paydroid/PaydroidPage.tsx +0 -22
- package/src/form/paydroid/PaydroidStatusCard.tsx +0 -91
- package/src/form/paydroid/PaydroidSuccess.tsx +0 -26
- package/src/form/paydroid/PaydroidSuccessTopup.tsx +0 -26
- package/src/modules/paydroid.ts +0 -33
- package/src/utils/data/page.ts +0 -7
- package/src/utils/page.ts +0 -4
- package/src/utils/paydroid.ts +0 -35
- package/src/utils/types/paydroid.ts +0 -26
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import gn from 'react-dom';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
5
5
|
import Rt from '@mui/material/IconButton';
|
|
6
6
|
import { grey } from '@mui/material/colors';
|
|
7
|
-
import
|
|
7
|
+
import Ie from '@mui/material/Typography';
|
|
8
8
|
import yn from '@mui/material/MenuItem';
|
|
9
9
|
import pn from '@mui/material/ListItemIcon';
|
|
10
10
|
import vn from '@mui/material/ListItemText';
|
|
@@ -367,7 +367,7 @@ function Fe(e = X) {
|
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
369
|
const _n = {
|
|
370
|
-
CallingCodeSplitted: styled(
|
|
370
|
+
CallingCodeSplitted: styled(Ie)({
|
|
371
371
|
borderRight: `1px solid ${grey[300]}`,
|
|
372
372
|
paddingRight: 10,
|
|
373
373
|
cursor: "default",
|
|
@@ -384,7 +384,7 @@ const _n = {
|
|
|
384
384
|
className: o,
|
|
385
385
|
...u
|
|
386
386
|
}) => {
|
|
387
|
-
const $ =
|
|
387
|
+
const $ = React.useMemo(() => Fe(t), [t]), l = /* @__PURE__ */ jsx(Ee, { isoCode: a, children: a ? d(a, {
|
|
388
388
|
countryName: $.of(a) || "",
|
|
389
389
|
isSelected: true,
|
|
390
390
|
imgProps: St({
|
|
@@ -453,7 +453,7 @@ const _n = {
|
|
|
453
453
|
}) }) }),
|
|
454
454
|
/* @__PURE__ */ jsx(Bt.ListItemText, { className: De, children: t }),
|
|
455
455
|
/* @__PURE__ */ jsxs(
|
|
456
|
-
|
|
456
|
+
Ie,
|
|
457
457
|
{
|
|
458
458
|
variant: "body2",
|
|
459
459
|
color: "text.secondary",
|
|
@@ -466,7 +466,7 @@ const _n = {
|
|
|
466
466
|
)
|
|
467
467
|
]
|
|
468
468
|
}
|
|
469
|
-
), Bn =
|
|
469
|
+
), Bn = React.memo(kn), Gn = [], jn = [], Un = [], Wn = [], _e = "MuiTelInput-Menu", Hn = ({
|
|
470
470
|
anchorEl: e,
|
|
471
471
|
isoCode: n,
|
|
472
472
|
onSelectCountry: t,
|
|
@@ -479,7 +479,7 @@ const _n = {
|
|
|
479
479
|
getFlagElement: $,
|
|
480
480
|
...l
|
|
481
481
|
}) => {
|
|
482
|
-
const h =
|
|
482
|
+
const h = React.useMemo(() => Fe(i), [i]), f = Fn(xn, h, {
|
|
483
483
|
onlyCountries: d,
|
|
484
484
|
excludedCountries: r,
|
|
485
485
|
continents: a,
|
|
@@ -526,7 +526,7 @@ function Le(e, n) {
|
|
|
526
526
|
return e.replace(n, "");
|
|
527
527
|
}
|
|
528
528
|
function Vn({ disabled: e, disableDropdown: n }) {
|
|
529
|
-
const t =
|
|
529
|
+
const t = React.useRef(null), [r, d] = React.useState(null);
|
|
530
530
|
return {
|
|
531
531
|
anchorRef: t,
|
|
532
532
|
anchorEl: r,
|
|
@@ -577,7 +577,7 @@ function zn(e) {
|
|
|
577
577
|
continents: d,
|
|
578
578
|
forceCallingCode: i
|
|
579
579
|
} = e;
|
|
580
|
-
|
|
580
|
+
React.useEffect(() => {
|
|
581
581
|
if (t && r) {
|
|
582
582
|
const a = Sn(
|
|
583
583
|
t,
|
|
@@ -587,19 +587,19 @@ function zn(e) {
|
|
|
587
587
|
`[mui-tel-input] Not expected to have the country ${a} to be included in the 'onlyCountries' AND 'excludedCountries' props`
|
|
588
588
|
);
|
|
589
589
|
}
|
|
590
|
-
}, [t, r]),
|
|
590
|
+
}, [t, r]), React.useEffect(() => {
|
|
591
591
|
n && r && r.includes(n) && L(
|
|
592
592
|
`[mui-tel-input] Not expected to have the 'defaultCountry' (${n}) prop excluded by the 'excludedCountries' prop`
|
|
593
593
|
);
|
|
594
|
-
}, [n, r]),
|
|
594
|
+
}, [n, r]), React.useEffect(() => {
|
|
595
595
|
n && t && !t.includes(n) && L(
|
|
596
596
|
`[mui-tel-input] Not expected to have a 'defaultCountry' prop (${n}) and a 'onlyCountries' prop but without included the 'defaultCountry' (${n})`
|
|
597
597
|
);
|
|
598
|
-
}, [n, t]),
|
|
598
|
+
}, [n, t]), React.useEffect(() => {
|
|
599
599
|
n && d && d.length > 0 && (d.some((o) => It[o].includes(n)) || L(
|
|
600
600
|
`[mui-tel-input] Not expected to have a 'defaultCountry' prop (${n}) and a 'continents' prop that are not contain the country (${n})`
|
|
601
601
|
));
|
|
602
|
-
}, [n, d]),
|
|
602
|
+
}, [n, d]), React.useEffect(() => {
|
|
603
603
|
i && !n && L(
|
|
604
604
|
"[mui-tel-input] 'forceCallingCode' needs 'defaultCountry' defined. Will default to US."
|
|
605
605
|
);
|
|
@@ -3593,14 +3593,14 @@ function e0({
|
|
|
3593
3593
|
disableFormatting: a,
|
|
3594
3594
|
forceCallingCode: o
|
|
3595
3595
|
}) {
|
|
3596
|
-
const u =
|
|
3596
|
+
const u = React.useRef(
|
|
3597
3597
|
t || null
|
|
3598
|
-
), $ =
|
|
3598
|
+
), $ = React.useRef(new R(t)), l = React.useRef(null), [h, f] = React.useState(t), [c, g] = React.useState(() => ft({
|
|
3599
3599
|
initialValue: e,
|
|
3600
3600
|
defaultCountry: t,
|
|
3601
3601
|
disableFormatting: a,
|
|
3602
3602
|
forceCallingCode: o
|
|
3603
|
-
})), [N, y] =
|
|
3603
|
+
})), [N, y] = React.useState(e), w = (s) => ({
|
|
3604
3604
|
countryCallingCode: $.current.getCallingCode() || null,
|
|
3605
3605
|
countryCode: $.current.getCountry() || null,
|
|
3606
3606
|
nationalNumber: $.current.getNationalNumber(),
|
|
@@ -3637,7 +3637,7 @@ function e0({
|
|
|
3637
3637
|
});
|
|
3638
3638
|
}
|
|
3639
3639
|
};
|
|
3640
|
-
|
|
3640
|
+
React.useEffect(() => {
|
|
3641
3641
|
if (e !== N) {
|
|
3642
3642
|
y(e);
|
|
3643
3643
|
const s = ft({
|
|
@@ -3654,7 +3654,7 @@ function e0({
|
|
|
3654
3654
|
t,
|
|
3655
3655
|
o,
|
|
3656
3656
|
a
|
|
3657
|
-
]),
|
|
3657
|
+
]), React.useEffect(() => {
|
|
3658
3658
|
if (t !== h) {
|
|
3659
3659
|
f(t), $.current = new R(t);
|
|
3660
3660
|
const { inputValue: s, isoCode: x } = ft({
|
|
@@ -3779,7 +3779,7 @@ const rn = "MuiTelInput-TextField", y0 = (e) => {
|
|
|
3779
3779
|
onFocus: a,
|
|
3780
3780
|
inputRef: M
|
|
3781
3781
|
}), sn = (ot) => {
|
|
3782
|
-
|
|
3782
|
+
gn.flushSync(() => {
|
|
3783
3783
|
Dt(), b(ot);
|
|
3784
3784
|
}), w && M.current && M.current.focus();
|
|
3785
3785
|
}, fn = (ot) => {
|
|
@@ -3848,4 +3848,4 @@ const rn = "MuiTelInput-TextField", y0 = (e) => {
|
|
|
3848
3848
|
};
|
|
3849
3849
|
|
|
3850
3850
|
export { R as AsYouType, y0 as MuiTelInput, m0 as matchIsValidTel, rn as textFieldClass };
|
|
3851
|
-
//# sourceMappingURL=mui-tel-input.es-
|
|
3851
|
+
//# sourceMappingURL=mui-tel-input.es-Bt2rE3An.js.map
|