@reqquest/ui 1.1.5 → 1.1.7
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* There can be up to 3 external links to help applicants if there are things they need to do externally to the app request.
|
|
8
8
|
* @type {{ url: string, label: string }[]}
|
|
9
9
|
*/
|
|
10
|
-
export let externalLinks: { url: string, label: string }[] = []
|
|
10
|
+
export let externalLinks: { url: string, label: string, target?: string, rel?: string}[] = []
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* If true, the form will take the full width of its container. If false, it will be constrained to max-w-screen-md.
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class="prompt-intro-links flow max-w-screen-md mx-auto px-6">
|
|
26
26
|
<ul class="flex gap-4 flex-wrap mb-4 justify-center">
|
|
27
27
|
{#each externalLinks.slice(0, 3) as link (link.url)}
|
|
28
|
-
<li><Button kind="ghost" icon={Launch} href={link.url}>{link.label}</Button></li>
|
|
28
|
+
<li><Button kind="ghost" icon={Launch} href={link.url} target={link.target ?? '_blank'} rel={link.rel ?? 'noopener noreferrer'}>{link.label}</Button></li>
|
|
29
29
|
{/each}
|
|
30
30
|
</ul>
|
|
31
31
|
</div>
|