flowbite-svelte 0.22.22 → 0.22.23
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/alerts/Alert.svelte +5 -5
- package/forms/Checkbox.svelte +1 -0
- package/forms/Checkbox.svelte.d.ts +1 -0
- package/forms/Toggle.svelte +1 -1
- package/forms/Toggle.svelte.d.ts +1 -0
- 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.23](https://github.com/themesberg/flowbite-svelte/compare/v0.22.22...v0.22.23) (2022-07-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* minor fixes / fine tuning ([57c1cf7](https://github.com/themesberg/flowbite-svelte/commit/57c1cf7f1bd461c417be1fd925766c045d72c015))
|
|
11
|
+
|
|
5
12
|
### [0.22.22](https://github.com/themesberg/flowbite-svelte/compare/v0.22.21...v0.22.22) (2022-07-28)
|
|
6
13
|
|
|
7
14
|
|
package/alerts/Alert.svelte
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
<script>import
|
|
1
|
+
<script>import { setContext } from 'svelte';
|
|
2
|
+
import classNames from 'classnames';
|
|
2
3
|
import { createEventDispatcher } from 'svelte';
|
|
3
4
|
import CloseButton from '../utils/CloseButton.svelte';
|
|
4
5
|
const dispatch = createEventDispatcher();
|
|
6
|
+
setContext('background', true);
|
|
5
7
|
export let color = 'blue';
|
|
6
8
|
export let icon = null;
|
|
7
9
|
export let dismissable = false;
|
|
@@ -48,13 +50,11 @@ const textColors = {
|
|
|
48
50
|
dark: 'text-gray-700 dark:text-gray-300'
|
|
49
51
|
};
|
|
50
52
|
let divClass;
|
|
51
|
-
$: divClass = classNames('flex flex-col p-4 mb-4 gap-2 ', bgClasses[color] ?? bgClasses.blue, accent && (borderAccentClasses[color] ?? borderAccentClasses.blue), rounded && 'rounded-lg ', accent && 'border-t-4 ', $$props.class);
|
|
52
|
-
let textColor;
|
|
53
|
-
$: textColor = textColors[color] ?? textColors.blue;
|
|
53
|
+
$: divClass = classNames('flex flex-col p-4 mb-4 gap-2 ', bgClasses[color] ?? bgClasses.blue, accent && (borderAccentClasses[color] ?? borderAccentClasses.blue), rounded && 'rounded-lg ', accent && 'border-t-4 ', textColors[color], $$props.class);
|
|
54
54
|
</script>
|
|
55
55
|
|
|
56
56
|
<div id={$$props.id} class:hidden class={divClass} role="alert">
|
|
57
|
-
<div class="flex items-center
|
|
57
|
+
<div class="flex items-center">
|
|
58
58
|
{#if icon}
|
|
59
59
|
<svelte:component this={icon} class="flex-shrink-0 w-5 h-5 mr-3" />
|
|
60
60
|
{/if}
|
package/forms/Checkbox.svelte
CHANGED
package/forms/Toggle.svelte
CHANGED
|
@@ -26,7 +26,7 @@ let divClass;
|
|
|
26
26
|
$: divClass = classNames(common, background ? 'dark:bg-gray-600 dark:border-gray-500' : 'dark:bg-gray-700 dark:border-gray-600', colors[$$restProps.color ?? 'blue'], sizes[size], 'relative');
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
|
-
<Checkbox custom {...$$restProps} class={$$props.class}
|
|
29
|
+
<Checkbox custom {...$$restProps} class={$$props.class} {value} bind:checked bind:group on:click on:change>
|
|
30
30
|
<div class={divClass} />
|
|
31
31
|
<slot />
|
|
32
32
|
</Checkbox>
|
package/forms/Toggle.svelte.d.ts
CHANGED