playbook_ui_docs 15.3.0.pre.alpha.PLAY2568richtexteditortiptaprails11790 → 15.3.0.pre.alpha.PLAY2569advancedtablecolumnstylingfontcolor11977

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 (69) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb +4 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.md +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.md +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +3 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +2 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx +16 -2
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.html.erb +6 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb +1 -0
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md +2 -0
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.jsx +9 -1
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.md +1 -1
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +4 -1
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md +3 -2
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +1 -1
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +1 -1
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +1 -1
  19. data/app/pb_kits/playbook/pb_background/docs/_background_category.md +1 -1
  20. data/app/pb_kits/playbook/pb_card/docs/_card_background.md +1 -1
  21. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  22. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
  23. data/app/pb_kits/playbook/pb_card/docs/_card_light.md +1 -1
  24. data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
  25. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +1 -1
  26. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.md +1 -1
  27. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_rails.md +1 -1
  28. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_react.md +1 -1
  29. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.md +1 -1
  30. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color.md +1 -1
  31. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.html.erb +7 -14
  32. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.jsx +6 -15
  33. data/app/pb_kits/playbook/pb_layout/docs/_layout_collection.md +1 -1
  34. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.md +1 -1
  35. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_spacing_control.md +1 -1
  36. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +1 -1
  37. data/app/pb_kits/playbook/pb_pill/docs/_description.md +1 -1
  38. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.jsx +68 -0
  39. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to_react.md +1 -0
  40. data/app/pb_kits/playbook/pb_popover/docs/example.yml +1 -0
  41. data/app/pb_kits/playbook/pb_popover/docs/index.js +1 -0
  42. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_description.md +1 -1
  43. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -1
  44. data/app/pb_kits/playbook/pb_section_separator/docs/_description.md +1 -1
  45. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_rails.md +1 -1
  46. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_react.md +1 -1
  47. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.md +1 -1
  48. data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.md +1 -1
  49. data/app/pb_kits/playbook/pb_table/docs/_table_sm.md +1 -1
  50. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.html.erb +63 -0
  51. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.jsx +89 -0
  52. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_rails.md +4 -0
  53. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_react.md +3 -0
  54. data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -0
  55. data/app/pb_kits/playbook/pb_table/docs/index.js +1 -0
  56. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.html.erb +64 -0
  57. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.jsx +70 -0
  58. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.md +1 -0
  59. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_options.html.erb +67 -1
  60. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_value.jsx +68 -6
  61. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md +1 -1
  62. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +2 -0
  63. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +2 -1
  64. data/dist/playbook-doc.js +19 -1
  65. metadata +13 -6
  66. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.html.erb +0 -127
  67. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default_rails.md +0 -1
  68. /data/app/pb_kits/playbook/pb_popover/docs/{_popover_append_to.md → _popover_append_to_rails.md} +0 -0
  69. /data/app/pb_kits/playbook/pb_rich_text_editor/docs/{_rich_text_editor_advanced_default_react.md → _rich_text_editor_advanced_default.md} +0 -0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.3.0.pre.alpha.PLAY2568richtexteditortiptaprails11790
4
+ version: 15.3.0.pre.alpha.PLAY2569advancedtablecolumnstylingfontcolor11977
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-10-28 00:00:00.000000000 Z
12
+ date: 2025-11-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -1820,7 +1820,9 @@ files:
1820
1820
  - app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.html.erb
1821
1821
  - app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.jsx
1822
1822
  - app/pb_kits/playbook/pb_popover/docs/_popover_append_to.html.erb
1823
- - app/pb_kits/playbook/pb_popover/docs/_popover_append_to.md
1823
+ - app/pb_kits/playbook/pb_popover/docs/_popover_append_to.jsx
1824
+ - app/pb_kits/playbook/pb_popover/docs/_popover_append_to_rails.md
1825
+ - app/pb_kits/playbook/pb_popover/docs/_popover_append_to_react.md
1824
1826
  - app/pb_kits/playbook/pb_popover/docs/_popover_close.html.erb
1825
1827
  - app/pb_kits/playbook/pb_popover/docs/_popover_close.jsx
1826
1828
  - app/pb_kits/playbook/pb_popover/docs/_popover_default.html.erb
@@ -1911,10 +1913,8 @@ files:
1911
1913
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_description.md
1912
1914
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.jsx
1913
1915
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_attributes.md
1914
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.html.erb
1915
1916
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.jsx
1916
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default_rails.md
1917
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default_react.md
1917
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.md
1918
1918
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx
1919
1919
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.md
1920
1920
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx
@@ -2242,6 +2242,10 @@ files:
2242
2242
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
2243
2243
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
2244
2244
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
2245
+ - app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.html.erb
2246
+ - app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.jsx
2247
+ - app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_rails.md
2248
+ - app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_react.md
2245
2249
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
2246
2250
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
2247
2251
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
@@ -2497,6 +2501,9 @@ files:
2497
2501
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx
2498
2502
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.jsx
2499
2503
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx
2504
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.html.erb
2505
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.jsx
2506
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.md
2500
2507
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb
2501
2508
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx
2502
2509
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_options.html.erb
@@ -1,127 +0,0 @@
1
- <%= pb_rails("caption", props: { text: "Advanced Default" }) %>
2
- <%= pb_rails("rich_text_editor", props: {
3
- rails_advanced_editor: true,
4
- margin_bottom: "md",
5
- placeholder: "Start typing your content here...",
6
- value: "Add your text here. You can format your text, add links, quotes, and bullets. This is the <strong>TipTap-based</strong> rich text editor rendered through Rails which requires a direct import of Tiptap into the tsx file.",
7
- }) %>
8
-
9
- <%= pb_rails("caption", props: { text: "AdvancedToolbar disabled" }) %>
10
- <%= pb_rails("rich_text_editor", props: {
11
- rails_advanced_editor: true,
12
- advanced_editor_toolbar: false,
13
- margin_bottom: "md",
14
- value: "<p>This advanced editor has the toolbar disabled, showing only the content area.</p>"
15
- }) %>
16
-
17
- <%= pb_rails("caption", props: { text: "Advanced Simple" }) %>
18
- <%= pb_rails("rich_text_editor", props: {
19
- rails_advanced_editor: true,
20
- margin_bottom: "md",
21
- simple: true,
22
- value: "<p>This is a <strong>simple</strong> version of the advanced editor with fewer toolbar options.</p>"
23
- }) %>
24
-
25
- <%= pb_rails("caption", props: { text: "Advanced Attributes" }) %>
26
- <%= pb_rails("rich_text_editor", props: {
27
- aria: { label: "rich-textarea" },
28
- data: { key: "value", key2: "value2" },
29
- name: "textarea-label",
30
- rails_advanced_editor: true,
31
- margin_bottom: "md",
32
- value: "<p>This advanced editor has attributes, aria, and data attributes.</p>"
33
- }) %>
34
-
35
- <%= pb_rails("caption", props: { text: "Advanced Focus" }) %>
36
- <%= pb_rails("rich_text_editor", props: {
37
- rails_advanced_editor: true,
38
- focus: true,
39
- margin_bottom: "md",
40
- value: "<p>This advanced editor shows the toolbar only when focused.</p>"
41
- }) %>
42
-
43
- <%= pb_rails("caption", props: { text: "Advanced Sticky" }) %>
44
- <%= pb_rails("rich_text_editor", props: {
45
- rails_advanced_editor: true,
46
- sticky: true,
47
- margin_bottom: "md",
48
- value: "<p>In this example, when you scroll down, the rich text editor's toolbar will scroll along with the page and it will no longer be visible at the top of the page. Dummy text to enable scroll.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ornare lorem ut pellentesque tempor. Vivamus ut ex vestibulum velit rich text editor eleifend fringilla. Sed non metus dictum, elementum mauris wysiwyg html editor non, sagittis odio. Nullam pellentesque leo sit amet ante suscipit wysiwyg html editor sagittis. Donec tempus vulputate suscipit. Ut non felis rich text editor ac dolor pulvinar lacinia eu eget urna. Sed tincidunt sapien vulputate tellus fringilla sodales. Morbi accumsan dui wysiwyg html editor sed massa pellentesque, quis vestibulum lectus scelerisque. Nulla ultrices mi id felis luctus aliquet. Donec nec ligula wysiwyg html editor pretium sapien semper dictum eu id quam. Etiam ut sollicitudin nibh. Quisque eu ultrices dui. Nunc rich text editor congue, enim vitae dictum dignissim, libero nisl sagittis augue, non aliquet nibh tortor sit amet ex. Aliquam cursus maximus rich text editor mi eu consequat. Nullam tincidunt erat et placerat mattis. Nunc rich text editor congue, enim vitae dictum dignissim, libero nisl sagittis augue, non aliquet nibh tortor sit amet ex. Aliquam cursus maximus mi eu consequat. Nullam tincidunt erat et placerat mattis.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ornare lorem ut pellentesque tempor. Vivamus ut ex vestibulum velit rich text editor eleifend fringilla. Sed non metus dictum, elementum mauris wysiwyg html editor non, sagittis odio. Nullam pellentesque leo sit amet ante suscipit wysiwyg html editor sagittis. Donec tempus vulputate suscipit. Ut non felis rich text editor ac dolor pulvinar lacinia eu eget urna. Sed tincidunt sapien vulputate tellus fringilla sodales. Morbi accumsan dui wysiwyg html editor sed massa pellentesque, quis vestibulum lectus scelerisque. Nulla ultrices mi id felis luctus aliquet. Donec nec ligula wysiwyg html editor pretium sapien semper dictum eu id quam. Etiam ut sollicitudin nibh. Quisque eu ultrices dui. Nunc rich text editor congue, enim vitae dictum dignissim, libero nisl sagittis augue, non aliquet nibh tortor vulputate suscipit. Ut non felis rich text editor ac dolor pulvinar lacinia eu eget urna. Sed tincidunt sapien vulputate tellus fringilla sodales. Morbi accumsan dui wysiwyg html editor sed massa pellentesque, quis vestibulum lectus scelerisque. Nulla ultrices mi id felis luctus aliquet. Donec nec ligula wysiwyg html editor pretium sapien semper dictum eu id quam. Etiam ut sollicitudin nibh. Quisque eu ultrices dui. Nunc rich text editor congue, enim vitae dictum dignissim, libero nisl sagittis augue, non aliquet nibh tortor sit amet ex. Aliquam cursus maximus rich text editor mi eu consequat. Nullam tincidunt erat et placerat mattis. Nunc rich text editor congue, enim vitae dictum dignissim, libero nisl sagittis augue, non aliquet nibh tortor sit amet ex. Aliquam cursus maximus mi eu consequat. Nullam tincidunt erat et placerat mattis.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ornare lorem ut pellentesque tempor. Vivamus ut ex vestibulum velit rich text editor eleifend fringilla. Sed non metus dictum, elementum mauris wysiwyg html editor non, sagittis odio. Nullam pellentesque leo sit amet ante suscipit wysiwyg html editor sagittis. Donec tempus vulputate suscipit. Ut non felis rich text editor ac dolor pulvinar lacinia eu eget urna.</p>"
49
- }) %>
50
-
51
- <%= pb_rails("caption", props: { text: "Advanced Templates" }) %>
52
- <%= pb_rails("body", props: { margin_bottom: "md", text: "Not getting into this on POC feels like more of a nice to have" }) %>
53
-
54
- <%= pb_rails("caption", props: { text: "Advanced Inline" }) %>
55
- <%= pb_rails("rich_text_editor", props: {
56
- rails_advanced_editor: true,
57
- inline: true,
58
- margin_bottom: "md",
59
- value: "<p>This advanced editor has an inline toolbar, showing all the formatting options.</p>"
60
- }) %>
61
-
62
- <%= pb_rails("caption", props: { text: "Advanced Preview" }) %>
63
- <%= pb_rails("rich_text_editor", props: {
64
- id: "advanced-preview-editor",
65
- rails_advanced_editor: true,
66
- margin_bottom: "md",
67
- value: "Add text here, format it, and press \"Preview Output\" to see what your stylized output will look like on the page."
68
- }) %>
69
-
70
- <%= pb_rails("button", props: { id: "advanced-preview-button", text: "Preview Output", variant: "secondary" }) %>
71
-
72
- <div id="advanced-card-obfuscation" style="display:none">
73
- <%= pb_rails("card", props: { margin_top: "md", max_width: "md", padding: "sm" }) do %>
74
- <div id="advanced-content-preview" class="tiptap-content">
75
- </div>
76
- <% end %>
77
- </div>
78
-
79
- <script>
80
- document.addEventListener('DOMContentLoaded', () => {
81
- function handleAdvancedButtonClick() {
82
- // Find the specific TipTap editor container by ID
83
- const editorContainer = [...document.querySelectorAll('[data-pb-react-props]')]
84
- .find(element => element.getAttribute('data-pb-react-props')?.includes('"id":"advanced-preview-editor"'))
85
-
86
- if (!editorContainer) {
87
- console.log('Editor container not found')
88
- return
89
- }
90
-
91
- // Find the TipTap editor content
92
- const tiptapEditor = editorContainer.querySelector('.ProseMirror')
93
- const previewArea = document.getElementById('advanced-content-preview')
94
- const cardDiv = document.getElementById('advanced-card-obfuscation')
95
-
96
- console.log('Found elements:', { tiptapEditor, previewArea, cardDiv })
97
-
98
- if (tiptapEditor && previewArea && cardDiv) {
99
- // Get the HTML content from the TipTap editor
100
- const editorContent = tiptapEditor.innerHTML || ''
101
- console.log('Editor content:', editorContent)
102
- previewArea.innerHTML = editorContent
103
- cardDiv.style.display = 'block'
104
- } else {
105
- console.log('Missing elements:', { tiptapEditor: !!tiptapEditor, previewArea: !!previewArea, cardDiv: !!cardDiv })
106
- }
107
- }
108
-
109
- document.getElementById('advanced-preview-button')?.addEventListener('click', handleAdvancedButtonClick)
110
- })
111
- </script>
112
-
113
-
114
- <%= pb_rails("caption", props: { margin_top: "md", text: "Bonus: Advanced Extra Extensions (couldnt help thinking about this a little)" }) %>
115
- <%= pb_rails("body", props: { margin_bottom: "md", text: "Possibly possible: I tried to set up a tip_tap_options prop via which any extensions would need to be passed through after being impoted directly to an external propject. Look at code example for hypothetical use." }) %>
116
- <% tip_tap_options = {
117
- extensions: [] # Extensions would be passed here as actual TipTap extension objects. Not sure if would work right away or if rich_text_editor.tsx would need to account for them.
118
- } %>
119
- <%= pb_rails("rich_text_editor", props: {
120
- rails_advanced_editor: true,
121
- tip_tap_options: tip_tap_options,
122
- margin_bottom: "md",
123
- value: "HYPOTHETICALLY extensions can be added via tip_tap_options.extensions array.",
124
- }) %>
125
-
126
- <%= pb_rails("caption", props: { text: "Alt thought: some sort of stimulus or enhanced element based RTE that imports TipTap directly into Rails?" }) %>
127
- <%= pb_rails("body", props: {text: "If anything, may serve as an extension of the EXTENSIONS/tip_tap_options configuration. Not sure if works solo." }) %>
@@ -1 +0,0 @@
1
- This is a POC for a react-rendered-rails version of the Advanced RTE, which necessarily requires we import Tiptap as an internal dependency since it is not compatible with Rails. Because of that, I'm not sure how we will be able to truly leverage Tiptap extensions/customizability to its full potential. We should be able to provide certain props/prop combos like we do now and provide them as options for customized editors - may require a few more doc examples and methods in the controller than we currently have but once it exists should be usable (for example, if there are usecases or examples of things like horizontal bar, highlight, etc. in Nitro or documented we can build those into the kit HUB request style.)