@damillora/iuno 0.2.0 → 0.2.1

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.
@@ -5,16 +5,20 @@
5
5
  href,
6
6
  children,
7
7
  primary = false,
8
+ large = false,
8
9
  class: className = "",
9
10
  ...restProps
10
11
  } = $props();
11
12
  </script>
12
13
 
13
14
  <a
14
- class="inline-block py-1 px-4 rounded-lg border border-blue-800 font-bold transition-colors cursor-pointer hover:bg-blue-100 {className}"
15
- class:bg-blue-800={primary}
16
- class:text-white={primary}
17
- class:hover:bg-blue-700={primary}
18
- {href}
15
+ class={[
16
+ "inline-block",
17
+ "py-1 px-4 rounded-lg border border-blue-800 text-blue-800 transition-colors cursor-pointer hover:bg-blue-100",
18
+ primary && "bg-blue-800 text-white hover:bg-blue-700",
19
+ large && "text-xl py-2 px-8",
20
+ className,
21
+ ]}
22
+ href={href}
19
23
  {...restProps}>{@render children?.()}</a
20
24
  >
@@ -2,6 +2,7 @@ declare const LinkButton: import("svelte").Component<{
2
2
  href: any;
3
3
  children: any;
4
4
  primary?: boolean;
5
+ large?: boolean;
5
6
  class?: string;
6
7
  } & Record<string, any>, {}, "">;
7
8
  type LinkButton = ReturnType<typeof LinkButton>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@damillora/iuno",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",