@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 CHANGED
@@ -3145,6 +3145,9 @@ interface CardBookingTicketLabels {
3145
3145
  routeTitle: string;
3146
3146
  estimationPrefix: string;
3147
3147
  totalPriceLabel: string;
3148
+ agreementPrefix: string;
3149
+ termsAndConditions: string;
3150
+ agreementSuffix: string;
3148
3151
  nextButton: string;
3149
3152
  cancelButton: string;
3150
3153
  previousButton: string;
@@ -3235,6 +3238,10 @@ interface CardBookingTicketProps {
3235
3238
  * Callback for price detail click
3236
3239
  */
3237
3240
  onPriceDetailClick: () => void;
3241
+ /**
3242
+ * Optional click handler for Terms & Conditions text inside the review checkbox
3243
+ */
3244
+ onTermsAndConditionsClick?: () => void;
3238
3245
  onCancel: () => void;
3239
3246
  /**
3240
3247
  * Callback for Next button (Lanjutkan / Lihat Pemesanan)
package/dist/index.d.ts CHANGED
@@ -3145,6 +3145,9 @@ interface CardBookingTicketLabels {
3145
3145
  routeTitle: string;
3146
3146
  estimationPrefix: string;
3147
3147
  totalPriceLabel: string;
3148
+ agreementPrefix: string;
3149
+ termsAndConditions: string;
3150
+ agreementSuffix: string;
3148
3151
  nextButton: string;
3149
3152
  cancelButton: string;
3150
3153
  previousButton: string;
@@ -3235,6 +3238,10 @@ interface CardBookingTicketProps {
3235
3238
  * Callback for price detail click
3236
3239
  */
3237
3240
  onPriceDetailClick: () => void;
3241
+ /**
3242
+ * Optional click handler for Terms & Conditions text inside the review checkbox
3243
+ */
3244
+ onTermsAndConditionsClick?: () => void;
3238
3245
  onCancel: () => void;
3239
3246
  /**
3240
3247
  * Callback for Next button (Lanjutkan / Lihat Pemesanan)
package/dist/index.js CHANGED
@@ -13892,6 +13892,9 @@ var DEFAULT_LABELS27 = {
13892
13892
  routeTitle: "Rute Perjalanan",
13893
13893
  estimationPrefix: "Estimasi",
13894
13894
  totalPriceLabel: "Total Harga",
13895
+ agreementPrefix: "Saya menyetujui",
13896
+ termsAndConditions: "Syarat & Ketentuan",
13897
+ agreementSuffix: "Ferizy",
13895
13898
  nextButton: "Lanjutkan",
13896
13899
  cancelButton: "Batalkan Pesanan",
13897
13900
  previousButton: "Sebelumnya",
@@ -13909,6 +13912,9 @@ var DEFAULT_LABELS27 = {
13909
13912
  routeTitle: "Travel Route",
13910
13913
  estimationPrefix: "Estimation",
13911
13914
  totalPriceLabel: "Total Price",
13915
+ agreementPrefix: "I agree to the",
13916
+ termsAndConditions: "Terms & Conditions",
13917
+ agreementSuffix: "Ferizy",
13912
13918
  nextButton: "Continue",
13913
13919
  cancelButton: "Cancel Booking",
13914
13920
  previousButton: "Previous",
@@ -14089,6 +14095,7 @@ var CardBookingTicket = ({
14089
14095
  reservationStep,
14090
14096
  paymentStep,
14091
14097
  onPriceDetailClick,
14098
+ onTermsAndConditionsClick,
14092
14099
  onCancel,
14093
14100
  onNext,
14094
14101
  onPrevious,
@@ -14097,6 +14104,9 @@ var CardBookingTicket = ({
14097
14104
  const styles = useStyles28();
14098
14105
  const mergedLabels = { ...DEFAULT_LABELS27[language], ...labels };
14099
14106
  const [cancelDialogOpen, setCancelDialogOpen] = React.useState(false);
14107
+ const handleTermsAndConditionsClick = () => {
14108
+ onTermsAndConditionsClick?.();
14109
+ };
14100
14110
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${styles.container} ${className || ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.bookingDetail, children: [
14101
14111
  /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Card, { className: styles.bookingDetailTop, children: [
14102
14112
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { children: mergedLabels.bookingDetails }),
@@ -14206,14 +14216,25 @@ var CardBookingTicket = ({
14206
14216
  reactComponents.Checkbox,
14207
14217
  {
14208
14218
  label: /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Body1, { children: [
14209
- "Saya menyetujui",
14219
+ mergedLabels.agreementPrefix,
14210
14220
  " ",
14211
- /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { color: brandColors[80] }, children: [
14212
- " ",
14213
- "Syarat & Ketentuan"
14214
- ] }),
14221
+ /* @__PURE__ */ jsxRuntime.jsx(
14222
+ "button",
14223
+ {
14224
+ type: "button",
14225
+ onClick: handleTermsAndConditionsClick,
14226
+ style: {
14227
+ color: brandColors[80],
14228
+ background: "transparent",
14229
+ border: "none",
14230
+ padding: 0,
14231
+ cursor: "pointer"
14232
+ },
14233
+ children: mergedLabels.termsAndConditions
14234
+ }
14235
+ ),
14215
14236
  " ",
14216
- "ferizy"
14237
+ mergedLabels.agreementSuffix
14217
14238
  ] })
14218
14239
  }
14219
14240
  ),