sales-frontend-components 0.0.74 → 0.0.75
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
|
@@ -894,7 +894,7 @@ function Attachment({
|
|
|
894
894
|
const renderPhotoSingle = () => {
|
|
895
895
|
if (photos.length === 0) {
|
|
896
896
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$5("single-photo-item", "add-photo-item"), children: /* @__PURE__ */ jsxRuntime.jsxs("button", { className: cx$5("add-photo-button-single"), onClick: handleAddPhoto, children: [
|
|
897
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
897
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustCamera, {}),
|
|
898
898
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: buttonText || "\uC0AC\uC9C4 \uCCA8\uBD80\uD558\uAE30" })
|
|
899
899
|
] }) });
|
|
900
900
|
}
|
|
@@ -909,7 +909,7 @@ function Attachment({
|
|
|
909
909
|
if (photos.length < maxPhotos) {
|
|
910
910
|
gridItems.push(
|
|
911
911
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$5("photo-item", "add-photo-item"), children: /* @__PURE__ */ jsxRuntime.jsxs("button", { className: cx$5("add-photo-button"), onClick: handleAddPhoto, children: [
|
|
912
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
912
|
+
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustCamera, {}),
|
|
913
913
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: buttonText || "\uCCA8\uBD80\uD558\uAE30" }),
|
|
914
914
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: cx$5("photo-count"), children: [
|
|
915
915
|
"(",
|
|
@@ -2039,7 +2039,11 @@ const useCustomerSearch = (onSelect) => {
|
|
|
2039
2039
|
search,
|
|
2040
2040
|
onClear,
|
|
2041
2041
|
handleSelectItem,
|
|
2042
|
-
selectedCustomer
|
|
2042
|
+
selectedCustomer,
|
|
2043
|
+
setSearchInput,
|
|
2044
|
+
setCustomerList,
|
|
2045
|
+
setSearchKeyword,
|
|
2046
|
+
setIsOpen
|
|
2043
2047
|
};
|
|
2044
2048
|
};
|
|
2045
2049
|
|
|
@@ -2087,7 +2091,7 @@ const CustomerSearch = ({ onSelect }) => {
|
|
|
2087
2091
|
ref: triggerRef
|
|
2088
2092
|
}
|
|
2089
2093
|
) }) }),
|
|
2090
|
-
isOpen && /* @__PURE__ */ jsxRuntime.jsx(DropDown, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx("result-container"), children:
|
|
2094
|
+
isOpen && customerList.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(DropDown, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx("result-container"), children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.List, { children: customerList.map((customer) => /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.ListItem, { onClick: () => handleSelectItem(customer), selectable: true, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx("customer-item"), children: [
|
|
2091
2095
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx("name"), children: highlightOnSearchKeyword(customer.customerName || "", searchKeyword) }),
|
|
2092
2096
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx("details"), children: [
|
|
2093
2097
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: customer.birthDate }),
|