noph-ui 0.6.2 → 0.6.4

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,9 @@
1
1
  <script lang="ts">
2
2
  import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements'
3
- import type { NavigationAction } from './types.ts'
3
+ import type { NavigationActionProps } from './types.ts'
4
4
  import Ripple from '../ripple/Ripple.svelte'
5
5
 
6
- let { selected, icon, label, ...attributes }: NavigationAction = $props()
6
+ let { selected, icon, label, ...attributes }: NavigationActionProps = $props()
7
7
  let touchEl: HTMLSpanElement | undefined = $state()
8
8
 
9
9
  const isButton = (obj: unknown): obj is HTMLButtonAttributes => {
@@ -1,4 +1,4 @@
1
- import type { NavigationAction } from './types.ts';
2
- declare const NavigationAction: any;
1
+ import type { NavigationActionProps } from './types.ts';
2
+ declare const NavigationAction: import("svelte").Component<NavigationActionProps, {}, "">;
3
3
  type NavigationAction = ReturnType<typeof NavigationAction>;
4
4
  export default NavigationAction;
@@ -1,10 +1,10 @@
1
1
  <script lang="ts">
2
- import type { NavigationRail } from './types.ts'
2
+ import type { NavigationRailProps } from './types.ts'
3
3
 
4
- let { children, ...attributes }: NavigationRail = $props()
4
+ let { children, ...attributes }: NavigationRailProps = $props()
5
5
  </script>
6
6
 
7
- <nav {...attributes} class="navigation-rail">
7
+ <nav {...attributes} class="navigation-rail {attributes.class}">
8
8
  {#if children}
9
9
  {@render children()}
10
10
  {/if}
@@ -1,4 +1,4 @@
1
- import type { NavigationRail } from './types.ts';
2
- declare const NavigationRail: any;
1
+ import type { NavigationRailProps } from './types.ts';
2
+ declare const NavigationRail: import("svelte").Component<NavigationRailProps, {}, "">;
3
3
  type NavigationRail = ReturnType<typeof NavigationRail>;
4
4
  export default NavigationRail;
@@ -1,6 +1,6 @@
1
1
  import type { Snippet } from 'svelte';
2
2
  import type { HTMLAnchorAttributes, HTMLAttributes, HTMLButtonAttributes } from 'svelte/elements';
3
- export type NavigationRail = HTMLAttributes<HTMLElement>;
3
+ export type NavigationRailProps = HTMLAttributes<HTMLElement>;
4
4
  interface NavigationActionButton extends HTMLButtonAttributes {
5
5
  icon: Snippet;
6
6
  label: string;
@@ -11,5 +11,5 @@ interface NavigationActionLink extends HTMLAnchorAttributes {
11
11
  label: string;
12
12
  selected?: boolean;
13
13
  }
14
- export type NavigationAction = NavigationActionButton | NavigationActionLink;
14
+ export type NavigationActionProps = NavigationActionButton | NavigationActionLink;
15
15
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.6.2",
3
+ "version": "0.6.4",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {