noph-ui 0.16.22 → 0.16.23

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.
@@ -3,13 +3,7 @@
3
3
  import { setContext } from 'svelte'
4
4
  import type { TabsProps } from './types.ts'
5
5
 
6
- let {
7
- children,
8
- element = $bindable(),
9
- value = $bindable(),
10
- onkeydown,
11
- ...attributes
12
- }: TabsProps = $props()
6
+ let { children, element = $bindable(), value = $bindable(), ...attributes }: TabsProps = $props()
13
7
  let active = $state({
14
8
  value: value,
15
9
  node: element?.firstChild as HTMLElement | undefined,
@@ -21,10 +15,9 @@
21
15
  })
22
16
  </script>
23
17
 
24
- <div>
18
+ <div {...attributes} class={[attributes.class]}>
25
19
  <div
26
- {...attributes}
27
- class={['np-tabs', attributes.class]}
20
+ class={['np-tabs']}
28
21
  role="tablist"
29
22
  tabindex="-1"
30
23
  bind:this={element}
@@ -38,9 +31,6 @@
38
31
  index < 0 ? tabs[tabs.length - 1] : index >= tabs.length ? tabs[0] : tabs[index]
39
32
  newTab.focus()
40
33
  }
41
- if (onkeydown) {
42
- onkeydown(event)
43
- }
44
34
  }}
45
35
  >
46
36
  {@render children?.()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.16.22",
3
+ "version": "0.16.23",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {