flowbite-svelte 0.29.5 → 0.29.7
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 +19 -0
- package/forms/Input.svelte +1 -0
- package/forms/Input.svelte.d.ts +1 -0
- package/forms/Select.svelte +1 -1
- package/forms/Select.svelte.d.ts +2 -1
- package/forms/Textarea.svelte +1 -0
- package/forms/Textarea.svelte.d.ts +1 -0
- package/package.json +1 -1
- package/paginations/Pagination.svelte +4 -2
- package/paginations/PaginationItem.svelte +1 -1
- package/tables/TableBodyRow.svelte +1 -1
- package/tables/TableBodyRow.svelte.d.ts +1 -0
- package/tabs/TabItem.svelte +1 -0
- package/tabs/TabItem.svelte.d.ts +1 -0
- package/types.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
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.7](https://github.com/themesberg/flowbite-svelte/compare/v0.29.6...v0.29.7) (2022-12-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* select types ([#508](https://github.com/themesberg/flowbite-svelte/issues/508)) ([3ea30a9](https://github.com/themesberg/flowbite-svelte/commit/3ea30a9d336187f36f63f559fbef3b0a7dde5f23))
|
|
11
|
+
|
|
12
|
+
### [0.29.6](https://github.com/themesberg/flowbite-svelte/compare/v0.29.5...v0.29.6) (2022-12-26)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* add on:contextmenu ([#506](https://github.com/themesberg/flowbite-svelte/issues/506)) ([75ad596](https://github.com/themesberg/flowbite-svelte/commit/75ad59695188e36e0af52487e041c15a7b6fd845))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* pagination for darkmode ([#507](https://github.com/themesberg/flowbite-svelte/issues/507)) ([9175627](https://github.com/themesberg/flowbite-svelte/commit/917562790bc05a1a0679c11266ee7d23531c865f))
|
|
23
|
+
|
|
5
24
|
### [0.29.5](https://github.com/themesberg/flowbite-svelte/compare/v0.29.4...v0.29.5) (2022-12-22)
|
|
6
25
|
|
|
7
26
|
### [0.29.4](https://github.com/themesberg/flowbite-svelte/compare/v0.29.3...v0.29.4) (2022-12-22)
|
package/forms/Input.svelte
CHANGED
package/forms/Input.svelte.d.ts
CHANGED
package/forms/Select.svelte
CHANGED
|
@@ -16,7 +16,7 @@ let selectClass;
|
|
|
16
16
|
$: selectClass = classNames(common, underline ? underlineClass : defaultClass, sizes[size], underline && '!px-0', $$restProps.class);
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
|
-
<select {...$$restProps} bind:value class={selectClass} on:change on:input>
|
|
19
|
+
<select {...$$restProps} bind:value class={selectClass} on:change on:contextmenu on:input>
|
|
20
20
|
<option disabled selected value="">{placeholder}</option>
|
|
21
21
|
|
|
22
22
|
{#each items as { value, name }}
|
package/forms/Select.svelte.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
items?: SelectOptionType[] | undefined;
|
|
7
|
-
value: string;
|
|
7
|
+
value: string | number;
|
|
8
8
|
placeholder?: string | undefined;
|
|
9
9
|
underline?: boolean | undefined;
|
|
10
10
|
size?: "sm" | "md" | "lg" | undefined;
|
|
@@ -13,6 +13,7 @@ declare const __propDef: {
|
|
|
13
13
|
};
|
|
14
14
|
events: {
|
|
15
15
|
change: Event;
|
|
16
|
+
contextmenu: MouseEvent;
|
|
16
17
|
input: Event;
|
|
17
18
|
} & {
|
|
18
19
|
[evt: string]: CustomEvent<any>;
|
package/forms/Textarea.svelte
CHANGED
package/package.json
CHANGED
|
@@ -20,7 +20,9 @@ const next = () => {
|
|
|
20
20
|
<nav aria-label="Page navigation">
|
|
21
21
|
<ul class={classNames(ulClass, table && 'divide-x divide-gray-700', $$props.class)}>
|
|
22
22
|
<li>
|
|
23
|
-
<PaginationItem
|
|
23
|
+
<PaginationItem
|
|
24
|
+
on:click={previous}
|
|
25
|
+
class={classNames(normalClass, table ? 'rounded-l' : 'rounded-l-lg')}>
|
|
24
26
|
<slot name="prev">Previous</slot>
|
|
25
27
|
</PaginationItem>
|
|
26
28
|
</li>
|
|
@@ -44,7 +46,7 @@ const next = () => {
|
|
|
44
46
|
</li>
|
|
45
47
|
{/each}
|
|
46
48
|
<li>
|
|
47
|
-
<PaginationItem on:click={next} class={table ? 'rounded-r' : 'rounded-r-lg'}>
|
|
49
|
+
<PaginationItem on:click={next} class={classNames(normalClass, table ? 'rounded-r' : 'rounded-r-lg')}>
|
|
48
50
|
<slot name="next">Next</slot>
|
|
49
51
|
</PaginationItem>
|
|
50
52
|
</li>
|
|
@@ -3,7 +3,7 @@ import { getContext, onMount } from 'svelte';
|
|
|
3
3
|
export let href = undefined;
|
|
4
4
|
export let active = false;
|
|
5
5
|
export let activeClass = '';
|
|
6
|
-
export let normalClass = '';
|
|
6
|
+
export let normalClass = 'text-gray-500 bg-white hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white';
|
|
7
7
|
const group = getContext('group');
|
|
8
8
|
const table = getContext('table');
|
|
9
9
|
let defaultClass;
|
|
@@ -34,6 +34,6 @@ let trClassfinal;
|
|
|
34
34
|
$: trClassfinal = classNames(getContext('noborder') ? 'bg-white dark:bg-gray-800' : trClass, colors[color], getContext('hoverable') && hoverColors[color], getContext('striped') && stripColors[color], $$props.class);
|
|
35
35
|
</script>
|
|
36
36
|
|
|
37
|
-
<tr {...$$restProps} class={trClassfinal} on:click>
|
|
37
|
+
<tr {...$$restProps} class={trClassfinal} on:click on:contextmenu>
|
|
38
38
|
<slot />
|
|
39
39
|
</tr>
|
package/tabs/TabItem.svelte
CHANGED
package/tabs/TabItem.svelte.d.ts
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;
|