-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1064 from rainlanguage/1063-migrate-icons-to-ui-c…
…oponents 1063 migrate icons to UI coponents
- Loading branch information
Showing
24 changed files
with
115 additions
and
90 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes
19 changes: 19 additions & 0 deletions
19
packages/ui-components/src/lib/components/IconExternalLink.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script lang="ts"> | ||
export let svgClass: string = ''; | ||
</script> | ||
|
||
<svg | ||
class="h-5 w-5 text-gray-800 dark:text-white {svgClass}" | ||
aria-hidden="true" | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 18 18" | ||
> | ||
<path | ||
stroke="currentColor" | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
d="M15 11v4.833A1.166 1.166 0 0 1 13.833 17H2.167A1.167 1.167 0 0 1 1 15.833V4.167A1.166 1.166 0 0 1 2.167 3h4.618m4.447-2H17v5.768M9.111 8.889l7.778-7.778" | ||
/> | ||
</svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script lang="ts"> | ||
import InfoCircleSolid from 'flowbite-svelte-icons/InfoCircleSolid.svelte'; | ||
</script> | ||
|
||
<div | ||
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-blue-100 text-blue-500 dark:bg-blue-800 dark:text-blue-200" | ||
> | ||
<InfoCircleSolid class="h-5 w-5" /> | ||
</div> |
12 changes: 6 additions & 6 deletions
12
...-app/src/lib/components/IconLedger.svelte → ...ents/src/lib/components/IconLedger.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script lang="ts"> | ||
import icon from '$lib/assets/ledger.svg?raw'; | ||
import icon from '$lib/assets/ledger.svg?raw'; | ||
</script> | ||
|
||
<!-- eslint-disable-next-line svelte/no-at-html-tags --> | ||
<div class="icon-ledger">{@html icon}</div> | ||
|
||
<style lang="css"> | ||
:global(.icon-ledger svg) { | ||
height: 1.5rem; | ||
width: auto; | ||
fill: white; | ||
} | ||
:global(.icon-ledger svg) { | ||
height: 1.5rem; | ||
width: auto; | ||
fill: white; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script lang="ts"> | ||
import CheckCircleSolid from 'flowbite-svelte-icons/CheckCircleSolid.svelte'; | ||
</script> | ||
|
||
<div | ||
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-green-100 text-green-500 dark:bg-green-800 dark:text-green-200" | ||
> | ||
<CheckCircleSolid class="h-5 w-5" /> | ||
</div> |
15 changes: 15 additions & 0 deletions
15
packages/ui-components/src/lib/components/IconTelegram.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script lang="ts"> | ||
export let dark = false; | ||
</script> | ||
|
||
<svg | ||
width="24px" | ||
height="24px" | ||
viewBox="0 0 24 24" | ||
class={`h-5 w-5 fill-current ${dark ? 'text-white dark:text-black' : 'text-black dark:text-white'}`} | ||
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;" | ||
><path | ||
id="telegram-1" | ||
d="M18.384,22.779c0.322,0.228 0.737,0.285 1.107,0.145c0.37,-0.141 0.642,-0.457 0.724,-0.84c0.869,-4.084 2.977,-14.421 3.768,-18.136c0.06,-0.28 -0.04,-0.571 -0.26,-0.758c-0.22,-0.187 -0.525,-0.241 -0.797,-0.14c-4.193,1.552 -17.106,6.397 -22.384,8.35c-0.335,0.124 -0.553,0.446 -0.542,0.799c0.012,0.354 0.25,0.661 0.593,0.764c2.367,0.708 5.474,1.693 5.474,1.693c0,0 1.452,4.385 2.209,6.615c0.095,0.28 0.314,0.5 0.603,0.576c0.288,0.075 0.596,-0.004 0.811,-0.207c1.216,-1.148 3.096,-2.923 3.096,-2.923c0,0 3.572,2.619 5.598,4.062Zm-11.01,-8.677l1.679,5.538l0.373,-3.507c0,0 6.487,-5.851 10.185,-9.186c0.108,-0.098 0.123,-0.262 0.033,-0.377c-0.089,-0.115 -0.253,-0.142 -0.376,-0.064c-4.286,2.737 -11.894,7.596 -11.894,7.596Z" | ||
/></svg | ||
> |
12 changes: 6 additions & 6 deletions
12
...c/lib/components/IconWalletConnect.svelte → ...c/lib/components/IconWalletConnect.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script lang="ts"> | ||
import icon from '$lib/assets/walletconnect.svg?raw'; | ||
import icon from '$lib/assets/walletconnect.svg?raw'; | ||
</script> | ||
|
||
<!-- eslint-disable-next-line svelte/no-at-html-tags --> | ||
<div class="icon-walletconnect">{@html icon}</div> | ||
|
||
<style lang="css"> | ||
:global(.icon-walletconnect svg) { | ||
height: 1.5rem; | ||
width: auto; | ||
fill: white; | ||
} | ||
:global(.icon-walletconnect svg) { | ||
height: 1.5rem; | ||
width: auto; | ||
fill: white; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<script lang="ts"> | ||
import ExclamationCircleSolid from 'flowbite-svelte-icons/ExclamationCircleSolid.svelte'; | ||
</script> | ||
|
||
<div | ||
class="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-yellow-100 text-yellow-500 dark:bg-yellow-800 dark:text-yellow-200" | ||
> | ||
<ExclamationCircleSolid class="h-5 w-5" /> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script lang="ts" generics="T"> | ||
import { ButtonLoading, IconError } from '@rainlanguage/ui-components'; | ||
import { | ||
IconInfo, | ||
IconLedger, | ||
IconSuccess, | ||
IconTelegram, | ||
IconWalletConnect, | ||
IconWarning, | ||
IconExternalLink | ||
} from '@rainlanguage/ui-components'; | ||
let isLoading: boolean = true; | ||
</script> | ||
|
||
<div> | ||
<ButtonLoading color="primary" class="w-full px-2 py-1" size="lg" pill loading={isLoading} | ||
>Loading button</ButtonLoading | ||
> | ||
<IconError /> | ||
<IconExternalLink svgClass="!h-2 !w-2 mr-1" /> | ||
<IconInfo /> | ||
<IconLedger /> | ||
<IconSuccess /> | ||
<IconTelegram dark /> | ||
<IconWalletConnect /> | ||
<IconWarning /> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters