Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ernstmul committed Jan 3, 2025
1 parent 6fd5adc commit b82e4e1
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion v2/pink-sb/src/lib/Code.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import { IconDuplicate } from '@appwrite.io/pink-icons-svelte';
import Tooltip from './Tooltip.svelte';
import Spinner from './Spinner.svelte';
import Select from './input/Select.svelte';
import { copy } from '$lib/helpers/copy.js';
type Language = BuiltinLanguage | PlainTextLanguage;
Expand Down Expand Up @@ -130,6 +129,7 @@
<div class="code-block">
{#if htmlCode}
<div transition:fade={{ duration: 300 }}>
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html htmlCode}
</div>
{:else}
Expand Down
3 changes: 2 additions & 1 deletion v2/pink-sb/src/lib/DirectoryPicker/DirectoryItem.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { melt, type TreeView } from '@melt-ui/svelte';
import { createEventDispatcher, getContext, type DispatchOptions } from 'svelte';
import { createEventDispatcher, getContext } from 'svelte';
import type { Directory } from '$lib/DirectoryPicker/index.js';
import { IconChevronRight } from '@appwrite.io/pink-icons-svelte';
import Radio from '$lib/selector/Radio.svelte';
Expand Down Expand Up @@ -102,6 +102,7 @@
</div>
{:else if thumbnailHtml}
<div class="thumbnail">
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html thumbnailHtml}
</div>
{/if}
Expand Down
2 changes: 1 addition & 1 deletion v2/pink-sb/src/lib/HiddenText.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export let text: string;
export let autoHideTimeoutMs = 10000;
export let isVisible: boolean = true;
let timeout: NodeJS.Timeout;
let timeout: ReturnType<typeof setTimeout>;
let showCopySuccess = false;
function toggleVisibility() {
Expand Down
1 change: 0 additions & 1 deletion v2/pink-sb/src/lib/Sheet.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts">
import Stack from '$lib/layout/Stack.svelte';
import Button from '$lib/button/Button.svelte';
import Icon from '$lib/Icon.svelte';
import { IconX } from '@appwrite.io/pink-icons-svelte';
Expand Down
1 change: 0 additions & 1 deletion v2/pink-sb/src/lib/ToggleButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
indicator.style.opacity = '1';
if (isInitialPosition) {
indicator.offsetHeight;
indicator.style.transition = '';
isInitialPosition = false;
}
Expand Down
2 changes: 1 addition & 1 deletion v2/pink-sb/src/lib/card/Media.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import Badge from '$lib/Badge.svelte';
import Image from '$lib/Image.svelte';
import { Layout, Card, Typography } from '$lib/index.js';
import { Layout, Typography } from '$lib/index.js';
import type { BaseCardProps } from './Base.svelte';
type $$Props = BaseCardProps & {
Expand Down
3 changes: 1 addition & 2 deletions v2/pink-sb/src/lib/helpers/size.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import prettyBytes from 'pretty-bytes';

const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] as const;
export type Size = (typeof sizes)[number];
export type Size = 'Bytes' | 'KB' | 'MB' | 'GB' | 'TB' | 'PB' | 'EB' | 'ZB' | 'YB';

export function humanFileSize(
bytes: number,
Expand Down
4 changes: 3 additions & 1 deletion v2/pink-sb/src/lib/input/Select.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<span>
{#if $selectedLabel}
{#if selectedLeadingHtml}
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html selectedLeadingHtml}
{/if}
{$selectedLabel}
Expand All @@ -85,9 +86,10 @@
</div>
{#if $open}
<ul {...$menu} use:menu>
{#each filteredOptions as { value, label, badge, disabled, readonly, leadingIcon, trailingIcon, leadingHtml }}
{#each filteredOptions as { value, label, badge, disabled, leadingIcon, trailingIcon, leadingHtml }}
<li {...$option({ value, label, disabled })} use:option>
{#if leadingHtml}
<!-- eslint-disable-next-line svelte/no-at-html-tags -->
{@html leadingHtml}
{/if}
{#if leadingIcon}
Expand Down
2 changes: 1 addition & 1 deletion v2/pink-sb/src/stories/Lights.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import { Story, Template } from '@storybook/addon-svelte-csf';
</script>

<Template let:args>
<Template>
<Lights />
</Template>

Expand Down
3 changes: 1 addition & 2 deletions v2/pink-sb/src/stories/layout/Wizard.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
</script>

<script>
import { Card, Typography } from '$lib/index.ts';
import { Card } from '$lib/index.ts';
import Button from '$lib/button/Button.svelte';
import { Story, Template } from '@storybook/addon-svelte-csf';
import Stack from './Stack.stories.svelte';
</script>

<Template let:args>
Expand Down

0 comments on commit b82e4e1

Please sign in to comment.