flowbite-svelte 0.25.22 → 0.25.23

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.25.23](https://github.com/themesberg/flowbite-svelte/compare/v0.25.22...v0.25.23) (2022-08-28)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * BREAKING CHANGE for timeline components ([8b30105](https://github.com/themesberg/flowbite-svelte/commit/8b30105060d150d632ea6fbfac8e1f5639f82546))
11
+
5
12
  ### [0.25.22](https://github.com/themesberg/flowbite-svelte/compare/v0.25.21...v0.25.22) (2022-08-28)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.25.22",
3
+ "version": "0.25.23",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -1,6 +1,5 @@
1
1
  <script>import classNames from 'classnames';
2
2
  import { getContext } from 'svelte';
3
- export let icon;
4
3
  export let title = '';
5
4
  export let date = '';
6
5
  export let customDiv = '';
@@ -49,8 +48,8 @@ const h3Class = classNames(order === 'vertical'
49
48
  <slot />
50
49
  {:else if order === 'vertical'}
51
50
  <div class={divClasses[order]} />
52
- {#if icon}
53
- {@html icon}
51
+ {#if $$slots.icon}
52
+ <slot name="icon" />
54
53
  {:else}
55
54
  <svg
56
55
  aria-hidden="true"
@@ -74,8 +73,8 @@ const h3Class = classNames(order === 'vertical'
74
73
  <slot />
75
74
  {:else if order === 'horizontal'}
76
75
  <div class={divClasses[order]} />
77
- {#if icon}
78
- {@html icon}
76
+ {#if $$slots.icon}
77
+ <slot name="icon" />
79
78
  {:else}
80
79
  <svg
81
80
  aria-hidden="true"
@@ -99,8 +98,8 @@ const h3Class = classNames(order === 'vertical'
99
98
  <slot />
100
99
  {:else}
101
100
  <div class={divClasses[order]} />
102
- {#if icon}
103
- {@html icon}
101
+ {#if $$slots.icon}
102
+ <slot name="icon" />
104
103
  {:else}
105
104
  <svg
106
105
  aria-hidden="true"
@@ -1,8 +1,6 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { SvelteComponent } from 'svelte';
3
2
  declare const __propDef: {
4
3
  props: {
5
- icon: string | SvelteComponent;
6
4
  title?: string;
7
5
  date?: string;
8
6
  customDiv?: string;
@@ -13,6 +11,7 @@ declare const __propDef: {
13
11
  };
14
12
  slots: {
15
13
  default: {};
14
+ icon: {};
16
15
  };
17
16
  };
18
17
  export declare type TimelineItemProps = typeof __propDef.props;
@@ -2,17 +2,13 @@
2
2
  // export let timelineItems: TimelineItemVerticalType[];
3
3
  export let title;
4
4
  export let date;
5
- export let href;
6
- export let text;
7
- export let linkname;
8
- export let icon;
9
5
  </script>
10
6
 
11
7
  <li class="mb-10 ml-6">
12
8
  <span
13
9
  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">
14
- {#if icon}
15
- {@html icon}
10
+ {#if $$slots.icon}
11
+ <slot name="icon" />
16
12
  {:else}
17
13
  <svg
18
14
  width="20"
@@ -33,23 +29,5 @@ export let icon;
33
29
  </h3>
34
30
  <time class="block mb-2 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"
35
31
  >{date}</time>
36
- <p class="mb-4 text-base font-normal text-gray-500 dark:text-gray-400">
37
- {text}
38
- </p>
39
- {#if href}
40
- <a
41
- {href}
42
- 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"
43
- >{linkname}
44
- <svg
45
- class="ml-2 w-3 h-3"
46
- fill="currentColor"
47
- viewBox="0 0 20 20"
48
- xmlns="http://www.w3.org/2000/svg"
49
- ><path
50
- fill-rule="evenodd"
51
- 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"
52
- clip-rule="evenodd" /></svg
53
- ></a>
54
- {/if}
32
+ <slot />
55
33
  </li>
@@ -3,15 +3,14 @@ declare const __propDef: {
3
3
  props: {
4
4
  title: string;
5
5
  date: string;
6
- href: string;
7
- text: string;
8
- linkname: string;
9
- icon: string;
10
6
  };
11
7
  events: {
12
8
  [evt: string]: CustomEvent<any>;
13
9
  };
14
- slots: {};
10
+ slots: {
11
+ icon: {};
12
+ default: {};
13
+ };
15
14
  };
16
15
  export declare type TimelineItemVerticalProps = typeof __propDef.props;
17
16
  export declare type TimelineItemVerticalEvents = typeof __propDef.events;