@asdp/ferryui 0.1.22-dev.9823 → 0.1.22-dev.9831

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
@@ -1619,11 +1619,7 @@ var CardTicket = ({
1619
1619
  ] }),
1620
1620
  /* @__PURE__ */ jsxs("div", { className: styles.ticketTime, children: [
1621
1621
  /* @__PURE__ */ jsx(Caption1, { children: departureItem?.arrivedDay }),
1622
- /* @__PURE__ */ jsxs(Title2, { children: [
1623
- departureItem?.arrivedTime,
1624
- " ",
1625
- mergedLabels.timezoneLabel
1626
- ] }),
1622
+ /* @__PURE__ */ jsx(Title2, { children: departureItem?.arrivedTime }),
1627
1623
  /* @__PURE__ */ jsx(Caption1, { children: routeItem?.portTo + ", " + routeItem?.branchTo })
1628
1624
  ] })
1629
1625
  ] }) }),
@@ -5466,7 +5462,7 @@ var DEFAULT_LABELS8 = {
5466
5462
  toLabel: "Ke",
5467
5463
  departureDateLabel: "Tanggal Berangkat",
5468
5464
  returnDateLabel: "Tanggal Pulang",
5469
- serviceClassLabel: "Kelas Layanan",
5465
+ serviceClassLabel: "Jenis Layanan",
5470
5466
  typeOfServiceLabel: "Jenis Penumpang",
5471
5467
  passengerLabel: "Penumpang",
5472
5468
  roundTripLabel: "Pulang Pergi",
@@ -5475,7 +5471,7 @@ var DEFAULT_LABELS8 = {
5475
5471
  placeholderDestinationPort: "Pilih Pelabuhan Tujuan",
5476
5472
  placeholderDepartureDate: "Pilih Tanggal Keberangkatan",
5477
5473
  placeholderReturnDate: "Pilih Tanggal Kepulangan",
5478
- placeholderTypeClass: "Pilih Kelas Layanan",
5474
+ placeholderTypeClass: "Pilih Jenis Layanan",
5479
5475
  placeholderTypeService: "Pilih Jenis Penumpang",
5480
5476
  placeholderPassenger: "Pilih Jumlah Penumpang",
5481
5477
  errorOriginRequired: "Pelabuhan asal wajib diisi",
@@ -5494,7 +5490,7 @@ var DEFAULT_LABELS8 = {
5494
5490
  toLabel: "To",
5495
5491
  departureDateLabel: "Departure Date",
5496
5492
  returnDateLabel: "Return Date",
5497
- serviceClassLabel: "Service Class",
5493
+ serviceClassLabel: "Service Type",
5498
5494
  typeOfServiceLabel: "Type Of Passenger",
5499
5495
  passengerLabel: "Passenger",
5500
5496
  roundTripLabel: "Round Trip",
@@ -5503,7 +5499,7 @@ var DEFAULT_LABELS8 = {
5503
5499
  placeholderDestinationPort: "Select Destination Port",
5504
5500
  placeholderDepartureDate: "Select Departure Date",
5505
5501
  placeholderReturnDate: "Select Return Date",
5506
- placeholderTypeClass: "Select Service Class",
5502
+ placeholderTypeClass: "Select Service Type",
5507
5503
  placeholderTypeService: "Select Service Type",
5508
5504
  placeholderPassenger: "Select Number of Passengers",
5509
5505
  errorOriginRequired: "Origin port is required",
@@ -6171,7 +6167,7 @@ var DEFAULT_LABELS9 = {
6171
6167
  originHarbor: "Pelabuhan Keberangkatan",
6172
6168
  destinationHarbor: "Pelabuhan Tujuan",
6173
6169
  departureDate: "Tanggal Keberangkatan",
6174
- serviceClass: "Kelas Layanan",
6170
+ serviceClass: "Jenis Layanan",
6175
6171
  typeOfService: "Jenis Penumpang",
6176
6172
  totalPassengers: "Jumlah Penumpang",
6177
6173
  changeSearchButton: "Ganti Pencarian",
@@ -6181,7 +6177,7 @@ var DEFAULT_LABELS9 = {
6181
6177
  originHarbor: "Departure Port",
6182
6178
  destinationHarbor: "Destination Port",
6183
6179
  departureDate: "Departure Date",
6184
- serviceClass: "Service Class",
6180
+ serviceClass: "Service Type",
6185
6181
  typeOfService: "Type Of Passenger",
6186
6182
  totalPassengers: "Total Passengers",
6187
6183
  changeSearchButton: "Change Search",
@@ -7553,22 +7549,22 @@ var ModalSelectDate = ({
7553
7549
  // src/components/ModalService/ModalService.constants.ts
7554
7550
  var DEFAULT_LABELS13 = {
7555
7551
  id: {
7556
- title: "Pilih Kelas Layanan",
7552
+ title: "Pilih Jenis Layanan",
7557
7553
  loading: "Memuat...",
7558
7554
  error: "Gagal memuat layanan",
7559
7555
  selectAll: "Pilih Semua",
7560
7556
  saveButton: "Simpan",
7561
7557
  closeAriaLabel: "Tutup",
7562
- emptyContent: "Kelas Layanan"
7558
+ emptyContent: "Jenis Layanan"
7563
7559
  },
7564
7560
  en: {
7565
- title: "Select Service Class",
7561
+ title: "Select Service Type",
7566
7562
  loading: "Loading...",
7567
7563
  error: "Error loading services",
7568
7564
  selectAll: "Select All",
7569
7565
  saveButton: "Save",
7570
7566
  closeAriaLabel: "Close",
7571
- emptyContent: "Service Class"
7567
+ emptyContent: "Service Type"
7572
7568
  }
7573
7569
  };
7574
7570
  var useStyles14 = makeStyles({
@@ -9037,7 +9033,7 @@ var SortMenu = ({
9037
9033
  var DEFAULT_LABELS17 = {
9038
9034
  id: {
9039
9035
  title: "Filter dengan",
9040
- serviceTypeLabel: "Jenis Penumpang",
9036
+ serviceTypeLabel: "Jenis Layanan",
9041
9037
  departureTimeLabel: "Waktu pergi",
9042
9038
  arrivalTimeLabel: "Waktu tiba",
9043
9039
  priceLabel: "Harga",
@@ -9167,11 +9163,32 @@ var useStyles18 = makeStyles({
9167
9163
  },
9168
9164
  outlinePrimary: {
9169
9165
  color: tokens.colorBrandBackground,
9166
+ backgroundColor: "transparent",
9170
9167
  ...shorthands.border("1px", "solid", tokens.colorBrandBackground),
9171
9168
  ":hover": {
9172
- backgroundColor: tokens.colorBrandBackgroundHover,
9173
- ...shorthands.borderColor(tokens.colorBrandBackgroundHover),
9174
- color: tokens.colorNeutralForegroundOnBrand
9169
+ backgroundColor: "transparent",
9170
+ color: tokens.colorBrandBackground,
9171
+ ...shorthands.borderColor(tokens.colorBrandBackground)
9172
+ },
9173
+ ":active": {
9174
+ backgroundColor: "transparent",
9175
+ color: tokens.colorBrandBackground,
9176
+ ...shorthands.borderColor(tokens.colorBrandBackground)
9177
+ }
9178
+ },
9179
+ primaryNoHover: {
9180
+ backgroundColor: tokens.colorBrandBackground,
9181
+ color: tokens.colorNeutralForegroundOnBrand,
9182
+ ...shorthands.border("1px", "solid", tokens.colorBrandBackground),
9183
+ ":hover": {
9184
+ backgroundColor: tokens.colorBrandBackground,
9185
+ color: tokens.colorNeutralForegroundOnBrand,
9186
+ ...shorthands.borderColor(tokens.colorBrandBackground)
9187
+ },
9188
+ ":active": {
9189
+ backgroundColor: tokens.colorBrandBackground,
9190
+ color: tokens.colorNeutralForegroundOnBrand,
9191
+ ...shorthands.borderColor(tokens.colorBrandBackground)
9175
9192
  }
9176
9193
  },
9177
9194
  outlineDanger: {
@@ -9421,7 +9438,7 @@ var ModalFilterTicket = ({
9421
9438
  Button,
9422
9439
  {
9423
9440
  appearance: isSelected ? "primary" : "outline",
9424
- className: isSelected ? "" : styles.outlinePrimary,
9441
+ className: isSelected ? styles.primaryNoHover : styles.outlinePrimary,
9425
9442
  size: "large",
9426
9443
  onClick: () => handleServiceTypeToggle(service),
9427
9444
  style: { width: "100%" },
@@ -9745,8 +9762,8 @@ var DEFAULT_LABELS19 = {
9745
9762
  returnDateLabel: "Tanggal Pulang",
9746
9763
  returnDatePlaceholder: "Pilih Tanggal Pulang",
9747
9764
  returnDateRequired: "Tanggal Pulang wajib diisi",
9748
- serviceClassLabel: "Kelas Layanan",
9749
- serviceClassPlaceholder: "Pilih Kelas Layanan",
9765
+ serviceClassLabel: "Jenis Layanan",
9766
+ serviceClassPlaceholder: "Pilih Jenis Layanan",
9750
9767
  typeOfServiceLabel: "Jenis penumpang",
9751
9768
  typeOfServicePlaceholder: "Pilih Jenis penumpang",
9752
9769
  passengerLabel: "Penumpang",
@@ -9769,8 +9786,8 @@ var DEFAULT_LABELS19 = {
9769
9786
  returnDateLabel: "Return Date",
9770
9787
  returnDatePlaceholder: "Select Return Date",
9771
9788
  returnDateRequired: "Return date is required",
9772
- serviceClassLabel: "Service Class",
9773
- serviceClassPlaceholder: "Select Service Class",
9789
+ serviceClassLabel: "Service Type",
9790
+ serviceClassPlaceholder: "Select Service Type",
9774
9791
  typeOfServiceLabel: "Type of Passenger",
9775
9792
  typeOfServicePlaceholder: "Select Type of Passenger",
9776
9793
  passengerLabel: "Passenger",
@@ -10715,7 +10732,6 @@ var ModalListPassenger = ({
10715
10732
  placeholder: mergedLabels.searchPlaceholder,
10716
10733
  value: searchQuery,
10717
10734
  onChange: (_, data) => {
10718
- console.log(155, data);
10719
10735
  onSearchChange(data.value);
10720
10736
  },
10721
10737
  size: "large"
@@ -10734,12 +10750,6 @@ var ModalListPassenger = ({
10734
10750
  const isDifferentAge = passenger.ageId !== passengerAgeId;
10735
10751
  const isExcludedFromSearch = searchQuery ? !passenger.fullName.toLowerCase().includes(searchQuery.toLowerCase()) : false;
10736
10752
  const isDisabled = isDifferentAge || isExcludedFromSearch;
10737
- console.log(
10738
- 170,
10739
- isDisabled,
10740
- isDifferentAge,
10741
- isExcludedFromSearch
10742
- );
10743
10753
  return /* @__PURE__ */ jsxs(
10744
10754
  "div",
10745
10755
  {
@@ -11173,7 +11183,8 @@ var ModalPassengerForm = ({
11173
11183
  cityOptions,
11174
11184
  idTypes,
11175
11185
  ticketClassOptions,
11176
- onScanComplete
11186
+ onScanComplete,
11187
+ isLoading
11177
11188
  }) => {
11178
11189
  const styles = useStyles24();
11179
11190
  const mergedLabels = { ...DEFAULT_LABELS23[language], ...labels };
@@ -11190,7 +11201,7 @@ var ModalPassengerForm = ({
11190
11201
  const [capturedImage, setCapturedImage] = useState(null);
11191
11202
  const [stream, setStream] = useState(null);
11192
11203
  const videoRef = useRef(null);
11193
- const { control, handleSubmit, reset, watch, setValue, trigger } = useForm({
11204
+ const { control, handleSubmit, reset, watch, setValue, trigger, formState: { isValid } } = useForm({
11194
11205
  mode: "all",
11195
11206
  defaultValues
11196
11207
  });
@@ -11919,6 +11930,8 @@ var ModalPassengerForm = ({
11919
11930
  size: "large",
11920
11931
  shape: "circular",
11921
11932
  type: "submit",
11933
+ disabled: !isValid || isLoading,
11934
+ icon: isLoading ? /* @__PURE__ */ jsx(Spinner, { size: "tiny" }) : void 0,
11922
11935
  children: mergedLabels.saveButton
11923
11936
  }
11924
11937
  ),