playbook_ui_docs 14.5.0.pre.rc.9 → 14.5.0.pre.rc.11

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: fa3f231d2936cca8af5339c14deb751848015ef507aa6ca371b15343dc9dcfa3
4
- data.tar.gz: 2028d5ad18d7533ad07d53a00a6dfb445739d4dfefd0a0bea0fa9951c2147cc9
3
+ metadata.gz: 46c7537d3fa7a462969f7bb26e0e96830f23e2b4de941063013b393915d61e5a
4
+ data.tar.gz: 188bdd92fa8d9f2c3b5a1cf89af2b085d2a33288fdfd6321d87ff5e0dfb87c98
5
5
  SHA512:
6
- metadata.gz: bfc41903eb0a2fcfd02e00249d39f569b294d64390cfdce74ed7371e7b73b16a9650453746b769bf0d19b66d1abd7ba17c61c60788371d3d35ec2f6d2780bf6d
7
- data.tar.gz: 5a43773ab874bdc734acf1fdfe76b050f3c79508d22cf2e050591896db5f59f42a743dc5aedb9cdc82a6a65059baf6ff76ac20f0428b3600a5d6a12bc9f36a20
6
+ metadata.gz: 1109144e315e4f548b69bd2ef7ad22f53f6855d347ed53e6be552dd5f6df845c5987a6f3d015bb8023b558c5dc2e9f7a895572c7b532920d31513c6a7d4e6ab5
7
+ data.tar.gz: 3477ed50d3aab01b75909d7930dbdf24da871e240d41b773acbcf63fce3d6d74537d720fa7efd5f6f8574d6df0add01e540c23e0a1a6a9855201b88ebe225315
@@ -0,0 +1,59 @@
1
+ import React from 'react'
2
+ import Radio from '../_radio'
3
+ import Select from '../../pb_select/_select'
4
+ import Typeahead from '../../pb_typeahead/_typeahead'
5
+ import Title from '../../pb_title/_title'
6
+
7
+ const RadioChildren = (props) => {
8
+
9
+
10
+ const options = [
11
+ { label: 'Orange', value: 'Orange' },
12
+ { label: 'Red', value: 'Red' },
13
+ { label: 'Green', value: 'Green' },
14
+ { label: 'Blue', value: 'Blue' },
15
+ ]
16
+
17
+ return (
18
+ <div>
19
+ <Radio
20
+ customChildren
21
+ label="Select"
22
+ name="Group1"
23
+ tabIndex={0}
24
+ value="Select"
25
+ {...props}
26
+ >
27
+ <Select
28
+ minWidth="xs"
29
+ options={options}
30
+ />
31
+ </Radio>
32
+ <Radio
33
+ customChildren
34
+ label="Typeahead"
35
+ name="Group1"
36
+ tabIndex={0}
37
+ value="Typeahead"
38
+ {...props}
39
+ >
40
+ <Typeahead
41
+ minWidth="xs"
42
+ options={options}
43
+ />
44
+ </Radio>
45
+ <br />
46
+ <Radio
47
+ customChildren
48
+ defaultChecked={false}
49
+ label="Typography"
50
+ name="Group1"
51
+ value="Typography"
52
+ {...props}
53
+ >
54
+ <Title text="Custom Typography" />
55
+ </Radio>
56
+ </div>
57
+ )
58
+ }
59
+ export default RadioChildren
@@ -15,6 +15,7 @@ examples:
15
15
  - radio_error: With Error
16
16
  - radio_alignment: Alignment
17
17
  - radio_disabled: Disabled
18
+ - radio_custom_children: Custom Children
18
19
 
19
20
  swift:
20
21
  - 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 RadioCustomChildren } from './_radio_custom_children.jsx'