playbook_ui_docs 14.4.0.pre.alpha.stephenagreerpatch13922 → 14.4.0.pre.rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) 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/example.yml +0 -2
  14. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
  15. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +0 -2
  16. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +0 -1
  17. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +1 -12
  18. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +1 -3
  19. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +13 -14
  20. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +4 -4
  21. data/app/pb_kits/playbook/pb_radio/docs/{_radio_custom_children.jsx → _radio_children.jsx} +2 -5
  22. data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -2
  23. data/app/pb_kits/playbook/pb_radio/docs/index.js +1 -1
  24. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb +1 -1
  25. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx +1 -1
  26. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  27. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
  28. data/dist/playbook-doc.js +1 -1
  29. metadata +3 -26
  30. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +0 -117
  31. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -43
  32. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +0 -1
  33. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +0 -63
  34. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +0 -55
  35. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +0 -113
  36. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -12
  37. data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -5
  38. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.html.erb +0 -117
  39. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.jsx +0 -227
  40. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.md +0 -1
  41. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.html.erb +0 -72
  42. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.jsx +0 -91
  43. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_rails.md +0 -1
  44. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_react.md +0 -1
  45. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.html.erb +0 -73
  46. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.jsx +0 -86
  47. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb +0 -50
  48. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.md +0 -1
  49. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +0 -31
  50. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +0 -26
  51. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_rails.md +0 -1
  52. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_react.md +0 -1
@@ -1,227 +0,0 @@
1
- import React from 'react'
2
- import { FormPill, Title } from 'playbook-ui'
3
-
4
- const FormPillColors = (props) => {
5
- return (
6
- <div>
7
- <Title
8
- marginBottom="sm"
9
- size={4}
10
- text="Status Colors"
11
- {...props}
12
- />
13
- <FormPill
14
- onClick={() => {
15
- alert('Click!')
16
- }}
17
- tabIndex={0}
18
- text="Primary"
19
- {...props}
20
- />
21
- <FormPill
22
- color="neutral"
23
- onClick={() => {
24
- alert('Click!')
25
- }}
26
- tabIndex={0}
27
- text="Neutral"
28
- {...props}
29
- />
30
- <FormPill
31
- color="success"
32
- onClick={() => {
33
- alert('Click!')
34
- }}
35
- tabIndex={0}
36
- text="Success"
37
- {...props}
38
- />
39
- <FormPill
40
- color="warning"
41
- onClick={() => {
42
- alert('Click!')
43
- }}
44
- tabIndex={0}
45
- text="Warning"
46
- {...props}
47
- />
48
- <FormPill
49
- color="error"
50
- onClick={() => {
51
- alert('Click!')
52
- }}
53
- tabIndex={0}
54
- text="Error"
55
- {...props}
56
- />
57
- <FormPill
58
- color="info"
59
- onClick={() => {
60
- alert('Click!')
61
- }}
62
- tabIndex={0}
63
- text="Info"
64
- {...props}
65
- />
66
- <Title
67
- marginBottom="sm"
68
- marginTop="md"
69
- size={4}
70
- text="Data Colors"
71
- {...props}
72
- />
73
- <FormPill
74
- color="data_1"
75
- onClick={() => {
76
- alert('Click!')
77
- }}
78
- tabIndex={0}
79
- text="Data 1"
80
- {...props}
81
- />
82
- <FormPill
83
- color="data_2"
84
- onClick={() => {
85
- alert('Click!')
86
- }}
87
- tabIndex={0}
88
- text="Data 2"
89
- {...props}
90
- />
91
- <FormPill
92
- color="data_3"
93
- onClick={() => {
94
- alert('Click!')
95
- }}
96
- tabIndex={0}
97
- text="Data 3"
98
- {...props}
99
- />
100
- <FormPill
101
- color="data_4"
102
- onClick={() => {
103
- alert('Click!')
104
- }}
105
- tabIndex={0}
106
- text="Data 4"
107
- {...props}
108
- />
109
- <FormPill
110
- color="data_5"
111
- onClick={() => {
112
- alert('Click!')
113
- }}
114
- tabIndex={0}
115
- text="Data 5"
116
- {...props}
117
- />
118
- <FormPill
119
- color="data_6"
120
- onClick={() => {
121
- alert('Click!')
122
- }}
123
- tabIndex={0}
124
- text="Data 6"
125
- {...props}
126
- />
127
- <FormPill
128
- color="data_7"
129
- onClick={() => {
130
- alert('Click!')
131
- }}
132
- tabIndex={0}
133
- text="Data 7"
134
- {...props}
135
- />
136
- <FormPill
137
- color="data_8"
138
- onClick={() => {
139
- alert('Click!')
140
- }}
141
- tabIndex={0}
142
- text="Data 8"
143
- {...props}
144
- />
145
- <Title
146
- marginBottom="sm"
147
- marginTop="md"
148
- size={4}
149
- text="Product Colors"
150
- {...props}
151
- />
152
- <FormPill
153
- color="windows"
154
- onClick={() => {
155
- alert('Click!')
156
- }}
157
- tabIndex={0}
158
- text="Windows"
159
- {...props}
160
- />
161
- <FormPill
162
- color="siding"
163
- onClick={() => {
164
- alert('Click!')
165
- }}
166
- tabIndex={0}
167
- text="Siding"
168
- {...props}
169
- />
170
- <FormPill
171
- color="roofing"
172
- onClick={() => {
173
- alert('Click!')
174
- }}
175
- tabIndex={0}
176
- text="Roofing"
177
- {...props}
178
- />
179
- <FormPill
180
- color="doors"
181
- onClick={() => {
182
- alert('Click!')
183
- }}
184
- tabIndex={0}
185
- text="Doors"
186
- {...props}
187
- />
188
- <FormPill
189
- color="gutters"
190
- onClick={() => {
191
- alert('Click!')
192
- }}
193
- tabIndex={0}
194
- text="Gutters"
195
- {...props}
196
- />
197
- <FormPill
198
- color="solar"
199
- onClick={() => {
200
- alert('Click!')
201
- }}
202
- tabIndex={0}
203
- text="Solar"
204
- {...props}
205
- />
206
- <FormPill
207
- color="insulation"
208
- onClick={() => {
209
- alert('Click!')
210
- }}
211
- tabIndex={0}
212
- text="Insulation"
213
- {...props}
214
- />
215
- <FormPill
216
- color="accessories"
217
- onClick={() => {
218
- alert('Click!')
219
- }}
220
- tabIndex={0}
221
- text="Accessories"
222
- {...props}
223
- />
224
- </div>
225
- )
226
- }
227
- export default FormPillColors
@@ -1 +0,0 @@
1
- The Status, Data, and Product colors highlighted above can be passed to the `color` prop. Primary is the default color. Form pills with a text tag, an avatar, or an icon with text tag can all receive the `color` prop.
@@ -1,72 +0,0 @@
1
- <% treeData = [{
2
- label: "Power Home Remodeling",
3
- value: "Power Home Remodeling",
4
- id: "100",
5
- expanded: true,
6
- children: [
7
- {
8
- label: "People",
9
- value: "People",
10
- id: "101",
11
- expanded: true,
12
- children: [
13
- {
14
- label: "Talent Acquisition",
15
- value: "Talent Acquisition",
16
- id: "102",
17
- },
18
- {
19
- label: "Business Affairs",
20
- value: "Business Affairs",
21
- id: "103",
22
- children: [
23
- {
24
- label: "Initiatives",
25
- value: "Initiatives",
26
- id: "104",
27
- },
28
- {
29
- label: "Learning & Development",
30
- value: "Learning & Development",
31
- id: "105",
32
- },
33
- ],
34
- },
35
- {
36
- label: "People Experience",
37
- value: "People Experience",
38
- id: "106",
39
- },
40
- ],
41
- },
42
- {
43
- label: "Contact Center",
44
- value: "Contact Center",
45
- id: "107",
46
- children: [
47
- {
48
- label: "Appointment Management",
49
- value: "Appointment Management",
50
- id: "108",
51
- },
52
- {
53
- label: "Customer Service",
54
- value: "Customer Service",
55
- id: "109",
56
- },
57
- {
58
- label: "Energy",
59
- value: "Energy",
60
- id: "110",
61
- },
62
- ],
63
- },
64
- ],
65
- }] %>
66
-
67
- <%= pb_rails("multi_level_select", props: {
68
- id: "multi-level-select-default-rails",
69
- name: "my_array",
70
- tree_data: treeData,
71
- pill_color: "neutral"
72
- }) %>
@@ -1,91 +0,0 @@
1
- import React from "react";
2
- import MultiLevelSelect from "../_multi_level_select";
3
-
4
- const treeData = [
5
- {
6
- label: "Power Home Remodeling",
7
- value: "Power Home Remodeling",
8
- id: "powerhome1",
9
- expanded: true,
10
- children: [
11
- {
12
- label: "People",
13
- value: "People",
14
- id: "people1",
15
- expanded: true,
16
- children: [
17
- {
18
- label: "Talent Acquisition",
19
- value: "Talent Acquisition",
20
- id: "talent1",
21
- },
22
- {
23
- label: "Business Affairs",
24
- value: "Business Affairs",
25
- id: "business1",
26
- children: [
27
- {
28
- label: "Initiatives",
29
- value: "Initiatives",
30
- id: "initiative1",
31
- },
32
- {
33
- label: "Learning & Development",
34
- value: "Learning & Development",
35
- id: "development1",
36
- },
37
- ],
38
- },
39
- {
40
- label: "People Experience",
41
- value: "People Experience",
42
- id: "experience1",
43
- },
44
- ],
45
- },
46
- {
47
- label: "Contact Center",
48
- value: "Contact Center",
49
- id: "contact1",
50
- children: [
51
- {
52
- label: "Appointment Management",
53
- value: "Appointment Management",
54
- id: "appointment1",
55
- },
56
- {
57
- label: "Customer Service",
58
- value: "Customer Service",
59
- id: "customer1",
60
- },
61
- {
62
- label: "Energy",
63
- value: "Energy",
64
- id: "energy1",
65
- },
66
- ],
67
- },
68
- ],
69
- },
70
- ];
71
-
72
- const MultiLevelSelectColor = (props) => {
73
- return (
74
- <div>
75
- <MultiLevelSelect
76
- id='multiselect-color'
77
- onSelect={(selectedNodes) =>
78
- console.log(
79
- "Selected Items",
80
- selectedNodes
81
- )
82
- }
83
- pillColor="neutral"
84
- treeData={treeData}
85
- {...props}
86
- />
87
- </div>
88
- )
89
- };
90
-
91
- export default MultiLevelSelectColor;
@@ -1 +0,0 @@
1
- Change the form pill color by passing the optional `pill_color` prop. Product, Data, and Status colors are available options. Check them out <a href="https://playbook.powerapp.cloud/kits/form_pill#form-pill-colors" target="_blank">here</a> in the Form Pill colors example.
@@ -1 +0,0 @@
1
- Change the form pill color by passing the optional `pillColor` prop. Product, Data, and Status colors are available options. Check them out <a href="https://playbook.powerapp.cloud/kits/form_pill/react#form-pill-colors" target="_blank">here</a> in the Form Pill colors example.
@@ -1,73 +0,0 @@
1
- <%= pb_rails("multiple_users_stacked", props: {
2
- variant: "bubble",
3
- users: [
4
- {
5
- name: "Patrick Welch",
6
- image_url: "https://randomuser.me/api/portraits/men/9.jpg",
7
- }
8
- ]
9
- }) %>
10
-
11
- <br/><br/>
12
-
13
- <%= pb_rails("multiple_users_stacked", props: {
14
- variant: "bubble",
15
- users: [
16
- {
17
- name: "Patrick Welch",
18
- image_url: "https://randomuser.me/api/portraits/men/9.jpg",
19
- },
20
- {
21
- name: "Lucille Sanchez",
22
- image_url: "https://randomuser.me/api/portraits/women/6.jpg",
23
- }
24
- ]
25
- }) %>
26
-
27
- <br/><br/>
28
-
29
- <%= pb_rails("multiple_users_stacked", props: {
30
- variant: "bubble",
31
- users: [
32
- {
33
- name: "Patrick Welch",
34
- image_url: "https://randomuser.me/api/portraits/men/9.jpg",
35
- },
36
- {
37
- name: "Lucille Sanchez",
38
- image_url: "https://randomuser.me/api/portraits/women/6.jpg",
39
- },
40
- {
41
- name: "Beverly Reyes",
42
- image_url: "https://randomuser.me/api/portraits/women/74.jpg",
43
- },
44
- ]
45
- }) %>
46
-
47
- <br/><br/>
48
-
49
- <%= pb_rails("multiple_users_stacked", props: {
50
- variant: "bubble",
51
- users: [
52
- {
53
- name: "Patrick Welch",
54
- image_url: "https://randomuser.me/api/portraits/men/9.jpg",
55
- },
56
- {
57
- name: "Lucille Sanchez",
58
- image_url: "https://randomuser.me/api/portraits/women/6.jpg",
59
- },
60
- {
61
- name: "Beverly Reyes",
62
- image_url: "https://randomuser.me/api/portraits/women/74.jpg",
63
- },
64
- {
65
- name: "Keith Craig",
66
- image_url: "https://randomuser.me/api/portraits/men/40.jpg",
67
- },
68
- {
69
- name: "Alicia Cooper",
70
- image_url: "https://randomuser.me/api/portraits/women/46.jpg",
71
- }
72
- ]
73
- }) %>
@@ -1,86 +0,0 @@
1
- import React from 'react'
2
-
3
- import MultipleUsersStacked from '../_multiple_users_stacked'
4
-
5
- const MultipleUsersStackedBubble = (props) => {
6
- return (
7
- <div>
8
- <MultipleUsersStacked
9
- users={[
10
- {
11
- name: 'Patrick Welch',
12
- imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
13
- },
14
- ]}
15
- variant="bubble"
16
- {...props}
17
- />
18
- <br />
19
- <br />
20
- <MultipleUsersStacked
21
- users={[
22
- {
23
- name: 'Patrick Welch',
24
- imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
25
- },
26
- {
27
- name: 'Lucille Sanchez',
28
- imageUrl: 'https://randomuser.me/api/portraits/women/6.jpg',
29
- },
30
- ]}
31
- variant="bubble"
32
- {...props}
33
- />
34
- <br />
35
- <br />
36
- <MultipleUsersStacked
37
- users={[
38
- {
39
- name: 'Patrick Welch',
40
- imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
41
- },
42
- {
43
- name: 'Lucille Sanchez',
44
- imageUrl: 'https://randomuser.me/api/portraits/women/6.jpg',
45
- },
46
- {
47
- name: 'Beverly Reyes',
48
- imageUrl: 'https://randomuser.me/api/portraits/women/74.jpg',
49
- },
50
- ]}
51
- variant="bubble"
52
- {...props}
53
- />
54
- <br />
55
- <br />
56
- <MultipleUsersStacked
57
- users={[
58
- {
59
- name: 'Patrick Welch',
60
- imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
61
- },
62
- {
63
- name: 'Lucille Sanchez',
64
- imageUrl: 'https://randomuser.me/api/portraits/women/6.jpg',
65
- },
66
- {
67
- name: 'Beverly Reyes',
68
- imageUrl: 'https://randomuser.me/api/portraits/women/74.jpg',
69
- },
70
- {
71
- name: 'Keith Craig',
72
- imageUrl: 'https://randomuser.me/api/portraits/men/40.jpg',
73
- },
74
- {
75
- name: 'Alicia Cooper',
76
- imageUrl: 'https://randomuser.me/api/portraits/women/46.jpg',
77
- },
78
- ]}
79
- variant="bubble"
80
- {...props}
81
- />
82
- </div>
83
- )
84
- }
85
-
86
- export default MultipleUsersStackedBubble
@@ -1,50 +0,0 @@
1
- <%
2
- options = [
3
- { label: "Orange", value: "Orange" },
4
- { label: "Red", value: "Red" },
5
- { label: "Green", value: "Green" },
6
- { label: "Blue", value: "Blue" },
7
- ]
8
- %>
9
-
10
- <%= pb_rails("radio", props: {
11
- custom_children: true,
12
- label: "Select",
13
- margin_bottom: "sm",
14
- name: "Group1",
15
- value: "Select",
16
- }) do %>
17
- <%= pb_rails("select", props: {
18
- min_width: "xs",
19
- options: options,
20
- }) %>
21
- <% end %>
22
-
23
- <%= pb_rails("radio", props: {
24
- custom_children: true,
25
- label: "Typeahead",
26
- margin_bottom: "sm",
27
- name: "Group1",
28
- value: "Typeahead",
29
- }) do %>
30
- <%= pb_rails("typeahead", props: {
31
- id: "typeahead-radio",
32
- is_multi: false,
33
- min_width: "xs",
34
- options: options,
35
- placeholder: "Select...",
36
- })
37
- %>
38
- <% end %>
39
-
40
- <%= pb_rails("radio", props: {
41
- custom_children: true,
42
- label: "Typography",
43
- name: "Group1",
44
- value: "Typography",
45
- }) do %>
46
- <%= pb_rails("title", props: {
47
- text: "Custom Typography",
48
- })
49
- %>
50
- <% end %>
@@ -1 +0,0 @@
1
- Use the `custom_children` prop to enable the use of kits instead of text labels.
@@ -1,31 +0,0 @@
1
- <%
2
- options = [
3
- { label: 'Windows', value: '#FFA500' },
4
- { label: 'Siding', value: '#FF0000' },
5
- { label: 'Doors', value: '#00FF00' },
6
- { label: 'Roofs', value: '#0000FF' },
7
- ]
8
- %>
9
-
10
- <%= pb_rails("typeahead", props: { id: "typeahead-pills-example1", pill_color: "neutral", default_options: [options.first], options: options, label: "Colors", name: :foo, pills: true }) %>
11
-
12
- <%= pb_rails("button", props: {id: "clear-pills", text: "Clear All Options", variant: "secondary"}) %>
13
-
14
- <!-- This section is an example of the available JavaScript event hooks -->
15
- <%= javascript_tag defer: "defer" do %>
16
- document.addEventListener("pb-typeahead-kit-typeahead-pills-example1-result-option-select", function(event) {
17
- console.log('Option selected')
18
- console.dir(event.detail)
19
- })
20
- document.addEventListener("pb-typeahead-kit-typeahead-pills-example1-result-option-remove", function(event) {
21
- console.log('Option removed')
22
- console.dir(event.detail)
23
- })
24
- document.addEventListener("pb-typeahead-kit-typeahead-pills-example1-result-clear", function() {
25
- console.log('All options cleared')
26
- })
27
-
28
- document.querySelector('#clear-pills').addEventListener('click', function() {
29
- document.dispatchEvent(new CustomEvent('pb-typeahead-kit-typeahead-pills-example1:clear'))
30
- })
31
- <% end %>
@@ -1,26 +0,0 @@
1
- import React from 'react'
2
- import { Typeahead } from 'playbook-ui'
3
-
4
- const options = [
5
- { label: 'Windows', value: '#FFA500' },
6
- { label: 'Siding', value: '#FF0000' },
7
- { label: 'Doors', value: '#00FF00' },
8
- { label: 'Roofs', value: '#0000FF' },
9
- ]
10
-
11
- const TypeaheadWithPills = (props) => {
12
- return (
13
- <>
14
- <Typeahead
15
- isMulti
16
- label="Colors"
17
- options={options}
18
- pillColor="neutral"
19
- placeholder=""
20
- {...props}
21
- />
22
- </>
23
- )
24
- }
25
-
26
- export default TypeaheadWithPills
@@ -1 +0,0 @@
1
- Change the form pill color by passing the optional `pill_color` prop. Product, Data, and Status colors are available options. Check them out <a href="https://playbook.powerapp.cloud/kits/form_pill#form-pill-colors" target="_blank">here</a> in the Form Pill colors example.
@@ -1 +0,0 @@
1
- Change the form pill color by passing the optional `pillColor` prop. Product, Data, and Status colors are available options. Check them out <a href="https://playbook.powerapp.cloud/kits/form_pill/react#form-pill-colors" target="_blank">here</a> in the Form Pill colors example.