playbook_ui 15.1.0.pre.alpha.testingtiptap11043 → 15.1.0.pre.alpha.timelinescss11189
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_advanced_table/Hooks/useTableState.ts +9 -0
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +105 -29
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +11 -0
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +2 -2
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.scss +15 -21
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.tsx +6 -5
- data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +2 -0
- data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb +11 -3
- data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.test.js +9 -8
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +36 -9
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/Toolbar.tsx +1 -39
- data/app/pb_kits/playbook/pb_rich_text_editor/_previewer_mixin.scss +13 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +10 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +3 -0
- data/app/pb_kits/playbook/pb_timeline/_timeline.scss +250 -233
- data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/timeline.test.js +2 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +10 -10
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +39 -1
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +2 -0
- data/app/pb_kits/playbook/utilities/_hover.scss +2 -2
- data/app/pb_kits/playbook/utilities/globalProps.ts +2 -2
- data/dist/chunks/{_line_graph-Ck_xk6x5.js → _line_graph-BxcVBQsJ.js} +1 -1
- data/dist/chunks/_typeahead-eZENQ_Y_.js +6 -0
- data/dist/chunks/{_weekday_stacked-CcaJugnT.js → _weekday_stacked-DEdRaOVm.js} +3 -3
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +2 -2
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/hover.rb +5 -1
- data/lib/playbook/version.rb +1 -1
- metadata +5 -6
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_simple.jsx +0 -37
- data/dist/chunks/_typeahead-xcdYzO-v.js +0 -6
@@ -11,7 +11,7 @@ import { ToolbarTypes } from "./EditorTypes";
|
|
11
11
|
import ToolbarHistoryItems from "./ToolbarHistory";
|
12
12
|
import MoreExtensionsDropdown from "./MoreExtensionsDropdown";
|
13
13
|
|
14
|
-
const EditorToolbar = ({ editor, extensions
|
14
|
+
const EditorToolbar = ({ editor, extensions }: any): React.ReactElement => {
|
15
15
|
const toolbaritems = [
|
16
16
|
{
|
17
17
|
icon: "bold",
|
@@ -33,21 +33,6 @@ const EditorToolbar = ({ editor, extensions, simple }: any): React.ReactElement
|
|
33
33
|
},
|
34
34
|
]
|
35
35
|
|
36
|
-
const simpleToolbaritems = [
|
37
|
-
{
|
38
|
-
icon: "bold",
|
39
|
-
text: "Bold",
|
40
|
-
classname:`toolbar_button ${editor.isActive('bold') ? 'is-active' : ''}`,
|
41
|
-
onclick:()=>editor.chain().focus().toggleBold().run(),
|
42
|
-
},
|
43
|
-
{
|
44
|
-
icon: "italic",
|
45
|
-
text: "Italic",
|
46
|
-
classname:`toolbar_button ${editor.isActive('italic') ? 'is-active' : ''}`,
|
47
|
-
onclick:() => editor.chain().focus().toggleItalic().run(),
|
48
|
-
},
|
49
|
-
]
|
50
|
-
|
51
36
|
return (
|
52
37
|
<Background backgroundColor="white"
|
53
38
|
className="toolbar"
|
@@ -57,25 +42,6 @@ const EditorToolbar = ({ editor, extensions, simple }: any): React.ReactElement
|
|
57
42
|
paddingX="sm"
|
58
43
|
paddingY="xxs"
|
59
44
|
>
|
60
|
-
{
|
61
|
-
simple ? (
|
62
|
-
<>
|
63
|
-
<Flex className="toolbar_block">
|
64
|
-
{simpleToolbaritems && simpleToolbaritems.map(
|
65
|
-
({ icon, text, classname, onclick}: ToolbarTypes, index: number) => (
|
66
|
-
<EditorButton
|
67
|
-
classname={classname}
|
68
|
-
icon={icon}
|
69
|
-
key={index}
|
70
|
-
onclick={onclick}
|
71
|
-
text={text}
|
72
|
-
/>
|
73
|
-
)
|
74
|
-
)}
|
75
|
-
</Flex>
|
76
|
-
</>
|
77
|
-
) : (
|
78
|
-
<>
|
79
45
|
<FlexItem className="toolbar_block"
|
80
46
|
displayFlex
|
81
47
|
>
|
@@ -103,10 +69,6 @@ const EditorToolbar = ({ editor, extensions, simple }: any): React.ReactElement
|
|
103
69
|
}
|
104
70
|
</FlexItem>
|
105
71
|
<ToolbarHistoryItems editor={editor} />
|
106
|
-
</>
|
107
|
-
)
|
108
|
-
}
|
109
|
-
|
110
72
|
</Flex>
|
111
73
|
</Background>
|
112
74
|
);
|
@@ -12,6 +12,7 @@
|
|
12
12
|
}
|
13
13
|
|
14
14
|
@mixin preview_tiptap_p {
|
15
|
+
margin: 1rem 0 0 0;
|
15
16
|
min-height: 1rem;
|
16
17
|
}
|
17
18
|
|
@@ -55,9 +56,13 @@
|
|
55
56
|
}
|
56
57
|
|
57
58
|
@mixin preview_tiptap_blockquote {
|
58
|
-
|
59
|
-
|
60
|
-
|
59
|
+
font-size: $font_larger;
|
60
|
+
padding: $space_sm $space_md;
|
61
|
+
font-style: italic;
|
62
|
+
margin: 1rem 0 0 0;
|
63
|
+
p {
|
64
|
+
margin: 0;
|
65
|
+
}
|
61
66
|
}
|
62
67
|
|
63
68
|
@mixin preview_tiptap_h1 {
|
@@ -65,6 +70,7 @@
|
|
65
70
|
line-height: $text_larger;
|
66
71
|
font-weight: $bolder;
|
67
72
|
letter-spacing: $lspace_tight;
|
73
|
+
margin: 2.1rem 0 0 0;
|
68
74
|
}
|
69
75
|
|
70
76
|
@mixin preview_tiptap_h2 {
|
@@ -72,6 +78,7 @@
|
|
72
78
|
line-height: $text_larger;
|
73
79
|
font-weight: $bolder;
|
74
80
|
letter-spacing: $lspace_tight;
|
81
|
+
margin: 1.9rem 0 0 0;
|
75
82
|
}
|
76
83
|
|
77
84
|
@mixin preview_tiptap_h3 {
|
@@ -79,6 +86,7 @@
|
|
79
86
|
line-height: $text_large;
|
80
87
|
font-weight: $bolder;
|
81
88
|
letter-spacing: $lspace_tight;
|
89
|
+
margin: 1.7rem 0 0 0;
|
82
90
|
}
|
83
91
|
|
84
92
|
@mixin preview_tiptap_smaller_headings {
|
@@ -86,6 +94,7 @@
|
|
86
94
|
line-height: $text_base;
|
87
95
|
letter-spacing: $lspace_tight;
|
88
96
|
font-weight: $bolder;
|
97
|
+
margin: 1rem 0 0 0;
|
89
98
|
}
|
90
99
|
|
91
100
|
@mixin preview_tiptap_hr {
|
@@ -101,6 +110,7 @@
|
|
101
110
|
}
|
102
111
|
|
103
112
|
@mixin preview_tiptap_ol {
|
113
|
+
margin: 1rem 0 0 0;
|
104
114
|
padding-left: $space_md;
|
105
115
|
list-style: decimal;
|
106
116
|
li {
|
@@ -16,7 +16,6 @@ examples:
|
|
16
16
|
- rich_text_editor_advanced_default: Advanced Default
|
17
17
|
- rich_text_editor_more_extensions: Advanced (Extra Extensions)
|
18
18
|
- rich_text_editor_toolbar_disabled: Advanced (Toolbar disabled)
|
19
|
-
- rich_text_editor_advanced_simple: Advanced (Simple)
|
20
19
|
- rich_text_editor_simple: Simple
|
21
20
|
- rich_text_editor_attributes: Attributes
|
22
21
|
- rich_text_editor_focus: Focus
|
@@ -11,4 +11,3 @@ export { default as RichTextEditorAdvancedDefault } from './_rich_text_editor_ad
|
|
11
11
|
export { default as RichTextEditorMoreExtensions } from './_rich_text_editor_more_extensions.jsx'
|
12
12
|
export { default as RichTextEditorToolbarDisabled } from './_rich_text_editor_toolbar_disabled.jsx'
|
13
13
|
export { default as RichTextEditorAdvancedPreview } from './_rich_text_editor_advanced_preview.jsx'
|
14
|
-
export { default as RichTextEditorAdvancedSimple } from './_rich_text_editor_advanced_simple.jsx'
|