Skip to content

Commit d626679

Browse files
Merge pull request #38 from yamada-ui/issue36
Replace the icon with @yamada-ui/lucide
2 parents d834c0b + 6848dde commit d626679

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3660
-5150
lines changed

components/form/palette-menu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Palette, Plus } from "@yamada-ui/lucide"
12
import type { IconButtonProps, PopoverProps } from "@yamada-ui/react"
23
import {
34
Popover,
@@ -26,7 +27,6 @@ import {
2627
} from "@yamada-ui/react"
2728
import type { FC, MutableRefObject, RefObject } from "react"
2829
import { memo, useCallback, useRef, useState } from "react"
29-
import { ColorPalette, Plus } from "components/media-and-icons"
3030
import { RemoveScroll } from "components/other"
3131
import { useApp } from "contexts/app-context"
3232
import { useI18n } from "contexts/i18n-context"
@@ -78,7 +78,7 @@ export const PaletteMenu = memo(
7878
>
7979
<IconButton
8080
ref={ref}
81-
icon={<ColorPalette color="muted" />}
81+
icon={<Palette color="muted" fontSize="2xl" />}
8282
bg={["blackAlpha.100", "whiteAlpha.100"]}
8383
borderColor="transparent"
8484
colorScheme="neutral"
@@ -285,7 +285,7 @@ const CreatePalette: FC<CreatePaletteProps> = memo(
285285
colorScheme="neutral"
286286
bg={["blackAlpha.200", "whiteAlpha.100"]}
287287
borderColor="transparent"
288-
leftIcon={<Plus />}
288+
leftIcon={<Plus fontSize="lg" />}
289289
disabled={isOpen && !value.length}
290290
onClick={!isOpen ? onOpen : onCreate}
291291
_hover={{ _disabled: {} }}

components/form/search-color.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const SearchColor = memo(
102102
borderColor="transparent"
103103
icon={
104104
<ChevronIcon
105-
fontSize="1.3em"
105+
fontSize="lg"
106106
color="muted"
107107
transform="rotate(-90deg)"
108108
/>

components/layouts/header.tsx

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
import {
2+
Menu as MenuIcon,
3+
Moon,
4+
Sun,
5+
Languages,
6+
Search as SearchIcon,
7+
Box as BoxIcon,
8+
} from "@yamada-ui/lucide"
19
import type {
210
CenterProps,
311
ColorMode,
@@ -40,16 +48,7 @@ import { useRouter } from "next/router"
4048
import type { FC } from "react"
4149
import { memo, useEffect, useRef, useState } from "react"
4250
import { SearchColor } from "components/form"
43-
import {
44-
Color,
45-
Discord,
46-
Github,
47-
Hamburger,
48-
MagnifyingGlass,
49-
Moon,
50-
Sun,
51-
Translate,
52-
} from "components/media-and-icons"
51+
import { Discord, Github } from "components/media-and-icons"
5352
import { NextLinkIconButton, Tree } from "components/navigation"
5453
import { CONSTANT } from "constant"
5554
import { useApp } from "contexts/app-context"
@@ -141,7 +140,7 @@ export const Header = memo(
141140
display={{ base: "none", sm: "inline-flex" }}
142141
color="muted"
143142
onClick={searchControls.onToggle}
144-
icon={<MagnifyingGlass />}
143+
icon={<SearchIcon fontSize="2xl" />}
145144
/>
146145
</>
147146

@@ -292,7 +291,7 @@ const ButtonGroup: FC<ButtonGroupProps> = memo(
292291
display={{ base: "none", lg: "inline-flex" }}
293292
color="muted"
294293
onClick={onOpen}
295-
icon={<Hamburger />}
294+
icon={<MenuIcon fontSize="2xl" />}
296295
_hover={{ bg: [`blackAlpha.100`, `whiteAlpha.50`] }}
297296
/>
298297
) : (
@@ -346,7 +345,7 @@ const I18nButton: FC<I18nButtonProps> = memo(({ menuProps, ...rest }) => {
346345
isRounded
347346
variant="ghost"
348347
color="muted"
349-
icon={<Translate />}
348+
icon={<Languages fontSize="2xl" />}
350349
_hover={{ bg: [`blackAlpha.100`, `whiteAlpha.50`] }}
351350
{...rest}
352351
/>
@@ -404,7 +403,13 @@ const ColorModeButton: FC<ColorModeButtonProps> = memo(
404403
isRounded
405404
variant="ghost"
406405
color="muted"
407-
icon={colorMode === "dark" ? <Sun /> : <Moon />}
406+
icon={
407+
colorMode === "dark" ? (
408+
<Sun fontSize="2xl" />
409+
) : (
410+
<Moon fontSize="2xl" />
411+
)
412+
}
408413
_hover={{ bg: [`blackAlpha.100`, `whiteAlpha.50`] }}
409414
{...rest}
410415
/>
@@ -466,7 +471,7 @@ const FormatButton: FC<FormatButtonProps> = memo(({ menuProps, ...rest }) => {
466471
isRounded
467472
variant="ghost"
468473
color="muted"
469-
icon={<Color />}
474+
icon={<BoxIcon fontSize="2xl" />}
470475
_hover={{ bg: [`blackAlpha.100`, `whiteAlpha.50`] }}
471476
{...rest}
472477
/>

components/media-and-icons/arrow.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

components/media-and-icons/brush.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

components/media-and-icons/check.tsx

Lines changed: 0 additions & 26 deletions
This file was deleted.

components/media-and-icons/clipboard.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

components/media-and-icons/clone.tsx

Lines changed: 0 additions & 23 deletions
This file was deleted.

components/media-and-icons/color-palette.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

components/media-and-icons/color.tsx

Lines changed: 0 additions & 29 deletions
This file was deleted.

components/media-and-icons/compass.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

components/media-and-icons/contrast.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

components/media-and-icons/discord.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Icon } from "@yamada-ui/react"
33
import { forwardRef } from "react"
44

55
export const Discord = forwardRef<SVGSVGElement, IconProps>(
6-
({ boxSize = "1.35em", ...rest }, ref) => {
6+
({ boxSize = "1.5em", ...rest }, ref) => {
77
return (
88
<Icon
99
ref={ref}

0 commit comments

Comments
 (0)