flowbite-svelte 0.8.4 → 0.8.5
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/navbar/Navbar.svelte +10 -1
- package/package.json +2 -1
package/navbar/Navbar.svelte
CHANGED
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
export let logo = "/images/mkdir-logo.png";
|
|
6
6
|
export let alt = "Svelte Flow";
|
|
7
7
|
export let textsize = "text-sm";
|
|
8
|
+
let barHidden = true;
|
|
9
|
+
const handleClickbtn = () => {
|
|
10
|
+
barHidden = !barHidden;
|
|
11
|
+
};
|
|
8
12
|
export let menus = [
|
|
9
13
|
{
|
|
10
14
|
name: "Home",
|
|
@@ -41,6 +45,7 @@
|
|
|
41
45
|
>
|
|
42
46
|
</a>
|
|
43
47
|
<button
|
|
48
|
+
on:click={handleClickbtn}
|
|
44
49
|
type="button"
|
|
45
50
|
class="inline-flex justify-center items-center ml-3 text-gray-400 rounded-lg md:hidden hover:text-gray-900 focus:outline-none focus:ring-2 focus:ring-blue-300 dark:text-gray-400 dark:hover:text-white dark:focus:ring-gray-500"
|
|
46
51
|
aria-controls="mobile-menu-2"
|
|
@@ -70,7 +75,11 @@
|
|
|
70
75
|
/></svg
|
|
71
76
|
>
|
|
72
77
|
</button>
|
|
73
|
-
<div
|
|
78
|
+
<div
|
|
79
|
+
class:hidden={barHidden}
|
|
80
|
+
class="hidden w-full md:block md:w-auto"
|
|
81
|
+
id="mobile-menu"
|
|
82
|
+
>
|
|
74
83
|
<ul
|
|
75
84
|
class="flex flex-col mt-4 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium"
|
|
76
85
|
>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Shinichi Okada",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"@sveltejs/adapter-auto": "next",
|
|
15
15
|
"@sveltejs/kit": "next",
|
|
16
16
|
"autoprefixer": "^10.4.2",
|
|
17
|
+
"flowbite-svelte": "^0.8.4",
|
|
17
18
|
"postcss": "^8.4.5",
|
|
18
19
|
"postcss-load-config": "^3.1.1",
|
|
19
20
|
"svelte": "^3.44.0",
|