flowbite-svelte 0.28.3 → 0.28.4

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,13 @@
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.28.4](https://github.com/themesberg/flowbite-svelte/compare/v0.28.3...v0.28.4) (2022-12-01)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * avatar default href ([#462](https://github.com/themesberg/flowbite-svelte/issues/462)) ([1ad8999](https://github.com/themesberg/flowbite-svelte/commit/1ad899993ae3cf1f18e975766549718dc65ed50b))
11
+
5
12
  ### [0.28.3](https://github.com/themesberg/flowbite-svelte/compare/v0.28.2...v0.28.3) (2022-11-28)
6
13
 
7
14
 
@@ -2,7 +2,7 @@
2
2
  import AvatarPlaceholder from './Placeholder.svelte';
3
3
  import Dot from './Dot.svelte';
4
4
  export let src = '';
5
- export let href = '#';
5
+ export let href = undefined;
6
6
  export let rounded = false;
7
7
  export let border = false;
8
8
  export let stacked = false;
@@ -50,7 +50,7 @@ const coloredShadowClasses = {
50
50
  };
51
51
  const outlineClasses = {
52
52
  blue: 'text-blue-700 hover:text-white border border-blue-700 hover:bg-blue-800 focus:ring-blue-300 dark:border-blue-500 dark:text-blue-500 dark:hover:text-white dark:hover:bg-blue-600 dark:focus:ring-blue-800',
53
- light: "text-gray-500 hover:text-gray-900 bg-white border border-gray-200 dark:border-gray-600 dark:hover:text-white dark:text-gray-400 hover:bg-gray-50 dark:bg-gray-700 dark:hover:bg-gray-600 focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-400",
53
+ light: 'text-gray-500 hover:text-gray-900 bg-white border border-gray-200 dark:border-gray-600 dark:hover:text-white dark:text-gray-400 hover:bg-gray-50 dark:bg-gray-700 dark:hover:bg-gray-600 focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-400',
54
54
  dark: 'text-gray-900 hover:text-white border border-gray-800 hover:bg-gray-900 focus:bg-gray-900 focus:text-white focus:ring-gray-300 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-800',
55
55
  green: 'text-green-700 hover:text-white border border-green-700 hover:bg-green-800 focus:ring-green-300 dark:border-green-500 dark:text-green-500 dark:hover:text-white dark:hover:bg-green-600 dark:focus:ring-green-800',
56
56
  red: 'text-red-700 hover:text-white border border-red-700 hover:bg-red-800 focus:ring-red-300 dark:border-red-500 dark:text-red-500 dark:hover:text-white dark:hover:bg-red-600 dark:focus:ring-red-900',
@@ -78,7 +78,7 @@ const hasBorder = () => outline || color === 'alternative' || color === 'light';
78
78
  let buttonClass;
79
79
  $: buttonClass = btnClass
80
80
  ? btnClass
81
- : classNames('text-center font-medium', group ? 'focus:ring-2' : 'focus:ring-4', group && 'focus:z-10', !group || color === 'alternative' || (outline && color === 'dark') || 'focus:outline-none', outline && gradient ? 'p-0.5' : 'inline-flex items-center justify-center ' + sizeClasses[size], gradient ? gradientClasses[color] : outline ? outlineClasses[color] : colorClasses[color], color === 'alternative' &&
81
+ : classNames('text-center font-medium', group ? 'focus:ring-2' : 'focus:ring-4', group && 'focus:z-10', group || 'focus:outline-none', outline && gradient ? 'p-0.5' : 'inline-flex items-center justify-center ' + sizeClasses[size], gradient ? gradientClasses[color] : outline ? outlineClasses[color] : colorClasses[color], color === 'alternative' &&
82
82
  (group
83
83
  ? 'dark:bg-gray-700 dark:text-white dark:border-gray-700 dark:hover:border-gray-600 dark:hover:bg-gray-600'
84
84
  : 'dark:bg-transparent dark:border-gray-800 dark:hover:border-gray-700'), outline &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.28.3",
3
+ "version": "0.28.4",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -1,11 +1,11 @@
1
1
  <script>import Popper from '../utils/Popper.svelte';
2
2
  import classNames from 'classnames';
3
- export let style = 'auto';
3
+ export let style = 'dark';
4
4
  export let defaultClass = 'py-2 px-3 text-sm font-medium';
5
5
  const styles = {
6
- dark: 'border-gray-800 bg-gray-900 text-white dark:bg-gray-700 dark:border-gray-600',
7
- light: 'border-gray-200 bg-white text-gray-900',
8
- auto: 'border-gray-200 bg-white text-gray-900 dark:bg-gray-700 dark:text-white dark:border-gray-600',
6
+ dark: 'bg-gray-900 text-white dark:bg-gray-700',
7
+ light: 'border border-gray-200 bg-white text-gray-900',
8
+ auto: ' bg-white text-gray-900 dark:bg-gray-700 dark:text-white border border-gray-200 dark:border-0',
9
9
  custom: ''
10
10
  };
11
11
  let toolTipClass;
@@ -18,6 +18,6 @@ $: {
18
18
  }
19
19
  </script>
20
20
 
21
- <Popper data-tooltip rounded border shadow {...$$restProps} class={toolTipClass} on:show>
21
+ <Popper data-tooltip rounded shadow {...$$restProps} class={toolTipClass} on:show>
22
22
  <slot />
23
23
  </Popper>
@@ -134,6 +134,6 @@ function optional(pred, func) {
134
134
  {...$$restProps}
135
135
  class={classNames('z-10 outline-none', $$props.class)}>
136
136
  <slot />
137
- {#if arrow}<div data-popper-arrow class="tooltip-arrow border dark:border-gray-100" />{/if}
137
+ {#if arrow}<div data-popper-arrow class="tooltip-arrow" />{/if}
138
138
  </Frame>
139
139
  {/if}