feat: implement logic for icons
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { iconVariants } from "./variants"
|
import { iconVariants } from "./variants"
|
||||||
|
|
||||||
import type { IconProps } from "@/types/components/icon"
|
import { IconProps } from "@/types/components/icon"
|
||||||
|
|
||||||
export default function CalendarIcon({
|
export default function CalendarIcon({
|
||||||
className,
|
className,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { iconVariants } from "./variants"
|
import { iconVariants } from "./variants"
|
||||||
|
|
||||||
import type { IconProps } from "@/types/components/icon"
|
import { IconProps } from "@/types/components/icon"
|
||||||
|
|
||||||
export default function CheckCircleIcon({
|
export default function CheckCircleIcon({
|
||||||
className,
|
className,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { iconVariants } from "./variants"
|
import { iconVariants } from "./variants"
|
||||||
|
|
||||||
import type { IconProps } from "@/types/components/icon"
|
import { IconProps } from "@/types/components/icon"
|
||||||
|
|
||||||
export default function ChevronDownIcon({
|
export default function ChevronDownIcon({
|
||||||
className,
|
className,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { iconVariants } from "./variants"
|
import { iconVariants } from "./variants"
|
||||||
|
|
||||||
import type { IconProps } from "@/types/components/icon"
|
import { IconProps } from "@/types/components/icon"
|
||||||
|
|
||||||
export default function EmailIcon({ className, color, ...props }: IconProps) {
|
export default function EmailIcon({ className, color, ...props }: IconProps) {
|
||||||
const classNames = iconVariants({ className, color })
|
const classNames = iconVariants({ className, color })
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { iconVariants } from "./variants"
|
import { iconVariants } from "./variants"
|
||||||
|
|
||||||
import type { IconProps } from "@/types/components/icon"
|
import { IconProps } from "@/types/components/icon"
|
||||||
|
|
||||||
export default function HouseIcon({ className, color, ...props }: IconProps) {
|
export default function HouseIcon({ className, color, ...props }: IconProps) {
|
||||||
const classNames = iconVariants({ className, color })
|
const classNames = iconVariants({ className, color })
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { iconVariants } from "./variants"
|
import { iconVariants } from "./variants"
|
||||||
|
|
||||||
import type { IconProps } from "@/types/components/icon"
|
import { IconProps } from "@/types/components/icon"
|
||||||
|
|
||||||
export default function PhoneIcon({ className, color, ...props }: IconProps) {
|
export default function PhoneIcon({ className, color, ...props }: IconProps) {
|
||||||
const classNames = iconVariants({ className, color })
|
const classNames = iconVariants({ className, color })
|
||||||
|
|||||||
@@ -2,27 +2,22 @@
|
|||||||
height: 20px;
|
height: 20px;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.black,
|
.black,
|
||||||
.black * {
|
.black * {
|
||||||
fill: #000;
|
fill: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.burgundy,
|
.burgundy,
|
||||||
.burgundy * {
|
.burgundy * {
|
||||||
fill: var(--Scandic-Brand-Burgundy);
|
fill: var(--Scandic-Brand-Burgundy);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pale,
|
.pale,
|
||||||
.pale * {
|
.pale * {
|
||||||
fill: var(--Scandic-Brand-Pale-Peach);
|
fill: var(--Scandic-Brand-Pale-Peach);
|
||||||
}
|
}
|
||||||
|
|
||||||
.peach80,
|
.peach80,
|
||||||
.peach80 * {
|
.peach80 * {
|
||||||
fill: var(--Scandic-Peach-80);
|
fill: var(--Scandic-Peach-80);
|
||||||
}
|
}
|
||||||
|
|
||||||
.plosa,
|
.plosa,
|
||||||
.plosa * {
|
.plosa * {
|
||||||
fill: var(--Theme-Primary-Light-On-Surface-Accent);
|
fill: var(--Theme-Primary-Light-On-Surface-Accent);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default function Shortcuts({
|
|||||||
variant="shortcut"
|
variant="shortcut"
|
||||||
>
|
>
|
||||||
<span>{shortcut.text ? shortcut.text : shortcut.title}</span>
|
<span>{shortcut.text ? shortcut.text : shortcut.title}</span>
|
||||||
<ArrowRightIcon />
|
<ArrowRightIcon color="burgundy" className={styles.arrowRight} />
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -28,3 +28,8 @@
|
|||||||
.link:last-child {
|
.link:last-child {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.arrowRight {
|
||||||
|
height: 24px;
|
||||||
|
width: 24px;
|
||||||
|
}
|
||||||
|
|||||||
4
types/components/deprecatedIconProps.ts
Normal file
4
types/components/deprecatedIconProps.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export type DeprecatedIconProps = {
|
||||||
|
height?: number
|
||||||
|
width?: number
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user