flowbite-svelte 0.16.12 → 0.16.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,8 @@
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.16.13](https://github.com/themesberg/flowbite-svelte/compare/v0.16.12...v0.16.13) (2022-06-07)
6
+
5
7
  ### [0.16.12](https://github.com/themesberg/flowbite-svelte/compare/v0.16.11...v0.16.12) (2022-06-07)
6
8
 
7
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.16.12",
3
+ "version": "0.16.13",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -1,20 +1,26 @@
1
- <script>export let site;
1
+ <script>export let divClass = 'overflow-y-auto py-4 px-3 bg-gray-50 rounded dark:bg-gray-800';
2
+ export let site;
2
3
  export let cta;
3
4
  </script>
4
5
 
5
6
  <aside class="w-64" aria-label="Sidebar">
6
- <div class="overflow-y-auto py-4 px-3 bg-gray-50 rounded dark:bg-gray-800">
7
+ <div class={divClass}>
7
8
  {#if site}
8
9
  <a href={site.href} class="flex items-center pl-2.5 mb-5">
9
10
  <img src={site.img} class="h-6 mr-3 sm:h-7" alt={site.name} />
10
- <span class="self-center text-xl font-semibold whitespace-nowrap dark:text-white">{site.name}</span>
11
+ <span class="self-center text-xl font-semibold whitespace-nowrap dark:text-white"
12
+ >{site.name}</span
13
+ >
11
14
  </a>
12
15
  {/if}
13
16
  <slot />
14
17
  {#if cta}
15
18
  <div id="dropdown-cta" class="p-4 mt-6 bg-blue-50 rounded-lg dark:bg-blue-900" role="alert">
16
19
  <div class="flex items-center mb-3">
17
- <span class="bg-orange-100 text-orange-800 text-sm font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-orange-200 dark:text-orange-900">{cta.label}</span>
20
+ <span
21
+ class="bg-orange-100 text-orange-800 text-sm font-semibold mr-2 px-2.5 py-0.5 rounded dark:bg-orange-200 dark:text-orange-900"
22
+ >{cta.label}</span
23
+ >
18
24
  </div>
19
25
  <p class="mb-3 text-sm text-blue-900 dark:text-blue-400">
20
26
  {cta.text}
@@ -2,6 +2,7 @@ import { SvelteComponentTyped } from "svelte";
2
2
  import type { SiteType, SidebarCtaType } from '../types';
3
3
  declare const __propDef: {
4
4
  props: {
5
+ divClass?: string;
5
6
  site: SiteType;
6
7
  cta: SidebarCtaType;
7
8
  };
@@ -1,5 +1,6 @@
1
1
  <script>import SidebarDropdown from './SidebarDropdown.svelte';
2
2
  export let links;
3
+ export let aClass = 'flex items-center p-2 text-base font-normal text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700';
3
4
  export let childClass = 'flex items-center p-2 pl-11 w-full text-base font-normal text-gray-900 rounded-lg transition duration-75 group hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700';
4
5
  export let dropDownulClass = 'py-2 space-y-2';
5
6
  let ulClass = 'space-y-2';
@@ -15,9 +16,14 @@ if (border) {
15
16
  <SidebarDropdown {link} ulClass={dropDownulClass} {childClass} />
16
17
  {:else}
17
18
  <li>
18
- <a href={link.href} rel={link.rel} class="flex items-center p-2 text-base font-normal text-gray-900 rounded-lg dark:text-white hover:bg-gray-100 dark:hover:bg-gray-700">
19
+ <a href={link.href} rel={link.rel} class={aClass}>
19
20
  {#if link.icon}
20
- <svelte:component this={link.icon} size={link.iconSize} color={link.iconColor} class="mr-2 {link.iconClass}" />
21
+ <svelte:component
22
+ this={link.icon}
23
+ size={link.iconSize}
24
+ color={link.iconColor}
25
+ class="mr-2 {link.iconClass}"
26
+ />
21
27
  {/if}
22
28
  <span class="ml-3">{link.name}</span>
23
29
  {#if link.subtext}
@@ -3,6 +3,7 @@ import type { SidebarType } from '../types';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  links: SidebarType[];
6
+ aClass?: string;
6
7
  childClass?: string;
7
8
  dropDownulClass?: string;
8
9
  border?: boolean;