flowbite-svelte 0.22.27 → 0.22.30
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 +32 -0
- package/breadcrumbs/Breadcrumb.svelte +1 -1
- package/buttongroups/ButtonGroupItem.svelte +2 -2
- package/buttons/Button.svelte +1 -1
- package/drawers/Drawer.svelte +44 -0
- package/drawers/Drawer.svelte.d.ts +26 -0
- package/forms/FloatingLabelInput.svelte +1 -1
- package/forms/Input.svelte +1 -1
- package/forms/Select.svelte +1 -1
- package/forms/SimpleSearch.svelte +2 -2
- package/forms/Toggle.svelte +10 -1
- package/index.d.ts +3 -14
- package/index.js +4 -14
- package/modals/Modal.svelte.d.ts +1 -1
- package/navbar/NavDropdown.svelte +3 -3
- package/navbar/NavUl.svelte +0 -1
- package/package.json +2 -18
- package/paginations/Next.svelte +12 -2
- package/paginations/Pagination.svelte +29 -9
- package/paginations/Previous.svelte +12 -2
- package/paginations/TableData.svelte +3 -3
- package/progressbars/Progressbar.svelte +17 -28
- package/spinners/Spinner.svelte +1 -1
- package/tables/TableHeadCell.svelte +1 -1
- package/tabs/InteractiveTabHead.svelte +17 -2
- package/tabs/InteractiveTabs.svelte +16 -3
- package/tabs/UnderlineTabs.svelte +8 -1
- package/tooltips/Tooltip.svelte +20 -17
- package/tooltips/Tooltip.svelte.d.ts +3 -1
- package/types.d.ts +10 -0
- package/cards/CtaCard.svelte +0 -49
- package/cards/CtaCard.svelte.d.ts +0 -22
- package/cards/HorizontalCard.svelte +0 -23
- package/cards/HorizontalCard.svelte.d.ts +0 -27
- package/cards/InteractiveCard.svelte +0 -73
- package/cards/InteractiveCard.svelte.d.ts +0 -25
- package/cards/ListCard.svelte +0 -40
- package/cards/ListCard.svelte.d.ts +0 -20
- package/footer/LogoFooter.svelte +0 -34
- package/footer/LogoFooter.svelte.d.ts +0 -29
- package/footer/SimpleFooter.svelte +0 -22
- package/footer/SimpleFooter.svelte.d.ts +0 -24
- package/footer/SitemapFooter.svelte +0 -45
- package/footer/SitemapFooter.svelte.d.ts +0 -31
- package/footer/SocialMediaFooter.svelte +0 -63
- package/footer/SocialMediaFooter.svelte.d.ts +0 -39
- package/forms/SingleCheckbox.svelte +0 -18
- package/forms/SingleCheckbox.svelte.d.ts +0 -22
- package/modals/ExtraLargeModal.svelte +0 -182
- package/modals/ExtraLargeModal.svelte.d.ts +0 -29
- package/modals/LargeModal.svelte +0 -182
- package/modals/LargeModal.svelte.d.ts +0 -29
- package/modals/MediumModal.svelte +0 -185
- package/modals/MediumModal.svelte.d.ts +0 -29
- package/modals/ModalButton.svelte +0 -52
- package/modals/ModalButton.svelte.d.ts +0 -21
- package/modals/SignInModal.svelte +0 -102
- package/modals/SignInModal.svelte.d.ts +0 -26
- package/modals/SmallModal.svelte +0 -184
- package/modals/SmallModal.svelte.d.ts +0 -29
- package/modals/modalStores.js +0 -3
- package/navbar/DropdownNavbar.svelte +0 -95
- package/navbar/DropdownNavbar.svelte.d.ts +0 -31
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
<script>import { onMount } from 'svelte';
|
|
2
|
-
import NavDropdown from './NavDropdown.svelte';
|
|
3
|
-
export let user = '';
|
|
4
|
-
let pathname = '';
|
|
5
|
-
onMount(() => {
|
|
6
|
-
pathname = window.location.pathname;
|
|
7
|
-
});
|
|
8
|
-
let barHidden = true;
|
|
9
|
-
const handleClickbtn = () => {
|
|
10
|
-
barHidden = !barHidden;
|
|
11
|
-
};
|
|
12
|
-
export let sitename = 'Svelte Flow';
|
|
13
|
-
export let logo = '/images/flowbite-svelte-logo-30.png';
|
|
14
|
-
export let alt;
|
|
15
|
-
export let textsize = 'text-sm';
|
|
16
|
-
export let menus;
|
|
17
|
-
export let navClass = 'px-2 bg-white border-gray-200 dark:bg-gray-800 dark:border-gray-700';
|
|
18
|
-
const navDivClass = 'container flex flex-wrap justify-between items-center mx-auto';
|
|
19
|
-
export let spanClass = 'self-center text-lg font-semibold text-gray-900 whitespace-nowrap dark:text-white';
|
|
20
|
-
export let buttonClass = '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';
|
|
21
|
-
export let dropdownDiv = 'z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700 dark:divide-gray-600';
|
|
22
|
-
export let dropdownLinkClassWithChild = `block py-2 px-4 ${textsize} text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-400 dark:hover:text-white`;
|
|
23
|
-
export let dropdownLinkClassWithoutChild = `block py-2 pr-4 pl-3 text-gray-700 border-b border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 dark:text-gray-400 dark:hover:text-white dark:border-gray-700 dark:hover:bg-gray-700 md:dark:hover:bg-transparent ${textsize}`;
|
|
24
|
-
export let liButtonClass = `flex justify-between items-center py-2 pr-4 pl-3 w-full ${textsize} font-medium text-gray-700 border-b border-gray-100 hover:bg-gray-50 md:hover:bg-transparent md:border-0 md:hover:text-blue-700 md:p-0 md:w-auto dark:text-gray-400 dark:hover:text-white dark:focus:text-white dark:border-gray-700 dark:hover:bg-gray-700 md:dark:hover:bg-transparent`;
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<nav class={navClass}>
|
|
28
|
-
<div class={navDivClass}>
|
|
29
|
-
<a href="/" class="flex">
|
|
30
|
-
<img src={logo} {alt} />
|
|
31
|
-
<span class={spanClass}>{sitename}</span>
|
|
32
|
-
</a>
|
|
33
|
-
<button
|
|
34
|
-
on:click={handleClickbtn}
|
|
35
|
-
type="button"
|
|
36
|
-
class={buttonClass}
|
|
37
|
-
aria-controls="mobile-menu-2"
|
|
38
|
-
aria-expanded="false"
|
|
39
|
-
>
|
|
40
|
-
<span class="sr-only">Open main menu</span>
|
|
41
|
-
<svg
|
|
42
|
-
class="w-6 h-6"
|
|
43
|
-
fill="currentColor"
|
|
44
|
-
viewBox="0 0 20 20"
|
|
45
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
46
|
-
><path
|
|
47
|
-
fill-rule="evenodd"
|
|
48
|
-
d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
49
|
-
clip-rule="evenodd"
|
|
50
|
-
/></svg
|
|
51
|
-
>
|
|
52
|
-
<svg
|
|
53
|
-
class="hidden w-6 h-6"
|
|
54
|
-
fill="currentColor"
|
|
55
|
-
viewBox="0 0 20 20"
|
|
56
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
57
|
-
><path
|
|
58
|
-
fill-rule="evenodd"
|
|
59
|
-
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
|
|
60
|
-
clip-rule="evenodd"
|
|
61
|
-
/></svg
|
|
62
|
-
>
|
|
63
|
-
</button>
|
|
64
|
-
<div class="w-full md:block md:w-auto" class:hidden={barHidden} id="mobile-menu">
|
|
65
|
-
<ul class="flex flex-col mt-4 md:flex-row md:space-x-8 md:mt-0 md:text-sm md:font-medium">
|
|
66
|
-
{#each menus as { name, href, rel, child }}
|
|
67
|
-
{#if child}
|
|
68
|
-
<NavDropdown
|
|
69
|
-
{liButtonClass}
|
|
70
|
-
{dropdownDiv}
|
|
71
|
-
{name}
|
|
72
|
-
{child}
|
|
73
|
-
{rel}
|
|
74
|
-
{dropdownLinkClassWithChild}
|
|
75
|
-
/>
|
|
76
|
-
{:else}
|
|
77
|
-
<li>
|
|
78
|
-
<a class:active={pathname === href} {href} {rel} class={dropdownLinkClassWithoutChild}
|
|
79
|
-
>{name}</a
|
|
80
|
-
>
|
|
81
|
-
</li>
|
|
82
|
-
{/if}
|
|
83
|
-
{/each}
|
|
84
|
-
</ul>
|
|
85
|
-
{#if user}
|
|
86
|
-
<slot name="user" />
|
|
87
|
-
{/if}
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</nav>
|
|
91
|
-
|
|
92
|
-
<style>
|
|
93
|
-
#mobile-menu .active {
|
|
94
|
-
color: #fab534;
|
|
95
|
-
}</style>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { NavbarType } from '../types';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
user?: string;
|
|
6
|
-
sitename?: string;
|
|
7
|
-
logo?: string;
|
|
8
|
-
alt: string;
|
|
9
|
-
textsize?: string;
|
|
10
|
-
menus: NavbarType[];
|
|
11
|
-
navClass?: string;
|
|
12
|
-
spanClass?: string;
|
|
13
|
-
buttonClass?: string;
|
|
14
|
-
dropdownDiv?: string;
|
|
15
|
-
dropdownLinkClassWithChild?: string;
|
|
16
|
-
dropdownLinkClassWithoutChild?: string;
|
|
17
|
-
liButtonClass?: string;
|
|
18
|
-
};
|
|
19
|
-
events: {
|
|
20
|
-
[evt: string]: CustomEvent<any>;
|
|
21
|
-
};
|
|
22
|
-
slots: {
|
|
23
|
-
user: {};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
export declare type DropdownNavbarProps = typeof __propDef.props;
|
|
27
|
-
export declare type DropdownNavbarEvents = typeof __propDef.events;
|
|
28
|
-
export declare type DropdownNavbarSlots = typeof __propDef.slots;
|
|
29
|
-
export default class DropdownNavbar extends SvelteComponentTyped<DropdownNavbarProps, DropdownNavbarEvents, DropdownNavbarSlots> {
|
|
30
|
-
}
|
|
31
|
-
export {};
|