flowbite-svelte 0.25.17 → 0.25.18
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.25.18](https://github.com/themesberg/flowbite-svelte/compare/v0.25.17...v0.25.18) (2022-08-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* change BreadcrumbItem home for all pages ([f5f895f](https://github.com/themesberg/flowbite-svelte/commit/f5f895f6157b03e435975c5735329f8dfc984485))
|
|
11
|
+
|
|
5
12
|
### [0.25.17](https://github.com/themesberg/flowbite-svelte/compare/v0.25.16...v0.25.17) (2022-08-27)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
<script>import classNames from 'classnames';
|
|
2
|
+
export let solid = false;
|
|
2
3
|
export let navClass = 'flex';
|
|
4
|
+
export let solidClass = 'flex px-5 py-3 text-gray-700 border border-gray-200 rounded-lg bg-gray-50 dark:bg-gray-800 dark:border-gray-700';
|
|
3
5
|
export let olClass = 'inline-flex items-center space-x-1 md:space-x-3';
|
|
6
|
+
let classNav = solid ? solidClass : navClass;
|
|
4
7
|
</script>
|
|
5
8
|
|
|
6
|
-
<nav aria-label="Breadcrumb" {...$$restProps} class={classNames(
|
|
9
|
+
<nav aria-label="Breadcrumb" {...$$restProps} class={classNames(classNav, $$props.class)}>
|
|
7
10
|
<ol class={classNames(olClass, $$props.classOl)}>
|
|
8
11
|
<slot />
|
|
9
12
|
</ol>
|
|
@@ -1,43 +1,51 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
export let
|
|
3
|
-
export let
|
|
4
|
-
export let
|
|
5
|
-
export let iconClass = 'mr-2';
|
|
1
|
+
<script>export let home = false;
|
|
2
|
+
export let linkClass = 'ml-1 text-sm font-medium text-gray-700 hover:text-gray-900 md:ml-2 dark:text-gray-400 dark:hover:text-white';
|
|
3
|
+
export let spanClass = 'ml-1 text-sm font-medium text-gray-500 md:ml-2 dark:text-gray-400';
|
|
4
|
+
export let homeClass = 'inline-flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white';
|
|
6
5
|
</script>
|
|
7
6
|
|
|
8
|
-
<li class="
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
<li class="inline-flex items-center" {...$$props}>
|
|
8
|
+
{#if home}
|
|
9
|
+
<a class={homeClass} href={$$props.href}>
|
|
10
|
+
{#if $$slots.icon}
|
|
11
|
+
<slot name="icon" />
|
|
12
|
+
{:else}
|
|
13
|
+
<svg
|
|
14
|
+
class="w-4 h-4 mr-2"
|
|
15
|
+
fill="currentColor"
|
|
16
|
+
viewBox="0 0 20 20"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
><path
|
|
19
|
+
d="M10.707 2.293a1 1 0 00-1.414 0l-7 7a1 1 0 001.414 1.414L4 10.414V17a1 1 0 001 1h2a1 1 0 001-1v-2a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 001 1h2a1 1 0 001-1v-6.586l.293.293a1 1 0 001.414-1.414l-7-7z"
|
|
20
|
+
/></svg
|
|
21
|
+
>
|
|
23
22
|
{/if}
|
|
24
23
|
<slot />
|
|
25
24
|
</a>
|
|
26
25
|
{:else}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
26
|
+
{#if $$slots.icon}
|
|
27
|
+
<slot name="icon" />
|
|
28
|
+
{:else}
|
|
29
|
+
<svg
|
|
30
|
+
class="w-6 h-6 text-gray-400"
|
|
31
|
+
fill="currentColor"
|
|
32
|
+
viewBox="0 0 20 20"
|
|
33
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
34
|
+
><path
|
|
35
|
+
fill-rule="evenodd"
|
|
36
|
+
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
|
37
|
+
clip-rule="evenodd"
|
|
38
|
+
/></svg
|
|
39
|
+
>
|
|
40
|
+
{/if}
|
|
41
|
+
{#if $$props.href}
|
|
42
|
+
<a class={linkClass} href={$$props.href}>
|
|
43
|
+
<slot />
|
|
44
|
+
</a>
|
|
45
|
+
{:else}
|
|
46
|
+
<span class={spanClass}>
|
|
47
|
+
<slot />
|
|
48
|
+
</span>
|
|
49
|
+
{/if}
|
|
42
50
|
{/if}
|
|
43
51
|
</li>
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { SvelteComponent } from 'svelte';
|
|
3
2
|
declare const __propDef: {
|
|
4
3
|
props: {
|
|
5
4
|
[x: string]: any;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
home?: boolean;
|
|
6
|
+
linkClass?: string;
|
|
7
|
+
spanClass?: string;
|
|
8
|
+
homeClass?: string;
|
|
10
9
|
};
|
|
11
10
|
events: {
|
|
12
11
|
[evt: string]: CustomEvent<any>;
|
|
13
12
|
};
|
|
14
13
|
slots: {
|
|
14
|
+
icon: {};
|
|
15
15
|
default: {};
|
|
16
16
|
};
|
|
17
17
|
};
|