playbook_ui 15.4.0.pre.alpha.play254712379 → 15.4.0.pre.alpha.testingseparation12395

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 (101) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +2 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx +3 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx +3 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +2 -1
  8. data/app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.md +1 -0
  9. data/app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals_rails.md +1 -0
  10. data/app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals_react.md +1 -0
  11. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.html.erb +10 -0
  12. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.jsx +10 -0
  13. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.md +1 -0
  14. data/app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol_rails.md +1 -0
  15. data/app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol_react.md +1 -0
  16. data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.html.erb +7 -0
  17. data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.jsx +7 -0
  18. data/app/pb_kits/playbook/pb_currency/docs/_description.md +2 -2
  19. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.jsx +2 -1
  20. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_default.jsx +2 -1
  21. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.jsx +2 -1
  22. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.jsx +2 -1
  23. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_wrapped.jsx +4 -1
  24. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.jsx +1 -1
  25. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_colors.jsx +1 -1
  26. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_default.jsx +1 -1
  27. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_height.jsx +1 -1
  28. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_horizontal.jsx +1 -1
  29. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend.jsx +1 -1
  30. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_non_clickable.jsx +1 -2
  31. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.jsx +1 -1
  32. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_negative_numbers.jsx +1 -1
  33. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_secondary_y_axis.jsx +1 -1
  34. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_spline.jsx +1 -2
  35. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_stacked.jsx +1 -2
  36. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_block_content.jsx +2 -1
  37. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.jsx +2 -1
  38. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.jsx +1 -1
  39. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.jsx +2 -1
  40. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_labels.jsx +1 -1
  41. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_legend.jsx +1 -1
  42. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.jsx +1 -1
  43. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_inner_sizes.jsx +1 -1
  44. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_live_data.jsx +2 -1
  45. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_rounded.jsx +1 -1
  46. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_with_title.jsx +1 -1
  47. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_color.jsx +1 -1
  48. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_complex.jsx +2 -1
  49. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_full_circle.jsx +2 -1
  50. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_height.jsx +2 -1
  51. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_min_max.jsx +2 -1
  52. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_units.jsx +2 -1
  53. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_colors.jsx +1 -1
  54. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.jsx +4 -1
  55. data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +262 -384
  56. data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +5 -1
  57. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +1 -4
  58. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +3 -14
  59. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.html.erb +7 -1
  60. data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +0 -3
  61. data/app/pb_kits/playbook/pb_progress_step/docs/index.js +0 -2
  62. data/app/pb_kits/playbook/pb_progress_step/progress_step.test.js +0 -41
  63. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +3 -1
  64. data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.tsx +1 -1
  65. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +8 -61
  66. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.html.erb +2 -10
  67. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb +11 -19
  68. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.html.erb +1 -5
  69. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.html.erb +1 -1
  70. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -2
  71. data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +7 -16
  72. data/app/pb_kits/playbook/pb_select/docs/_select_react_hook.jsx +3 -1
  73. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_sizing.jsx +4 -1
  74. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx +2 -1
  75. data/app/pb_kits/playbook/pb_user/docs/_user_font_options.jsx +1 -1
  76. data/dist/chunks/_typeahead-DYoSbiJE.js +6 -0
  77. data/dist/chunks/lib-BrAPgXB5.js +29 -0
  78. data/dist/chunks/vendor.js +17 -1
  79. data/dist/playbook-rails-react-bindings.js +1 -1
  80. data/dist/playbook-rails.js +1 -1
  81. data/dist/playbook.css +1 -1
  82. data/lib/playbook/version.rb +1 -1
  83. metadata +9 -19
  84. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.html.erb +0 -14
  85. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.jsx +0 -29
  86. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.md +0 -3
  87. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.jsx +0 -31
  88. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.md +0 -1
  89. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.md +0 -3
  90. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.md +0 -3
  91. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.md +0 -1
  92. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default_rails.md +0 -7
  93. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline_rails.md +0 -1
  94. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky_rails.md +0 -1
  95. data/dist/chunks/_line_graph-8BUASxIP.js +0 -1
  96. data/dist/chunks/_typeahead-DESMSfUO.js +0 -24
  97. data/dist/chunks/_weekday_stacked-EQMaMJvC.js +0 -37
  98. data/dist/chunks/componentRegistry-DzmmLR2x.js +0 -1
  99. data/dist/chunks/lib-CzQFzKzw.js +0 -29
  100. data/dist/chunks/pb_form_validation-Bf9TK15t.js +0 -1
  101. data/dist/playbook-doc.js +0 -1
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "15.4.0"
5
- VERSION = "15.4.0.pre.alpha.play254712379"
5
+ VERSION = "15.4.0.pre.alpha.testingseparation12395"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.4.0.pre.alpha.play254712379
4
+ version: 15.4.0.pre.alpha.testingseparation12395
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -923,6 +923,7 @@ files:
923
923
  - app/pb_kits/playbook/pb_currency/currency.test.js
924
924
  - app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.html.erb
925
925
  - app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.jsx
926
+ - app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.md
926
927
  - app/pb_kits/playbook/pb_currency/docs/_currency_alignment.html.erb
927
928
  - app/pb_kits/playbook/pb_currency/docs/_currency_alignment.jsx
928
929
  - app/pb_kits/playbook/pb_currency/docs/_currency_alignment_swift.md
@@ -931,10 +932,15 @@ files:
931
932
  - app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.md
932
933
  - app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals.html.erb
933
934
  - app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals.jsx
935
+ - app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals_rails.md
936
+ - app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals_react.md
934
937
  - app/pb_kits/playbook/pb_currency/docs/_currency_negative.html.erb
935
938
  - app/pb_kits/playbook/pb_currency/docs/_currency_negative.jsx
939
+ - app/pb_kits/playbook/pb_currency/docs/_currency_negative.md
936
940
  - app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol.html.erb
937
941
  - app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol.jsx
942
+ - app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol_rails.md
943
+ - app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol_react.md
938
944
  - app/pb_kits/playbook/pb_currency/docs/_currency_null_display.html.erb
939
945
  - app/pb_kits/playbook/pb_currency/docs/_currency_null_display.jsx
940
946
  - app/pb_kits/playbook/pb_currency/docs/_currency_null_display_rails.md
@@ -2733,23 +2739,15 @@ files:
2733
2739
  - app/pb_kits/playbook/pb_progress_step/_progress_step.tsx
2734
2740
  - app/pb_kits/playbook/pb_progress_step/_progress_step_item.tsx
2735
2741
  - app/pb_kits/playbook/pb_progress_step/docs/_description.md
2736
- - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.html.erb
2737
- - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.jsx
2738
- - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.md
2739
2742
  - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.html.erb
2740
- - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.jsx
2741
- - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.md
2742
2743
  - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb
2743
2744
  - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx
2744
- - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.md
2745
2745
  - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tooltip.html.erb
2746
2746
  - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.html.erb
2747
2747
  - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx
2748
- - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.md
2749
2748
  - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker_click_events.jsx
2750
2749
  - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.html.erb
2751
2750
  - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx
2752
- - app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.md
2753
2751
  - app/pb_kits/playbook/pb_progress_step/docs/example.yml
2754
2752
  - app/pb_kits/playbook/pb_progress_step/docs/index.js
2755
2753
  - app/pb_kits/playbook/pb_progress_step/progress_step.html.erb
@@ -2825,12 +2823,10 @@ files:
2825
2823
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.jsx
2826
2824
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb
2827
2825
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
2828
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default_rails.md
2829
2826
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.html.erb
2830
2827
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx
2831
2828
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.html.erb
2832
2829
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx
2833
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline_rails.md
2834
2830
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.jsx
2835
2831
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.md
2836
2832
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb
@@ -2839,7 +2835,6 @@ files:
2839
2835
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.jsx
2840
2836
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.html.erb
2841
2837
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.jsx
2842
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky_rails.md
2843
2838
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.html.erb
2844
2839
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
2845
2840
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.html.erb
@@ -3840,16 +3835,11 @@ files:
3840
3835
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3841
3836
  - app/pb_kits/playbook/utilities/text.ts
3842
3837
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3843
- - dist/chunks/_line_graph-8BUASxIP.js
3844
- - dist/chunks/_typeahead-DESMSfUO.js
3845
- - dist/chunks/_weekday_stacked-EQMaMJvC.js
3846
- - dist/chunks/componentRegistry-DzmmLR2x.js
3838
+ - dist/chunks/_typeahead-DYoSbiJE.js
3847
3839
  - dist/chunks/lazysizes-B7xYodB-.js
3848
- - dist/chunks/lib-CzQFzKzw.js
3849
- - dist/chunks/pb_form_validation-Bf9TK15t.js
3840
+ - dist/chunks/lib-BrAPgXB5.js
3850
3841
  - dist/chunks/vendor.js
3851
3842
  - dist/menu.yml
3852
- - dist/playbook-doc.js
3853
3843
  - dist/playbook-rails-react-bindings.js
3854
3844
  - dist/playbook-rails.js
3855
3845
  - dist/playbook.css
@@ -1,14 +0,0 @@
1
- <br><br>
2
- <%= pb_rails("progress_step",props:{ variant:"tracker", icon:true, color: "info"}) do %>
3
- <%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
4
- <%= pb_rails("caption", props:{text: "Ordered"})%>
5
- <% end %>
6
- <%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
7
- <%= pb_rails("caption", props:{text: "Shipped"})%>
8
- <% end %>
9
- <%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
10
- <%= pb_rails("caption", props:{text: "Delivered"})%>
11
- <% end %>
12
- <% end %>
13
-
14
- <br>
@@ -1,29 +0,0 @@
1
- import React from 'react'
2
-
3
- import ProgressStep from '../_progress_step.tsx'
4
- import ProgressStepItem from '../_progress_step_item.tsx'
5
- import Caption from '../../pb_caption/_caption'
6
-
7
- const ProgressStepColor = (props) => (
8
- <div>
9
- <br />
10
- <ProgressStep
11
- color="info"
12
- icon
13
- variant="tracker"
14
- {...props}
15
- >
16
- <ProgressStepItem status="complete">
17
- <Caption>{'Ordered'}</Caption>
18
- </ProgressStepItem>
19
- <ProgressStepItem status="active">
20
- <Caption>{'Shipped'}</Caption>
21
- </ProgressStepItem>
22
- <ProgressStepItem status="inactive">
23
- <Caption>{'Delivered'}</Caption>
24
- </ProgressStepItem>
25
- </ProgressStep>
26
- </div>
27
- )
28
-
29
- export default ProgressStepColor
@@ -1,3 +0,0 @@
1
- The `color` prop can also be used to set color for the tracker variant. Options for color are `primary` and `info` with default being set to `primary`.
2
-
3
- **NOTE**: The `color` prop is only available with the `tracker` variant.
@@ -1,31 +0,0 @@
1
- import React from 'react'
2
-
3
- import ProgressStep from '../_progress_step.tsx'
4
- import ProgressStepItem from '../_progress_step_item.tsx'
5
- import Caption from '../../pb_caption/_caption'
6
-
7
- const ProgressStepCustomIcon = (props) => (
8
- <div>
9
- <br />
10
- <ProgressStep
11
- icon
12
- variant="tracker"
13
- {...props}
14
- >
15
- <ProgressStepItem status="complete">
16
- <Caption>{'Ordered'}</Caption>
17
- </ProgressStepItem>
18
- <ProgressStepItem
19
- icon="exclamation-triangle"
20
- status="active"
21
- >
22
- <Caption>{'Shipped'}</Caption>
23
- </ProgressStepItem>
24
- <ProgressStepItem status="inactive">
25
- <Caption>{'Delivered'}</Caption>
26
- </ProgressStepItem>
27
- </ProgressStep>
28
- </div>
29
- )
30
-
31
- export default ProgressStepCustomIcon
@@ -1 +0,0 @@
1
- Custom icons can also be set for individual steps. Simply use the `icon` prop for the relevant `ProgressStepItem`/`progress_step_item` as shown here.
@@ -1,3 +0,0 @@
1
- The default Progress Step kit sets orientation to horizontal and can be used with completed, active, and inactive steps as shown here.
2
-
3
- `icon` is a boolean prop that can also be set to true to render icons within the steps indicator. `icon` is false by default.
@@ -1,3 +0,0 @@
1
- The `variant` prop can be set to `tracker` to achieve this UI. Tracker is only available with the horizontal orientation and it is also recommended that you set the `icon` prop to true for this variant.
2
-
3
- This variant takes children just like the default progress step, however, it is best to use the caption kit for children in this variant.
@@ -1 +0,0 @@
1
- `orientation` can also be set to `vertical` as shown here. By default, this is set to `horizontal`.
@@ -1,7 +0,0 @@
1
- The Rails RichTextEditor is a React-Rendered-Rails component that uses [Tiptap](https://tiptap.dev/) and requires the following packages to be installed in your project:
2
-
3
- - `@tiptap/react`
4
- - `@tiptap/starter-kit`
5
- - `@tiptap/extension-link`
6
-
7
- Once installed, the editor is initialized automatically when you use the component. Unlike the [React Advanced RichTextEditor](https://playbook.powerapp.cloud/kits/rich_text_editor/react#advanced-default) variant, [custom extensions](https://playbook.powerapp.cloud/kits/rich_text_editor/react#advanced-extra-extensions) are not currently supported. The doc examples below showcase some preset prop-enabled Rails RichTextEditor customizations.
@@ -1 +0,0 @@
1
- When the optional `inline` prop is set to true, the editor borders and the toolbar will only be visible when hovered or focused on.
@@ -1 +0,0 @@
1
- Use the optional `sticky` prop to make the toolbar sticky on scroll.
@@ -1 +0,0 @@
1
- import{jsx,Fragment,jsxs}from"react/jsx-runtime";import{useState,useEffect}from"react";import{f as buildAriaProps,g as buildDataProps,h as buildHtmlProps,H as HighchartsReact,i as Highcharts,j as classnames,k as globalProps,l as HighchartsMore,S as SolidGauge,m as buildCss}from"./_typeahead-DESMSfUO.js";import{c as colors,h as highchartsTheme,m as merge,a as highchartsDarkTheme,t as typography}from"./lib-CzQFzKzw.js";const mapColors=array=>{const regex=/(data)\-[1-8]/;const newArray=array.map((item=>regex.test(item)?`${colors[`data_${item[item.length-1]}`]}`:item));return newArray};const BarGraph=({aria:aria={},data:data={},align:align="center",axisTitle:axisTitle,dark:dark=false,chartData:chartData,className:className="pb_bar_graph",colors:colors2,htmlOptions:htmlOptions={},customOptions:customOptions={},axisFormat:axisFormat,id:id,pointStart:pointStart,stacking:stacking,subTitle:subTitle,type:type="column",title:title="Title",xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,legend:legend=false,toggleLegendClick:toggleLegendClick=true,height:height,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:[{labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat&&axisFormat[0]?axisFormat[0].format:""},min:yAxisMin,max:yAxisMax,opposite:false,title:{text:Array.isArray(axisTitle)?axisTitle.length>0?axisTitle[0].name:null:axisTitle},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]}],xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{stacking:stacking,pointStart:pointStart,borderWidth:stacking?0:"",events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(Array.isArray(axisTitle)&&axisTitle.length>1&&axisTitle[1].name){staticOptions.yAxis.push({labels:{format:typeof axisFormat==="string"?axisFormat:axisFormat[1].format},min:yAxisMin,max:yAxisMax,opposite:true,title:{text:axisTitle[1].name},plotLines:typeof yAxisMin!=="undefined"&&yAxisMin!==null?[]:[{value:0,zIndex:10,color:"#E4E8F0"}]})}if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})};const alignBlockElement=event=>{const itemToMove=document.querySelector(`#wrapper-circle-chart-${event.target.renderTo.id} .pb-circle-chart-block`);const chartContainer=document.querySelector(`#${event.target.renderTo.id}`);if(itemToMove!==null&&chartContainer!==null){itemToMove.style.height=`${event.target.chartHeight}px`;itemToMove.style.width=`${event.target.chartWidth}px`;if(chartContainer.firstChild!==null){chartContainer.firstChild.before(itemToMove)}}};const CircleChart=({align:align="center",aria:aria={},rounded:rounded=false,borderColor:borderColor=(rounded?null:""),borderWidth:borderWidth=(rounded?20:null),chartData:chartData,children:children,className:className,colors:colors2=[],customOptions:customOptions={},dark:dark=false,data:data={},dataLabelHtml:dataLabelHtml="<div>{point.name}</div>",dataLabels:dataLabels=false,height:height,htmlOptions:htmlOptions={},id:id,innerSize:innerSize="md",legend:legend=false,maxPointSize:maxPointSize=null,minPointSize:minPointSize=null,startAngle:startAngle=null,style:style="pie",title:title,tooltipHtml:tooltipHtml,useHtml:useHtml=false,zMin:zMin=null,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);HighchartsMore(Highcharts);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();Highcharts.setOptions({tooltip:{headerFormat:null,pointFormat:tooltipHtml?tooltipHtml:'<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',useHTML:useHtml}});const innerSizes={sm:"35%",md:"50%",lg:"85%",none:"0%"};const innerSizeFormat=size=>innerSizes[size];const filteredProps={...props};delete filteredProps.verticalAlign;const[options,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={title:{text:title},chart:{height:height,type:style,events:{render:event=>alignBlockElement(event),redraw:event=>alignBlockElement(event)}},legend:{align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},plotOptions:{pie:{colors:colors2.length>0?mapColors(colors2):highchartsTheme.colors,dataLabels:{enabled:dataLabels,connectorShape:"straight",connectorWidth:3,format:dataLabelHtml},showInLegend:legend}},series:[{minPointSize:minPointSize,maxPointSize:maxPointSize,innerSize:borderWidth==20?"100%":innerSizeFormat(innerSize),data:formattedChartData,zMin:zMin,startAngle:startAngle,borderWidth:borderWidth,borderColor:borderColor}],credits:false};setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx(Fragment,{children:children?jsxs("div",{id:`wrapper-circle-chart-${id}`,children:[jsx(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options}),jsx("div",{className:"pb-circle-chart-block",children:children})]}):jsx(HighchartsReact,{containerProps:{className:classnames("pb_circle_chart",globalProps(filteredProps)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})})};const Gauge=({aria:aria={},chartData:chartData,customOptions:customOptions={},dark:dark=false,data:data={},disableAnimation:disableAnimation=false,fullCircle:fullCircle=false,height:height=null,htmlOptions:htmlOptions={},id:id,max:max=100,min:min=0,prefix:prefix="",showLabels:showLabels=false,style:style="solidgauge",suffix:suffix="",title:title="",tooltipHtml:tooltipHtml='<span style="font-weight: bold; color:{point.color};">●</span>{point.name}: <b>{point.y}</b>',colors:colors$1=[],minorTickInterval:minorTickInterval=null,circumference:circumference=(fullCircle?[0,360]:[-100,100]),...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);HighchartsMore(Highcharts);SolidGauge(Highcharts);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();Highcharts.setOptions({tooltip:{pointFormat:tooltipHtml,followPointer:true}});const css=buildCss({pb_gauge_kit:true});const[options,setOptions]=useState({});useEffect((()=>{const formattedChartData=chartData.map((obj=>{obj.y=obj.value;delete obj.value;return obj}));const staticOptions={chart:{events:{load(){setTimeout(this.reflow.bind(this),0)}},type:style,height:height},title:{text:title},yAxis:{min:min,max:max,lineWidth:0,tickWidth:0,minorTickInterval:minorTickInterval,tickAmount:2,tickPositions:[min,max],labels:{y:26,enabled:showLabels}},credits:false,series:[{data:formattedChartData}],pane:{center:["50%","50%"],size:"90%",startAngle:circumference[0],endAngle:circumference[1],background:{borderWidth:20,innerRadius:"90%",outerRadius:"90%",shape:"arc",className:"gauge-pane"}},colors:colors$1!==void 0&&colors$1.length>0?mapColors(colors$1):highchartsTheme.colors,plotOptions:{series:{animation:!disableAnimation},solidgauge:{borderColor:colors$1!==void 0&&colors$1.length===1?mapColors(colors$1).join():highchartsTheme.colors[0],borderWidth:20,radius:90,innerRadius:"90%",dataLabels:{borderWidth:0,color:colors.text_lt_default,enabled:true,format:`<span class="prefix${dark?" dark":""}">${prefix}</span><span class="fix${dark?" dark":""}">{y:,f}</span><span class="suffix${dark?" dark":""}">${suffix}</span>`,style:{fontFamily:typography.font_family_base,fontWeight:typography.regular,fontSize:typography.heading_2},y:-26}}}};setOptions(merge(staticOptions,customOptions));if(document.querySelector(".prefix")){document.querySelectorAll(".prefix").forEach((prefix2=>{prefix2.setAttribute("y","28")}));document.querySelectorAll(".fix").forEach((fix=>fix.setAttribute("y","38")))}}),[chartData]);return jsx(HighchartsReact,{containerProps:{className:classnames(css,globalProps(props)),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})};const LineGraph=({aria:aria={},data:data={},align:align="center",className:className="pb_bar_graph",customOptions:customOptions={},dark:dark=false,gradient:gradient=false,type:type="line",htmlOptions:htmlOptions={},id:id,legend:legend=false,toggleLegendClick:toggleLegendClick=true,layout:layout="horizontal",verticalAlign:verticalAlign="bottom",x:x=0,y:y=0,axisTitle:axisTitle,xAxisCategories:xAxisCategories,yAxisMin:yAxisMin,yAxisMax:yAxisMax,chartData:chartData,pointStart:pointStart,subTitle:subTitle,title:title,height:height,colors:colors2=[],...props})=>{const ariaProps=buildAriaProps(aria);const dataProps=buildDataProps(data);const htmlProps=buildHtmlProps(htmlOptions);const setupTheme=()=>{dark?Highcharts.setOptions(highchartsDarkTheme):Highcharts.setOptions(highchartsTheme)};setupTheme();const staticOptions={title:{text:title},chart:{height:height,type:type},subtitle:{text:subTitle},yAxis:{min:yAxisMin,max:yAxisMax,title:{text:axisTitle}},xAxis:{categories:xAxisCategories},legend:{enabled:legend,align:align,verticalAlign:verticalAlign,layout:layout,x:x,y:y},colors:colors2!==void 0&&colors2.length>0?mapColors(colors2):highchartsTheme.colors,plotOptions:{series:{pointStart:pointStart,events:{},dataLabels:{enabled:false}}},series:chartData,credits:false};if(!toggleLegendClick){staticOptions.plotOptions.series.events={legendItemClick:()=>false}}const filteredProps={...props};delete filteredProps.verticalAlign;const[options,setOptions]=useState({});useEffect((()=>{setOptions(merge(staticOptions,customOptions))}),[chartData]);return jsx(HighchartsReact,{containerProps:{className:classnames(globalProps(filteredProps),className),id:id,...ariaProps,...dataProps,...htmlProps},highcharts:Highcharts,options:options})};export{BarGraph as B,CircleChart as C,Gauge as G,LineGraph as L};