@sierra-95/svelte-scaffold 1.2.21 → 1.2.22

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.
@@ -6,6 +6,7 @@
6
6
  shareText = '',
7
7
  limitShareText = 30,
8
8
  label = "Share on WhatsApp",
9
+ tailwindStyles = 'text-[#25D366]',
9
10
  } = $props();
10
11
 
11
12
  let copyLink = $state(false);
@@ -52,5 +53,5 @@
52
53
  {#if copyLink}
53
54
  <Button variant="outlined" startIcon="fa-solid fa-copy" onclick={copyToClipboard}>Copy Link</Button>
54
55
  {:else}
55
- <Button onclick={handleShare} variant="outlined" startIcon="fa-brands fa-whatsapp" iconSize="1.2rem" color="none" style="text-[#25D366]">{label}</Button>
56
+ <Button onclick={handleShare} variant="outlined" startIcon="fa-brands fa-whatsapp" iconSize="1.2rem" color="none" style={tailwindStyles}>{label}</Button>
56
57
  {/if}
@@ -4,6 +4,7 @@ declare const Whatsapp: import("svelte").Component<{
4
4
  shareText?: string;
5
5
  limitShareText?: number;
6
6
  label?: string;
7
+ tailwindStyles?: string;
7
8
  }, {}, "">;
8
9
  type Whatsapp = ReturnType<typeof Whatsapp>;
9
10
  export default Whatsapp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sierra-95/svelte-scaffold",
3
- "version": "1.2.21",
3
+ "version": "1.2.22",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",