@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.mjs
CHANGED
|
@@ -3707,8 +3707,14 @@ var InputDynamic = ({
|
|
|
3707
3707
|
if (isMultiSelect) {
|
|
3708
3708
|
const values = selectedOption ? selectedOption.map((opt) => opt.value) : [];
|
|
3709
3709
|
field.onChange(values);
|
|
3710
|
+
if (onChange) {
|
|
3711
|
+
onChange(values);
|
|
3712
|
+
}
|
|
3710
3713
|
} else {
|
|
3711
3714
|
field.onChange(selectedOption ? selectedOption.value : "");
|
|
3715
|
+
if (onChange) {
|
|
3716
|
+
onChange(selectedOption ? selectedOption.value : "");
|
|
3717
|
+
}
|
|
3712
3718
|
}
|
|
3713
3719
|
},
|
|
3714
3720
|
getOptionLabel: (option) => option.label,
|
|
@@ -13595,7 +13601,8 @@ var DEFAULT_LABELS36 = {
|
|
|
13595
13601
|
totalPayment: "Total Pembayaran",
|
|
13596
13602
|
checkStatusInfo: "Klik tombol dibawah ini jika sudah melakukan pembayaran",
|
|
13597
13603
|
checkStatusButton: "Cek Status Pembayaran",
|
|
13598
|
-
currencySymbol: "Rp."
|
|
13604
|
+
currencySymbol: "Rp.",
|
|
13605
|
+
changePayment: "Ubah Metode Pembayaran"
|
|
13599
13606
|
},
|
|
13600
13607
|
en: {
|
|
13601
13608
|
expiryPrefix: "Virtual account code valid until",
|
|
@@ -13603,7 +13610,8 @@ var DEFAULT_LABELS36 = {
|
|
|
13603
13610
|
totalPayment: "Total Payment",
|
|
13604
13611
|
checkStatusInfo: "Click the button below if you have made the payment",
|
|
13605
13612
|
checkStatusButton: "Check Payment Status",
|
|
13606
|
-
currencySymbol: "Rp."
|
|
13613
|
+
currencySymbol: "Rp.",
|
|
13614
|
+
changePayment: "Change Payment Method"
|
|
13607
13615
|
}
|
|
13608
13616
|
};
|
|
13609
13617
|
var useStyles38 = makeStyles({
|
|
@@ -13686,7 +13694,8 @@ var CardPaymentInfo = ({
|
|
|
13686
13694
|
totalAmount,
|
|
13687
13695
|
guides,
|
|
13688
13696
|
onCopyVA,
|
|
13689
|
-
onCheckStatus
|
|
13697
|
+
onCheckStatus,
|
|
13698
|
+
onChangePayment
|
|
13690
13699
|
}) => {
|
|
13691
13700
|
const styles = useStyles38();
|
|
13692
13701
|
const mergedLabels = { ...DEFAULT_LABELS36[language], ...labels };
|
|
@@ -13715,6 +13724,17 @@ var CardPaymentInfo = ({
|
|
|
13715
13724
|
)
|
|
13716
13725
|
] })
|
|
13717
13726
|
] }),
|
|
13727
|
+
/* @__PURE__ */ jsx(
|
|
13728
|
+
Button,
|
|
13729
|
+
{
|
|
13730
|
+
appearance: "secondary",
|
|
13731
|
+
size: "large",
|
|
13732
|
+
shape: "circular",
|
|
13733
|
+
className: styles.checkStatusButton,
|
|
13734
|
+
onClick: onChangePayment,
|
|
13735
|
+
children: mergedLabels.changePayment
|
|
13736
|
+
}
|
|
13737
|
+
),
|
|
13718
13738
|
/* @__PURE__ */ jsx(
|
|
13719
13739
|
Field,
|
|
13720
13740
|
{
|
|
@@ -13723,7 +13743,9 @@ var CardPaymentInfo = ({
|
|
|
13723
13743
|
children: /* @__PURE__ */ jsxs(Title2, { children: [
|
|
13724
13744
|
mergedLabels.currencySymbol,
|
|
13725
13745
|
" ",
|
|
13726
|
-
totalAmount.toLocaleString(
|
|
13746
|
+
totalAmount.toLocaleString(
|
|
13747
|
+
language === "id" ? "id-ID" : "en-US"
|
|
13748
|
+
)
|
|
13727
13749
|
] })
|
|
13728
13750
|
}
|
|
13729
13751
|
)
|