@fluid-topics/ft-radio 0.2.13 → 0.2.14

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.
Files changed (2) hide show
  1. package/README.md +15 -6
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -10,14 +10,23 @@ yarn add @fluid-topics/ft-radio
10
10
  ## Usage
11
11
 
12
12
  ```typescript
13
- import {html} from "lit"
13
+ import { html } from "lit"
14
14
  import "@fluid-topics/ft-radio"
15
15
 
16
16
  function render() {
17
- return html`
18
- <ft-radio name="form-name" checked
19
- @change=${(e: CustomEvent) => console.log("ft-radio change to :", e.detail)} >
20
- Check me
21
- </ft-radio>`
17
+ return html`
18
+ <ft-radio-group name=${ args.name }
19
+ @change=${ (e: CustomEvent) => console.log("ft-radio-group change to :", e.detail) } >
20
+ <ft-radio value="value 1" checked>
21
+ Value 1
22
+ </ft-radio>
23
+ <ft-radio value="value 2">
24
+ Value 2
25
+ </ft-radio>
26
+ <ft-radio value="value 3">
27
+ Value 3
28
+ </ft-radio>
29
+ </ft-radio-group>
30
+ `
22
31
  }
23
32
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-radio",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "A radio component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-ripple": "^0.2.13",
23
- "@fluid-topics/ft-typography": "^0.2.13",
24
- "@fluid-topics/ft-wc-utils": "^0.2.13",
22
+ "@fluid-topics/ft-ripple": "^0.2.14",
23
+ "@fluid-topics/ft-typography": "^0.2.14",
24
+ "@fluid-topics/ft-wc-utils": "^0.2.14",
25
25
  "lit": "2.1.3"
26
26
  },
27
- "gitHead": "53374411bbda5416238d3e7a8ab3852c75a95712"
27
+ "gitHead": "6ae3f84aee76dd78fe295c1cad4d7b7180eb4f9d"
28
28
  }