@asdp/ferryui 0.1.22-dev.10153 → 0.1.22-dev.10161

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.js CHANGED
@@ -12058,7 +12058,10 @@ var useStyles25 = reactComponents.makeStyles({
12058
12058
  },
12059
12059
  passengerList: {
12060
12060
  display: "flex",
12061
- flexDirection: "column"
12061
+ flexDirection: "column",
12062
+ maxHeight: "400px",
12063
+ overflowY: "auto",
12064
+ paddingRight: "0.5rem"
12062
12065
  },
12063
12066
  passengerItem: {
12064
12067
  display: "flex",
@@ -12369,7 +12372,7 @@ var DEFAULT_LABELS26 = {
12369
12372
  entityTypeIndividual: "Perseorangan",
12370
12373
  selectCompanyPlaceholder: "Pilih Nama Perusahaan",
12371
12374
  inputSenderNamePlaceholder: "Masukkan Nama Pengirim",
12372
- estimatedWeightLabel: "Data Estimasi Berat Muatan dan Kendaraan (Ton)",
12375
+ estimatedWeightLabel: "Estimasi Berat Muatan dan Kendaraan (Ton)",
12373
12376
  inputNumberPlaceholder: "Masukkan Angka",
12374
12377
  originCityLabel: "Kota Asal",
12375
12378
  destinationCityLabel: "Kota Tujuan",
@@ -12396,7 +12399,7 @@ var DEFAULT_LABELS26 = {
12396
12399
  cargoQuantityLabel: "Jumlah Muatan",
12397
12400
  priceLabel: "Harga",
12398
12401
  industryTypeLabel: "Data Jenis Industri",
12399
- industryTypeHelperText: 'Apabila jenis industri belum tersedia dapat memilih "Lainnya" dan silakan isi jenis muatannya.',
12402
+ industryTypeHelperText: 'Apabila jenis industri belum tersedia dapat memilih "Lainnya" dan silakan isi jenis industrinya.',
12400
12403
  cargoCategoryLabel: "Kategori Muatan",
12401
12404
  cargoCategoryHelperTextPrefix: "Pahami definisi, jenis dan contoh kategori muatan",
12402
12405
  deleteCargoButton: "Hapus Muatan",
@@ -13251,7 +13254,7 @@ var CardVehicleOwnerForm = ({
13251
13254
  `owners.${index}.cargo.${cargoIndex}.quantity`
13252
13255
  ) || 0;
13253
13256
  const currentQty = Number(currentVal);
13254
- if (currentQty > 0) {
13257
+ if (currentQty > 1) {
13255
13258
  const newVal = currentQty - 1;
13256
13259
  setValue(
13257
13260
  `owners.${index}.cargo.${cargoIndex}.quantity`,
@@ -13281,6 +13284,7 @@ var CardVehicleOwnerForm = ({
13281
13284
  {
13282
13285
  ...field,
13283
13286
  min: 1,
13287
+ step: "1",
13284
13288
  type: "number",
13285
13289
  style: {
13286
13290
  border: "none",
@@ -13292,6 +13296,21 @@ var CardVehicleOwnerForm = ({
13292
13296
  fontSize: reactComponents.tokens.fontSizeBase400,
13293
13297
  fontFamily: reactComponents.tokens.fontFamilyBase
13294
13298
  },
13299
+ onKeyDown: (e) => {
13300
+ if (["e", "E", "+", "-", ".", ","].includes(
13301
+ e.key
13302
+ )) {
13303
+ e.preventDefault();
13304
+ }
13305
+ },
13306
+ onPaste: (e) => {
13307
+ const paste = e.clipboardData.getData(
13308
+ "text"
13309
+ );
13310
+ if (!/^\d+$/.test(paste)) {
13311
+ e.preventDefault();
13312
+ }
13313
+ },
13295
13314
  onWheel: (e) => e.target.blur(),
13296
13315
  onChange: (e) => {
13297
13316
  const newVal = Number(
@@ -13308,7 +13327,7 @@ var CardVehicleOwnerForm = ({
13308
13327
  ),
13309
13328
  rules: {
13310
13329
  required: true,
13311
- min: 1
13330
+ validate: (val) => Number(val) > 0
13312
13331
  }
13313
13332
  }
13314
13333
  ) }),
@@ -13779,10 +13798,20 @@ var CardBookingTicket = ({
13779
13798
  alt: "asdp"
13780
13799
  }
13781
13800
  ),
13782
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.25rem" }, children: [
13783
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { children: shipName }),
13784
- serviceTitle && /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption2, { style: { color: reactComponents.tokens.colorNeutralForeground3 }, children: serviceTitle })
13785
- ] })
13801
+ /* @__PURE__ */ jsxRuntime.jsxs(
13802
+ "div",
13803
+ {
13804
+ style: {
13805
+ display: "flex",
13806
+ flexDirection: "column",
13807
+ gap: "0.25rem"
13808
+ },
13809
+ children: [
13810
+ /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { children: shipName }),
13811
+ serviceTitle && /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption2, { style: { color: reactComponents.tokens.colorNeutralForeground3 }, children: serviceTitle })
13812
+ ]
13813
+ }
13814
+ )
13786
13815
  ] }),
13787
13816
  /* @__PURE__ */ jsxRuntime.jsx(
13788
13817
  reactComponents.Badge,
@@ -13811,11 +13840,7 @@ var CardBookingTicket = ({
13811
13840
  /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.ticketInfo, children: [
13812
13841
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.ticketTime, children: [
13813
13842
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption2, { children: departureDay }),
13814
- /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Body1Stronger, { children: [
13815
- departureTime,
13816
- " ",
13817
- mergedLabels.timezoneLabel
13818
- ] }),
13843
+ /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1Stronger, { children: departureTime }),
13819
13844
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption2, { children: departureLocation })
13820
13845
  ] }),
13821
13846
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.ticketDuration, children: [
@@ -13828,11 +13853,7 @@ var CardBookingTicket = ({
13828
13853
  ] }),
13829
13854
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.ticketTime, children: [
13830
13855
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption2, { children: arrivalDay }),
13831
- /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Body1Stronger, { children: [
13832
- arrivalTime,
13833
- " ",
13834
- mergedLabels.timezoneLabel
13835
- ] }),
13856
+ /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1Stronger, { children: arrivalTime }),
13836
13857
  /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption2, { children: arrivalLocation })
13837
13858
  ] })
13838
13859
  ] }) }),