flowbite-svelte 0.14.15 → 0.15.1
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 +23 -0
- package/LICENSE +22 -0
- package/README.md +84 -76
- package/accordions/AccordionDefault.svelte +1 -1
- package/accordions/AccordionItem.svelte +4 -4
- package/alerts/Alert.svelte +1 -1
- package/alerts/BorderAlert.svelte +1 -1
- package/alerts/InfoAlert.svelte +1 -1
- package/auth/Confirm.svelte +1 -1
- package/auth/ForgotPassword.svelte +1 -1
- package/auth/Login.svelte +1 -1
- package/auth/Register.svelte +1 -1
- package/auth/Reset.svelte +1 -1
- package/avatar/Avatar.svelte +1 -1
- package/badges/Badge.svelte +1 -1
- package/badges/BadgeIcon.svelte +1 -1
- package/badges/BadgeLink.svelte +1 -1
- package/breadcrumbs/Breadcrumb.svelte +1 -1
- package/buttongroups/ButtonGroup.svelte +5 -5
- package/buttongroups/ButtonGroupOutline.svelte +5 -5
- package/buttons/Button.svelte +1 -1
- package/buttons/ColorShadowButton.svelte +1 -1
- package/buttons/GradientDuotoneButton.svelte +1 -1
- package/buttons/GradientMonochromeButton.svelte +1 -1
- package/buttons/GradientOutlineButton.svelte +1 -1
- package/cards/Card.svelte +1 -1
- package/cards/CtaCard.svelte +1 -1
- package/cards/EcommerceCard.svelte +1 -1
- package/cards/HorizontalCard.svelte +1 -1
- package/cards/InteractiveCard.svelte +1 -1
- package/cards/ListCard.svelte +1 -1
- package/cards/SignInCard.svelte +1 -1
- package/carousels/Caption.svelte +1 -1
- package/carousels/Carousel.svelte +1 -1
- package/carousels/CarouselTransition.svelte +1 -1
- package/carousels/Indicator.svelte +1 -1
- package/carousels/Slide.svelte +1 -1
- package/carousels/Thumbnail.svelte +1 -1
- package/darkmode/DarkMode.svelte +1 -1
- package/dropdowns/DropdownDefault.svelte +1 -1
- package/dropdowns/ImgDropdown.svelte +1 -1
- package/footer/LogoFooter.svelte +1 -1
- package/footer/SimpleFooter.svelte +1 -1
- package/footer/SitemapFooter.svelte +2 -4
- package/footer/SocialMediaFooter.svelte +2 -2
- package/forms/Checkbox.svelte +1 -1
- package/forms/Fileupload.svelte +1 -1
- package/forms/FloatingLabelInput.svelte +1 -1
- package/forms/Iconinput.svelte +4 -3
- package/forms/Iconinput.svelte.d.ts +1 -0
- package/forms/Input.svelte +1 -1
- package/forms/Radio.svelte +1 -1
- package/forms/Select.svelte +1 -1
- package/forms/SingleCheckbox.svelte +1 -1
- package/forms/Textarea.svelte +1 -1
- package/forms/Toggle.svelte +1 -1
- package/list-group/List.svelte +5 -5
- package/modals/ExtraLargeModal.svelte +1 -1
- package/modals/LargeModal.svelte +1 -1
- package/modals/MediumModal.svelte +1 -1
- package/modals/ModalButton.svelte +1 -1
- package/modals/SignInModal.svelte +1 -1
- package/modals/SmallModal.svelte +1 -1
- package/navbar/DropdownNavbar.svelte +1 -1
- package/navbar/NavDropdown.svelte +1 -1
- package/navbar/Navbar.svelte +1 -1
- package/package.json +5 -4
- package/paginations/Next.svelte +1 -1
- package/paginations/Pagination.svelte +1 -1
- package/paginations/Previous.svelte +1 -1
- package/paginations/TableData.svelte +1 -1
- package/progressbars/Progressbar.svelte +1 -1
- package/ratings/AdvancedRating.svelte +1 -1
- package/ratings/Rating.svelte +3 -3
- package/ratings/RatingComment.svelte +1 -1
- package/ratings/ScoreRating.svelte +1 -1
- package/sidebars/Sidebar.svelte +5 -14
- package/sidebars/SidebarDropdown.svelte +5 -27
- package/spinners/Spinner.svelte +1 -1
- package/spinners/SpinnerButton.svelte +1 -1
- package/tables/Table.svelte +1 -1
- package/tables/TableCheckbox.svelte +1 -1
- package/tables/TableDefaultRow.svelte +1 -1
- package/tables/TableSearch.svelte +1 -1
- package/tabs/DefaultTabs.svelte +1 -1
- package/tabs/FullWidthTabs.svelte +1 -1
- package/tabs/IconTabs.svelte +3 -3
- package/tabs/InteractiveTabHead.svelte +1 -1
- package/tabs/InteractiveTabs.svelte +1 -1
- package/tabs/PillTabs.svelte +1 -1
- package/tabs/TabContent.svelte +1 -1
- package/tabs/UnderlineTabs.svelte +1 -1
- package/timelines/Activity.svelte +1 -1
- package/timelines/ActivityItem.svelte +1 -1
- package/timelines/Group.svelte +1 -1
- package/timelines/GroupItem.svelte +1 -1
- package/timelines/Timeline.svelte +1 -1
- package/timelines/TimelineHorizontal.svelte +1 -1
- package/timelines/TimelineItem.svelte +1 -1
- package/timelines/TimelineItemHorizontal.svelte +6 -20
- package/timelines/TimelineItemVertical.svelte +8 -34
- package/toasts/Toast.svelte +1 -1
- package/tooltips/LightTooltip.svelte +1 -1
- package/tooltips/Tooltip.svelte +1 -1
- package/types.d.ts +11 -0
package/timelines/Group.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>export let divClass = 'p-5 mb-4 bg-gray-50 rounded-lg border border-gray-100 dark:bg-gray-800 dark:border-gray-700';
|
|
2
2
|
export let timeClass = 'text-lg font-semibold text-gray-900 dark:text-white';
|
|
3
3
|
export let date;
|
|
4
4
|
</script>
|
|
@@ -1,35 +1,21 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>export let timelineItems;
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
|
-
{#each timelineItems as { date, title, text, icon }}
|
|
4
|
+
{#each timelineItems as { date, title, text, icon, iconClass, iconSize }}
|
|
5
5
|
<li class="relative mb-6 sm:mb-0">
|
|
6
6
|
<div class="flex items-center">
|
|
7
|
-
<div
|
|
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
|
-
>
|
|
7
|
+
<div 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">
|
|
10
8
|
{#if icon}
|
|
11
|
-
<svelte:component this={icon}
|
|
9
|
+
<svelte:component this={icon} size={iconSize} class={iconClass} />
|
|
12
10
|
{: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
|
-
>
|
|
11
|
+
<svg class="w-3 h-3 text-blue-600 dark:text-blue-300" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" 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" clip-rule="evenodd" /></svg>
|
|
24
12
|
{/if}
|
|
25
13
|
</div>
|
|
26
14
|
<div class="hidden sm:flex w-full bg-gray-200 h-0.5 dark:bg-gray-700" />
|
|
27
15
|
</div>
|
|
28
16
|
<div class="mt-3 sm:pr-8">
|
|
29
17
|
<h3 class="text-lg font-semibold text-gray-900 dark:text-white">{title}</h3>
|
|
30
|
-
<time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
|
|
31
|
-
>{date}</time
|
|
32
|
-
>
|
|
18
|
+
<time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500">{date}</time>
|
|
33
19
|
<p class="text-base font-normal text-gray-500 dark:text-gray-400">
|
|
34
20
|
{text}
|
|
35
21
|
</p>
|
|
@@ -1,53 +1,27 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>export let timelineItems;
|
|
2
2
|
</script>
|
|
3
3
|
|
|
4
|
-
{#each timelineItems as { date, title, text, href, linkname, icon }}
|
|
4
|
+
{#each timelineItems as { date, title, text, href, linkname, icon, iconClass, iconSize }}
|
|
5
5
|
<li class="mb-10 ml-6">
|
|
6
|
-
<span
|
|
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
|
-
>
|
|
6
|
+
<span 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">
|
|
9
7
|
{#if icon}
|
|
10
|
-
<svelte:component this={icon}
|
|
8
|
+
<svelte:component this={icon} size={iconSize} class={iconClass} />
|
|
11
9
|
{: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
|
-
>
|
|
10
|
+
<svg width="20" height="20" class="text-blue-600 dark:text-blue-300" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" 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" clip-rule="evenodd" /></svg>
|
|
23
11
|
{/if}
|
|
24
12
|
</span>
|
|
25
13
|
|
|
26
14
|
<h3 class="flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white">
|
|
27
15
|
{title}
|
|
28
16
|
</h3>
|
|
29
|
-
<time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
|
|
30
|
-
>{date}</time
|
|
31
|
-
>
|
|
17
|
+
<time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500">{date}</time>
|
|
32
18
|
<p class="mb-4 text-base font-normal text-gray-500 dark:text-gray-400">
|
|
33
19
|
{text}
|
|
34
20
|
</p>
|
|
35
21
|
{#if href}
|
|
36
|
-
<a
|
|
37
|
-
{href}
|
|
38
|
-
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"
|
|
22
|
+
<a {href} 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"
|
|
39
23
|
>{linkname}
|
|
40
|
-
<svg
|
|
41
|
-
class="ml-2 w-3 h-3"
|
|
42
|
-
fill="currentColor"
|
|
43
|
-
viewBox="0 0 20 20"
|
|
44
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
45
|
-
><path
|
|
46
|
-
fill-rule="evenodd"
|
|
47
|
-
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"
|
|
48
|
-
clip-rule="evenodd"
|
|
49
|
-
/></svg
|
|
50
|
-
></a
|
|
24
|
+
<svg class="ml-2 w-3 h-3" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" 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" clip-rule="evenodd" /></svg></a
|
|
51
25
|
>
|
|
52
26
|
{/if}
|
|
53
27
|
</li>
|
package/toasts/Toast.svelte
CHANGED
package/tooltips/Tooltip.svelte
CHANGED
package/types.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ export interface ButtonGroupType {
|
|
|
28
28
|
href?: string;
|
|
29
29
|
rel?: string;
|
|
30
30
|
icon?: typeof SvelteComponent;
|
|
31
|
+
iconSize?: number;
|
|
32
|
+
iconClass?: string;
|
|
31
33
|
}
|
|
32
34
|
export declare type ButtonType = 'button' | 'submit' | 'reset';
|
|
33
35
|
export declare type Buttontypes = 'blue' | 'blue-outline' | 'dark' | 'dark-outline' | 'light' | 'green' | 'green-outline' | 'red' | 'red-outline' | 'yellow' | 'yellow-outline' | 'purple' | 'purple-outline';
|
|
@@ -73,6 +75,7 @@ export interface IconTabType {
|
|
|
73
75
|
href: string;
|
|
74
76
|
rel?: string;
|
|
75
77
|
icon?: typeof SvelteComponent;
|
|
78
|
+
iconSize?: number;
|
|
76
79
|
}
|
|
77
80
|
export declare type ImgType = {
|
|
78
81
|
src: string;
|
|
@@ -126,6 +129,8 @@ export declare type SidebarType = {
|
|
|
126
129
|
name: string;
|
|
127
130
|
href?: string;
|
|
128
131
|
icon?: typeof SvelteComponent;
|
|
132
|
+
iconSize?: number;
|
|
133
|
+
iconClass?: string;
|
|
129
134
|
rel?: string;
|
|
130
135
|
children?: SidebarType[];
|
|
131
136
|
subtext?: HTMLElement;
|
|
@@ -146,6 +151,8 @@ export interface SocialMediaLinkType {
|
|
|
146
151
|
export interface SocialMediaType {
|
|
147
152
|
href: string;
|
|
148
153
|
icon: typeof SvelteComponent;
|
|
154
|
+
iconSize?: number;
|
|
155
|
+
iconClass?: string;
|
|
149
156
|
}
|
|
150
157
|
export interface TabHeadType {
|
|
151
158
|
name: string;
|
|
@@ -170,6 +177,8 @@ export interface TimelineItemVerticalType {
|
|
|
170
177
|
date: Date | string;
|
|
171
178
|
title: string;
|
|
172
179
|
icon?: typeof SvelteComponent;
|
|
180
|
+
iconSize?: number;
|
|
181
|
+
iconClass?: string;
|
|
173
182
|
href?: string;
|
|
174
183
|
linkname?: string;
|
|
175
184
|
text?: HTMLElement | string;
|
|
@@ -178,6 +187,8 @@ export interface TimelineItemHorizontalType {
|
|
|
178
187
|
date: Date | string;
|
|
179
188
|
title: string;
|
|
180
189
|
icon?: typeof SvelteComponent;
|
|
190
|
+
iconSize?: number;
|
|
191
|
+
iconClass?: string;
|
|
181
192
|
text?: HTMLElement | string;
|
|
182
193
|
}
|
|
183
194
|
export interface TransitionParamTypes {
|