playbook_ui_docs 15.2.0.pre.alpha.PLAY236711413 → 15.2.0.pre.alpha.PLAY256411551

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb +39 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md +1 -0
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.md +3 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +3 -3
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +3 -3
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb +2 -2
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +1 -1
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.html.erb +2 -2
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb +2 -2
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md +1 -1
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row_rails.html.erb +51 -0
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_per_row_rails.md +1 -0
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_rails.html.erb +40 -0
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control_rails.md +1 -0
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +1 -1
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_react.md +1 -1
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.html.erb +2 -2
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +3 -0
  20. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.jsx +1 -1
  21. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_description.md +2 -0
  22. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +2 -2
  23. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.jsx +38 -0
  24. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.md +1 -0
  25. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx +34 -0
  26. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.md +1 -0
  27. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx +37 -0
  28. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md +1 -0
  29. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx +37 -0
  30. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.jsx +38 -0
  31. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.md +1 -0
  32. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.jsx +69 -0
  33. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.md +1 -0
  34. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +8 -2
  35. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +6 -0
  36. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_options.html.erb +36 -0
  37. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_options.md +1 -0
  38. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_value.jsx +41 -0
  39. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_value.md +1 -0
  40. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +2 -0
  41. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -0
  42. data/dist/playbook-doc.js +2 -2
  43. metadata +23 -2
@@ -11,3 +11,9 @@ export { default as RichTextEditorAdvancedDefault } from './_rich_text_editor_ad
11
11
  export { default as RichTextEditorMoreExtensions } from './_rich_text_editor_more_extensions.jsx'
12
12
  export { default as RichTextEditorToolbarDisabled } from './_rich_text_editor_toolbar_disabled.jsx'
13
13
  export { default as RichTextEditorAdvancedPreview } from './_rich_text_editor_advanced_preview.jsx'
14
+ export { default as RichTextEditorAdvancedSimple } from './_rich_text_editor_advanced_simple.jsx'
15
+ export { default as RichTextEditorAdvancedFocus } from './_rich_text_editor_advanced_focus.jsx'
16
+ export { default as RichTextEditorAdvancedTemplates } from './_rich_text_editor_advanced_templates.jsx'
17
+ export { default as RichTextEditorAdvancedAttributes } from './_rich_text_editor_advanced_attributes.jsx'
18
+ export { default as RichTextEditorAdvancedSticky } from './_rich_text_editor_advanced_sticky.jsx'
19
+ export { default as RichTextEditorAdvancedInline } from './_rich_text_editor_advanced_inline.jsx'
@@ -0,0 +1,36 @@
1
+ <%
2
+ options = [
3
+ { label: 'Orange', value: '#FFA500' },
4
+ { label: 'Red', value: '#FF0000' },
5
+ { label: 'Green', value: '#1e3d1eff' },
6
+ { label: 'Blue', value: '#0000FF' },
7
+ { label: 'Purple', value: '#800080' },
8
+ { label: 'Yellow', value: '#FFFF00' },
9
+ { label: 'Pink', value: '#FFC0CB' },
10
+ { label: 'Brown', value: '#A52A2A' },
11
+ { label: 'Black', value: '#000000' },
12
+ { label: 'White', value: '#FFFFFF' },
13
+ { label: 'Gray', value: '#808080' },
14
+ { label: 'Cyan', value: '#00FFFF' },
15
+ { label: 'Magenta', value: '#FF00FF' },
16
+ { label: 'Lime', value: '#00FF00' },
17
+ { label: 'Maroon', value: '#800000' },
18
+ { label: 'Olive', value: '#808000' },
19
+ { label: 'Navy', value: '#000080' },
20
+ { label: 'Teal', value: '#008080' },
21
+ { label: 'Silver', value: '#C0C0C0' },
22
+ { label: 'Gold', value: '#FFD700' },
23
+ { label: 'Beige', value: '#F5F5DC' },
24
+ { label: 'Coral', value: '#FF7F50' }
25
+ ]
26
+ %>
27
+
28
+ <%= pb_rails("typeahead", props: {
29
+ default_options: [{ label: 'Gray', value: '#808080' }],
30
+ id: "typeahead-default-value",
31
+ options: options,
32
+ label: "Colors",
33
+ name: :foo,
34
+ is_multi: false
35
+ })
36
+ %>
@@ -0,0 +1 @@
1
+ The optional `default_options` prop can be used to set a default value for the kit. When a default value is set, focus will be automatically set to the selected option and the dropdown container will scroll to bring the selected option into view.
@@ -0,0 +1,41 @@
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: '#1e3d1eff' },
9
+ { label: 'Blue', value: '#0000FF' },
10
+ { label: 'Purple', value: '#800080' },
11
+ { label: 'Yellow', value: '#FFFF00' },
12
+ { label: 'Pink', value: '#FFC0CB' },
13
+ { label: 'Brown', value: '#A52A2A' },
14
+ { label: 'Black', value: '#000000' },
15
+ { label: 'White', value: '#FFFFFF' },
16
+ { label: 'Gray', value: '#808080' },
17
+ { label: 'Cyan', value: '#00FFFF' },
18
+ { label: 'Magenta', value: '#FF00FF' },
19
+ { label: 'Lime', value: '#00FF00' },
20
+ { label: 'Maroon', value: '#800000' },
21
+ { label: 'Olive', value: '#808000' },
22
+ { label: 'Navy', value: '#000080' },
23
+ { label: 'Teal', value: '#008080' },
24
+ { label: 'Silver', value: '#C0C0C0' },
25
+ { label: 'Gold', value: '#FFD700' },
26
+ { label: 'Beige', value: '#F5F5DC' },
27
+ { label: 'Coral', value: '#FF7F50' }
28
+ ]
29
+
30
+ const TypeaheadDefaultValue = (props) => {
31
+ return (
32
+ <Typeahead
33
+ defaultValue={options[10]}
34
+ label="Colors"
35
+ options={options}
36
+ {...props}
37
+ />
38
+ )
39
+ }
40
+
41
+ export default TypeaheadDefaultValue
@@ -0,0 +1 @@
1
+ The optional `defaultValue` prop can be used to set a default value for the kit. When a default value is set, focus will be automatically set to the selected option and the dropdown container will scroll to bring the selected option into view.
@@ -1,6 +1,7 @@
1
1
  examples:
2
2
  rails:
3
3
  - typeahead_default: Default
4
+ - typeahead_default_options: With Default Options
4
5
  - typeahead_with_context: With Context
5
6
  - typeahead_with_pills: With Pills
6
7
  - typeahead_without_pills: Without Pills (Single Select)
@@ -19,6 +20,7 @@ examples:
19
20
 
20
21
  react:
21
22
  - typeahead_default: Default
23
+ - typeahead_default_value: With Default Value
22
24
  - typeahead_react_hook: React Hook
23
25
  - typeahead_with_highlight: With Highlight
24
26
  - typeahead_with_pills: With Pills
@@ -16,3 +16,4 @@ export { default as TypeaheadTruncatedText } from './_typeahead_truncated_text.j
16
16
  export { default as TypeaheadReactHook } from './_typeahead_react_hook.jsx'
17
17
  export { default as TypeaheadDisabled } from './_typeahead_disabled.jsx'
18
18
  export { default as TypeaheadPreserveInput } from './_typeahead_preserve_input.jsx'
19
+ export { default as TypeaheadDefaultValue } from './_typeahead_default_value.jsx'