flowbite-svelte 0.14.14 → 0.15.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/CHANGELOG.md +28 -0
- package/LICENSE +22 -0
- package/README.md +84 -76
- package/accordions/AccordionDefault.svelte +1 -1
- package/accordions/AccordionItem.svelte +1 -1
- 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 +16 -60
- package/carousels/Carousel.svelte.d.ts +2 -0
- package/carousels/CarouselTransition.svelte +16 -60
- package/carousels/CarouselTransition.svelte.d.ts +2 -0
- 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 +4 -3
- 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/ratings/Rating.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>import { StarIconSolid } from '@codewithshin/svelte-heroicons';
|
|
2
2
|
export let divClass = 'flex items-center';
|
|
3
3
|
export let total = 5;
|
|
4
4
|
export let rating = 4;
|
|
@@ -11,12 +11,12 @@ let grayStars = total - roundedRating;
|
|
|
11
11
|
<div class={divClass}>
|
|
12
12
|
{#each Array(roundedRating) as _, star}
|
|
13
13
|
<slot name="ratingUp">
|
|
14
|
-
<StarIconSolid
|
|
14
|
+
<StarIconSolid class="text-yellow-300 dark:text-yellow-200" />
|
|
15
15
|
</slot>
|
|
16
16
|
{/each}
|
|
17
17
|
{#each Array(grayStars) as _, star}
|
|
18
18
|
<slot name="ratingDown">
|
|
19
|
-
<StarIconSolid
|
|
19
|
+
<StarIconSolid class="text-gray-300 dark:text-gray-500" />
|
|
20
20
|
</slot>
|
|
21
21
|
{/each}
|
|
22
22
|
{#if $$slots.text}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>export let ratings = [];
|
|
2
2
|
export let ratings2 = [];
|
|
3
3
|
export let headerLabel;
|
|
4
4
|
export let desc1Class = 'bg-blue-100 w-8 text-blue-800 text-sm font-semibold inline-flex items-center p-1.5 rounded dark:bg-blue-200 dark:text-blue-800';
|
package/sidebars/Sidebar.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>import SidebarDropdown from './SidebarDropdown.svelte';
|
|
2
2
|
export let site;
|
|
3
3
|
export let links;
|
|
4
4
|
export let cta;
|
|
@@ -9,9 +9,7 @@ export let cta;
|
|
|
9
9
|
{#if site}
|
|
10
10
|
<a href={site.href} class="flex items-center pl-2.5 mb-5">
|
|
11
11
|
<img src={site.img} class="h-6 mr-3 sm:h-7" alt={site.name} />
|
|
12
|
-
<span class="self-center text-xl font-semibold whitespace-nowrap dark:text-white"
|
|
13
|
-
>{site.name}</span
|
|
14
|
-
>
|
|
12
|
+
<span class="self-center text-xl font-semibold whitespace-nowrap dark:text-white">{site.name}</span>
|
|
15
13
|
</a>
|
|
16
14
|
{/if}
|
|
17
15
|
<ul class="space-y-2">
|
|
@@ -20,13 +18,9 @@ export let cta;
|
|
|
20
18
|
<SidebarDropdown {link} />
|
|
21
19
|
{:else}
|
|
22
20
|
<li>
|
|
23
|
-
<a
|
|
24
|
-
href={link.href}
|
|
25
|
-
rel={link.rel}
|
|
26
|
-
class="flex items-center p-2 text-base font-normal text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
27
|
-
>
|
|
21
|
+
<a href={link.href} rel={link.rel} class="flex items-center p-2 text-base font-normal text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700">
|
|
28
22
|
{#if link.icon}
|
|
29
|
-
<svelte:component this={link.icon}
|
|
23
|
+
<svelte:component this={link.icon} size={link.iconSize} class="mr-2 {link.iconClass}" />
|
|
30
24
|
{/if}
|
|
31
25
|
<span class="ml-3">{link.name}</span>
|
|
32
26
|
{#if link.subtext}
|
|
@@ -40,10 +34,7 @@ export let cta;
|
|
|
40
34
|
{#if cta}
|
|
41
35
|
<div id="dropdown-cta" class="p-4 mt-6 bg-blue-50 rounded-lg dark:bg-blue-900" role="alert">
|
|
42
36
|
<div class="flex items-center mb-3">
|
|
43
|
-
<span
|
|
44
|
-
class="bg-orange-100 text-orange-800 text-sm font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-orange-200 dark:text-orange-900"
|
|
45
|
-
>{cta.label}</span
|
|
46
|
-
>
|
|
37
|
+
<span class="bg-orange-100 text-orange-800 text-sm font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-orange-200 dark:text-orange-900">{cta.label}</span>
|
|
47
38
|
</div>
|
|
48
39
|
<p class="mb-3 text-sm text-blue-900 dark:text-blue-400">
|
|
49
40
|
{cta.text}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>import { slide } from 'svelte/transition';
|
|
2
2
|
export let link;
|
|
3
3
|
let isOpen = false;
|
|
4
4
|
let activeDropdown = undefined;
|
|
@@ -9,40 +9,18 @@ const handleDropdown = (id) => {
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<li>
|
|
12
|
-
<button
|
|
13
|
-
type="button"
|
|
14
|
-
on:click={() => handleDropdown(link.id)}
|
|
15
|
-
class="flex items-center p-2 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700"
|
|
16
|
-
aria-controls="dropdown"
|
|
17
|
-
data-collapse-toggle="dropdown"
|
|
18
|
-
>
|
|
12
|
+
<button type="button" on:click={() => handleDropdown(link.id)} class="flex items-center p-2 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700" aria-controls="dropdown" data-collapse-toggle="dropdown">
|
|
19
13
|
{#if link.icon}
|
|
20
|
-
<svelte:component this={link.icon}
|
|
14
|
+
<svelte:component this={link.icon} class="mr-4 {link.iconClass}" size={link.iconSize} />
|
|
21
15
|
{/if}
|
|
22
16
|
<span class="flex-1 ml-3 text-left whitespace-nowrap" sidebar-toggle-item="">{link.name}</span>
|
|
23
|
-
<svg
|
|
24
|
-
sidebar-toggle-item=""
|
|
25
|
-
class="w-6 h-6"
|
|
26
|
-
fill="currentColor"
|
|
27
|
-
viewBox="0 0 20 20"
|
|
28
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
29
|
-
><path
|
|
30
|
-
fill-rule="evenodd"
|
|
31
|
-
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
|
|
32
|
-
clip-rule="evenodd"
|
|
33
|
-
/></svg
|
|
34
|
-
>
|
|
17
|
+
<svg sidebar-toggle-item="" class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>
|
|
35
18
|
</button>
|
|
36
19
|
{#if isOpen && link.id == activeDropdown}
|
|
37
20
|
<ul id="dropdown" class="py-2 space-y-2" transition:slide={{ duration: 500 }}>
|
|
38
21
|
{#each link.children as child}
|
|
39
22
|
<li>
|
|
40
|
-
<a
|
|
41
|
-
href={child.href}
|
|
42
|
-
rel={child.rel}
|
|
43
|
-
class="flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700"
|
|
44
|
-
>{child.name}</a
|
|
45
|
-
>
|
|
23
|
+
<a href={child.href} rel={child.rel} class="flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700">{child.name}</a>
|
|
46
24
|
</li>
|
|
47
25
|
{/each}
|
|
48
26
|
</ul>
|
package/spinners/Spinner.svelte
CHANGED
package/tables/Table.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>export let header;
|
|
2
2
|
export let divClass = 'relative overflow-x-auto shadow-md sm:rounded-lg';
|
|
3
3
|
export let tableClass = 'w-full text-sm text-left text-gray-500 dark:text-gray-400';
|
|
4
4
|
export let theadClass = 'text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>export let header;
|
|
2
2
|
export let divClass = 'relative overflow-x-auto shadow-md sm:rounded-lg';
|
|
3
3
|
export let tableClass = 'w-full text-sm text-left text-gray-500 dark:text-gray-400';
|
|
4
4
|
export let theadClass = 'text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400';
|
package/tabs/DefaultTabs.svelte
CHANGED
package/tabs/IconTabs.svelte
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>export let tabs;
|
|
2
2
|
export let iconClass = 'mr-2 w-5 h-5 text-gray-400 group-hover:text-gray-500 dark:text-gray-500 dark:group-hover:text-gray-300';
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<div class="border-b border-gray-200 dark:border-gray-700">
|
|
6
6
|
<ul class="flex flex-wrap -mb-px text-sm font-medium text-center text-gray-500 dark:text-gray-400">
|
|
7
|
-
{#each tabs as { name, active, href, rel, icon }}
|
|
7
|
+
{#each tabs as { name, active, href, rel, icon, iconSize }}
|
|
8
8
|
<li class="mr-2">
|
|
9
9
|
<a {href} {rel} class={active ? 'inline-flex p-4 text-blue-600 rounded-t-lg border-b-2 border-blue-600 active dark:text-blue-500 dark:border-blue-500 group' : ' inline-flex p-4 rounded-t-lg border-b-2 border-transparent hover:text-gray-600 hover:border-gray-300 dark:hover:text-gray-300 group '}>
|
|
10
|
-
<svelte:component this={icon}
|
|
10
|
+
<svelte:component this={icon} size={iconSize} class={iconClass} />
|
|
11
11
|
{name}
|
|
12
12
|
</a>
|
|
13
13
|
</li>
|
package/tabs/PillTabs.svelte
CHANGED
package/tabs/TabContent.svelte
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<script
|
|
1
|
+
<script>export let divClass = 'text-sm font-medium text-center text-gray-500 border-b border-gray-200 dark:text-gray-400 dark:border-gray-700';
|
|
2
2
|
export let tabs;
|
|
3
3
|
</script>
|
|
4
4
|
|
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 {
|