@asdp/ferryui 0.1.22-dev.9417 → 0.1.22-dev.9462

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
@@ -1316,6 +1316,10 @@ interface ServiceItem {
1316
1316
  * Color code for the service type
1317
1317
  */
1318
1318
  serviceTypeColor: string;
1319
+ /**
1320
+ * Short description of the service
1321
+ */
1322
+ serviceShortDescription: string;
1319
1323
  }
1320
1324
  interface ModalServiceLabels {
1321
1325
  title: string;
package/dist/index.d.ts CHANGED
@@ -1316,6 +1316,10 @@ interface ServiceItem {
1316
1316
  * Color code for the service type
1317
1317
  */
1318
1318
  serviceTypeColor: string;
1319
+ /**
1320
+ * Short description of the service
1321
+ */
1322
+ serviceShortDescription: string;
1319
1323
  }
1320
1324
  interface ModalServiceLabels {
1321
1325
  title: string;
package/dist/index.js CHANGED
@@ -6692,14 +6692,26 @@ var useStyles12 = reactComponents.makeStyles({
6692
6692
  display: "flex",
6693
6693
  gap: "1rem",
6694
6694
  marginBottom: "1rem",
6695
- flexWrap: "wrap",
6696
- marginTop: "1rem"
6695
+ flexWrap: "nowrap",
6696
+ marginTop: "1rem",
6697
+ overflowX: "auto",
6698
+ width: "100%",
6699
+ paddingBottom: "8px",
6700
+ paddingTop: "4px",
6701
+ alignItems: "center",
6702
+ flexShrink: 0,
6703
+ "&::-webkit-scrollbar": {
6704
+ display: "none"
6705
+ },
6706
+ msOverflowStyle: "none",
6707
+ scrollbarWidth: "none"
6697
6708
  },
6698
6709
  circularButton: {
6699
6710
  borderRadius: reactComponents.tokens.borderRadius3XLarge,
6700
6711
  border: `1px solid ${reactComponents.tokens.colorBrandBackground}`,
6701
6712
  backgroundColor: brandColors["140"],
6702
- gap: "5px"
6713
+ gap: "5px",
6714
+ flexShrink: 0
6703
6715
  },
6704
6716
  buttonContent: {
6705
6717
  display: "flex",
@@ -6960,7 +6972,8 @@ var ModalSearchHarbor = ({
6960
6972
  }
6961
6973
  )
6962
6974
  ] }),
6963
- favoriteHarbors.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.buttonContainer, children: favoriteHarbors.map((harbor) => /* @__PURE__ */ jsxRuntime.jsxs(
6975
+ favoriteHarbors.length > 0 && //Make Favorite scroll to vertical
6976
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.buttonContainer, children: favoriteHarbors.map((harbor) => /* @__PURE__ */ jsxRuntime.jsxs(
6964
6977
  reactComponents.Button,
6965
6978
  {
6966
6979
  onClick: () => handleSelect(harbor),
@@ -7497,7 +7510,7 @@ var useStyles14 = reactComponents.makeStyles({
7497
7510
  display: "flex",
7498
7511
  flexDirection: "column",
7499
7512
  gap: "12px",
7500
- // maxHeight: "400px",
7513
+ maxHeight: "700px",
7501
7514
  overflowY: "auto",
7502
7515
  padding: "2px"
7503
7516
  },
@@ -7694,54 +7707,56 @@ var ModalService = ({
7694
7707
  actionButton: reloadButton,
7695
7708
  imageSrc: emptyImageSrc
7696
7709
  }
7697
- ) : /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.serviceList, children: [
7698
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.headerRow, children: /* @__PURE__ */ jsxRuntime.jsx(
7699
- reactComponents.Checkbox,
7700
- {
7701
- label: mergedLabels.selectAll,
7702
- checked: selectedServices.length === services.length,
7703
- onChange: handleToggleAll
7704
- }
7705
- ) }),
7706
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, {}),
7707
- services.map((service) => /* @__PURE__ */ jsxRuntime.jsxs(
7708
- "div",
7709
- {
7710
- className: styles.serviceItem,
7711
- onClick: () => handleToggleService(service.serviceTypeId),
7712
- children: [
7713
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.serviceContent, children: [
7714
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.serviceName, children: service.serviceTypeName }),
7715
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { alignSelf: "flex-start" }, children: /* @__PURE__ */ jsxRuntime.jsx(
7716
- reactComponents.Badge,
7710
+ ) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7711
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.serviceList, children: [
7712
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.headerRow, children: /* @__PURE__ */ jsxRuntime.jsx(
7713
+ reactComponents.Checkbox,
7714
+ {
7715
+ label: mergedLabels.selectAll,
7716
+ checked: selectedServices.length === services.length,
7717
+ onChange: handleToggleAll
7718
+ }
7719
+ ) }),
7720
+ /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, {}),
7721
+ services.map((service) => /* @__PURE__ */ jsxRuntime.jsxs(
7722
+ "div",
7723
+ {
7724
+ className: styles.serviceItem,
7725
+ onClick: () => handleToggleService(service.serviceTypeId),
7726
+ children: [
7727
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.serviceContent, children: [
7728
+ /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.serviceName, children: service.serviceShortDescription }),
7729
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { alignSelf: "flex-start" }, children: /* @__PURE__ */ jsxRuntime.jsx(
7730
+ reactComponents.Badge,
7731
+ {
7732
+ appearance: "ghost",
7733
+ style: {
7734
+ backgroundColor: service.serviceTypeColor,
7735
+ color: "#ffffff",
7736
+ border: "none",
7737
+ padding: "4px 10px",
7738
+ height: "auto",
7739
+ borderRadius: "100px"
7740
+ },
7741
+ children: service.serviceTypeName
7742
+ }
7743
+ ) }),
7744
+ /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption1, { className: styles.serviceDescription, children: service.serviceDescription })
7745
+ ] }),
7746
+ /* @__PURE__ */ jsxRuntime.jsx(
7747
+ reactComponents.Checkbox,
7717
7748
  {
7718
- appearance: "ghost",
7719
- style: {
7720
- backgroundColor: service.serviceTypeColor,
7721
- color: "#ffffff",
7722
- border: "none",
7723
- padding: "4px 10px",
7724
- height: "auto",
7725
- borderRadius: "100px"
7726
- },
7727
- children: service.serviceTypeCode
7749
+ checked: selectedServices.includes(service.serviceTypeId),
7750
+ onChange: () => handleToggleService(service.serviceTypeId),
7751
+ onClick: (e) => e.stopPropagation()
7728
7752
  }
7729
- ) }),
7730
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Caption1, { className: styles.serviceDescription, children: service.serviceDescription })
7731
- ] }),
7732
- /* @__PURE__ */ jsxRuntime.jsx(
7733
- reactComponents.Checkbox,
7734
- {
7735
- checked: selectedServices.includes(service.serviceTypeId),
7736
- onChange: () => handleToggleService(service.serviceTypeId),
7737
- onClick: (e) => e.stopPropagation()
7738
- }
7739
- )
7740
- ]
7741
- },
7742
- service.serviceTypeId
7743
- )),
7744
- /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, {}),
7753
+ )
7754
+ ]
7755
+ },
7756
+ service.serviceTypeId
7757
+ )),
7758
+ /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, {})
7759
+ ] }),
7745
7760
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.footer, children: /* @__PURE__ */ jsxRuntime.jsx(
7746
7761
  reactComponents.Button,
7747
7762
  {
@@ -7753,7 +7768,7 @@ var ModalService = ({
7753
7768
  children: mergedLabels.saveButton
7754
7769
  }
7755
7770
  ) })
7756
- ] }) }) })
7771
+ ] }) })
7757
7772
  ] }) }) });
7758
7773
  };
7759
7774