@asdp/ferryui 0.1.22-dev.10384 → 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.mjs CHANGED
@@ -283,6 +283,8 @@ var foundationColors = {
283
283
  "Foundation_Danger_error": "#FD3A3A"
284
284
  };
285
285
  var lightModeColors = {
286
+ "Neutral_Background_2_Hover": "#f0f0f0",
287
+ "Neutral_Background_3_Pressed": "#d6d6d6",
286
288
  "Neutral_Foreground_Disabled_Rest": "#bdbdbd",
287
289
  "Brand_Stroke_1_Rest": "#00B3BD"};
288
290
  var tokensV2_default = {
@@ -13577,34 +13579,6 @@ var CardVehicleOwnerForm = ({
13577
13579
  )
13578
13580
  ] })
13579
13581
  ] }),
13580
- /* @__PURE__ */ jsx(Row, { children: /* @__PURE__ */ jsx(Col, { children: (owner.cargoItems?.length || 0) > 1 && /* @__PURE__ */ jsx(
13581
- Button,
13582
- {
13583
- disabled,
13584
- icon: /* @__PURE__ */ jsx(Icon, { icon: "fluent:delete-24-regular" }),
13585
- onClick: (e) => {
13586
- e.stopPropagation();
13587
- onDeleteCargo(owner.id, cargo.id);
13588
- },
13589
- onKeyDown: (e) => {
13590
- if (e.key === "Enter" || e.key === " ") {
13591
- e.stopPropagation();
13592
- onDeleteCargo(
13593
- owner.id,
13594
- cargo.id
13595
- );
13596
- }
13597
- },
13598
- size: "medium",
13599
- shape: "circular",
13600
- style: {
13601
- border: `1px solid ${tokens.colorPaletteRedForeground1}`,
13602
- color: tokens.colorPaletteRedForeground1,
13603
- width: "100%"
13604
- },
13605
- children: mergedLabels.deleteCargoButton
13606
- }
13607
- ) }) }),
13608
13582
  (() => {
13609
13583
  const type = watch(
13610
13584
  `owners.${index}.cargo.${cargoIndex}.loadType`
@@ -13837,7 +13811,35 @@ var CardVehicleOwnerForm = ({
13837
13811
  )
13838
13812
  ] })
13839
13813
  ] });
13840
- })()
13814
+ })(),
13815
+ /* @__PURE__ */ jsx(Row, { children: /* @__PURE__ */ jsx(Col, { children: (owner.cargoItems?.length || 0) > 1 && /* @__PURE__ */ jsx(
13816
+ Button,
13817
+ {
13818
+ disabled,
13819
+ icon: /* @__PURE__ */ jsx(Icon, { icon: "fluent:delete-24-regular" }),
13820
+ onClick: (e) => {
13821
+ e.stopPropagation();
13822
+ onDeleteCargo(owner.id, cargo.id);
13823
+ },
13824
+ onKeyDown: (e) => {
13825
+ if (e.key === "Enter" || e.key === " ") {
13826
+ e.stopPropagation();
13827
+ onDeleteCargo(
13828
+ owner.id,
13829
+ cargo.id
13830
+ );
13831
+ }
13832
+ },
13833
+ size: "medium",
13834
+ shape: "circular",
13835
+ style: {
13836
+ border: `1px solid ${tokens.colorPaletteRedForeground1}`,
13837
+ color: tokens.colorPaletteRedForeground1,
13838
+ width: "100%"
13839
+ },
13840
+ children: mergedLabels.deleteCargoButton
13841
+ }
13842
+ ) }) })
13841
13843
  ] }) })
13842
13844
  ]
13843
13845
  },
@@ -13986,7 +13988,14 @@ var useStyles28 = makeStyles({
13986
13988
  display: "flex",
13987
13989
  justifyContent: "space-between",
13988
13990
  alignItems: "center",
13989
- gap: "0.5em"
13991
+ gap: "0.5em",
13992
+ backgroundColor: lightModeColors.Neutral_Background_2_Hover,
13993
+ ...shorthands.padding(
13994
+ tokens.spacingHorizontalM,
13995
+ tokens.spacingHorizontalMNudge
13996
+ ),
13997
+ border: `${tokens.strokeWidthThin} solid ${lightModeColors.Neutral_Background_3_Pressed}`,
13998
+ borderRadius: tokens.borderRadiusXLarge
13990
13999
  },
13991
14000
  ticketTime: {
13992
14001
  display: "flex",
@@ -14126,7 +14135,7 @@ var CardBookingTicket = ({
14126
14135
  {
14127
14136
  style: {
14128
14137
  height: "1px",
14129
- backgroundColor: tokens.colorNeutralStroke2,
14138
+ backgroundColor: "tokens.colorNeutralStroke2",
14130
14139
  margin: "1rem 0"
14131
14140
  }
14132
14141
  }
@@ -14158,22 +14167,47 @@ var CardBookingTicket = ({
14158
14167
  /* @__PURE__ */ jsxs(Card, { className: styles.bookingDetailBottom, children: [
14159
14168
  /* @__PURE__ */ jsxs("div", { className: styles.totalPrice, children: [
14160
14169
  /* @__PURE__ */ jsx(Subtitle1, { children: mergedLabels.totalPriceLabel }),
14161
- /* @__PURE__ */ jsxs("div", { style: { display: "flex", gap: tokens.spacingHorizontalL, alignItems: "center" }, children: [
14162
- /* @__PURE__ */ jsxs(Title3, { className: styles.priceText, children: [
14163
- mergedLabels.currencySymbol,
14164
- " ",
14165
- totalPrice
14166
- ] }),
14167
- /* @__PURE__ */ jsx(
14168
- Icon,
14169
- {
14170
- icon: "fluent:chevron-down-24-filled",
14171
- onClick: onPriceDetailClick,
14172
- style: { cursor: "pointer" }
14173
- }
14174
- )
14175
- ] })
14170
+ /* @__PURE__ */ jsxs(
14171
+ "div",
14172
+ {
14173
+ style: {
14174
+ display: "flex",
14175
+ gap: tokens.spacingHorizontalL,
14176
+ alignItems: "center"
14177
+ },
14178
+ children: [
14179
+ /* @__PURE__ */ jsxs(Title3, { className: styles.priceText, children: [
14180
+ mergedLabels.currencySymbol,
14181
+ " ",
14182
+ totalPrice
14183
+ ] }),
14184
+ /* @__PURE__ */ jsx(
14185
+ Icon,
14186
+ {
14187
+ icon: "fluent:chevron-down-24-filled",
14188
+ onClick: onPriceDetailClick,
14189
+ style: { cursor: "pointer" }
14190
+ }
14191
+ )
14192
+ ]
14193
+ }
14194
+ )
14176
14195
  ] }),
14196
+ reservationStep === "review" && /* @__PURE__ */ jsx(
14197
+ Checkbox,
14198
+ {
14199
+ label: /* @__PURE__ */ jsxs(Body1, { children: [
14200
+ "Saya menyetujui",
14201
+ " ",
14202
+ /* @__PURE__ */ jsxs("span", { style: { color: brandColors[80] }, children: [
14203
+ " ",
14204
+ "Syarat & Ketentuan"
14205
+ ] }),
14206
+ " ",
14207
+ "ferizy"
14208
+ ] })
14209
+ }
14210
+ ),
14177
14211
  /* @__PURE__ */ jsxs("div", { className: styles.gapButton, children: [
14178
14212
  !(paymentStep === "pay") && /* @__PURE__ */ jsx(
14179
14213
  Button,
@@ -15466,7 +15500,8 @@ var useStyles34 = makeStyles({
15466
15500
  boxShadow: "none",
15467
15501
  border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,
15468
15502
  borderRadius: tokens.borderRadiusXLarge,
15469
- padding: `${tokens.spacingHorizontalL} ${tokens.spacingHorizontalXXL}`
15503
+ padding: `${tokens.spacingHorizontalL} ${tokens.spacingHorizontalXXL}`,
15504
+ zIndex: 10
15470
15505
  },
15471
15506
  titleRow: {
15472
15507
  display: "flex",
@@ -15553,9 +15588,14 @@ var CardReviewPassenger = ({
15553
15588
  ] }) }) }, index)) : passengers.map((passenger, index) => {
15554
15589
  const badgeConfig = getBadgeConfig(passenger.serviceClass);
15555
15590
  const passengerMeta = `${passenger.ageLabel} \xB7 ${mergedLabels.idNumber} ${passenger.identityNumber}`;
15591
+ const passengerTitle = passenger.titleName?.trim() || "Tuan";
15556
15592
  return /* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsx(Card, { className: styles.passengerCard, children: /* @__PURE__ */ jsxs(Row, { nogutter: true, className: styles.passengerRow, children: [
15557
15593
  /* @__PURE__ */ jsx(Col, { children: /* @__PURE__ */ jsxs("div", { className: styles.passengerInfo, children: [
15558
- /* @__PURE__ */ jsx(Subtitle2, { className: styles.passengerName, children: passenger.name }),
15594
+ /* @__PURE__ */ jsxs(Subtitle2, { className: styles.passengerName, children: [
15595
+ passengerTitle,
15596
+ " ",
15597
+ passenger.name
15598
+ ] }),
15559
15599
  /* @__PURE__ */ jsx(Body1, { className: styles.passengerMeta, children: passengerMeta })
15560
15600
  ] }) }),
15561
15601
  /* @__PURE__ */ jsx(Col, { xs: "content", children: /* @__PURE__ */ jsxs(