flowbite-svelte 0.15.34 → 0.15.35
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.15.35](https://github.com/themesberg/flowbite-svelte/compare/v0.15.34...v0.15.35) (2022-05-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* add ulClass and childClass in SidebarItem's SidebarDropdown ([2e0f46b](https://github.com/themesberg/flowbite-svelte/commit/2e0f46b6c65037e4a40bba688936af99839bd863))
|
|
11
|
+
|
|
5
12
|
### [0.15.34](https://github.com/themesberg/flowbite-svelte/compare/v0.15.33...v0.15.34) (2022-05-15)
|
|
6
13
|
|
|
7
14
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
<script>import SidebarDropdown from './SidebarDropdown.svelte';
|
|
2
2
|
export let links;
|
|
3
|
+
export let childClass = 'flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700';
|
|
4
|
+
export let dropDownulClass = 'py-2 space-y-2';
|
|
3
5
|
let ulClass = 'space-y-2';
|
|
4
6
|
export let border = false;
|
|
5
7
|
if (border) {
|
|
@@ -10,7 +12,7 @@ if (border) {
|
|
|
10
12
|
<ul class={ulClass}>
|
|
11
13
|
{#each links as link (link.id)}
|
|
12
14
|
{#if link.children}
|
|
13
|
-
<SidebarDropdown {link} />
|
|
15
|
+
<SidebarDropdown {link} ulClass={dropDownulClass} {childClass} />
|
|
14
16
|
{:else}
|
|
15
17
|
<li>
|
|
16
18
|
<a href={link.href} rel={link.rel} class="flex items-center p-2 text-base font-normal text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700">
|