flowbite-svelte 0.26.16 → 0.26.17
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 +15 -0
- package/drawer/Drawer.svelte +1 -1
- package/package.json +1 -1
- package/sidebars/SidebarItem.svelte +21 -19
- package/sidebars/SidebarItem.svelte.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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.26.17](https://github.com/themesberg/flowbite-svelte/compare/v0.26.16...v0.26.17) (2022-09-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add active to SidebarItem component and an example in the page ([af80c2b](https://github.com/themesberg/flowbite-svelte/commit/af80c2b7c1d81e711bba0faca959e6501b31257c))
|
|
11
|
+
* add md files in components folder ([8d7e05a](https://github.com/themesberg/flowbite-svelte/commit/8d7e05a0098437ac7ddd3f9122a2c23f481e54cd))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* Drawer placement right ([4fe9283](https://github.com/themesberg/flowbite-svelte/commit/4fe928380f4bb95c59e311e7ccc3a8ae49fda89d))
|
|
17
|
+
* remove Datepicker from index ([f08230c](https://github.com/themesberg/flowbite-svelte/commit/f08230c84d29f172f1a30a6194e2694eb65f3e3e))
|
|
18
|
+
* remove Toc from layout since it needs to be updated ([2ea41a0](https://github.com/themesberg/flowbite-svelte/commit/2ea41a0c82bb8a7f583a001c1c5f598ac5855102))
|
|
19
|
+
|
|
5
20
|
### [0.26.16](https://github.com/themesberg/flowbite-svelte/compare/v0.26.15...v0.26.16) (2022-09-06)
|
|
6
21
|
|
|
7
22
|
|
package/drawer/Drawer.svelte
CHANGED
|
@@ -4,7 +4,7 @@ import { clickOutside } from '../utils/clickOutside';
|
|
|
4
4
|
export let hidden = true;
|
|
5
5
|
export let position = 'fixed';
|
|
6
6
|
export let leftOffset = 'inset-y-0 left-0';
|
|
7
|
-
export let rightOffset = 'inset-y-
|
|
7
|
+
export let rightOffset = 'inset-y-0 right-0';
|
|
8
8
|
export let topOffset = 'inset-x-0 top-0';
|
|
9
9
|
export let bottomOffset = 'inset-x-0 bottom-0';
|
|
10
10
|
export let width = 'w-80';
|
package/package.json
CHANGED
|
@@ -3,26 +3,28 @@ export let aClass = 'flex items-center p-2 text-base font-normal text-gray-900 r
|
|
|
3
3
|
export let href = '';
|
|
4
4
|
export let label = '';
|
|
5
5
|
export let spanClass = 'ml-3';
|
|
6
|
+
export let activeClass = 'flex items-center p-2 text-base font-normal text-gray-900 bg-gray-200 dark:bg-gray-700 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700';
|
|
7
|
+
export let active = false;
|
|
6
8
|
</script>
|
|
7
9
|
|
|
8
10
|
<li>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
11
|
+
<a
|
|
12
|
+
{...$$restProps}
|
|
13
|
+
{href}
|
|
14
|
+
on:blur
|
|
15
|
+
on:click
|
|
16
|
+
on:focus
|
|
17
|
+
on:keydown
|
|
18
|
+
on:keypress
|
|
19
|
+
on:keyup
|
|
20
|
+
on:mouseenter
|
|
21
|
+
on:mouseleave
|
|
22
|
+
on:mouseover
|
|
23
|
+
class={classNames(active ? activeClass : aClass, $$props.class)}>
|
|
24
|
+
<slot name="icon" />
|
|
25
|
+
<span class={spanClass}>{label}</span>
|
|
26
|
+
{#if $$slots.subtext}
|
|
27
|
+
<slot name="subtext" />
|
|
28
|
+
{/if}
|
|
29
|
+
</a>
|
|
28
30
|
</li>
|