sales-frontend-components 0.0.188 → 0.0.190

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.
@@ -111,7 +111,7 @@
111
111
  display: flex;
112
112
  flex-direction: column;
113
113
  gap: margin(title-xlarge);
114
- padding: padding(zero) spacing-layout(margin-sub);
114
+ padding: padding(zero) spacing-layout(padding-sub);
115
115
  }
116
116
 
117
117
  /* ============================
@@ -636,7 +636,7 @@
636
636
 
637
637
  // 모바일: 좌우 패딩만 적용하는 래퍼(카드 배경/보더 없음)
638
638
  .mobile-side-padding {
639
- padding: padding(zero) spacing-layout(margin-sub);
639
+ padding: padding(zero) spacing-layout(padding-sub);
640
640
 
641
641
  @include media(tablet) {
642
642
  padding: 0;
@@ -677,7 +677,7 @@
677
677
 
678
678
  // 모바일: 디스크립션 카드를 좌우 패딩만 적용
679
679
  .consent-content.mobile-side-only {
680
- padding: padding(zero) spacing-layout(margin-sub);
680
+ padding: padding(zero) spacing-layout(padding-sub);
681
681
 
682
682
  @include media(tablet) {
683
683
  padding: margin(card-around-large);
package/dist/index.cjs.js CHANGED
@@ -3014,53 +3014,64 @@ function useJobSearchModal() {
3014
3014
  openModal();
3015
3015
  };
3016
3016
  const closeModalWithCheck = () => {
3017
- setIsConfirmed(true);
3018
3017
  if (!selectedJob) {
3019
3018
  salesFrontendDesignSystem.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.", {
3020
3019
  modalId: "job-search-alert-no-selected"
3021
3020
  });
3022
3021
  return;
3023
3022
  }
3023
+ setIsConfirmed(true);
3024
3024
  closeModal();
3025
3025
  };
3026
3026
  return {
3027
- JobSearchModal: /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Root, { isOpen, onClose: closeModal, modalSize: "xlarge", children: [
3028
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Overlay, {}),
3029
- /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Content, { style: { height: "697px" }, children: [
3030
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Header, { headerTitle: "\uC9C1\uC885 \uAC80\uC0C9", showCloseButton: true }),
3031
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Body, { raw: true, children: /* @__PURE__ */ jsxRuntime.jsx(
3032
- JobSearch,
3033
- {
3034
- firstCategory,
3035
- firstCategoryList,
3036
- secondCategoryList,
3037
- setFirstCategory,
3038
- secondCategory,
3039
- activeTab,
3040
- onTabChange,
3041
- searchTerm,
3042
- setSearchInput,
3043
- filteredJobs: filteredJobs || [],
3044
- onJobSelect: handleJobSelect,
3045
- searchInput,
3046
- setSearchTerm,
3047
- setSecondCategory,
3048
- isLoading
3049
- }
3050
- ) }),
3051
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Footer, { children: /* @__PURE__ */ jsxRuntime.jsx(
3052
- salesFrontendDesignSystem.Button,
3053
- {
3054
- variant: "primary",
3055
- size: "medium",
3056
- appearance: "filled",
3057
- width: "full",
3058
- onClick: closeModalWithCheck,
3059
- children: "\uD655\uC778"
3060
- }
3061
- ) })
3062
- ] })
3063
- ] }),
3027
+ JobSearchModal: /* @__PURE__ */ jsxRuntime.jsxs(
3028
+ salesFrontendDesignSystem.Modal.Root,
3029
+ {
3030
+ isOpen,
3031
+ onClose: () => {
3032
+ closeModal();
3033
+ setIsConfirmed(false);
3034
+ },
3035
+ modalSize: "xlarge",
3036
+ children: [
3037
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Overlay, {}),
3038
+ /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Content, { style: { height: "697px" }, children: [
3039
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Header, { headerTitle: "\uC9C1\uC885 \uAC80\uC0C9", showCloseButton: true }),
3040
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Body, { raw: true, children: /* @__PURE__ */ jsxRuntime.jsx(
3041
+ JobSearch,
3042
+ {
3043
+ firstCategory,
3044
+ firstCategoryList,
3045
+ secondCategoryList,
3046
+ setFirstCategory,
3047
+ secondCategory,
3048
+ activeTab,
3049
+ onTabChange,
3050
+ searchTerm,
3051
+ setSearchInput,
3052
+ filteredJobs: filteredJobs || [],
3053
+ onJobSelect: handleJobSelect,
3054
+ searchInput,
3055
+ setSearchTerm,
3056
+ setSecondCategory,
3057
+ isLoading
3058
+ }
3059
+ ) }),
3060
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Footer, { children: /* @__PURE__ */ jsxRuntime.jsx(
3061
+ salesFrontendDesignSystem.Button,
3062
+ {
3063
+ variant: "primary",
3064
+ size: "medium",
3065
+ appearance: "filled",
3066
+ width: "full",
3067
+ onClick: closeModalWithCheck,
3068
+ children: "\uD655\uC778"
3069
+ }
3070
+ ) })
3071
+ ] })
3072
+ ]
3073
+ }
3074
+ ),
3064
3075
  JobSearchComponent: /* @__PURE__ */ jsxRuntime.jsx(
3065
3076
  JobSearch,
3066
3077
  {
@@ -3273,57 +3284,78 @@ function useJobVehicleSearchModal() {
3273
3284
  setIsConfirmed,
3274
3285
  openJobVehicleModal: openInitModal,
3275
3286
  closeJobVehicleModal: closeModal,
3276
- JobVehicleSearchModalComponent: /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Root, { isOpen, onClose: closeModal, modalSize: "xlarge", children: [
3277
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Overlay, {}),
3278
- /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Content, { style: { height: "697px" }, children: [
3279
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Header, { headerTitle: "\uC9C1\uC885\xB7\uC6B4\uC804\uCC28\uC885 \uAC80\uC0C9", showCloseButton: true }),
3280
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Body, { className: cx$5("job-vehicle-search-modal"), raw: true, children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3281
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("left-panel"), children: [
3282
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("card-section"), children: [
3283
- /* @__PURE__ */ jsxRuntime.jsxs(
3284
- "div",
3285
- {
3286
- className: cx$5("card-menu", { "card-selected": rightPanelView === "jobSearch" }),
3287
- onClick: () => setRightPanelView("jobSearch"),
3288
- children: [
3289
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("card-title"), children: [
3290
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustJob, { className: cx$5("card-icon") }),
3291
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$5("card-text", "typo-title5", "text-body"), children: "\uC9C1\uC885" }),
3292
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconSubUiArrowRight, {})
3293
- ] }),
3294
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "typo-body2 text-body_2", children: selectedJob ? selectedJob.occupationIndustryName : "\uBBF8\uC120\uD0DD" })
3295
- ]
3296
- }
3297
- ),
3298
- /* @__PURE__ */ jsxRuntime.jsxs(
3299
- "div",
3300
- {
3301
- className: cx$5("card-menu", { "card-selected": rightPanelView === "vehicleSelection" }),
3302
- onClick: () => setRightPanelView("vehicleSelection"),
3303
- children: [
3304
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("card-title"), children: [
3305
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustVehicle, { className: cx$5("card-icon") }),
3306
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$5("card-text", "typo-title5", "text-body"), children: "\uC6B4\uC804 \uC5EC\uBD80\xB7\uCC28\uC885" }),
3307
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconSubUiArrowRight, {})
3308
- ] }),
3309
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "typo-body2 text-body_2", children: [
3310
- selectedVehicle?.integrationCodeValueName,
3311
- selectedVehicle?.integrationCodeValue || "\uBBF8\uC120\uD0DD"
3312
- ] })
3313
- ]
3314
- }
3315
- )
3316
- ] }),
3317
- /* @__PURE__ */ jsxRuntime.jsx(JobVehicleSearchGrade, { riskGrade, hospitalizationGrade })
3318
- ] }),
3319
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$5("right-panel"), children: rightPanelView === "jobSearch" ? JobSearch : VehicleSearch })
3320
- ] }) }),
3321
- /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Footer, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Button, { variant: "primary", size: "medium", appearance: "filled", width: "full", onClick: () => {
3322
- validate();
3323
- setIsConfirmed(true);
3324
- }, children: "\uD655\uC778" }) })
3325
- ] })
3326
- ] })
3287
+ JobVehicleSearchModalComponent: /* @__PURE__ */ jsxRuntime.jsxs(
3288
+ salesFrontendDesignSystem.Modal.Root,
3289
+ {
3290
+ isOpen,
3291
+ onClose: () => {
3292
+ closeModal();
3293
+ setIsConfirmed(false);
3294
+ },
3295
+ modalSize: "xlarge",
3296
+ children: [
3297
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Overlay, {}),
3298
+ /* @__PURE__ */ jsxRuntime.jsxs(salesFrontendDesignSystem.Modal.Content, { style: { height: "697px" }, children: [
3299
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Header, { headerTitle: "\uC9C1\uC885\xB7\uC6B4\uC804\uCC28\uC885 \uAC80\uC0C9", showCloseButton: true }),
3300
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Body, { className: cx$5("job-vehicle-search-modal"), raw: true, children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3301
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("left-panel"), children: [
3302
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("card-section"), children: [
3303
+ /* @__PURE__ */ jsxRuntime.jsxs(
3304
+ "div",
3305
+ {
3306
+ className: cx$5("card-menu", { "card-selected": rightPanelView === "jobSearch" }),
3307
+ onClick: () => setRightPanelView("jobSearch"),
3308
+ children: [
3309
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("card-title"), children: [
3310
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustJob, { className: cx$5("card-icon") }),
3311
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$5("card-text", "typo-title5", "text-body"), children: "\uC9C1\uC885" }),
3312
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconSubUiArrowRight, {})
3313
+ ] }),
3314
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "typo-body2 text-body_2", children: selectedJob ? selectedJob.occupationIndustryName : "\uBBF8\uC120\uD0DD" })
3315
+ ]
3316
+ }
3317
+ ),
3318
+ /* @__PURE__ */ jsxRuntime.jsxs(
3319
+ "div",
3320
+ {
3321
+ className: cx$5("card-menu", { "card-selected": rightPanelView === "vehicleSelection" }),
3322
+ onClick: () => setRightPanelView("vehicleSelection"),
3323
+ children: [
3324
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("card-title"), children: [
3325
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconIllustVehicle, { className: cx$5("card-icon") }),
3326
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: cx$5("card-text", "typo-title5", "text-body"), children: "\uC6B4\uC804 \uC5EC\uBD80\xB7\uCC28\uC885" }),
3327
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendAssets.IconSubUiArrowRight, {})
3328
+ ] }),
3329
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "typo-body2 text-body_2", children: [
3330
+ selectedVehicle?.integrationCodeValueName,
3331
+ selectedVehicle?.integrationCodeValue || "\uBBF8\uC120\uD0DD"
3332
+ ] })
3333
+ ]
3334
+ }
3335
+ )
3336
+ ] }),
3337
+ /* @__PURE__ */ jsxRuntime.jsx(JobVehicleSearchGrade, { riskGrade, hospitalizationGrade })
3338
+ ] }),
3339
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$5("right-panel"), children: rightPanelView === "jobSearch" ? JobSearch : VehicleSearch })
3340
+ ] }) }),
3341
+ /* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Modal.Footer, { style: { marginTop: 0 }, children: /* @__PURE__ */ jsxRuntime.jsx(
3342
+ salesFrontendDesignSystem.Button,
3343
+ {
3344
+ variant: "primary",
3345
+ size: "medium",
3346
+ appearance: "filled",
3347
+ width: "full",
3348
+ onClick: () => {
3349
+ validate();
3350
+ setIsConfirmed(true);
3351
+ },
3352
+ children: "\uD655\uC778"
3353
+ }
3354
+ ) })
3355
+ ] })
3356
+ ]
3357
+ }
3358
+ )
3327
3359
  };
3328
3360
  }
3329
3361