flowbite-svelte 0.29.0 → 0.29.2
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 +10 -0
- package/README.md +4 -0
- package/avatar/Dot.svelte +5 -5
- package/badges/Badge.svelte +4 -4
- package/forms/Search.svelte +2 -0
- package/forms/Search.svelte.d.ts +1 -0
- package/package.json +5 -3
- package/paginations/PaginationItem.svelte +1 -0
- package/paginations/PaginationItem.svelte.d.ts +1 -0
- package/tables/TableBody.svelte +5 -2
- package/tables/TableBody.svelte.d.ts +6 -15
- package/typography/A.svelte +1 -3
- package/typography/A.svelte.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
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.29.2](https://github.com/themesberg/flowbite-svelte/compare/v0.29.1...v0.29.2) (2022-12-19)
|
|
6
|
+
|
|
7
|
+
### [0.29.1](https://github.com/themesberg/flowbite-svelte/compare/v0.29.0...v0.29.1) (2022-12-19)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* add esbuild@0.16.8 and update other dependencies ([f32d1be](https://github.com/themesberg/flowbite-svelte/commit/f32d1beea8b402652242fdeaf1007885e74c12cd))
|
|
13
|
+
* change svelte-kit sync && svelte-package to vite build ([cd7cd5e](https://github.com/themesberg/flowbite-svelte/commit/cd7cd5e971ba4f6c547984daf3a5f37656343b28))
|
|
14
|
+
|
|
5
15
|
## [0.29.0](https://github.com/themesberg/flowbite-svelte/compare/v0.28.12...v0.29.0) (2022-12-18)
|
|
6
16
|
|
|
7
17
|
|
package/README.md
CHANGED
package/avatar/Dot.svelte
CHANGED
|
@@ -25,10 +25,10 @@ $: divClass = classNames('relative flex-shrink-0', $$props.class);
|
|
|
25
25
|
</script>
|
|
26
26
|
|
|
27
27
|
{#if show}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
<div class={divClass}>
|
|
29
|
+
<slot />
|
|
30
|
+
<span class={dotClass} />
|
|
31
|
+
</div>
|
|
32
32
|
{:else}
|
|
33
|
-
|
|
33
|
+
<slot />
|
|
34
34
|
{/if}
|
package/badges/Badge.svelte
CHANGED
|
@@ -44,8 +44,8 @@ const handleHide = () => {
|
|
|
44
44
|
</script>
|
|
45
45
|
|
|
46
46
|
<svelte:element this={href ? 'a' : 'span'} {href} {...$$restProps} class={badgeClass} class:hidden>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
<slot />
|
|
48
|
+
{#if dismissable}
|
|
49
|
+
<CloseButton {color} on:click={handleHide} size={large ? 'sm' : 'xs'} class="ml-1.5 -mr-1.5" />
|
|
50
|
+
{/if}
|
|
51
51
|
</svelte:element>
|
package/forms/Search.svelte
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import Input from './Input.svelte';
|
|
3
3
|
export let size = 'lg';
|
|
4
4
|
export let placeholder = 'Search';
|
|
5
|
+
export let value = '';
|
|
5
6
|
const sizes = {
|
|
6
7
|
sm: 'w-3.5 h-3.5',
|
|
7
8
|
md: 'w-5 h-5',
|
|
@@ -11,6 +12,7 @@ const sizes = {
|
|
|
11
12
|
|
|
12
13
|
<Wrapper class="relative w-full" show={$$slots.default}>
|
|
13
14
|
<Input
|
|
15
|
+
bind:value
|
|
14
16
|
on:blur
|
|
15
17
|
on:change
|
|
16
18
|
on:input
|
package/forms/Search.svelte.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.2",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": {
|
|
@@ -14,12 +14,13 @@
|
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@playwright/test": "^1.28.1",
|
|
16
16
|
"@sveltejs/adapter-vercel": "next",
|
|
17
|
-
"@sveltejs/kit": "^1.0.
|
|
17
|
+
"@sveltejs/kit": "^1.0.0",
|
|
18
18
|
"@sveltejs/package": "1.0.0-next.3",
|
|
19
19
|
"@typescript-eslint/eslint-plugin": "^5.46.0",
|
|
20
20
|
"@typescript-eslint/parser": "^5.46.0",
|
|
21
21
|
"autoprefixer": "^10.4.13",
|
|
22
22
|
"createprops": "^0.4.9",
|
|
23
|
+
"esbuild": "0.16.8",
|
|
23
24
|
"eslint": "^8.29.0",
|
|
24
25
|
"eslint-config-prettier": "^8.5.0",
|
|
25
26
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
@@ -38,7 +39,8 @@
|
|
|
38
39
|
"tailwindcss": "^3.2.4",
|
|
39
40
|
"tslib": "^2.4.1",
|
|
40
41
|
"typescript": "^4.9.4",
|
|
41
|
-
"vite": "^4.0.0"
|
|
42
|
+
"vite": "^4.0.0",
|
|
43
|
+
"vitest": "^0.25.8"
|
|
42
44
|
},
|
|
43
45
|
"type": "module",
|
|
44
46
|
"keywords": [
|
package/tables/TableBody.svelte
CHANGED
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
/** @typedef {typeof __propDef.props} TableBodyProps */
|
|
2
|
-
/** @typedef {typeof __propDef.events} TableBodyEvents */
|
|
3
|
-
/** @typedef {typeof __propDef.slots} TableBodySlots */
|
|
4
|
-
export default class TableBody extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]: never;
|
|
6
|
-
}, {
|
|
7
|
-
[evt: string]: CustomEvent<any>;
|
|
8
|
-
}, {
|
|
9
|
-
default: {};
|
|
10
|
-
}> {
|
|
11
|
-
}
|
|
12
|
-
export type TableBodyProps = typeof __propDef.props;
|
|
13
|
-
export type TableBodyEvents = typeof __propDef.events;
|
|
14
|
-
export type TableBodySlots = typeof __propDef.slots;
|
|
15
1
|
import { SvelteComponentTyped } from "svelte";
|
|
16
2
|
declare const __propDef: {
|
|
17
3
|
props: {
|
|
18
|
-
|
|
4
|
+
tableBodyClass?: string | undefined;
|
|
19
5
|
};
|
|
20
6
|
events: {
|
|
21
7
|
[evt: string]: CustomEvent<any>;
|
|
@@ -24,4 +10,9 @@ declare const __propDef: {
|
|
|
24
10
|
default: {};
|
|
25
11
|
};
|
|
26
12
|
};
|
|
13
|
+
export type TableBodyProps = typeof __propDef.props;
|
|
14
|
+
export type TableBodyEvents = typeof __propDef.events;
|
|
15
|
+
export type TableBodySlots = typeof __propDef.slots;
|
|
16
|
+
export default class TableBody extends SvelteComponentTyped<TableBodyProps, TableBodyEvents, TableBodySlots> {
|
|
17
|
+
}
|
|
27
18
|
export {};
|
package/typography/A.svelte
CHANGED
|
@@ -4,8 +4,6 @@ export let color = 'text-blue-600 dark:text-blue-500';
|
|
|
4
4
|
export let aClass = 'inline-flex items-center hover:underline';
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<a
|
|
8
|
-
on:click
|
|
9
|
-
{...$$restProps} {href} class={classNames(aClass, color, $$props.class)}>
|
|
7
|
+
<a {...$$restProps} {href} class={classNames(aClass, color, $$props.class)}>
|
|
10
8
|
<slot />
|
|
11
9
|
</a>
|