@nemigo/layout 2.1.1 → 2.1.3

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.
@@ -1,9 +1,21 @@
1
- <script module lang="ts">export {};
2
- </script>
1
+ <script module lang="ts"></script>
3
2
 
4
3
  <script lang="ts">import { preventStop, usePreventStop } from "@nemigo/helpers/html/events";
5
- let { id, label, class: className, style, disabled, load, onclick: onClick, onmousedown, onenterdown, onkeydown, oncontextmenu, children } = $props();
6
- let ariaLabel = $derived(label ?? undefined);
4
+ let {
5
+ id,
6
+ label,
7
+ class: className,
8
+ style,
9
+ disabled,
10
+ load,
11
+ onclick: onClick,
12
+ onmousedown,
13
+ onenterdown,
14
+ onkeydown,
15
+ oncontextmenu,
16
+ children
17
+ } = $props();
18
+ let ariaLabel = $derived(label ?? void 0);
7
19
  </script>
8
20
 
9
21
  {#if onClick}
@@ -1,5 +1,4 @@
1
- <script module lang="ts">export {};
2
- </script>
1
+ <script module lang="ts"></script>
3
2
 
4
3
  <script lang="ts">import { delay as Delay } from "@nemigo/helpers/async";
5
4
  import { isSSR } from "@nemigo/helpers/html";
@@ -2,25 +2,25 @@
2
2
  import { Navigation } from "@nemigo/svelte/kit/navigation";
3
3
  import { linear } from "svelte/easing";
4
4
  import { blur } from "svelte/transition";
5
- let { class: className, duration = 350, handler, children } = $props();
5
+ let { class: className, duration = 290, handler, children } = $props();
6
6
  const __navigation = Navigation.default(handler).hydrate();
7
7
  let animate = $state(false);
8
8
  let show = $derived(!__navigation.state.signal && !animate);
9
9
  const stepper = {
10
- in: {
11
- get duration() {
12
- return duration;
13
- },
14
- amount: 7,
15
- easing: linear
16
- },
17
- out: {
18
- get duration() {
19
- return duration;
20
- },
21
- amount: 14,
22
- easing: linear
23
- }
10
+ in: {
11
+ get duration() {
12
+ return duration;
13
+ },
14
+ amount: 7,
15
+ easing: linear
16
+ },
17
+ out: {
18
+ get duration() {
19
+ return duration;
20
+ },
21
+ amount: 14,
22
+ easing: linear
23
+ }
24
24
  };
25
25
  </script>
26
26
 
@@ -4,6 +4,9 @@ import type { Snippet } from "svelte";
4
4
  import type { ClassValue } from "svelte/elements";
5
5
  interface Props {
6
6
  class?: ClassValue;
7
+ /**
8
+ * @default 290
9
+ */
7
10
  duration?: number;
8
11
  handler?: NavigationHandler;
9
12
  children: Snippet;
@@ -3,7 +3,7 @@ export const loaderCursorStore = LoaderStore.default();
3
3
  </script>
4
4
 
5
5
  <script lang="ts">$effect(() => {
6
- document.documentElement.style.cursor = loaderCursorStore.state.signal ? "wait" : "auto";
6
+ document.documentElement.style.cursor = loaderCursorStore.state.signal ? "wait" : "auto";
7
7
  });
8
8
  loaderCursorStore.hydrate();
9
9
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nemigo/layout",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "Vlad Logvin",
@@ -12,7 +12,10 @@
12
12
  "check": "svelte-check --tsconfig ./tsconfig.json",
13
13
  "eslint": "bunx --bun eslint ./",
14
14
  "eslint:fix": "bunx --bun eslint --fix ./",
15
- "format": "bunx --bun prettier --write ./"
15
+ "lint": "biome lint",
16
+ "lint:fix": "biome lint --fix --unsafe",
17
+ "lint:fix:unsafe": "biome lint --fix --unsafe",
18
+ "format": "bunx --bun prettier --write ./ && biome check --write --linter-enabled=false"
16
19
  },
17
20
  "exports": {
18
21
  "./Context": {
@@ -48,8 +51,8 @@
48
51
  }
49
52
  },
50
53
  "devDependencies": {
51
- "@nemigo/configs": "2.1.0",
52
- "@nemigo/helpers": "2.0.0",
53
- "@nemigo/svelte": "2.1.0"
54
+ "@nemigo/configs": "2.1.2",
55
+ "@nemigo/helpers": "2.0.2",
56
+ "@nemigo/svelte": "2.1.1"
54
57
  }
55
58
  }