flowbite-svelte 0.28.3 → 0.28.4
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/avatar/Avatar.svelte +1 -1
- package/buttons/Button.svelte +2 -2
- package/package.json +1 -1
- package/tooltips/Tooltip.svelte +5 -5
- package/utils/Popper.svelte +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.28.4](https://github.com/themesberg/flowbite-svelte/compare/v0.28.3...v0.28.4) (2022-12-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* avatar default href ([#462](https://github.com/themesberg/flowbite-svelte/issues/462)) ([1ad8999](https://github.com/themesberg/flowbite-svelte/commit/1ad899993ae3cf1f18e975766549718dc65ed50b))
|
|
11
|
+
|
|
5
12
|
### [0.28.3](https://github.com/themesberg/flowbite-svelte/compare/v0.28.2...v0.28.3) (2022-11-28)
|
|
6
13
|
|
|
7
14
|
|
package/avatar/Avatar.svelte
CHANGED
package/buttons/Button.svelte
CHANGED
|
@@ -50,7 +50,7 @@ const coloredShadowClasses = {
|
|
|
50
50
|
};
|
|
51
51
|
const outlineClasses = {
|
|
52
52
|
blue: 'text-blue-700 hover:text-white border border-blue-700 hover:bg-blue-800 focus:ring-blue-300 dark:border-blue-500 dark:text-blue-500 dark:hover:text-white dark:hover:bg-blue-600 dark:focus:ring-blue-800',
|
|
53
|
-
light:
|
|
53
|
+
light: 'text-gray-500 hover:text-gray-900 bg-white border border-gray-200 dark:border-gray-600 dark:hover:text-white dark:text-gray-400 hover:bg-gray-50 dark:bg-gray-700 dark:hover:bg-gray-600 focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-400',
|
|
54
54
|
dark: 'text-gray-900 hover:text-white border border-gray-800 hover:bg-gray-900 focus:bg-gray-900 focus:text-white focus:ring-gray-300 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-800',
|
|
55
55
|
green: 'text-green-700 hover:text-white border border-green-700 hover:bg-green-800 focus:ring-green-300 dark:border-green-500 dark:text-green-500 dark:hover:text-white dark:hover:bg-green-600 dark:focus:ring-green-800',
|
|
56
56
|
red: 'text-red-700 hover:text-white border border-red-700 hover:bg-red-800 focus:ring-red-300 dark:border-red-500 dark:text-red-500 dark:hover:text-white dark:hover:bg-red-600 dark:focus:ring-red-900',
|
|
@@ -78,7 +78,7 @@ const hasBorder = () => outline || color === 'alternative' || color === 'light';
|
|
|
78
78
|
let buttonClass;
|
|
79
79
|
$: buttonClass = btnClass
|
|
80
80
|
? btnClass
|
|
81
|
-
: classNames('text-center font-medium', group ? 'focus:ring-2' : 'focus:ring-4', group && 'focus:z-10',
|
|
81
|
+
: classNames('text-center font-medium', group ? 'focus:ring-2' : 'focus:ring-4', group && 'focus:z-10', group || 'focus:outline-none', outline && gradient ? 'p-0.5' : 'inline-flex items-center justify-center ' + sizeClasses[size], gradient ? gradientClasses[color] : outline ? outlineClasses[color] : colorClasses[color], color === 'alternative' &&
|
|
82
82
|
(group
|
|
83
83
|
? 'dark:bg-gray-700 dark:text-white dark:border-gray-700 dark:hover:border-gray-600 dark:hover:bg-gray-600'
|
|
84
84
|
: 'dark:bg-transparent dark:border-gray-800 dark:hover:border-gray-700'), outline &&
|
package/package.json
CHANGED
package/tooltips/Tooltip.svelte
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<script>import Popper from '../utils/Popper.svelte';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
|
-
export let style = '
|
|
3
|
+
export let style = 'dark';
|
|
4
4
|
export let defaultClass = 'py-2 px-3 text-sm font-medium';
|
|
5
5
|
const styles = {
|
|
6
|
-
dark: '
|
|
7
|
-
light: 'border-gray-200 bg-white text-gray-900',
|
|
8
|
-
auto: '
|
|
6
|
+
dark: 'bg-gray-900 text-white dark:bg-gray-700',
|
|
7
|
+
light: 'border border-gray-200 bg-white text-gray-900',
|
|
8
|
+
auto: ' bg-white text-gray-900 dark:bg-gray-700 dark:text-white border border-gray-200 dark:border-0',
|
|
9
9
|
custom: ''
|
|
10
10
|
};
|
|
11
11
|
let toolTipClass;
|
|
@@ -18,6 +18,6 @@ $: {
|
|
|
18
18
|
}
|
|
19
19
|
</script>
|
|
20
20
|
|
|
21
|
-
<Popper data-tooltip rounded
|
|
21
|
+
<Popper data-tooltip rounded shadow {...$$restProps} class={toolTipClass} on:show>
|
|
22
22
|
<slot />
|
|
23
23
|
</Popper>
|
package/utils/Popper.svelte
CHANGED
|
@@ -134,6 +134,6 @@ function optional(pred, func) {
|
|
|
134
134
|
{...$$restProps}
|
|
135
135
|
class={classNames('z-10 outline-none', $$props.class)}>
|
|
136
136
|
<slot />
|
|
137
|
-
{#if arrow}<div data-popper-arrow class="tooltip-arrow
|
|
137
|
+
{#if arrow}<div data-popper-arrow class="tooltip-arrow" />{/if}
|
|
138
138
|
</Frame>
|
|
139
139
|
{/if}
|