@daeryun/dr_components 0.7.58 → 0.7.60

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.
@@ -1,12 +1,13 @@
1
+ import { StaticImageData } from 'next/image';
1
2
  interface LawfirmStepCardProps {
2
3
  fade: boolean;
3
4
  minStep: number;
4
5
  title: string;
5
6
  subtitle: string;
6
7
  tags: string[];
7
- image1: string;
8
- image2: string;
9
- imageMo: string;
8
+ image1: StaticImageData;
9
+ image2: StaticImageData;
10
+ imageMo: StaticImageData;
10
11
  divClass?: string;
11
12
  observeRef?: React.RefObject<HTMLDivElement>;
12
13
  }
@@ -1,4 +1,4 @@
1
- import Image from 'next/image';
1
+ import Image, { StaticImageData } from 'next/image';
2
2
 
3
3
  interface LawfirmStepCardProps {
4
4
  fade: boolean;
@@ -6,9 +6,9 @@ interface LawfirmStepCardProps {
6
6
  title: string;
7
7
  subtitle: string;
8
8
  tags: string[];
9
- image1: string;
10
- image2: string;
11
- imageMo: string;
9
+ image1: StaticImageData;
10
+ image2: StaticImageData;
11
+ imageMo: StaticImageData;
12
12
  divClass?: string;
13
13
  observeRef?: React.RefObject<HTMLDivElement>;
14
14
  }
@@ -1,12 +1,13 @@
1
+ import { StaticImageData } from 'next/image';
1
2
  interface LawfirmCardProps {
2
3
  title: React.ReactNode;
3
4
  label: string;
4
5
  description: React.ReactNode;
5
6
  compareLabel: string;
6
7
  compareDescription: React.ReactNode;
7
- image: string;
8
- imageTa: string;
9
- imageMo: string;
8
+ image: StaticImageData;
9
+ imageTa: StaticImageData;
10
+ imageMo: StaticImageData;
10
11
  imageWidth: number;
11
12
  imageHeight: number;
12
13
  isFullWidth?: boolean;
@@ -1,4 +1,4 @@
1
- import Image from 'next/image';
1
+ import Image, { StaticImageData } from 'next/image';
2
2
 
3
3
  interface LawfirmCardProps {
4
4
  title: React.ReactNode;
@@ -6,9 +6,9 @@ interface LawfirmCardProps {
6
6
  description: React.ReactNode;
7
7
  compareLabel: string;
8
8
  compareDescription: React.ReactNode;
9
- image: string;
10
- imageTa: string;
11
- imageMo: string;
9
+ image: StaticImageData;
10
+ imageTa: StaticImageData;
11
+ imageMo: StaticImageData;
12
12
  imageWidth: number;
13
13
  imageHeight: number;
14
14
  isFullWidth?: boolean;
@@ -1,6 +1,7 @@
1
+ import { StaticImageData } from 'next/image';
1
2
  import React from 'react';
2
3
  export interface CardSection5Props {
3
- img: string;
4
+ img: StaticImageData;
4
5
  title: string[];
5
6
  desc: string[];
6
7
  className?: string;
@@ -1,9 +1,9 @@
1
- import Image from 'next/image';
1
+ import Image, { StaticImageData } from 'next/image';
2
2
  import React from 'react';
3
3
  import CheckBox from '../../../asset/images/lawfirm/checkbox.svg';
4
4
 
5
5
  export interface CardSection5Props {
6
- img: string;
6
+ img: StaticImageData;
7
7
  title: string[];
8
8
  desc: string[];
9
9
  className?: string;
@@ -1,6 +1,7 @@
1
+ import { StaticImageData } from 'next/image';
1
2
  import React from 'react';
2
3
  interface CardSection7Props {
3
- imageSrc: string;
4
+ imageSrc: StaticImageData;
4
5
  gradient: string;
5
6
  bgColor: string;
6
7
  title: string[];
@@ -2,7 +2,7 @@ import Image from 'next/image';
2
2
  import React from 'react';
3
3
  const CardSection7 = ({ imageSrc, gradient, title, bgColor, paragraphs, className = '', style = {} }) => (<li style={style} className={`max- relative h-full w-full overflow-hidden rounded-[20px] max-xl:h-fit ${className} ${bgColor}`}>
4
4
  <div className="absolute bottom-0 right-0 h-[340px] w-full max-xl:h-full max-xl:w-[390px] max-sm:h-[250px] max-sm:w-full">
5
- <Image src={imageSrc} fill className="object-cover max-sm:!top-[20px] max-3sm:top-0" alt=""/>
5
+ <Image src={imageSrc} fill className="max-3sm:top-0 object-cover max-sm:!top-[20px]" alt=""/>
6
6
  </div>
7
7
  <div className={`absolute h-full w-full ${gradient}`}/>
8
8
  <div className="flex h-full w-full flex-col gap-y-10 p-10 text-white max-xl:gap-y-5 max-sm:px-5 max-sm:pb-[140px]">
@@ -1,14 +1,14 @@
1
- import Image from 'next/image'
2
- import React from 'react'
1
+ import Image, { StaticImageData } from 'next/image';
2
+ import React from 'react';
3
3
 
4
4
  interface CardSection7Props {
5
- imageSrc: string
6
- gradient: string
7
- bgColor: string
8
- title: string[]
9
- paragraphs: React.ReactNode
10
- className?: string
11
- style?: React.CSSProperties
5
+ imageSrc: StaticImageData;
6
+ gradient: string;
7
+ bgColor: string;
8
+ title: string[];
9
+ paragraphs: React.ReactNode;
10
+ className?: string;
11
+ style?: React.CSSProperties;
12
12
  }
13
13
 
14
14
  const CardSection7 = ({
@@ -25,7 +25,7 @@ const CardSection7 = ({
25
25
  className={`max- relative h-full w-full overflow-hidden rounded-[20px] max-xl:h-fit ${className} ${bgColor}`}
26
26
  >
27
27
  <div className="absolute bottom-0 right-0 h-[340px] w-full max-xl:h-full max-xl:w-[390px] max-sm:h-[250px] max-sm:w-full">
28
- <Image src={imageSrc} fill className="object-cover max-sm:!top-[20px] max-3sm:top-0" alt="" />
28
+ <Image src={imageSrc} fill className="max-3sm:top-0 object-cover max-sm:!top-[20px]" alt="" />
29
29
  </div>
30
30
  <div className={`absolute h-full w-full ${gradient}`} />
31
31
  <div className="flex h-full w-full flex-col gap-y-10 p-10 text-white max-xl:gap-y-5 max-sm:px-5 max-sm:pb-[140px]">
@@ -41,6 +41,6 @@ const CardSection7 = ({
41
41
  </div>
42
42
  </div>
43
43
  </li>
44
- )
44
+ );
45
45
 
46
- export default CardSection7
46
+ export default CardSection7;