@rainlanguage/ui-components 0.0.1-alpha.67 → 0.0.1-alpha.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,7 +17,11 @@ import OrderApy from "../tables/OrderAPY.svelte";
17
17
  import { page } from "$app/stores";
18
18
  import Refresh from "../icon/Refresh.svelte";
19
19
  import { invalidateTanstackQueries } from "../../queries/queryClient";
20
- import { ArrowDownOutline, ArrowUpOutline, InfoCircleOutline } from "flowbite-svelte-icons";
20
+ import {
21
+ ArrowDownToBracketOutline,
22
+ ArrowUpFromBracketOutline,
23
+ InfoCircleOutline
24
+ } from "flowbite-svelte-icons";
21
25
  import { useAccount } from "../../providers/wallet/useAccount";
22
26
  import {
23
27
  getOrderByHash
@@ -134,7 +138,7 @@ $: subgraphName = $page.url.pathname.split("/")[2]?.split("-")[0];
134
138
  data-testid="deposit-button"
135
139
  on:click={() => onDeposit(vault)}
136
140
  >
137
- <ArrowDownOutline size="xs" />
141
+ <ArrowDownToBracketOutline size="xs" />
138
142
  </Button>
139
143
  <Button
140
144
  color="light"
@@ -142,7 +146,7 @@ $: subgraphName = $page.url.pathname.split("/")[2]?.split("-")[0];
142
146
  data-testid="withdraw-button"
143
147
  on:click={() => onWithdraw(vault)}
144
148
  >
145
- <ArrowUpOutline size="xs" />
149
+ <ArrowUpFromBracketOutline size="xs" />
146
150
  </Button>
147
151
  </div>
148
152
  {/if}
@@ -36,7 +36,7 @@ $: orderModalArg = order;
36
36
 
37
37
  <div class="mt-4">
38
38
  <div class="mb-4 flex items-center justify-between">
39
- <h2 class="text-lg font-semibold">Order Quotes</h2>
39
+ <h2 class="text-lg font-semibold">Order quotes</h2>
40
40
  <div class="flex items-center gap-x-1">
41
41
  {#if $orderQuoteQuery.data && $orderQuoteQuery.data.length > 0 && isHex($orderQuoteQuery.data[0].blockNumber)}
42
42
  <EditableSpan
@@ -15,7 +15,7 @@ import Refresh from "../icon/Refresh.svelte";
15
15
  import { invalidateTanstackQueries } from "../../queries/queryClient";
16
16
  import { useAccount } from "../../providers/wallet/useAccount";
17
17
  import { Button } from "flowbite-svelte";
18
- import { ArrowDownOutline, ArrowUpOutline } from "flowbite-svelte-icons";
18
+ import { ArrowDownToBracketOutline, ArrowUpFromBracketOutline } from "flowbite-svelte-icons";
19
19
  export let id;
20
20
  export let network;
21
21
  export let lightweightChartsTheme = void 0;
@@ -63,7 +63,7 @@ onDestroy(() => {
63
63
  aria-label="Deposit to vault"
64
64
  on:click={() => onDeposit(data)}
65
65
  >
66
- <ArrowDownOutline size="xs" />
66
+ <ArrowDownToBracketOutline size="xs" />
67
67
  </Button>
68
68
  <Button
69
69
  color="light"
@@ -72,7 +72,7 @@ onDestroy(() => {
72
72
  aria-label="Withdraw from vault"
73
73
  on:click={() => onWithdraw(data)}
74
74
  >
75
- <ArrowUpOutline size="xs" />
75
+ <ArrowUpFromBracketOutline size="xs" />
76
76
  </Button>
77
77
  {/if}
78
78
 
@@ -97,7 +97,7 @@ onDestroy(() => {
97
97
  </CardProperty>
98
98
 
99
99
  <CardProperty data-testid="vaultDetailOwnerAddress">
100
- <svelte:fragment slot="key">Owner Address</svelte:fragment>
100
+ <svelte:fragment slot="key">Owner address</svelte:fragment>
101
101
  <svelte:fragment slot="value">
102
102
  <Hash type={HashType.Wallet} value={data.owner} />
103
103
  </svelte:fragment>
@@ -9,7 +9,7 @@ function handleChange(event) {
9
9
  </script>
10
10
 
11
11
  <div data-testid="order-hash-input" class="flex flex-col gap-x-2">
12
- <Label>Order Hash</Label>
12
+ <Label>Order hash</Label>
13
13
  <div class="w-full lg:w-32">
14
14
  <input
15
15
  type="text"
@@ -14,5 +14,5 @@ const loadRegistryUrl = () => {
14
14
  placeholder="Enter URL to raw strategy registry file"
15
15
  bind:value={newRegistryUrl}
16
16
  />
17
- <Button class="text-nowrap" on:click={loadRegistryUrl}>Load Registry URL</Button>
17
+ <Button class="text-nowrap" on:click={loadRegistryUrl}>Load registry URL</Button>
18
18
  </div>
@@ -35,10 +35,10 @@ function decimalsComplete({ detail }) {
35
35
  </div>
36
36
 
37
37
  {#if !isAddressValid && address.length > 0}
38
- <Helper class="mt-2 text-sm" color="red">Invalid Address</Helper>
38
+ <Helper class="mt-2 text-sm" color="red">Invalid address</Helper>
39
39
  {/if}
40
40
 
41
- <Helper class="mt-2 text-sm">Token Address</Helper>
41
+ <Helper class="mt-2 text-sm">Token address</Helper>
42
42
  </div>
43
43
  <div class="w-32 grow-0 break-all" data-testid="token-decimals-input">
44
44
  <input
@@ -35,7 +35,7 @@ const AppTable = TanstackAppTable;
35
35
  rowHoverable={false}
36
36
  >
37
37
  <svelte:fragment slot="title">
38
- <Heading tag="h5" class="mb-4 mt-6 font-normal">Vault Balance Changes</Heading>
38
+ <Heading tag="h5" class="mb-4 mt-6 font-normal">Vault balance changes</Heading>
39
39
  </svelte:fragment>
40
40
  <svelte:fragment slot="head">
41
41
  <TableHeadCell padding="p-4">Date</TableHeadCell>
@@ -24,6 +24,6 @@ function handleClick() {
24
24
  ><CheckCircleOutline color="green" size="sm" />{truncateEthAddress($account)}</span
25
25
  >
26
26
  {:else}
27
- <span>Connect Wallet</span>
27
+ <span>Connect</span>
28
28
  {/if}
29
29
  </Button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainlanguage/ui-components",
3
- "version": "0.0.1-alpha.67",
3
+ "version": "0.0.1-alpha.69",
4
4
  "description": "A component library for building Svelte applications to be used with Raindex.",
5
5
  "license": "LicenseRef-DCL-1.0",
6
6
  "author": "Rain Open Source Software Ltd",
@@ -53,7 +53,7 @@
53
53
  "@fontsource/dm-sans": "5.1.0",
54
54
  "@imask/svelte": "7.6.1",
55
55
  "@observablehq/plot": "0.6.16",
56
- "@rainlanguage/orderbook": "0.0.1-alpha.67",
56
+ "@rainlanguage/orderbook": "0.0.1-alpha.69",
57
57
  "@reown/appkit": "1.6.4",
58
58
  "@reown/appkit-adapter-wagmi": "1.6.4",
59
59
  "@sentry/sveltekit": "7.120.0",