flowbite-svelte 0.15.27 → 0.15.30

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,27 @@
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.15.30](https://github.com/themesberg/flowbite-svelte/compare/v0.15.29...v0.15.30) (2022-05-14)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * move all index.svelte to index.md and add breadcrumb ([c691d92](https://github.com/themesberg/flowbite-svelte/commit/c691d92fe5b47dafb2d1f5bc4dee39dc3a5c61b8))
11
+
12
+ ### [0.15.29](https://github.com/themesberg/flowbite-svelte/compare/v0.15.28...v0.15.29) (2022-05-13)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 28115props.class returns undefined if class is not given ([c1d4ab8](https://github.com/themesberg/flowbite-svelte/commit/c1d4ab8eb6b379078a3fb3fc51952d94c31cf452))
18
+
19
+ ### [0.15.28](https://github.com/themesberg/flowbite-svelte/compare/v0.15.27...v0.15.28) (2022-05-13)
20
+
21
+
22
+ ### Features
23
+
24
+ * add slot to EcommerceCard ([d777c87](https://github.com/themesberg/flowbite-svelte/commit/d777c87d3097998e840a9e2ed79cafc036c74713))
25
+
5
26
  ### [0.15.27](https://github.com/themesberg/flowbite-svelte/compare/v0.15.26...v0.15.27) (2022-05-13)
6
27
 
7
28
  ### [0.15.26](https://github.com/themesberg/flowbite-svelte/compare/v0.15.25...v0.15.26) (2022-05-13)
package/README.md CHANGED
@@ -7,6 +7,10 @@
7
7
 
8
8
  [Flowbite-Svelte](https://flowbite-svelte.com/) is an official Flowbite component library for Svelte. All interactivities are handled by Svelte.
9
9
 
10
+ ## Flowbite-Svelte-Starter
11
+
12
+ You can use [Flowbite-Svelte Starter](https://github.com/shinokada/flowbite-svelte-starter) for a quick start.
13
+
10
14
  ## Installation
11
15
 
12
16
  - [Getting started](https://flowbite-svelte.com/pages/getting-started)
@@ -78,7 +78,7 @@ else {
78
78
  }
79
79
  </script>
80
80
 
81
- <div id={$$props.id} class:hidden class="{divClass} {$$props.class}" role="alert">
81
+ <div id={$$props.id} class:hidden class="{divClass} {$$props.class ? $$props.class : ''}" role="alert">
82
82
  <div class="flex">
83
83
  {#if icon}
84
84
  <svelte:component this={icon} class="flex-shrink-0 w-5 h-5 {contentClass} mr-3" />
@@ -87,6 +87,6 @@ switch (btnColor) {
87
87
  buttonClass += ' items-center inline-flex';
88
88
  </script>
89
89
 
90
- <button {type} class="{buttonClass} {$$props.class}" on:click>
90
+ <button {type} class="{buttonClass} {$$props.class ? $$props.class : ''}" on:click>
91
91
  <slot>Read more</slot>
92
92
  </button>
@@ -60,10 +60,10 @@ else {
60
60
  {#each { length: stars } as _, i}
61
61
  <svg class="w-5 h-5 text-yellow-300" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" /></svg>
62
62
  {/each}
63
-
64
63
  <span class={spanClass}>{stars}</span>
65
64
  {/if}
66
65
  </div>
66
+ <slot />
67
67
  <div class="flex justify-between items-center">
68
68
  {#if price}
69
69
  <span class={priceClass}>{price}</span>
@@ -17,7 +17,9 @@ declare const __propDef: {
17
17
  events: {
18
18
  [evt: string]: CustomEvent<any>;
19
19
  };
20
- slots: {};
20
+ slots: {
21
+ default: {};
22
+ };
21
23
  };
22
24
  export declare type EcommerceCardProps = typeof __propDef.props;
23
25
  export declare type EcommerceCardEvents = typeof __propDef.events;
@@ -14,7 +14,7 @@ export let copyrightYear = '© 2022';
14
14
  export let allRightsReserved = 'All Rights Reserved.';
15
15
  </script>
16
16
 
17
- <footer class="{footerClass} {$$props.class}">
17
+ <footer class="{footerClass} {$$props.class ? $$props.class : ''}">
18
18
  <div class={divClass}>
19
19
  <a href={site.href} class={siteNameLinkClass}>
20
20
  <img src={site.img} class={imgClass} alt={site.name} />
@@ -9,7 +9,7 @@ export let copyrightYear = '© 2022';
9
9
  export let allRightsReserved = 'All Rights Reserved.';
10
10
  </script>
11
11
 
12
- <footer class="{footerClass} {$$props.class}">
12
+ <footer class="{footerClass} {$$props.class ? $$props.class : ''}">
13
13
  <span class={siteNameClass}
14
14
  >{copyrightYear}
15
15
  <a href={site.href} class={siteNameLinkClass} target="_blank">{site.name}</a>. {allRightsReserved}
@@ -16,7 +16,7 @@ export let copyrightYear = '© 2022';
16
16
  export let allRightsReserved = 'All Rights Reserved.';
17
17
  </script>
18
18
 
19
- <footer class="{footerClass} {$$props.class}">
19
+ <footer class="{footerClass} {$$props.class ? $$props.class : ''}">
20
20
  <div class={linksClass}>
21
21
  {#each links as { parent, children }}
22
22
  <div>
@@ -22,7 +22,7 @@ export let copyrightYear = '© 2022';
22
22
  export let allRightsReserved = 'All Rights Reserved.';
23
23
  </script>
24
24
 
25
- <footer class="{footerClass} {$$props.class}">
25
+ <footer class="{footerClass} {$$props.class ? $$props.class : ''}">
26
26
  <div class={divClass}>
27
27
  <div class={divClass2}>
28
28
  <a href={site.href} class={siteLinkClass}>
@@ -20,7 +20,7 @@ function setType(node) {
20
20
  }
21
21
  </script>
22
22
 
23
- <div class={$$props.class}>
23
+ <div class={$$props.class ? $$props.class : ''}>
24
24
  <label for={id} class={labelClass}>{label}</label>
25
25
  {#if noBorder}
26
26
  <div class="relative">
@@ -30,22 +30,11 @@ function setType(node) {
30
30
  }
31
31
  </script>
32
32
 
33
- <div class={$$props.class}>
33
+ <div class={$$props.class ? $$props.class : ''}>
34
34
  {#if label}
35
35
  <label for={id} class={labelClass}>{label}</label>
36
36
  {/if}
37
- <input
38
- bind:value
39
- bind:this={ref}
40
- {name}
41
- use:setType
42
- {id}
43
- class={inputClass}
44
- {placeholder}
45
- {required}
46
- {disabled}
47
- {readonly}
48
- />
37
+ <input bind:value bind:this={ref} {name} use:setType {id} class={inputClass} {placeholder} {required} {disabled} {readonly} />
49
38
  {#if helper}
50
39
  <p class={helperClass}>{@html helper}</p>
51
40
  {/if}
@@ -42,6 +42,6 @@ else if (size === 'large') {
42
42
 
43
43
  <label for={id} class={labelClass}>
44
44
  <input type="checkbox" {id} class={inputClass} {value} {checked} {name} {disabled} />
45
- <div class="{divClass} {$$props.class}" />
45
+ <div class="{divClass} {$$props.class ? $$props.class : ''}" />
46
46
  <span class={spanClass}>{label}</span>
47
47
  </label>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.15.27",
3
+ "version": "0.15.30",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {