playbook_ui 12.9.1.pre.alpha.play664tiptapinvestigation353 → 12.10.0.pre.alpha.PLAY677richtexteditorts370

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/pb_body/docs/_body_articles.html.erb +8 -0
  4. data/app/pb_kits/playbook/pb_body/docs/_body_articles.jsx +20 -0
  5. data/app/pb_kits/playbook/pb_body/docs/_body_articles.md +1 -0
  6. data/app/pb_kits/playbook/pb_body/docs/example.yml +2 -0
  7. data/app/pb_kits/playbook/pb_body/docs/index.js +1 -0
  8. data/app/pb_kits/playbook/pb_map/_map.scss +153 -31
  9. data/app/pb_kits/playbook/pb_map/_pb_map_button_mixin.scss +53 -0
  10. data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -2
  11. data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +29 -8
  12. data/app/pb_kits/playbook/pb_nav/{_item.jsx → _item.tsx} +38 -36
  13. data/app/pb_kits/playbook/pb_nav/_nav.test.js +119 -0
  14. data/app/pb_kits/playbook/pb_nav/{_nav.jsx → _nav.tsx} +19 -20
  15. data/app/pb_kits/playbook/pb_nav/_nav_item.test.js +83 -0
  16. data/app/pb_kits/playbook/pb_rich_text_editor/{_rich_text_editor.jsx → _rich_text_editor.tsx} +42 -46
  17. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -2
  18. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +0 -1
  19. data/app/pb_kits/playbook/pb_rich_text_editor/{inlineFocus.js → inlineFocus.ts} +1 -1
  20. data/app/pb_kits/playbook/pb_rich_text_editor/{useFocus.js → useFocus.ts} +1 -1
  21. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +6 -4
  22. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.html.erb +4 -0
  23. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.jsx +23 -0
  24. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +2 -0
  25. data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
  26. data/lib/playbook/pb_doc_helper.rb +8 -3
  27. data/lib/playbook/version.rb +2 -2
  28. metadata +16 -10
  29. data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap.jsx +0 -66
  30. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_tip_tap.jsx +0 -15
  31. /data/{app/pb_kits/playbook/data → dist}/menu.yml +0 -0
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: 12.9.1.pre.alpha.play664tiptapinvestigation353
4
+ version: 12.10.0.pre.alpha.PLAY677richtexteditorts370
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: 2023-03-21 00:00:00.000000000 Z
12
+ date: 2023-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -294,7 +294,6 @@ files:
294
294
  - Rakefile
295
295
  - app/pb_kits/playbook/_playbook.scss
296
296
  - app/pb_kits/playbook/_reset.scss
297
- - app/pb_kits/playbook/data/menu.yml
298
297
  - app/pb_kits/playbook/index.js
299
298
  - app/pb_kits/playbook/pb_avatar/_avatar.scss
300
299
  - app/pb_kits/playbook/pb_avatar/_avatar.tsx
@@ -406,6 +405,9 @@ files:
406
405
  - app/pb_kits/playbook/pb_body/body.html.erb
407
406
  - app/pb_kits/playbook/pb_body/body.rb
408
407
  - app/pb_kits/playbook/pb_body/body.test.js
408
+ - app/pb_kits/playbook/pb_body/docs/_body_articles.html.erb
409
+ - app/pb_kits/playbook/pb_body/docs/_body_articles.jsx
410
+ - app/pb_kits/playbook/pb_body/docs/_body_articles.md
409
411
  - app/pb_kits/playbook/pb_body/docs/_body_block.html.erb
410
412
  - app/pb_kits/playbook/pb_body/docs/_body_block.jsx
411
413
  - app/pb_kits/playbook/pb_body/docs/_body_light.html.erb
@@ -1396,6 +1398,7 @@ files:
1396
1398
  - app/pb_kits/playbook/pb_logistic/_logistic.jsx
1397
1399
  - app/pb_kits/playbook/pb_map/_map.scss
1398
1400
  - app/pb_kits/playbook/pb_map/_map.tsx
1401
+ - app/pb_kits/playbook/pb_map/_pb_map_button_mixin.scss
1399
1402
  - app/pb_kits/playbook/pb_map/docs/_map_default.jsx
1400
1403
  - app/pb_kits/playbook/pb_map/docs/_map_default.md
1401
1404
  - app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx
@@ -1461,9 +1464,11 @@ files:
1461
1464
  - app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb
1462
1465
  - app/pb_kits/playbook/pb_nav/_bold_mixin.scss
1463
1466
  - app/pb_kits/playbook/pb_nav/_horizontal_nav.scss
1464
- - app/pb_kits/playbook/pb_nav/_item.jsx
1465
- - app/pb_kits/playbook/pb_nav/_nav.jsx
1467
+ - app/pb_kits/playbook/pb_nav/_item.tsx
1466
1468
  - app/pb_kits/playbook/pb_nav/_nav.scss
1469
+ - app/pb_kits/playbook/pb_nav/_nav.test.js
1470
+ - app/pb_kits/playbook/pb_nav/_nav.tsx
1471
+ - app/pb_kits/playbook/pb_nav/_nav_item.test.js
1467
1472
  - app/pb_kits/playbook/pb_nav/_subtle_mixin.scss
1468
1473
  - app/pb_kits/playbook/pb_nav/_vertical_nav.scss
1469
1474
  - app/pb_kits/playbook/pb_nav/docs/_block_nav.html.erb
@@ -1705,9 +1710,8 @@ files:
1705
1710
  - app/pb_kits/playbook/pb_radio/radio.html.erb
1706
1711
  - app/pb_kits/playbook/pb_radio/radio.rb
1707
1712
  - app/pb_kits/playbook/pb_radio/radio.test.js
1708
- - app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx
1709
1713
  - app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss
1710
- - app/pb_kits/playbook/pb_rich_text_editor/_tiptap.jsx
1714
+ - app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx
1711
1715
  - app/pb_kits/playbook/pb_rich_text_editor/_trix_styles.scss
1712
1716
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.html.erb
1713
1717
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.jsx
@@ -1725,17 +1729,16 @@ files:
1725
1729
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.jsx
1726
1730
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.html.erb
1727
1731
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
1728
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_tip_tap.jsx
1729
1732
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.html.erb
1730
1733
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx
1731
1734
  - app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml
1732
1735
  - app/pb_kits/playbook/pb_rich_text_editor/docs/index.js
1733
1736
  - app/pb_kits/playbook/pb_rich_text_editor/docs/templates.js
1734
- - app/pb_kits/playbook/pb_rich_text_editor/inlineFocus.js
1737
+ - app/pb_kits/playbook/pb_rich_text_editor/inlineFocus.ts
1735
1738
  - app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.html.erb
1736
1739
  - app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb
1737
1740
  - app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.test.js
1738
- - app/pb_kits/playbook/pb_rich_text_editor/useFocus.js
1741
+ - app/pb_kits/playbook/pb_rich_text_editor/useFocus.ts
1739
1742
  - app/pb_kits/playbook/pb_section_separator/_section_separator.scss
1740
1743
  - app/pb_kits/playbook/pb_section_separator/_section_separator.tsx
1741
1744
  - app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss
@@ -2002,6 +2005,8 @@ files:
2002
2005
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md
2003
2006
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.html.erb
2004
2007
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.jsx
2008
+ - app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.html.erb
2009
+ - app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.jsx
2005
2010
  - app/pb_kits/playbook/pb_text_input/docs/example.yml
2006
2011
  - app/pb_kits/playbook/pb_text_input/docs/index.js
2007
2012
  - app/pb_kits/playbook/pb_text_input/text_input.html.erb
@@ -2386,6 +2391,7 @@ files:
2386
2391
  - app/pb_kits/playbook/utilities/test/globalProps/justifySelf.test.js
2387
2392
  - app/pb_kits/playbook/utilities/test/globalProps/order.test.js
2388
2393
  - app/pb_kits/playbook/utilities/text.ts
2394
+ - dist/menu.yml
2389
2395
  - dist/reset.css
2390
2396
  - lib/playbook.rb
2391
2397
  - lib/playbook/align_content.rb
@@ -1,66 +0,0 @@
1
- import React from 'react'
2
- import { useEditor, EditorContent } from "@tiptap/react"
3
- import StarterKit from "@tiptap/starter-kit"
4
- import Bold from '@tiptap/extension-bold'
5
- import Strike from '@tiptap/extension-strike'
6
- import Italic from '@tiptap/extension-italic'
7
-
8
- const PBTipTapEditor = () => {
9
- const editor = useEditor({
10
- extensions: [
11
- StarterKit,
12
- Bold,
13
- Italic,
14
- Strike
15
- ],
16
- content:"Hi from Tiptap!"
17
- })
18
- Bold.configure({
19
- HTMLAttributes: {
20
- class: 'my-custom-class',
21
- },
22
- })
23
- if (!editor) {
24
- return null
25
- }
26
-
27
- return (
28
- <>
29
- <button
30
- className={editor.isActive('bold') ? 'is-active' : ''}
31
- onClick={() => editor.chain().focus().toggleBold().run()}
32
- >
33
- Bold
34
- </button>
35
- <button
36
- className={editor.isActive('italic') ? 'is-active' : ''}
37
- disabled={
38
- !editor.can()
39
- .chain()
40
- .focus()
41
- .toggleItalic()
42
- .run()
43
- }
44
- onClick={() => editor.chain().focus().toggleItalic().run()}
45
- >
46
- italic
47
- </button>
48
- <button
49
- className={editor.isActive('strike') ? 'is-active' : ''}
50
- disabled={
51
- !editor.can()
52
- .chain()
53
- .focus()
54
- .toggleStrike()
55
- .run()
56
- }
57
- onClick={() => editor.chain().focus().toggleStrike().run()}
58
- >
59
- strike
60
- </button>
61
- <EditorContent editor={editor}/>
62
- </>
63
- )
64
- }
65
-
66
- export default PBTipTapEditor
@@ -1,15 +0,0 @@
1
- import React from 'react'
2
- import { RichTextEditor } from '../..'
3
-
4
- const RichTextEditorTipTap = (props) => {
5
- return (
6
- <div>
7
- <RichTextEditor
8
- advanced
9
- {...props}
10
- />
11
- </div>
12
- )
13
- }
14
-
15
- export default RichTextEditorTipTap
File without changes