sales-frontend-components 0.0.270 → 0.1.0
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 +46 -32
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -8
- package/dist/index.esm.js +46 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/terms/components/_shared/terms.module.scss +2 -2
- package/package.json +11 -11
package/dist/index.cjs.js
CHANGED
|
@@ -2453,25 +2453,33 @@ function DeaCustomerSearch({
|
|
|
2453
2453
|
}) {
|
|
2454
2454
|
const [residentNumberFront, setResidentNumberFront] = React9.useState(initSearchParams?.residentNumberFront || "");
|
|
2455
2455
|
const [residentNumberBack, setResidentNumberBack] = React9.useState(initSearchParams ? "0000000" : "");
|
|
2456
|
-
const
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2456
|
+
const onFocusResidentFrontInput = () => {
|
|
2457
|
+
if (initSearchParams && !blockedFirstSearchWithInitParams.current) {
|
|
2458
|
+
setResidentNumberFront("");
|
|
2459
|
+
setResidentNumberBack("");
|
|
2460
|
+
blockedFirstSearchWithInitParams.current = true;
|
|
2461
|
+
return true;
|
|
2462
|
+
}
|
|
2463
|
+
return false;
|
|
2460
2464
|
};
|
|
2461
|
-
const
|
|
2465
|
+
const onFocusResidentBackInput = () => {
|
|
2462
2466
|
if (initSearchParams && !blockedFirstSearchWithInitParams.current) {
|
|
2463
|
-
|
|
2464
|
-
handleReset();
|
|
2467
|
+
setResidentNumberBack("");
|
|
2465
2468
|
blockedFirstSearchWithInitParams.current = true;
|
|
2466
2469
|
return true;
|
|
2467
2470
|
}
|
|
2468
2471
|
return false;
|
|
2469
2472
|
};
|
|
2470
2473
|
const handleSearch = () => {
|
|
2471
|
-
if (
|
|
2474
|
+
if (initSearchParams && !blockedFirstSearchWithInitParams.current) {
|
|
2475
|
+
console.log(
|
|
2476
|
+
"[dea-customer-search] \uCD5C\uCD08 1\uD68C, \uCD08\uAE30\uAC12\uC774 \uC788\uACE0, \uBCC0\uACBD\uB418\uAE30 \uC804\uAE4C\uC9C0\uB294 \uC870\uD68C\uBC84\uD2BC\uC774 \uB3D9\uC791\uB418\uC9C0 \uC54A\uB3C4\uB85D \uB9C9\uB294\uB2E4."
|
|
2477
|
+
);
|
|
2472
2478
|
return;
|
|
2473
2479
|
}
|
|
2480
|
+
console.log("[dea-customer-search] \uAC80\uC0C9API \uD638\uCD9C");
|
|
2474
2481
|
getE2EDataIDs(["residentNumberBack"], (e2edata) => {
|
|
2482
|
+
console.log("[dea-customer-search] setSearchParams", e2edata.e2e_data1);
|
|
2475
2483
|
setSearchParams({
|
|
2476
2484
|
residentNumberFront,
|
|
2477
2485
|
residentNumberBack: e2edata.e2e_data1
|
|
@@ -2479,17 +2487,11 @@ function DeaCustomerSearch({
|
|
|
2479
2487
|
});
|
|
2480
2488
|
};
|
|
2481
2489
|
const onKeyUp = (e) => {
|
|
2482
|
-
if (blockFirstSearch()) {
|
|
2483
|
-
return;
|
|
2484
|
-
}
|
|
2485
2490
|
if (isEnter(e)) {
|
|
2486
2491
|
handleSearch();
|
|
2487
2492
|
}
|
|
2488
2493
|
};
|
|
2489
2494
|
const onKeyDown = (e) => {
|
|
2490
|
-
if (blockFirstSearch()) {
|
|
2491
|
-
return;
|
|
2492
|
-
}
|
|
2493
2495
|
if (!(isBackspace(e) || !isNaN(parseInt(e.key)))) {
|
|
2494
2496
|
e.preventDefault();
|
|
2495
2497
|
}
|
|
@@ -2529,7 +2531,7 @@ function DeaCustomerSearch({
|
|
|
2529
2531
|
size: "small",
|
|
2530
2532
|
onKeyUp,
|
|
2531
2533
|
onKeyDown,
|
|
2532
|
-
onFocus:
|
|
2534
|
+
onFocus: onFocusResidentFrontInput,
|
|
2533
2535
|
rootProps: {
|
|
2534
2536
|
className: cx$p("search-input"),
|
|
2535
2537
|
onClear: () => {
|
|
@@ -2552,7 +2554,7 @@ function DeaCustomerSearch({
|
|
|
2552
2554
|
size: "small",
|
|
2553
2555
|
onKeyDown,
|
|
2554
2556
|
onKeyUp,
|
|
2555
|
-
onFocus:
|
|
2557
|
+
onFocus: onFocusResidentBackInput,
|
|
2556
2558
|
rootProps: {
|
|
2557
2559
|
clearable: false,
|
|
2558
2560
|
className: cx$p("search-input")
|
|
@@ -5406,7 +5408,13 @@ const CHANNEL_OPTIONS$1 = [
|
|
|
5406
5408
|
{ label: "\uC774\uBA54\uC77C", value: "3" },
|
|
5407
5409
|
{ label: "\uC6B0\uD3B8", value: "4" }
|
|
5408
5410
|
];
|
|
5409
|
-
const TermsMarketing = ({
|
|
5411
|
+
const TermsMarketing = ({
|
|
5412
|
+
formFactor = "tablet",
|
|
5413
|
+
value,
|
|
5414
|
+
onChange,
|
|
5415
|
+
channelOptions,
|
|
5416
|
+
className
|
|
5417
|
+
}) => {
|
|
5410
5418
|
const [isDisabledMarketingChannel, setIsDisabledMarketingChannel] = React9.useState(!value.receiveMarketingAgree);
|
|
5411
5419
|
const customChannelOptions = React9.useMemo(
|
|
5412
5420
|
() => (channelOptions ?? CHANNEL_OPTIONS$1).map((option) => ({
|
|
@@ -5439,7 +5447,7 @@ const TermsMarketing = ({ formFactor = "tablet", value, onChange, channelOptions
|
|
|
5439
5447
|
pc: "[\uC120\uD0DD] \uC0C1\uD488\uC758 \uC18C\uAC1C \uB4F1\uC744 \uC704\uD55C \uC0C1\uC138 \uB3D9\uC758",
|
|
5440
5448
|
tablet: "[\uC120\uD0DD] \uC0C1\uD488\uC758 \uC18C\uAC1C \uB4F1\uC744 \uC704\uD55C \uC0C1\uC138 \uB3D9\uC758"
|
|
5441
5449
|
};
|
|
5442
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$7("terms", `is-${formFactor}
|
|
5450
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$7("terms", `is-${formFactor}`, className), children: [
|
|
5443
5451
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: cx$7("terms-title"), children: TERMS_TITLE[formFactor] }),
|
|
5444
5452
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$7("terms-content"), children: [
|
|
5445
5453
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$7("card"), children: [
|
|
@@ -5629,7 +5637,8 @@ const TermsCancerMarketing = ({
|
|
|
5629
5637
|
value,
|
|
5630
5638
|
onChange,
|
|
5631
5639
|
channelOptions,
|
|
5632
|
-
periodOptions
|
|
5640
|
+
periodOptions,
|
|
5641
|
+
className
|
|
5633
5642
|
}) => {
|
|
5634
5643
|
const [isDisabledMarketingChannel, setIsDisabledMarketingChannel] = React9.useState(!value.receiveMarketingAgree);
|
|
5635
5644
|
const customChannelOptions = React9.useMemo(
|
|
@@ -5664,7 +5673,7 @@ const TermsCancerMarketing = ({
|
|
|
5664
5673
|
pc: "[\uC120\uD0DD] \uC554\uBCF4\uD638\uC2DC\uC2A4\uD15C \uC18C\uAC1C \uBAA9\uC801\uC758 \uAC1C\uC778(\uC2E0\uC6A9)\uC815\uBCF4 \uCC98\uB9AC \uC0C1\uC138 \uB3D9\uC758",
|
|
5665
5674
|
tablet: "[\uC120\uD0DD] \uC554\uBCF4\uD638\uC2DC\uC2A4\uD15C \uC18C\uAC1C \uBAA9\uC801\uC758 \uAC1C\uC778(\uC2E0\uC6A9)\uC815\uBCF4 \uCC98\uB9AC \uC0C1\uC138 \uB3D9\uC758"
|
|
5666
5675
|
};
|
|
5667
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$6("terms", `is-${formFactor}
|
|
5676
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$6("terms", `is-${formFactor}`, className), children: [
|
|
5668
5677
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: cx$6("terms-title"), children: TERMS_TITLE[formFactor] }),
|
|
5669
5678
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$6("terms-content"), children: [
|
|
5670
5679
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$6("card"), children: [
|
|
@@ -5818,7 +5827,12 @@ const TermsCancerMarketing = ({
|
|
|
5818
5827
|
};
|
|
5819
5828
|
|
|
5820
5829
|
const cx$5 = classNames.bind(styles$h);
|
|
5821
|
-
const TermsCancerSystem = ({
|
|
5830
|
+
const TermsCancerSystem = ({
|
|
5831
|
+
formFactor = "tablet",
|
|
5832
|
+
value,
|
|
5833
|
+
onChange,
|
|
5834
|
+
className
|
|
5835
|
+
}) => {
|
|
5822
5836
|
const handleChange = (field, newValue) => {
|
|
5823
5837
|
onChange({
|
|
5824
5838
|
...value,
|
|
@@ -5830,7 +5844,7 @@ const TermsCancerSystem = ({ formFactor = "tablet", value, onChange }) => {
|
|
|
5830
5844
|
pc: "\uC554\uBCF4\uD638\uC2DC\uC2A4\uD15C \uC81C\uACF5\uC744 \uC704\uD55C \uAC1C\uC778(\uC2E0\uC6A9)\uC815\uBCF4 \uCC98\uB9AC \uC0C1\uC138 \uB3D9\uC758",
|
|
5831
5845
|
tablet: "\uC554\uBCF4\uD638\uC2DC\uC2A4\uD15C \uC81C\uACF5\uC744 \uC704\uD55C \uAC1C\uC778(\uC2E0\uC6A9)\uC815\uBCF4 \uCC98\uB9AC \uC0C1\uC138 \uB3D9\uC758"
|
|
5832
5846
|
};
|
|
5833
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$5("terms", `is-${formFactor}
|
|
5847
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$5("terms", `is-${formFactor}`, className), children: [
|
|
5834
5848
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$5("terms-title-wrapper"), children: [
|
|
5835
5849
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: cx$5("terms-title"), children: TERMS_TITLE[formFactor] }),
|
|
5836
5850
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6041,7 +6055,7 @@ const TermsCancerSystem = ({ formFactor = "tablet", value, onChange }) => {
|
|
|
6041
6055
|
};
|
|
6042
6056
|
|
|
6043
6057
|
const cx$4 = classNames.bind(styles$h);
|
|
6044
|
-
const TermsExecution = ({ formFactor = "tablet", value, onChange }) => {
|
|
6058
|
+
const TermsExecution = ({ formFactor = "tablet", value, onChange, className }) => {
|
|
6045
6059
|
const handleChange = (field, newValue) => {
|
|
6046
6060
|
onChange({
|
|
6047
6061
|
...value,
|
|
@@ -6053,7 +6067,7 @@ const TermsExecution = ({ formFactor = "tablet", value, onChange }) => {
|
|
|
6053
6067
|
pc: "\uACC4\uC57D\uCCB4\uACB0\xB7\uC774\uD589\uC744 \uC704\uD55C \uB3D9\uC758",
|
|
6054
6068
|
tablet: "\uACC4\uC57D\uCCB4\uACB0\xB7\uC774\uD589\uC744 \uC704\uD55C \uB3D9\uC758"
|
|
6055
6069
|
};
|
|
6056
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$4("terms", `is-${formFactor}
|
|
6070
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$4("terms", `is-${formFactor}`, className), children: [
|
|
6057
6071
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: cx$4("terms-title"), children: TERMS_TITLE[formFactor] }),
|
|
6058
6072
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$4("terms-content"), children: [
|
|
6059
6073
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$4("card"), children: [
|
|
@@ -6404,7 +6418,7 @@ const TermsExecution = ({ formFactor = "tablet", value, onChange }) => {
|
|
|
6404
6418
|
};
|
|
6405
6419
|
|
|
6406
6420
|
const cx$3 = classNames.bind(styles$h);
|
|
6407
|
-
const TermsLoan = ({ formFactor = "tablet", value, onChange }) => {
|
|
6421
|
+
const TermsLoan = ({ formFactor = "tablet", value, onChange, className }) => {
|
|
6408
6422
|
const handleChange = (field, newValue) => {
|
|
6409
6423
|
onChange({
|
|
6410
6424
|
...value,
|
|
@@ -6416,7 +6430,7 @@ const TermsLoan = ({ formFactor = "tablet", value, onChange }) => {
|
|
|
6416
6430
|
pc: "\uBCF4\uD5D8\uACC4\uC57D\uB300\uCD9C \uC774\uD589\xB7\uAD00\uB9AC\uB97C \uC704\uD55C \uB3D9\uC758",
|
|
6417
6431
|
tablet: "\uBCF4\uD5D8\uACC4\uC57D\uB300\uCD9C \uC774\uD589\xB7\uAD00\uB9AC\uB97C \uC704\uD55C \uB3D9\uC758"
|
|
6418
6432
|
};
|
|
6419
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$3("terms", `is-${formFactor}
|
|
6433
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$3("terms", `is-${formFactor}`, className), children: [
|
|
6420
6434
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: cx$3("terms-title"), children: TERMS_TITLE[formFactor] }),
|
|
6421
6435
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$3("terms-content"), children: [
|
|
6422
6436
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$3("card"), children: [
|
|
@@ -6555,14 +6569,14 @@ const TermsLoan = ({ formFactor = "tablet", value, onChange }) => {
|
|
|
6555
6569
|
};
|
|
6556
6570
|
|
|
6557
6571
|
const cx$2 = classNames.bind(styles$h);
|
|
6558
|
-
const TermsSignature = ({ formFactor = "tablet", productInfo }) => {
|
|
6572
|
+
const TermsSignature = ({ formFactor = "tablet", productInfo, className }) => {
|
|
6559
6573
|
const { productName, contractorName, insuredName } = productInfo;
|
|
6560
6574
|
const TERMS_TITLE = {
|
|
6561
6575
|
phone: "\uC804\uC790\uC11C\uBA85\uC744 \uC774\uC6A9\uD55C \uCCAD\uC57D\uC744 \uC704\uD574\n\uC544\uB798 \uB0B4\uC6A9\uC5D0 \uB3D9\uC758\uD574\uC8FC\uC138\uC694",
|
|
6562
6576
|
pc: "\uC804\uC790\uC11C\uBA85\uC5D0 \uC758\uD55C \uBCF4\uD5D8\uACC4\uC57D\uCCB4\uACB0 \uB3D9\uC758",
|
|
6563
6577
|
tablet: "\uC804\uC790\uC11C\uBA85\uC5D0 \uC758\uD55C \uBCF4\uD5D8\uACC4\uC57D\uCCB4\uACB0 \uB3D9\uC758"
|
|
6564
6578
|
};
|
|
6565
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$2("terms", `is-${formFactor}
|
|
6579
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$2("terms", `is-${formFactor}`, className), children: [
|
|
6566
6580
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: cx$2("terms-title"), children: TERMS_TITLE[formFactor] }),
|
|
6567
6581
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$2("terms-content"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$2("card"), children: [
|
|
6568
6582
|
/* @__PURE__ */ jsxRuntime.jsx(salesFrontendDesignSystem.Table, { variant: "horizontal", className: cx$2("table", "mb-textarea-large", "hide-phone"), children: /* @__PURE__ */ jsxRuntime.jsxs("tbody", { children: [
|
|
@@ -6610,13 +6624,13 @@ const TermsSignature = ({ formFactor = "tablet", productInfo }) => {
|
|
|
6610
6624
|
};
|
|
6611
6625
|
|
|
6612
6626
|
const cx$1 = classNames.bind(styles$h);
|
|
6613
|
-
const TermsTransfer = ({ formFactor = "tablet" }) => {
|
|
6627
|
+
const TermsTransfer = ({ formFactor = "tablet", className }) => {
|
|
6614
6628
|
const TERMS_TITLE = {
|
|
6615
6629
|
phone: "\uBCF4\uD5D8\uB8CC \uC774\uCCB4 \uBC0F \uCD9C\uAE08\uACC4\uC88C \uB4F1\uB85D\uC744 \uC704\uD574 \uC544\uB798 \uB0B4\uC6A9\uC5D0 \uB3D9\uC758\uD574\uC8FC\uC138\uC694",
|
|
6616
6630
|
pc: "\uBCF4\uD5D8\uB8CC \uC774\uCCB4\xB7\uC1A1\uAE08\uACC4\uC88C \uC2E0\uCCAD \uBC0F \uCD9C\uAE08\uC774\uCCB4 \uB3D9\uC758",
|
|
6617
6631
|
tablet: "\uBCF4\uD5D8\uB8CC \uC774\uCCB4\xB7\uC1A1\uAE08\uACC4\uC88C \uC2E0\uCCAD \uBC0F \uCD9C\uAE08\uC774\uCCB4 \uB3D9\uC758"
|
|
6618
6632
|
};
|
|
6619
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$1("terms", `is-${formFactor}
|
|
6633
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx$1("terms", `is-${formFactor}`, className), children: [
|
|
6620
6634
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: cx$1("terms-title"), children: TERMS_TITLE[formFactor] }),
|
|
6621
6635
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cx$1("terms-content"), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx$1("card"), children: [
|
|
6622
6636
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: cx$1("sub-title"), children: "\uBCF8 \uC2E0\uCCAD\uC778\uC740 \uC804\uC790\uAE08\uC735\uAC70\uB798\uBC95 \uCD9C\uAE08\uC774\uCCB4\uC5D0 \uB300\uD55C \uB0B4\uC6A9\uC744 \uC778\uC9C0\uD558\uACE0 \uC788\uC73C\uBA70, \uC2E0\uCCAD\uACC4\uC88C\uB97C \uC774\uC6A9\uD558\uC5EC \uD574\uB2F9 \uACC4\uC57D\uC5D0 \uB300\uD55C \uBCF4\uD5D8\uB8CC \uBC0F \uB300\uCD9C\uAD00\uB828 \uCD9C\uAE08 \uC774\uCCB4\uC640 \uC1A1\uAE08\uC5D0 \uB3D9\uC758\uD569\uB2C8\uB2E4." }),
|
|
@@ -6630,14 +6644,14 @@ const TermsTransfer = ({ formFactor = "tablet" }) => {
|
|
|
6630
6644
|
};
|
|
6631
6645
|
|
|
6632
6646
|
const cx = classNames.bind(styles$h);
|
|
6633
|
-
const TermsDesign = ({ value, onChange }) => {
|
|
6647
|
+
const TermsDesign = ({ value, onChange, className }) => {
|
|
6634
6648
|
const handleChange = (field, newValue) => {
|
|
6635
6649
|
onChange({
|
|
6636
6650
|
...value,
|
|
6637
6651
|
[field]: newValue
|
|
6638
6652
|
});
|
|
6639
6653
|
};
|
|
6640
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx("terms"), children: [
|
|
6654
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("form", { className: cx("terms", className), children: [
|
|
6641
6655
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: cx("terms-title"), children: "[\uD544\uC218] \uAC00\uC785\uC124\uACC4\uB97C \uC704\uD55C \uAC1C\uC778(\uC2E0\uC6A9)\uC815\uBCF4 \uCC98\uB9AC \uC0C1\uC138 \uB3D9\uC758\uC11C" }),
|
|
6642
6656
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx("terms-content"), children: [
|
|
6643
6657
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cx("card"), children: [
|