@daeryun/dr_components 0.3.29 → 0.3.31

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.
@@ -50,15 +50,15 @@ const MyCaseDetailPageContainer = ({ jwt }) => {
50
50
  </div>
51
51
  <div className="hidden max-[415px]:block 2sm:pl-[40px]">
52
52
  <CaseTabSwiper id="case-tab-swiper3" scrollClassName="max-[415px]:!block">
53
- <SubMenuButton title="사건 정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')} outerClassName="ml-[20px]"/>
54
- <SubMenuButton title="사건 타임라인" isSelected={selected === '사건 타임라인'} onClick={() => setSelected('사건 타임라인')}/>
53
+ <SubMenuButton title="사건 정보" isSelected={selected === '사건 정보'} onClick={() => setSelected('사건 정보')} outerClassName="ml-[20px] swiper-slide"/>
54
+ <SubMenuButton title="사건 타임라인" isSelected={selected === '사건 타임라인'} onClick={() => setSelected('사건 타임라인')} outerClassName=" swiper-slide"/>
55
55
  {/* <SubMenuButton
56
56
  title="문서함"
57
57
  isSelected={selected === '문서함'}
58
58
  onClick={() => setSelected('문서함')}
59
59
  /> */}
60
- <SubMenuButton title="계약정보" isSelected={selected === '계약정보'} onClick={() => setSelected('계약정보')}/>
61
- <SubMenuButton title="사건문의" isSelected={selected === '사건문의'} onClick={() => setSelected('사건문의')} outerClassName="!mr-[0px]"/>
60
+ <SubMenuButton title="계약정보" isSelected={selected === '계약정보'} onClick={() => setSelected('계약정보')} outerClassName=" swiper-slide"/>
61
+ <SubMenuButton title="사건문의" isSelected={selected === '사건문의'} onClick={() => setSelected('사건문의')} outerClassName="!mr-[0px] swiper-slide"/>
62
62
  </CaseTabSwiper>
63
63
  </div>
64
64
  </div>
@@ -90,12 +90,13 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
90
90
  title="사건 정보"
91
91
  isSelected={selected === '사건 정보'}
92
92
  onClick={() => setSelected('사건 정보')}
93
- outerClassName="ml-[20px]"
93
+ outerClassName="ml-[20px] swiper-slide"
94
94
  />
95
95
  <SubMenuButton
96
96
  title="사건 타임라인"
97
97
  isSelected={selected === '사건 타임라인'}
98
98
  onClick={() => setSelected('사건 타임라인')}
99
+ outerClassName=" swiper-slide"
99
100
  />
100
101
  {/* <SubMenuButton
101
102
  title="문서함"
@@ -106,12 +107,13 @@ const MyCaseDetailPageContainer = ({ jwt }: { jwt?: string }) => {
106
107
  title="계약정보"
107
108
  isSelected={selected === '계약정보'}
108
109
  onClick={() => setSelected('계약정보')}
110
+ outerClassName=" swiper-slide"
109
111
  />
110
112
  <SubMenuButton
111
113
  title="사건문의"
112
114
  isSelected={selected === '사건문의'}
113
115
  onClick={() => setSelected('사건문의')}
114
- outerClassName="!mr-[0px]"
116
+ outerClassName="!mr-[0px] swiper-slide"
115
117
  />
116
118
  </CaseTabSwiper>
117
119
  </div>
@@ -74,7 +74,9 @@ const CaseInquiry = ({ myCaseQuestion, id, refetch, pageSize, totalLength, pageN
74
74
  : 'sm-top:mt-[95px] mt-[69px] lg:mt-[112px]'}`}>
75
75
  <button onClick={() => setIsOpen(prev => !prev)} className=" bg-mycaseMainColor sm-top:h-[60px] sm-top:w-[188px] sm-top:gap-[23px] sm-top:rounded-[36px] flex h-[48px] w-[132px] items-center justify-center gap-[14px] rounded-[24px] text-white lg:h-[72px] lg:w-[220px] lg:gap-[21px]">
76
76
  <Image src={inkPen} alt="ink_pen" width={28.5} height={28.5} className="sm-top:h-[23.75px] sm-top:w-[23.75px] h-[19px] w-[19px] lg:h-[28.5px] lg:w-[28.5px]"/>
77
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2">문의하기</p>
77
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2" style={{ color: 'white' }}>
78
+ 문의하기
79
+ </p>
78
80
  </button>
79
81
  </div>
80
82
  <CaseInquiryAddModal isOpen={isOpen} onClose={() => setIsOpen(false)} id={id} refetch={refetch}/>
@@ -179,7 +179,9 @@ const CaseInquiry = ({
179
179
  height={28.5}
180
180
  className="sm-top:h-[23.75px] sm-top:w-[23.75px] h-[19px] w-[19px] lg:h-[28.5px] lg:w-[28.5px]"
181
181
  />
182
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2">문의하기</p>
182
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2" style={{ color: 'white' }}>
183
+ 문의하기
184
+ </p>
183
185
  </button>
184
186
  </div>
185
187
  <CaseInquiryAddModal isOpen={isOpen} onClose={() => setIsOpen(false)} id={id} refetch={refetch} />
@@ -27,7 +27,7 @@ const CaseInquiryAddModal = ({ isOpen, onClose, id, refetch }) => {
27
27
  setIsCheck(false);
28
28
  onClose();
29
29
  }}>
30
- <div className="border-grayScale4 bg-grayScale8 sm-top:max-h-[786px] sm-top:w-[calc(100%-60px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:p-[52px] absolute h-full max-h-[568px] w-[calc(100%-40px)] overflow-y-auto rounded-[16px] border border-solid p-[32px] lg:h-full lg:max-h-[1000px] lg:w-full lg:max-w-[1000px] " onClick={e => e.stopPropagation()}>
30
+ <div className="border-grayScale4 bg-grayScale8 sm-top:w-[calc(100%-60px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:p-[52px] absolute h-fit w-[calc(100%-40px)] overflow-y-auto rounded-[16px] border border-solid p-[32px] lg:w-full lg:max-w-[1000px] " onClick={e => e.stopPropagation()}>
31
31
  <div className="flex flex-row items-center justify-between">
32
32
  <p className="title_medium_mo sm-top:title_medium_tb lg:title_medium text-black">
33
33
  사건문의 작성
@@ -52,10 +52,10 @@ const CaseInquiryAddModal = ({ isOpen, onClose, id, refetch }) => {
52
52
  </div>
53
53
  <div className="mt-[16px] flex flex-row items-center justify-between">
54
54
  <div className="sm-top:gap-[8px] flex flex-row items-center justify-center gap-[4px]">
55
- <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
55
+ <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 sm-top:leading-[25px] leading-[20px] text-black lg:leading-[30px]">
56
56
  문의내용
57
57
  </p>
58
- <p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3">
58
+ <p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3 sm-top:leading-[23px] leading-[18px] lg:leading-[25px]">
59
59
  (30자 이상<span className="text-mycaseMainColor"> *</span>)
60
60
  </p>
61
61
  </div>
@@ -96,7 +96,9 @@ const CaseInquiryAddModal = ({ isOpen, onClose, id, refetch }) => {
96
96
  setIsCheck(true);
97
97
  }
98
98
  })}>
99
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2">문의하기</p>
99
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2" style={{ color: value.length >= 30 ? 'white' : '#909090' }}>
100
+ 문의하기
101
+ </p>
100
102
  </button>
101
103
  </div>
102
104
  </div>
@@ -34,7 +34,7 @@ const CaseInquiryAddModal = ({
34
34
  }}
35
35
  >
36
36
  <div
37
- className="border-grayScale4 bg-grayScale8 sm-top:max-h-[786px] sm-top:w-[calc(100%-60px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:p-[52px] absolute h-full max-h-[568px] w-[calc(100%-40px)] overflow-y-auto rounded-[16px] border border-solid p-[32px] lg:h-full lg:max-h-[1000px] lg:w-full lg:max-w-[1000px] "
37
+ className="border-grayScale4 bg-grayScale8 sm-top:w-[calc(100%-60px)] sm-top:max-w-[780px] sm-top:rounded-[32px] sm-top:p-[52px] absolute h-fit w-[calc(100%-40px)] overflow-y-auto rounded-[16px] border border-solid p-[32px] lg:w-full lg:max-w-[1000px] "
38
38
  onClick={e => e.stopPropagation()}
39
39
  >
40
40
  <div className="flex flex-row items-center justify-between">
@@ -68,10 +68,10 @@ const CaseInquiryAddModal = ({
68
68
  </div>
69
69
  <div className="mt-[16px] flex flex-row items-center justify-between">
70
70
  <div className="sm-top:gap-[8px] flex flex-row items-center justify-center gap-[4px]">
71
- <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
71
+ <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 sm-top:leading-[25px] leading-[20px] text-black lg:leading-[30px]">
72
72
  문의내용
73
73
  </p>
74
- <p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3">
74
+ <p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale3 sm-top:leading-[23px] leading-[18px] lg:leading-[25px]">
75
75
  (30자 이상<span className="text-mycaseMainColor"> *</span>)
76
76
  </p>
77
77
  </div>
@@ -132,7 +132,12 @@ const CaseInquiryAddModal = ({
132
132
  }
133
133
  }}
134
134
  >
135
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2">문의하기</p>
135
+ <p
136
+ className="body_large2_mo sm-top:body_large2_tb lg:body_large2"
137
+ style={{ color: value.length >= 30 ? 'white' : '#909090' }}
138
+ >
139
+ 문의하기
140
+ </p>
136
141
  </button>
137
142
  </div>
138
143
  </div>
@@ -1,22 +1,25 @@
1
1
  import Image from 'next/image';
2
2
  import ModalContainer from './ModalCotainer';
3
+ import modalIcon from '../../../../../../asset/images/myCase/icon/modal_icon.webp';
3
4
  const CaseInquiryConfirmModal = ({ isOpen, onClose, id, refetch }) => {
4
5
  // console.log(isLoading);
5
6
  return (<ModalContainer isOpen={isOpen} onClose={() => {
6
7
  onClose();
7
8
  }}>
8
- <div className="absolute flex w-[calc(100%-40px)] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid border-grayScale4 bg-grayScale8 p-[30px] sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[52px] sm-top:py-[44px] lg:w-full lg:max-w-[804px] lg:p-[52px] " onClick={e => e.stopPropagation()}>
9
- <Image src="/images/mycase/icon/modal_icon.webp" alt="check" width={40} height={48.9} className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"/>
10
- <p className="body_large1_mo sm-top:body_large1_tb sm-top: lg:body_large1 mt-[16.11px] sm-top:mt-[20px] lg:mt-[36px]">
9
+ <div className="border-grayScale4 bg-grayScale8 sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[52px] sm-top:py-[44px] absolute flex w-[calc(100%-40px)] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid p-[30px] lg:w-full lg:max-w-[804px] lg:p-[52px] " onClick={e => e.stopPropagation()}>
10
+ <Image src={modalIcon} alt="check" width={40} height={48.9} className="sm-top:h-[68.44px] sm-top:w-[56px] h-[48.9px] w-[40px] lg:h-[88px] lg:w-[72px]"/>
11
+ <p className="body_large1_mo sm-top:body_large1_tb sm-top: lg:body_large1 sm-top:mt-[20px] mt-[16.11px] lg:mt-[36px]">
11
12
  사건문의 작성이 완료되었습니다.
12
13
  </p>
13
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 mt-[8px] text-center text-grayScale3 sm-top:mt-[16px] lg:mt-[20px]">
14
+ <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 text-grayScale3 sm-top:mt-[16px] mt-[8px] text-center lg:mt-[20px]">
14
15
  문의에 대한 답변은 평균 1일 정도 소요될 예정입니다.
15
16
  </p>
16
- <button className={`mt-[20px] h-[48px] w-full rounded-[4px] bg-grayScale1 sm-top:mt-[40px] sm-top:h-[60px] sm-top:rounded-[8px] lg:mt-[47px] lg:h-[72px] lg:rounded-[16px] `} onClick={() => {
17
+ <button className={`bg-grayScale1 sm-top:mt-[40px] sm-top:h-[60px] sm-top:rounded-[8px] mt-[20px] h-[48px] w-full rounded-[4px] lg:mt-[47px] lg:h-[72px] lg:rounded-[16px] `} onClick={() => {
17
18
  onClose();
18
19
  }}>
19
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">확인</p>
20
+ <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white" style={{ color: 'white' }}>
21
+ 확인
22
+ </p>
20
23
  </button>
21
24
  </div>
22
25
  </ModalContainer>);
@@ -1,9 +1,6 @@
1
1
  import Image from 'next/image';
2
2
  import ModalContainer from './ModalCotainer';
3
- import TextArea from '../_textarea/TextArea';
4
- import { useEffect, useState } from 'react';
5
- import { actionPostMyCaseQuestion } from '../../../_actions/action';
6
- import Loading from '../../../_component/_loading/Loading';
3
+ import modalIcon from '../../../../../../asset/images/myCase/icon/modal_icon.webp';
7
4
 
8
5
  const CaseInquiryConfirmModal = ({
9
6
  isOpen,
@@ -25,29 +22,34 @@ const CaseInquiryConfirmModal = ({
25
22
  }}
26
23
  >
27
24
  <div
28
- className="absolute flex w-[calc(100%-40px)] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid border-grayScale4 bg-grayScale8 p-[30px] sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[52px] sm-top:py-[44px] lg:w-full lg:max-w-[804px] lg:p-[52px] "
25
+ className="border-grayScale4 bg-grayScale8 sm-top:w-[calc(100%-252px)] sm-top:max-w-[648px] sm-top:rounded-[24px] sm-top:px-[52px] sm-top:py-[44px] absolute flex w-[calc(100%-40px)] flex-col items-center justify-center overflow-y-auto rounded-[12px] border border-solid p-[30px] lg:w-full lg:max-w-[804px] lg:p-[52px] "
29
26
  onClick={e => e.stopPropagation()}
30
27
  >
31
28
  <Image
32
- src="/images/mycase/icon/modal_icon.webp"
29
+ src={modalIcon}
33
30
  alt="check"
34
31
  width={40}
35
32
  height={48.9}
36
- className="h-[48.9px] w-[40px] sm-top:h-[68.44px] sm-top:w-[56px] lg:h-[88px] lg:w-[72px]"
33
+ className="sm-top:h-[68.44px] sm-top:w-[56px] h-[48.9px] w-[40px] lg:h-[88px] lg:w-[72px]"
37
34
  />
38
- <p className="body_large1_mo sm-top:body_large1_tb sm-top: lg:body_large1 mt-[16.11px] sm-top:mt-[20px] lg:mt-[36px]">
35
+ <p className="body_large1_mo sm-top:body_large1_tb sm-top: lg:body_large1 sm-top:mt-[20px] mt-[16.11px] lg:mt-[36px]">
39
36
  사건문의 작성이 완료되었습니다.
40
37
  </p>
41
- <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 mt-[8px] text-center text-grayScale3 sm-top:mt-[16px] lg:mt-[20px]">
38
+ <p className="body_medium2_mo sm-top:body_medium2_tb lg:body_medium2 text-grayScale3 sm-top:mt-[16px] mt-[8px] text-center lg:mt-[20px]">
42
39
  문의에 대한 답변은 평균 1일 정도 소요될 예정입니다.
43
40
  </p>
44
41
  <button
45
- className={`mt-[20px] h-[48px] w-full rounded-[4px] bg-grayScale1 sm-top:mt-[40px] sm-top:h-[60px] sm-top:rounded-[8px] lg:mt-[47px] lg:h-[72px] lg:rounded-[16px] `}
42
+ className={`bg-grayScale1 sm-top:mt-[40px] sm-top:h-[60px] sm-top:rounded-[8px] mt-[20px] h-[48px] w-full rounded-[4px] lg:mt-[47px] lg:h-[72px] lg:rounded-[16px] `}
46
43
  onClick={() => {
47
44
  onClose();
48
45
  }}
49
46
  >
50
- <p className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white">확인</p>
47
+ <p
48
+ className="body_large2_mo sm-top:body_large2_tb lg:body_large2 text-white"
49
+ style={{ color: 'white' }}
50
+ >
51
+ 확인
52
+ </p>
51
53
  </button>
52
54
  </div>
53
55
  </ModalContainer>
@@ -1,7 +1,9 @@
1
1
  import { twMerge } from 'tailwind-merge';
2
2
  const SubMenuButton = ({ onClick, title, isSelected, outerClassName }) => {
3
- return (<button className={twMerge(`swiper-slide sm-top:h-[39px] sm-top:px-[16px] sm-top:body_large2_tb lg:body_medium2 flex h-[34px] w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 lg:h-[41px] lg:px-[20px] ${isSelected ? 'bg-grayScale1' : 'bg-transparent'}`, outerClassName)} onClick={onClick}>
4
- <p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 ${isSelected ? 'text-white' : 'text-black'}`}>
3
+ return (<button className={twMerge(` sm-top:h-[39px] sm-top:px-[16px] sm-top:body_large2_tb lg:body_medium2 flex h-[34px] w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 lg:h-[41px] lg:px-[20px] ${isSelected ? 'bg-grayScale1' : 'bg-transparent'}`, outerClassName)} onClick={onClick}>
4
+ <p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 `} style={{
5
+ color: isSelected ? 'white' : 'black'
6
+ }}>
5
7
  {title}
6
8
  </p>
7
9
  </button>);
@@ -14,13 +14,18 @@ const SubMenuButton = ({
14
14
  return (
15
15
  <button
16
16
  className={twMerge(
17
- `swiper-slide sm-top:h-[39px] sm-top:px-[16px] sm-top:body_large2_tb lg:body_medium2 flex h-[34px] w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 lg:h-[41px] lg:px-[20px] ${isSelected ? 'bg-grayScale1' : 'bg-transparent'}`,
17
+ ` sm-top:h-[39px] sm-top:px-[16px] sm-top:body_large2_tb lg:body_medium2 flex h-[34px] w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 lg:h-[41px] lg:px-[20px] ${
18
+ isSelected ? 'bg-grayScale1' : 'bg-transparent'
19
+ }`,
18
20
  outerClassName
19
21
  )}
20
22
  onClick={onClick}
21
23
  >
22
24
  <p
23
- className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 ${isSelected ? 'text-white' : 'text-black'}`}
25
+ className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 `}
26
+ style={{
27
+ color: isSelected ? 'white' : 'black'
28
+ }}
24
29
  >
25
30
  {title}
26
31
  </p>
@@ -1762,10 +1762,6 @@ video {
1762
1762
  max-height: 290px;
1763
1763
  }
1764
1764
 
1765
- .max-h-\[568px\] {
1766
- max-height: 568px;
1767
- }
1768
-
1769
1765
  .max-h-\[600px\] {
1770
1766
  max-height: 600px;
1771
1767
  }
@@ -3859,6 +3855,10 @@ video {
3859
3855
  line-height: 17px;
3860
3856
  }
3861
3857
 
3858
+ .leading-\[18px\] {
3859
+ line-height: 18px;
3860
+ }
3861
+
3862
3862
  .leading-\[1\] {
3863
3863
  line-height: 1;
3864
3864
  }
@@ -9357,6 +9357,14 @@ body {
9357
9357
  .sm-top\:text-\[16px\] {
9358
9358
  font-size: 16px;
9359
9359
  }
9360
+
9361
+ .sm-top\:leading-\[23px\] {
9362
+ line-height: 23px;
9363
+ }
9364
+
9365
+ .sm-top\:leading-\[25px\] {
9366
+ line-height: 25px;
9367
+ }
9360
9368
  }
9361
9369
 
9362
9370
  @media (min-width: 768px) {
@@ -9996,6 +10004,14 @@ body {
9996
10004
  font-size: 32px;
9997
10005
  }
9998
10006
 
10007
+ .lg\:leading-\[25px\] {
10008
+ line-height: 25px;
10009
+ }
10010
+
10011
+ .lg\:leading-\[30px\] {
10012
+ line-height: 30px;
10013
+ }
10014
+
9999
10015
  .lg\:transition-all {
10000
10016
  transition-property: all;
10001
10017
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);