playbook_ui_docs 14.1.0.pre.alpha.PBNTR462starratingdefaultvalue3582 → 14.1.0.pre.alpha.pbntr373enablekitsforradio3593

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8ecbf2ac4744a6b5edad9a72ac45bcde3088b3cd1933ed1dd07fc137304ef79
4
- data.tar.gz: 20042d4e3a75f87eaad2ac88fb97dcbe883393224e6abe8d15cef1376d8d38e2
3
+ metadata.gz: d419b5467249a1e7338f7b75fc8ad9bd33e5c3542ab27da9a752a2c3119e47f0
4
+ data.tar.gz: bde0a198da0f9d546ec2ad643a22b12da34dc500448336f079a7677e0009167d
5
5
  SHA512:
6
- metadata.gz: d30c2274d5f7f28a5de17e8236f0f483699f82eec7db87a331bb43fa29e5fa66e51e1074a91b1e76643056118d983cd56bd071152444fecd6c3b43f6175b3dcc
7
- data.tar.gz: 0ae88d002f840305d07fad07188b73d528794723cf8d1f390645ffdd3d532dc109a9b1d8f2eb4ce06f5dc3cd9b2672ce78d836dacff0b6cc6b4c011352f4ce9d
6
+ metadata.gz: 8b638c4efb46cef07e3de941438556e88782263a6f4a955d8e0b048e7715cd478ac57633b50c5ba595f3ea66e7b1d4b6461b7430350f7b5192fd70a38d30d63e
7
+ data.tar.gz: ce0d7e54add35593ea10379b0cf55cbfcaaaa7b347e27591a2425d8623c58b9dfd5094fc495fb3b15b76a17aec744049a60ec96a59fd5eee0d26a77eb66b4547
@@ -0,0 +1,51 @@
1
+ import React from 'react'
2
+ import Radio from '../_radio'
3
+ import Typeahead from '../../pb_typeahead/_typeahead'
4
+ import Dropdown from '../../pb_dropdown/_dropdown'
5
+ import Title from '../../pb_title/_title'
6
+
7
+ const RadioChildren = (props) => {
8
+
9
+
10
+ const options = [
11
+ { label: 'Orange', value: '#FFA500' },
12
+ { label: 'Red', value: '#FF0000' },
13
+ { label: 'Green', value: '#00FF00' },
14
+ { label: 'Blue', value: '#0000FF' },
15
+ ]
16
+
17
+ return (
18
+ <div>
19
+ <Radio
20
+ label="Power"
21
+ name="Group2"
22
+ tabIndex={0}
23
+ value="Power"
24
+ {...props}
25
+ >
26
+ <Dropdown options={options}/>
27
+ </Radio>
28
+ <br />
29
+ <Radio
30
+ defaultChecked={false}
31
+ label="Nitro"
32
+ name="Group2"
33
+ value="Nitro"
34
+ {...props}
35
+ >
36
+ <Typeahead options={options} />
37
+ </Radio>
38
+ <br />
39
+ <Radio
40
+ defaultChecked={false}
41
+ label="Google"
42
+ name="Group2"
43
+ value="Google"
44
+ {...props}
45
+ >
46
+ <Title text="Custom Typography" />
47
+ </Radio>
48
+ </div>
49
+ )
50
+ }
51
+ export default RadioChildren
@@ -34,4 +34,4 @@ const RadioDefault = (props) => {
34
34
  </div>
35
35
  )
36
36
  }
37
- export default RadioDefault
37
+ export default RadioDefault
@@ -14,6 +14,7 @@ examples:
14
14
  - radio_error: With Error
15
15
  - radio_alignment: Alignment
16
16
  - radio_disabled: Disabled
17
+ - radio_children: Children
17
18
 
18
19
  swift:
19
20
  - radio_default_swift: Default
@@ -3,3 +3,4 @@ export { default as RadioCustom } from './_radio_custom.jsx'
3
3
  export { default as RadioError } from './_radio_error.jsx'
4
4
  export { default as RadioAlignment } from './_radio_alignment.jsx'
5
5
  export { default as RadioDisabled } from './_radio_disabled.jsx'
6
+ export { default as RadioChildren } from './_radio_children.jsx'