8000 fix: solid icons changing fill="currentColor" to "none" · themesberg/flowbite-svelte-icons@4bd77f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: solid icons changing fill="currentColor" to "none"
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Mar 7, 2024
1 parent 2867fd7 commit 4bd77f5
Show file tree
Hide file tree
Showing 541 changed files with 6,845 additions and 15,294 deletions.
46 changes: 12 additions & 34 deletions src/lib/AddressBookOutline.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
import { getContext } from 'svelte';
import { twMerge } from 'tailwind-merge';
interface CtxType {
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
size?: "xs" | "sm" | "md" | "lg" | "xl";
role?: string;
strokeLinecap?: 'round' | 'inherit' | 'butt' | 'square' | null | undefined;
strokeLinejoin?: 'round' | 'inherit' | 'miter' | 'bevel' | null | undefined;
strokeWidth?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
Expand All @@ -18,22 +15,23 @@
xl: 'w-8 h-8'
};
export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
export let size: "xs" | "sm" | "md" | "lg" | "xl" = ctx.size || 'md';
export let role = ctx.role || 'img';
export let strokeLinecap: 'round' | 'inherit' | 'butt' | 'square' | null | undefined =
ctx.strokeLinecap || 'round';
export let strokeLinejoin: 'round' | 'inherit' | 'miter' | 'bevel' | null | undefined =
ctx.strokeLinejoin || 'round';
export let strokeWidth = ctx.strokeWidth || '2';
export let ariaLabel = 'address book outline';
</script>
export let strokeLinecap: "round" | "inherit" | "butt" | "square" | null | undefined = ctx.strokeLinecap || "round";
export let strokeLinejoin:"round" | "inherit" | "miter" | "bevel" | null | undefined = ctx.strokeLinejoin || "round";
export let strokeWidth= ctx.strokeWidth || "2";
export let ariaLabel="address book outline" </script>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
{...$$restProps}
class={twMerge('shrink-0', sizes[size], $$props.class)}
class={twMerge(
'shrink-0',
sizes[size],
$$props.class
)}
{role}
aria-label={ariaLabel}
viewBox="0 0 24 24"
Expand All @@ -47,25 +45,5 @@
on:mouseover
on:mouseout
>
<path
stroke="currentColor"
stroke-linecap={strokeLinecap}
stroke-linejoin={strokeLinejoin}
stroke-width={strokeWidth}
d="M7 6H5m2 3H5m2 3H5m2 3H5m2 3H5m11-1a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2M7 3h11c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H7a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm8 7a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"
/>
<path stroke="currentColor" stroke-linecap="{strokeLinecap}" stroke-linejoin="{strokeLinejoin}" stroke-width="{strokeWidth}" d="M7 6H5m2 3H5m2 3H5m2 3H5m2 3H5m11-1a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2M7 3h11c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H7a1 1 0 0 1-1-1V4c0-.6.4-1 1-1Zm8 7a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"/>
</svg>

<!--
@component
[Go to docs](https://flowbite-svelte-icons.vercel.app/)
## Props
@prop export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
@prop export let role = ctx.role || 'img';
@prop export let strokeLinecap: 'round' | 'inherit' | 'butt' | 'square' | null | undefined =
ctx.strokeLinecap || 'round';
@prop export let strokeLinejoin: 'round' | 'inherit' | 'miter' | 'bevel' | null | undefined =
ctx.strokeLinejoin || 'round';
@prop export let strokeWidth = ctx.strokeWidth || '2';
@prop export let ariaLabel = 'address book outline';
-->
34 changes: 13 additions & 21 deletions src/lib/AddressBookSolid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
import { getContext } from 'svelte';
import { twMerge } from 'tailwind-merge';
interface CtxType {
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
size?: "xs" | "sm" | "md" | "lg" | "xl";
role?: string;
strokeLinecap?: "round" | "inherit" | "butt" | "square" | null | undefined;
strokeLinejoin?: "round" | "inherit" | "miter" | "bevel" | null | undefined;
strokeWidth?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
Expand All @@ -15,17 +18,20 @@
xl: 'w-8 h-8'
};
export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
export let size: "xs" | "sm" | "md" | "lg" | "xl" = ctx.size || 'md';
export let role = ctx.role || 'img';
export let ariaLabel = 'address book solid';
</script>
export let ariaLabel="address book solid" </script>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
fill="none"
{...$$restProps}
class={twMerge('shrink-0', sizes[size], $$props.class)}
class={twMerge(
'shrink-0',
sizes[size],
$$props.class
)}
{role}
aria-label={ariaLabel}
viewBox="0 0 24 24"
Expand All @@ -39,19 +45,5 @@
on:mouseover
on:mouseout
>
<path
fill="currentColor"
fill-rule="evenodd"
d="M7 2a2 2 0 0 0-2 2v1a1 1 0 0 0 0 2v1a1 1 0 0 0 0 2v1a1 1 0 1 0 0 2v1a1 1 0 1 0 0 2v1a1 1 0 1 0 0 2v1c0 1.1.9 2 2 2h11a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H7Zm3 8a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-1 7a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3c0 .6-.4 1-1 1h-6a1 1 0 0 1-1-1Z"
clip-rule="evenodd"
/>
<path fill="currentColor" fill-rule="evenodd" d="M7 2a2 2 0 0 0-2 2v1a1 1 0 0 0 0 2v1a1 1 0 0 0 0 2v1a1 1 0 1 0 0 2v1a1 1 0 1 0 0 2v1a1 1 0 1 0 0 2v1c0 1.1.9 2 2 2h11a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H7Zm3 8a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-1 7a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3c0 .6-.4 1-1 1h-6a1 1 0 0 1-1-1Z" clip-rule="evenodd"/>
</svg>

<!--
@component
[Go to docs](https://flowbite-svelte-icons.vercel.app/)
## Props
@prop export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
@prop export let role = ctx.role || 'img';
@prop export let ariaLabel = 'address book solid';
-->
40 changes: 11 additions & 29 deletions src/lib/AdjustmentsHorizontalOutline.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
import { getContext } from 'svelte';
import { twMerge } from 'tailwind-merge';
interface CtxType {
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
size?: "xs" | "sm" | "md" | "lg" | "xl";
role?: string;
strokeLinecap?: 'round' | 'inherit' | 'butt' | 'square' | null | undefined;
strokeLinejoin?: 'round' | 'inherit' | 'miter' | 'bevel' | null | undefined;
strokeWidth?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
Expand All @@ -18,20 +15,22 @@
xl: 'w-8 h-8'
};
export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
export let size: "xs" | "sm" | "md" | "lg" | "xl" = ctx.size || 'md';
export let role = ctx.role || 'img';
export let strokeLinecap: 'round' | 'inherit' | 'butt' | 'square' | null | undefined =
ctx.strokeLinecap || 'round';
export let strokeWidth = ctx.strokeWidth || '2';
export let ariaLabel = 'adjustments horizontal outline';
</script>
export let strokeLinecap: "round" | "inherit" | "butt" | "square" | null | undefined = ctx.strokeLinecap || "round";
export let strokeWidth= ctx.strokeWidth || "2";
export let ariaLabel="adjustments horizontal outline" </script>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
{...$$restProps}
class={twMerge('shrink-0', sizes[size], $$props.class)}
class={twMerge(
'shrink-0',
sizes[size],
$$props.class
)}
{role}
aria-label={ariaLabel}
viewBox="0 0 24 24"
Expand All @@ -45,22 +44,5 @@
on:mouseover
on:mouseout
>
<path
stroke="currentColor"
stroke-linecap={strokeLinecap}
stroke-width={strokeWidth}
d="M20 6H10m0 0a2 2 0 1 0-4 0m4 0a2 2 0 1 1-4 0m0 0H4m16 6h-2m0 0a2 2 0 1 0-4 0m4 0a2 2 0 1 1-4 0m0 0H4m16 6H10m0 0a2 2 0 1 0-4 0m4 0a2 2 0 1 1-4 0m0 0H4"
/>
<path stroke="currentColor" stroke-linecap="{strokeLinecap}" stroke-width="{strokeWidth}" d="M20 6H10m0 0a2 2 0 1 0-4 0m4 0a2 2 0 1 1-4 0m0 0H4m16 6h-2m0 0a2 2 0 1 0-4 0m4 0a2 2 0 1 1-4 0m0 0H4m16 6H10m0 0a2 2 0 1 0-4 0m4 0a2 2 0 1 1-4 0m0 0H4"/>
</svg>

<!--
@component
[Go to docs](https://flowbite-svelte-icons.vercel.app/)
## Props
@prop export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
@prop export let role = ctx.role || 'img';
@prop export let strokeLinecap: 'round' | 'inherit' | 'butt' | 'square' | null | undefined =
ctx.strokeLinecap || 'round';
@prop export let strokeWidth = ctx.strokeWidth || '2';
@prop export let ariaLabel = 'adjustments horizontal outline';
-->
32 changes: 13 additions & 19 deletions src/lib/AdjustmentsHorizontalSolid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
import { getContext } from 'svelte';
import { twMerge } from 'tailwind-merge';
interface CtxType {
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
size?: "xs" | "sm" | "md" | "lg" | "xl";
role?: string;
strokeLinecap?: "round" | "inherit" | "butt" | "square" | null | undefined;
strokeLinejoin?: "round" | "inherit" | "miter" | "bevel" | null | undefined;
strokeWidth?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
Expand All @@ -15,17 +18,20 @@
xl: 'w-8 h-8'
};
export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
export let size: "xs" | "sm" | "md" | "lg" | "xl" = ctx.size || 'md';
export let role = ctx.role || 'img';
export let ariaLabel = 'adjustments horizontal solid';
</script>
export let ariaLabel="adjustments horizontal solid" </script>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
fill="none"
{...$$restProps}
class={twMerge('shrink-0', sizes[size], $$props.class)}
class={twMerge(
'shrink-0',
sizes[size],
$$props.class
)}
{role}
aria-label={ariaLabel}
viewBox="0 0 24 24"
Expand All @@ -39,17 +45,5 @@
on:mouseover
on:mouseout
>
<path
fill="currentColor"
d="M10.8 5a3 3 0 0 0-5.6 0H4a1 1 0 1 0 0 2h1.2a3 3 0 0 0 5.6 0H20a1 1 0 1 0 0-2h-9.2ZM4 11h9.2a3 3 0 0 1 5.6 0H20a1 1 0 1 1 0 2h-1.2a3 3 0 0 1-5.6 0H4a1 1 0 1 1 0-2Zm1.2 6H4a1 1 0 1 0 0 2h1.2a3 3 0 0 0 5.6 0H20a1 1 0 1 0 0-2h-9.2a3 3 0 0 0-5.6 0Z"
/>
<path fill="currentColor" d="M10.8 5a3 3 0 0 0-5.6 0H4a1 1 0 1 0 0 2h1.2a3 3 0 0 0 5.6 0H20a1 1 0 1 0 0-2h-9.2ZM4 11h9.2a3 3 0 0 1 5.6 0H20a1 1 0 1 1 0 2h-1.2a3 3 0 0 1-5.6 0H4a1 1 0 1 1 0-2Zm1.2 6H4a1 1 0 1 0 0 2h1.2a3 3 0 0 0 5.6 0H20a1 1 0 1 0 0-2h-9.2a3 3 0 0 0-5.6 0Z"/>
</svg>

<!--
@component
[Go to docs](https://flowbite-svelte-icons.vercel.app/)
## Props
@prop export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
@prop export let role = ctx.role || 'img';
@prop export let ariaLabel = 'adjustments horizontal solid';
-->
32 changes: 13 additions & 19 deletions src/lib/AdjustmentsVerticalSolid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
import { getContext } from 'svelte';
import { twMerge } from 'tailwind-merge';
interface CtxType {
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
size?: "xs" | "sm" | "md" | "lg" | "xl";
role?: string;
strokeLinecap?: "round" | "inherit" | "butt" | "square" | null | undefined;
strokeLinejoin?: "round" | "inherit" | "miter" | "bevel" | null | undefined;
strokeWidth?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
Expand All @@ -15,17 +18,20 @@
xl: 'w-8 h-8'
};
export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
export let size: "xs" | "sm" | "md" | "lg" | "xl" = ctx.size || 'md';
export let role = ctx.role || 'img';
export let ariaLabel = 'adjustments vertical solid';
</script>
export let ariaLabel="adjustments vertical solid" </script>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
fill="none"
{...$$restProps}
class={twMerge('shrink-0', sizes[size], $$props.class)}
class={twMerge(
'shrink-0',
sizes[size],
$$props.class
)}
{role}
aria-label={ariaLabel}
viewBox="0 0 24 24"
Expand All @@ -39,17 +45,5 @@
on:mouseover
on:mouseout
>
<path
fill="currentColor"
d="M5 13.2a3 3 0 0 0 0 5.6V20a1 1 0 1 0 2 0v-1.2a3 3 0 0 0 0-5.6V4a1 1 0 0 0-2 0v9.2Zm6 6.8v-9.2a3 3 0 0 1 0-5.6V4a1 1 0 1 1 2 0v1.2a3 3 0 0 1 0 5.6V20a1 1 0 1 1-2 0Zm6-1.2V20a1 1 0 1 0 2 0v-1.2a3 3 0 0 0 0-5.6V4a1 1 0 1 0-2 0v9.2a3 3 0 0 0 0 5.6Z"
/>
<path fill="currentColor" d="M5 13.2a3 3 0 0 0 0 5.6V20a1 1 0 1 0 2 0v-1.2a3 3 0 0 0 0-5.6V4a1 1 0 0 0-2 0v9.2Zm6 6.8v-9.2a3 3 0 0 1 0-5.6V4a1 1 0 1 1 2 0v1.2a3 3 0 0 1 0 5.6V20a1 1 0 1 1-2 0Zm6-1.2V20a1 1 0 1 0 2 0v-1.2a3 3 0 0 0 0-5.6V4a1 1 0 1 0-2 0v9.2a3 3 0 0 0 0 5.6Z"/>
</svg>

<!--
@component
[Go to docs](https://flowbite-svelte-icons.vercel.app/)
## Props
@prop export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
@prop export let role = ctx.role || 'img';
@prop export let ariaLabel = 'adjustments vertical solid';
-->
46 changes: 12 additions & 34 deletions src/lib/AlignCenterOutline.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
import { getContext } from 'svelte';
import { twMerge } from 'tailwind-merge';
interface CtxType {
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
size?: "xs" | "sm" | "md" | "lg" | "xl";
role?: string;
strokeLinecap?: 'round' | 'inherit' | 'butt' | 'square' | null | undefined;
strokeLinejoin?: 'round' | 'inherit' | 'miter' | 'bevel' | null | undefined;
strokeWidth?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
Expand All @@ -18,22 +15,23 @@
xl: 'w-8 h-8'
};
export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
export let size: "xs" | "sm" | "md" | "lg" | "xl" = ctx.size || 'md';
export let role = ctx.role || 'img';
export let strokeLinecap: 'round' | 'inherit' | 'butt' | 'square' | null | undefined =
ctx.strokeLinecap || 'round';
export let strokeLinejoin: 'round' | 'inherit' | 'miter' | 'bevel' | null | undefined =
ctx.strokeLinejoin || 'round';
export let strokeWidth = ctx.strokeWidth || '2';
export let ariaLabel = 'align center outline';
</script>
export let strokeLinecap: "round" | "inherit" | "butt" | "square" | null | undefined = ctx.strokeLinecap || "round";
export let strokeLinejoin:"round" | "inherit" | "miter" | "bevel" | null | undefined = ctx.strokeLinejoin || "round";
export let strokeWidth= ctx.strokeWidth || "2";
export let ariaLabel="align center outline" </script>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
{...$$restProps}
class={twMerge('shrink-0', sizes[size], $$props.class)}
class={twMerge(
'shrink-0',
sizes[size],
$$props.class
)}
{role}
aria-label={ariaLabel}
viewBox="0 0 24 24"
Expand All @@ -47,25 +45,5 @@
on:mouseover
on:mouseout
>
<path
stroke="currentColor"
stroke-linecap={strokeLinecap}
stroke-linejoin={strokeLinejoin}
stroke-width={strokeWidth}
d="M8 6h8M6 10h12M8 14h8M6 18h12"
/>
<path stroke="currentColor" stroke-linecap="{strokeLinecap}" stroke-linejoin="{strokeLinejoin}" stroke-width="{strokeWidth}" d="M8 6h8M6 10h12M8 14h8M6 18h12"/>
</svg>

<!--
@component
[Go to docs](https://flowbite-svelte-icons.vercel.app/)
## Props
@prop export let size: 'xs' | 'sm' | 'md' | 'lg' | 'xl' = ctx.size || 'md';
@prop export let role = ctx.role || 'img';
@prop export let strokeLinecap: 'round' | 'inherit' | 'butt' | 'square' | null | undefined =
ctx.strokeLinecap || 'round';
@prop export let strokeLinejoin: 'round' | 'inherit' | 'miter' | 'bevel' | null | undefined =
ctx.strokeLinejoin || 'round';
@prop export let strokeWidth = ctx.strokeWidth || '2';
@prop export let ariaLabel = 'align center outline';
-->
Loading

0 comments on commit 4bd77f5

Please sign in to comment.
0