@asdp/ferryui 0.1.22-dev.9545 → 0.1.22-dev.9549

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
@@ -1112,7 +1112,7 @@ interface ModalSearchHarborProps {
1112
1112
  /**
1113
1113
  * Callback when removing from last searched
1114
1114
  */
1115
- onRemoveLastSearched: (harborId: HarborItem) => void;
1115
+ onRemoveLastSearched?: (harborId: HarborItem) => void;
1116
1116
  /**
1117
1117
  * Callback when clearing all last searched
1118
1118
  */
package/dist/index.d.ts CHANGED
@@ -1112,7 +1112,7 @@ interface ModalSearchHarborProps {
1112
1112
  /**
1113
1113
  * Callback when removing from last searched
1114
1114
  */
1115
- onRemoveLastSearched: (harborId: HarborItem) => void;
1115
+ onRemoveLastSearched?: (harborId: HarborItem) => void;
1116
1116
  /**
1117
1117
  * Callback when clearing all last searched
1118
1118
  */
package/dist/index.js CHANGED
@@ -7037,13 +7037,13 @@ var ModalSearchHarbor = ({
7037
7037
  harbor,
7038
7038
  onSelect: handleSelect,
7039
7039
  containerClassName: styles.historyItem,
7040
- trailingIcon: /* @__PURE__ */ jsxRuntime.jsx(
7040
+ trailingIcon: showButtonFavorite && /* @__PURE__ */ jsxRuntime.jsx(
7041
7041
  react.Icon,
7042
7042
  {
7043
- onClick: () => onRemoveLastSearched(harbor),
7044
- icon: "fluent:dismiss-24-regular",
7045
- fontSize: 20,
7046
- className: styles.cursorPointer
7043
+ icon: harbor.isFavorite ? "fluent:star-24-filled" : "fluent:star-24-regular",
7044
+ color: reactComponents.tokens.colorBrandBackground,
7045
+ className: styles.cursorPointer,
7046
+ onClick: () => onToggleFavorite(harbor)
7047
7047
  }
7048
7048
  ),
7049
7049
  showDivider: true
@@ -7059,6 +7059,15 @@ var ModalSearchHarbor = ({
7059
7059
  harbor,
7060
7060
  onSelect: handleSelect,
7061
7061
  containerClassName: styles.historyItem,
7062
+ trailingIcon: showButtonFavorite && /* @__PURE__ */ jsxRuntime.jsx(
7063
+ react.Icon,
7064
+ {
7065
+ icon: harbor.isFavorite ? "fluent:star-24-filled" : "fluent:star-24-regular",
7066
+ color: reactComponents.tokens.colorBrandBackground,
7067
+ className: styles.cursorPointer,
7068
+ onClick: () => onToggleFavorite(harbor)
7069
+ }
7070
+ ),
7062
7071
  showDivider: true
7063
7072
  },
7064
7073
  harbor.portId