playbook_ui 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/_button.scss +0 -33
- data/app/pb_kits/playbook/pb_button/_button.tsx +26 -65
- data/app/pb_kits/playbook/pb_button/button.html.erb +0 -13
- data/app/pb_kits/playbook/pb_button/button.rb +2 -13
- 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/app/pb_kits/playbook/pb_dialog/dialogHelper.js +15 -16
- data/app/pb_kits/playbook/pb_icon/_icon.scss +0 -4
- data/app/pb_kits/playbook/pb_icon/_icon.tsx +1 -1
- data/app/pb_kits/playbook/pb_icon/icon.html.erb +1 -1
- data/dist/playbook-rails.js +4 -4
- data/lib/playbook/version.rb +1 -1
- 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
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: 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: actionpack
|
@@ -442,8 +442,6 @@ files:
|
|
442
442
|
- app/pb_kits/playbook/pb_button/docs/_button_loading.md
|
443
443
|
- app/pb_kits/playbook/pb_button/docs/_button_options.html.erb
|
444
444
|
- app/pb_kits/playbook/pb_button/docs/_button_options.jsx
|
445
|
-
- app/pb_kits/playbook/pb_button/docs/_button_reaction.html.erb
|
446
|
-
- app/pb_kits/playbook/pb_button/docs/_button_reaction.jsx
|
447
445
|
- app/pb_kits/playbook/pb_button/docs/_button_size.html.erb
|
448
446
|
- app/pb_kits/playbook/pb_button/docs/_button_size.jsx
|
449
447
|
- 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
|