playbook_ui_docs 13.33.0.pre.alpha.PLAY14143318 → 13.33.1.pre.alpha.PLAY14143336
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 +0 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +2 -2
- data/dist/playbook-doc.js +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 896a003acd2421c9b3ed132078bdd8f30051d97918e620c5370eec45104b0c3c
|
4
|
+
data.tar.gz: 372820d2037ffcd0e82850111dc7e9553be885d34934ae7a11c1a2289905e071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7754779add3184b1d9195360b2ab902a9ea4a7bbd1092acea78ef9f040de3d9d00aa0fb3ce1e2c02370c3dce38488132d97ba396f9ab848cc4f66b74c53ed35
|
7
|
+
data.tar.gz: dc0a0bcd8342149772cbf697b9df18aa4fe0c280befce7ab11eec8be8e818a524914c8c9ab41bf2d9ab07f958eac728fb765a447fb9c013fefc478e180477944
|
@@ -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('')
|
9
8
|
const handleOnChangeFirstName = ({ target }) => {
|
10
9
|
setFirstName(target.value)
|
11
10
|
}
|
12
11
|
const ref = React.createRef()
|
13
12
|
|
13
|
+
const [firstName, setFirstName] = useState('')
|
14
14
|
const [formFields, setFormFields] = useState({
|
15
15
|
firstName: 'Jane',
|
16
16
|
lastName: 'Doe',
|
@@ -45,6 +45,8 @@ const promiseOptions = (inputValue) =>
|
|
45
45
|
|
46
46
|
const TypeaheadWithPillsAsync = (props) => {
|
47
47
|
const [users, setUsers] = useState([])
|
48
|
+
const handleOnChange = (value) => setUsers(formatUsers(value))
|
49
|
+
const formatValue = (users) => formatUsers(users)
|
48
50
|
const formatUsers = (users) => {
|
49
51
|
const results = () => (users.map((user) => {
|
50
52
|
if (Object.keys(user)[0] === 'name' || Object.keys(user)[1] === 'id'){
|
@@ -55,8 +57,6 @@ const TypeaheadWithPillsAsync = (props) => {
|
|
55
57
|
}))
|
56
58
|
return results()
|
57
59
|
}
|
58
|
-
const handleOnChange = (value) => setUsers(formatUsers(value))
|
59
|
-
const formatValue = (users) => formatUsers(users)
|
60
60
|
|
61
61
|
return (
|
62
62
|
<>
|