flowbite-svelte 0.23.1 → 0.23.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,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.23.2](https://github.com/themesberg/flowbite-svelte/compare/v0.23.1...v0.23.2) (2022-08-04)
6
+
7
+
8
+ ### Features
9
+
10
+ * add events to NavLi and NavDropdown ([02e4032](https://github.com/themesberg/flowbite-svelte/commit/02e403211c93d8e81457e1006e21341f4deed352))
11
+
5
12
  ### [0.23.1](https://github.com/themesberg/flowbite-svelte/compare/v0.23.0...v0.23.1) (2022-08-04)
6
13
 
7
14
 
@@ -36,7 +36,20 @@ let liClass = 'flex justify-center py-2 pr-4 pl-3 text-gray-700 border-b border-
36
36
  <ul class="py-1" aria-labelledby="dropdownLargeButton">
37
37
  {#each child as item}
38
38
  <li>
39
- <a href={item.href} {rel} class={dropdownLinkClassWithChild}>{item.name}</a>
39
+ <a
40
+ href={item.href}
41
+ {rel}
42
+ on:click
43
+ on:change
44
+ on:keydown
45
+ on:keyup
46
+ on:focus
47
+ on:blur
48
+ on:mouseenter
49
+ on:mouseleave
50
+ on:mouseenter
51
+ class={dropdownLinkClassWithChild}>{item.name}</a
52
+ >
40
53
  </li>
41
54
  {/each}
42
55
  </ul>
@@ -10,6 +10,15 @@ declare const __propDef: {
10
10
  rel?: string;
11
11
  };
12
12
  events: {
13
+ click: MouseEvent;
14
+ change: Event;
15
+ keydown: KeyboardEvent;
16
+ keyup: KeyboardEvent;
17
+ focus: FocusEvent;
18
+ blur: FocusEvent;
19
+ mouseenter: MouseEvent;
20
+ mouseleave: MouseEvent;
21
+ } & {
13
22
  [evt: string]: CustomEvent<any>;
14
23
  };
15
24
  slots: {
@@ -7,7 +7,20 @@ $: aClass = active ? activeClass : nonActiveClass;
7
7
  </script>
8
8
 
9
9
  <li>
10
- <a {href} {...$$restProps} class={classNames(aClass, $$props.class)}>
10
+ <a
11
+ {href}
12
+ {...$$restProps}
13
+ on:click
14
+ on:change
15
+ on:keydown
16
+ on:keyup
17
+ on:focus
18
+ on:blur
19
+ on:mouseenter
20
+ on:mouseleave
21
+ on:mouseenter
22
+ class={classNames(aClass, $$props.class)}
23
+ >
11
24
  <slot />
12
25
  </a>
13
26
  </li>
@@ -8,6 +8,15 @@ declare const __propDef: {
8
8
  nonActiveClass?: string;
9
9
  };
10
10
  events: {
11
+ click: MouseEvent;
12
+ change: Event;
13
+ keydown: KeyboardEvent;
14
+ keyup: KeyboardEvent;
15
+ focus: FocusEvent;
16
+ blur: FocusEvent;
17
+ mouseenter: MouseEvent;
18
+ mouseleave: MouseEvent;
19
+ } & {
11
20
  [evt: string]: CustomEvent<any>;
12
21
  };
13
22
  slots: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.23.1",
3
+ "version": "0.23.2",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {