flowbite-svelte 0.46.17 → 0.46.18
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/README.md +0 -1
- package/dist/forms/Helper.svelte +1 -1
- package/dist/forms/Label.svelte +1 -1
- package/dist/forms/MultiSelect.svelte +18 -8
- package/dist/forms/MultiSelect.svelte.d.ts +2 -0
- package/dist/forms/Select.svelte +2 -2
- package/dist/sidebar/SidebarItem.svelte +6 -1
- package/dist/sidebar/SidebarItem.svelte.d.ts +5 -0
- package/dist/types.d.ts +1 -0
- package/dist/typography/A.svelte +6 -1
- package/dist/typography/A.svelte.d.ts +5 -0
- package/dist/utils/focusTrap.js +3 -1
- package/package.json +18 -17
package/README.md
CHANGED
|
@@ -468,7 +468,6 @@ Please read [how to contribute](https://github.com/themesberg/flowbite-svelte/bl
|
|
|
468
468
|
|
|
469
469
|
View the full [changelog](https://github.com/themesberg/flowbite-svelte/blob/main/CHANGELOG.md) on this page.
|
|
470
470
|
|
|
471
|
-
|
|
472
471
|
## License
|
|
473
472
|
|
|
474
473
|
Flowbite Svelte is open-source under the [MIT License](https://flowbite-svelte.com/docs/pages/license).
|
package/dist/forms/Helper.svelte
CHANGED
|
@@ -5,7 +5,7 @@ const colorClasses = {
|
|
|
5
5
|
gray: "text-gray-900 dark:text-gray-300",
|
|
6
6
|
green: "text-green-700 dark:text-green-500",
|
|
7
7
|
red: "text-red-700 dark:text-red-500",
|
|
8
|
-
disabled: "text-gray-400 dark:text-gray-500"
|
|
8
|
+
disabled: "text-gray-400 dark:text-gray-500 grayscale contrast-50"
|
|
9
9
|
};
|
|
10
10
|
</script>
|
|
11
11
|
|
package/dist/forms/Label.svelte
CHANGED
|
@@ -7,7 +7,7 @@ const colorClasses = {
|
|
|
7
7
|
gray: "text-gray-900 dark:text-gray-300",
|
|
8
8
|
green: "text-green-700 dark:text-green-500",
|
|
9
9
|
red: "text-red-700 dark:text-red-500",
|
|
10
|
-
disabled: "text-gray-400 dark:text-gray-500"
|
|
10
|
+
disabled: "text-gray-400 dark:text-gray-500 grayscale contrast-50"
|
|
11
11
|
};
|
|
12
12
|
$: {
|
|
13
13
|
const control = node?.control;
|
|
@@ -8,6 +8,7 @@ export let value = [];
|
|
|
8
8
|
export let size = "md";
|
|
9
9
|
export let dropdownClass = "";
|
|
10
10
|
export let placeholder = "";
|
|
11
|
+
export let disabled = false;
|
|
11
12
|
$: selectItems = items.filter((x) => value.includes(x.value));
|
|
12
13
|
let show = false;
|
|
13
14
|
const sizes = {
|
|
@@ -15,7 +16,7 @@ const sizes = {
|
|
|
15
16
|
md: "px-3 py-1 min-h-[2.7rem]",
|
|
16
17
|
lg: "px-4 py-2 min-h-[3.2rem]"
|
|
17
18
|
};
|
|
18
|
-
const multiSelectClass = "relative border border-gray-300 flex items-center rounded-lg gap-2 dark:border-gray-600
|
|
19
|
+
const multiSelectClass = "relative border border-gray-300 flex items-center rounded-lg gap-2 dark:border-gray-600 ring-primary-500 dark:ring-primary-500 focus-visible:outline-none";
|
|
19
20
|
let multiSelectDropdown;
|
|
20
21
|
$: multiSelectDropdown = twMerge("absolute z-50 p-3 flex flex-col gap-1 max-h-64 bg-white border border-gray-300 dark:bg-gray-700 dark:border-gray-600 start-0 top-[calc(100%+1rem)] rounded-lg cursor-pointer overflow-y-scroll w-full", dropdownClass);
|
|
21
22
|
const itemsClass = "py-2 px-3 rounded-lg text-gray-600 hover:text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:text-gray-300 dark:hover:bg-gray-600";
|
|
@@ -24,6 +25,8 @@ let activeIndex = null;
|
|
|
24
25
|
$: activeItem = activeIndex !== null ? items[(activeIndex % items.length + items.length) % items.length] : null;
|
|
25
26
|
const activeItemClass = "bg-primary-100 text-primary-500 dark:bg-primary-500 dark:text-primary-100 hover:bg-primary-100 dark:hover:bg-primary-500 hover:text-primary-600 dark:hover:text-primary-100";
|
|
26
27
|
const selectOption = (select) => {
|
|
28
|
+
if (disabled) return;
|
|
29
|
+
if (select.disabled) return;
|
|
27
30
|
if (value.includes(select.value)) {
|
|
28
31
|
clearThisOption(select);
|
|
29
32
|
} else if (!value.includes(select.value)) {
|
|
@@ -32,22 +35,26 @@ const selectOption = (select) => {
|
|
|
32
35
|
}
|
|
33
36
|
};
|
|
34
37
|
const clearAll = (e) => {
|
|
38
|
+
if (disabled) return;
|
|
35
39
|
e.stopPropagation();
|
|
36
40
|
value = [];
|
|
37
41
|
dispatcher("change");
|
|
38
42
|
};
|
|
39
43
|
const clearThisOption = (select) => {
|
|
44
|
+
if (disabled) return;
|
|
40
45
|
if (value.includes(select.value)) {
|
|
41
46
|
value = value.filter((o) => o !== select.value);
|
|
42
47
|
dispatcher("change");
|
|
43
48
|
}
|
|
44
49
|
};
|
|
45
50
|
function handleEscape() {
|
|
51
|
+
if (disabled) return;
|
|
46
52
|
if (show) {
|
|
47
53
|
show = false;
|
|
48
54
|
}
|
|
49
55
|
}
|
|
50
56
|
function handleToggleActiveItem() {
|
|
57
|
+
if (disabled) return;
|
|
51
58
|
if (!show) {
|
|
52
59
|
show = true;
|
|
53
60
|
activeIndex = 0;
|
|
@@ -56,6 +63,7 @@ function handleToggleActiveItem() {
|
|
|
56
63
|
}
|
|
57
64
|
}
|
|
58
65
|
function handleArrowUpDown(offset) {
|
|
66
|
+
if (disabled) return;
|
|
59
67
|
if (!show) {
|
|
60
68
|
show = true;
|
|
61
69
|
activeIndex = 0;
|
|
@@ -68,6 +76,7 @@ function handleArrowUpDown(offset) {
|
|
|
68
76
|
}
|
|
69
77
|
}
|
|
70
78
|
function handleKeyDown(event) {
|
|
79
|
+
if (disabled) return;
|
|
71
80
|
switch (event.key) {
|
|
72
81
|
case "Escape":
|
|
73
82
|
handleEscape();
|
|
@@ -92,12 +101,12 @@ function handleKeyDown(event) {
|
|
|
92
101
|
|
|
93
102
|
<!-- Hidden select for form submission -->
|
|
94
103
|
<select {...$$restProps} {value} hidden multiple on:input>
|
|
95
|
-
{#each items as { value, name }}
|
|
96
|
-
<option {value}>{name}</option>
|
|
104
|
+
{#each items as { value, name, disabled }}
|
|
105
|
+
<option {value} {disabled}>{name}</option>
|
|
97
106
|
{/each}
|
|
98
107
|
</select>
|
|
99
108
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
100
|
-
<div on:click
|
|
109
|
+
<div on:click={() => !disabled && (show = !show)} on:focusout={() => !disabled && (show = false)} on:keydown={handleKeyDown} tabindex="0" role="listbox" class={twMerge(multiSelectClass, sizes[size], $$props.class, !disabled && "focus-within:ring-1 focus-within:border-primary-500 dark:focus-within:border-primary-500", disabled && "opacity-50 cursor-not-allowed")}>
|
|
101
110
|
{#if !selectItems.length}
|
|
102
111
|
<span class="text-gray-400">{placeholder}</span>
|
|
103
112
|
{/if}
|
|
@@ -105,7 +114,7 @@ function handleKeyDown(event) {
|
|
|
105
114
|
{#if selectItems.length}
|
|
106
115
|
{#each selectItems as item (item.name)}
|
|
107
116
|
<slot {item} clear={() => clearThisOption(item)}>
|
|
108
|
-
<Badge color="dark" large={size === 'lg'} dismissable params={{ duration: 100 }} on:close={() => clearThisOption(item)}>
|
|
117
|
+
<Badge color="dark" large={size === 'lg'} dismissable params={{ duration: 100 }} on:close={() => clearThisOption(item)} class={disabled && "pointer-events-none"} >
|
|
109
118
|
{item.name}
|
|
110
119
|
</Badge>
|
|
111
120
|
</slot>
|
|
@@ -114,10 +123,10 @@ function handleKeyDown(event) {
|
|
|
114
123
|
</span>
|
|
115
124
|
<div class="flex ms-auto gap-2 items-center">
|
|
116
125
|
{#if selectItems.length}
|
|
117
|
-
<CloseButton {size} on:click={clearAll} color="none" class="p-0 focus:ring-gray-400 dark:text-white" />
|
|
126
|
+
<CloseButton {size} on:click={clearAll} color="none" class={twMerge("p-0 focus:ring-gray-400 dark:text-white", disabled && "cursor-not-allowed")} disabled={disabled} />
|
|
118
127
|
{/if}
|
|
119
128
|
<div class="w-[1px] bg-gray-300 dark:bg-gray-600"></div>
|
|
120
|
-
<svg
|
|
129
|
+
<svg class={twMerge("cursor-pointer h-3 w-3 ms-1 text-gray-800 dark:text-white", disabled && "cursor-not-allowed")} aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 10 6">
|
|
121
130
|
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d={show ? 'm1 5 4-4 4 4' : 'm9 1-4 4-4-4'} />
|
|
122
131
|
</svg>
|
|
123
132
|
</div>
|
|
@@ -126,7 +135,7 @@ function handleKeyDown(event) {
|
|
|
126
135
|
<div on:click|stopPropagation role="presentation" class={multiSelectDropdown}>
|
|
127
136
|
{#each items as item (item.name)}
|
|
128
137
|
<!-- svelte-ignore a11y-click-events-have-key-events -->
|
|
129
|
-
<div on:click={() => selectOption(item)} role="presentation" class={twMerge(itemsClass, selectItems.includes(item) && itemsSelectClass, activeItem === item && activeItemClass)}>
|
|
138
|
+
<div on:click={() => selectOption(item)} role="presentation" class={twMerge(itemsClass, selectItems.includes(item) && itemsSelectClass, activeItem === item && activeItemClass, disabled && "pointer-events-none", item.disabled && "opacity-50 cursor-not-allowed")}>
|
|
130
139
|
{item.name}
|
|
131
140
|
</div>
|
|
132
141
|
{/each}
|
|
@@ -143,4 +152,5 @@ function handleKeyDown(event) {
|
|
|
143
152
|
@prop export let size: FormSizeType = 'md';
|
|
144
153
|
@prop export let dropdownClass: string = '';
|
|
145
154
|
@prop export let placeholder: string = '';
|
|
155
|
+
@prop export let disabled: boolean = false;
|
|
146
156
|
-->
|
|
@@ -8,6 +8,7 @@ declare const __propDef: {
|
|
|
8
8
|
size?: FormSizeType | undefined;
|
|
9
9
|
dropdownClass?: string | undefined;
|
|
10
10
|
placeholder?: string | undefined;
|
|
11
|
+
disabled?: boolean | undefined;
|
|
11
12
|
};
|
|
12
13
|
events: {
|
|
13
14
|
input: Event;
|
|
@@ -34,6 +35,7 @@ export type MultiSelectSlots = typeof __propDef.slots;
|
|
|
34
35
|
* @prop export let size: FormSizeType = 'md';
|
|
35
36
|
* @prop export let dropdownClass: string = '';
|
|
36
37
|
* @prop export let placeholder: string = '';
|
|
38
|
+
* @prop export let disabled: boolean = false;
|
|
37
39
|
*/
|
|
38
40
|
export default class MultiSelect extends SvelteComponentTyped<MultiSelectProps, MultiSelectEvents, MultiSelectSlots> {
|
|
39
41
|
}
|
package/dist/forms/Select.svelte
CHANGED
|
@@ -21,8 +21,8 @@ $: selectClass = twMerge(common, underline ? underlineClass : defaultClass, size
|
|
|
21
21
|
<option disabled selected={(value === undefined) ? true : undefined} value="">{placeholder}</option>
|
|
22
22
|
{/if}
|
|
23
23
|
|
|
24
|
-
{#each items as { value: itemValue, name }}
|
|
25
|
-
<option value={itemValue} selected={(itemValue === value) ? true : undefined}>{name}</option>
|
|
24
|
+
{#each items as { value: itemValue, name, disabled }}
|
|
25
|
+
<option disabled={disabled} value={itemValue} selected={(itemValue === value) ? true : undefined}>{name}</option>
|
|
26
26
|
{:else}
|
|
27
27
|
<slot />
|
|
28
28
|
{/each}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<script>import { getContext } from "svelte";
|
|
2
2
|
import { twMerge } from "tailwind-merge";
|
|
3
|
+
export let action = () => {
|
|
4
|
+
};
|
|
5
|
+
export let params = {};
|
|
3
6
|
export let href = "";
|
|
4
7
|
export let label = "";
|
|
5
8
|
export let spanClass = "ms-3";
|
|
@@ -16,7 +19,7 @@ $: aClass = twMerge(active ? activeClass ?? context.activeClass : nonActiveClass
|
|
|
16
19
|
</script>
|
|
17
20
|
|
|
18
21
|
<li>
|
|
19
|
-
<a {...$$restProps} {href} on:blur on:click on:focus on:keydown on:keypress on:keyup on:mouseenter on:mouseleave on:mouseover class={aClass}>
|
|
22
|
+
<a {...$$restProps} {href} use:action={params} on:blur on:click on:focus on:keydown on:keypress on:keyup on:mouseenter on:mouseleave on:mouseover class={aClass}>
|
|
20
23
|
<slot name="icon" />
|
|
21
24
|
<span class={spanClass}>{label}</span>
|
|
22
25
|
{#if $$slots.subtext}
|
|
@@ -29,6 +32,8 @@ $: aClass = twMerge(active ? activeClass ?? context.activeClass : nonActiveClass
|
|
|
29
32
|
@component
|
|
30
33
|
[Go to docs](https://flowbite-svelte.com/)
|
|
31
34
|
## Props
|
|
35
|
+
@prop export let action: Action<HTMLElement, any> = () => {};
|
|
36
|
+
@prop export let params: any = {};
|
|
32
37
|
@prop export let href: string = '';
|
|
33
38
|
@prop export let label: string = '';
|
|
34
39
|
@prop export let spanClass: string = 'ms-3';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Action } from 'svelte/action';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
[x: string]: any;
|
|
6
|
+
action?: Action<HTMLElement, any> | undefined;
|
|
7
|
+
params?: any;
|
|
5
8
|
href?: string | undefined;
|
|
6
9
|
label?: string | undefined;
|
|
7
10
|
spanClass?: string | undefined;
|
|
@@ -32,6 +35,8 @@ export type SidebarItemSlots = typeof __propDef.slots;
|
|
|
32
35
|
/**
|
|
33
36
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
34
37
|
* ## Props
|
|
38
|
+
* @prop export let action: Action<HTMLElement, any> = () => {};
|
|
39
|
+
* @prop export let params: any = {};
|
|
35
40
|
* @prop export let href: string = '';
|
|
36
41
|
* @prop export let label: string = '';
|
|
37
42
|
* @prop export let spanClass: string = 'ms-3';
|
package/dist/types.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export type ReviewType = {
|
|
|
46
46
|
export type SelectOptionType<T> = {
|
|
47
47
|
name: string | number;
|
|
48
48
|
value: T;
|
|
49
|
+
disabled?: boolean;
|
|
49
50
|
};
|
|
50
51
|
export type TransitionTypes = 'fade' | 'fly' | 'slide' | 'blur' | 'in:fly' | 'out:fly' | 'in:slide' | 'out:slide' | 'in:fade' | 'out:fade' | 'in:blur' | 'out:blur';
|
|
51
52
|
export interface ActivityType {
|
package/dist/typography/A.svelte
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
<script>import { twMerge } from "tailwind-merge";
|
|
2
|
+
export let action = () => {
|
|
3
|
+
};
|
|
4
|
+
export let params = {};
|
|
2
5
|
export let href = "#";
|
|
3
6
|
export let color = "text-primary-600 dark:text-primary-500";
|
|
4
7
|
export let aClass = "inline-flex items-center hover:underline";
|
|
5
8
|
</script>
|
|
6
9
|
|
|
7
|
-
<a {...$$restProps} {href} class={twMerge(aClass, color, $$props.class)} on:click>
|
|
10
|
+
<a {...$$restProps} {href} use:action={params} class={twMerge(aClass, color, $$props.class)} on:click>
|
|
8
11
|
<slot />
|
|
9
12
|
</a>
|
|
10
13
|
|
|
@@ -12,6 +15,8 @@ export let aClass = "inline-flex items-center hover:underline";
|
|
|
12
15
|
@component
|
|
13
16
|
[Go to docs](https://flowbite-svelte.com/)
|
|
14
17
|
## Props
|
|
18
|
+
@prop export let action: Action<HTMLElement, any> = () => {};
|
|
19
|
+
@prop export let params: any = {};
|
|
15
20
|
@prop export let href: string = '#';
|
|
16
21
|
@prop export let color: string = 'text-primary-600 dark:text-primary-500';
|
|
17
22
|
@prop export let aClass: string = 'inline-flex items-center hover:underline';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import type { Action } from 'svelte/action';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
[x: string]: any;
|
|
6
|
+
action?: Action<HTMLElement, any> | undefined;
|
|
7
|
+
params?: any;
|
|
5
8
|
href?: string | undefined;
|
|
6
9
|
color?: string | undefined;
|
|
7
10
|
aClass?: string | undefined;
|
|
@@ -21,6 +24,8 @@ export type ASlots = typeof __propDef.slots;
|
|
|
21
24
|
/**
|
|
22
25
|
* [Go to docs](https://flowbite-svelte.com/)
|
|
23
26
|
* ## Props
|
|
27
|
+
* @prop export let action: Action<HTMLElement, any> = () => {};
|
|
28
|
+
* @prop export let params: any = {};
|
|
24
29
|
* @prop export let href: string = '#';
|
|
25
30
|
* @prop export let color: string = 'text-primary-600 dark:text-primary-500';
|
|
26
31
|
* @prop export let aClass: string = 'inline-flex items-center hover:underline';
|
package/dist/utils/focusTrap.js
CHANGED
|
@@ -22,7 +22,9 @@ export default function focusTrap(node) {
|
|
|
22
22
|
|
|
23
23
|
const tabbable = Array.from(node.querySelectorAll(selectorTabbable)).filter((el) => el.hidden !== true);
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
const activeElement = document.activeElement && document.activeElement.shadowRoot ? document.activeElement.shadowRoot.activeElement : document.activeElement;
|
|
26
|
+
|
|
27
|
+
let index = tabbable.indexOf(activeElement ?? node);
|
|
26
28
|
if (index === -1 && e.shiftKey) index = 0;
|
|
27
29
|
index += tabbable.length + (e.shiftKey ? -1 : 1);
|
|
28
30
|
index %= tabbable.length;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowbite-svelte",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.18",
|
|
4
4
|
"description": "Flowbite components for Svelte",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": {
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"homepage": "https://flowbite-svelte.com/",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@changesets/cli": "^2.27.
|
|
15
|
+
"@changesets/cli": "^2.27.8",
|
|
16
16
|
"@docsearch/css": "^3.6.1",
|
|
17
17
|
"@docsearch/js": "^3.6.1",
|
|
18
|
-
"@playwright/test": "^1.
|
|
19
|
-
"@sveltejs/adapter-vercel": "^5.4.
|
|
20
|
-
"@sveltejs/kit": "^2.5.
|
|
18
|
+
"@playwright/test": "^1.47.2",
|
|
19
|
+
"@sveltejs/adapter-vercel": "^5.4.4",
|
|
20
|
+
"@sveltejs/kit": "^2.5.28",
|
|
21
21
|
"@sveltejs/package": "2.3.2",
|
|
22
22
|
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
|
23
23
|
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
|
|
@@ -25,31 +25,31 @@
|
|
|
25
25
|
"autoprefixer": "^10.4.20",
|
|
26
26
|
"dayjs": "^1.11.13",
|
|
27
27
|
"esbuild": "0.23.1",
|
|
28
|
-
"eslint": "^9.
|
|
28
|
+
"eslint": "^9.11.0",
|
|
29
29
|
"eslint-config-prettier": "^9.1.0",
|
|
30
|
-
"eslint-plugin-svelte": "^2.
|
|
31
|
-
"flowbite-svelte": "^0.46.
|
|
30
|
+
"eslint-plugin-svelte": "^2.44.0",
|
|
31
|
+
"flowbite-svelte": "^0.46.18",
|
|
32
32
|
"flowbite-svelte-blocks": "^1.1.3",
|
|
33
33
|
"flowbite-svelte-icons": "^1.6.1",
|
|
34
34
|
"mdsvex": "^0.12.3",
|
|
35
35
|
"mdsvexamples": "^0.4.1",
|
|
36
|
-
"postcss": "^8.4.
|
|
36
|
+
"postcss": "^8.4.47",
|
|
37
37
|
"prettier": "^3.3.3",
|
|
38
38
|
"prettier-plugin-svelte": "^3.2.6",
|
|
39
39
|
"prism-themes": "^1.9.0",
|
|
40
|
-
"publint": "^0.2.
|
|
40
|
+
"publint": "^0.2.11",
|
|
41
41
|
"svelte": "^4.2.19",
|
|
42
|
-
"svelte-check": "^4.0.
|
|
43
|
-
"svelte-lib-helpers": "^0.4.
|
|
42
|
+
"svelte-check": "^4.0.2",
|
|
43
|
+
"svelte-lib-helpers": "^0.4.8",
|
|
44
44
|
"svelte-meta-tags": "^3.1.4",
|
|
45
45
|
"svelte-preprocess": "^6.0.2",
|
|
46
|
-
"svelte2tsx": "^0.7.
|
|
46
|
+
"svelte2tsx": "^0.7.19",
|
|
47
47
|
"tailwind-merge": "^1.13.1",
|
|
48
|
-
"tailwindcss": "^3.4.
|
|
48
|
+
"tailwindcss": "^3.4.12",
|
|
49
49
|
"tslib": "^2.7.0",
|
|
50
|
-
"typescript": "^5.
|
|
50
|
+
"typescript": "^5.6.2",
|
|
51
51
|
"typescript-eslint": "8.4.0",
|
|
52
|
-
"vite": "^5.4.
|
|
52
|
+
"vite": "^5.4.7",
|
|
53
53
|
"vitest": "^1.6.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"url": "https://github.com/themesberg/flowbite-svelte"
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
|
-
"@floating-ui/dom": "^1.6.
|
|
102
|
+
"@floating-ui/dom": "^1.6.11",
|
|
103
103
|
"apexcharts": "^3.53.0",
|
|
104
104
|
"flowbite": "^2.5.1",
|
|
105
105
|
"tailwind-merge": "^2.5.2"
|
|
@@ -746,6 +746,7 @@
|
|
|
746
746
|
"test": "npm run test:integration && npm run test:unit",
|
|
747
747
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
748
748
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
749
|
+
"lint:format": "prettier --plugin-search-dir . --check .",
|
|
749
750
|
"lint": "prettier --plugin-search-dir . --check . && eslint .",
|
|
750
751
|
"format": "prettier --plugin-search-dir . --write .",
|
|
751
752
|
"test:integration": "playwright test",
|