noph-ui 0.15.4 → 0.15.5
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/dist/list/List.svelte
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
import type {
|
|
2
|
+
import type { ListProps } from './types.ts'
|
|
3
3
|
|
|
4
|
-
let { children, ...attributes }:
|
|
4
|
+
let { element = $bindable(), children, ...attributes }: ListProps = $props()
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
|
-
<ul {...attributes}>
|
|
7
|
+
<ul bind:this={element} {...attributes}>
|
|
8
8
|
{#if children}
|
|
9
9
|
{@render children()}
|
|
10
10
|
{/if}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const List: import("svelte").Component<
|
|
1
|
+
import type { ListProps } from './types.ts';
|
|
2
|
+
declare const List: import("svelte").Component<ListProps, {}, "element">;
|
|
3
3
|
type List = ReturnType<typeof List>;
|
|
4
4
|
export default List;
|
package/dist/list/types.d.ts
CHANGED
|
@@ -25,4 +25,7 @@ interface TextProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
25
25
|
}
|
|
26
26
|
export type ItemProps = ButtonProps | AnchorProps | TextProps;
|
|
27
27
|
export type ListItemProps = ButtonProps | AnchorProps | TextProps;
|
|
28
|
+
export interface ListProps extends HTMLAttributes<HTMLUListElement> {
|
|
29
|
+
element?: HTMLUListElement;
|
|
30
|
+
}
|
|
28
31
|
export {};
|