@daeryun/dr_components 0.6.62 → 0.6.64
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.
|
@@ -2,51 +2,39 @@ import React from 'react';
|
|
|
2
2
|
import Image from 'next/image';
|
|
3
3
|
const OptionalCheckBox = ({ title, cautionTitle, isContent, checked, name, setModal, parentIndex, optionalItemList, handleButton }) => {
|
|
4
4
|
const imagePath = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
5
|
-
return (<div className={'flex flex-col gap-[24px] ' + ' max-
|
|
5
|
+
return (<div className={'flex flex-col gap-[24px] ' + ' max-lg:gap-[0px] ' + ' max-md:gap-[0px] '}>
|
|
6
6
|
<div className={'flex w-full flex-row justify-between '}>
|
|
7
|
-
<button onClick={handleButton} type={'button'} name={name} data-idx={parentIndex} className={'w-[calc(100%-34px)]] flex flex-row items-center gap-[20px] ' + ' max-
|
|
7
|
+
<button onClick={handleButton} type={'button'} name={name} data-idx={parentIndex} className={'w-[calc(100%-34px)]] flex flex-row items-center gap-[20px] ' + ' max-lg:gap-[12px] '}>
|
|
8
8
|
{checked ? (<span className={' flex items-center justify-center ' +
|
|
9
9
|
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
10
10
|
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
11
11
|
' max-sm:h-[16px] max-sm:w-[16px] '}>
|
|
12
12
|
<Image src={`${imagePath}/common-login/check box.svg`} alt={'check box'} height={100} width={100} className={`h-full w-full`}/>
|
|
13
13
|
</span>) : (<span className={' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
14
|
-
' max-
|
|
14
|
+
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
15
15
|
' max-sm:h-[16px] max-sm:w-[16px] '}></span>)}
|
|
16
|
-
<span className={` body_medium2 ` + ' max-
|
|
16
|
+
<span className={` body_medium2 ` + ' max-lg:body_medium2_tb ' + ' max-sm:body_medium2_mo '}>
|
|
17
17
|
{title}
|
|
18
18
|
</span>
|
|
19
|
-
<span className={' body_small2 text-[#AE0E36] ' + ' max-
|
|
19
|
+
<span className={' body_small2 text-[#AE0E36] ' + ' max-lg:body_small2_tb ' + ' max-lg:hidden '}>
|
|
20
20
|
{cautionTitle}
|
|
21
21
|
</span>
|
|
22
22
|
</button>
|
|
23
|
-
{/*{isContent && (*/}
|
|
24
|
-
{/* <button*/}
|
|
25
|
-
{/* type={'button'}*/}
|
|
26
|
-
{/* onClick={setModal}*/}
|
|
27
|
-
{/* className={*/}
|
|
28
|
-
{/* ' underline-[#606060] text-[#606060] underline underline-offset-2 ' +*/}
|
|
29
|
-
{/* ' body_small2 ' +*/}
|
|
30
|
-
{/* ' max-md2:body_small2_tb ' +*/}
|
|
31
|
-
{/* ' max-sm:body_small2_mo '*/}
|
|
32
|
-
{/* }*/}
|
|
33
|
-
{/* >*/}
|
|
34
|
-
{/* 보기*/}
|
|
35
|
-
{/* </button>*/}
|
|
36
|
-
{/*)}*/}
|
|
37
23
|
</div>
|
|
38
|
-
|
|
24
|
+
{/* */}
|
|
25
|
+
<div className={' lg:hidden ' +
|
|
39
26
|
' ml-[44px] mt-[12px] flex items-center ' +
|
|
40
27
|
' max-md:ml-[32px] ' +
|
|
41
28
|
' max-sm:ml-[26px] '}>
|
|
42
|
-
<span className={' body_small2_mo text-[#AE0E36] '}>{cautionTitle}</span>
|
|
29
|
+
<span className={' body_small2_mo max-lg:body_small2_tb text-[#AE0E36] '}>{cautionTitle}</span>
|
|
43
30
|
</div>
|
|
31
|
+
{/* 알림,SNS 선택 등 */}
|
|
44
32
|
<div className={' ml-[44px] flex flex-row gap-[36px] ' +
|
|
45
|
-
' max-
|
|
33
|
+
' max-lg:-[32px] max-lg:mt-[23px] max-lg:gap-[23px] ' +
|
|
46
34
|
' max-md:grid max-md:grid-cols-2 max-md:grid-rows-2 max-md:gap-x-[8px] max-md:gap-y-[30px] max-sm:ml-[26px] max-sm:mt-[30px] '}>
|
|
47
35
|
{optionalItemList.map((item, index) => {
|
|
48
36
|
return (<button key={index} onClick={handleButton} name={item.name} data-parentidx={parentIndex} data-idx={index} type={'button'} value={item.value} className={' flex flex-row items-center gap-[20px] ' +
|
|
49
|
-
' max-
|
|
37
|
+
' max-lg:gap-[12px] ' +
|
|
50
38
|
' max-md:gap-[10px] '}>
|
|
51
39
|
{item.checked ? (<span className={' flex items-center justify-center ' +
|
|
52
40
|
' h-[24px] w-[24px] rounded-[28px] ' +
|
|
@@ -54,10 +42,10 @@ const OptionalCheckBox = ({ title, cautionTitle, isContent, checked, name, setMo
|
|
|
54
42
|
' max-sm:h-[16px] max-sm:w-[16px] '}>
|
|
55
43
|
<Image src={`${imagePath}/common-login/check box.svg`} alt={'check box'} height={100} width={100} className={`h-full w-full`}/>
|
|
56
44
|
</span>) : (<span className={' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
57
|
-
' max-
|
|
45
|
+
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
58
46
|
' max-sm:h-[16px] max-sm:w-[16px] '}></span>)}
|
|
59
47
|
<span className={' body_medium2 text-black ' +
|
|
60
|
-
' max-
|
|
48
|
+
' max-lg:body_medium2_tb ' +
|
|
61
49
|
' max-sm:body_medium2_mo '}>
|
|
62
50
|
{item.title}
|
|
63
51
|
</span>
|
|
@@ -25,14 +25,14 @@ const OptionalCheckBox = ({
|
|
|
25
25
|
}) => {
|
|
26
26
|
const imagePath: string = process.env.NEXT_PUBLIC_S3_URL + '';
|
|
27
27
|
return (
|
|
28
|
-
<div className={'flex flex-col gap-[24px] ' + ' max-
|
|
28
|
+
<div className={'flex flex-col gap-[24px] ' + ' max-lg:gap-[0px] ' + ' max-md:gap-[0px] '}>
|
|
29
29
|
<div className={'flex w-full flex-row justify-between '}>
|
|
30
30
|
<button
|
|
31
31
|
onClick={handleButton}
|
|
32
32
|
type={'button'}
|
|
33
33
|
name={name}
|
|
34
34
|
data-idx={parentIndex}
|
|
35
|
-
className={'w-[calc(100%-34px)]] flex flex-row items-center gap-[20px] ' + ' max-
|
|
35
|
+
className={'w-[calc(100%-34px)]] flex flex-row items-center gap-[20px] ' + ' max-lg:gap-[12px] '}
|
|
36
36
|
>
|
|
37
37
|
{checked ? (
|
|
38
38
|
<span
|
|
@@ -55,47 +55,35 @@ const OptionalCheckBox = ({
|
|
|
55
55
|
<span
|
|
56
56
|
className={
|
|
57
57
|
' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
58
|
-
' max-
|
|
58
|
+
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
59
59
|
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
60
60
|
}
|
|
61
61
|
></span>
|
|
62
62
|
)}
|
|
63
|
-
<span className={` body_medium2 ` + ' max-
|
|
63
|
+
<span className={` body_medium2 ` + ' max-lg:body_medium2_tb ' + ' max-sm:body_medium2_mo '}>
|
|
64
64
|
{title}
|
|
65
65
|
</span>
|
|
66
|
-
<span className={' body_small2 text-[#AE0E36] ' + ' max-
|
|
66
|
+
<span className={' body_small2 text-[#AE0E36] ' + ' max-lg:body_small2_tb ' + ' max-lg:hidden '}>
|
|
67
67
|
{cautionTitle}
|
|
68
68
|
</span>
|
|
69
69
|
</button>
|
|
70
|
-
{/*{isContent && (*/}
|
|
71
|
-
{/* <button*/}
|
|
72
|
-
{/* type={'button'}*/}
|
|
73
|
-
{/* onClick={setModal}*/}
|
|
74
|
-
{/* className={*/}
|
|
75
|
-
{/* ' underline-[#606060] text-[#606060] underline underline-offset-2 ' +*/}
|
|
76
|
-
{/* ' body_small2 ' +*/}
|
|
77
|
-
{/* ' max-md2:body_small2_tb ' +*/}
|
|
78
|
-
{/* ' max-sm:body_small2_mo '*/}
|
|
79
|
-
{/* }*/}
|
|
80
|
-
{/* >*/}
|
|
81
|
-
{/* 보기*/}
|
|
82
|
-
{/* </button>*/}
|
|
83
|
-
{/*)}*/}
|
|
84
70
|
</div>
|
|
71
|
+
{/* */}
|
|
85
72
|
<div
|
|
86
73
|
className={
|
|
87
|
-
'
|
|
74
|
+
' lg:hidden ' +
|
|
88
75
|
' ml-[44px] mt-[12px] flex items-center ' +
|
|
89
76
|
' max-md:ml-[32px] ' +
|
|
90
77
|
' max-sm:ml-[26px] '
|
|
91
78
|
}
|
|
92
79
|
>
|
|
93
|
-
<span className={' body_small2_mo text-[#AE0E36] '}>{cautionTitle}</span>
|
|
80
|
+
<span className={' body_small2_mo max-lg:body_small2_tb text-[#AE0E36] '}>{cautionTitle}</span>
|
|
94
81
|
</div>
|
|
82
|
+
{/* 알림,SNS 선택 등 */}
|
|
95
83
|
<div
|
|
96
84
|
className={
|
|
97
85
|
' ml-[44px] flex flex-row gap-[36px] ' +
|
|
98
|
-
' max-
|
|
86
|
+
' max-lg:-[32px] max-lg:mt-[23px] max-lg:gap-[23px] ' +
|
|
99
87
|
' max-md:grid max-md:grid-cols-2 max-md:grid-rows-2 max-md:gap-x-[8px] max-md:gap-y-[30px] max-sm:ml-[26px] max-sm:mt-[30px] '
|
|
100
88
|
}
|
|
101
89
|
>
|
|
@@ -111,7 +99,7 @@ const OptionalCheckBox = ({
|
|
|
111
99
|
value={item.value}
|
|
112
100
|
className={
|
|
113
101
|
' flex flex-row items-center gap-[20px] ' +
|
|
114
|
-
' max-
|
|
102
|
+
' max-lg:gap-[12px] ' +
|
|
115
103
|
' max-md:gap-[10px] '
|
|
116
104
|
}
|
|
117
105
|
>
|
|
@@ -136,7 +124,7 @@ const OptionalCheckBox = ({
|
|
|
136
124
|
<span
|
|
137
125
|
className={
|
|
138
126
|
' h-[24px] w-[24px] rounded-[28px] border-[1px] border-solid border-[#B9B9B9] ' +
|
|
139
|
-
' max-
|
|
127
|
+
' max-lg:h-[20px] max-lg:w-[20px] ' +
|
|
140
128
|
' max-sm:h-[16px] max-sm:w-[16px] '
|
|
141
129
|
}
|
|
142
130
|
></span>
|
|
@@ -144,7 +132,7 @@ const OptionalCheckBox = ({
|
|
|
144
132
|
<span
|
|
145
133
|
className={
|
|
146
134
|
' body_medium2 text-black ' +
|
|
147
|
-
' max-
|
|
135
|
+
' max-lg:body_medium2_tb ' +
|
|
148
136
|
' max-sm:body_medium2_mo '
|
|
149
137
|
}
|
|
150
138
|
>
|
package/dist/styles/globals.css
CHANGED
|
@@ -6496,22 +6496,6 @@ body {
|
|
|
6496
6496
|
}
|
|
6497
6497
|
}
|
|
6498
6498
|
|
|
6499
|
-
@media not all and (min-width: 900px) {
|
|
6500
|
-
.max-md2\:body_medium2_tb {
|
|
6501
|
-
font-size: 20px;
|
|
6502
|
-
font-weight: 400;
|
|
6503
|
-
line-height: 1.4;
|
|
6504
|
-
letter-spacing: -0.8px;
|
|
6505
|
-
}
|
|
6506
|
-
|
|
6507
|
-
.max-md2\:body_small2_tb {
|
|
6508
|
-
font-size: 18px;
|
|
6509
|
-
font-weight: 400;
|
|
6510
|
-
line-height: 1.44;
|
|
6511
|
-
letter-spacing: -0.72px;
|
|
6512
|
-
}
|
|
6513
|
-
}
|
|
6514
|
-
|
|
6515
6499
|
@media not all and (min-width: 640px) {
|
|
6516
6500
|
.max-sm\:label_medium2 {
|
|
6517
6501
|
font-size: 16px;
|
|
@@ -9564,6 +9548,10 @@ body {
|
|
|
9564
9548
|
gap: 0.5rem;
|
|
9565
9549
|
}
|
|
9566
9550
|
|
|
9551
|
+
.max-lg\:gap-\[0px\] {
|
|
9552
|
+
gap: 0px;
|
|
9553
|
+
}
|
|
9554
|
+
|
|
9567
9555
|
.max-lg\:gap-\[12px\] {
|
|
9568
9556
|
gap: 12px;
|
|
9569
9557
|
}
|
|
@@ -9580,6 +9568,10 @@ body {
|
|
|
9580
9568
|
gap: 16px;
|
|
9581
9569
|
}
|
|
9582
9570
|
|
|
9571
|
+
.max-lg\:gap-\[23px\] {
|
|
9572
|
+
gap: 23px;
|
|
9573
|
+
}
|
|
9574
|
+
|
|
9583
9575
|
.max-lg\:gap-\[26px\] {
|
|
9584
9576
|
gap: 26px;
|
|
9585
9577
|
}
|
|
@@ -10011,10 +10003,6 @@ body {
|
|
|
10011
10003
|
margin-bottom: 5px;
|
|
10012
10004
|
}
|
|
10013
10005
|
|
|
10014
|
-
.max-md2\:mt-\[23px\] {
|
|
10015
|
-
margin-top: 23px;
|
|
10016
|
-
}
|
|
10017
|
-
|
|
10018
10006
|
.max-md2\:mt-\[30px\] {
|
|
10019
10007
|
margin-top: 30px;
|
|
10020
10008
|
}
|
|
@@ -10027,10 +10015,6 @@ body {
|
|
|
10027
10015
|
height: 3.5rem;
|
|
10028
10016
|
}
|
|
10029
10017
|
|
|
10030
|
-
.max-md2\:h-\[20px\] {
|
|
10031
|
-
height: 20px;
|
|
10032
|
-
}
|
|
10033
|
-
|
|
10034
10018
|
.max-md2\:h-\[300px\] {
|
|
10035
10019
|
height: 300px;
|
|
10036
10020
|
}
|
|
@@ -10071,10 +10055,6 @@ body {
|
|
|
10071
10055
|
width: 20%;
|
|
10072
10056
|
}
|
|
10073
10057
|
|
|
10074
|
-
.max-md2\:w-\[20px\] {
|
|
10075
|
-
width: 20px;
|
|
10076
|
-
}
|
|
10077
|
-
|
|
10078
10058
|
.max-md2\:w-\[65\%\] {
|
|
10079
10059
|
width: 65%;
|
|
10080
10060
|
}
|
|
@@ -10127,22 +10107,10 @@ body {
|
|
|
10127
10107
|
gap: 0.25rem;
|
|
10128
10108
|
}
|
|
10129
10109
|
|
|
10130
|
-
.max-md2\:gap-\[0px\] {
|
|
10131
|
-
gap: 0px;
|
|
10132
|
-
}
|
|
10133
|
-
|
|
10134
10110
|
.max-md2\:gap-\[10px\] {
|
|
10135
10111
|
gap: 10px;
|
|
10136
10112
|
}
|
|
10137
10113
|
|
|
10138
|
-
.max-md2\:gap-\[12px\] {
|
|
10139
|
-
gap: 12px;
|
|
10140
|
-
}
|
|
10141
|
-
|
|
10142
|
-
.max-md2\:gap-\[23px\] {
|
|
10143
|
-
gap: 23px;
|
|
10144
|
-
}
|
|
10145
|
-
|
|
10146
10114
|
.max-md2\:gap-\[30px\] {
|
|
10147
10115
|
gap: 30px;
|
|
10148
10116
|
}
|