flowbite-svelte 0.26.15 → 0.26.16

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,20 @@
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.26.16](https://github.com/themesberg/flowbite-svelte/compare/v0.26.15...v0.26.16) (2022-09-06)
6
+
7
+
8
+ ### Features
9
+
10
+ * add offset position props to Drawer and example in the drawer page ([680d358](https://github.com/themesberg/flowbite-svelte/commit/680d358ef3d55df202ae2bcaf5deb9c3e6834c18))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * [#273](https://github.com/themesberg/flowbite-svelte/issues/273) remove number from select value type ([529510b](https://github.com/themesberg/flowbite-svelte/commit/529510bc50e561b544175a350390d7f32291727c))
16
+ * [#274](https://github.com/themesberg/flowbite-svelte/issues/274) change the links to singular for blocks components ([7378935](https://github.com/themesberg/flowbite-svelte/commit/73789353f4d598722db88cecb595303e8d60ac31))
17
+ * index blocks names, e.g. Tooltips to Tooltip ([5f902b2](https://github.com/themesberg/flowbite-svelte/commit/5f902b22043838a3e3413679632c9516ea81b906))
18
+
5
19
  ### [0.26.15](https://github.com/themesberg/flowbite-svelte/compare/v0.26.14...v0.26.15) (2022-09-06)
6
20
 
7
21
 
@@ -3,6 +3,10 @@ import { fly, slide, blur, fade } from 'svelte/transition';
3
3
  import { clickOutside } from '../utils/clickOutside';
4
4
  export let hidden = true;
5
5
  export let position = 'fixed';
6
+ export let leftOffset = 'inset-y-0 left-0';
7
+ export let rightOffset = 'inset-y-0right-0';
8
+ export let topOffset = 'inset-x-0 top-0';
9
+ export let bottomOffset = 'inset-x-0 bottom-0';
6
10
  export let width = 'w-80';
7
11
  export let backdrop = true;
8
12
  export let bgColor = 'bg-gray-900';
@@ -25,10 +29,10 @@ function multiple(node, params) {
25
29
  }
26
30
  }
27
31
  const placements = {
28
- left: 'inset-y-0 left-0',
29
- right: 'inset-y-0 right-0',
30
- top: 'inset-x-0 top-0',
31
- bottom: 'inset-x-0 bottom-0'
32
+ left: leftOffset,
33
+ right: rightOffset,
34
+ top: topOffset,
35
+ bottom: bottomOffset
32
36
  };
33
37
  const handleDrawer = () => {
34
38
  hidden = !hidden;
@@ -5,6 +5,10 @@ declare const __propDef: {
5
5
  [x: string]: any;
6
6
  hidden?: boolean;
7
7
  position?: 'fixed' | 'absolute';
8
+ leftOffset?: string;
9
+ rightOffset?: string;
10
+ topOffset?: string;
11
+ bottomOffset?: string;
8
12
  width?: string;
9
13
  backdrop?: boolean;
10
14
  bgColor?: string;
@@ -17,9 +17,9 @@ $: selectClass = classNames(common, underline ? underlineClass : defaultClass, s
17
17
  </script>
18
18
 
19
19
  <select {...$$restProps} bind:value class={selectClass} on:change on:input>
20
- <option disabled selected value="">{placeholder}</option>
20
+ <option disabled selected value="">{placeholder}</option>
21
21
 
22
- {#each items as { value, name }}
23
- <option {value}>{name}</option>
24
- {/each}
22
+ {#each items as { value, name }}
23
+ <option {value}>{name}</option>
24
+ {/each}
25
25
  </select>
@@ -4,7 +4,7 @@ declare const __propDef: {
4
4
  props: {
5
5
  [x: string]: any;
6
6
  items?: SelectOptionType[];
7
- value: string | number;
7
+ value: string;
8
8
  placeholder?: string;
9
9
  underline?: boolean;
10
10
  size?: 'sm' | 'md' | 'lg';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowbite-svelte",
3
- "version": "0.26.15",
3
+ "version": "0.26.16",
4
4
  "description": "Flowbite components for Svelte",
5
5
  "main": "index.js",
6
6
  "author": {