@daeryun/dr_components 1.2.37 → 1.2.39

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.
Files changed (51) hide show
  1. package/dist/components/Footer/index.d.ts +3 -1
  2. package/dist/components/Footer/index.jsx +25 -12
  3. package/dist/components/Footer/index.tsx +39 -9
  4. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.jsx +16 -4
  5. package/dist/components/GlobalOfficeSection/GlobalOfficeSection.tsx +26 -6
  6. package/dist/components/Header/PcHeader.jsx +1 -1
  7. package/dist/components/Header/PcHeader.tsx +1 -1
  8. package/dist/components/ViewMoreSection/ViewMoreSection.jsx +4 -0
  9. package/dist/components/ViewMoreSection/ViewMoreSection.tsx +4 -0
  10. package/dist/components/categoryView/CategoryComponent.jsx +6 -1
  11. package/dist/components/categoryView/CategoryComponent.tsx +9 -1
  12. package/dist/components/common/hook/index.d.ts +1 -0
  13. package/dist/components/common/hook/index.js +1 -0
  14. package/dist/components/common/hook/index.ts +1 -0
  15. package/dist/components/common/hook/useIsApp.d.ts +2 -0
  16. package/dist/components/common/hook/useIsApp.js +22 -0
  17. package/dist/components/common/hook/useIsApp.ts +29 -0
  18. package/dist/components/hook/useIsApp.d.ts +2 -0
  19. package/dist/components/hook/useIsApp.js +22 -0
  20. package/dist/components/hook/useIsApp.ts +29 -0
  21. package/dist/components/page/Consult/Consult.jsx +232 -222
  22. package/dist/components/page/Consult/Consult.tsx +598 -599
  23. package/dist/components/page/Consulting/Consulting.jsx +39 -39
  24. package/dist/components/page/Consulting/Consulting.tsx +51 -51
  25. package/dist/components/page/Integrate/Broadcast.d.ts +1 -0
  26. package/dist/components/page/Integrate/Broadcast.jsx +3 -2
  27. package/dist/components/page/Integrate/Broadcast.tsx +6 -2
  28. package/dist/components/page/Integrate/Field.d.ts +1 -0
  29. package/dist/components/page/Integrate/Field.jsx +5 -2
  30. package/dist/components/page/Integrate/Field.tsx +9 -2
  31. package/dist/components/page/Integrate/LawInfo.d.ts +1 -0
  32. package/dist/components/page/Integrate/LawInfo.jsx +5 -2
  33. package/dist/components/page/Integrate/LawInfo.tsx +8 -2
  34. package/dist/components/page/Integrate/Reply.d.ts +1 -0
  35. package/dist/components/page/Integrate/Reply.jsx +8 -6
  36. package/dist/components/page/Integrate/Reply.tsx +10 -8
  37. package/dist/components/page/Integrate/SearchData.jsx +8 -6
  38. package/dist/components/page/Integrate/SearchData.tsx +8 -0
  39. package/dist/components/page/Integrate/Success.d.ts +1 -0
  40. package/dist/components/page/Integrate/Success.jsx +7 -4
  41. package/dist/components/page/Integrate/Success.tsx +10 -5
  42. package/dist/components/page/Integrate/Trend.d.ts +1 -0
  43. package/dist/components/page/Integrate/Trend.jsx +5 -2
  44. package/dist/components/page/Integrate/Trend.tsx +7 -2
  45. package/dist/components/page/MapPage/MobileMapKeyDetail.jsx +6 -1
  46. package/dist/components/page/MapPage/MobileMapKeyDetail.tsx +9 -1
  47. package/dist/components/page/MapPage/PcMapKeyDetail.jsx +6 -1
  48. package/dist/components/page/MapPage/PcMapKeyDetail.tsx +9 -1
  49. package/dist/styles/globals.css +30 -8
  50. package/dist/tsconfig.tsbuildinfo +1 -1
  51. package/package.json +1 -1
@@ -6,6 +6,7 @@ import { IListPagesType, IListTypes, ISuccessTypes } from './integrateType';
6
6
  import { Title } from './Title';
7
7
  import { ViewMore } from './ViewMore';
8
8
  import { searchColorText } from '../../common/integrate';
9
+ import useIsApp from '../../hook/useIsApp';
9
10
 
10
11
  const Success = (props: {
11
12
  isMobileSize: boolean | null;
@@ -26,8 +27,9 @@ const Success = (props: {
26
27
  trend: number;
27
28
  };
28
29
  loading: boolean;
30
+ isApp: boolean;
29
31
  }) => {
30
- const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading } = props;
32
+ const { tab, onMoreViewText, list, pages, onMoreView, search, listCount, isMobileSize, loading, isApp } = props;
31
33
 
32
34
  const [allTabPage, setAllTabPage] = useState<number>(0);
33
35
  const [allTabList, setAllTabList] = useState<ISuccessTypes[]>([]);
@@ -84,11 +86,14 @@ const Success = (props: {
84
86
  {(tab === '전체' ? allTabList : list.successList).map((item, index) => {
85
87
  return (
86
88
  <Link
87
- href={
88
- !item.center_code.includes('OF')
89
+ href={{
90
+ pathname: !item.center_code.includes('OF')
89
91
  ? item.pathname + 'success_new/' + item.id
90
- : `https://${item.office_pathname}/success_new/${item.id}`
91
- }
92
+ : `https://${item.office_pathname}/success_new/${item.id}`,
93
+ query: {
94
+ ...(isApp ? { isApp: true } : {})
95
+ }
96
+ }}
92
97
  target={item.center_code === props.center_code ? '' : '_blank'}
93
98
  className={
94
99
  ' overflow-hidden border-[2px] border-solid border-[#ebebebcc]'
@@ -18,5 +18,6 @@ declare const Trend: (props: {
18
18
  trend: number;
19
19
  };
20
20
  loading: boolean;
21
+ isApp: boolean;
21
22
  }) => React.JSX.Element;
22
23
  export default Trend;
@@ -6,7 +6,7 @@ import { Title } from './Title';
6
6
  import { ViewMore } from './ViewMore';
7
7
  import { searchColorText } from '../../common/integrate';
8
8
  const Trend = (props) => {
9
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
9
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
10
10
  const [allTabPage, setAllTabPage] = useState(0);
11
11
  const [allTabList, setAllTabList] = useState([]);
12
12
  const getAllPage = () => {
@@ -41,7 +41,10 @@ const Trend = (props) => {
41
41
  <div className={'mb-9 mt-8 grid gap-[18px] sm:grid-cols-2'}>
42
42
  {(tab === '전체' ? allTabList : list.trendList).map((item, index) => {
43
43
  const title = item.title.split('|');
44
- return (<Link target={'_blank'} href={'https://www.daeryunlaw.com/trend/' + item.idx} key={'trend' + item.idx} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
44
+ return (<Link target={'_blank'} href={{
45
+ pathname: `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/trend/` +
46
+ item.idx
47
+ }} key={'trend' + item.idx} className={'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '}>
45
48
  <p className={'line-clamp-2 h-[70px] text-[20px] font-[800] text-[#285FA7] max-xs:h-[60px] max-xs:text-[18px] sm:text-[22px]'}>
46
49
  {title.length > 1 ? (<>
47
50
  {title[0]}
@@ -25,8 +25,9 @@ const Trend = (props: {
25
25
  trend: number;
26
26
  };
27
27
  loading: boolean;
28
+ isApp: boolean;
28
29
  }) => {
29
- const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading } = props;
30
+ const { tab, onMoreViewText, list, pages, onMoreView, search, isMobileSize, listCount, loading, isApp } = props;
30
31
 
31
32
  const [allTabPage, setAllTabPage] = useState<number>(0);
32
33
  const [allTabList, setAllTabList] = useState<ITrendTypes[]>([]);
@@ -85,7 +86,11 @@ const Trend = (props: {
85
86
  return (
86
87
  <Link
87
88
  target={'_blank'}
88
- href={'https://www.daeryunlaw.com/trend/' + item.idx}
89
+ href={{
90
+ pathname:
91
+ `https://${isApp ? 'mysjkp' : 'www'}.daeryunlaw.com/trend/` +
92
+ item.idx
93
+ }}
89
94
  key={'trend' + item.idx}
90
95
  className={
91
96
  'flex h-[280px] flex-col border-[5px] border-solid border-[#EAEAEA] p-7 max-xs:h-[190px] max-xs:p-4 sm:p-8 '
@@ -6,8 +6,10 @@ import imgExpand from '../../../asset/images/map/expand.webp';
6
6
  import imgMap from '../../../asset/images/map/map.webp';
7
7
  import imgShare from '../../../asset/images/map/share.webp';
8
8
  import imgYoutube from '../../../asset/images/map/youtube.webp';
9
+ import useIsApp from '../../hook/useIsApp';
9
10
  const MobileMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, targetRef }) => {
10
11
  var _a, _b, _c;
12
+ const isApp = useIsApp();
11
13
  return (<div ref={targetRef} className="block md:mt-[5%] lg:hidden">
12
14
  <div className="border-b-[1px] border-solid border-[#285FA7] py-7">
13
15
  <div className="flex flex-col gap-4 md:flex-row">
@@ -16,7 +18,10 @@ const MobileMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare,
16
18
  <h2 className="break-keep text-[18px] font-[800] text-[#0D2B52] md:text-[18px] lg:text-[28px]">
17
19
  {mapInfo.title}
18
20
  </h2>
19
- {mapInfo.domain && (<Link href={`https://${mapInfo.domain}`} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]">
21
+ {mapInfo.domain && (<Link href={{
22
+ pathname: `https://${mapInfo.domain}`,
23
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
24
+ }} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]">
20
25
  <span className="relative block aspect-square w-[37px] rounded-full bg-[#0D2B52] group-hover:bg-[#fff] max-xl:w-[35px]">
21
26
  <IconHome className="scale-[.65] fill-[#fff] group-hover:fill-[#0D2B52]"/>
22
27
  </span>
@@ -9,6 +9,7 @@ import imgMap from '../../../asset/images/map/map.webp';
9
9
  import imgShare from '../../../asset/images/map/share.webp';
10
10
  import imgYoutube from '../../../asset/images/map/youtube.webp';
11
11
  import { ForwardedRef } from 'react';
12
+ import useIsApp from '../../hook/useIsApp';
12
13
 
13
14
  const MobileMapKeyDetail = ({
14
15
  h1Title,
@@ -25,6 +26,8 @@ const MobileMapKeyDetail = ({
25
26
  mapShare: (item: IMap) => Promise<void>;
26
27
  targetRef: ForwardedRef<HTMLDivElement>;
27
28
  }) => {
29
+ const isApp = useIsApp();
30
+
28
31
  return (
29
32
  <div ref={targetRef} className="block md:mt-[5%] lg:hidden">
30
33
  <div className="border-b-[1px] border-solid border-[#285FA7] py-7">
@@ -36,7 +39,12 @@ const MobileMapKeyDetail = ({
36
39
  </h2>
37
40
  {mapInfo.domain && (
38
41
  <Link
39
- href={`https://${mapInfo.domain}`}
42
+ href={{
43
+ pathname: `https://${mapInfo.domain}`,
44
+ query: {
45
+ ...(isApp ? { isApp: true } : {})
46
+ }
47
+ }}
40
48
  target="_blank"
41
49
  className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px] max-md:mb-[20px] max-md:mt-[10px] max-md:h-[50px] max-md:w-[155px]"
42
50
  >
@@ -6,8 +6,10 @@ import imgExpand from '../../../asset/images/map/expand.webp';
6
6
  import imgMap from '../../../asset/images/map/map.webp';
7
7
  import imgShare from '../../../asset/images/map/share.webp';
8
8
  import imgYoutube from '../../../asset/images/map/youtube.webp';
9
+ import useIsApp from '../../hook/useIsApp';
9
10
  const PcMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, targetRef }) => {
10
11
  var _a, _b, _c;
12
+ const isApp = useIsApp();
11
13
  return (<div ref={targetRef} className="hidden border-b-[1px] border-solid border-[#285FA7] py-14 lg:block">
12
14
  <div className="flex gap-10">
13
15
  <div className="w-[35%] text-center">
@@ -15,7 +17,10 @@ const PcMapKeyDetail = ({ h1Title, mapInfo, setShowModal, mapPath, mapShare, tar
15
17
  <h2 className="break-keep font-[800] text-[#0D2B52] md:text-[20px] lg:text-[22px]">
16
18
  {mapInfo.title}
17
19
  </h2>
18
- {mapInfo.domain && (<Link href={`https://${mapInfo.domain}`} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]">
20
+ {mapInfo.domain && (<Link href={{
21
+ pathname: `https://${mapInfo.domain}`,
22
+ query: Object.assign({}, (isApp ? { isApp: true } : {}))
23
+ }} target="_blank" className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]">
19
24
  <span className="relative block aspect-square w-[37px] rounded-full bg-[#0D2B52] group-hover:bg-[#fff] max-xl:w-[35px]">
20
25
  <IconHome className="scale-[.65] fill-[#fff] group-hover:fill-[#0D2B52]"/>
21
26
  </span>
@@ -8,6 +8,7 @@ import imgExpand from '../../../asset/images/map/expand.webp';
8
8
  import imgMap from '../../../asset/images/map/map.webp';
9
9
  import imgShare from '../../../asset/images/map/share.webp';
10
10
  import imgYoutube from '../../../asset/images/map/youtube.webp';
11
+ import useIsApp from '../../hook/useIsApp';
11
12
 
12
13
  const PcMapKeyDetail = ({
13
14
  h1Title,
@@ -24,6 +25,8 @@ const PcMapKeyDetail = ({
24
25
  mapShare: (item: IMap) => Promise<void>;
25
26
  targetRef: ForwardedRef<HTMLDivElement>;
26
27
  }) => {
28
+ const isApp = useIsApp();
29
+
27
30
  return (
28
31
  <div ref={targetRef} className="hidden border-b-[1px] border-solid border-[#285FA7] py-14 lg:block">
29
32
  <div className="flex gap-10">
@@ -34,7 +37,12 @@ const PcMapKeyDetail = ({
34
37
  </h2>
35
38
  {mapInfo.domain && (
36
39
  <Link
37
- href={`https://${mapInfo.domain}`}
40
+ href={{
41
+ pathname: `https://${mapInfo.domain}`,
42
+ query: {
43
+ ...(isApp ? { isApp: true } : {})
44
+ }
45
+ }}
38
46
  target="_blank"
39
47
  className="group mx-auto mt-[30px] flex h-[70px] w-[200px] items-center justify-between rounded-[12px] border-[1px] border-solid border-[#0D2B52] px-[15px] hover:bg-[#0D2B52] max-xl:h-[60px] max-xl:w-[170px] max-xl:px-[10px]"
40
48
  >
@@ -1653,10 +1653,6 @@ html {
1653
1653
  margin-bottom: 1px;
1654
1654
  }
1655
1655
 
1656
- .mb-\[200px\] {
1657
- margin-bottom: 200px;
1658
- }
1659
-
1660
1656
  .mb-\[20px\] {
1661
1657
  margin-bottom: 20px;
1662
1658
  }
@@ -11218,6 +11214,10 @@ body {
11218
11214
  font-size: 28px;
11219
11215
  }
11220
11216
 
11217
+ .max-5xl\:text-\[32px\] {
11218
+ font-size: 32px;
11219
+ }
11220
+
11221
11221
  .max-5xl\:text-\[70px\] {
11222
11222
  font-size: 70px;
11223
11223
  }
@@ -15899,6 +15899,10 @@ body {
15899
15899
  margin-bottom: 30px;
15900
15900
  }
15901
15901
 
15902
+ .max-md\:mb-\[50px\] {
15903
+ margin-bottom: 50px;
15904
+ }
15905
+
15902
15906
  .max-md\:mb-\[7px\] {
15903
15907
  margin-bottom: 7px;
15904
15908
  }
@@ -16524,6 +16528,10 @@ body {
16524
16528
  flex-direction: row;
16525
16529
  }
16526
16530
 
16531
+ .max-md\:flex-row-reverse {
16532
+ flex-direction: row-reverse;
16533
+ }
16534
+
16527
16535
  .max-md\:flex-col {
16528
16536
  flex-direction: column;
16529
16537
  }
@@ -16532,6 +16540,10 @@ body {
16532
16540
  align-items: flex-start;
16533
16541
  }
16534
16542
 
16543
+ .max-md\:items-end {
16544
+ align-items: flex-end;
16545
+ }
16546
+
16535
16547
  .max-md\:items-center {
16536
16548
  align-items: center;
16537
16549
  }
@@ -16548,6 +16560,10 @@ body {
16548
16560
  justify-content: center;
16549
16561
  }
16550
16562
 
16563
+ .max-md\:justify-between {
16564
+ justify-content: space-between;
16565
+ }
16566
+
16551
16567
  .max-md\:gap-0 {
16552
16568
  gap: 0px;
16553
16569
  }
@@ -17408,6 +17424,11 @@ body {
17408
17424
  margin-bottom: 2.5rem;
17409
17425
  }
17410
17426
 
17427
+ .max-sm\:my-\[70px\] {
17428
+ margin-top: 70px;
17429
+ margin-bottom: 70px;
17430
+ }
17431
+
17411
17432
  .max-sm\:my-\[80px\] {
17412
17433
  margin-top: 80px;
17413
17434
  margin-bottom: 80px;
@@ -18937,6 +18958,11 @@ body {
18937
18958
  margin-right: auto;
18938
18959
  }
18939
18960
 
18961
+ .max-xs\:my-10 {
18962
+ margin-top: 2.5rem;
18963
+ margin-bottom: 2.5rem;
18964
+ }
18965
+
18940
18966
  .max-xs\:my-\[11px\] {
18941
18967
  margin-top: 11px;
18942
18968
  margin-bottom: 11px;
@@ -18995,10 +19021,6 @@ body {
18995
19021
  margin-bottom: 60px;
18996
19022
  }
18997
19023
 
18998
- .max-xs\:mb-\[70px\] {
18999
- margin-bottom: 70px;
19000
- }
19001
-
19002
19024
  .max-xs\:ml-\[3px\] {
19003
19025
  margin-left: 3px;
19004
19026
  }