playbook_ui_docs 13.31.0.pre.alpha.PLAY882formpillprimaryandneutral3201 → 13.31.0.pre.alpha.PLAY10863204
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_text_input/docs/_text_input_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +2 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +2 -2
- data/dist/playbook-doc.js +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27c05cac000429d46ff7ed199368b7abae766129922093dd6d0b33bd45c6a6b4
|
4
|
+
data.tar.gz: a1c56da4e7061eafa9ebbc53281e69a56e6f3ba780298230c99bc239c7affe14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e305119438bfe3a329e0de069a568c3f3a68ca2f30923f1b6e41221ecba03ff505b6d3a57654d7526f82badc3ae5fd1bf59b3d7eb66707710ef5987e8a75d08c
|
7
|
+
data.tar.gz: 2e58757bda96a91842dcd128f3d08015d81aa6242611b18f3e442a85ccd327443f16baf2bc623a83527267a660b8b904b83f898119d41afb6b8dcb860f977f59
|
@@ -5,12 +5,12 @@ import TextInput from '../../pb_text_input/_text_input'
|
|
5
5
|
import Title from '../../pb_title/_title'
|
6
6
|
|
7
7
|
const TextInputDefault = (props) => {
|
8
|
+
const [firstName, setFirstName] = useState('')
|
8
9
|
const handleOnChangeFirstName = ({ target }) => {
|
9
10
|
setFirstName(target.value)
|
10
11
|
}
|
11
12
|
const ref = React.createRef()
|
12
13
|
|
13
|
-
const [firstName, setFirstName] = useState('')
|
14
14
|
const [formFields, setFormFields] = useState({
|
15
15
|
firstName: 'Jane',
|
16
16
|
lastName: 'Doe',
|
@@ -47,8 +47,6 @@ const promiseOptions = (inputValue) =>
|
|
47
47
|
|
48
48
|
const TypeaheadWithPillsAsync = (props) => {
|
49
49
|
const [users, setUsers] = useState([])
|
50
|
-
const handleOnChange = (value) => setUsers(formatUsers(value))
|
51
|
-
const formatValue = (users) => formatUsers(users)
|
52
50
|
const formatUsers = (users) => {
|
53
51
|
const results = () => (users.map((user) => {
|
54
52
|
if (Object.keys(user)[0] === 'name' || Object.keys(user)[1] === 'id'){
|
@@ -59,6 +57,8 @@ const TypeaheadWithPillsAsync = (props) => {
|
|
59
57
|
}))
|
60
58
|
return results()
|
61
59
|
}
|
60
|
+
const handleOnChange = (value) => setUsers(formatUsers(value))
|
61
|
+
const formatValue = (users) => formatUsers(users)
|
62
62
|
|
63
63
|
return (
|
64
64
|
<>
|