flowbite-svelte 0.21.5 → 0.21.6
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 +8 -0
- package/forms/FloatingLabelInput.svelte +1 -2
- package/forms/FloatingLabelInput.svelte.d.ts +0 -1
- package/forms/Radio.svelte +1 -1
- package/forms/Range.svelte +1 -1
- package/forms/Search.svelte +14 -2
- package/forms/Select.svelte +1 -1
- package/forms/SimpleSearch.svelte +1 -1
- package/forms/VoiceSearch.svelte +1 -1
- package/package.json +1 -1
- package/sidebars/Sidebar.svelte +1 -1
- package/sidebars/SidebarBrand.svelte +1 -1
- package/sidebars/SidebarCta.svelte +1 -1
- package/sidebars/SidebarDropdownItem.svelte +1 -1
- package/sidebars/SidebarDropdownWrapper.svelte +1 -1
- package/sidebars/SidebarGroup.svelte +1 -1
- package/sidebars/SidebarItem.svelte +1 -2
- package/sidebars/SidebarItem.svelte.d.ts +0 -1
- package/sidebars/SidebarWrapper.svelte +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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.21.6](https://github.com/themesberg/flowbite-svelte/compare/v0.21.5...v0.21.6) (2022-07-16)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* links in form index ([1149aa2](https://github.com/themesberg/flowbite-svelte/commit/1149aa2f7411ceb9a3e29ce3c6c3d446634f09a9))
|
|
11
|
+
* sidebars and forms {...$$restProps} position updates ([d983225](https://github.com/themesberg/flowbite-svelte/commit/d983225a4e4c7526bf7bee3a7cd51ecc6035bba8))
|
|
12
|
+
|
|
5
13
|
### [0.21.5](https://github.com/themesberg/flowbite-svelte/compare/v0.21.4...v0.21.5) (2022-07-16)
|
|
6
14
|
|
|
7
15
|
|
|
@@ -3,7 +3,6 @@ export let id = generateId();
|
|
|
3
3
|
export let type;
|
|
4
4
|
export let value = '';
|
|
5
5
|
export let label = '';
|
|
6
|
-
export let required = false;
|
|
7
6
|
export let divClass = 'relative z-0 mb-6 w-full group';
|
|
8
7
|
export let inputClass = 'block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer';
|
|
9
8
|
export let labelClass = 'absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6';
|
|
@@ -13,6 +12,6 @@ function setType(node) {
|
|
|
13
12
|
</script>
|
|
14
13
|
|
|
15
14
|
<div class={divClass}>
|
|
16
|
-
<input bind:value use:setType class={inputClass} placeholder=" "
|
|
15
|
+
<input {...$$restProps} bind:value use:setType class={inputClass} placeholder=" " />
|
|
17
16
|
<label for={id} class={labelClass}>{label}</label>
|
|
18
17
|
</div>
|
package/forms/Radio.svelte
CHANGED
|
@@ -42,6 +42,7 @@ else {
|
|
|
42
42
|
<div class="flex">
|
|
43
43
|
<div class={divHelperClass}>
|
|
44
44
|
<input
|
|
45
|
+
{...$$restProps}
|
|
45
46
|
bind:group
|
|
46
47
|
{id}
|
|
47
48
|
type="radio"
|
|
@@ -51,7 +52,6 @@ else {
|
|
|
51
52
|
aria-labelledby={id}
|
|
52
53
|
aria-describedby={id}
|
|
53
54
|
{disabled}
|
|
54
|
-
{...$$restProps}
|
|
55
55
|
/>
|
|
56
56
|
</div>
|
|
57
57
|
<div class="ml-2 text-sm">
|
package/forms/Range.svelte
CHANGED
package/forms/Search.svelte
CHANGED
|
@@ -9,9 +9,21 @@ export let placeholder = 'Search';
|
|
|
9
9
|
<label for={id} class={labelClass}>Search</label>
|
|
10
10
|
<div class="relative">
|
|
11
11
|
<div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
|
|
12
|
-
<svg
|
|
12
|
+
<svg
|
|
13
|
+
class="w-5 h-5 text-gray-500 dark:text-gray-400"
|
|
14
|
+
fill="none"
|
|
15
|
+
stroke="currentColor"
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
18
|
+
><path
|
|
19
|
+
stroke-linecap="round"
|
|
20
|
+
stroke-linejoin="round"
|
|
21
|
+
stroke-width="2"
|
|
22
|
+
d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
|
|
23
|
+
/></svg
|
|
24
|
+
>
|
|
13
25
|
</div>
|
|
14
|
-
<input type="search" {id} class={inputClass} {placeholder}
|
|
26
|
+
<input {...$$restProps} type="search" {id} class={inputClass} {placeholder} />
|
|
15
27
|
<button type="submit" class={btnClass}>Search</button>
|
|
16
28
|
</div>
|
|
17
29
|
</form>
|
package/forms/Select.svelte
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
export let selectClass = 'bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500';
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
|
-
<select bind:value class={selectClass}
|
|
5
|
+
<select {...$$restProps} bind:value class={selectClass} on:change>
|
|
6
6
|
<slot />
|
|
7
7
|
</select>
|
|
@@ -23,7 +23,7 @@ export let placeholder = 'Search';
|
|
|
23
23
|
/></svg
|
|
24
24
|
>
|
|
25
25
|
</div>
|
|
26
|
-
<input type="text" {id} class={inputClass} {placeholder}
|
|
26
|
+
<input {...$$restProps} type="text" {id} class={inputClass} {placeholder} />
|
|
27
27
|
</div>
|
|
28
28
|
<button type="submit" class={btnClass}
|
|
29
29
|
><svg
|
package/forms/VoiceSearch.svelte
CHANGED
|
@@ -30,7 +30,7 @@ const handleVoiceBtn = () => {
|
|
|
30
30
|
/></svg
|
|
31
31
|
>
|
|
32
32
|
</div>
|
|
33
|
-
<input type="text" {id} class={inputClass} {placeholder}
|
|
33
|
+
<input {...$$restProps} type="text" {id} class={inputClass} {placeholder} />
|
|
34
34
|
<button type="button" class={voiceBtnClass} on:click={handleVoiceBtn}>
|
|
35
35
|
<svg
|
|
36
36
|
class={voiceIconClass}
|
package/package.json
CHANGED
package/sidebars/Sidebar.svelte
CHANGED
|
@@ -5,7 +5,7 @@ export let imgClass = 'h-6 mr-3 sm:h-7';
|
|
|
5
5
|
export let spanClass = 'self-center text-xl font-semibold whitespace-nowrap dark:text-white';
|
|
6
6
|
</script>
|
|
7
7
|
|
|
8
|
-
<a href={site.href} class={classNames(aClass, $$props.class)}
|
|
8
|
+
<a {...$$restProps} href={site.href} class={classNames(aClass, $$props.class)}>
|
|
9
9
|
<img src={site.img} class={imgClass} alt={site.name} />
|
|
10
10
|
<span class={spanClass}>{site.name}</span>
|
|
11
11
|
</a>
|
|
@@ -15,10 +15,10 @@ const handleDropdown = () => {
|
|
|
15
15
|
|
|
16
16
|
<li>
|
|
17
17
|
<button
|
|
18
|
+
{...$$restProps}
|
|
18
19
|
on:click={() => handleDropdown()}
|
|
19
20
|
type="button"
|
|
20
21
|
class={classNames(btnClass, $$props.class)}
|
|
21
|
-
{...$$restProps}
|
|
22
22
|
aria-controls="sidebar-dropdown"
|
|
23
23
|
>
|
|
24
24
|
<svelte:component
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
<script>import classNames from 'classnames';
|
|
2
2
|
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
3
|
export let href = '';
|
|
4
|
-
export let rel = '';
|
|
5
4
|
export let label = '';
|
|
6
5
|
export let spanClass = 'ml-3';
|
|
7
6
|
export let icon;
|
|
8
7
|
</script>
|
|
9
8
|
|
|
10
9
|
<li>
|
|
11
|
-
<a {
|
|
10
|
+
<a {...$$restProps} {href} class={classNames(aClass, $$props.class)}>
|
|
12
11
|
<svelte:component
|
|
13
12
|
this={icon.name}
|
|
14
13
|
size={icon.size}
|