@asdp/ferryui 0.1.22-dev.10391 → 0.1.22-dev.10403

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
@@ -3573,6 +3573,7 @@ declare const CardReview: React$1.FC<CardReviewProps>;
3573
3573
 
3574
3574
  interface ReviewPassengerItem {
3575
3575
  id: string | number;
3576
+ titleName?: string;
3576
3577
  name: string;
3577
3578
  identityNumber: string;
3578
3579
  ageLabel: string;
package/dist/index.d.ts CHANGED
@@ -3573,6 +3573,7 @@ declare const CardReview: React$1.FC<CardReviewProps>;
3573
3573
 
3574
3574
  interface ReviewPassengerItem {
3575
3575
  id: string | number;
3576
+ titleName?: string;
3576
3577
  name: string;
3577
3578
  identityNumber: string;
3578
3579
  ageLabel: string;
package/dist/index.js CHANGED
@@ -292,6 +292,8 @@ var foundationColors = {
292
292
  "Foundation_Danger_error": "#FD3A3A"
293
293
  };
294
294
  var lightModeColors = {
295
+ "Neutral_Background_2_Hover": "#f0f0f0",
296
+ "Neutral_Background_3_Pressed": "#d6d6d6",
295
297
  "Neutral_Foreground_Disabled_Rest": "#bdbdbd",
296
298
  "Brand_Stroke_1_Rest": "#00B3BD"};
297
299
  var tokensV2_default = {
@@ -13995,7 +13997,14 @@ var useStyles28 = reactComponents.makeStyles({
13995
13997
  display: "flex",
13996
13998
  justifyContent: "space-between",
13997
13999
  alignItems: "center",
13998
- gap: "0.5em"
14000
+ gap: "0.5em",
14001
+ backgroundColor: lightModeColors.Neutral_Background_2_Hover,
14002
+ ...reactComponents.shorthands.padding(
14003
+ reactComponents.tokens.spacingHorizontalM,
14004
+ reactComponents.tokens.spacingHorizontalMNudge
14005
+ ),
14006
+ border: `${reactComponents.tokens.strokeWidthThin} solid ${lightModeColors.Neutral_Background_3_Pressed}`,
14007
+ borderRadius: reactComponents.tokens.borderRadiusXLarge
13999
14008
  },
14000
14009
  ticketTime: {
14001
14010
  display: "flex",
@@ -14135,7 +14144,7 @@ var CardBookingTicket = ({
14135
14144
  {
14136
14145
  style: {
14137
14146
  height: "1px",
14138
- backgroundColor: reactComponents.tokens.colorNeutralStroke2,
14147
+ backgroundColor: "tokens.colorNeutralStroke2",
14139
14148
  margin: "1rem 0"
14140
14149
  }
14141
14150
  }
@@ -14167,22 +14176,47 @@ var CardBookingTicket = ({
14167
14176
  /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Card, { className: styles.bookingDetailBottom, children: [
14168
14177
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.totalPrice, children: [
14169
14178
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { children: mergedLabels.totalPriceLabel }),
14170
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", gap: reactComponents.tokens.spacingHorizontalL, alignItems: "center" }, children: [
14171
- /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Title3, { className: styles.priceText, children: [
14172
- mergedLabels.currencySymbol,
14173
- " ",
14174
- totalPrice
14175
- ] }),
14176
- /* @__PURE__ */ jsxRuntime.jsx(
14177
- react.Icon,
14178
- {
14179
- icon: "fluent:chevron-down-24-filled",
14180
- onClick: onPriceDetailClick,
14181
- style: { cursor: "pointer" }
14182
- }
14183
- )
14184
- ] })
14179
+ /* @__PURE__ */ jsxRuntime.jsxs(
14180
+ "div",
14181
+ {
14182
+ style: {
14183
+ display: "flex",
14184
+ gap: reactComponents.tokens.spacingHorizontalL,
14185
+ alignItems: "center"
14186
+ },
14187
+ children: [
14188
+ /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Title3, { className: styles.priceText, children: [
14189
+ mergedLabels.currencySymbol,
14190
+ " ",
14191
+ totalPrice
14192
+ ] }),
14193
+ /* @__PURE__ */ jsxRuntime.jsx(
14194
+ react.Icon,
14195
+ {
14196
+ icon: "fluent:chevron-down-24-filled",
14197
+ onClick: onPriceDetailClick,
14198
+ style: { cursor: "pointer" }
14199
+ }
14200
+ )
14201
+ ]
14202
+ }
14203
+ )
14185
14204
  ] }),
14205
+ reservationStep === "review" && /* @__PURE__ */ jsxRuntime.jsx(
14206
+ reactComponents.Checkbox,
14207
+ {
14208
+ label: /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Body1, { children: [
14209
+ "Saya menyetujui",
14210
+ " ",
14211
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { style: { color: brandColors[80] }, children: [
14212
+ " ",
14213
+ "Syarat & Ketentuan"
14214
+ ] }),
14215
+ " ",
14216
+ "ferizy"
14217
+ ] })
14218
+ }
14219
+ ),
14186
14220
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.gapButton, children: [
14187
14221
  !(paymentStep === "pay") && /* @__PURE__ */ jsxRuntime.jsx(
14188
14222
  reactComponents.Button,
@@ -15475,7 +15509,8 @@ var useStyles34 = reactComponents.makeStyles({
15475
15509
  boxShadow: "none",
15476
15510
  border: `${reactComponents.tokens.strokeWidthThin} solid ${reactComponents.tokens.colorNeutralStroke1}`,
15477
15511
  borderRadius: reactComponents.tokens.borderRadiusXLarge,
15478
- padding: `${reactComponents.tokens.spacingHorizontalL} ${reactComponents.tokens.spacingHorizontalXXL}`
15512
+ padding: `${reactComponents.tokens.spacingHorizontalL} ${reactComponents.tokens.spacingHorizontalXXL}`,
15513
+ zIndex: 10
15479
15514
  },
15480
15515
  titleRow: {
15481
15516
  display: "flex",
@@ -15562,9 +15597,14 @@ var CardReviewPassenger = ({
15562
15597
  ] }) }) }, index)) : passengers.map((passenger, index) => {
15563
15598
  const badgeConfig = getBadgeConfig(passenger.serviceClass);
15564
15599
  const passengerMeta = `${passenger.ageLabel} \xB7 ${mergedLabels.idNumber} ${passenger.identityNumber}`;
15600
+ const passengerTitle = passenger.titleName?.trim() || "Tuan";
15565
15601
  return /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Card, { className: styles.passengerCard, children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { nogutter: true, className: styles.passengerRow, children: [
15566
15602
  /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.passengerInfo, children: [
15567
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle2, { className: styles.passengerName, children: passenger.name }),
15603
+ /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Subtitle2, { className: styles.passengerName, children: [
15604
+ passengerTitle,
15605
+ " ",
15606
+ passenger.name
15607
+ ] }),
15568
15608
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.passengerMeta, children: passengerMeta })
15569
15609
  ] }) }),
15570
15610
  /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: "content", children: /* @__PURE__ */ jsxRuntime.jsxs(