flowbite-svelte 0.11.1 → 0.12.2
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 +24 -4
- package/cards/InteractiveCard.svelte +3 -3
- package/index.d.ts +15 -1
- package/index.js +18 -2
- package/modals/ExtraLargeModal.svelte +2 -2
- package/modals/ExtraLargeModal.svelte.d.ts +2 -1
- package/modals/LargeModal.svelte +2 -2
- package/modals/LargeModal.svelte.d.ts +2 -1
- package/modals/MediumModal.svelte +2 -2
- package/modals/MediumModal.svelte.d.ts +2 -1
- package/modals/SignInModal.svelte +2 -2
- package/modals/SignInModal.svelte.d.ts +2 -1
- package/modals/SmallModal.svelte +2 -2
- package/modals/SmallModal.svelte.d.ts +2 -1
- package/navbar/DropdownNavbar.svelte +10 -42
- package/navbar/NavDropdown.svelte +41 -0
- package/navbar/NavDropdown.svelte.d.ts +22 -0
- package/navbar/Navbar.svelte +2 -2
- package/navbar/Navbar.svelte.d.ts +1 -1
- package/package.json +17 -1
- package/paginations/Next.svelte +28 -0
- package/paginations/Next.svelte.d.ts +19 -0
- package/paginations/Pagination.svelte +67 -0
- package/paginations/Pagination.svelte.d.ts +27 -0
- package/paginations/Previous.svelte +28 -0
- package/paginations/Previous.svelte.d.ts +19 -0
- package/paginations/TableData.svelte +28 -0
- package/paginations/TableData.svelte.d.ts +25 -0
- package/sidebars/Sidebar.svelte +2 -49
- package/sidebars/SidebarDropdown.svelte +50 -0
- package/sidebars/SidebarDropdown.svelte.d.ts +17 -0
- package/tabs/FullWidthTabs.svelte +31 -0
- package/tabs/FullWidthTabs.svelte.d.ts +18 -0
- package/tabs/IconTabs.svelte +24 -0
- package/tabs/IconTabs.svelte.d.ts +18 -0
- package/tabs/InteractiveTabHead.svelte +53 -0
- package/tabs/InteractiveTabHead.svelte.d.ts +37 -0
- package/tabs/InteractiveTabs.svelte +1 -1
- package/tabs/TabContent.svelte +32 -0
- package/tabs/TabContent.svelte.d.ts +36 -0
- package/tabs/UnderlineTabs.svelte +20 -0
- package/tabs/UnderlineTabs.svelte.d.ts +18 -0
- package/tabs/tabStore.d.ts +2 -0
- package/tabs/tabStore.js +2 -0
- package/timelines/Activity.svelte +6 -0
- package/timelines/Activity.svelte.d.ts +18 -0
- package/timelines/ActivityItem.svelte +29 -0
- package/timelines/ActivityItem.svelte.d.ts +17 -0
- package/timelines/Group.svelte +11 -0
- package/timelines/Group.svelte.d.ts +20 -0
- package/timelines/GroupItem.svelte +49 -0
- package/timelines/GroupItem.svelte.d.ts +17 -0
- package/timelines/TimelineItemHorizontal.svelte +16 -20
- package/timelines/TimelineItemHorizontal.svelte.d.ts +2 -2
- package/timelines/TimelineItemVertical.svelte +15 -1
- package/types.d.ts +37 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
declare const __propDef: {
|
|
3
|
+
props: {
|
|
4
|
+
divClass?: string;
|
|
5
|
+
timeClass?: string;
|
|
6
|
+
date: Date | string;
|
|
7
|
+
};
|
|
8
|
+
events: {
|
|
9
|
+
[evt: string]: CustomEvent<any>;
|
|
10
|
+
};
|
|
11
|
+
slots: {
|
|
12
|
+
default: {};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare type GroupProps = typeof __propDef.props;
|
|
16
|
+
export declare type GroupEvents = typeof __propDef.events;
|
|
17
|
+
export declare type GroupSlots = typeof __propDef.slots;
|
|
18
|
+
export default class Group extends SvelteComponentTyped<GroupProps, GroupEvents, GroupSlots> {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<script >export let timelines;
|
|
2
|
+
</script>
|
|
3
|
+
|
|
4
|
+
{#each timelines as { title, src, alt, isPrivate, href, comment }}
|
|
5
|
+
<li>
|
|
6
|
+
<a {href} class="block items-center p-3 sm:flex hover:bg-gray-100 dark:hover:bg-gray-700">
|
|
7
|
+
<img class="mr-3 mb-3 w-12 h-12 rounded-full sm:mb-0" {src} {alt} />
|
|
8
|
+
<div class="text-gray-600 dark:text-gray-400">
|
|
9
|
+
<div class="text-base font-normal">
|
|
10
|
+
{@html title}
|
|
11
|
+
</div>
|
|
12
|
+
{#if comment}
|
|
13
|
+
<div class="text-sm font-normal">{comment}</div>
|
|
14
|
+
{/if}
|
|
15
|
+
<span class="inline-flex items-center text-xs font-normal text-gray-500 dark:text-gray-400">
|
|
16
|
+
{#if isPrivate}
|
|
17
|
+
<svg
|
|
18
|
+
class="mr-1 w-3 h-3"
|
|
19
|
+
fill="currentColor"
|
|
20
|
+
viewBox="0 0 20 20"
|
|
21
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
22
|
+
><path
|
|
23
|
+
fill-rule="evenodd"
|
|
24
|
+
d="M3.707 2.293a1 1 0 00-1.414 1.414l14 14a1 1 0 001.414-1.414l-1.473-1.473A10.014 10.014 0 0019.542 10C18.268 5.943 14.478 3 10 3a9.958 9.958 0 00-4.512 1.074l-1.78-1.781zm4.261 4.26l1.514 1.515a2.003 2.003 0 012.45 2.45l1.514 1.514a4 4 0 00-5.478-5.478z"
|
|
25
|
+
clip-rule="evenodd"
|
|
26
|
+
/><path
|
|
27
|
+
d="M12.454 16.697L9.75 13.992a4 4 0 01-3.742-3.741L2.335 6.578A9.98 9.98 0 00.458 10c1.274 4.057 5.065 7 9.542 7 .847 0 1.669-.105 2.454-.303z"
|
|
28
|
+
/></svg
|
|
29
|
+
>
|
|
30
|
+
Private
|
|
31
|
+
{:else}
|
|
32
|
+
<svg
|
|
33
|
+
class="mr-1 w-3 h-3"
|
|
34
|
+
fill="currentColor"
|
|
35
|
+
viewBox="0 0 20 20"
|
|
36
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
37
|
+
><path
|
|
38
|
+
fill-rule="evenodd"
|
|
39
|
+
d="M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z"
|
|
40
|
+
clip-rule="evenodd"
|
|
41
|
+
/></svg
|
|
42
|
+
>
|
|
43
|
+
Public
|
|
44
|
+
{/if}
|
|
45
|
+
</span>
|
|
46
|
+
</div>
|
|
47
|
+
</a>
|
|
48
|
+
</li>
|
|
49
|
+
{/each}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { GroupTimelineType } from '../types';
|
|
3
|
+
declare const __propDef: {
|
|
4
|
+
props: {
|
|
5
|
+
timelines: GroupTimelineType[];
|
|
6
|
+
};
|
|
7
|
+
events: {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
};
|
|
10
|
+
slots: {};
|
|
11
|
+
};
|
|
12
|
+
export declare type GroupItemProps = typeof __propDef.props;
|
|
13
|
+
export declare type GroupItemEvents = typeof __propDef.events;
|
|
14
|
+
export declare type GroupItemSlots = typeof __propDef.slots;
|
|
15
|
+
export default class GroupItem extends SvelteComponentTyped<GroupItemProps, GroupItemEvents, GroupItemSlots> {
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
<script >export let timelineItems;
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
|
-
{#each timelineItems as { date, title, text,
|
|
4
|
+
{#each timelineItems as { date, title, text, icon }}
|
|
5
5
|
<li class="relative mb-6 sm:mb-0">
|
|
6
6
|
<div class="flex items-center">
|
|
7
7
|
<div
|
|
8
8
|
class="flex z-10 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-0 ring-white dark:bg-blue-900 sm:ring-8 dark:ring-gray-900 shrink-0"
|
|
9
9
|
>
|
|
10
|
-
{icon}
|
|
10
|
+
{#if icon}
|
|
11
|
+
<svelte:component this={icon} className="h-4 w-4" />
|
|
12
|
+
{:else}
|
|
13
|
+
<svg
|
|
14
|
+
class="w-3 h-3 text-blue-600 dark:text-blue-300"
|
|
15
|
+
fill="currentColor"
|
|
16
|
+
viewBox="0 0 20 20"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
><path
|
|
19
|
+
fill-rule="evenodd"
|
|
20
|
+
d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
|
|
21
|
+
clip-rule="evenodd"
|
|
22
|
+
/></svg
|
|
23
|
+
>
|
|
24
|
+
{/if}
|
|
11
25
|
</div>
|
|
12
26
|
<div class="hidden sm:flex w-full bg-gray-200 h-0.5 dark:bg-gray-700" />
|
|
13
27
|
</div>
|
|
@@ -19,24 +33,6 @@
|
|
|
19
33
|
<p class="text-base font-normal text-gray-500 dark:text-gray-400">
|
|
20
34
|
{text}
|
|
21
35
|
</p>
|
|
22
|
-
{#if href}
|
|
23
|
-
<a
|
|
24
|
-
{href}
|
|
25
|
-
class="inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:outline-none focus:ring-gray-200 focus:text-blue-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-700"
|
|
26
|
-
>{linkname}
|
|
27
|
-
<svg
|
|
28
|
-
class="ml-2 w-3 h-3"
|
|
29
|
-
fill="currentColor"
|
|
30
|
-
viewBox="0 0 20 20"
|
|
31
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
32
|
-
><path
|
|
33
|
-
fill-rule="evenodd"
|
|
34
|
-
d="M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z"
|
|
35
|
-
clip-rule="evenodd"
|
|
36
|
-
/></svg
|
|
37
|
-
></a
|
|
38
|
-
>
|
|
39
|
-
{/if}
|
|
40
36
|
</div>
|
|
41
37
|
</li>
|
|
42
38
|
{/each}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type {
|
|
2
|
+
import type { TimelineItemHorizontalType } from '../types';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
timelineItems:
|
|
5
|
+
timelineItems: TimelineItemHorizontalType[];
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -6,7 +6,21 @@
|
|
|
6
6
|
<span
|
|
7
7
|
class="flex absolute -left-3 justify-center items-center w-6 h-6 bg-blue-200 rounded-full ring-8 ring-white dark:ring-gray-900 dark:bg-blue-900"
|
|
8
8
|
>
|
|
9
|
-
|
|
9
|
+
{#if icon}
|
|
10
|
+
<svelte:component this={icon} className="h-4 w-4" />
|
|
11
|
+
{:else}
|
|
12
|
+
<svg
|
|
13
|
+
class="w-3 h-3 text-blue-600 dark:text-blue-300"
|
|
14
|
+
fill="currentColor"
|
|
15
|
+
viewBox="0 0 20 20"
|
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
|
+
><path
|
|
18
|
+
fill-rule="evenodd"
|
|
19
|
+
d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z"
|
|
20
|
+
clip-rule="evenodd"
|
|
21
|
+
/></svg
|
|
22
|
+
>
|
|
23
|
+
{/if}
|
|
10
24
|
</span>
|
|
11
25
|
|
|
12
26
|
<h3 class="flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white">
|
package/types.d.ts
CHANGED
|
@@ -43,18 +43,28 @@ export interface TabType {
|
|
|
43
43
|
href: string;
|
|
44
44
|
rel?: string;
|
|
45
45
|
}
|
|
46
|
+
export interface IconTabType {
|
|
47
|
+
name: string;
|
|
48
|
+
active: boolean;
|
|
49
|
+
href: string;
|
|
50
|
+
rel?: string;
|
|
51
|
+
icon?: typeof SvelteComponent;
|
|
52
|
+
}
|
|
46
53
|
export interface InteractiveTabType {
|
|
47
54
|
name: string;
|
|
48
55
|
id: number;
|
|
49
56
|
content: string | typeof SvelteComponent;
|
|
50
57
|
}
|
|
58
|
+
export interface TabHeadType {
|
|
59
|
+
name: string;
|
|
60
|
+
id: number;
|
|
61
|
+
}
|
|
51
62
|
export interface PillTabType {
|
|
52
63
|
name: string;
|
|
53
64
|
selected: boolean;
|
|
54
65
|
href: string;
|
|
55
66
|
}
|
|
56
67
|
export interface NavbarType {
|
|
57
|
-
id: number;
|
|
58
68
|
name: string;
|
|
59
69
|
href: string;
|
|
60
70
|
rel?: string;
|
|
@@ -121,8 +131,33 @@ export interface TimelineItemType {
|
|
|
121
131
|
export interface TimelineItemVerticalType {
|
|
122
132
|
date: Date | string;
|
|
123
133
|
title: string;
|
|
124
|
-
icon
|
|
134
|
+
icon?: typeof SvelteComponent;
|
|
125
135
|
href?: string;
|
|
126
136
|
linkname?: string;
|
|
127
137
|
text?: HTMLElement | string;
|
|
128
138
|
}
|
|
139
|
+
export interface TimelineItemHorizontalType {
|
|
140
|
+
date: Date | string;
|
|
141
|
+
title: string;
|
|
142
|
+
icon?: typeof SvelteComponent;
|
|
143
|
+
text?: HTMLElement | string;
|
|
144
|
+
}
|
|
145
|
+
export interface ActivityType {
|
|
146
|
+
title: HTMLElement | string;
|
|
147
|
+
date: Date | string;
|
|
148
|
+
src: string;
|
|
149
|
+
alt: string;
|
|
150
|
+
text?: HTMLElement | string;
|
|
151
|
+
}
|
|
152
|
+
export interface GroupTimelineType {
|
|
153
|
+
title: string | HTMLElement;
|
|
154
|
+
src: string;
|
|
155
|
+
alt: string;
|
|
156
|
+
href?: string;
|
|
157
|
+
isPrivate?: boolean;
|
|
158
|
+
comment?: string | HTMLElement;
|
|
159
|
+
}
|
|
160
|
+
export interface PageType {
|
|
161
|
+
pageNum: number;
|
|
162
|
+
href: string;
|
|
163
|
+
}
|