flowbite-svelte 0.24.6 → 0.24.7

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,15 @@
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.24.7](https://github.com/themesberg/flowbite-svelte/compare/v0.24.5...v0.24.7) (2022-08-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * add Review component ([67af517](https://github.com/themesberg/flowbite-svelte/commit/67af517e32dfc19c6079e5d1925a234f0162cc34))
11
+ * add Review component ([d41b11d](https://github.com/themesberg/flowbite-svelte/commit/d41b11d4ef00d1d6d0d824d4fcdc9c964a78a7d2))
12
+ * add Review component, page, and prop ([4446e1e](https://github.com/themesberg/flowbite-svelte/commit/4446e1eba3706e291f0cb3812b4ffb61df48eb46))
13
+
5
14
  ### [0.24.6](https://github.com/themesberg/flowbite-svelte/compare/v0.24.5...v0.24.6) (2022-08-11)
6
15
 
7
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.24.6",
3
+ "version": "0.24.7",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -11,37 +11,28 @@ export let review;
11
11
  {#if review.address}
12
12
  <div class="flex items-center text-sm text-gray-500 dark:text-gray-400">
13
13
  {#if review.addressIcon}
14
- <svelte:component this={review.addressIcon} />
14
+ <svelte:component this={review.addressIcon} size="16" class="mr-2" />
15
15
  {/if}
16
16
  {review.address}
17
17
  </div>
18
18
  {/if}
19
19
  </div>
20
20
  </div>
21
- {#if review.item || review.option1 || review.option2}
21
+ {#if $$slots.item || $$slots.option1 || $$slots.option2}
22
22
  <ul class="space-y-4 text-sm text-gray-500 dark:text-gray-400">
23
- {#if review.item}
23
+ {#if $$slots.item}
24
24
  <li class="flex items-center">
25
- {#if review.itemIcon}
26
- <svelte:component this={review.addressIcon} />
27
- {/if}
28
- {review.item}
25
+ <slot name="item" />
29
26
  </li>
30
27
  {/if}
31
- {#if review.option1}
28
+ {#if $$slots.option1}
32
29
  <li class="flex items-center">
33
- {#if review.option1Icon}
34
- <svelte:component this={review.option1Icon} />
35
- {/if}
36
- {review.option1}
30
+ <slot name="option1" />
37
31
  </li>
38
32
  {/if}
39
- {#if review.option2}
33
+ {#if $$slots.option2}
40
34
  <li class="flex items-center">
41
- {#if review.option2Icon}
42
- <svelte:component this={review.option2Icon} />
43
- {/if}
44
- {review.option2}
35
+ <slot name="option2" />
45
36
  </li>
46
37
  {/if}
47
38
  </ul>
@@ -50,10 +41,10 @@ export let review;
50
41
  <div class="col-span-2 mt-6 md:mt-0">
51
42
  <div class="flex items-start mb-5">
52
43
  <div class="pr-4">
53
- {#if review.date}
44
+ {#if review.reviewDate}
54
45
  <footer>
55
46
  <p class="mb-2 text-sm text-gray-500 dark:text-gray-400">
56
- Reviewed: {review.date}
47
+ Reviewed: {review.reviewDate}
57
48
  </p>
58
49
  </footer>
59
50
  {/if}
@@ -6,23 +6,26 @@ declare const __propDef: {
6
6
  name: string;
7
7
  imgSrc: string;
8
8
  imgAlt: string;
9
- address: string;
10
- addressIcon: typeof SvelteComponent;
11
- reviewDate: string;
9
+ address: string | undefined;
10
+ addressIcon: typeof SvelteComponent | undefined;
11
+ reviewDate: string | undefined;
12
12
  title: string;
13
13
  rating: number;
14
- item: string;
15
- itemIcon: typeof SvelteComponent;
16
- option1: string;
17
- option1Icon: typeof SvelteComponent;
18
- option2: string;
19
- option2Icon: typeof SvelteComponent;
14
+ item: string | undefined;
15
+ itemIcon: typeof SvelteComponent | undefined;
16
+ option1: string | undefined;
17
+ option1Icon: typeof SvelteComponent | undefined;
18
+ option2: string | undefined;
19
+ option2Icon: typeof SvelteComponent | undefined;
20
20
  };
21
21
  };
22
22
  events: {
23
23
  [evt: string]: CustomEvent<any>;
24
24
  };
25
25
  slots: {
26
+ item: {};
27
+ option1: {};
28
+ option2: {};
26
29
  default: {};
27
30
  };
28
31
  };