flowbite-svelte 0.27.11 → 0.27.13

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,21 @@
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.27.13](https://github.com/themesberg/flowbite-svelte/compare/v0.27.12...v0.27.13) (2022-10-30)
6
+
7
+
8
+ ### Features
9
+
10
+ * add target and {...$$restProps} to all footer components ([#405](https://github.com/themesberg/flowbite-svelte/issues/405)) ([c045aa7](https://github.com/themesberg/flowbite-svelte/commit/c045aa76dc209471f278eb98f0ec566c61e957f2))
11
+
12
+ ### [0.27.12](https://github.com/themesberg/flowbite-svelte/compare/v0.27.11...v0.27.12) (2022-10-29)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * meta tag by adding type, url, and appId ([#399](https://github.com/themesberg/flowbite-svelte/issues/399)) ([6f9f423](https://github.com/themesberg/flowbite-svelte/commit/6f9f423b294bbc54bdae152f659e029e5e8a1f76))
18
+ * update meta images width and height ([#400](https://github.com/themesberg/flowbite-svelte/issues/400)) ([f97c01a](https://github.com/themesberg/flowbite-svelte/commit/f97c01a361714daca951c16fa7a2293988abd983))
19
+
5
20
  ### [0.27.11](https://github.com/themesberg/flowbite-svelte/compare/v0.27.10...v0.27.11) (2022-10-26)
6
21
 
7
22
 
@@ -21,19 +21,19 @@ $: avatarClass = classNames(rounded ? 'rounded' : 'rounded-full', border && 'p-1
21
21
  </script>
22
22
 
23
23
  <Dot show={$$props.dot} {rounded} {...dot} {size} class={sizes[size]}>
24
- {#if src}
25
- <img {alt} {src} {...$$restProps} class={avatarClass} />
26
- {:else if $$slots.default}
27
- <svelte:element
28
- this={href ? 'a' : 'div'}
29
- {href}
30
- {...$$restProps}
31
- class="flex justify-center items-center text-xs font-medium {avatarClass}">
32
- <slot />
33
- </svelte:element>
34
- {:else}
35
- <svelte:element this={href ? 'a' : 'div'} {...$$restProps} class={avatarClass}>
36
- <AvatarPlaceholder {rounded} />
37
- </svelte:element>
38
- {/if}
24
+ {#if src}
25
+ <img {alt} {src} {...$$restProps} class={avatarClass} />
26
+ {:else if $$slots.default}
27
+ <svelte:element
28
+ this={href ? 'a' : 'div'}
29
+ {href}
30
+ {...$$restProps}
31
+ class="flex justify-center items-center text-xs font-medium {avatarClass}">
32
+ <slot />
33
+ </svelte:element>
34
+ {:else}
35
+ <svelte:element this={href ? 'a' : 'div'} {...$$restProps} class={avatarClass}>
36
+ <AvatarPlaceholder {rounded} />
37
+ </svelte:element>
38
+ {/if}
39
39
  </Dot>
@@ -5,17 +5,17 @@ export let footerType = 'default';
5
5
  </script>
6
6
 
7
7
  <footer
8
- class={classNames(
9
- {
10
- 'bg-gray-800': footerType === 'sitemap',
11
- 'p-4 bg-white sm:p-6 dark:bg-gray-800': footerType === 'socialmedia',
12
- 'p-4 bg-white rounded-lg shadow md:px-6 md:py-8 dark:bg-gray-800': footerType === 'logo',
13
- 'p-4 bg-white rounded-lg shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800':
14
- footerType === 'default',
15
- [`${customClass}`]: footerType === 'custom'
16
- },
17
- $$props.class
18
- )}
19
- >
20
- <slot />
8
+ {...$$restProps}
9
+ class={classNames(
10
+ {
11
+ 'bg-gray-800': footerType === 'sitemap',
12
+ 'p-4 bg-white sm:p-6 dark:bg-gray-800': footerType === 'socialmedia',
13
+ 'p-4 bg-white rounded-lg shadow md:px-6 md:py-8 dark:bg-gray-800': footerType === 'logo',
14
+ 'p-4 bg-white rounded-lg shadow md:flex md:items-center md:justify-between md:p-6 dark:bg-gray-800':
15
+ footerType === 'default',
16
+ [`${customClass}`]: footerType === 'custom'
17
+ },
18
+ $$props.class
19
+ )}>
20
+ <slot />
21
21
  </footer>
@@ -6,14 +6,15 @@ export let href = '';
6
6
  export let src = '';
7
7
  export let alt = '';
8
8
  export let name = '';
9
+ export let target = undefined;
9
10
  </script>
10
11
 
11
12
  {#if href}
12
- <a {href} class={classNames(aClass, $$props.class)}>
13
- <img {src} class={imgClass} {alt} />
14
- <span class={spanClass}>{name}</span>
15
- <slot />
16
- </a>
13
+ <a {...$$restProps} {href} {target} class={classNames(aClass, $$props.class)}>
14
+ <img {src} class={imgClass} {alt} />
15
+ <span class={spanClass}>{name}</span>
16
+ <slot />
17
+ </a>
17
18
  {:else}
18
- <img {src} class={imgClass} {alt} />
19
+ <img {...$$restProps} {src} class={imgClass} {alt} />
19
20
  {/if}
@@ -9,6 +9,7 @@ declare const __propDef: {
9
9
  src?: string | undefined;
10
10
  alt?: string | undefined;
11
11
  name?: string | undefined;
12
+ target?: string | undefined;
12
13
  };
13
14
  events: {
14
15
  [evt: string]: CustomEvent<any>;
@@ -4,16 +4,17 @@ export let aClass = 'hover:underline';
4
4
  export let year = new Date().getFullYear();
5
5
  export let href = '';
6
6
  export let by = '';
7
+ export let target = undefined;
7
8
  </script>
8
9
 
9
10
  <span class={classNames(spanClass, $$props.class)}>
10
- &copy; {year}
11
- {#if href}
12
- <a {href} class={aClass}>
13
- {by}
14
- </a>
15
- {:else}
16
- <span class="ml-1">{by}</span>
17
- {/if}
18
- . All Rights Reserved.
11
+ &copy; {year}
12
+ {#if href}
13
+ <a {...$$restProps} {href} {target} class={aClass}>
14
+ {by}
15
+ </a>
16
+ {:else}
17
+ <span class="ml-1">{by}</span>
18
+ {/if}
19
+ . All Rights Reserved.
19
20
  </span>
@@ -7,6 +7,7 @@ declare const __propDef: {
7
7
  year?: number | undefined;
8
8
  href?: string | undefined;
9
9
  by?: string | undefined;
10
+ target?: string | undefined;
10
11
  };
11
12
  events: {
12
13
  [evt: string]: CustomEvent<any>;
@@ -2,12 +2,13 @@
2
2
  export let href = '';
3
3
  export let ariaLabel = '';
4
4
  export let aClass = 'text-gray-500 hover:text-gray-900 dark:hover:text-white';
5
+ export let target = undefined;
5
6
  </script>
6
7
 
7
8
  {#if href}
8
- <a {href} aria-label={ariaLabel} class={classNames(aClass, $$props.class)}>
9
- <slot />
10
- </a>
9
+ <a {...$$restProps} {href} {target} aria-label={ariaLabel} class={classNames(aClass, $$props.class)}>
10
+ <slot />
11
+ </a>
11
12
  {:else}
12
- <slot />
13
+ <slot />
13
14
  {/if}
@@ -5,6 +5,7 @@ declare const __propDef: {
5
5
  href?: string | undefined;
6
6
  ariaLabel?: string | undefined;
7
7
  aClass?: string | undefined;
8
+ target?: string | undefined;
8
9
  };
9
10
  events: {
10
11
  [evt: string]: CustomEvent<any>;
@@ -1,11 +1,13 @@
1
- <script>import classNames from 'classnames';
1
+ <script>import A from '../typography/A.svelte';
2
+ import classNames from 'classnames';
2
3
  export let liClass = 'mr-4 last:mr-0 md:mr-6';
3
4
  export let aClass = 'hover:underline';
4
5
  export let href = '';
6
+ export let target = undefined;
5
7
  </script>
6
8
 
7
9
  <li class={classNames(liClass, $$props.class)}>
8
- <a {href} class={aClass}>
9
- <slot />
10
- </a>
10
+ <a {...$$restProps} {href} class={aClass} {target}>
11
+ <slot />
12
+ </a>
11
13
  </li>
@@ -5,6 +5,7 @@ declare const __propDef: {
5
5
  liClass?: string | undefined;
6
6
  aClass?: string | undefined;
7
7
  href?: string | undefined;
8
+ target?: string | undefined;
8
9
  };
9
10
  events: {
10
11
  [evt: string]: CustomEvent<any>;
@@ -9,7 +9,7 @@ let groupClass;
9
9
  $: groupClass = classNames('divide-y divide-gray-200 dark:divide-gray-600', $$props.class);
10
10
  </script>
11
11
 
12
- <Frame tag={active ? 'div' : 'ul'} rounded border class={groupClass}>
12
+ <Frame tag={active ? 'div' : 'ul'} {...$$restProps} rounded border class={groupClass}>
13
13
  {#each items as item, index}
14
14
  <ListgroupItem {active} {...item} {index} on:click><slot {item} {index} /></ListgroupItem>
15
15
  {:else}
@@ -97,7 +97,7 @@ function handleKeys(e) {
97
97
  on:click={autoclose ? onAutoClose : null}>
98
98
  <div class="flex p-4 w-full {sizes[size]} h-full md:h-auto max-h-screen">
99
99
  <!-- Modal content -->
100
- <Frame rounded shadow class="relative flex flex-col w-full h-full md:h-auto">
100
+ <Frame {...$$restProps} rounded shadow class="relative flex flex-col w-full h-full md:h-auto">
101
101
  <!-- Modal header -->
102
102
  {#if $$slots.header || title}
103
103
  <div class="flex justify-between items-center p-4 rounded-t border-b dark:border-gray-600">
@@ -14,15 +14,15 @@ $$props.class);
14
14
  </script>
15
15
 
16
16
  {#if !hidden}
17
- <div {...$$restProps} class={_divClass} transition:slide={{ delay: 250, duration: 500, easing: quintOut }}>
18
- <Frame tag="ul" border rounded color="navbarUl" class={_ulClass}>
19
- <slot />
20
- </Frame>
21
- </div>
17
+ <div {...$$restProps} class={_divClass} transition:slide={{ delay: 250, duration: 500, easing: quintOut }}>
18
+ <Frame tag="ul" border rounded color="navbarUl" class={_ulClass}>
19
+ <slot />
20
+ </Frame>
21
+ </div>
22
22
  {:else}
23
- <div {...$$restProps} class={_divClass} {hidden}>
24
- <ul class={_ulClass}>
25
- <slot />
26
- </ul>
27
- </div>
23
+ <div {...$$restProps} class={_divClass} {hidden}>
24
+ <ul class={_ulClass}>
25
+ <slot />
26
+ </ul>
27
+ </div>
28
28
  {/if}
@@ -11,7 +11,7 @@ let toggle = () => {
11
11
  </script>
12
12
 
13
13
  <Frame tag="nav" {color} {...$$restProps} class={classNames(navClass, $$props.class)}>
14
- <div class={classNames(navDivClass, fluid && 'container')}>
15
- <slot {hidden} {toggle} />
16
- </div>
14
+ <div class={classNames(navDivClass, fluid && 'container')}>
15
+ <slot {hidden} {toggle} />
16
+ </div>
17
17
  </Frame>
@@ -5,7 +5,7 @@ declare const __propDef: {
5
5
  navClass?: string | undefined;
6
6
  navDivClass?: string | undefined;
7
7
  fluid?: boolean | undefined;
8
- color?: string | undefined;
8
+ color?: "gray" | "red" | "yellow" | "green" | "indigo" | "default" | "purple" | "pink" | "blue" | "light" | "dark" | "dropdown" | "navbar" | "navbarUl" | "form" | "none" | undefined;
9
9
  };
10
10
  events: {
11
11
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.27.11",
3
+ "version": "0.27.13",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -1,9 +1,8 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
- import type { Colors } from '../types';
3
2
  declare const __propDef: {
4
3
  props: {
5
4
  [x: string]: any;
6
- color?: Colors | undefined;
5
+ color?: "gray" | "red" | "yellow" | "green" | "indigo" | "default" | "purple" | "pink" | "blue" | "light" | "dark" | "dropdown" | "navbar" | "navbarUl" | "form" | "none" | undefined;
7
6
  simple?: boolean | undefined;
8
7
  position?: "none" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
9
8
  open?: boolean | undefined;