flowbite-svelte 0.48.2 → 0.48.3

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.
@@ -11,6 +11,7 @@ export let href = "";
11
11
  export let rounded = false;
12
12
  export let transition = fade;
13
13
  export let params = {};
14
+ export let tag = "div";
14
15
  let badgeStatus = true;
15
16
  const colors = {
16
17
  primary: "bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",
@@ -57,7 +58,7 @@ $: badgeClass = twMerge(baseClass, large ? "text-sm" : "text-xs", border ? `bord
57
58
  </script>
58
59
 
59
60
  {#if badgeStatus}
60
- <div {...$$restProps} transition:transition={params} class={badgeClass} on:close>
61
+ <svelte:element this={tag} {...$$restProps} transition:transition={params} class={badgeClass} on:close>
61
62
  {#if href}
62
63
  <a {href}>
63
64
  <slot></slot>
@@ -78,7 +79,7 @@ $: badgeClass = twMerge(baseClass, large ? "text-sm" : "text-xs", border ? `bord
78
79
  }} />
79
80
  </slot>
80
81
  {/if}
81
- </div>
82
+ </svelte:element>
82
83
  {/if}
83
84
 
84
85
  <!--
@@ -12,6 +12,7 @@ declare const __propDef: {
12
12
  rounded?: boolean;
13
13
  transition?: (node: HTMLElement, params: any) => TransitionConfig;
14
14
  params?: object;
15
+ tag?: string;
15
16
  };
16
17
  events: {
17
18
  close: CustomEvent<any>;
@@ -10,7 +10,7 @@ let ulCls;
10
10
  $: ulCls = twMerge(ulClass, full && $$slots.extra ? "grid-cols-2" : "grid-cols-2 md:grid-cols-3", "text-sm font-medium", full && $$slots.extra && "md:w-2/3", $$props.classUl);
11
11
  </script>
12
12
 
13
- <Popper color={full ? 'default' : 'dropdown'} border={!full} rounded-sm={!full} activeContent arrow={false} trigger="click" placement="bottom" yOnly={full} {...$$restProps} class={wrapperClass} on:show bind:open>
13
+ <Popper color={full ? 'default' : 'dropdown'} border={!full} rounded={!full} activeContent arrow={false} trigger="click" placement="bottom" yOnly={full} {...$$restProps} class={wrapperClass} on:show bind:open>
14
14
  <div class="flex flex-col md:flex-row p-4 max-w-(--breakpoint-md) justify-center mx-auto mt-2">
15
15
  <ul class={ulCls}>
16
16
  {#each items as item, index}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.48.2",
3
+ "version": "0.48.3",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "dist/index.js",
6
6
  "packageManager": "pnpm@8.15.4",