Skip to content

Commit

Permalink
Merge pull request #1053 from rainlanguage/1052-migrate-iconerror-and…
Browse files Browse the repository at this point in the history
…-dropdownproperty-components
  • Loading branch information
hardyjosh authored Dec 10, 2024
2 parents b336e93 + 4821450 commit f9a5742
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 23 deletions.
13 changes: 13 additions & 0 deletions packages/ui-components/src/lib/components/DropdownProperty.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script lang="ts">
export let key: string;
export let value: string;
</script>

<div class="mb-2">
<h5 class="text-md w-full tracking-tight text-gray-400 dark:text-gray-400">
{key}
</h5>
<p class="font-regular break-all leading-tight text-gray-800 dark:text-white">
{value}
</p>
</div>
9 changes: 9 additions & 0 deletions packages/ui-components/src/lib/components/IconError.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script lang="ts">
import CloseCircleSolid from 'flowbite-svelte-icons/CloseCircleSolid.svelte';
</script>

<div
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-red-100 text-red-500 dark:bg-red-800 dark:text-red-200"
>
<CloseCircleSolid class="h-5 w-5" />
</div>
2 changes: 2 additions & 0 deletions packages/ui-components/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ export { default as EditableSpan } from './components/EditableSpan.svelte';
export { default as BlockQuote } from './components/BlockQuote.svelte';
export { default as Heading } from './components/Heading.svelte';
export { default as Text } from './components/Text.svelte';
export { default as DropdownProperty } from './components/DropdownProperty.svelte';
export { default as IconError } from './components/IconError.svelte';

//Types
export type { AppStoresInterface } from './types/appStores.ts';
Expand Down
2 changes: 1 addition & 1 deletion tauri-app/src/lib/components/AppToast.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { Toast } from 'flowbite-svelte';
import IconSuccess from '$lib/components/IconSuccess.svelte';
import IconError from '$lib/components/IconError.svelte';
import { IconError } from '@rainlanguage/ui-components';
import IconWarning from '$lib/components/IconWarning.svelte';
import IconInfo from '$lib/components/IconInfo.svelte';
import CloseSolid from 'flowbite-svelte-icons/CloseSolid.svelte';
Expand Down
13 changes: 0 additions & 13 deletions tauri-app/src/lib/components/DropdownProperty.svelte

This file was deleted.

9 changes: 0 additions & 9 deletions tauri-app/src/lib/components/IconError.svelte

This file was deleted.

0 comments on commit f9a5742

Please sign in to comment.