playbook_ui_docs 12.33.0.pre.alpha.PLAY905reactionbuttons982 → 12.33.0.pre.alpha.revert2650closedialogonoutsideclick977
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_button/docs/index.js +1 -2
- data/dist/playbook-doc.js +7 -7
- metadata +2 -4
- data/app/pb_kits/playbook/pb_button/docs/_button_reaction.html.erb +0 -3
- data/app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx +0 -38
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui_docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.33.0.pre.alpha.
|
4
|
+
version: 12.33.0.pre.alpha.revert2650closedialogonoutsideclick977
|
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: 2023-07-
|
12
|
+
date: 2023-07-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -161,8 +161,6 @@ files:
|
|
161
161
|
- app/pb_kits/playbook/pb_button/docs/_button_loading.md
|
162
162
|
- app/pb_kits/playbook/pb_button/docs/_button_options.html.erb
|
163
163
|
- app/pb_kits/playbook/pb_button/docs/_button_options.jsx
|
164
|
-
- app/pb_kits/playbook/pb_button/docs/_button_reaction.html.erb
|
165
|
-
- app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
|
166
164
|
- app/pb_kits/playbook/pb_button/docs/_button_size.html.erb
|
167
165
|
- app/pb_kits/playbook/pb_button/docs/_button_size.jsx
|
168
166
|
- app/pb_kits/playbook/pb_button/docs/_button_size.md
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import React, {useState} from "react"
|
2
|
-
import { Button } from "../../"
|
3
|
-
|
4
|
-
const ButtonReaction = (props) => {
|
5
|
-
|
6
|
-
const [highlightActive, setHighlightActive] =useState(false)
|
7
|
-
|
8
|
-
return (
|
9
|
-
<div>
|
10
|
-
<Button
|
11
|
-
count={5}
|
12
|
-
icon="😍"
|
13
|
-
tabIndex={0}
|
14
|
-
variant="reaction"
|
15
|
-
{...props}
|
16
|
-
/>
|
17
|
-
<Button
|
18
|
-
count={153}
|
19
|
-
highlight = {highlightActive}
|
20
|
-
icon="🎉"
|
21
|
-
marginLeft='lg'
|
22
|
-
onClick={()=> setHighlightActive(!highlightActive)}
|
23
|
-
tabIndex={0}
|
24
|
-
variant="reaction"
|
25
|
-
{...props}
|
26
|
-
/>
|
27
|
-
<Button
|
28
|
-
marginLeft='lg'
|
29
|
-
tabIndex={0}
|
30
|
-
variant="reaction"
|
31
|
-
{...props}
|
32
|
-
/>
|
33
|
-
|
34
|
-
</div>
|
35
|
-
)
|
36
|
-
}
|
37
|
-
|
38
|
-
export default ButtonReaction
|