sales-frontend-components 0.0.171 → 0.0.173

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
@@ -1088,7 +1088,14 @@ const useCustomerSearch = (onSelect) => {
1088
1088
 
1089
1089
  const cx$j = classNames.bind(styles$2);
1090
1090
  const { InputBox: InputBox$3, Input: Input$3 } = salesFrontendDesignSystem.FormCore;
1091
- const CustomerSearch = ({ onSelectCustomer, onSearchClear, placeholder, rootProps, ...props }) => {
1091
+ const CustomerSearch = ({
1092
+ onSelectCustomer,
1093
+ onSearchClear,
1094
+ placeholder,
1095
+ rootProps,
1096
+ size = "large",
1097
+ ...props
1098
+ }) => {
1092
1099
  const {
1093
1100
  triggerRef,
1094
1101
  isOpen,
@@ -1107,18 +1114,27 @@ const CustomerSearch = ({ onSelectCustomer, onSearchClear, placeholder, rootProp
1107
1114
  onSearchClear?.();
1108
1115
  };
1109
1116
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$j("container"), children: [
1110
- /* @__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: handleClear, clearable: true, children: /* @__PURE__ */ jsxRuntime.jsx(
1111
- Input$3,
1117
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$j("search-bar"), children: /* @__PURE__ */ jsxRuntime.jsx(
1118
+ InputBox$3,
1112
1119
  {
1113
- ...props,
1114
- onChange: onSearchInputChange,
1115
- onKeyUp,
1116
- value: searchInput,
1117
- placeholder: placeholder || "\uACE0\uAC1D\uBA85\uC744 \uB450 \uAE00\uC790 \uC774\uC0C1 \uC785\uB825\uD574\uC8FC\uC138\uC694.",
1118
- size: "large",
1119
- ref: triggerRef
1120
+ ...rootProps,
1121
+ endElement: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconMainUiSearch, { Click: search, style: { width: "20px", height: "20px" } }),
1122
+ onClear: handleClear,
1123
+ clearable: true,
1124
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1125
+ Input$3,
1126
+ {
1127
+ ...props,
1128
+ onChange: onSearchInputChange,
1129
+ onKeyUp,
1130
+ value: searchInput,
1131
+ placeholder: placeholder || "\uACE0\uAC1D\uBA85\uC744 \uB450 \uAE00\uC790 \uC774\uC0C1 \uC785\uB825\uD574\uC8FC\uC138\uC694.",
1132
+ size,
1133
+ ref: triggerRef
1134
+ }
1135
+ )
1120
1136
  }
1121
- ) }) }),
1137
+ ) }),
1122
1138
  isOpen && customerList.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(DropDown, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$j("result-container"), children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.List, { children: customerList.map((customer, index) => /* @__PURE__ */ jsxRuntime.jsx(
1123
1139
  salesFrontendDesignSystem.ListItem,
1124
1140
  {
@@ -1870,6 +1886,7 @@ function useNxlOneModal({
1870
1886
  openNxlOneModal();
1871
1887
  }
1872
1888
  },
1889
+ openNxlOnePopup: open,
1873
1890
  closeNxlOneModal: closeModal,
1874
1891
  isNxlOneModalOpen: isOpen,
1875
1892
  NxlModalComponent: /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Root, { isOpen, onClose: closeModal, modalSize, children: [
@@ -3100,6 +3117,7 @@ const useJobVehicleSearch = () => {
3100
3117
  JobSearch: JobSearchComponent,
3101
3118
  VehicleSearch: VehicleSearchComponent,
3102
3119
  riskGrade,
3120
+ riskGradeCode: riskGradeData?.data?.riskGradeCode,
3103
3121
  hospitalizationGrade,
3104
3122
  resetJobVehicleSearch: reset
3105
3123
  };