@asdp/ferryui 0.1.22-dev.9698 → 0.1.22-dev.9700

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
@@ -238,6 +238,8 @@ var fontWeight = {
238
238
  var sharedColors = {
239
239
  "Shared_Cranberry_Primary": "#c50f1f",
240
240
  "Shared_Red_Primary": "#d13438",
241
+ "Shared_Orange_Shade_20": "#bc4b09",
242
+ "Shared_Orange_Tint_60": "#fff9f5",
241
243
  "Shared_Green_Primary": "#107c10"};
242
244
  var lightModeColors = {
243
245
  "Neutral_Foreground_Disabled_Rest": "#bdbdbd",
@@ -11849,6 +11851,25 @@ var useStyles25 = makeStyles({
11849
11851
  height: "32px",
11850
11852
  zIndex: 1,
11851
11853
  filter: "drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"
11854
+ },
11855
+ warningBanner: {
11856
+ display: "flex",
11857
+ alignItems: "center",
11858
+ gap: "0.75rem",
11859
+ backgroundColor: sharedColors.Shared_Orange_Tint_60,
11860
+ border: `1px solid ${sharedColors.Shared_Orange_Shade_20}`,
11861
+ borderRadius: tokens.borderRadiusLarge,
11862
+ padding: "0.75rem 1rem",
11863
+ marginBottom: "1.5rem"
11864
+ },
11865
+ warningIcon: {
11866
+ color: sharedColors.Shared_Orange_Shade_20,
11867
+ flexShrink: 0,
11868
+ display: "flex"
11869
+ },
11870
+ warningText: {
11871
+ color: sharedColors.Shared_Orange_Shade_20,
11872
+ fontSize: tokens.fontSizeBase300
11852
11873
  }
11853
11874
  });
11854
11875
  var CardPassengerList = ({
@@ -11867,6 +11888,10 @@ var CardPassengerList = ({
11867
11888
  /* @__PURE__ */ jsx(Title3, { className: styles.headerTitle, children: displayTitle }),
11868
11889
  /* @__PURE__ */ jsx("div", { className: styles.headerLine })
11869
11890
  ] }),
11891
+ passengers.filter((p) => p.id).length !== passengers.length && /* @__PURE__ */ jsxs("div", { className: styles.warningBanner, children: [
11892
+ /* @__PURE__ */ jsx("div", { className: styles.warningIcon, children: /* @__PURE__ */ jsx(Icon, { icon: "fluent:warning-20-filled", width: 24, height: 24 }) }),
11893
+ /* @__PURE__ */ jsx("div", { className: styles.warningText, children: "Harap isi data penumpang dibawah ini untuk bisa melanjutkan pembelian tiket." })
11894
+ ] }),
11870
11895
  /* @__PURE__ */ jsx("div", { className: styles.passengerList, children: passengers.map((passenger, index) => {
11871
11896
  const badgeConfig = getBadgeConfig(passenger.serviceName);
11872
11897
  return /* @__PURE__ */ jsxs(
@@ -11884,7 +11909,7 @@ var CardPassengerList = ({
11884
11909
  },
11885
11910
  children: [
11886
11911
  /* @__PURE__ */ jsx("div", { className: styles.passengerInfo, children: /* @__PURE__ */ jsxs(Subtitle2, { className: styles.passengerText, children: [
11887
- passenger.name || `${mergedLabels.passengerPrefix} ${index + 1}`,
11912
+ passenger.fullName || `${mergedLabels.passengerPrefix} ${index + 1}`,
11888
11913
  " ",
11889
11914
  "(",
11890
11915
  passenger.passengerType,
@@ -11916,7 +11941,7 @@ var CardPassengerList = ({
11916
11941
  /* @__PURE__ */ jsx(
11917
11942
  Icon,
11918
11943
  {
11919
- icon: passenger.name && passenger.serviceName ? "fluent:edit-24-regular" : "fluent:chevron-right-24-regular",
11944
+ icon: passenger.id && passenger.serviceName ? "fluent:edit-24-regular" : "fluent:chevron-right-24-regular",
11920
11945
  width: 20,
11921
11946
  height: 20
11922
11947
  }