flowbite-svelte 0.22.15 → 0.22.16
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/CHANGELOG.md +7 -0
- package/buttons/Button.svelte +14 -21
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.22.16](https://github.com/themesberg/flowbite-svelte/compare/v0.22.15...v0.22.16) (2022-07-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* cards/index.md, buttons ([9b2ca39](https://github.com/themesberg/flowbite-svelte/commit/9b2ca3914681439e667b5b6026f6c6e22b56b6fd))
|
|
11
|
+
|
|
5
12
|
### [0.22.15](https://github.com/themesberg/flowbite-svelte/compare/v0.22.14...v0.22.15) (2022-07-26)
|
|
6
13
|
|
|
7
14
|
|
package/buttons/Button.svelte
CHANGED
|
@@ -65,26 +65,19 @@ $: gradientOutlineClass = classNames('inline-flex items-center justify-center',
|
|
|
65
65
|
'transition-all duration-75 ease-in group-hover:bg-opacity-0 group-hover:text-inherit');
|
|
66
66
|
</script>
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
<svelte:element
|
|
69
|
+
this={href ? 'a' : 'button'}
|
|
70
|
+
type={href ? undefined : 'button'}
|
|
71
|
+
{...$$restProps}
|
|
72
|
+
class={buttonClass}
|
|
73
|
+
on:click
|
|
74
|
+
>
|
|
75
|
+
{#if outline && gradient}
|
|
76
|
+
<!-- Trick to prentend outline without using border
|
|
72
77
|
This has a limitation of no supporting transparency as
|
|
73
78
|
background is set to bg-white dark:bg-gray-900 -->
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
{:else}
|
|
80
|
-
<button type="button" {...$$restProps} class={buttonClass} on:click>
|
|
81
|
-
{#if outline && gradient}
|
|
82
|
-
<!-- Trick to prentend outline without using border
|
|
83
|
-
This has a limitation of no supporting transparency as
|
|
84
|
-
background is set to bg-white dark:bg-gray-900 -->
|
|
85
|
-
<span class={gradientOutlineClass}><slot /></span>
|
|
86
|
-
{:else}
|
|
87
|
-
<slot />
|
|
88
|
-
{/if}
|
|
89
|
-
</button>
|
|
90
|
-
{/if}
|
|
79
|
+
<span class={gradientOutlineClass}><slot /></span>
|
|
80
|
+
{:else}
|
|
81
|
+
<slot />
|
|
82
|
+
{/if}
|
|
83
|
+
</svelte:element>
|