sales-frontend-components 0.0.188 → 0.0.189

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.esm.js CHANGED
@@ -3012,53 +3012,64 @@ function useJobSearchModal() {
3012
3012
  openModal();
3013
3013
  };
3014
3014
  const closeModalWithCheck = () => {
3015
- setIsConfirmed(true);
3016
3015
  if (!selectedJob) {
3017
3016
  ModalUtils.alert("\uC9C1\uC885\uC744 \uC120\uD0DD\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uC9C1\uC885 \uC120\uD0DD \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.", "\uC9C1\uC885\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694.", {
3018
3017
  modalId: "job-search-alert-no-selected"
3019
3018
  });
3020
3019
  return;
3021
3020
  }
3021
+ setIsConfirmed(true);
3022
3022
  closeModal();
3023
3023
  };
3024
3024
  return {
3025
- JobSearchModal: /* @__PURE__ */ jsxs(Modal.Root, { isOpen, onClose: closeModal, modalSize: "xlarge", children: [
3026
- /* @__PURE__ */ jsx(Modal.Overlay, {}),
3027
- /* @__PURE__ */ jsxs(Modal.Content, { style: { height: "697px" }, children: [
3028
- /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uC9C1\uC885 \uAC80\uC0C9", showCloseButton: true }),
3029
- /* @__PURE__ */ jsx(Modal.Body, { raw: true, children: /* @__PURE__ */ jsx(
3030
- JobSearch,
3031
- {
3032
- firstCategory,
3033
- firstCategoryList,
3034
- secondCategoryList,
3035
- setFirstCategory,
3036
- secondCategory,
3037
- activeTab,
3038
- onTabChange,
3039
- searchTerm,
3040
- setSearchInput,
3041
- filteredJobs: filteredJobs || [],
3042
- onJobSelect: handleJobSelect,
3043
- searchInput,
3044
- setSearchTerm,
3045
- setSecondCategory,
3046
- isLoading
3047
- }
3048
- ) }),
3049
- /* @__PURE__ */ jsx(Modal.Footer, { children: /* @__PURE__ */ jsx(
3050
- Button,
3051
- {
3052
- variant: "primary",
3053
- size: "medium",
3054
- appearance: "filled",
3055
- width: "full",
3056
- onClick: closeModalWithCheck,
3057
- children: "\uD655\uC778"
3058
- }
3059
- ) })
3060
- ] })
3061
- ] }),
3025
+ JobSearchModal: /* @__PURE__ */ jsxs(
3026
+ Modal.Root,
3027
+ {
3028
+ isOpen,
3029
+ onClose: () => {
3030
+ closeModal();
3031
+ setIsConfirmed(false);
3032
+ },
3033
+ modalSize: "xlarge",
3034
+ children: [
3035
+ /* @__PURE__ */ jsx(Modal.Overlay, {}),
3036
+ /* @__PURE__ */ jsxs(Modal.Content, { style: { height: "697px" }, children: [
3037
+ /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uC9C1\uC885 \uAC80\uC0C9", showCloseButton: true }),
3038
+ /* @__PURE__ */ jsx(Modal.Body, { raw: true, children: /* @__PURE__ */ jsx(
3039
+ JobSearch,
3040
+ {
3041
+ firstCategory,
3042
+ firstCategoryList,
3043
+ secondCategoryList,
3044
+ setFirstCategory,
3045
+ secondCategory,
3046
+ activeTab,
3047
+ onTabChange,
3048
+ searchTerm,
3049
+ setSearchInput,
3050
+ filteredJobs: filteredJobs || [],
3051
+ onJobSelect: handleJobSelect,
3052
+ searchInput,
3053
+ setSearchTerm,
3054
+ setSecondCategory,
3055
+ isLoading
3056
+ }
3057
+ ) }),
3058
+ /* @__PURE__ */ jsx(Modal.Footer, { children: /* @__PURE__ */ jsx(
3059
+ Button,
3060
+ {
3061
+ variant: "primary",
3062
+ size: "medium",
3063
+ appearance: "filled",
3064
+ width: "full",
3065
+ onClick: closeModalWithCheck,
3066
+ children: "\uD655\uC778"
3067
+ }
3068
+ ) })
3069
+ ] })
3070
+ ]
3071
+ }
3072
+ ),
3062
3073
  JobSearchComponent: /* @__PURE__ */ jsx(
3063
3074
  JobSearch,
3064
3075
  {
@@ -3271,57 +3282,78 @@ function useJobVehicleSearchModal() {
3271
3282
  setIsConfirmed,
3272
3283
  openJobVehicleModal: openInitModal,
3273
3284
  closeJobVehicleModal: closeModal,
3274
- JobVehicleSearchModalComponent: /* @__PURE__ */ jsxs(Modal.Root, { isOpen, onClose: closeModal, modalSize: "xlarge", children: [
3275
- /* @__PURE__ */ jsx(Modal.Overlay, {}),
3276
- /* @__PURE__ */ jsxs(Modal.Content, { style: { height: "697px" }, children: [
3277
- /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uC9C1\uC885\xB7\uC6B4\uC804\uCC28\uC885 \uAC80\uC0C9", showCloseButton: true }),
3278
- /* @__PURE__ */ jsx(Modal.Body, { className: cx$5("job-vehicle-search-modal"), raw: true, children: /* @__PURE__ */ jsxs(Fragment, { children: [
3279
- /* @__PURE__ */ jsxs("div", { className: cx$5("left-panel"), children: [
3280
- /* @__PURE__ */ jsxs("div", { className: cx$5("card-section"), children: [
3281
- /* @__PURE__ */ jsxs(
3282
- "div",
3283
- {
3284
- className: cx$5("card-menu", { "card-selected": rightPanelView === "jobSearch" }),
3285
- onClick: () => setRightPanelView("jobSearch"),
3286
- children: [
3287
- /* @__PURE__ */ jsxs("div", { className: cx$5("card-title"), children: [
3288
- /* @__PURE__ */ jsx(IconIllustJob, { className: cx$5("card-icon") }),
3289
- /* @__PURE__ */ jsx("span", { className: cx$5("card-text", "typo-title5", "text-body"), children: "\uC9C1\uC885" }),
3290
- /* @__PURE__ */ jsx(IconSubUiArrowRight, {})
3291
- ] }),
3292
- /* @__PURE__ */ jsx("div", { className: "typo-body2 text-body_2", children: selectedJob ? selectedJob.occupationIndustryName : "\uBBF8\uC120\uD0DD" })
3293
- ]
3294
- }
3295
- ),
3296
- /* @__PURE__ */ jsxs(
3297
- "div",
3298
- {
3299
- className: cx$5("card-menu", { "card-selected": rightPanelView === "vehicleSelection" }),
3300
- onClick: () => setRightPanelView("vehicleSelection"),
3301
- children: [
3302
- /* @__PURE__ */ jsxs("div", { className: cx$5("card-title"), children: [
3303
- /* @__PURE__ */ jsx(IconIllustVehicle, { className: cx$5("card-icon") }),
3304
- /* @__PURE__ */ jsx("span", { className: cx$5("card-text", "typo-title5", "text-body"), children: "\uC6B4\uC804 \uC5EC\uBD80\xB7\uCC28\uC885" }),
3305
- /* @__PURE__ */ jsx(IconSubUiArrowRight, {})
3306
- ] }),
3307
- /* @__PURE__ */ jsxs("div", { className: "typo-body2 text-body_2", children: [
3308
- selectedVehicle?.integrationCodeValueName,
3309
- selectedVehicle?.integrationCodeValue || "\uBBF8\uC120\uD0DD"
3310
- ] })
3311
- ]
3312
- }
3313
- )
3314
- ] }),
3315
- /* @__PURE__ */ jsx(JobVehicleSearchGrade, { riskGrade, hospitalizationGrade })
3316
- ] }),
3317
- /* @__PURE__ */ jsx("div", { className: cx$5("right-panel"), children: rightPanelView === "jobSearch" ? JobSearch : VehicleSearch })
3318
- ] }) }),
3319
- /* @__PURE__ */ jsx(Modal.Footer, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsx(Button, { variant: "primary", size: "medium", appearance: "filled", width: "full", onClick: () => {
3320
- validate();
3321
- setIsConfirmed(true);
3322
- }, children: "\uD655\uC778" }) })
3323
- ] })
3324
- ] })
3285
+ JobVehicleSearchModalComponent: /* @__PURE__ */ jsxs(
3286
+ Modal.Root,
3287
+ {
3288
+ isOpen,
3289
+ onClose: () => {
3290
+ closeModal();
3291
+ setIsConfirmed(false);
3292
+ },
3293
+ modalSize: "xlarge",
3294
+ children: [
3295
+ /* @__PURE__ */ jsx(Modal.Overlay, {}),
3296
+ /* @__PURE__ */ jsxs(Modal.Content, { style: { height: "697px" }, children: [
3297
+ /* @__PURE__ */ jsx(Modal.Header, { headerTitle: "\uC9C1\uC885\xB7\uC6B4\uC804\uCC28\uC885 \uAC80\uC0C9", showCloseButton: true }),
3298
+ /* @__PURE__ */ jsx(Modal.Body, { className: cx$5("job-vehicle-search-modal"), raw: true, children: /* @__PURE__ */ jsxs(Fragment, { children: [
3299
+ /* @__PURE__ */ jsxs("div", { className: cx$5("left-panel"), children: [
3300
+ /* @__PURE__ */ jsxs("div", { className: cx$5("card-section"), children: [
3301
+ /* @__PURE__ */ jsxs(
3302
+ "div",
3303
+ {
3304
+ className: cx$5("card-menu", { "card-selected": rightPanelView === "jobSearch" }),
3305
+ onClick: () => setRightPanelView("jobSearch"),
3306
+ children: [
3307
+ /* @__PURE__ */ jsxs("div", { className: cx$5("card-title"), children: [
3308
+ /* @__PURE__ */ jsx(IconIllustJob, { className: cx$5("card-icon") }),
3309
+ /* @__PURE__ */ jsx("span", { className: cx$5("card-text", "typo-title5", "text-body"), children: "\uC9C1\uC885" }),
3310
+ /* @__PURE__ */ jsx(IconSubUiArrowRight, {})
3311
+ ] }),
3312
+ /* @__PURE__ */ jsx("div", { className: "typo-body2 text-body_2", children: selectedJob ? selectedJob.occupationIndustryName : "\uBBF8\uC120\uD0DD" })
3313
+ ]
3314
+ }
3315
+ ),
3316
+ /* @__PURE__ */ jsxs(
3317
+ "div",
3318
+ {
3319
+ className: cx$5("card-menu", { "card-selected": rightPanelView === "vehicleSelection" }),
3320
+ onClick: () => setRightPanelView("vehicleSelection"),
3321
+ children: [
3322
+ /* @__PURE__ */ jsxs("div", { className: cx$5("card-title"), children: [
3323
+ /* @__PURE__ */ jsx(IconIllustVehicle, { className: cx$5("card-icon") }),
3324
+ /* @__PURE__ */ jsx("span", { className: cx$5("card-text", "typo-title5", "text-body"), children: "\uC6B4\uC804 \uC5EC\uBD80\xB7\uCC28\uC885" }),
3325
+ /* @__PURE__ */ jsx(IconSubUiArrowRight, {})
3326
+ ] }),
3327
+ /* @__PURE__ */ jsxs("div", { className: "typo-body2 text-body_2", children: [
3328
+ selectedVehicle?.integrationCodeValueName,
3329
+ selectedVehicle?.integrationCodeValue || "\uBBF8\uC120\uD0DD"
3330
+ ] })
3331
+ ]
3332
+ }
3333
+ )
3334
+ ] }),
3335
+ /* @__PURE__ */ jsx(JobVehicleSearchGrade, { riskGrade, hospitalizationGrade })
3336
+ ] }),
3337
+ /* @__PURE__ */ jsx("div", { className: cx$5("right-panel"), children: rightPanelView === "jobSearch" ? JobSearch : VehicleSearch })
3338
+ ] }) }),
3339
+ /* @__PURE__ */ jsx(Modal.Footer, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsx(
3340
+ Button,
3341
+ {
3342
+ variant: "primary",
3343
+ size: "medium",
3344
+ appearance: "filled",
3345
+ width: "full",
3346
+ onClick: () => {
3347
+ validate();
3348
+ setIsConfirmed(true);
3349
+ },
3350
+ children: "\uD655\uC778"
3351
+ }
3352
+ ) })
3353
+ ] })
3354
+ ]
3355
+ }
3356
+ )
3325
3357
  };
3326
3358
  }
3327
3359