@rainlanguage/ui-components 0.0.1-alpha.44 → 0.0.1-alpha.46
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.
- package/dist/components/ButtonVaultLink.svelte +2 -2
- package/dist/components/Hash.svelte +3 -3
- package/dist/components/ListViewOrderbookFilters.svelte +3 -4
- package/dist/components/Tooltip.svelte +8 -0
- package/dist/components/Tooltip.svelte.d.ts +21 -0
- package/dist/components/deployment/ComposedRainlangModal.svelte +2 -1
- package/dist/components/deployment/ComposedRainlangModal.svelte.d.ts +1 -4
- package/dist/components/deployment/DeploymentSteps.svelte +1 -1
- package/dist/components/detail/TanstackOrderQuote.svelte +2 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>import { bigintStringToHex } from "../utils/hex";
|
|
2
|
-
import
|
|
2
|
+
import Tooltip from "./Tooltip.svelte";
|
|
3
3
|
import { formatUnits } from "viem";
|
|
4
4
|
export let tokenVault;
|
|
5
5
|
export let subgraphName;
|
|
@@ -10,7 +10,7 @@ export let subgraphName;
|
|
|
10
10
|
data-testid="vault-link"
|
|
11
11
|
>
|
|
12
12
|
<div class="flex flex-col items-start gap-y-2">
|
|
13
|
-
<Tooltip triggeredBy="#token-info"
|
|
13
|
+
<Tooltip triggeredBy="#token-info">
|
|
14
14
|
ID: <span class="font-mono">{bigintStringToHex(tokenVault.vaultId)}</span>
|
|
15
15
|
</Tooltip>
|
|
16
16
|
<a href={`/vaults/${subgraphName}-${tokenVault.id}`} id="token-info">
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
})(HashType || {});
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
|
-
<script>import
|
|
10
|
+
<script>import Tooltip from "./Tooltip.svelte";
|
|
11
11
|
import {
|
|
12
12
|
WalletOutline,
|
|
13
13
|
FingerprintOutline,
|
|
@@ -60,7 +60,7 @@ function copy(e) {
|
|
|
60
60
|
{#if showCopiedMessage}
|
|
61
61
|
<div
|
|
62
62
|
out:fade
|
|
63
|
-
class="fixed rounded bg-green-500 px-2 py-1 text-xs text-white
|
|
63
|
+
class="fixed rounded bg-green-500 px-2 py-1 text-xs text-white"
|
|
64
64
|
style="top: {cursorY + 10}px; left: {cursorX + 10}px"
|
|
65
65
|
>
|
|
66
66
|
Copied to clipboard
|
|
@@ -68,7 +68,7 @@ function copy(e) {
|
|
|
68
68
|
{/if}
|
|
69
69
|
|
|
70
70
|
{#if shorten}
|
|
71
|
-
<Tooltip triggeredBy={`#${id}`}
|
|
71
|
+
<Tooltip triggeredBy={`#${id}`}>
|
|
72
72
|
<div class="flex items-center justify-start space-x-2">
|
|
73
73
|
{#if type === HashType.Wallet}
|
|
74
74
|
<WalletOutline size="sm" />
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script generics="T">import { isEmpty } from "lodash";
|
|
2
|
-
import { Alert
|
|
2
|
+
import { Alert } from "flowbite-svelte";
|
|
3
|
+
import Tooltip from "./Tooltip.svelte";
|
|
3
4
|
import DropdownActiveSubgraphs from "./dropdown/DropdownActiveSubgraphs.svelte";
|
|
4
5
|
import DropdownOrderStatus from "./dropdown/DropdownOrderStatus.svelte";
|
|
5
6
|
import DropdownOrderListAccounts from "./dropdown/DropdownOrderListAccounts.svelte";
|
|
@@ -33,9 +34,7 @@ const { account } = useAccount();
|
|
|
33
34
|
<div class="mt-4 w-full lg:w-auto" data-testid="my-items-only">
|
|
34
35
|
<CheckboxMyItemsOnly context={isVaultsPage ? 'vaults' : 'orders'} {showMyItemsOnly} />
|
|
35
36
|
{#if !$account}
|
|
36
|
-
<Tooltip
|
|
37
|
-
>Connect a wallet to filter by {isVaultsPage ? 'vault' : 'order'} owner</Tooltip
|
|
38
|
-
>
|
|
37
|
+
<Tooltip>Connect a wallet to filter by {isVaultsPage ? 'vault' : 'order'} owner</Tooltip>
|
|
39
38
|
{/if}
|
|
40
39
|
</div>
|
|
41
40
|
{/if}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SvelteComponent } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
triggeredBy?: string;
|
|
5
|
+
customClass?: string;
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {
|
|
11
|
+
default: {};
|
|
12
|
+
};
|
|
13
|
+
exports?: {} | undefined;
|
|
14
|
+
bindings?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type TooltipProps = typeof __propDef.props;
|
|
17
|
+
export type TooltipEvents = typeof __propDef.events;
|
|
18
|
+
export type TooltipSlots = typeof __propDef.slots;
|
|
19
|
+
export default class Tooltip extends SvelteComponent<TooltipProps, TooltipEvents, TooltipSlots> {
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { RainlangLR } from "codemirror-rainlang";
|
|
3
3
|
import { lightCodeMirrorTheme } from "../../utils/codeMirrorThemes";
|
|
4
4
|
import { Button, Modal } from "flowbite-svelte";
|
|
5
|
-
|
|
5
|
+
import { useGui } from "../../hooks/useGui";
|
|
6
|
+
const gui = useGui();
|
|
6
7
|
let rainlangText = null;
|
|
7
8
|
let open = false;
|
|
8
9
|
async function generateRainlang() {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
|
-
import type { DotrainOrderGui } from '@rainlanguage/orderbook/js_api';
|
|
3
2
|
declare const __propDef: {
|
|
4
|
-
props:
|
|
5
|
-
gui: DotrainOrderGui;
|
|
6
|
-
};
|
|
3
|
+
props: Record<string, never>;
|
|
7
4
|
events: {
|
|
8
5
|
[evt: string]: CustomEvent<any>;
|
|
9
6
|
};
|
|
@@ -302,7 +302,7 @@ const areAllTokensSelected = async () => {
|
|
|
302
302
|
{:else}
|
|
303
303
|
<WalletConnect {appKitModal} connected={wagmiConnected} />
|
|
304
304
|
{/if}
|
|
305
|
-
<ComposedRainlangModal
|
|
305
|
+
<ComposedRainlangModal />
|
|
306
306
|
<ShareChoicesButton handleShareChoices={_handleShareChoices} />
|
|
307
307
|
</div>
|
|
308
308
|
{/if}
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
TableBodyCell,
|
|
12
12
|
TableBodyRow,
|
|
13
13
|
TableHead,
|
|
14
|
-
TableHeadCell
|
|
15
|
-
Tooltip
|
|
14
|
+
TableHeadCell
|
|
16
15
|
} from "flowbite-svelte";
|
|
17
16
|
import { BugOutline, PauseSolid, PlaySolid } from "flowbite-svelte-icons";
|
|
17
|
+
import Tooltip from "../Tooltip.svelte";
|
|
18
18
|
export let id;
|
|
19
19
|
export let order;
|
|
20
20
|
export let rpcUrl;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rainlanguage/ui-components",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.46",
|
|
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.
|
|
56
|
+
"@rainlanguage/orderbook": "0.0.1-alpha.46",
|
|
57
57
|
"@reown/appkit": "1.6.4",
|
|
58
58
|
"@reown/appkit-adapter-wagmi": "1.6.4",
|
|
59
59
|
"@sentry/sveltekit": "7.120.0",
|