@daeryun/dr_components 0.6.27 → 0.6.29
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/components/index.js +1 -0
- package/dist/components/index.ts +1 -0
- package/dist/components/page/Consulting/Consulting.jsx +31 -7
- package/dist/components/page/Consulting/Consulting.tsx +60 -22
- package/dist/components/page/Consulting/IConsultingTypes.d.ts +1 -0
- package/dist/components/page/Consulting/IConsultingTypes.tsx +1 -0
- package/dist/styles/globals.css +4 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -31,4 +31,5 @@ export { default as PageTitleBox } from './PageTitleBox/PageTitleBox';
|
|
|
31
31
|
export { ImgTypes } from './PageTitleBox/ImgTypes';
|
|
32
32
|
export { default as PageWrapper } from './Layout/PageWrapper';
|
|
33
33
|
export { default as SearchBar } from './SearchBar/SearchBar';
|
|
34
|
+
export { default as VisitReservationLawyer } from './VisitReservationLawyer/VisitReservationLawyer';
|
|
34
35
|
export { default as RelatedGroup } from './FieldNew/RelatedGroup';
|
package/dist/components/index.ts
CHANGED
|
@@ -31,4 +31,5 @@ export { default as PageTitleBox } from './PageTitleBox/PageTitleBox';
|
|
|
31
31
|
export { ImgTypes } from './PageTitleBox/ImgTypes';
|
|
32
32
|
export { default as PageWrapper } from './Layout/PageWrapper';
|
|
33
33
|
export { default as SearchBar } from './SearchBar/SearchBar';
|
|
34
|
+
export { default as VisitReservationLawyer } from './VisitReservationLawyer/VisitReservationLawyer';
|
|
34
35
|
export { default as RelatedGroup } from './FieldNew/RelatedGroup';
|
|
@@ -30,7 +30,8 @@ const Index = (props) => {
|
|
|
30
30
|
contents: '',
|
|
31
31
|
c_type: '',
|
|
32
32
|
detail: null,
|
|
33
|
-
isCheck: false
|
|
33
|
+
isCheck: false,
|
|
34
|
+
isOver14: false
|
|
34
35
|
});
|
|
35
36
|
//detail
|
|
36
37
|
const [detail, setDetail] = useState({
|
|
@@ -64,6 +65,11 @@ const Index = (props) => {
|
|
|
64
65
|
setIsLoading(false);
|
|
65
66
|
return false;
|
|
66
67
|
}
|
|
68
|
+
if (!consulting.isOver14) {
|
|
69
|
+
alert('만 14세 이상 여부를 체크해주세요');
|
|
70
|
+
setIsLoading(false);
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
67
73
|
if (consulting.c_type === '') {
|
|
68
74
|
alert('문의 유형을 선택해주세요.');
|
|
69
75
|
setIsLoading(false);
|
|
@@ -99,6 +105,7 @@ const Index = (props) => {
|
|
|
99
105
|
contents: '',
|
|
100
106
|
c_type: '',
|
|
101
107
|
detail: null,
|
|
108
|
+
isOver14: false,
|
|
102
109
|
isCheck: false
|
|
103
110
|
});
|
|
104
111
|
setDetail({
|
|
@@ -408,16 +415,33 @@ const Index = (props) => {
|
|
|
408
415
|
//480px
|
|
409
416
|
'max-xs:max-w-[240px]'}>
|
|
410
417
|
{/*-- 동의 체크박스 --*/}
|
|
411
|
-
<
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
418
|
+
<span className={'mx-auto mb-[30px] flex w-fit flex-col gap-2 max-sm:mx-auto'}>
|
|
419
|
+
{/*-- 동의 체크박스 --*/}
|
|
420
|
+
<label className={'block w-full cursor-pointer text-[16px] leading-[16px] text-[#5F5F5F] ' +
|
|
421
|
+
'flex items-center gap-[10px] ' +
|
|
422
|
+
'max-xs:text-base max-xs:leading-none'}>
|
|
423
|
+
<input type="checkbox" name="consultCheck" id="consultCk" className={'h-[17px] w-[17px] shrink-0 cursor-pointer outline-none ' +
|
|
415
424
|
'after:pointer-events-none after:block after:h-full after:w-full after:border-[1px] after:border-solid after:border-[#B4B4B4] after:bg-white after:font-[SUIT] after:font-[800] after:content-[""] ' +
|
|
416
425
|
'checked:after:border-[#285FA7] checked:after:bg-[#285FA7] checked:after:text-center checked:after:text-[17px] checked:after:leading-[15px] checked:after:text-white checked:after:content-["✓"] '} onChange={e => {
|
|
417
426
|
setConsulting(Object.assign(Object.assign({}, consulting), { isCheck: !consulting.isCheck }));
|
|
418
427
|
}} checked={consulting.isCheck}/>
|
|
419
|
-
|
|
420
|
-
|
|
428
|
+
개인정보수집에 동의합니다.
|
|
429
|
+
</label>
|
|
430
|
+
<label className={'block w-full cursor-pointer text-[16px] leading-[16px] text-[#5F5F5F] ' +
|
|
431
|
+
'flex items-center gap-[10px] ' +
|
|
432
|
+
'max-xs:text-base max-xs:leading-none'}>
|
|
433
|
+
<input type="checkbox" name="isOver14Check" id="isOver14Check" className={'h-[17px] w-[17px] cursor-pointer outline-none ' +
|
|
434
|
+
'after:pointer-events-none after:block after:h-full after:w-full after:border-[1px] after:border-solid after:border-[#B4B4B4] after:bg-white after:font-[SUIT] after:font-[800] after:content-[""] ' +
|
|
435
|
+
'checked:after:border-[#285FA7] checked:after:bg-[#285FA7] checked:after:text-center checked:after:text-[17px] checked:after:leading-[15px] checked:after:text-white checked:after:content-["✓"] '} onChange={e => {
|
|
436
|
+
setConsulting(Object.assign(Object.assign({}, consulting), { isOver14: !consulting.isOver14 }));
|
|
437
|
+
}} onKeyDown={e => {
|
|
438
|
+
if (e.key === 'Enter') {
|
|
439
|
+
setConsulting(Object.assign(Object.assign({}, consulting), { isOver14: !consulting.isOver14 }));
|
|
440
|
+
}
|
|
441
|
+
}} checked={consulting.isOver14}/>
|
|
442
|
+
만 14세 이상입니다.
|
|
443
|
+
</label>
|
|
444
|
+
</span>
|
|
421
445
|
{/*-- 제출 submit 버튼 --*/}
|
|
422
446
|
<button type="button" id={'submitBtn'} className={'h-[70px] w-full cursor-pointer bg-[#285FA7] text-xl tracking-[-0.5px] text-white ' +
|
|
423
447
|
'max-xs:h-[50px] max-xs:text-base'} onClick={consultPost} disabled={isLoading}>
|
|
@@ -25,7 +25,8 @@ const Index = (props: { ace_Click?: () => void }) => {
|
|
|
25
25
|
contents: '',
|
|
26
26
|
c_type: '',
|
|
27
27
|
detail: null,
|
|
28
|
-
isCheck: false
|
|
28
|
+
isCheck: false,
|
|
29
|
+
isOver14: false
|
|
29
30
|
});
|
|
30
31
|
|
|
31
32
|
//detail
|
|
@@ -65,6 +66,11 @@ const Index = (props: { ace_Click?: () => void }) => {
|
|
|
65
66
|
setIsLoading(false);
|
|
66
67
|
return false;
|
|
67
68
|
}
|
|
69
|
+
if (!consulting.isOver14) {
|
|
70
|
+
alert('만 14세 이상 여부를 체크해주세요');
|
|
71
|
+
setIsLoading(false);
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
68
74
|
if (consulting.c_type === '') {
|
|
69
75
|
alert('문의 유형을 선택해주세요.');
|
|
70
76
|
setIsLoading(false);
|
|
@@ -110,6 +116,7 @@ const Index = (props: { ace_Click?: () => void }) => {
|
|
|
110
116
|
contents: '',
|
|
111
117
|
c_type: '',
|
|
112
118
|
detail: null,
|
|
119
|
+
isOver14: false,
|
|
113
120
|
isCheck: false
|
|
114
121
|
});
|
|
115
122
|
setDetail({
|
|
@@ -641,29 +648,60 @@ const Index = (props: { ace_Click?: () => void }) => {
|
|
|
641
648
|
}
|
|
642
649
|
>
|
|
643
650
|
{/*-- 동의 체크박스 --*/}
|
|
644
|
-
<
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
'flex items-center justify-center gap-[10px] ' +
|
|
648
|
-
'max-sm:justify-center max-xs:text-base'
|
|
649
|
-
}
|
|
650
|
-
>
|
|
651
|
-
<input
|
|
652
|
-
type="checkbox"
|
|
653
|
-
name="consultCheck"
|
|
654
|
-
id="consultCk"
|
|
651
|
+
<span className={'mx-auto mb-[30px] flex w-fit flex-col gap-2 max-sm:mx-auto'}>
|
|
652
|
+
{/*-- 동의 체크박스 --*/}
|
|
653
|
+
<label
|
|
655
654
|
className={
|
|
656
|
-
'
|
|
657
|
-
'
|
|
658
|
-
'
|
|
655
|
+
'block w-full cursor-pointer text-[16px] leading-[16px] text-[#5F5F5F] ' +
|
|
656
|
+
'flex items-center gap-[10px] ' +
|
|
657
|
+
'max-xs:text-base max-xs:leading-none'
|
|
659
658
|
}
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
659
|
+
>
|
|
660
|
+
<input
|
|
661
|
+
type="checkbox"
|
|
662
|
+
name="consultCheck"
|
|
663
|
+
id="consultCk"
|
|
664
|
+
className={
|
|
665
|
+
'h-[17px] w-[17px] shrink-0 cursor-pointer outline-none ' +
|
|
666
|
+
'after:pointer-events-none after:block after:h-full after:w-full after:border-[1px] after:border-solid after:border-[#B4B4B4] after:bg-white after:font-[SUIT] after:font-[800] after:content-[""] ' +
|
|
667
|
+
'checked:after:border-[#285FA7] checked:after:bg-[#285FA7] checked:after:text-center checked:after:text-[17px] checked:after:leading-[15px] checked:after:text-white checked:after:content-["✓"] '
|
|
668
|
+
}
|
|
669
|
+
onChange={e => {
|
|
670
|
+
setConsulting({ ...consulting, isCheck: !consulting.isCheck });
|
|
671
|
+
}}
|
|
672
|
+
checked={consulting.isCheck}
|
|
673
|
+
/>
|
|
674
|
+
개인정보수집에 동의합니다.
|
|
675
|
+
</label>
|
|
676
|
+
<label
|
|
677
|
+
className={
|
|
678
|
+
'block w-full cursor-pointer text-[16px] leading-[16px] text-[#5F5F5F] ' +
|
|
679
|
+
'flex items-center gap-[10px] ' +
|
|
680
|
+
'max-xs:text-base max-xs:leading-none'
|
|
681
|
+
}
|
|
682
|
+
>
|
|
683
|
+
<input
|
|
684
|
+
type="checkbox"
|
|
685
|
+
name="isOver14Check"
|
|
686
|
+
id="isOver14Check"
|
|
687
|
+
className={
|
|
688
|
+
'h-[17px] w-[17px] cursor-pointer outline-none ' +
|
|
689
|
+
'after:pointer-events-none after:block after:h-full after:w-full after:border-[1px] after:border-solid after:border-[#B4B4B4] after:bg-white after:font-[SUIT] after:font-[800] after:content-[""] ' +
|
|
690
|
+
'checked:after:border-[#285FA7] checked:after:bg-[#285FA7] checked:after:text-center checked:after:text-[17px] checked:after:leading-[15px] checked:after:text-white checked:after:content-["✓"] '
|
|
691
|
+
}
|
|
692
|
+
onChange={e => {
|
|
693
|
+
setConsulting({ ...consulting, isOver14: !consulting.isOver14 });
|
|
694
|
+
}}
|
|
695
|
+
onKeyDown={e => {
|
|
696
|
+
if (e.key === 'Enter') {
|
|
697
|
+
setConsulting({ ...consulting, isOver14: !consulting.isOver14 });
|
|
698
|
+
}
|
|
699
|
+
}}
|
|
700
|
+
checked={consulting.isOver14}
|
|
701
|
+
/>
|
|
702
|
+
만 14세 이상입니다.
|
|
703
|
+
</label>
|
|
704
|
+
</span>
|
|
667
705
|
{/*-- 제출 submit 버튼 --*/}
|
|
668
706
|
<button
|
|
669
707
|
type="button"
|
package/dist/styles/globals.css
CHANGED
|
@@ -11208,10 +11208,6 @@ body {
|
|
|
11208
11208
|
align-items: center;
|
|
11209
11209
|
}
|
|
11210
11210
|
|
|
11211
|
-
.max-sm\:justify-center {
|
|
11212
|
-
justify-content: center;
|
|
11213
|
-
}
|
|
11214
|
-
|
|
11215
11211
|
.max-sm\:gap-\[10px\] {
|
|
11216
11212
|
gap: 10px;
|
|
11217
11213
|
}
|
|
@@ -12080,6 +12076,10 @@ body {
|
|
|
12080
12076
|
line-height: 30px;
|
|
12081
12077
|
}
|
|
12082
12078
|
|
|
12079
|
+
.max-xs\:leading-none {
|
|
12080
|
+
line-height: 1;
|
|
12081
|
+
}
|
|
12082
|
+
|
|
12083
12083
|
.max-xs\:leading-snug {
|
|
12084
12084
|
line-height: 1.375;
|
|
12085
12085
|
}
|