playbook_ui_docs 14.15.0.pre.alpha.play1854reacthookmultilvlselect6572 → 14.15.0.pre.alpha.play1917lodashremoval2of36613
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_multi_level_select/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon_rails.html.erb +22 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx +66 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.md +1 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -0
- data/dist/playbook-doc.js +1 -1
- metadata +5 -5
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx +0 -91
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.md +0 -1
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.erb +0 -10
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: 14.15.0.pre.alpha.
|
4
|
+
version: 14.15.0.pre.alpha.play1917lodashremoval2of36613
|
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: 2025-03-
|
12
|
+
date: 2025-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -1263,8 +1263,6 @@ files:
|
|
1263
1263
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.md
|
1264
1264
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled.html.erb
|
1265
1265
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled.jsx
|
1266
|
-
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx
|
1267
|
-
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.md
|
1268
1266
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.html.erb
|
1269
1267
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.md
|
1270
1268
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.html.erb
|
@@ -2093,9 +2091,9 @@ files:
|
|
2093
2091
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay.md
|
2094
2092
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay_rails.html.erb
|
2095
2093
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_delay_rails.md
|
2096
|
-
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.erb
|
2097
2094
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.jsx
|
2098
2095
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.md
|
2096
|
+
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon_rails.html.erb
|
2099
2097
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.html.erb
|
2100
2098
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.jsx
|
2101
2099
|
- app/pb_kits/playbook/pb_tooltip/docs/_tooltip_interaction.md
|
@@ -2150,6 +2148,8 @@ files:
|
|
2150
2148
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx
|
2151
2149
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.html.erb
|
2152
2150
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.jsx
|
2151
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx
|
2152
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.md
|
2153
2153
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.html.erb
|
2154
2154
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.jsx
|
2155
2155
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md
|
@@ -1,91 +0,0 @@
|
|
1
|
-
import React from "react"
|
2
|
-
import MultiLevelSelect from "../_multi_level_select"
|
3
|
-
import { useForm } from "react-hook-form"
|
4
|
-
|
5
|
-
const treeData = [
|
6
|
-
{
|
7
|
-
label: "Power Home Remodeling",
|
8
|
-
value: "Power Home Remodeling",
|
9
|
-
id: "powerhome1",
|
10
|
-
expanded: true,
|
11
|
-
children: [
|
12
|
-
{
|
13
|
-
label: "People",
|
14
|
-
value: "People",
|
15
|
-
id: "people1",
|
16
|
-
expanded: true,
|
17
|
-
children: [
|
18
|
-
{
|
19
|
-
label: "Talent Acquisition",
|
20
|
-
value: "Talent Acquisition",
|
21
|
-
id: "talent1",
|
22
|
-
},
|
23
|
-
{
|
24
|
-
label: "Business Affairs",
|
25
|
-
value: "Business Affairs",
|
26
|
-
id: "business1",
|
27
|
-
children: [
|
28
|
-
{
|
29
|
-
label: "Initiatives",
|
30
|
-
value: "Initiatives",
|
31
|
-
id: "initiative1",
|
32
|
-
},
|
33
|
-
{
|
34
|
-
label: "Learning & Development",
|
35
|
-
value: "Learning & Development",
|
36
|
-
id: "development1",
|
37
|
-
},
|
38
|
-
],
|
39
|
-
},
|
40
|
-
{
|
41
|
-
label: "People Experience",
|
42
|
-
value: "People Experience",
|
43
|
-
id: "experience1",
|
44
|
-
},
|
45
|
-
],
|
46
|
-
},
|
47
|
-
{
|
48
|
-
label: "Contact Center",
|
49
|
-
value: "Contact Center",
|
50
|
-
id: "contact1",
|
51
|
-
children: [
|
52
|
-
{
|
53
|
-
label: "Appointment Management",
|
54
|
-
value: "Appointment Management",
|
55
|
-
id: "appointment1",
|
56
|
-
},
|
57
|
-
{
|
58
|
-
label: "Customer Service",
|
59
|
-
value: "Customer Service",
|
60
|
-
id: "customer1",
|
61
|
-
},
|
62
|
-
{
|
63
|
-
label: "Energy",
|
64
|
-
value: "Energy",
|
65
|
-
id: "energy1",
|
66
|
-
},
|
67
|
-
],
|
68
|
-
},
|
69
|
-
],
|
70
|
-
},
|
71
|
-
]
|
72
|
-
|
73
|
-
const MultiLevelSelectReactHook = (props) => {
|
74
|
-
const { register, watch } = useForm()
|
75
|
-
const selectedItems = watch("departments")
|
76
|
-
selectedItems && console.log("Selected Items", selectedItems)
|
77
|
-
|
78
|
-
return (
|
79
|
-
<div>
|
80
|
-
<MultiLevelSelect
|
81
|
-
id="multiselect-default"
|
82
|
-
marginBottom="md"
|
83
|
-
treeData={treeData}
|
84
|
-
{...register("departments")}
|
85
|
-
{...props}
|
86
|
-
/>
|
87
|
-
</div>
|
88
|
-
)
|
89
|
-
}
|
90
|
-
|
91
|
-
export default MultiLevelSelectReactHook
|
@@ -1 +0,0 @@
|
|
1
|
-
You can pass `react-hook-form` props to the Typeahead kit. Check your console to see the full data selected from this example.
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<%= pb_rails("icon_circle", props: { icon: "paper-plane", id: "result-1-sample-email-link" }) %>
|
2
|
-
|
3
|
-
<%= pb_rails("tooltip", props: {
|
4
|
-
trigger_element_id: "result-1-sample-email-link",
|
5
|
-
tooltip_id: "sample-email-tooltip-result-1",
|
6
|
-
position: "top",
|
7
|
-
dark: true
|
8
|
-
}) do %>
|
9
|
-
Send Email
|
10
|
-
<% end %>
|