flowbite-svelte 0.11.0 → 0.11.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.
@@ -1,7 +1,13 @@
1
- <script >export let color = 'blue';
1
+ <script >import { createEventDispatcher } from 'svelte';
2
+ const dispatch = createEventDispatcher();
3
+ export let color = 'blue';
2
4
  export let alertId = 'alert-1';
3
5
  export let closeBtn = false;
6
+ export let btn1 = false;
4
7
  let hidden = false;
8
+ const handlebtn1 = () => {
9
+ dispatch('handlebtn1');
10
+ };
5
11
  const handleHide = () => {
6
12
  hidden = !hidden;
7
13
  };
@@ -72,6 +78,7 @@ else {
72
78
  buttonClass =
73
79
  'ml-auto -mx-1.5 -my-1.5 bg-gray-100 text-gray-500 rounded-lg focus:ring-2 focus:ring-gray-400 p-1.5 hover:bg-gray-200 inline-flex h-8 w-8 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300';
74
80
  }
81
+ let button1Class = 'text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800';
75
82
  </script>
76
83
 
77
84
  <div id={alertId} class:hidden class={divClass} role="alert">
@@ -101,4 +108,20 @@ else {
101
108
  >
102
109
  </button>
103
110
  {/if}
111
+ {#if btn1}
112
+ <button on:click={handlebtn1} type="button" class={buttonClass} aria-label="Close">
113
+ <span class="sr-only">Close</span>
114
+ <svg
115
+ class="w-5 h-5"
116
+ fill="currentColor"
117
+ viewBox="0 0 20 20"
118
+ xmlns="http://www.w3.org/2000/svg"
119
+ ><path
120
+ fill-rule="evenodd"
121
+ 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"
122
+ clip-rule="evenodd"
123
+ /></svg
124
+ >
125
+ </button>
126
+ {/if}
104
127
  </div>
@@ -5,8 +5,11 @@ declare const __propDef: {
5
5
  color?: Colors;
6
6
  alertId?: string;
7
7
  closeBtn?: boolean;
8
+ btn1?: boolean;
8
9
  };
9
10
  events: {
11
+ handlebtn1: CustomEvent<any>;
12
+ } & {
10
13
  [evt: string]: CustomEvent<any>;
11
14
  };
12
15
  slots: {
@@ -1,5 +1,5 @@
1
1
  <script >export let textSize = 'text-xs';
2
- export let name = 'Read more';
2
+ export let name = '';
3
3
  export let color = 'blue';
4
4
  let badgeClass;
5
5
  if (color === 'blue') {
package/index.d.ts CHANGED
@@ -52,11 +52,16 @@ export { default as SignInModal } from "./modals/SignInModal.svelte";
52
52
  export { default as SmallModal } from "./modals/SmallModal.svelte";
53
53
  export { default as Navbar } from "./navbar/Navbar.svelte";
54
54
  export { default as DropdownNavbar } from "./navbar/DropdownNavbar.svelte";
55
+ export { default as Sidebar } from "./sidebars/Sidebar.svelte";
55
56
  export { default as Spinner } from "./spinners/Spinner.svelte";
56
57
  export { default as SpinnerButton } from "./spinners/SpinnerButton.svelte";
57
58
  export { default as InteractiveTabs } from "./tabs/InteractiveTabs.svelte";
58
59
  export { default as DefaultTabs } from "./tabs/DefaultTabs.svelte";
59
60
  export { default as PillTabs } from "./tabs/PillTabs.svelte";
61
+ export { default as Timeline } from "./timelines/Timeline.svelte";
62
+ export { default as TimelineItem } from "./timelines/TimelineItem.svelte";
63
+ export { default as TimelineItemVertical } from "./timelines/TimelineItemVertical.svelte";
64
+ export { default as TimelineItemHorizontal } from "./timelines/TimelineItemHorizontal.svelte";
60
65
  export { default as Toast } from "./toasts/Toast.svelte";
61
66
  export { default as Tooltip } from "./tooltips/Tooltip.svelte";
62
67
  export { default as LightTooltip } from "./tooltips/LightTooltip.svelte";
package/index.js CHANGED
@@ -82,6 +82,9 @@ export { default as SmallModal } from'./modals/SmallModal.svelte'
82
82
  export { default as Navbar } from'./navbar/Navbar.svelte'
83
83
  export { default as DropdownNavbar } from'./navbar/DropdownNavbar.svelte'
84
84
 
85
+ // Sidebar
86
+ export { default as Sidebar } from './sidebars/Sidebar.svelte'
87
+
85
88
  // Spin
86
89
  export { default as Spinner } from'./spinners/Spinner.svelte'
87
90
  export { default as SpinnerButton } from'./spinners/SpinnerButton.svelte'
@@ -89,7 +92,13 @@ export { default as SpinnerButton } from'./spinners/SpinnerButton.svelte'
89
92
  // Tabs
90
93
  export { default as InteractiveTabs } from'./tabs/InteractiveTabs.svelte'
91
94
  export { default as DefaultTabs } from'./tabs/DefaultTabs.svelte'
92
- export { default as PillTabs } from'./tabs/PillTabs.svelte'
95
+ export { default as PillTabs } from './tabs/PillTabs.svelte'
96
+
97
+ // Timeline
98
+ export { default as Timeline } from './timelines/Timeline.svelte'
99
+ export { default as TimelineItem } from './timelines/TimelineItem.svelte'
100
+ export { default as TimelineItemVertical } from './timelines/TimelineItemVertical.svelte'
101
+ export { default as TimelineItemHorizontal } from './timelines/TimelineItemHorizontal.svelte'
93
102
 
94
103
  // Toast
95
104
  export { default as Toast } from './toasts/Toast.svelte'
@@ -6,6 +6,7 @@ export let lostPasswordLink;
6
6
  export let rememberMe = false;
7
7
  export let signUp;
8
8
  export let action;
9
+ export let emailPlaceholder = 'name@company.com';
9
10
  const closeModal = () => {
10
11
  modalIdStore.update((value) => (value = null));
11
12
  };
@@ -95,7 +96,7 @@ else {
95
96
  name="email"
96
97
  id="email-{id}"
97
98
  class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-600 dark:border-gray-500 dark:placeholder-gray-400 dark:text-white"
98
- placeholder="name@company.com"
99
+ placeholder={emailPlaceholder}
99
100
  required
100
101
  />
101
102
  </div>
@@ -9,6 +9,7 @@ declare const __propDef: {
9
9
  rememberMe?: boolean;
10
10
  signUp: string;
11
11
  action: string;
12
+ emailPlaceholder?: string;
12
13
  showModalId: string;
13
14
  };
14
15
  events: {
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Flowbite components for Svelte",
5
+ "main": "./package/index.js",
5
6
  "author": {
6
7
  "name": "Shinichi Okada",
7
8
  "email": "connect@codewithshin.com",
@@ -125,12 +126,18 @@
125
126
  "./modals/modalStores": "./modals/modalStores.js",
126
127
  "./navbar/DropdownNavbar.svelte": "./navbar/DropdownNavbar.svelte",
127
128
  "./navbar/Navbar.svelte": "./navbar/Navbar.svelte",
129
+ "./sidebars/Sidebar.svelte": "./sidebars/Sidebar.svelte",
128
130
  "./spinners/Spinner.svelte": "./spinners/Spinner.svelte",
129
131
  "./spinners/SpinnerButton.svelte": "./spinners/SpinnerButton.svelte",
130
132
  "./tables/Table.svelte": "./tables/Table.svelte",
131
133
  "./tabs/DefaultTabs.svelte": "./tabs/DefaultTabs.svelte",
132
134
  "./tabs/InteractiveTabs.svelte": "./tabs/InteractiveTabs.svelte",
133
135
  "./tabs/PillTabs.svelte": "./tabs/PillTabs.svelte",
136
+ "./timelines/Timeline.svelte": "./timelines/Timeline.svelte",
137
+ "./timelines/TimelineHorizontal.svelte": "./timelines/TimelineHorizontal.svelte",
138
+ "./timelines/TimelineItem.svelte": "./timelines/TimelineItem.svelte",
139
+ "./timelines/TimelineItemHorizontal.svelte": "./timelines/TimelineItemHorizontal.svelte",
140
+ "./timelines/TimelineItemVertical.svelte": "./timelines/TimelineItemVertical.svelte",
134
141
  "./toasts/Toast.svelte": "./toasts/Toast.svelte",
135
142
  "./tooltips/LightTooltip.svelte": "./tooltips/LightTooltip.svelte",
136
143
  "./tooltips/Tooltip.svelte": "./tooltips/Tooltip.svelte",
@@ -0,0 +1,101 @@
1
+ <script >import { slide } from 'svelte/transition';
2
+ export let site;
3
+ export let links;
4
+ export let cta;
5
+ let isOpen = false;
6
+ let activeDropdown = undefined;
7
+ const handleDropdown = (id) => {
8
+ isOpen = !isOpen;
9
+ activeDropdown = id;
10
+ };
11
+ </script>
12
+
13
+ <aside class="w-64" aria-label="Sidebar">
14
+ <div class="overflow-y-auto py-4 px-3 bg-gray-50 rounded dark:bg-gray-800">
15
+ {#if site}
16
+ <a href={site.href} class="flex items-center pl-2.5 mb-5">
17
+ <img src={site.img} class="h-6 mr-3 sm:h-7" alt={site.name} />
18
+ <span class="self-center text-xl font-semibold whitespace-nowrap dark:text-white"
19
+ >{site.name}</span
20
+ >
21
+ </a>
22
+ {/if}
23
+ <ul class="space-y-2">
24
+ {#each links as link (link.id)}
25
+ {#if link.children}
26
+ <li>
27
+ <button
28
+ type="button"
29
+ on:click={() => handleDropdown(link.id)}
30
+ 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"
31
+ aria-controls="dropdown"
32
+ data-collapse-toggle="dropdown"
33
+ >
34
+ {#if link.icon}
35
+ <svelte:component this={link.icon} className="h-4 w-4 mr-2" />
36
+ {/if}
37
+ <span class="flex-1 ml-3 text-left whitespace-nowrap" sidebar-toggle-item=""
38
+ >{link.name}</span
39
+ >
40
+ <svg
41
+ sidebar-toggle-item=""
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="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"
49
+ clip-rule="evenodd"
50
+ /></svg
51
+ >
52
+ </button>
53
+ {#if isOpen && link.id == activeDropdown}
54
+ <ul id="dropdown" class="py-2 space-y-2" transition:slide={{ duration: 500 }}>
55
+ {#each link.children as child}
56
+ <li>
57
+ <a
58
+ href={child.href}
59
+ rel={child.rel}
60
+ 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"
61
+ >{child.name}</a
62
+ >
63
+ </li>
64
+ {/each}
65
+ </ul>
66
+ {/if}
67
+ </li>
68
+ {:else}
69
+ <li>
70
+ <a
71
+ href={link.href}
72
+ rel={link.rel}
73
+ 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"
74
+ >
75
+ {#if link.icon}
76
+ <svelte:component this={link.icon} className="h-4 w-4 mr-2" />
77
+ {/if}
78
+ <span class="ml-3">{link.name}</span>
79
+ {#if link.subtext}
80
+ {@html link.subtext}
81
+ {/if}
82
+ </a>
83
+ </li>
84
+ {/if}
85
+ {/each}
86
+ </ul>
87
+ {#if cta}
88
+ <div id="dropdown-cta" class="p-4 mt-6 bg-blue-50 rounded-lg dark:bg-blue-900" role="alert">
89
+ <div class="flex items-center mb-3">
90
+ <span
91
+ 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"
92
+ >{cta.label}</span
93
+ >
94
+ </div>
95
+ <p class="mb-3 text-sm text-blue-900 dark:text-blue-400">
96
+ {cta.text}
97
+ </p>
98
+ </div>
99
+ {/if}
100
+ </div>
101
+ </aside>
@@ -0,0 +1,19 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { SiteType, SidebarType, SidebarCtaType } from '../types';
3
+ declare const __propDef: {
4
+ props: {
5
+ site: SiteType;
6
+ links: SidebarType[];
7
+ cta: SidebarCtaType;
8
+ };
9
+ events: {
10
+ [evt: string]: CustomEvent<any>;
11
+ };
12
+ slots: {};
13
+ };
14
+ export declare type SidebarProps = typeof __propDef.props;
15
+ export declare type SidebarEvents = typeof __propDef.events;
16
+ export declare type SidebarSlots = typeof __propDef.slots;
17
+ export default class Sidebar extends SvelteComponentTyped<SidebarProps, SidebarEvents, SidebarSlots> {
18
+ }
19
+ export {};
@@ -30,9 +30,13 @@ export let tabs;
30
30
  role="tabpanel"
31
31
  aria-labelledby="{name}-tab"
32
32
  >
33
- <p class="text-sm text-gray-500 dark:text-gray-400">
34
- {content}
35
- </p>
33
+ {#if typeof content === 'string'}
34
+ <p class="text-sm text-gray-500 dark:text-gray-400">
35
+ {content}
36
+ </p>
37
+ {:else}
38
+ <svelte:component this={content} />
39
+ {/if}
36
40
  </div>
37
41
  {/if}
38
42
  {/each}
@@ -0,0 +1,6 @@
1
+ <script >export let olClass = 'relative border-l border-gray-200 dark:border-gray-700';
2
+ </script>
3
+
4
+ <ol class={olClass}>
5
+ <slot />
6
+ </ol>
@@ -0,0 +1,18 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ olClass?: string;
5
+ };
6
+ events: {
7
+ [evt: string]: CustomEvent<any>;
8
+ };
9
+ slots: {
10
+ default: {};
11
+ };
12
+ };
13
+ export declare type TimelineProps = typeof __propDef.props;
14
+ export declare type TimelineEvents = typeof __propDef.events;
15
+ export declare type TimelineSlots = typeof __propDef.slots;
16
+ export default class Timeline extends SvelteComponentTyped<TimelineProps, TimelineEvents, TimelineSlots> {
17
+ }
18
+ export {};
@@ -0,0 +1,6 @@
1
+ <script >export let olClass = 'items-center sm:flex';
2
+ </script>
3
+
4
+ <ol class={olClass}>
5
+ <slot />
6
+ </ol>
@@ -0,0 +1,18 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ olClass?: string;
5
+ };
6
+ events: {
7
+ [evt: string]: CustomEvent<any>;
8
+ };
9
+ slots: {
10
+ default: {};
11
+ };
12
+ };
13
+ export declare type TimelineHorizontalProps = typeof __propDef.props;
14
+ export declare type TimelineHorizontalEvents = typeof __propDef.events;
15
+ export declare type TimelineHorizontalSlots = typeof __propDef.slots;
16
+ export default class TimelineHorizontal extends SvelteComponentTyped<TimelineHorizontalProps, TimelineHorizontalEvents, TimelineHorizontalSlots> {
17
+ }
18
+ export {};
@@ -0,0 +1,37 @@
1
+ <script >export let timelineItems;
2
+ </script>
3
+
4
+ {#each timelineItems as { date, title, text, href, linkname }}
5
+ <li class="mb-10 ml-4">
6
+ <div
7
+ class="absolute w-3 h-3 bg-gray-200 rounded-full mt-1.5 -left-1.5 border border-white dark:border-gray-900 dark:bg-gray-700"
8
+ />
9
+ <time class="mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
10
+ >{date}</time
11
+ >
12
+ <h3 class="text-lg font-semibold text-gray-900 dark:text-white">
13
+ {title}
14
+ </h3>
15
+ <p class="mb-4 text-base font-normal text-gray-500 dark:text-gray-400">
16
+ {text}
17
+ </p>
18
+ {#if href}
19
+ <a
20
+ {href}
21
+ 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
+ >{linkname}
23
+ <svg
24
+ class="ml-2 w-3 h-3"
25
+ fill="currentColor"
26
+ viewBox="0 0 20 20"
27
+ xmlns="http://www.w3.org/2000/svg"
28
+ ><path
29
+ fill-rule="evenodd"
30
+ 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"
31
+ clip-rule="evenodd"
32
+ /></svg
33
+ ></a
34
+ >
35
+ {/if}
36
+ </li>
37
+ {/each}
@@ -0,0 +1,17 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { TimelineItemType } from '../types';
3
+ declare const __propDef: {
4
+ props: {
5
+ timelineItems: TimelineItemType[];
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export declare type TimelineItemProps = typeof __propDef.props;
13
+ export declare type TimelineItemEvents = typeof __propDef.events;
14
+ export declare type TimelineItemSlots = typeof __propDef.slots;
15
+ export default class TimelineItem extends SvelteComponentTyped<TimelineItemProps, TimelineItemEvents, TimelineItemSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,42 @@
1
+ <script >export let timelineItems;
2
+ </script>
3
+
4
+ {#each timelineItems as { date, title, text, href, linkname, icon }}
5
+ <li class="relative mb-6 sm:mb-0">
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
+ >
10
+ {icon}
11
+ </div>
12
+ <div class="hidden sm:flex w-full bg-gray-200 h-0.5 dark:bg-gray-700" />
13
+ </div>
14
+ <div class="mt-3 sm:pr-8">
15
+ <h3 class="text-lg font-semibold text-gray-900 dark:text-white">{title}</h3>
16
+ <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
17
+ >{date}</time
18
+ >
19
+ <p class="text-base font-normal text-gray-500 dark:text-gray-400">
20
+ {text}
21
+ </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
+ </div>
41
+ </li>
42
+ {/each}
@@ -0,0 +1,17 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { TimelineItemType } from '../types';
3
+ declare const __propDef: {
4
+ props: {
5
+ timelineItems: TimelineItemType[];
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export declare type TimelineItemHorizontalProps = typeof __propDef.props;
13
+ export declare type TimelineItemHorizontalEvents = typeof __propDef.events;
14
+ export declare type TimelineItemHorizontalSlots = typeof __propDef.slots;
15
+ export default class TimelineItemHorizontal extends SvelteComponentTyped<TimelineItemHorizontalProps, TimelineItemHorizontalEvents, TimelineItemHorizontalSlots> {
16
+ }
17
+ export {};
@@ -0,0 +1,40 @@
1
+ <script >export let timelineItems;
2
+ </script>
3
+
4
+ {#each timelineItems as { date, title, text, href, linkname, icon }}
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
+ >
9
+ <svelte:component this={icon} className="h-4 w-4" />
10
+ </span>
11
+
12
+ <h3 class="flex items-center mb-1 text-lg font-semibold text-gray-900 dark:text-white">
13
+ {title}
14
+ </h3>
15
+ <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
16
+ >{date}</time
17
+ >
18
+ <p class="mb-4 text-base font-normal text-gray-500 dark:text-gray-400">
19
+ {text}
20
+ </p>
21
+ {#if href}
22
+ <a
23
+ {href}
24
+ 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"
25
+ >{linkname}
26
+ <svg
27
+ class="ml-2 w-3 h-3"
28
+ fill="currentColor"
29
+ viewBox="0 0 20 20"
30
+ xmlns="http://www.w3.org/2000/svg"
31
+ ><path
32
+ fill-rule="evenodd"
33
+ 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"
34
+ clip-rule="evenodd"
35
+ /></svg
36
+ ></a
37
+ >
38
+ {/if}
39
+ </li>
40
+ {/each}
@@ -0,0 +1,17 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { TimelineItemVerticalType } from '../types';
3
+ declare const __propDef: {
4
+ props: {
5
+ timelineItems: TimelineItemVerticalType[];
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export declare type TimelineItemVerticalProps = typeof __propDef.props;
13
+ export declare type TimelineItemVerticalEvents = typeof __propDef.events;
14
+ export declare type TimelineItemVerticalSlots = typeof __propDef.slots;
15
+ export default class TimelineItemVertical extends SvelteComponentTyped<TimelineItemVerticalProps, TimelineItemVerticalEvents, TimelineItemVerticalSlots> {
16
+ }
17
+ export {};
@@ -1,5 +1,4 @@
1
1
  <script >import { fade, blur, fly, slide } from 'svelte/transition';
2
- import { quintOut } from 'svelte/easing';
3
2
  let visible = true;
4
3
  const handleHide = () => {
5
4
  visible = !visible;
package/types.d.ts CHANGED
@@ -46,7 +46,7 @@ export interface TabType {
46
46
  export interface InteractiveTabType {
47
47
  name: string;
48
48
  id: number;
49
- content: string;
49
+ content: string | typeof SvelteComponent;
50
50
  }
51
51
  export interface PillTabType {
52
52
  name: string;
@@ -83,6 +83,19 @@ export interface AuthFieldType {
83
83
  required?: boolean;
84
84
  placeholder?: string;
85
85
  }
86
+ export declare type SidebarType = {
87
+ id: number;
88
+ name: string;
89
+ href?: string;
90
+ icon?: typeof SvelteComponent;
91
+ rel?: string;
92
+ children?: SidebarType[];
93
+ subtext?: HTMLElement;
94
+ };
95
+ export declare type SidebarCtaType = {
96
+ label: string;
97
+ text: HTMLElement;
98
+ };
86
99
  export declare type SelectOptionType = {
87
100
  name: string;
88
101
  value: string;
@@ -97,3 +110,19 @@ export interface AvatarType {
97
110
  text?: string;
98
111
  }
99
112
  export declare type TransitionTypes = 'fade' | 'fly' | 'slide' | 'blur';
113
+ export interface TimelineItemType {
114
+ date: Date | string;
115
+ title: string;
116
+ icon?: typeof SvelteComponent;
117
+ href?: string;
118
+ linkname?: string;
119
+ text?: HTMLElement | string;
120
+ }
121
+ export interface TimelineItemVerticalType {
122
+ date: Date | string;
123
+ title: string;
124
+ icon: typeof SvelteComponent;
125
+ href?: string;
126
+ linkname?: string;
127
+ text?: HTMLElement | string;
128
+ }