playbook_ui_docs 16.3.0.pre.alpha.railspinnedrows14953 → 16.3.0.pre.rc.0

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 (81) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -3
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -3
  4. data/app/pb_kits/playbook/pb_caption/docs/_caption_colors.html.erb +4 -6
  5. data/app/pb_kits/playbook/pb_caption/docs/_caption_colors.jsx +4 -14
  6. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_positions.md +0 -1
  7. data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.html.erb +24 -6
  8. data/app/pb_kits/playbook/pb_detail/docs/_detail_colors.jsx +33 -35
  9. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.html.erb +1 -1
  10. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.jsx +3 -6
  11. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.md +1 -3
  12. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.html.erb +9 -18
  13. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx +5 -24
  14. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height.html.erb +3 -3
  15. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height.jsx +3 -6
  16. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height_placement.html.erb +3 -3
  17. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_full_height_placement.jsx +3 -6
  18. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -3
  19. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +0 -1
  20. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -2
  21. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +1 -2
  22. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -1
  23. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
  24. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default.jsx +1 -1
  25. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.html.erb +5 -0
  26. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.jsx +15 -0
  27. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb +1 -0
  28. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx +0 -56
  29. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.html.erb +3 -0
  30. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx +17 -0
  31. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.html.erb +6 -0
  32. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx +16 -0
  33. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.jsx +28 -0
  34. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.md +1 -0
  35. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb +35 -0
  36. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.jsx +45 -0
  37. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.html.erb +10 -0
  38. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.jsx +22 -0
  39. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.md +3 -0
  40. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.html.erb +1 -0
  41. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.jsx +13 -0
  42. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.html.erb +1 -0
  43. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.jsx +15 -0
  44. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.html.erb +115 -0
  45. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx +42 -0
  46. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.html.erb +4 -0
  47. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx +14 -0
  48. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +21 -13
  49. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +10 -0
  50. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  51. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -1
  52. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx +13 -11
  53. data/app/pb_kits/playbook/pb_textarea/docs/example.yml +0 -1
  54. data/app/pb_kits/playbook/pb_textarea/docs/index.js +8 -9
  55. data/app/pb_kits/playbook/pb_title/docs/_title_colors.html.erb +0 -2
  56. data/app/pb_kits/playbook/pb_title/docs/_title_colors.jsx +0 -14
  57. metadata +24 -26
  58. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_cascade_collapse.jsx +0 -50
  59. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_cascade_collapse.md +0 -1
  60. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_rails.html.erb +0 -57
  61. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_rails.md +0 -7
  62. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_parent_only.jsx +0 -175
  63. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_parent_only.md +0 -5
  64. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options.jsx +0 -63
  65. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options.md +0 -1
  66. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options_rails.html.erb +0 -16
  67. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_closing_options_rails.md +0 -1
  68. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_event_type.html.erb +0 -224
  69. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_event_type.md +0 -7
  70. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_nav_margin.html.erb +0 -46
  71. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_nav_margin.jsx +0 -42
  72. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_nav_margin_rails.md +0 -1
  73. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_nav_margin_react.md +0 -1
  74. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_reset_key.jsx +0 -100
  75. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_reset_key.md +0 -1
  76. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.md +0 -1
  77. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props.jsx +0 -152
  78. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props.md +0 -17
  79. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props_rails.html.erb +0 -121
  80. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_with_card_title_props_rails.md +0 -17
  81. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_input_options.jsx +0 -68
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac454327c0d3b838170b5844f0b29c8ba70926375192648e7832d498a93fc606
4
- data.tar.gz: cbd07782d75cdf83bf8d943e5a69374228eaf17425cff56e52506cbd245af64a
3
+ metadata.gz: 3a694db56aacc5436fa59819005732f6a32392c0ca9f720790b0cc51611e7419
4
+ data.tar.gz: e7a116cbb6a3d0c0d31bcba99397b0640d3161f0f5c9cf94e5d70bb661f7bf81
5
5
  SHA512:
6
- metadata.gz: 72b8aeddc0f112af97fca118b68799698d2a66b9e647534c245152611bc79bac2e15a48e62eee7b1b3369ce7d4bd46fb5ddb3001ce9856a11be69d571e2d0cf3
7
- data.tar.gz: 0153ab7b9453930428756384bd975b6fcc8b4779ecaa128418ac30482ebbd1170a599567b2573affd077cb2c6a18cf701a394733e8d5693a4f0aefb003d941f4
6
+ metadata.gz: 87349c939a9b429c5fabbf022d701a65f6e2637586110fd0d8db24f8d9627ca72644d36286c4c0c165476993db58606e0e8448b68c6c7ec491097494ea6171cc
7
+ data.tar.gz: 8939f388423407192f7c686c4d9b9b3db89ad977504fed6c167465c26cad06e83c1a8340ec13abaec130f9ca9416b0bcb49979aa2a1866095c8f2ab9e969a74e
@@ -7,7 +7,6 @@ examples:
7
7
  - advanced_table_table_props: Table Props
8
8
  - advanced_table_sticky_header_rails: Sticky Header
9
9
  - advanced_table_table_props_sticky_header: Sticky Header for Responsive Table
10
- - advanced_table_pinned_rows_rails: Pinned Rows
11
10
  - advanced_table_beta_sort: Enable Sorting
12
11
  - advanced_table_responsive: Responsive Tables
13
12
  - advanced_table_custom_cell_rails: Custom Components for Cells
@@ -40,11 +39,9 @@ examples:
40
39
  - advanced_table_sort_per_column: Enable Sort By Column
41
40
  - advanced_table_sort_per_column_for_multi_column: Enable Sort By Column (Multi-Column)
42
41
  - advanced_table_custom_sort: Custom Sort
43
- - advanced_table_sort_parent_only: Sort Parent Only
44
42
  - advanced_table_expanded_control: Expanded Control
45
43
  - advanced_table_expand_by_depth: Expand by Depth
46
44
  - advanced_table_subrow_headers: SubRow Headers
47
- - advanced_table_cascade_collapse: Cascade Collapse
48
45
  - advanced_table_collapsible_trail: Collapsible Trail
49
46
  - advanced_table_table_options: Table Options
50
47
  - advanced_table_table_props: Table Props
@@ -48,6 +48,4 @@ export { default as AdvancedTablePaddingControl } from './_advanced_table_paddin
48
48
  export { default as AdvancedTablePaddingControlPerRow } from './_advanced_table_padding_control_per_row.jsx'
49
49
  export { default as AdvancedTableColumnStylingBackground } from './_advanced_table_column_styling_background.jsx'
50
50
  export { default as AdvancedTableColumnStylingBackgroundMulti } from './_advanced_table_column_styling_background_multi.jsx'
51
- export { default as AdvancedTableColumnStylingBackgroundCustom } from './_advanced_table_column_styling_background_custom.jsx'
52
- export { default as AdvancedTableCascadeCollapse } from './_advanced_table_cascade_collapse.jsx'
53
- export { default as AdvancedTableSortParentOnly } from './_advanced_table_sort_parent_only.jsx'
51
+ export { default as AdvancedTableColumnStylingBackgroundCustom } from './_advanced_table_column_styling_background_custom.jsx'
@@ -1,6 +1,4 @@
1
- <%= pb_rails("caption", props: { text: "Caption light" }) %>
2
- <%= pb_rails("caption", props: { text: "Caption default", color: "default" }) %>
3
- <%= pb_rails("caption", props: { text: "Caption lighter", color: "lighter" }) %>
4
- <%= pb_rails("caption", props: { text: "Caption success", color: "success" }) %>
5
- <%= pb_rails("caption", props: { text: "Caption error", color: "error" }) %>
6
- <%= pb_rails("caption", props: { text: "Caption link", color: "link" }) %>
1
+ <%= pb_rails("caption", props: { text: "Test colors" }) %>
2
+ <%= pb_rails("caption", props: { text: "Test colors", color: "success" }) %>
3
+ <%= pb_rails("caption", props: { text: "Test colors", color: "error" }) %>
4
+ <%= pb_rails("caption", props: { text: "Test colors", color: "link" }) %>
@@ -4,33 +4,23 @@ import Caption from "../../pb_caption/_caption"
4
4
  const CaptionColors = (props) => {
5
5
  return (
6
6
  <div>
7
- <Caption
8
- text="Caption light"
9
- {...props}
10
- />
11
- <Caption
12
- color="default"
13
- text="Caption default"
14
- {...props}
15
- />
16
7
  <Caption
17
- color="lighter"
18
- text="Caption lighter"
8
+ text="Test colors"
19
9
  {...props}
20
10
  />
21
11
  <Caption
22
12
  color="success"
23
- text="Caption success"
13
+ text="Test colors"
24
14
  {...props}
25
15
  />
26
16
  <Caption
27
17
  color="error"
28
- text="Caption error"
18
+ text="Test colors"
29
19
  {...props}
30
20
  />
31
21
  <Caption
32
22
  color="link"
33
- text="Caption link"
23
+ text="Test colors"
34
24
  {...props}
35
25
  />
36
26
  </div>
@@ -1,7 +1,6 @@
1
1
  Datepicker supports `position` options from [Flatpickr Options Documentation](https://flatpickr.js.org/options/). There are multiple positioning options to choose from.
2
2
 
3
3
  **Note:** In order for the above prop to work properly, you must also send `staticPosition={false}` to your Datepicker kit instance.
4
- If you are using the Datepicker within a Dialog, you cannot use the `staticPosition`/`static_position` prop.
5
4
 
6
5
  #### Affix Datepicker Upon Scrolling
7
6
 
@@ -1,6 +1,24 @@
1
- <%= pb_rails("detail", props: { text: "I am a detail kit" }) %>
2
- <%= pb_rails("detail", props: { text: "I am a detail kit", color: "default" }) %>
3
- <%= pb_rails("detail", props: { text: "I am a detail kit", color: "lighter" }) %>
4
- <%= pb_rails("detail", props: { text: "I am a detail kit", color: "link" }) %>
5
- <%= pb_rails("detail", props: { text: "I am a detail kit", color: "error" }) %>
6
- <%= pb_rails("detail", props: { text: "I am a detail kit", color: "success" }) %>
1
+ <%= pb_rails("detail", props: {
2
+ text: "I am a detail kit",
3
+ color: "default"
4
+ }) %>
5
+
6
+ <%= pb_rails("detail", props: {
7
+ text: "I am a detail kit",
8
+ color: "lighter"
9
+ }) %>
10
+
11
+ <%= pb_rails("detail", props: {
12
+ text: "I am a detail kit",
13
+ color: "link"
14
+ }) %>
15
+
16
+ <%= pb_rails("detail", props: {
17
+ text: "I am a detail kit",
18
+ color: "error"
19
+ }) %>
20
+
21
+ <%= pb_rails("detail", props: {
22
+ text: "I am a detail kit",
23
+ color: "success"
24
+ }) %>
@@ -1,40 +1,38 @@
1
1
  import React from 'react'
2
2
  import Detail from '../../pb_detail/_detail'
3
3
 
4
- const DetailColors = (props) => {
5
- return (
6
- <div>
7
- <Detail
8
- text="I am a detail kit"
9
- {...props}
10
- />
11
- <Detail
12
- color="default"
13
- text="I am a detail kit"
14
- {...props}
15
- />
16
- <Detail
17
- color="lighter"
18
- text="I am a detail kit"
19
- {...props}
20
- />
21
- <Detail
22
- color="link"
23
- text="I am a detail kit"
24
- {...props}
25
- />
26
- <Detail
27
- color="error"
28
- text="I am a detail kit"
29
- {...props}
30
- />
31
- <Detail
32
- color="success"
33
- text="I am a detail kit"
34
- {...props}
35
- />
36
- </div>
37
- )
38
- }
4
+ const DetailColors = (props) => (
5
+ <div>
6
+ <Detail
7
+ color="default"
8
+ text="I am a detail kit"
9
+ {...props}
10
+ />
11
+
12
+ <Detail
13
+ color="lighter"
14
+ text="I am a detail kit"
15
+ {...props}
16
+ />
17
+
18
+ <Detail
19
+ color="link"
20
+ text="I am a detail kit"
21
+ {...props}
22
+ />
23
+
24
+ <Detail
25
+ color="error"
26
+ text="I am a detail kit"
27
+ {...props}
28
+ />
29
+
30
+ <Detail
31
+ color="success"
32
+ text="I am a detail kit"
33
+ {...props}
34
+ />
35
+ </div>
36
+ )
39
37
 
40
38
  export default DetailColors
@@ -28,7 +28,7 @@
28
28
  <% end %>
29
29
  <%= pb_rails("dialog/dialog_body") do %>
30
30
  <%= pb_rails("caption", props: { text: "Description", margin_bottom: "xs" }) %>
31
- <%= pb_rails("textarea", props: {id: "default"}) %>
31
+ <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
32
32
  <%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
33
33
  <%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
34
34
  <%= pb_rails("dropdown", props: {options: options, autocomplete: true}) %>
@@ -4,7 +4,7 @@ import Body from '../../pb_body/_body'
4
4
  import Button from '../../pb_button/_button'
5
5
  import Caption from '../../pb_caption/_caption'
6
6
  import Dialog from '../../pb_dialog/_dialog'
7
- import Textarea from '../../pb_textarea/_textarea'
7
+ import RichTextEditor from '../../pb_rich_text_editor/_rich_text_editor'
8
8
  import Typeahead from '../../pb_typeahead/_typeahead'
9
9
 
10
10
  const DialogCompound = () => {
@@ -25,11 +25,8 @@ const DialogCompound = () => {
25
25
  <Body>{'What do you need us to take care of?'}</Body>
26
26
  </Dialog.Header>
27
27
  <Dialog.Body>
28
- <Textarea
29
- id="default-example-1"
30
- label="Description"
31
- rows={4}
32
- />
28
+ <Caption marginBottom="xs">{'Description'}</Caption>
29
+ <RichTextEditor />
33
30
  <br />
34
31
  <Caption>
35
32
  {
@@ -1,6 +1,4 @@
1
1
  The dialog kit also supports customizing your dialog with a [compound component](https://kentcdodds.com/blog/compound-components-with-react-hooks) structure.
2
2
  This allows for greater flexibility and more complex dialogs.
3
3
 
4
- For the Rails version, when using the kit as a compound component it is necessary to pass the same value as the id for the dialog, the dialog header and the dialog footer in order for the opening and closing of the dialog to function as expected.
5
-
6
- If you are using the datepicker within the Rails dialog, do not use the `static_position` prop on the datepicker.
4
+ For the Rails version, when using the kit as a compound component it is necessary to pass the same value as the id for the dialog, the dialog header and the dialog footer in order for the opening and closing of the dialog to function as expected.
@@ -1,20 +1,11 @@
1
1
  <%= pb_rails("button", props: { text: "Open Dialog", data: {"open-dialog": "dialog-1"} }) %>
2
2
 
3
- <%= pb_rails("dialog", props: {
4
- id:"dialog-1",
5
- size: "md",
6
- title: "Header Title is the Title Prop"
7
- }) do %>
8
- <%= pb_rails("dialog/dialog_body") do %>
9
- <%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, margin_right: "lg", text: "Button Primary" }) %>
10
- <div style="height: 800px; background-color: lightgray;"></div>
11
- <%= pb_rails("button", props: { loading: true, text: "Loading..." }) %>
12
- <% end %>
13
-
14
- <%= pb_rails("dialog/dialog_footer") do %>
15
- <%= pb_rails("flex", props: { spacing: "between", padding_x: "md", padding_bottom: "md", padding: "sm" }) do %>
16
- <%= pb_rails("button", props: { loading: true, text: "Send My Issue" }) %>
17
- <%= pb_rails("button", props: { text: "Back", variant: "link", data: {"close-dialog": "dialog-1"} }) %>
18
- <% end %>
19
- <% end %>
20
- <% end %>
3
+ <%= pb_rails("dialog", props: {
4
+ id:"dialog-1",
5
+ size: "sm",
6
+ title: "Header Title is the Title Prop",
7
+ text: "Hello Body Text, Nice to meet ya.",
8
+ cancel_button: "Cancel Button",
9
+ confirm_button: "Okay",
10
+ confirm_button_id: "confirm-button-1"
11
+ }) %>
@@ -12,35 +12,16 @@ const DialogDefault = () => {
12
12
  <>
13
13
  <Button onClick={open}>{'Open Dialog'}</Button>
14
14
  <Dialog
15
+ cancelButton="Cancel Button"
16
+ confirmButton="Okay"
15
17
  onCancel={close}
16
18
  onClose={close}
17
19
  onConfirm={close}
18
20
  opened={isOpen}
19
- size="md"
21
+ size="sm"
22
+ text="Hello Body Text, Nice to meet ya."
20
23
  title="Header Title is the Title Prop"
21
- >
22
- <Dialog.Body>
23
- <Button
24
- aria={{ label: 'Loading' }}
25
- loading
26
- text="Button Primary"
27
- />
28
- <div style={{height: '800px', backgroundColor: 'lightgray'}} />
29
- <Button
30
- loading
31
- text="Loading..."
32
- />
33
- </Dialog.Body>
34
- <Dialog.Footer>
35
- <Button
36
- loading
37
- text="Send My Issue"
38
- />
39
- <Button variant="link">
40
- {"Back"}
41
- </Button>
42
- </Dialog.Footer>
43
- </Dialog>
24
+ />
44
25
  </>
45
26
  )
46
27
  }
@@ -12,7 +12,7 @@
12
12
  <% end %>
13
13
  <%= pb_rails("dialog/dialog_body") do %>
14
14
  <%= pb_rails("caption", props: { text: "Description", margin_bottom: "xs" }) %>
15
- <%= pb_rails("textarea", props: {id: "default-7"}) %>
15
+ <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
16
16
  <%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
17
17
  <%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
18
18
 
@@ -31,7 +31,7 @@
31
31
  <% end %>
32
32
  <%= pb_rails("dialog/dialog_body") do %>
33
33
  <%= pb_rails("caption", props: { text: "Description", margin_bottom: "xs" }) %>
34
- <%= pb_rails("textarea", props: {id: "default-8"}) %>
34
+ <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
35
35
  <%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
36
36
  <%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
37
37
 
@@ -49,7 +49,7 @@
49
49
  <% end %>
50
50
  <%= pb_rails("dialog/dialog_body") do %>
51
51
  <%= pb_rails("caption", props: { text: "Description", margin_bottom: "xs" }) %>
52
- <%= pb_rails("textarea", props: {id: "default-9"}) %>
52
+ <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
53
53
  <%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
54
54
  <%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
55
55
 
@@ -5,7 +5,7 @@ import Button from '../../pb_button/_button'
5
5
  import Dialog from '../../pb_dialog/_dialog'
6
6
  import Flex from '../../pb_flex/_flex'
7
7
  import Caption from '../../pb_caption/_caption'
8
- import Textarea from '../../pb_textarea/_textarea'
8
+ import RichTextEditor from '../../pb_rich_text_editor/_rich_text_editor'
9
9
  import Typeahead from '../../pb_typeahead/_typeahead'
10
10
 
11
11
  const useDialog = (visible = false) => {
@@ -77,11 +77,8 @@ const DialogFullHeight = () => {
77
77
  <Body>{title}</Body>
78
78
  </Dialog.Header>
79
79
  <Dialog.Body>
80
- <Textarea
81
- id="default-example-1"
82
- label="Description"
83
- rows={4}
84
- />
80
+ <Caption marginBottom="xs">{"Description"}</Caption>
81
+ <RichTextEditor />
85
82
  <br />
86
83
  <Caption>
87
84
  {
@@ -13,7 +13,7 @@
13
13
  <% end %>
14
14
  <%= pb_rails("dialog/dialog_body") do %>
15
15
  <%= pb_rails("caption", props: { text: "Description", margin_bottom: "xs" }) %>
16
- <%= pb_rails("textarea", props: {id: "default-2"}) %>
16
+ <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
17
17
  <%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
18
18
  <%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
19
19
  <% end %>
@@ -32,7 +32,7 @@
32
32
  <% end %>
33
33
  <%= pb_rails("dialog/dialog_body") do %>
34
34
  <%= pb_rails("caption", props: { text: "Description", margin_bottom: "xs" }) %>
35
- <%= pb_rails("textarea", props: {id: "default-3"}) %>
35
+ <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
36
36
  <%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
37
37
  <%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
38
38
  <% end %>
@@ -50,7 +50,7 @@
50
50
  <% end %>
51
51
  <%= pb_rails("dialog/dialog_body") do %>
52
52
  <%= pb_rails("caption", props: { text: "Description", margin_bottom: "xs" }) %>
53
- <%= pb_rails("textarea", props: {id: "default-4"}) %>
53
+ <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
54
54
  <%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
55
55
  <%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
56
56
  <% end %>
@@ -5,7 +5,7 @@ import Button from '../../pb_button/_button'
5
5
  import Dialog from '../../pb_dialog/_dialog'
6
6
  import Flex from '../../pb_flex/_flex'
7
7
  import Caption from '../../pb_caption/_caption'
8
- import Textarea from "../../pb_textarea/_textarea";
8
+ import RichTextEditor from '../../pb_rich_text_editor/_rich_text_editor'
9
9
  import Typeahead from '../../pb_typeahead/_typeahead'
10
10
 
11
11
  const useDialog = (visible = false) => {
@@ -76,11 +76,8 @@ const DialogFullHeightPlacement = () => {
76
76
  <Body>{title}</Body>
77
77
  </Dialog.Header>
78
78
  <Dialog.Body>
79
- <Textarea
80
- id={`default-example-2-${index}`}
81
- label="Description"
82
- rows={4}
83
- />
79
+ <Caption marginBottom="xs">{"Description"}</Caption>
80
+ <RichTextEditor />
84
81
  <br />
85
82
  <Caption>
86
83
  {
@@ -25,7 +25,6 @@ examples:
25
25
  - dropdown_separators_hidden: Separators Hidden
26
26
  - dropdown_with_clearable: Clearable
27
27
  - dropdown_with_constrain_height_rails: Constrain Height
28
- - dropdown_closing_options_rails: Closing Options
29
28
  - dropdown_quickpick_rails: Quick Pick Variant
30
29
  - dropdown_quickpick_range_end_rails: Quick Pick Variant (Range Ends Today)
31
30
  - dropdown_quickpick_default_dates: Quick Pick Variant (Default Dates)
@@ -33,7 +32,6 @@ examples:
33
32
  - dropdown_quickpick_with_date_pickers_rails: Quick Pick with Date Pickers
34
33
  - dropdown_quickpick_with_date_pickers_default_rails: Quick Pick with Date Pickers (Default Value)
35
34
  - dropdown_required_indicator: Required Indicator
36
- - dropdown_custom_event_type: Custom Event Type
37
35
 
38
36
  react:
39
37
  - dropdown_default: Default
@@ -64,7 +62,6 @@ examples:
64
62
  - dropdown_with_constrain_height: Constrain Height
65
63
  - dropdown_separators_hidden: Separators Hidden
66
64
  - dropdown_with_external_control: useDropdown Hook
67
- - dropdown_closing_options: Closing Options
68
65
  - dropdown_quickpick: Quick Pick Variant
69
66
  - dropdown_quickpick_range_end: Quick Pick Variant (Range Ends Today)
70
67
  - dropdown_quickpick_default_dates: Quick Pick Variant (Default Dates)
@@ -31,5 +31,4 @@ export { default as DropdownQuickpickWithDatePickers } from './_dropdown_quickpi
31
31
  export { default as DropdownQuickpickCustom } from './_dropdown_quickpick_custom.jsx'
32
32
  export { default as DropdownWithClearable } from './_dropdown_with_clearable.jsx'
33
33
  export { default as DropdownWithConstrainHeight } from './_dropdown_with_constrain_height.jsx'
34
- export { default as DropdownClosingOptions } from './_dropdown_closing_options.jsx'
35
34
  export { default as DropdownRequiredIndicator } from "./_dropdown_required_indicator.jsx";
@@ -2,7 +2,6 @@ examples:
2
2
 
3
3
  rails:
4
4
  - fixed_confirmation_toast_default: Default
5
- - fixed_confirmation_toast_nav_margin: Nav Margin Top
6
5
  - fixed_confirmation_toast_multi_line: Multi Line
7
6
  - fixed_confirmation_toast_close: Click to Close
8
7
  - fixed_confirmation_toast_positions: Click to Show Positions
@@ -13,7 +12,6 @@ examples:
13
12
 
14
13
  react:
15
14
  - fixed_confirmation_toast_default: Default
16
- - fixed_confirmation_toast_nav_margin: Nav Margin Top
17
15
  - fixed_confirmation_toast_multi_line: Multi Line
18
16
  - fixed_confirmation_toast_close: Click to Close
19
17
  - fixed_confirmation_toast_positions: Click to Show Positions
@@ -5,5 +5,4 @@ export { default as FixedConfirmationToastPositions } from './_fixed_confirmatio
5
5
  export { default as FixedConfirmationToastAutoClose } from './_fixed_confirmation_toast_auto_close.jsx'
6
6
  export { default as FixedConfirmationToastChildren } from './_fixed_confirmation_toast_children.jsx'
7
7
  export { default as FixedConfirmationToastCustomIcon } from './_fixed_confirmation_toast_custom_icon.jsx'
8
- export { default as FixedConfirmationToastNoIcon } from './_fixed_confirmation_toast_no_icon.jsx'
9
- export { default as FixedConfirmationToastNavMargin } from './_fixed_confirmation_toast_nav_margin.jsx'
8
+ export { default as FixedConfirmationToastNoIcon } from './_fixed_confirmation_toast_no_icon.jsx'
@@ -39,4 +39,3 @@ examples:
39
39
  - multi_level_select_disabled_options_parent: Disabled Parent Option (Return All Selected)
40
40
  - multi_level_select_single_disabled: Disabled Options (Single Select)
41
41
  - multi_level_select_required_indicator: Required Indicator
42
- - multi_level_select_react_reset_key: Reset with Key (React)
@@ -17,4 +17,3 @@ export { default as MultiLevelSelectDisabledOptionsDefault } from "./_multi_leve
17
17
  export { default as MultiLevelSelectLabel } from "./_multi_level_select_label.jsx"
18
18
  export { default as MultiLevelSelectSingleDisabled } from "./_multi_level_select_single_disabled.jsx"
19
19
  export { default as MultiLevelSelectRequiredIndicator } from "./_multi_level_select_required_indicator.jsx"
20
- export { default as MultiLevelSelectReactResetKey } from "./_multi_level_select_react_reset_key.jsx"
@@ -9,7 +9,7 @@ const PaginationDefault = (props) => {
9
9
  <Pagination
10
10
  current={1}
11
11
  range={5}
12
- total={1000}
12
+ total={10}
13
13
  {...props}
14
14
  />
15
15
  </>
@@ -0,0 +1,5 @@
1
+ <%= pb_rails("rich_text_editor", props: {
2
+ aria: { label: "rich-textarea" },
3
+ data: { key: "value", key2: "value2" },
4
+ name: "textarea-label",
5
+ }) %>
@@ -0,0 +1,15 @@
1
+ import React from 'react'
2
+ import RichTextEditor from '../../pb_rich_text_editor/_rich_text_editor'
3
+
4
+ const RichTextEditorAttributes = (props) => (
5
+ <div>
6
+ <RichTextEditor
7
+ aria={{ label: 'rich textarea' }}
8
+ data={{ key: 'value', key2: 'value2' }}
9
+ name="name-attribute"
10
+ {...props}
11
+ />
12
+ </div>
13
+ )
14
+
15
+ export default RichTextEditorAttributes
@@ -0,0 +1 @@
1
+ <%= pb_rails("rich_text_editor", props: {input_options: { id: 'hidden_input_id', name: "hidden_input_name" }, value: "Add your text here. You can format your text, add links, quotes, and bullets."}) %>
@@ -1,10 +1,5 @@
1
1
  import React, { useState } from 'react'
2
2
  import RichTextEditor from '../../pb_rich_text_editor/_rich_text_editor'
3
- import Caption from '../../pb_caption/_caption'
4
- // The TrixEditor and Trix imports are required for the Legacy RichTextEditor to work
5
- // They are passed as props to the RichTextEditor kit
6
- import { TrixEditor } from 'react-trix'
7
- import Trix from 'trix'
8
3
 
9
4
  const RichTextEditorDefault = (props) => {
10
5
  const [value, setValue] = useState('Add your text here. You can format your text, add links, quotes, and bullets.'),
@@ -12,62 +7,11 @@ const RichTextEditorDefault = (props) => {
12
7
 
13
8
  return (
14
9
  <div>
15
- <Caption marginBottom="xs"
16
- text="Default"
17
- />
18
10
  <RichTextEditor
19
- TrixEditor={TrixEditor}
20
11
  onChange={handleOnChange}
21
- trixInstance={Trix}
22
12
  value={value}
23
13
  {...props}
24
14
  />
25
- <br/>
26
- <Caption marginBottom="xs"
27
- text="Simple"
28
- />
29
- <RichTextEditor
30
- TrixEditor={TrixEditor}
31
- simple
32
- trixInstance={Trix}
33
- {...props}
34
- />
35
- <br/>
36
- <Caption marginBottom="xs"
37
- text="Focus"
38
- />
39
- <RichTextEditor
40
- TrixEditor={TrixEditor}
41
- focus
42
- trixInstance={Trix}
43
- {...props}
44
- />
45
- <br/>
46
- <Caption marginBottom="xs"
47
- text="Inline"
48
- />
49
- <RichTextEditor
50
- TrixEditor={TrixEditor}
51
- id="inline"
52
- inline
53
- toolbarBottom
54
- trixInstance={Trix}
55
- value="Try hovering over this text. Then try modifying it or adding more of your own text."
56
- {...props}
57
- />
58
- <br/>
59
- <Caption marginBottom="xs"
60
- text="Sticky"
61
- />
62
- <RichTextEditor
63
- TrixEditor={TrixEditor}
64
- id="sticky"
65
- sticky
66
- trixInstance={Trix}
67
- value="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. 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 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 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.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 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 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."
68
- {...props}
69
- />
70
-
71
15
  </div>
72
16
  )
73
17
  }
@@ -0,0 +1,3 @@
1
+ <%= pb_rails("rich_text_editor", props: {focus: true}) %>
2
+ <br>
3
+ <%= pb_rails("rich_text_editor", props: {focus: true}) %>