playbook_ui_docs 15.7.0.pre.alpha.PLAY2678emojimask13284 → 15.7.0.pre.alpha.play2607setheightofeditor13370
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.jsx +71 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.md +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_heigh.md +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx +71 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +3 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9e0cc872bb6ce11bc5820a0dc1a3516adcd0dd0eda9bd4ed0e1bf0c0b1d1e11
|
|
4
|
+
data.tar.gz: 398e66530da3b3e15adb21a58a731e0c4b6e9eafc3b8631a9fcd23e1b5d4f0e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6eb32223f0baf7f673e997fd32545d163e3f44e28a82cc9275c9b140737f7be800ff6ba3379958af43603c406c2d9e2a2b5ec134fc70896799022317d44c690d
|
|
7
|
+
data.tar.gz: 396a761f7d60ced387ba2a3c89f3265860cc3dded8489b96f5b300831d4de559d7046d2bbc76cf6db9cf65800676589824939995175d941fd0ebce7b643bf681
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
<%= pb_form_with(scope: :example, url: "", method: :get) do |form| %>
|
|
92
92
|
<%= form.typeahead :example_typeahead, props: { data: { typeahead_example1: true, user: {} }, label: true, placeholder: "Search for a user" } %>
|
|
93
|
-
<%= form.text_field :example_text_field, props: { label:
|
|
93
|
+
<%= form.text_field :example_text_field, props: { label: true } %>
|
|
94
94
|
<%= form.text_field :example_text_field_2, props: { label: "Text Field Custom Label" } %>
|
|
95
95
|
<%= form.phone_number_field :example_phone_number_field, props: { label: "Example phone field", hidden_inputs: true } %>
|
|
96
96
|
<%= form.email_field :example_email_field, props: { label: true } %>
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
<%= form.search_field :example_search_field, props: { label: true } %>
|
|
99
99
|
<%= form.password_field :example_password_field, props: { label: true } %>
|
|
100
100
|
<%= form.url_field :example_url_field, props: { label: true } %>
|
|
101
|
-
<%= form.text_area :example_text_area, props: { label:
|
|
101
|
+
<%= form.text_area :example_text_area, props: { label: true } %>
|
|
102
102
|
<%= form.dropdown_field :example_dropdown, props: { label: true, options: example_dropdown_options } %>
|
|
103
103
|
<%= form.dropdown_field :example_dropdown_multi, props: { label: true, options: example_dropdown_options, multi_select: true } %>
|
|
104
104
|
<%= form.select :example_select, [ ["Yes", 1], ["No", 2] ], props: { label: true } %>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import RichTextEditor from '../_rich_text_editor'
|
|
3
|
+
import { useEditor, EditorContent } from "@tiptap/react"
|
|
4
|
+
import StarterKit from "@tiptap/starter-kit"
|
|
5
|
+
import Link from '@tiptap/extension-link'
|
|
6
|
+
import { Caption } from "playbook-ui"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const RichTextEditorAdvancedHeight = (props) => {
|
|
10
|
+
|
|
11
|
+
const editor = useEditor({
|
|
12
|
+
extensions: [
|
|
13
|
+
StarterKit,
|
|
14
|
+
Link
|
|
15
|
+
],
|
|
16
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
const editor2 = useEditor({
|
|
20
|
+
extensions: [
|
|
21
|
+
StarterKit,
|
|
22
|
+
Link
|
|
23
|
+
],
|
|
24
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const editor3 = useEditor({
|
|
28
|
+
extensions: [
|
|
29
|
+
StarterKit,
|
|
30
|
+
Link
|
|
31
|
+
],
|
|
32
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div>
|
|
37
|
+
<Caption>sm</Caption>
|
|
38
|
+
<RichTextEditor
|
|
39
|
+
advancedEditor={editor}
|
|
40
|
+
inputHeight="sm"
|
|
41
|
+
{...props}
|
|
42
|
+
>
|
|
43
|
+
<EditorContent editor={editor} />
|
|
44
|
+
</RichTextEditor>
|
|
45
|
+
|
|
46
|
+
<br />
|
|
47
|
+
|
|
48
|
+
<Caption>md</Caption>
|
|
49
|
+
<RichTextEditor
|
|
50
|
+
advancedEditor={editor2}
|
|
51
|
+
inputHeight="md"
|
|
52
|
+
{...props}
|
|
53
|
+
>
|
|
54
|
+
<EditorContent editor={editor2} />
|
|
55
|
+
</RichTextEditor>
|
|
56
|
+
|
|
57
|
+
<br />
|
|
58
|
+
|
|
59
|
+
<Caption>lg</Caption>
|
|
60
|
+
<RichTextEditor
|
|
61
|
+
advancedEditor={editor3}
|
|
62
|
+
inputHeight="lg"
|
|
63
|
+
{...props}
|
|
64
|
+
>
|
|
65
|
+
<EditorContent editor={editor3} />
|
|
66
|
+
</RichTextEditor>
|
|
67
|
+
</div>
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default RichTextEditorAdvancedHeight
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use the `inputHeight` prop to keep the text area a specific height. If the text exceeds the text area, it will automatically add a scrollbar to maintain the fixed height.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use the inputMinHeight prop to render the text area with a minimum height. If the text exceeds the text area, the text area will grow to accommodate it.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import RichTextEditor from '../_rich_text_editor'
|
|
3
|
+
import { useEditor, EditorContent } from "@tiptap/react"
|
|
4
|
+
import StarterKit from "@tiptap/starter-kit"
|
|
5
|
+
import Link from '@tiptap/extension-link'
|
|
6
|
+
import { Caption } from "playbook-ui"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const RichTextEditorAdvancedMinHeight = (props) => {
|
|
10
|
+
|
|
11
|
+
const editor1 = useEditor({
|
|
12
|
+
extensions: [
|
|
13
|
+
StarterKit,
|
|
14
|
+
Link
|
|
15
|
+
],
|
|
16
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
const editor2 = useEditor({
|
|
20
|
+
extensions: [
|
|
21
|
+
StarterKit,
|
|
22
|
+
Link
|
|
23
|
+
],
|
|
24
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const editor3 = useEditor({
|
|
28
|
+
extensions: [
|
|
29
|
+
StarterKit,
|
|
30
|
+
Link
|
|
31
|
+
],
|
|
32
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div>
|
|
37
|
+
<Caption>sm</Caption>
|
|
38
|
+
<RichTextEditor
|
|
39
|
+
advancedEditor={editor1}
|
|
40
|
+
inputMinHeight="sm"
|
|
41
|
+
{...props}
|
|
42
|
+
>
|
|
43
|
+
<EditorContent editor={editor1} />
|
|
44
|
+
</RichTextEditor>
|
|
45
|
+
|
|
46
|
+
<br />
|
|
47
|
+
|
|
48
|
+
<Caption>md</Caption>
|
|
49
|
+
<RichTextEditor
|
|
50
|
+
advancedEditor={editor2}
|
|
51
|
+
inputMinHeight="md"
|
|
52
|
+
{...props}
|
|
53
|
+
>
|
|
54
|
+
<EditorContent editor={editor2} />
|
|
55
|
+
</RichTextEditor>
|
|
56
|
+
|
|
57
|
+
<br />
|
|
58
|
+
|
|
59
|
+
<Caption>lg</Caption>
|
|
60
|
+
<RichTextEditor
|
|
61
|
+
advancedEditor={editor3}
|
|
62
|
+
inputMinHeight="lg"
|
|
63
|
+
{...props}
|
|
64
|
+
>
|
|
65
|
+
<EditorContent editor={editor3} />
|
|
66
|
+
</RichTextEditor>
|
|
67
|
+
</div>
|
|
68
|
+
)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default RichTextEditorAdvancedMinHeight
|
|
@@ -29,5 +29,7 @@ examples:
|
|
|
29
29
|
# - rich_text_editor_toolbar_bottom: Toolbar Bottom
|
|
30
30
|
- rich_text_editor_inline: Inline
|
|
31
31
|
- rich_text_editor_advanced_inline: Advanced (Inline)
|
|
32
|
+
- rich_text_editor_advanced_height: Advanced Height
|
|
33
|
+
- rich_text_editor_advanced_min_height: Advanced Min Height
|
|
32
34
|
- rich_text_editor_preview: Preview
|
|
33
35
|
- rich_text_editor_advanced_preview: Advanced Preview
|
|
@@ -16,4 +16,6 @@ export { default as RichTextEditorAdvancedFocus } from './_rich_text_editor_adva
|
|
|
16
16
|
export { default as RichTextEditorAdvancedTemplates } from './_rich_text_editor_advanced_templates.jsx'
|
|
17
17
|
export { default as RichTextEditorAdvancedAttributes } from './_rich_text_editor_advanced_attributes.jsx'
|
|
18
18
|
export { default as RichTextEditorAdvancedSticky } from './_rich_text_editor_advanced_sticky.jsx'
|
|
19
|
-
export { default as RichTextEditorAdvancedInline } from './_rich_text_editor_advanced_inline.jsx'
|
|
19
|
+
export { default as RichTextEditorAdvancedInline } from './_rich_text_editor_advanced_inline.jsx'
|
|
20
|
+
export { default as RichTextEditorAdvancedHeight } from './_rich_text_editor_advanced_height.jsx'
|
|
21
|
+
export { default as RichTextEditorAdvancedMinHeight } from './_rich_text_editor_advanced_min_height.jsx'
|
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.7.0.pre.alpha.
|
|
4
|
+
version: 15.7.0.pre.alpha.play2607setheightofeditor13370
|
|
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: 2026-01-
|
|
12
|
+
date: 2026-01-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: playbook_ui
|
|
@@ -2003,8 +2003,12 @@ files:
|
|
|
2003
2003
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_default.md
|
|
2004
2004
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.jsx
|
|
2005
2005
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_focus.md
|
|
2006
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.jsx
|
|
2007
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.md
|
|
2006
2008
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx
|
|
2007
2009
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md
|
|
2010
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_heigh.md
|
|
2011
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx
|
|
2008
2012
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx
|
|
2009
2013
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx
|
|
2010
2014
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.jsx
|