Skip to content

Commit 3bb88af

Browse files
committed
Linting & Formatting
1 parent e790fbc commit 3bb88af

File tree

12 files changed

+262
-257
lines changed

12 files changed

+262
-257
lines changed

src/lib/components/Avatar.svelte

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<script lang="ts">
2-
import { Icon } from "$lib/index.js";
2+
import { Icon } from "$lib/index.js";
33
4-
export let id = "";
4+
export let id = "";
55
</script>
66

77
<div class="avatar">
8-
{#if id === ""}
9-
<Icon icon="account_circle"/>
10-
{:else}
11-
<Icon icon="mood_bad"/>
12-
{/if}
8+
{#if id === ""}
9+
<Icon icon="account_circle" />
10+
{:else}
11+
<Icon icon="mood_bad" />
12+
{/if}
1313
</div>
1414

1515
<style>
16-
.avatar {
17-
margin: 0rem var(--token-space-2);
18-
}
19-
</style>
16+
.avatar {
17+
margin: 0rem var(--token-space-2);
18+
}
19+
</style>

src/lib/components/Inputs/Dropdown.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
{#each actions as action, i (action.label)}
9999
<li role="none">
100100
<button role="menuitem" tabindex={i === 0 ? 0 : -1} bind:this={menuItems[i]} on:click={() => handleAction(action, action.label)}>
101-
<span class="material-symbols-outlined dropdown-arrow" aria-hidden="true">{action.iconbefore}</span> {action.label}
101+
<span class="material-symbols-outlined dropdown-arrow" aria-hidden="true">{action.iconbefore}</span>
102+
{action.label}
102103
</button>
103104
</li>
104105
{/each}

src/lib/components/Inputs/TextArea.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
style="resize: {resize}; overflow: hidden;"
4343
aria-required={required}
4444
aria-invalid={invalid}
45-
aria-describedby={(invalid ? id + "-error" : undefined)}
45+
aria-describedby={invalid ? id + "-error" : undefined}
4646
bind:value
4747
on:input={adjustHeight}
4848
on:keydown={(event) => {
@@ -65,11 +65,13 @@
6565
<!-- Character counter if maxLength is set -->
6666
{#if maxLength !== null && maxLength == value.length}
6767
<div class="max-char-counter">{value.length}/{maxLength}</div>
68-
{:else if maxLength !== null}
69-
<div class="char-counter">{value.length}/{maxLength}</div>
68+
{:else if maxLength !== null}
69+
<div class="char-counter">{value.length}/{maxLength}</div>
7070
{/if}
7171
</div>
7272

73+
<svelte:window on:load={adjustHeight} />
74+
7375
<style>
7476
.textarea-root {
7577
display: flex;
@@ -131,5 +133,3 @@
131133
text-align: right;
132134
}
133135
</style>
134-
135-
<svelte:window on:load={adjustHeight} />

src/lib/components/Messaging/ImageCard.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
export let description: string;
66
export let href: string | undefined = undefined;
77
export let imageheight: string = "125px";
8-
export let imagewidth: string = "100px;"
8+
export let imagewidth: string = "100px;";
99
</script>
1010

1111
{#if href}
1212
<a {href}>
1313
<div class="card">
1414
<div class="card-image-wrapper">
15-
<img class="card-image" {src} {alt} width={imagewidth} height="={imageheight}"/>
15+
<img class="card-image" {src} {alt} width={imagewidth} height="={imageheight}" />
1616
</div>
1717

1818
<div class="card-content">
@@ -93,7 +93,7 @@
9393
9494
.card-description {
9595
margin-top: var(--token-space-2);
96-
font-size: 0.90rem;
96+
font-size: 0.9rem;
9797
line-height: 1.1;
9898
color: var(--token-color-text-default-secondary);
9999
}

src/lib/components/Overlays/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
export { default as Modal } from "$lib/components/Overlays/Modal.svelte";
2-

src/lib/components/Primitives/Icon.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
export let color: string = "var(--token-color-text-default-normal)";
55
</script>
66

7-
<span style="color: {color}; font-size: {size};" class="icon material-symbols-outlined" translate="no" aria-hidden="true">{icon}</span>
7+
<span style="color: {color}; font-size: {size};" class="icon material-symbols-outlined" translate="no" aria-hidden="true">{icon}</span>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export { default as Icon } from "$lib/components/Primitives/Icon.svelte";
2-
export { default as ToolTip } from "$lib/components/Primitives/ToolTip.svelte";
2+
export { default as ToolTip } from "$lib/components/Primitives/ToolTip.svelte";

src/lib/components/Themes/ThemeMenu.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
alwaysshowslot
5050
actions={[
5151
{ label: "System (auto)", onClick: () => setTheme("system"), iconbefore: "routine" },
52-
{ label: "Light", onClick: () => setTheme("light"), iconbefore: "light_mode"},
53-
{ label: "Dark", onClick: () => setTheme("dark"), iconbefore: "dark_mode"},
54-
{ label: "Highcontrast", onClick: () => setTheme("highcontrast"), iconbefore: "contrast"}
52+
{ label: "Light", onClick: () => setTheme("light"), iconbefore: "light_mode" },
53+
{ label: "Dark", onClick: () => setTheme("dark"), iconbefore: "dark_mode" },
54+
{ label: "Highcontrast", onClick: () => setTheme("highcontrast"), iconbefore: "contrast" }
5555
]}
5656
>
5757
Theme

src/lib/metadata.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//! This file is autogenerated! Edit in meta/scripts/GenerateMetaData.ts
22

33
export const metadata = {
4-
version: "1.9.1",
5-
packageName: "@davidnet/svelte-ui",
6-
npmUrl: "https://www.npmjs.com/package/@davidnet/svelte-ui",
7-
commitHash: "29edcef",
8-
fullCommitHash: "29edcef289a4725f20f6834ccf7907759c1fd322",
9-
commitDate: "2025-08-11T11:01:17+02:00",
10-
branch: "main",
11-
commitUrl: "https://github.com/davidnet-net/svelte-ui/commit/29edcef289a4725f20f6834ccf7907759c1fd322",
12-
repoUrl: "https://github.com/davidnet-net/svelte-ui"
4+
version: "1.9.1",
5+
packageName: "@davidnet/svelte-ui",
6+
npmUrl: "https://www.npmjs.com/package/@davidnet/svelte-ui",
7+
commitHash: "29edcef",
8+
fullCommitHash: "29edcef289a4725f20f6834ccf7907759c1fd322",
9+
commitDate: "2025-08-11T11:01:17+02:00",
10+
branch: "main",
11+
commitUrl: "https://github.com/davidnet-net/svelte-ui/commit/29edcef289a4725f20f6834ccf7907759c1fd322",
12+
repoUrl: "https://github.com/davidnet-net/svelte-ui"
1313
};

themes/gen/dark.css

Lines changed: 79 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,83 @@
11
/* This file is autogenerated. Edit in themes/dev/dark.json */
22

33
:root {
4-
--token-color-text-default-normal: #f1f1f1;
5-
--token-color-text-default-secondary: #cccccc;
6-
--token-color-text-default-tertiary: #999999;
7-
--token-color-text-inverse-normal: #111111;
8-
--token-color-text-inverse-secondary: #444444;
9-
--token-color-text-inverse-tertiary: #666666;
10-
--token-color-text-danger: #ae2e24;
11-
--token-color-text-warning: #f5cd47;
12-
--token-color-text-success: #7ee2b8;
13-
--token-color-text-discover: #b8acf6;
14-
--token-color-text-information: #85b8ff;
15-
--token-color-text-disabled: #666666;
16-
--token-color-text-dark-normal: #f1f1f1;
17-
--token-color-text-dark-secondary: #cccccc;
18-
--token-color-text-dark-tertiary: #999999;
19-
--token-color-text-light-normal: #111111;
20-
--token-color-text-light-secondary: #444444;
21-
--token-color-text-light-tertiary: #666666;
22-
--token-color-background-danger-normal: #8b0f06;
23-
--token-color-background-danger-hover: #b4241a;
24-
--token-color-background-danger-pressed: #2c2c2c;
25-
--token-color-background-warning-normal: #866602;
26-
--token-color-background-warning-hover: #c48b1c;
27-
--token-color-background-warning-pressed: #2c2c2c;
28-
--token-color-background-primary-normal: #0d3e8b;
29-
--token-color-background-primary-hover: #145fcc;
30-
--token-color-background-primary-pressed: #2c2c2c;
31-
--token-color-background-success-normal: #00c48c;
32-
--token-color-background-success-hover: #009f72;
33-
--token-color-background-success-pressed: #2c2c2c;
34-
--token-color-background-discover-normal: #540b7e;
35-
--token-color-background-discover-hover: #7159c4;
36-
--token-color-background-discover-pressed: #2c2c2c;
37-
--token-color-background-information-normal: #4098ff;
38-
--token-color-background-information-hover: #327ad1;
39-
--token-color-background-information-pressed: #2c2c2c;
40-
--token-color-background-disabled-normal: #444444;
41-
--token-color-background-disabled-hover: #3a3a3a;
42-
--token-color-background-disabled-pressed: #2c2c2c;
43-
--token-color-background-subtle-normal: transparent;
44-
--token-color-background-subtle-hover: rgba(255, 255, 255, 0.08);
45-
--token-color-background-subtle-pressed: rgba(255, 255, 255, 0.16);
46-
--token-color-surface-sunken-normal: #161a1d;
47-
--token-color-surface-default-normal: #1d2125;
48-
--token-color-surface-default-hover: #2a2f35;
49-
--token-color-surface-default-pressed: #32383f;
50-
--token-color-surface-raised-normal: #22272b;
51-
--token-color-surface-raised-hover: #2f353a;
52-
--token-color-surface-raised-pressed: #3a4249;
53-
--token-color-surface-overlay-normal: #282e33;
54-
--token-color-surface-overlay-hover: #353c44;
55-
--token-color-surface-overlay-pressed: #404952;
56-
--token-color-surface-inverse-sunken-normal: #f4f5f7;
57-
--token-color-surface-inverse-default-normal: #ffffff;
58-
--token-color-surface-inverse-default-hover: #eaeaea;
59-
--token-color-surface-inverse-default-pressed: #dcdcdc;
60-
--token-color-surface-inverse-overlay-normal: #f0f0f0;
61-
--token-color-surface-inverse-overlay-hover: #dddddd;
62-
--token-color-surface-inverse-overlay-pressed: #cccccc;
63-
--token-color-surface-inverse-raised-normal: #ffffff;
64-
--token-color-surface-inverse-raised-hover: #f3f3f3;
65-
--token-color-surface-inverse-raised-pressed: #e6e6e6;
66-
--token-color-blanket-normal: rgba(0, 0, 0, 0.5);
67-
--token-color-focusring: rgba(255, 0, 0, 0.5);;
68-
--token-space-0: 0rem;
69-
--token-space-1: 0.25rem;
70-
--token-space-2: 0.5rem;
71-
--token-space-3: 0.75rem;
72-
--token-space-4: 1rem;
73-
--token-space-5: 1.5rem;
74-
--token-space-6: 2rem;
75-
--token-font-mono: JetBrains Mono, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
76-
--token-font-main: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
77-
--token-font-heading: Merriweather Sans, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
4+
--token-color-text-default-normal: #f1f1f1;
5+
--token-color-text-default-secondary: #cccccc;
6+
--token-color-text-default-tertiary: #999999;
7+
--token-color-text-inverse-normal: #111111;
8+
--token-color-text-inverse-secondary: #444444;
9+
--token-color-text-inverse-tertiary: #666666;
10+
--token-color-text-danger: #ae2e24;
11+
--token-color-text-warning: #f5cd47;
12+
--token-color-text-success: #7ee2b8;
13+
--token-color-text-discover: #b8acf6;
14+
--token-color-text-information: #85b8ff;
15+
--token-color-text-disabled: #666666;
16+
--token-color-text-dark-normal: #f1f1f1;
17+
--token-color-text-dark-secondary: #cccccc;
18+
--token-color-text-dark-tertiary: #999999;
19+
--token-color-text-light-normal: #111111;
20+
--token-color-text-light-secondary: #444444;
21+
--token-color-text-light-tertiary: #666666;
22+
--token-color-background-danger-normal: #8b0f06;
23+
--token-color-background-danger-hover: #b4241a;
24+
--token-color-background-danger-pressed: #2c2c2c;
25+
--token-color-background-warning-normal: #866602;
26+
--token-color-background-warning-hover: #c48b1c;
27+
--token-color-background-warning-pressed: #2c2c2c;
28+
--token-color-background-primary-normal: #0d3e8b;
29+
--token-color-background-primary-hover: #145fcc;
30+
--token-color-background-primary-pressed: #2c2c2c;
31+
--token-color-background-success-normal: #00c48c;
32+
--token-color-background-success-hover: #009f72;
33+
--token-color-background-success-pressed: #2c2c2c;
34+
--token-color-background-discover-normal: #540b7e;
35+
--token-color-background-discover-hover: #7159c4;
36+
--token-color-background-discover-pressed: #2c2c2c;
37+
--token-color-background-information-normal: #4098ff;
38+
--token-color-background-information-hover: #327ad1;
39+
--token-color-background-information-pressed: #2c2c2c;
40+
--token-color-background-disabled-normal: #444444;
41+
--token-color-background-disabled-hover: #3a3a3a;
42+
--token-color-background-disabled-pressed: #2c2c2c;
43+
--token-color-background-subtle-normal: transparent;
44+
--token-color-background-subtle-hover: rgba(255, 255, 255, 0.08);
45+
--token-color-background-subtle-pressed: rgba(255, 255, 255, 0.16);
46+
--token-color-surface-sunken-normal: #161a1d;
47+
--token-color-surface-default-normal: #1d2125;
48+
--token-color-surface-default-hover: #2a2f35;
49+
--token-color-surface-default-pressed: #32383f;
50+
--token-color-surface-raised-normal: #22272b;
51+
--token-color-surface-raised-hover: #2f353a;
52+
--token-color-surface-raised-pressed: #3a4249;
53+
--token-color-surface-overlay-normal: #282e33;
54+
--token-color-surface-overlay-hover: #353c44;
55+
--token-color-surface-overlay-pressed: #404952;
56+
--token-color-surface-inverse-sunken-normal: #f4f5f7;
57+
--token-color-surface-inverse-default-normal: #ffffff;
58+
--token-color-surface-inverse-default-hover: #eaeaea;
59+
--token-color-surface-inverse-default-pressed: #dcdcdc;
60+
--token-color-surface-inverse-overlay-normal: #f0f0f0;
61+
--token-color-surface-inverse-overlay-hover: #dddddd;
62+
--token-color-surface-inverse-overlay-pressed: #cccccc;
63+
--token-color-surface-inverse-raised-normal: #ffffff;
64+
--token-color-surface-inverse-raised-hover: #f3f3f3;
65+
--token-color-surface-inverse-raised-pressed: #e6e6e6;
66+
--token-color-blanket-normal: rgba(0, 0, 0, 0.5);
67+
--token-color-focusring: rgba(255, 0, 0, 0.5);
68+
--token-space-0: 0rem;
69+
--token-space-1: 0.25rem;
70+
--token-space-2: 0.5rem;
71+
--token-space-3: 0.75rem;
72+
--token-space-4: 1rem;
73+
--token-space-5: 1.5rem;
74+
--token-space-6: 2rem;
75+
--token-font-mono:
76+
JetBrains Mono, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
77+
sans-serif;
78+
--token-font-main:
79+
Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
80+
--token-font-heading:
81+
Merriweather Sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
82+
sans-serif;
7883
}

0 commit comments

Comments
 (0)