playbook_ui 9.17.0 → 9.18.0
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_date_time/docs/_date_time_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_dialog/_dialog.jsx +3 -0
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx +2 -0
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.jsx +4 -1
- data/lib/playbook/version.rb +2 -2
- 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: 2aec51c9d597b2e3a14d3b23c29737bca579d0c96dc17e7d908499f5ed97974d
|
4
|
+
data.tar.gz: 99413586f7e6242856fbe3551903c52ef8fcd31d470a7654ce4049682b56df31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7533b83c384e5f23ddcf8b62cdbda1c9d7a34a561eb4c840bcc31037ad01fb3b905796056039873dbb4f3d87b07bbbfeda331340e669965a9328809c977e6c64
|
7
|
+
data.tar.gz: b8ea1004e16ca5668ba4572d3d18e8b8d828b1d17572fdc31788f78b98d518b6ce7bdb9e0befb4fa0544e5d6e160da960ec450781ab117a83206656e9429e8f7
|
@@ -25,6 +25,7 @@ type DialogProps = {
|
|
25
25
|
onClose?: () => void,
|
26
26
|
onConfirm?: () => void,
|
27
27
|
opened: boolean,
|
28
|
+
portalClassName?: string,
|
28
29
|
shouldCloseOnOverlayClick: boolean,
|
29
30
|
size?: "sm" | "md" | "lg" | "content",
|
30
31
|
text?: string,
|
@@ -46,6 +47,7 @@ const Dialog = (props: DialogProps) => {
|
|
46
47
|
onCancel = () => {},
|
47
48
|
onConfirm = () => {},
|
48
49
|
onClose = () => {},
|
50
|
+
portalClassName,
|
49
51
|
shouldCloseOnOverlayClick = true,
|
50
52
|
text,
|
51
53
|
title,
|
@@ -107,6 +109,7 @@ const Dialog = (props: DialogProps) => {
|
|
107
109
|
isOpen={modalIsOpened}
|
108
110
|
onRequestClose={onClose}
|
109
111
|
overlayClassName={overlayClassNames}
|
112
|
+
portalClassName={portalClassName}
|
110
113
|
shouldCloseOnOverlayClick={shouldCloseOnOverlayClick}
|
111
114
|
>
|
112
115
|
<If condition={title}>
|
@@ -11,11 +11,13 @@ const DialogDefault = () => {
|
|
11
11
|
<Button onClick={open}>{'Open Dialog'}</Button>
|
12
12
|
<Dialog
|
13
13
|
cancelButton="Cancel"
|
14
|
+
className="wrapper"
|
14
15
|
confirmButton="Okay"
|
15
16
|
onCancel={close}
|
16
17
|
onClose={close}
|
17
18
|
onConfirm={close}
|
18
19
|
opened={isOpen}
|
20
|
+
portalClassName="portal"
|
19
21
|
size="sm"
|
20
22
|
text="Hello Body Text, Nice to meet ya."
|
21
23
|
title="Header Title is the Title Prop"
|
@@ -74,7 +74,10 @@ const Passphrase = (props: PassphraseProps) => {
|
|
74
74
|
}
|
75
75
|
|
76
76
|
const [showPassphrase, setShowPassphrase] = useState(false)
|
77
|
-
const toggleShowPassphrase = () =>
|
77
|
+
const toggleShowPassphrase = (e) => {
|
78
|
+
e.preventDefault()
|
79
|
+
setShowPassphrase(!showPassphrase)
|
80
|
+
}
|
78
81
|
|
79
82
|
const classes = classnames(buildCss('pb_passphrase'), globalProps(props), className)
|
80
83
|
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-06-
|
12
|
+
date: 2021-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|