flowbite-svelte 0.29.6 → 0.29.8
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 +9 -0
- package/forms/Input.svelte +4 -4
- package/forms/Select.svelte.d.ts +1 -1
- package/package.json +1 -1
- package/types.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.29.8](https://github.com/themesberg/flowbite-svelte/compare/v0.29.7...v0.29.8) (2023-01-01)
|
|
6
|
+
|
|
7
|
+
### [0.29.7](https://github.com/themesberg/flowbite-svelte/compare/v0.29.6...v0.29.7) (2022-12-26)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* select types ([#508](https://github.com/themesberg/flowbite-svelte/issues/508)) ([3ea30a9](https://github.com/themesberg/flowbite-svelte/commit/3ea30a9d336187f36f63f559fbef3b0a7dde5f23))
|
|
13
|
+
|
|
5
14
|
### [0.29.6](https://github.com/themesberg/flowbite-svelte/compare/v0.29.5...v0.29.6) (2022-12-26)
|
|
6
15
|
|
|
7
16
|
|
package/forms/Input.svelte
CHANGED
|
@@ -25,8 +25,8 @@ const ringClasses = {
|
|
|
25
25
|
const colorClasses = {
|
|
26
26
|
base: 'bg-gray-50 text-gray-900 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400',
|
|
27
27
|
tinted: 'bg-gray-50 text-gray-900 dark:bg-gray-600 dark:text-white dark:placeholder-gray-400',
|
|
28
|
-
green: 'bg-green-50 text-green-900 placeholder-green-700 dark:bg-gray-700',
|
|
29
|
-
red: 'bg-red-50 text-red-900 placeholder-red-700 dark:bg-gray-700'
|
|
28
|
+
green: 'bg-green-50 text-green-900 placeholder-green-700 dark:placeholder-green-500 dark:bg-gray-700',
|
|
29
|
+
red: 'bg-red-50 text-red-900 placeholder-red-700 dark:placeholder-red-500 dark:bg-gray-700'
|
|
30
30
|
};
|
|
31
31
|
// tinted if put in component having its own background
|
|
32
32
|
let background = getContext('background');
|
|
@@ -50,12 +50,12 @@ $: {
|
|
|
50
50
|
const _color = color === 'base' && background ? 'tinted' : color;
|
|
51
51
|
inputClass = classNames(defaultClass, $$slots.left && leftPadding[_size], $$slots.right && rightPadding[_size], ringClasses[color], colorClasses[_color], borderClasses[_color], inputPadding[_size], textSizes[_size], group || 'rounded-lg', group && 'first:rounded-l-lg last:rounded-r-lg', group && 'border-l-0 first:border-l last:border-r', $$props.class);
|
|
52
52
|
}
|
|
53
|
-
let floatClass = 'flex absolute inset-y-0 items-center
|
|
53
|
+
let floatClass = 'flex absolute inset-y-0 items-center text-gray-500 dark:text-gray-400';
|
|
54
54
|
</script>
|
|
55
55
|
|
|
56
56
|
<Wrapper class="relative w-full" show={$$slots.left || $$slots.right}>
|
|
57
57
|
{#if $$slots.left}
|
|
58
|
-
<div class="{floatClass} left-0 pl-2.5"><slot name="left" /></div>
|
|
58
|
+
<div class="{floatClass} left-0 pl-2.5 pointer-events-none"><slot name="left" /></div>
|
|
59
59
|
{/if}
|
|
60
60
|
<slot props={{ ...$$restProps, class: inputClass }}>
|
|
61
61
|
<input
|
package/forms/Select.svelte.d.ts
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -139,8 +139,8 @@ export type ReviewType = {
|
|
|
139
139
|
item3: string | undefined;
|
|
140
140
|
};
|
|
141
141
|
export type SelectOptionType = {
|
|
142
|
-
name: string;
|
|
143
|
-
value: string;
|
|
142
|
+
name: string | number;
|
|
143
|
+
value: string | number;
|
|
144
144
|
};
|
|
145
145
|
export type SidebarType = {
|
|
146
146
|
id: number;
|