noph-ui 0.8.5 → 0.8.6

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.
@@ -2,13 +2,19 @@
2
2
  import Ripple from '../ripple/Ripple.svelte'
3
3
  import type { RadioProps } from './types.ts'
4
4
 
5
- let { element = $bindable(), style, ...attributes }: RadioProps = $props()
5
+ let {
6
+ checked,
7
+ defaultChecked,
8
+ element = $bindable(),
9
+ style,
10
+ ...attributes
11
+ }: RadioProps = $props()
6
12
 
7
13
  let touchEl: HTMLSpanElement | undefined = $state()
8
14
  </script>
9
15
 
10
16
  <label {style} class={['np-host', attributes.class]} bind:this={element}>
11
- <input {...attributes} type="radio" class="np-input" />
17
+ <input {...attributes} type="radio" class="np-input" {checked} {defaultChecked} />
12
18
  <div class="np-container" aria-hidden="true">
13
19
  {#if !attributes.disabled}
14
20
  <Ripple forElement={touchEl} class="np-radio-ripple" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {