@asdp/ferryui 0.1.22-dev.10403 → 0.1.22-dev.10407
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 +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +27 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13883,6 +13883,9 @@ var DEFAULT_LABELS27 = {
|
|
|
13883
13883
|
routeTitle: "Rute Perjalanan",
|
|
13884
13884
|
estimationPrefix: "Estimasi",
|
|
13885
13885
|
totalPriceLabel: "Total Harga",
|
|
13886
|
+
agreementPrefix: "Saya menyetujui",
|
|
13887
|
+
termsAndConditions: "Syarat & Ketentuan",
|
|
13888
|
+
agreementSuffix: "Ferizy",
|
|
13886
13889
|
nextButton: "Lanjutkan",
|
|
13887
13890
|
cancelButton: "Batalkan Pesanan",
|
|
13888
13891
|
previousButton: "Sebelumnya",
|
|
@@ -13900,6 +13903,9 @@ var DEFAULT_LABELS27 = {
|
|
|
13900
13903
|
routeTitle: "Travel Route",
|
|
13901
13904
|
estimationPrefix: "Estimation",
|
|
13902
13905
|
totalPriceLabel: "Total Price",
|
|
13906
|
+
agreementPrefix: "I agree to the",
|
|
13907
|
+
termsAndConditions: "Terms & Conditions",
|
|
13908
|
+
agreementSuffix: "Ferizy",
|
|
13903
13909
|
nextButton: "Continue",
|
|
13904
13910
|
cancelButton: "Cancel Booking",
|
|
13905
13911
|
previousButton: "Previous",
|
|
@@ -14080,6 +14086,7 @@ var CardBookingTicket = ({
|
|
|
14080
14086
|
reservationStep,
|
|
14081
14087
|
paymentStep,
|
|
14082
14088
|
onPriceDetailClick,
|
|
14089
|
+
onTermsAndConditionsClick,
|
|
14083
14090
|
onCancel,
|
|
14084
14091
|
onNext,
|
|
14085
14092
|
onPrevious,
|
|
@@ -14088,6 +14095,9 @@ var CardBookingTicket = ({
|
|
|
14088
14095
|
const styles = useStyles28();
|
|
14089
14096
|
const mergedLabels = { ...DEFAULT_LABELS27[language], ...labels };
|
|
14090
14097
|
const [cancelDialogOpen, setCancelDialogOpen] = useState(false);
|
|
14098
|
+
const handleTermsAndConditionsClick = () => {
|
|
14099
|
+
onTermsAndConditionsClick?.();
|
|
14100
|
+
};
|
|
14091
14101
|
return /* @__PURE__ */ jsx("div", { className: `${styles.container} ${className || ""}`, children: /* @__PURE__ */ jsxs("div", { className: styles.bookingDetail, children: [
|
|
14092
14102
|
/* @__PURE__ */ jsxs(Card, { className: styles.bookingDetailTop, children: [
|
|
14093
14103
|
/* @__PURE__ */ jsx(Subtitle1, { children: mergedLabels.bookingDetails }),
|
|
@@ -14197,14 +14207,25 @@ var CardBookingTicket = ({
|
|
|
14197
14207
|
Checkbox,
|
|
14198
14208
|
{
|
|
14199
14209
|
label: /* @__PURE__ */ jsxs(Body1, { children: [
|
|
14200
|
-
|
|
14210
|
+
mergedLabels.agreementPrefix,
|
|
14201
14211
|
" ",
|
|
14202
|
-
/* @__PURE__ */
|
|
14203
|
-
"
|
|
14204
|
-
|
|
14205
|
-
|
|
14212
|
+
/* @__PURE__ */ jsx(
|
|
14213
|
+
"button",
|
|
14214
|
+
{
|
|
14215
|
+
type: "button",
|
|
14216
|
+
onClick: handleTermsAndConditionsClick,
|
|
14217
|
+
style: {
|
|
14218
|
+
color: brandColors[80],
|
|
14219
|
+
background: "transparent",
|
|
14220
|
+
border: "none",
|
|
14221
|
+
padding: 0,
|
|
14222
|
+
cursor: "pointer"
|
|
14223
|
+
},
|
|
14224
|
+
children: mergedLabels.termsAndConditions
|
|
14225
|
+
}
|
|
14226
|
+
),
|
|
14206
14227
|
" ",
|
|
14207
|
-
|
|
14228
|
+
mergedLabels.agreementSuffix
|
|
14208
14229
|
] })
|
|
14209
14230
|
}
|
|
14210
14231
|
),
|