flowbite-svelte 0.27.3 → 0.27.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 +16 -0
- package/package.json +1 -1
- package/toasts/Toast.svelte +13 -10
- package/toasts/Toast.svelte.d.ts +2 -2
- package/tooltips/Tooltip.svelte +0 -1
- package/types.d.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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.27.4](https://github.com/themesberg/flowbite-svelte/compare/v0.27.3...v0.27.4) (2022-09-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* toast fine tune ([f3ee6f3](https://github.com/themesberg/flowbite-svelte/commit/f3ee6f382aa3a004a8efdbed75f215b9dfe59b4e))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* app.css restored ([e40bc80](https://github.com/themesberg/flowbite-svelte/commit/e40bc80cace759b434bc889c1d143533de032345))
|
|
16
|
+
* change a to A component ([dc92c3f](https://github.com/themesberg/flowbite-svelte/commit/dc92c3f699986f6679805350f3a88effc0e2a0c8))
|
|
17
|
+
* remove type CrumbType ([4269359](https://github.com/themesberg/flowbite-svelte/commit/4269359c1bddb37fea064cab4dc31b3ea30772ee))
|
|
18
|
+
* toc stickiness ([#330](https://github.com/themesberg/flowbite-svelte/issues/330)) ([21a0409](https://github.com/themesberg/flowbite-svelte/commit/21a0409bd34323b2858f43952ef6de45982b262d))
|
|
19
|
+
* update props and types page ([#331](https://github.com/themesberg/flowbite-svelte/issues/331)) ([0be5900](https://github.com/themesberg/flowbite-svelte/commit/0be59006c6bf79df210838b21a17d3dfd18213ac))
|
|
20
|
+
|
|
5
21
|
### [0.27.3](https://github.com/themesberg/flowbite-svelte/compare/v0.27.2...v0.27.3) (2022-09-26)
|
|
6
22
|
|
|
7
23
|
|
package/package.json
CHANGED
package/toasts/Toast.svelte
CHANGED
|
@@ -5,20 +5,23 @@ import { fade } from 'svelte/transition';
|
|
|
5
5
|
export let color = 'blue';
|
|
6
6
|
export let simple = false;
|
|
7
7
|
// Absolute position
|
|
8
|
-
export let position =
|
|
9
|
-
export let
|
|
8
|
+
export let position = 'none'; // default not set
|
|
9
|
+
export let open = true;
|
|
10
10
|
export let divClass = 'w-full max-w-xs p-4';
|
|
11
|
-
|
|
12
|
-
'absolute top-5 left-5'
|
|
13
|
-
'absolute top-5 right-5'
|
|
14
|
-
'absolute bottom-5 left-5'
|
|
15
|
-
'absolute bottom-5 right-5'
|
|
16
|
-
|
|
11
|
+
const positions = {
|
|
12
|
+
'top-left': 'absolute top-5 left-5',
|
|
13
|
+
'top-right': 'absolute top-5 right-5',
|
|
14
|
+
'bottom-left': 'absolute bottom-5 left-5',
|
|
15
|
+
'bottom-right': 'absolute bottom-5 right-5',
|
|
16
|
+
none: ''
|
|
17
|
+
};
|
|
18
|
+
let classDiv;
|
|
19
|
+
$: classDiv = classNames(divClass, positions[position], $$props.class);
|
|
17
20
|
let iconClass;
|
|
18
21
|
$: iconClass = classNames('inline-flex items-center justify-center flex-shrink-0 w-8 h-8 mr-3');
|
|
19
22
|
</script>
|
|
20
23
|
|
|
21
|
-
{#if
|
|
24
|
+
{#if open}
|
|
22
25
|
<Frame rounded border transition={fade} {...$$restProps} class={classDiv} role="alert">
|
|
23
26
|
<div class="flex {$$slots.extra ? 'items-start' : 'items-center'}">
|
|
24
27
|
{#if $$slots.icon}
|
|
@@ -30,7 +33,7 @@ $: iconClass = classNames('inline-flex items-center justify-center flex-shrink-0
|
|
|
30
33
|
<slot name="extra" />
|
|
31
34
|
</div>
|
|
32
35
|
{#if !simple}
|
|
33
|
-
<CloseButton on:click={() => (
|
|
36
|
+
<CloseButton on:click={() => (open = false)} />
|
|
34
37
|
{/if}
|
|
35
38
|
</div>
|
|
36
39
|
</Frame>
|
package/toasts/Toast.svelte.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ declare const __propDef: {
|
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
color?: Colors | undefined;
|
|
7
7
|
simple?: boolean | undefined;
|
|
8
|
-
position?: "
|
|
9
|
-
|
|
8
|
+
position?: "none" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
9
|
+
open?: boolean | undefined;
|
|
10
10
|
divClass?: string | undefined;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
package/tooltips/Tooltip.svelte
CHANGED
package/types.d.ts
CHANGED
|
@@ -58,10 +58,6 @@ export interface CheckboxType {
|
|
|
58
58
|
helper?: string;
|
|
59
59
|
}
|
|
60
60
|
export declare type Colors = 'blue' | 'gray' | 'red' | 'yellow' | 'purple' | 'green' | 'indigo' | 'pink' | 'white' | 'custom';
|
|
61
|
-
export declare type CrumbType = {
|
|
62
|
-
label: string;
|
|
63
|
-
href: string;
|
|
64
|
-
};
|
|
65
61
|
export interface DotType {
|
|
66
62
|
top?: boolean;
|
|
67
63
|
color?: string;
|