Skip to content

Commit

Permalink
fix: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed May 10, 2024
1 parent 5bfb6b6 commit 83befb5
Show file tree
Hide file tree
Showing 298 changed files with 2,377 additions and 2,676 deletions.
8 changes: 8 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"svelte-heros-v2": "2.0.0-next.1"
},
"changesets": []
}
17 changes: 8 additions & 9 deletions src/lib/AcademicCap.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<script lang="ts">
import { getContext } from 'svelte';
type TitleType = {
id?: string;
title?: string;
};
type DescType = {
id?: string;
desc?: string;
};
interface BaseProps {
size?: string;
role?: string;
Expand All @@ -21,14 +23,17 @@
onkeyup?: (event: KeyboardEvent) => void;
class?: string;
}
interface CtxType extends BaseProps {}
const ctx: CtxType = getContext('iconCtx') ?? {};
interface Props extends BaseProps{
title?: TitleType;
desc?: DescType;
ariaLabel?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
let {
size = ctx.size || '24',
role = ctx.role || 'img',
Expand All @@ -51,7 +56,6 @@
let viewBox: string = $state('');
function updateHasDescription() {
// Double negation converts truthy values to true, falsy to false
hasDescription = !!(title.id || desc.id);
}
updateHasDescription();
Expand Down Expand Up @@ -138,9 +142,4 @@
</svg>
{/if}

<!--
@component
[Go to docs](https://svelte-heros-v2.codewithshin.com/)
## Props
@props:
-->

17 changes: 8 additions & 9 deletions src/lib/AdjustmentsHorizontal.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<script lang="ts">
import { getContext } from 'svelte';
type TitleType = {
id?: string;
title?: string;
};
type DescType = {
id?: string;
desc?: string;
};
interface BaseProps {
size?: string;
role?: string;
Expand All @@ -21,14 +23,17 @@
onkeyup?: (event: KeyboardEvent) => void;
class?: string;
}
interface CtxType extends BaseProps {}
const ctx: CtxType = getContext('iconCtx') ?? {};
interface Props extends BaseProps{
title?: TitleType;
desc?: DescType;
ariaLabel?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
let {
size = ctx.size || '24',
role = ctx.role || 'img',
Expand All @@ -51,7 +56,6 @@
let viewBox: string = $state('');
function updateHasDescription() {
// Double negation converts truthy values to true, falsy to false
hasDescription = !!(title.id || desc.id);
}
updateHasDescription();
Expand Down Expand Up @@ -138,9 +142,4 @@
</svg>
{/if}

<!--
@component
[Go to docs](https://svelte-heros-v2.codewithshin.com/)
## Props
@props:
-->

17 changes: 8 additions & 9 deletions src/lib/AdjustmentsVertical.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<script lang="ts">
import { getContext } from 'svelte';
type TitleType = {
id?: string;
title?: string;
};
type DescType = {
id?: string;
desc?: string;
};
interface BaseProps {
size?: string;
role?: string;
Expand All @@ -21,14 +23,17 @@
onkeyup?: (event: KeyboardEvent) => void;
class?: string;
}
interface CtxType extends BaseProps {}
const ctx: CtxType = getContext('iconCtx') ?? {};
interface Props extends BaseProps{
title?: TitleType;
desc?: DescType;
ariaLabel?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
let {
size = ctx.size || '24',
role = ctx.role || 'img',
Expand All @@ -51,7 +56,6 @@
let viewBox: string = $state('');
function updateHasDescription() {
// Double negation converts truthy values to true, falsy to false
hasDescription = !!(title.id || desc.id);
}
updateHasDescription();
Expand Down Expand Up @@ -138,9 +142,4 @@
</svg>
{/if}

<!--
@component
[Go to docs](https://svelte-heros-v2.codewithshin.com/)
## Props
@props:
-->

17 changes: 8 additions & 9 deletions src/lib/ArchiveBox.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<script lang="ts">
import { getContext } from 'svelte';
type TitleType = {
id?: string;
title?: string;
};
type DescType = {
id?: string;
desc?: string;
};
interface BaseProps {
size?: string;
role?: string;
Expand All @@ -21,14 +23,17 @@
onkeyup?: (event: KeyboardEvent) => void;
class?: string;
}
interface CtxType extends BaseProps {}
const ctx: CtxType = getContext('iconCtx') ?? {};
interface Props extends BaseProps{
title?: TitleType;
desc?: DescType;
ariaLabel?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
let {
size = ctx.size || '24',
role = ctx.role || 'img',
Expand All @@ -51,7 +56,6 @@
let viewBox: string = $state('');
function updateHasDescription() {
// Double negation converts truthy values to true, falsy to false
hasDescription = !!(title.id || desc.id);
}
updateHasDescription();
Expand Down Expand Up @@ -138,9 +142,4 @@
</svg>
{/if}

<!--
@component
[Go to docs](https://svelte-heros-v2.codewithshin.com/)
## Props
@props:
-->

17 changes: 8 additions & 9 deletions src/lib/ArchiveBoxArrowDown.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<script lang="ts">
import { getContext } from 'svelte';
type TitleType = {
id?: string;
title?: string;
};
type DescType = {
id?: string;
desc?: string;
};
interface BaseProps {
size?: string;
role?: string;
Expand All @@ -21,14 +23,17 @@
onkeyup?: (event: KeyboardEvent) => void;
class?: string;
}
interface CtxType extends BaseProps {}
const ctx: CtxType = getContext('iconCtx') ?? {};
interface Props extends BaseProps{
title?: TitleType;
desc?: DescType;
ariaLabel?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
let {
size = ctx.size || '24',
role = ctx.role || 'img',
Expand All @@ -51,7 +56,6 @@
let viewBox: string = $state('');
function updateHasDescription() {
// Double negation converts truthy values to true, falsy to false
hasDescription = !!(title.id || desc.id);
}
updateHasDescription();
Expand Down Expand Up @@ -138,9 +142,4 @@
</svg>
{/if}

<!--
@component
[Go to docs](https://svelte-heros-v2.codewithshin.com/)
## Props
@props:
-->

17 changes: 8 additions & 9 deletions src/lib/ArchiveBoxXMark.svelte
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
<script lang="ts">
import { getContext } from 'svelte';
type TitleType = {
id?: string;
title?: string;
};
type DescType = {
id?: string;
desc?: string;
};
interface BaseProps {
size?: string;
role?: string;
Expand All @@ -21,14 +23,17 @@
onkeyup?: (event: KeyboardEvent) => void;
class?: string;
}
interface CtxType extends BaseProps {}
const ctx: CtxType = getContext('iconCtx') ?? {};
interface Props extends BaseProps{
title?: TitleType;
desc?: DescType;
ariaLabel?: string;
}
const ctx: CtxType = getContext('iconCtx') ?? {};
let {
size = ctx.size || '24',
role = ctx.role || 'img',
Expand All @@ -51,7 +56,6 @@
let viewBox: string = $state('');
function updateHasDescription() {
// Double negation converts truthy values to true, falsy to false
hasDescription = !!(title.id || desc.id);
}
updateHasDescription();
Expand Down Expand Up @@ -138,9 +142,4 @@
</svg>
{/if}

<!--
@component
[Go to docs](https://svelte-heros-v2.codewithshin.com/)
## Props
@props:
-->

Loading

0 comments on commit 83befb5

Please sign in to comment.