@asdp/ferryui 0.1.22-dev.9360 → 0.1.22-dev.9415
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/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +26 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3614,6 +3614,7 @@ interface CardPaymentInfoLabels {
|
|
|
3614
3614
|
checkStatusInfo: string;
|
|
3615
3615
|
checkStatusButton: string;
|
|
3616
3616
|
currencySymbol: string;
|
|
3617
|
+
changePayment: string;
|
|
3617
3618
|
}
|
|
3618
3619
|
interface CardPaymentInfoProps {
|
|
3619
3620
|
/**
|
|
@@ -3632,6 +3633,7 @@ interface CardPaymentInfoProps {
|
|
|
3632
3633
|
guides: PaymentGuideStep[];
|
|
3633
3634
|
onCopyVA?: () => void;
|
|
3634
3635
|
onCheckStatus?: () => void;
|
|
3636
|
+
onChangePayment?: () => void;
|
|
3635
3637
|
}
|
|
3636
3638
|
|
|
3637
3639
|
declare const CardPaymentInfo: React$1.FC<CardPaymentInfoProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -3614,6 +3614,7 @@ interface CardPaymentInfoLabels {
|
|
|
3614
3614
|
checkStatusInfo: string;
|
|
3615
3615
|
checkStatusButton: string;
|
|
3616
3616
|
currencySymbol: string;
|
|
3617
|
+
changePayment: string;
|
|
3617
3618
|
}
|
|
3618
3619
|
interface CardPaymentInfoProps {
|
|
3619
3620
|
/**
|
|
@@ -3632,6 +3633,7 @@ interface CardPaymentInfoProps {
|
|
|
3632
3633
|
guides: PaymentGuideStep[];
|
|
3633
3634
|
onCopyVA?: () => void;
|
|
3634
3635
|
onCheckStatus?: () => void;
|
|
3636
|
+
onChangePayment?: () => void;
|
|
3635
3637
|
}
|
|
3636
3638
|
|
|
3637
3639
|
declare const CardPaymentInfo: React$1.FC<CardPaymentInfoProps>;
|
package/dist/index.js
CHANGED
|
@@ -3716,8 +3716,14 @@ var InputDynamic = ({
|
|
|
3716
3716
|
if (isMultiSelect) {
|
|
3717
3717
|
const values = selectedOption ? selectedOption.map((opt) => opt.value) : [];
|
|
3718
3718
|
field.onChange(values);
|
|
3719
|
+
if (onChange) {
|
|
3720
|
+
onChange(values);
|
|
3721
|
+
}
|
|
3719
3722
|
} else {
|
|
3720
3723
|
field.onChange(selectedOption ? selectedOption.value : "");
|
|
3724
|
+
if (onChange) {
|
|
3725
|
+
onChange(selectedOption ? selectedOption.value : "");
|
|
3726
|
+
}
|
|
3721
3727
|
}
|
|
3722
3728
|
},
|
|
3723
3729
|
getOptionLabel: (option) => option.label,
|
|
@@ -13604,7 +13610,8 @@ var DEFAULT_LABELS36 = {
|
|
|
13604
13610
|
totalPayment: "Total Pembayaran",
|
|
13605
13611
|
checkStatusInfo: "Klik tombol dibawah ini jika sudah melakukan pembayaran",
|
|
13606
13612
|
checkStatusButton: "Cek Status Pembayaran",
|
|
13607
|
-
currencySymbol: "Rp."
|
|
13613
|
+
currencySymbol: "Rp.",
|
|
13614
|
+
changePayment: "Ubah Metode Pembayaran"
|
|
13608
13615
|
},
|
|
13609
13616
|
en: {
|
|
13610
13617
|
expiryPrefix: "Virtual account code valid until",
|
|
@@ -13612,7 +13619,8 @@ var DEFAULT_LABELS36 = {
|
|
|
13612
13619
|
totalPayment: "Total Payment",
|
|
13613
13620
|
checkStatusInfo: "Click the button below if you have made the payment",
|
|
13614
13621
|
checkStatusButton: "Check Payment Status",
|
|
13615
|
-
currencySymbol: "Rp."
|
|
13622
|
+
currencySymbol: "Rp.",
|
|
13623
|
+
changePayment: "Change Payment Method"
|
|
13616
13624
|
}
|
|
13617
13625
|
};
|
|
13618
13626
|
var useStyles38 = reactComponents.makeStyles({
|
|
@@ -13695,7 +13703,8 @@ var CardPaymentInfo = ({
|
|
|
13695
13703
|
totalAmount,
|
|
13696
13704
|
guides,
|
|
13697
13705
|
onCopyVA,
|
|
13698
|
-
onCheckStatus
|
|
13706
|
+
onCheckStatus,
|
|
13707
|
+
onChangePayment
|
|
13699
13708
|
}) => {
|
|
13700
13709
|
const styles = useStyles38();
|
|
13701
13710
|
const mergedLabels = { ...DEFAULT_LABELS36[language], ...labels };
|
|
@@ -13724,6 +13733,17 @@ var CardPaymentInfo = ({
|
|
|
13724
13733
|
)
|
|
13725
13734
|
] })
|
|
13726
13735
|
] }),
|
|
13736
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13737
|
+
reactComponents.Button,
|
|
13738
|
+
{
|
|
13739
|
+
appearance: "secondary",
|
|
13740
|
+
size: "large",
|
|
13741
|
+
shape: "circular",
|
|
13742
|
+
className: styles.checkStatusButton,
|
|
13743
|
+
onClick: onChangePayment,
|
|
13744
|
+
children: mergedLabels.changePayment
|
|
13745
|
+
}
|
|
13746
|
+
),
|
|
13727
13747
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
13728
13748
|
reactComponents.Field,
|
|
13729
13749
|
{
|
|
@@ -13732,7 +13752,9 @@ var CardPaymentInfo = ({
|
|
|
13732
13752
|
children: /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Title2, { children: [
|
|
13733
13753
|
mergedLabels.currencySymbol,
|
|
13734
13754
|
" ",
|
|
13735
|
-
totalAmount.toLocaleString(
|
|
13755
|
+
totalAmount.toLocaleString(
|
|
13756
|
+
language === "id" ? "id-ID" : "en-US"
|
|
13757
|
+
)
|
|
13736
13758
|
] })
|
|
13737
13759
|
}
|
|
13738
13760
|
)
|