playbook_ui_docs 16.1.0.pre.alpha.PLAY272013809 → 16.1.0.pre.alpha.play2712navkitadddisabledstatecollapsible13821
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_nav/docs/_collapsible_nav_disabled_item.html.erb +24 -0
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.jsx +89 -0
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_nav/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_rows.jsx +67 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +1 -0
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5ccef470e400cfccaa9529f9f82a7a6e91daf2d6fcbf46068fe36fb4f5cadee
|
|
4
|
+
data.tar.gz: 8eaf6053246eea28d5f71a004c6aba76ec3f3cbde767e3ed2c65b3218d26d018
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3452c87a2735bfc8addacf2677bc080635c05366737401f029c299f4fd4fa8326dfdcc1deacdfc675cf9f781cda73bbee9e3a2fb9cf90357b83d9f6bd12e7f28
|
|
7
|
+
data.tar.gz: 9762618087c7b074db8ab5e867c7db7e928d52bd383ad555529d86fb86495e67c45e3b3652abd04a8c330b2a398b07d82143139519c04a51f6bd4425a5625531
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<%= pb_rails("nav", props: { variant: "bold" }) do %>
|
|
2
|
+
<%= pb_rails("nav/item", props: { text: "Overview", link: "#", collapsible: true, icon_left:"city", collapsed: false }) do %>
|
|
3
|
+
<%= pb_rails("nav", props: { variant: "bold" }) do %>
|
|
4
|
+
<%= pb_rails("nav/item", props: { text: "City", link: "#", inactive: true }) %>
|
|
5
|
+
<%= pb_rails("nav/item", props: { text: "People", link: "#" }) %>
|
|
6
|
+
<%= pb_rails("nav/item", props: { text: "Business", link: "#" }) %>
|
|
7
|
+
<% end %>
|
|
8
|
+
<% end %>
|
|
9
|
+
<%= pb_rails("nav/item", props: { text: "Albums", link: "#", active: true, collapsible: true, icon_left: "theater-masks" }) do %>
|
|
10
|
+
<%= pb_rails("nav", props: { variant: "bold" }) do %>
|
|
11
|
+
<%= pb_rails("nav/item", props: { text: "Entertainment", link: "#" }) %>
|
|
12
|
+
<%= pb_rails("nav/item", props: { text: "Food", link: "#" }) %>
|
|
13
|
+
<%= pb_rails("nav/item", props: { text: "Style", link: "#" }) %>
|
|
14
|
+
<% end %>
|
|
15
|
+
<% end %>
|
|
16
|
+
<%= pb_rails("nav/item", props: { text: "Similar Artists", link: "#", collapsible: true, icon_left: "city", inactive: true }) do %>
|
|
17
|
+
<%= pb_rails("nav", props: { variant: "bold" }) do %>
|
|
18
|
+
<%= pb_rails("nav/item", props: { text: "City", link: "#" }) %>
|
|
19
|
+
<%= pb_rails("nav/item", props: { text: "People", link: "#" }) %>
|
|
20
|
+
<%= pb_rails("nav/item", props: { text: "Business", link: "#" }) %>
|
|
21
|
+
<% end %>
|
|
22
|
+
<% end %>
|
|
23
|
+
<% end %>
|
|
24
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Nav from '../../pb_nav/_nav'
|
|
3
|
+
import NavItem from '../../pb_nav/_item'
|
|
4
|
+
|
|
5
|
+
const CollapsibleNavDisabledItem = (props) => {
|
|
6
|
+
return (
|
|
7
|
+
<Nav
|
|
8
|
+
variant="bold"
|
|
9
|
+
{...props}
|
|
10
|
+
>
|
|
11
|
+
<NavItem
|
|
12
|
+
active
|
|
13
|
+
// inactive
|
|
14
|
+
collapsed={false}
|
|
15
|
+
collapsible
|
|
16
|
+
iconLeft="city"
|
|
17
|
+
link="#"
|
|
18
|
+
text="Overview"
|
|
19
|
+
{...props}
|
|
20
|
+
>
|
|
21
|
+
<NavItem
|
|
22
|
+
inactive
|
|
23
|
+
link="#"
|
|
24
|
+
text="City"
|
|
25
|
+
{...props}
|
|
26
|
+
/>
|
|
27
|
+
<NavItem
|
|
28
|
+
link="#"
|
|
29
|
+
text="People"
|
|
30
|
+
{...props}
|
|
31
|
+
/>
|
|
32
|
+
<NavItem
|
|
33
|
+
link="#"
|
|
34
|
+
text="Business"
|
|
35
|
+
{...props}
|
|
36
|
+
/>
|
|
37
|
+
</NavItem>
|
|
38
|
+
<NavItem
|
|
39
|
+
collapsible
|
|
40
|
+
iconLeft="theater-masks"
|
|
41
|
+
inactive
|
|
42
|
+
link="#"
|
|
43
|
+
text="Albums"
|
|
44
|
+
{...props}
|
|
45
|
+
>
|
|
46
|
+
<NavItem
|
|
47
|
+
link="#"
|
|
48
|
+
text="Entertainment"
|
|
49
|
+
{...props}
|
|
50
|
+
/>
|
|
51
|
+
<NavItem
|
|
52
|
+
link="#"
|
|
53
|
+
text="Food"
|
|
54
|
+
{...props}
|
|
55
|
+
/>
|
|
56
|
+
<NavItem
|
|
57
|
+
link="#"
|
|
58
|
+
text="Style"
|
|
59
|
+
{...props}
|
|
60
|
+
/>
|
|
61
|
+
</NavItem>
|
|
62
|
+
<NavItem
|
|
63
|
+
collapsible
|
|
64
|
+
iconLeft="city"
|
|
65
|
+
link="#"
|
|
66
|
+
text="Similar Artists"
|
|
67
|
+
{...props}
|
|
68
|
+
>
|
|
69
|
+
<NavItem
|
|
70
|
+
link="#"
|
|
71
|
+
text="City"
|
|
72
|
+
{...props}
|
|
73
|
+
/>
|
|
74
|
+
<NavItem
|
|
75
|
+
link="#"
|
|
76
|
+
text="People"
|
|
77
|
+
{...props}
|
|
78
|
+
/>
|
|
79
|
+
<NavItem
|
|
80
|
+
link="#"
|
|
81
|
+
text="Business"
|
|
82
|
+
{...props}
|
|
83
|
+
/>
|
|
84
|
+
</NavItem>
|
|
85
|
+
</Nav>
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export default CollapsibleNavDisabledItem
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
examples:
|
|
2
2
|
rails:
|
|
3
|
+
- collapsible_nav_disabled_item: Collapsible Nav With Disabled Item
|
|
3
4
|
- default_nav: Default
|
|
4
5
|
- with_icons_nav: With Icons
|
|
5
6
|
- with_img_nav: With Custom Icon
|
|
@@ -26,6 +27,7 @@ examples:
|
|
|
26
27
|
- tab_nav: Tab Nav
|
|
27
28
|
|
|
28
29
|
react:
|
|
30
|
+
- collapsible_nav_disabled_item: Collapsible Nav With Disabled Item
|
|
29
31
|
- default_nav: Default
|
|
30
32
|
- with_icons_nav: With Icons
|
|
31
33
|
- with_img_nav: With Custom Icon
|
|
@@ -22,4 +22,5 @@ export { default as CollapsibleNavItemSpacing } from "./_collapsible_nav_item_sp
|
|
|
22
22
|
export { default as CollapsibleNavNoIcon } from "./_collapsible_nav_no_icon.jsx"
|
|
23
23
|
export { default as HorizontalNavExtendedunderline } from './_horizontal_nav_extendedunderline.jsx'
|
|
24
24
|
export { default as HorizontalNavDisabled } from './_horizontal_nav_disabled.jsx'
|
|
25
|
-
export { default as VerticalNavDisabled } from './_vertical_nav_disabled.jsx'
|
|
25
|
+
export { default as VerticalNavDisabled } from './_vertical_nav_disabled.jsx'
|
|
26
|
+
export { default as CollapsibleNavDisabledItem } from './_collapsible_nav_disabled_item.jsx'
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
|
|
7
|
+
|
|
8
|
+
const RichTextEditorAdvancedRows = (props) => {
|
|
9
|
+
|
|
10
|
+
const editor = useEditor({
|
|
11
|
+
extensions: [
|
|
12
|
+
StarterKit,
|
|
13
|
+
Link
|
|
14
|
+
],
|
|
15
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
const editor2 = useEditor({
|
|
19
|
+
extensions: [
|
|
20
|
+
StarterKit,
|
|
21
|
+
Link
|
|
22
|
+
],
|
|
23
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
const editor3 = useEditor({
|
|
27
|
+
extensions: [
|
|
28
|
+
StarterKit,
|
|
29
|
+
Link
|
|
30
|
+
],
|
|
31
|
+
content: "Add your text here. You can format your text, add links, quotes, and bullets."
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<div>
|
|
36
|
+
<RichTextEditor
|
|
37
|
+
advancedEditor={editor}
|
|
38
|
+
textareaHeight="sm"
|
|
39
|
+
{...props}
|
|
40
|
+
>
|
|
41
|
+
<EditorContent editor={editor} />
|
|
42
|
+
</RichTextEditor>
|
|
43
|
+
|
|
44
|
+
<br />
|
|
45
|
+
|
|
46
|
+
<RichTextEditor
|
|
47
|
+
advancedEditor={editor2}
|
|
48
|
+
textareaHeight="md"
|
|
49
|
+
{...props}
|
|
50
|
+
>
|
|
51
|
+
<EditorContent editor={editor2} />
|
|
52
|
+
</RichTextEditor>
|
|
53
|
+
|
|
54
|
+
<br />
|
|
55
|
+
|
|
56
|
+
<RichTextEditor
|
|
57
|
+
advancedEditor={editor}
|
|
58
|
+
textareaHeight="lg"
|
|
59
|
+
{...props}
|
|
60
|
+
>
|
|
61
|
+
<EditorContent editor={editor3} />
|
|
62
|
+
</RichTextEditor>
|
|
63
|
+
</div>
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export default RichTextEditorAdvancedRows
|
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: 16.1.0.pre.alpha.
|
|
4
|
+
version: 16.1.0.pre.alpha.play2712navkitadddisabledstatecollapsible13821
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Power UX
|
|
@@ -1491,6 +1491,8 @@ files:
|
|
|
1491
1491
|
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.md
|
|
1492
1492
|
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.jsx
|
|
1493
1493
|
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.md
|
|
1494
|
+
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.html.erb
|
|
1495
|
+
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.jsx
|
|
1494
1496
|
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.jsx
|
|
1495
1497
|
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.md
|
|
1496
1498
|
- app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon.html.erb
|
|
@@ -1916,6 +1918,7 @@ files:
|
|
|
1916
1918
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx
|
|
1917
1919
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_required_indicator.jsx
|
|
1918
1920
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_required_indicator.md
|
|
1921
|
+
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_rows.jsx
|
|
1919
1922
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx
|
|
1920
1923
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.jsx
|
|
1921
1924
|
- app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.md
|