playbook_ui_docs 14.3.2.pre.alpha.revert3614PBNTR455ganttchartPOC3783 → 14.4.0.pre.alpha.PLAY1529removefaeasy3876

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 (47) 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 +10 -2
  4. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.html.erb +5 -1
  5. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.html.erb +5 -1
  6. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb +5 -1
  7. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb +5 -1
  8. data/app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb +5 -1
  9. data/app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb +5 -1
  10. data/app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb +5 -1
  11. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.html.erb +117 -0
  12. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.jsx +227 -0
  13. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.md +1 -0
  14. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +2 -0
  15. data/app/pb_kits/playbook/pb_form_pill/docs/index.js +1 -0
  16. data/app/pb_kits/playbook/pb_gantt_chart/docs/_gantt_chart_default.jsx +53 -0
  17. data/app/pb_kits/playbook/pb_gantt_chart/docs/example.yml +7 -0
  18. data/app/pb_kits/playbook/pb_gantt_chart/docs/index.js +1 -0
  19. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.html.erb +72 -0
  20. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.jsx +91 -0
  21. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_rails.md +1 -0
  22. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_react.md +1 -0
  23. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +2 -0
  24. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +1 -0
  25. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.html.erb +73 -0
  26. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.jsx +86 -0
  27. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +2 -0
  28. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +1 -0
  29. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +12 -1
  30. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +3 -1
  31. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +14 -13
  32. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +4 -4
  33. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb +48 -0
  34. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +59 -0
  35. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.md +1 -0
  36. data/app/pb_kits/playbook/pb_radio/docs/example.yml +2 -0
  37. data/app/pb_kits/playbook/pb_radio/docs/index.js +1 -0
  38. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb +88 -0
  39. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx +60 -0
  40. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +31 -0
  41. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +26 -0
  42. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_rails.md +1 -0
  43. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_react.md +1 -0
  44. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +4 -0
  45. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +2 -0
  46. data/dist/playbook-doc.js +1 -1
  47. metadata +23 -2
@@ -0,0 +1,31 @@
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 %>
@@ -0,0 +1,26 @@
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
@@ -0,0 +1 @@
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.
@@ -0,0 +1 @@
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.
@@ -9,6 +9,8 @@ examples:
9
9
  - typeahead_inline: Inline
10
10
  - typeahead_multi_kit: Multi Kit Options
11
11
  - typeahead_error_state: Error State
12
+ - typeahead_margin_bottom: Margin Bottom
13
+ - typeahead_with_pills_color: With Pills (Custom Color)
12
14
 
13
15
  react:
14
16
  - typeahead_default: Default
@@ -23,3 +25,5 @@ examples:
23
25
  - typeahead_async_createable: Createable (+ Async Data)
24
26
  - typeahead_error_state: Error State
25
27
  - typeahead_custom_menu_list: Custom MenuList
28
+ - typeahead_margin_bottom: Margin Bottom
29
+ - typeahead_with_pills_color: With Pills (Custom Color)
@@ -10,3 +10,5 @@ export { default as TypeaheadCreateable } from './_typeahead_createable.jsx'
10
10
  export { default as TypeaheadAsyncCreateable } from './_typeahead_async_createable.jsx'
11
11
  export { default as TypeaheadErrorState } from './_typeahead_error_state.jsx'
12
12
  export { default as TypeaheadCustomMenuList } from './_typeahead_custom_menu_list.jsx'
13
+ export { default as TypeaheadMarginBottom } from './_typeahead_margin_bottom.jsx'
14
+ export { default as TypeaheadWithPillsColor } from './_typeahead_with_pills_color.jsx'