flowbite-svelte 0.27.2 → 0.27.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
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.3](https://github.com/themesberg/flowbite-svelte/compare/v0.27.2...v0.27.3) (2022-09-26)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * change a to A component ([33a8015](https://github.com/themesberg/flowbite-svelte/commit/33a8015ae3e7b3969359bcd67ba47bb53c7f7dad))
11
+ * correction in using style and color ([7ebbc5f](https://github.com/themesberg/flowbite-svelte/commit/7ebbc5fcac75fea0f9c19c51b6ea5dc8dfb241c8))
12
+ * remove workflows/release-please.yml ([30a3682](https://github.com/themesberg/flowbite-svelte/commit/30a3682d3652e779e5e4325edbf7b66ad02a8428))
13
+ * style for links ([040ff2e](https://github.com/themesberg/flowbite-svelte/commit/040ff2ea183d21836e8f3e5dddb5879cf9324a69))
14
+
5
15
  ### [0.27.2](https://github.com/themesberg/flowbite-svelte/compare/v0.27.1...v0.27.2) (2022-09-26)
6
16
 
7
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.27.2",
3
+ "version": "0.27.3",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {
@@ -1,26 +1,24 @@
1
1
  <script>import Popper from '../utils/Popper.svelte';
2
2
  import classNames from 'classnames';
3
- export let customColor = '';
4
3
  export let style = 'auto';
5
- export let tipClass = 'py-2 px-3 text-sm font-medium';
6
- const colors = {
4
+ export let defaultClass = 'py-2 px-3 text-sm font-medium';
5
+ const styles = {
7
6
  dark: 'border-gray-800 bg-gray-900 text-white dark:bg-gray-700 dark:border-gray-600',
8
7
  light: 'border-gray-200 bg-white text-gray-900',
9
8
  auto: 'border-gray-200 bg-white text-gray-900 dark:bg-gray-700 dark:text-white dark:border-gray-600',
10
- custom: customColor
9
+ custom: ''
11
10
  };
12
11
  let toolTipClass;
13
- $: toolTipClass = classNames('tooltip', tipClass, colors[style], $$props.class);
12
+ $: {
13
+ $$restProps.color || (style = 'custom');
14
+ if ($$restProps.color)
15
+ style = 'custom';
16
+ else
17
+ $$restProps.color = 'none';
18
+ toolTipClass = classNames('tooltip', defaultClass, styles[style], $$props.class);
19
+ }
14
20
  </script>
15
21
 
16
- <Popper
17
- data-tooltip
18
- rounded
19
- border
20
- shadow
21
- customColor
22
- {...$$restProps}
23
- class={toolTipClass}
24
- on:show>
22
+ <Popper data-tooltip rounded border shadow {...$$restProps} class={toolTipClass} on:show>
25
23
  <slot />
26
24
  </Popper>
@@ -2,9 +2,8 @@ import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  [x: string]: any;
5
- customColor?: string | undefined;
6
5
  style?: "dark" | "light" | "custom" | "auto" | undefined;
7
- tipClass?: string | undefined;
6
+ defaultClass?: string | undefined;
8
7
  };
9
8
  events: {
10
9
  show: CustomEvent<any>;