playbook_ui_docs 13.34.1.pre.alpha.PLAY14043436 → 13.34.1.pre.alpha.PLAY14633399
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_dialog/docs/_dialog_default.jsx +5 -1
- data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_dialog/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +1 -1
- data/dist/playbook-doc.js +1 -1
- metadata +2 -3
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.jsx +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29b7dfa9fecc4f3e494dbc8ecbb33e0a6a9860ecbf3d963b2b96335b49f5c333
|
4
|
+
data.tar.gz: 39f79e2c5703cbcebf1c4a8bf52c636fa0915cd3d1244a9f3b775b8683f95a90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13fdcf53821ba39cbd3cd97536de1af8e54f35d25438e464d56e55a1186e3efcb797e625573edb5a37aee271c588c637e7e15cfcb27ca7941d4ba80b313944b7
|
7
|
+
data.tar.gz: 6d3348808e35cadafe4b70fb2f99624465d00b21232c93fca38cc9808297ee7315d9aa47630e3a4583a478f98239d0222adc718fc29282a2d0013e4c68ed9d2c
|
@@ -5,17 +5,21 @@ const DialogDefault = () => {
|
|
5
5
|
const [isOpen, setIsOpen] = useState(false)
|
6
6
|
const close = () => setIsOpen(false)
|
7
7
|
const open = () => setIsOpen(true)
|
8
|
+
const [isLoading, setIsLoading] = useState(false)
|
8
9
|
|
9
10
|
return (
|
10
11
|
<>
|
11
12
|
<Button onClick={open}>{'Open Dialog'}</Button>
|
12
13
|
<Dialog
|
13
14
|
cancelButton="Cancel Button"
|
15
|
+
className="wrapper"
|
14
16
|
confirmButton="Okay"
|
17
|
+
loading={isLoading}
|
15
18
|
onCancel={close}
|
16
19
|
onClose={close}
|
17
|
-
onConfirm={
|
20
|
+
onConfirm={() => setIsLoading(!isLoading)}
|
18
21
|
opened={isOpen}
|
22
|
+
portalClassName="portal"
|
19
23
|
size="sm"
|
20
24
|
text="Hello Body Text, Nice to meet ya."
|
21
25
|
title="Header Title is the Title Prop"
|
@@ -8,4 +8,3 @@ export { default as DialogStatus } from './_dialog_status.jsx'
|
|
8
8
|
export { default as DialogStackedAlert } from './_dialog_stacked_alert.jsx'
|
9
9
|
export { default as DialogFullHeight } from './_dialog_full_height.jsx'
|
10
10
|
export { default as DialogFullHeightPlacement } from './_dialog_full_height_placement.jsx'
|
11
|
-
export { default as DialogLoading } from './_dialog_loading.jsx'
|
@@ -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',
|