Skip to content

Commit d09f302

Browse files
authored
chore: remove all custom Icons in favor of Lucide icons (#986)
1 parent ccdcbd7 commit d09f302

File tree

15 files changed

+11
-251
lines changed

15 files changed

+11
-251
lines changed

apps/website/src/components/code-copy/code-copy.tsx

Lines changed: 3 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { PropsOf, component$, useSignal } from '@builder.io/qwik';
22
import { Button } from '~/components/ui';
33
import { cn } from '@qwik-ui/utils';
44
import copy from 'clipboard-copy';
5+
import { LuCheck, LuCopy } from '@qwikest/icons/lucide';
56

67
export type CodeCopyProps = PropsOf<typeof Button> & {
78
code?: string;
@@ -13,7 +14,7 @@ export const CodeCopy = component$<CodeCopyProps>(({ code = '', ...props }) => {
1314
return (
1415
<Button
1516
{...props}
16-
look="link"
17+
look="ghost"
1718
title={copied.value ? 'Copied to Clipboard' : 'Copy to Clipboard'}
1819
class={cn(props.class)}
1920
onClick$={async () => {
@@ -25,54 +26,7 @@ export const CodeCopy = component$<CodeCopyProps>(({ code = '', ...props }) => {
2526
}, 4000);
2627
}}
2728
>
28-
{!copied.value ? (
29-
<CopyIcon />
30-
) : (
31-
<div class="flex gap-1">
32-
<ClipboardCheck />
33-
</div>
34-
)}
29+
{copied.value ? <LuCheck class="text-white" /> : <LuCopy class="text-white" />}
3530
</Button>
3631
);
3732
});
38-
39-
export function CopyIcon(props: PropsOf<'svg'> & { color?: string }, key: string) {
40-
return (
41-
<svg
42-
xmlns="http://www.w3.org/2000/svg"
43-
width="1.25em"
44-
height="1.25em"
45-
viewBox="0 0 16 16"
46-
class="group"
47-
{...props}
48-
key={key}
49-
>
50-
<path
51-
class="fill-slate-300 group-hover:fill-slate-100"
52-
d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"
53-
></path>
54-
<path
55-
class="fill-slate-300 group-hover:fill-slate-100"
56-
d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"
57-
></path>
58-
</svg>
59-
);
60-
}
61-
62-
export function ClipboardCheck(props: PropsOf<'svg'>, key: string) {
63-
return (
64-
<svg
65-
xmlns="http://www.w3.org/2000/svg"
66-
width="1.25em"
67-
height="1.25em"
68-
viewBox="0 0 16 16"
69-
{...props}
70-
key={key}
71-
>
72-
<path
73-
fill="white"
74-
d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"
75-
></path>
76-
</svg>
77-
);
78-
}

apps/website/src/components/feature-list/feature-list.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { component$ } from '@builder.io/qwik';
2-
import { CheckIcon } from '../icons/Check';
3-
import { Roadmap } from '../icons/Roadmap';
4-
import { IssueIcon } from '../icons/Issues';
52
import { Note } from '../note/note';
3+
import { LuBadge, LuBadgeAlert, LuBadgeCheck } from '@qwikest/icons/lucide';
64

75
type FeatureListProps = {
86
features: string[];
@@ -22,7 +20,7 @@ export const FeatureList = component$((props: FeatureListProps) => {
2220
key={descriptor}
2321
class={`flex w-full list-none items-center gap-x-2 gap-y-4 ${index === props.features.length - 1 ? '' : 'border-b-[1px]'} border-slate-200 py-2 dark:border-slate-800`}
2422
>
25-
<CheckIcon class="min-w-[21px]" />
23+
<LuBadgeCheck class="h-5 w-5 text-green-600" />
2624
{descriptor}
2725
</li>
2826
);
@@ -39,7 +37,7 @@ export const FeatureList = component$((props: FeatureListProps) => {
3937
key={descriptor}
4038
class="flex w-full list-none items-center gap-x-2 gap-y-4 border-b-[1px] border-slate-200 py-2 dark:border-slate-800"
4139
>
42-
<Roadmap class="min-w-[21px]" />
40+
<LuBadge class="h-5 w-5 text-yellow-500" />
4341
{descriptor}
4442
</li>
4543
</>
@@ -56,7 +54,7 @@ export const FeatureList = component$((props: FeatureListProps) => {
5654
key={descriptor}
5755
class="flex w-full list-none items-center gap-x-2 gap-y-4 border-b-[1px] border-slate-200 py-2 dark:border-slate-800"
5856
>
59-
<IssueIcon class="min-w-[21px]" />
57+
<LuBadgeAlert class="h-5 w-5 text-red-500" />
6058
{descriptor}
6159
</li>
6260
</>

apps/website/src/components/header/header.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,14 @@ import { useLocation } from '@builder.io/qwik-city';
1313
// eslint-disable-next-line @nx/enforce-module-boundaries
1414
// eslint-disable-next-line @nx/enforce-module-boundaries
1515
import { version as styledKitVersion } from '../../../../../packages/kit-styled/package.json';
16-
import { CloseIcon } from '../icons/CloseIcon';
1716
import { GitHubIcon } from '../icons/GitHubIcon';
18-
import { MenuIcon } from '../icons/MenuIcon';
19-
import { MoonIcon } from '../icons/MoonIcon';
20-
import { SunIcon } from '../icons/SunIcon';
2117
import { LogoIcon, LogoWithBorders } from '../icons/logo';
2218

2319
import { useTheme } from '@qwik-ui/themes';
2420

2521
import { Modal } from '@qwik-ui/headless';
2622
import { useAppState } from '~/_state/use-app-state';
27-
import { LuX } from '@qwikest/icons/lucide';
23+
import { LuMenu, LuMoon, LuSun, LuX } from '@qwikest/icons/lucide';
2824
import { DocsNavigation } from '../navigation-docs/navigation-docs';
2925
import { useKitMenuItems } from '~/routes/layout';
3026
import { cn } from '@qwik-ui/utils';
@@ -193,7 +189,7 @@ export default component$(({ showVersion = false }: HeaderProps) => {
193189
look="ghost"
194190
class="flex lg:hidden"
195191
>
196-
{isSidebarOpenedSig.value ? <CloseIcon /> : <MenuIcon />}
192+
<LuMenu class="h-6 w-6" />
197193
</Button>
198194
</div>
199195
</div>
@@ -243,10 +239,10 @@ const DarkModeToggle = component$<PropsOf<typeof Button>>(({ ...props }) => {
243239
}
244240
>
245241
<div class="hidden dark:block">
246-
<MoonIcon />
242+
<LuMoon class="h-6 w-6" />
247243
</div>
248244
<div class="block dark:hidden">
249-
<SunIcon />
245+
<LuSun class="h-6 w-6" />
250246
</div>
251247
</Button>
252248
);

apps/website/src/components/icons/Check.tsx

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

apps/website/src/components/icons/ClipboardCheck.tsx

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

apps/website/src/components/icons/CloseIcon.tsx

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

apps/website/src/components/icons/CollapsibleIcon.tsx

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

apps/website/src/components/icons/CopyIcon.tsx

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

apps/website/src/components/icons/Issues.tsx

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

apps/website/src/components/icons/MenuIcon.tsx

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

0 commit comments

Comments
 (0)