playbook_ui 14.15.0.pre.alpha.play1854reacthookmultilvlselect6572 → 14.15.0.pre.alpha.play1910emptystatekitreactbeta6579

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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +4 -2
  3. data/app/pb_kits/playbook/pb_empty_state/_empty_state.scss +38 -0
  4. data/app/pb_kits/playbook/pb_empty_state/_empty_state.tsx +199 -0
  5. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.jsx +38 -0
  6. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.jsx +19 -0
  7. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.jsx +35 -0
  8. data/app/pb_kits/playbook/pb_empty_state/docs/example.yml +7 -0
  9. data/app/pb_kits/playbook/pb_empty_state/docs/index.js +3 -0
  10. data/app/pb_kits/playbook/pb_empty_state/empty_state.test.jsx +17 -0
  11. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +5 -20
  12. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -1
  13. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
  14. data/dist/chunks/{_typeahead-DKSD8vAY.js → _typeahead-D2Wtk1Vx.js} +1 -1
  15. data/dist/chunks/_weekday_stacked-toeDpRDd.js +45 -0
  16. data/dist/chunks/vendor.js +1 -1
  17. data/dist/menu.yml +8 -0
  18. data/dist/playbook-doc.js +1 -1
  19. data/dist/playbook-rails-react-bindings.js +1 -1
  20. data/dist/playbook-rails.js +1 -1
  21. data/dist/playbook.css +1 -1
  22. data/lib/playbook/version.rb +1 -1
  23. metadata +11 -5
  24. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx +0 -91
  25. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.md +0 -1
  26. data/dist/chunks/_weekday_stacked-C-GXG8yh.js +0 -45
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.15.0"
5
- VERSION = "14.15.0.pre.alpha.play1854reacthookmultilvlselect6572"
5
+ VERSION = "14.15.0.pre.alpha.play1910emptystatekitreactbeta6579"
6
6
  end
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: 14.15.0.pre.alpha.play1854reacthookmultilvlselect6572
4
+ version: 14.15.0.pre.alpha.play1910emptystatekitreactbeta6579
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -1308,6 +1308,14 @@ files:
1308
1308
  - app/pb_kits/playbook/pb_dropdown/utilities/clickOutsideHelper.tsx
1309
1309
  - app/pb_kits/playbook/pb_dropdown/utilities/index.ts
1310
1310
  - app/pb_kits/playbook/pb_dropdown/utilities/subComponentHelper.tsx
1311
+ - app/pb_kits/playbook/pb_empty_state/_empty_state.scss
1312
+ - app/pb_kits/playbook/pb_empty_state/_empty_state.tsx
1313
+ - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.jsx
1314
+ - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.jsx
1315
+ - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.jsx
1316
+ - app/pb_kits/playbook/pb_empty_state/docs/example.yml
1317
+ - app/pb_kits/playbook/pb_empty_state/docs/index.js
1318
+ - app/pb_kits/playbook/pb_empty_state/empty_state.test.jsx
1311
1319
  - app/pb_kits/playbook/pb_enhanced_element/element_observer.ts
1312
1320
  - app/pb_kits/playbook/pb_enhanced_element/index.ts
1313
1321
  - app/pb_kits/playbook/pb_file_upload/_file_upload.scss
@@ -1981,8 +1989,6 @@ files:
1981
1989
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.md
1982
1990
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled.html.erb
1983
1991
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_disabled.jsx
1984
- - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx
1985
- - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.md
1986
1992
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.html.erb
1987
1993
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.md
1988
1994
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.html.erb
@@ -3405,8 +3411,8 @@ files:
3405
3411
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3406
3412
  - app/pb_kits/playbook/utilities/text.ts
3407
3413
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3408
- - dist/chunks/_typeahead-DKSD8vAY.js
3409
- - dist/chunks/_weekday_stacked-C-GXG8yh.js
3414
+ - dist/chunks/_typeahead-D2Wtk1Vx.js
3415
+ - dist/chunks/_weekday_stacked-toeDpRDd.js
3410
3416
  - dist/chunks/lazysizes-B7xYodB-.js
3411
3417
  - dist/chunks/lib-5OzNgeeu.js
3412
3418
  - dist/chunks/pb_form_validation-DGhKbZtO.js
@@ -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.