flowbite-svelte 0.46.21 → 0.46.22
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.
|
@@ -31,7 +31,6 @@ let background = getContext("background");
|
|
|
31
31
|
@component
|
|
32
32
|
[Go to docs](https://flowbite-svelte.com/)
|
|
33
33
|
## Props
|
|
34
|
-
@prop export let name: $$Props['name'] = undefined;
|
|
35
34
|
@prop export let color: NonNullable<$$Props['color']> = 'primary';
|
|
36
35
|
@prop export let custom: NonNullable<$$Props['custom']> = false;
|
|
37
36
|
@prop export let inline: NonNullable<$$Props['inline']> = false;
|
|
@@ -42,7 +42,6 @@ export type CheckboxSlots = typeof __propDef.slots;
|
|
|
42
42
|
/**
|
|
43
43
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
44
44
|
* ## Props
|
|
45
|
-
* @prop export let name: $$Props['name'] = undefined;
|
|
46
45
|
* @prop export let color: NonNullable<$$Props['color']> = 'primary';
|
|
47
46
|
* @prop export let custom: NonNullable<$$Props['custom']> = false;
|
|
48
47
|
* @prop export let inline: NonNullable<$$Props['inline']> = false;
|
package/dist/forms/Select.svelte
CHANGED
|
@@ -20,12 +20,13 @@ $: selectClass = twMerge(common, underline ? underlineClass : defaultClass, size
|
|
|
20
20
|
{#if placeholder}
|
|
21
21
|
<option disabled selected={(value === undefined) ? true : undefined} value="">{placeholder}</option>
|
|
22
22
|
{/if}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
{#if items && items.length > 0}
|
|
24
|
+
{#each items as { value: itemValue, name, disabled }}
|
|
25
|
+
<option disabled={disabled} value={itemValue} selected={(itemValue === value) ? true : undefined}>{name}</option>
|
|
26
|
+
{/each}
|
|
26
27
|
{:else}
|
|
27
28
|
<slot />
|
|
28
|
-
{/
|
|
29
|
+
{/if}
|
|
29
30
|
</select>
|
|
30
31
|
|
|
31
32
|
<!--
|
|
@@ -3,7 +3,7 @@ import type { HTMLSelectAttributes } from 'svelte/elements';
|
|
|
3
3
|
import type { SelectOptionType } from '../types';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: Omit<HTMLSelectAttributes, "size"> & {
|
|
6
|
-
items
|
|
6
|
+
items?: SelectOptionType<any>[];
|
|
7
7
|
value?: any;
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
underline?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
import type { FormColorType } from '../types';
|
|
3
3
|
declare const __propDef: {
|
|
4
|
-
props: import("svelte/elements").HTMLInputAttributes & {
|
|
4
|
+
props: Omit<import("svelte/elements").HTMLInputAttributes & {
|
|
5
5
|
color?: FormColorType;
|
|
6
6
|
custom?: boolean;
|
|
7
7
|
inline?: boolean;
|
|
@@ -14,7 +14,7 @@ declare const __propDef: {
|
|
|
14
14
|
groupInputClass?: string;
|
|
15
15
|
class?: string;
|
|
16
16
|
required?: boolean;
|
|
17
|
-
} & {
|
|
17
|
+
}, "size"> & {
|
|
18
18
|
size?: "small" | "default" | "large" | "custom";
|
|
19
19
|
group?: string[];
|
|
20
20
|
value?: string | number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.22",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"eslint": "^9.11.1",
|
|
29
29
|
"eslint-config-prettier": "^9.1.0",
|
|
30
30
|
"eslint-plugin-svelte": "^2.44.1",
|
|
31
|
-
"flowbite-svelte": "^0.46.
|
|
31
|
+
"flowbite-svelte": "^0.46.22",
|
|
32
32
|
"flowbite-svelte-blocks": "^1.1.3",
|
|
33
33
|
"flowbite-svelte-icons": "^1.6.1",
|
|
34
34
|
"mdsvex": "^0.12.3",
|