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 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
@@ -449,3 +449,7 @@ Please read [How to contribute](https://github.com/themesberg/flowbite-svelte/bl
449
449
  ## Changelog
450
450
 
451
451
  [Changelog](https://github.com/themesberg/flowbite-svelte/blob/main/CHANGELOG.md)
452
+
453
+ ## SvelteKit version
454
+
455
+ 1.0.1
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
- <div class={divClass}>
29
- <slot />
30
- <span class={dotClass} />
31
- </div>
28
+ <div class={divClass}>
29
+ <slot />
30
+ <span class={dotClass} />
31
+ </div>
32
32
  {:else}
33
- <slot />
33
+ <slot />
34
34
  {/if}
@@ -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
- <slot />
48
- {#if dismissable}
49
- <CloseButton {color} on:click={handleHide} size={large ? 'sm' : 'xs'} class="ml-1.5 -mr-1.5" />
50
- {/if}
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>
@@ -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
@@ -5,6 +5,7 @@ declare const __propDef: {
5
5
  [x: string]: any;
6
6
  size?: FormSizeType | undefined;
7
7
  placeholder?: string | undefined;
8
+ value?: string | number | undefined;
8
9
  };
9
10
  events: {
10
11
  blur: FocusEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.29.0",
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.1",
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": [
@@ -12,6 +12,7 @@ $: defaultClass = classNames('block py-2', group ? 'px-3' : 'px-4', 'text-sm fon
12
12
  {href}
13
13
  class={defaultClass}
14
14
  on:blur
15
+ on:change
15
16
  on:click
16
17
  on:focus
17
18
  on:keydown
@@ -6,6 +6,7 @@ declare const __propDef: {
6
6
  };
7
7
  events: {
8
8
  blur: FocusEvent;
9
+ change: Event;
9
10
  click: MouseEvent;
10
11
  focus: FocusEvent;
11
12
  keydown: KeyboardEvent;
@@ -1,3 +1,6 @@
1
- <tbody {...$$props}>
2
- <slot />
1
+ <script>export let tableBodyClass = undefined;
2
+ </script>
3
+
4
+ <tbody class={tableBodyClass}>
5
+ <slot />
3
6
  </tbody>
@@ -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
- [x: string]: never;
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 {};
@@ -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>
@@ -7,8 +7,6 @@ declare const __propDef: {
7
7
  aClass?: string | undefined;
8
8
  };
9
9
  events: {
10
- click: MouseEvent;
11
- } & {
12
10
  [evt: string]: CustomEvent<any>;
13
11
  };
14
12
  slots: {