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 +4 -4
- data/app/pb_kits/playbook/pb_radio/docs/_radio_children.jsx +51 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_radio/docs/index.js +1 -0
- data/dist/playbook-doc.js +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d419b5467249a1e7338f7b75fc8ad9bd33e5c3542ab27da9a752a2c3119e47f0
|
4
|
+
data.tar.gz: bde0a198da0f9d546ec2ad643a22b12da34dc500448336f079a7677e0009167d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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'
|