playbook_ui_docs 14.5.0.pre.alpha.20241007playbookwebsiteaddrdbms4036 → 14.5.0.pre.rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +1 -1
  3. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +2 -10
  4. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.html.erb +1 -5
  5. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.html.erb +1 -5
  6. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb +1 -5
  7. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb +1 -5
  8. data/app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb +1 -5
  9. data/app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb +1 -5
  10. data/app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb +1 -5
  11. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +0 -2
  12. data/app/pb_kits/playbook/pb_form_pill/docs/index.js +0 -1
  13. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.jsx +1 -1
  14. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -3
  15. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -2
  16. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +1 -12
  17. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +1 -3
  18. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +13 -14
  19. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +4 -4
  20. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb +0 -2
  21. data/app/pb_kits/playbook/pb_radio/docs/example.yml +0 -1
  22. data/app/pb_kits/playbook/pb_radio/docs/index.js +0 -1
  23. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  24. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
  25. data/dist/playbook-doc.js +1 -1
  26. metadata +2 -20
  27. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +0 -117
  28. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -43
  29. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +0 -1
  30. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +0 -63
  31. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +0 -55
  32. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +0 -113
  33. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -12
  34. data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -5
  35. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb +0 -19
  36. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx +0 -27
  37. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md +0 -1
  38. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.jsx +0 -105
  39. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.md +0 -1
  40. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.jsx +0 -106
  41. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.md +0 -1
  42. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +0 -62
  43. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb +0 -88
  44. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx +0 -60
@@ -1,106 +0,0 @@
1
- import React from "react";
2
- import MultiLevelSelect from "../_multi_level_select";
3
- import Badge from "../../pb_badge/_badge";
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
- status: "active",
18
- children: [
19
- {
20
- label: "Talent Acquisition",
21
- value: "Talent Acquisition",
22
- id: "talent1",
23
- },
24
- {
25
- label: "Business Affairs",
26
- value: "Business Affairs",
27
- id: "business1",
28
- status: "active",
29
- variant: "primary",
30
-
31
- children: [
32
- {
33
- label: "Initiatives",
34
- value: "Initiatives",
35
- id: "initiative1",
36
- },
37
- {
38
- label: "Learning & Development",
39
- value: "Learning & Development",
40
- id: "development1",
41
- status: "Inactive",
42
- },
43
- ],
44
- },
45
- {
46
- label: "People Experience",
47
- value: "People Experience",
48
- id: "experience1",
49
- },
50
- ],
51
- },
52
- {
53
- label: "Contact Center",
54
- value: "Contact Center",
55
- id: "contact1",
56
- status: "Inactive",
57
- variant: "error",
58
- children: [
59
- {
60
- label: "Appointment Management",
61
- value: "Appointment Management",
62
- id: "appointment1",
63
- },
64
- {
65
- label: "Customer Service",
66
- value: "Customer Service",
67
- id: "customer1",
68
- },
69
- {
70
- label: "Energy",
71
- value: "Energy",
72
- id: "energy1",
73
- },
74
- ],
75
- },
76
- ],
77
- },
78
- ];
79
-
80
- const MultiLevelSelectWithChildrenWithRadios = (props) => {
81
- return (
82
- <div>
83
- <MultiLevelSelect
84
- id="multiselect-with-children"
85
- onSelect={(selectedNodes) =>
86
- console.log("Selected Items", selectedNodes)
87
- }
88
- treeData={treeData}
89
- variant="single"
90
- {...props}
91
- >
92
- <MultiLevelSelect.Options>
93
- {(item) => (
94
- <Badge
95
- marginLeft="sm"
96
- text={item.status}
97
- variant={item.status === "active" ? "success" : "warning"}
98
- />
99
- )}
100
- </MultiLevelSelect.Options>
101
- </MultiLevelSelect>
102
- </div>
103
- );
104
- };
105
-
106
- export default MultiLevelSelectWithChildrenWithRadios;
@@ -1 +0,0 @@
1
- The MultiLevelSelect subcomponent structure is also available in the 'Single Select' variant. In this variant, the children will be rendered to the right of the Radios and their labels.
@@ -1,62 +0,0 @@
1
- import React from 'react'
2
- import Radio from '../_radio'
3
- import Select from '../../pb_select/_select'
4
- import Typeahead from '../../pb_typeahead/_typeahead'
5
- import Title from '../../pb_title/_title'
6
-
7
- const RadioChildren = (props) => {
8
-
9
-
10
- const options = [
11
- { label: 'Orange', value: 'Orange' },
12
- { label: 'Red', value: 'Red' },
13
- { label: 'Green', value: 'Green' },
14
- { label: 'Blue', value: 'Blue' },
15
- ]
16
-
17
- return (
18
- <div>
19
- <Radio
20
- customChildren
21
- label="Select"
22
- marginBottom="sm"
23
- name="Group1"
24
- tabIndex={0}
25
- value="Select"
26
- {...props}
27
- >
28
- <Select
29
- marginBottom="none"
30
- minWidth="xs"
31
- options={options}
32
- />
33
- </Radio>
34
- <Radio
35
- customChildren
36
- label="Typeahead"
37
- marginBottom="sm"
38
- name="Group1"
39
- tabIndex={0}
40
- value="Typeahead"
41
- {...props}
42
- >
43
- <Typeahead
44
- marginBottom="none"
45
- minWidth="xs"
46
- options={options}
47
- />
48
- </Radio>
49
- <Radio
50
- customChildren
51
- defaultChecked={false}
52
- label="Typography"
53
- name="Group1"
54
- value="Typography"
55
- {...props}
56
- >
57
- <Title text="Custom Typography" />
58
- </Radio>
59
- </div>
60
- )
61
- }
62
- export default RadioChildren
@@ -1,88 +0,0 @@
1
- <%
2
- options = [
3
- { label: 'Orange', value: '#FFA500' },
4
- { label: 'Red', value: '#FF0000' },
5
- { label: 'Green', value: '#00FF00' },
6
- { label: 'Blue', value: '#0000FF' },
7
- ]
8
- %>
9
-
10
- <%= pb_rails("typeahead", props: {
11
- id: "typeahead-default",
12
- placeholder: "All Colors",
13
- options: options,
14
- label: "None",
15
- name: :foo,
16
- is_multi: false,
17
- margin_bottom: "none",
18
- })
19
- %>
20
- <%= pb_rails("typeahead", props: {
21
- id: "typeahead-default",
22
- placeholder: "All Colors",
23
- options: options,
24
- label: "XXS",
25
- name: :foo,
26
- is_multi: false,
27
- margin_bottom: "xxs",
28
- })
29
- %>
30
- <%= pb_rails("typeahead", props: {
31
- id: "typeahead-default",
32
- placeholder: "All Colors",
33
- options: options,
34
- label: "XS",
35
- name: :foo,
36
- is_multi: false,
37
- margin_bottom: "xs",
38
- })
39
- %>
40
- <%= pb_rails("typeahead", props: {
41
- id: "typeahead-default",
42
- placeholder: "All Colors",
43
- options: options,
44
- label: "Default - SM",
45
- name: :foo,
46
- is_multi: false,
47
- })
48
- %>
49
- <%= pb_rails("typeahead", props: {
50
- id: "typeahead-default",
51
- placeholder: "All Colors",
52
- options: options,
53
- label: "MD",
54
- name: :foo,
55
- is_multi: false,
56
- margin_bottom: "md",
57
- })
58
- %>
59
- <%= pb_rails("typeahead", props: {
60
- id: "typeahead-default",
61
- placeholder: "All Colors",
62
- options: options,
63
- label: "LG",
64
- name: :foo,
65
- is_multi: false,
66
- margin_bottom: "lg",
67
- })
68
- %>
69
- <%= pb_rails("typeahead", props: {
70
- id: "typeahead-default",
71
- placeholder: "All Colors",
72
- options: options,
73
- label: "XL",
74
- name: :foo,
75
- is_multi: false,
76
- margin_bottom: "xl",
77
- })
78
- %>
79
-
80
- <%= javascript_tag defer: "defer" do %>
81
- document.addEventListener("pb-typeahead-kit-typeahead-default-result-option-select", function(event) {
82
- console.log('Single Option selected')
83
- console.dir(event.detail)
84
- })
85
- document.addEventListener("pb-typeahead-kit-typeahead-default-result-clear", function() {
86
- console.log('All options cleared')
87
- })
88
- <% end %>
@@ -1,60 +0,0 @@
1
- import React from 'react'
2
-
3
- import Typeahead from '../_typeahead'
4
-
5
- const options = [
6
- { label: 'Orange', value: '#FFA500' },
7
- { label: 'Red', value: '#FF0000' },
8
- { label: 'Green', value: '#00FF00' },
9
- { label: 'Blue', value: '#0000FF' },
10
- ]
11
-
12
- const TypeaheadMarginBottom = (props) => {
13
- return (
14
- <>
15
- <Typeahead
16
- label="None"
17
- marginBottom="none"
18
- options={options}
19
- {...props}
20
- />
21
- <Typeahead
22
- label="XXS"
23
- marginBottom="xxs"
24
- options={options}
25
- {...props}
26
- />
27
- <Typeahead
28
- label="XS"
29
- marginBottom="xs"
30
- options={options}
31
- {...props}
32
- />
33
- <Typeahead
34
- label="Default - SM"
35
- options={options}
36
- {...props}
37
- />
38
- <Typeahead
39
- label="MD"
40
- marginBottom="md"
41
- options={options}
42
- {...props}
43
- />
44
- <Typeahead
45
- label="LG"
46
- marginBottom="lg"
47
- options={options}
48
- {...props}
49
- />
50
- <Typeahead
51
- label="XL"
52
- marginBottom="xl"
53
- options={options}
54
- {...props}
55
- />
56
- </>
57
- )
58
- }
59
-
60
- export default TypeaheadMarginBottom