flowbite-svelte 0.6.0
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/README.md +33 -0
- package/accordions/AccordionDefault.svelte +26 -0
- package/accordions/AccordionDefault.svelte.d.ts +35 -0
- package/accordions/AccordionItem.svelte +44 -0
- package/accordions/AccordionItem.svelte.d.ts +29 -0
- package/alerts/Alert.svelte +111 -0
- package/alerts/Alert.svelte.d.ts +31 -0
- package/alerts/BorderAlert.svelte +118 -0
- package/alerts/BorderAlert.svelte.d.ts +31 -0
- package/alerts/InfoAlert.svelte +125 -0
- package/alerts/InfoAlert.svelte.d.ts +35 -0
- package/badges/Badge.svelte +28 -0
- package/badges/Badge.svelte.d.ts +27 -0
- package/badges/BadgeIcon.svelte +31 -0
- package/badges/BadgeIcon.svelte.d.ts +31 -0
- package/badges/BadgeLink.svelte +29 -0
- package/badges/BadgeLink.svelte.d.ts +29 -0
- package/buttongroups/ButtonGroup.svelte +68 -0
- package/buttongroups/ButtonGroup.svelte.d.ts +33 -0
- package/buttongroups/ButtonGroupOutline.svelte +70 -0
- package/buttongroups/ButtonGroupOutline.svelte.d.ts +33 -0
- package/buttons/Button.svelte +60 -0
- package/buttons/Button.svelte.d.ts +33 -0
- package/buttons/ColorShadowButton.svelte +35 -0
- package/buttons/ColorShadowButton.svelte.d.ts +31 -0
- package/buttons/GradientDuotoneButton.svelte +33 -0
- package/buttons/GradientDuotoneButton.svelte.d.ts +31 -0
- package/buttons/GradientMonochromeButton.svelte +35 -0
- package/buttons/GradientMonochromeButton.svelte.d.ts +31 -0
- package/buttons/GradientOutlineButton.svelte +52 -0
- package/buttons/GradientOutlineButton.svelte.d.ts +31 -0
- package/cards/Card.svelte +86 -0
- package/cards/Card.svelte.d.ts +39 -0
- package/cards/CtaCard.svelte +63 -0
- package/cards/CtaCard.svelte.d.ts +45 -0
- package/cards/EcommerceCard.svelte +98 -0
- package/cards/EcommerceCard.svelte.d.ts +41 -0
- package/cards/HorizontalCard.svelte +29 -0
- package/cards/HorizontalCard.svelte.d.ts +35 -0
- package/cards/InteractiveCard.svelte +127 -0
- package/cards/InteractiveCard.svelte.d.ts +63 -0
- package/cards/ListCard.svelte +82 -0
- package/cards/ListCard.svelte.d.ts +51 -0
- package/cards/SignInCard.svelte +125 -0
- package/cards/SignInCard.svelte.d.ts +45 -0
- package/darkmode/DarkMode.svelte +78 -0
- package/darkmode/DarkMode.svelte.d.ts +23 -0
- package/dropdowns/DropdownDefault.svelte +117 -0
- package/dropdowns/DropdownDefault.svelte.d.ts +51 -0
- package/footer/SimpleFooter.svelte +32 -0
- package/footer/SimpleFooter.svelte.d.ts +45 -0
- package/index.d.ts +39 -0
- package/index.js +116 -0
- package/list-group/List.svelte +79 -0
- package/list-group/List.svelte.d.ts +33 -0
- package/modals/ExtraLargeModal.svelte +236 -0
- package/modals/ExtraLargeModal.svelte.d.ts +45 -0
- package/modals/LargeModal.svelte +236 -0
- package/modals/LargeModal.svelte.d.ts +45 -0
- package/modals/MediumModal.svelte +242 -0
- package/modals/MediumModal.svelte.d.ts +45 -0
- package/modals/ModalButton.svelte +48 -0
- package/modals/ModalButton.svelte.d.ts +29 -0
- package/modals/SignInModal.svelte +174 -0
- package/modals/SignInModal.svelte.d.ts +37 -0
- package/modals/SmallModal.svelte +236 -0
- package/modals/SmallModal.svelte.d.ts +45 -0
- package/modals/modalStores.d.ts +1 -0
- package/modals/modalStores.js +3 -0
- package/navbar/DropdownNavbar.svelte +210 -0
- package/navbar/DropdownNavbar.svelte.d.ts +65 -0
- package/navbar/Navbar.svelte +96 -0
- package/navbar/Navbar.svelte.d.ts +39 -0
- package/package.json +92 -0
- package/tabs/DefaultTabs.svelte +43 -0
- package/tabs/DefaultTabs.svelte.d.ts +33 -0
- package/tabs/InteractiveTabs.svelte +68 -0
- package/tabs/InteractiveTabs.svelte.d.ts +47 -0
- package/tabs/PillTabs.svelte +38 -0
- package/tabs/PillTabs.svelte.d.ts +31 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} InteractiveTabsProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} InteractiveTabsEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} InteractiveTabsSlots */
|
|
4
|
+
export default class InteractiveTabs extends SvelteComponentTyped<{
|
|
5
|
+
tabId?: string;
|
|
6
|
+
activeTabValue?: number;
|
|
7
|
+
tabs?: ({
|
|
8
|
+
lavel: string;
|
|
9
|
+
id: number;
|
|
10
|
+
content: string;
|
|
11
|
+
name?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
name: string;
|
|
14
|
+
id: number;
|
|
15
|
+
content: string;
|
|
16
|
+
lavel?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
}, {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
}, {}> {
|
|
21
|
+
}
|
|
22
|
+
export type InteractiveTabsProps = typeof __propDef.props;
|
|
23
|
+
export type InteractiveTabsEvents = typeof __propDef.events;
|
|
24
|
+
export type InteractiveTabsSlots = typeof __propDef.slots;
|
|
25
|
+
import { SvelteComponentTyped } from "svelte";
|
|
26
|
+
declare const __propDef: {
|
|
27
|
+
props: {
|
|
28
|
+
tabId?: string;
|
|
29
|
+
activeTabValue?: number;
|
|
30
|
+
tabs?: ({
|
|
31
|
+
lavel: string;
|
|
32
|
+
id: number;
|
|
33
|
+
content: string;
|
|
34
|
+
name?: undefined;
|
|
35
|
+
} | {
|
|
36
|
+
name: string;
|
|
37
|
+
id: number;
|
|
38
|
+
content: string;
|
|
39
|
+
lavel?: undefined;
|
|
40
|
+
})[];
|
|
41
|
+
};
|
|
42
|
+
events: {
|
|
43
|
+
[evt: string]: CustomEvent<any>;
|
|
44
|
+
};
|
|
45
|
+
slots: {};
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
export let tabs = [
|
|
3
|
+
{
|
|
4
|
+
name: "Profile",
|
|
5
|
+
selected: true,
|
|
6
|
+
link: "/#",
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "Dashboard",
|
|
10
|
+
selected: false,
|
|
11
|
+
link: "/#",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "Settings",
|
|
15
|
+
selected: false,
|
|
16
|
+
link: "/#",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "Contacts",
|
|
20
|
+
selected: false,
|
|
21
|
+
link: "/#",
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<ul class="flex flex-wrap">
|
|
27
|
+
{#each tabs as { name, selected, link }}
|
|
28
|
+
<li class="mr-2">
|
|
29
|
+
<a
|
|
30
|
+
class="{selected
|
|
31
|
+
? 'active inline-block py-3 px-4 text-sm font-medium text-center text-white bg-blue-600 rounded-lg'
|
|
32
|
+
: 'inline-block py-3 px-4 text-sm font-medium text-center text-gray-500 rounded-lg hover:text-gray-900 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white'} "
|
|
33
|
+
href={link}
|
|
34
|
+
rel="external">{name}</a
|
|
35
|
+
>
|
|
36
|
+
</li>
|
|
37
|
+
{/each}
|
|
38
|
+
</ul>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} PillTabsProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} PillTabsEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} PillTabsSlots */
|
|
4
|
+
export default class PillTabs extends SvelteComponentTyped<{
|
|
5
|
+
tabs?: {
|
|
6
|
+
name: string;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
link: string;
|
|
9
|
+
}[];
|
|
10
|
+
}, {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
}, {}> {
|
|
13
|
+
}
|
|
14
|
+
export type PillTabsProps = typeof __propDef.props;
|
|
15
|
+
export type PillTabsEvents = typeof __propDef.events;
|
|
16
|
+
export type PillTabsSlots = typeof __propDef.slots;
|
|
17
|
+
import { SvelteComponentTyped } from "svelte";
|
|
18
|
+
declare const __propDef: {
|
|
19
|
+
props: {
|
|
20
|
+
tabs?: {
|
|
21
|
+
name: string;
|
|
22
|
+
selected: boolean;
|
|
23
|
+
link: string;
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
events: {
|
|
27
|
+
[evt: string]: CustomEvent<any>;
|
|
28
|
+
};
|
|
29
|
+
slots: {};
|
|
30
|
+
};
|
|
31
|
+
export {};
|