sales-frontend-components 0.0.108 → 0.0.109

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.cjs.js CHANGED
@@ -1081,7 +1081,7 @@ const highlightOnSearchKeyword = (originalText, targetString) => {
1081
1081
  return replacedText;
1082
1082
  };
1083
1083
  const { InputBox: InputBox$3, Input: Input$3 } = salesFrontendDesignSystem.FormCore;
1084
- const CustomerSearch = ({ onSelect }) => {
1084
+ const CustomerSearch = ({ onSelectCustomer, placeholder, rootProps, ...props }) => {
1085
1085
  const {
1086
1086
  triggerRef,
1087
1087
  isOpen,
@@ -1094,15 +1094,16 @@ const CustomerSearch = ({ onSelect }) => {
1094
1094
  search,
1095
1095
  onClear,
1096
1096
  handleSelectItem
1097
- } = useCustomerSearch(onSelect);
1097
+ } = useCustomerSearch(onSelectCustomer);
1098
1098
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$j("container"), children: [
1099
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$j("search-bar"), children: /* @__PURE__ */ jsxRuntime.jsx(InputBox$3, { endElement: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconMainUiSearch, { onClick: search }), onClear, clearable: true, children: /* @__PURE__ */ jsxRuntime.jsx(
1099
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$j("search-bar"), children: /* @__PURE__ */ jsxRuntime.jsx(InputBox$3, { ...rootProps, endElement: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconMainUiSearch, { onClick: search }), onClear, clearable: true, children: /* @__PURE__ */ jsxRuntime.jsx(
1100
1100
  Input$3,
1101
1101
  {
1102
+ ...props,
1102
1103
  onChange: onSearchInputChange,
1103
1104
  onKeyUp,
1104
1105
  value: searchInput,
1105
- placeholder: "\uACE0\uAC1D\uBA85\uC744 \uB450 \uAE00\uC790 \uC774\uC0C1 \uC785\uB825\uD574\uC8FC\uC138\uC694.",
1106
+ placeholder: placeholder || "\uACE0\uAC1D\uBA85\uC744 \uB450 \uAE00\uC790 \uC774\uC0C1 \uC785\uB825\uD574\uC8FC\uC138\uC694.",
1106
1107
  size: "large",
1107
1108
  ref: triggerRef
1108
1109
  }