sales-frontend-components 0.0.107 → 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 +5 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +5 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -236,7 +236,7 @@ declare function useBankStockSearch({ onSelect }: {
|
|
|
236
236
|
handleSelect: (item: CodeDto) => void;
|
|
237
237
|
};
|
|
238
238
|
|
|
239
|
-
declare const CustomerSearch: ({
|
|
239
|
+
declare const CustomerSearch: ({ onSelectCustomer, placeholder, rootProps, ...props }: CustomerSearchProps) => react_jsx_runtime.JSX.Element;
|
|
240
240
|
|
|
241
241
|
interface Props$3 {
|
|
242
242
|
isOpen: boolean;
|
package/dist/index.esm.js
CHANGED
|
@@ -1079,7 +1079,7 @@ const highlightOnSearchKeyword = (originalText, targetString) => {
|
|
|
1079
1079
|
return replacedText;
|
|
1080
1080
|
};
|
|
1081
1081
|
const { InputBox: InputBox$3, Input: Input$3 } = FormCore;
|
|
1082
|
-
const CustomerSearch = ({
|
|
1082
|
+
const CustomerSearch = ({ onSelectCustomer, placeholder, rootProps, ...props }) => {
|
|
1083
1083
|
const {
|
|
1084
1084
|
triggerRef,
|
|
1085
1085
|
isOpen,
|
|
@@ -1092,15 +1092,16 @@ const CustomerSearch = ({ onSelect }) => {
|
|
|
1092
1092
|
search,
|
|
1093
1093
|
onClear,
|
|
1094
1094
|
handleSelectItem
|
|
1095
|
-
} = useCustomerSearch(
|
|
1095
|
+
} = useCustomerSearch(onSelectCustomer);
|
|
1096
1096
|
return /* @__PURE__ */ jsxs("div", { className: cx$j("container"), children: [
|
|
1097
|
-
/* @__PURE__ */ jsx("div", { className: cx$j("search-bar"), children: /* @__PURE__ */ jsx(InputBox$3, { endElement: /* @__PURE__ */ jsx(IconMainUiSearch, { onClick: search }), onClear, clearable: true, children: /* @__PURE__ */ jsx(
|
|
1097
|
+
/* @__PURE__ */ jsx("div", { className: cx$j("search-bar"), children: /* @__PURE__ */ jsx(InputBox$3, { ...rootProps, endElement: /* @__PURE__ */ jsx(IconMainUiSearch, { onClick: search }), onClear, clearable: true, children: /* @__PURE__ */ jsx(
|
|
1098
1098
|
Input$3,
|
|
1099
1099
|
{
|
|
1100
|
+
...props,
|
|
1100
1101
|
onChange: onSearchInputChange,
|
|
1101
1102
|
onKeyUp,
|
|
1102
1103
|
value: searchInput,
|
|
1103
|
-
placeholder: "\uACE0\uAC1D\uBA85\uC744 \uB450 \uAE00\uC790 \uC774\uC0C1 \uC785\uB825\uD574\uC8FC\uC138\uC694.",
|
|
1104
|
+
placeholder: placeholder || "\uACE0\uAC1D\uBA85\uC744 \uB450 \uAE00\uC790 \uC774\uC0C1 \uC785\uB825\uD574\uC8FC\uC138\uC694.",
|
|
1104
1105
|
size: "large",
|
|
1105
1106
|
ref: triggerRef
|
|
1106
1107
|
}
|