playbook_ui 9.11.0 → 9.14.1.alpha.radio.alignment
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +1 -0
- data/app/pb_kits/playbook/data/menu.yml +26 -22
- data/app/pb_kits/playbook/index.js +1 -0
- data/app/pb_kits/playbook/pb_badge/_badge.jsx +26 -1
- data/app/pb_kits/playbook/pb_badge/_badge.scss +1 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx +51 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx +49 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.scss +55 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.html.erb +9 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumb_item.rb +12 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.html.erb +7 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.rb +11 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/bread_crumbs.test.js +35 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.html.erb +17 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +56 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_description.md +1 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_button/button.rb +1 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +6 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +3 -0
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +45 -11
- data/app/pb_kits/playbook/pb_date_stacked/date_stacked.html.erb +17 -6
- data/app/pb_kits/playbook/pb_date_stacked/date_stacked.rb +12 -5
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold.html.erb +5 -0
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold.jsx +38 -0
- data/app/pb_kits/playbook/pb_date_stacked/docs/example.yml +3 -1
- data/app/pb_kits/playbook/pb_date_stacked/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +32 -16
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss +23 -4
- data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.html.erb +12 -8
- data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.rb +9 -2
- data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.test.js +35 -0
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.html.erb +8 -1
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.jsx +19 -1
- data/app/pb_kits/playbook/pb_dialog/dialog.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/_flex.jsx +6 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +12 -2
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +19 -0
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.html.erb +13 -0
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.jsx +25 -0
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.html.erb +4 -5
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.jsx +2 -6
- data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_form_pill/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +5 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +6 -2
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.jsx +14 -11
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +18 -13
- data/app/pb_kits/playbook/pb_pill/_pill.jsx +1 -0
- data/app/pb_kits/playbook/pb_pill/pill.html.erb +1 -1
- data/app/pb_kits/playbook/pb_radio/_radio.jsx +3 -1
- data/app/pb_kits/playbook/pb_radio/_radio.scss +10 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_alignment.html.erb +27 -0
- data/app/pb_kits/playbook/pb_radio/docs/_radio_alignment.jsx +36 -0
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_radio/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_radio/radio.rb +7 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +10 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +61 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.html.erb +6 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx +16 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.html.erb +4 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx +14 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +7 -0
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +7 -3
- data/app/pb_kits/playbook/pb_select/_select.jsx +5 -5
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +83 -31
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +106 -0
- data/app/pb_kits/playbook/pb_text_input/add_on.html.erb +13 -0
- data/app/pb_kits/playbook/pb_text_input/add_on.rb +30 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.html.erb +24 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.jsx +82 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.html.erb +1 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.html.erb +5 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.jsx +22 -0
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_text_input/text_input.html.erb +7 -16
- data/app/pb_kits/playbook/pb_text_input/text_input.rb +43 -3
- data/app/pb_kits/playbook/pb_time_stacked/time_stacked.html.erb +2 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +11 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +23 -0
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +23 -11
- data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.jsx +17 -4
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.jsx +25 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.html.erb +36 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.jsx +43 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.html.erb +35 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.jsx +44 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +8 -5
- data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +18 -2
- data/lib/playbook/props.rb +1 -0
- data/lib/playbook/props/nested_props.rb +23 -0
- data/lib/playbook/version.rb +2 -1
- metadata +50 -14
@@ -9,20 +9,13 @@
|
|
9
9
|
display: inline;
|
10
10
|
}
|
11
11
|
|
12
|
-
|
13
|
-
|
12
|
+
[class*=show-below-] {
|
13
|
+
display: none;
|
14
14
|
}
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
display: none;
|
20
|
-
}
|
21
|
-
@each $breakpoint_name, $breakpoint in $breakpoints {
|
22
|
-
&.show-below-#{$breakpoint_name} {
|
23
|
-
@include break_at($breakpoint) {
|
24
|
-
display: inline;
|
25
|
-
}
|
15
|
+
@each $breakpoint_name, $breakpoint in $breakpoints {
|
16
|
+
.show-below-#{$breakpoint_name} {
|
17
|
+
@include break_at($breakpoint) {
|
18
|
+
display: inline;
|
26
19
|
}
|
27
20
|
}
|
28
21
|
}
|
@@ -70,4 +63,16 @@
|
|
70
63
|
visibility: hidden;
|
71
64
|
}
|
72
65
|
}
|
66
|
+
.passphrase-popover {
|
67
|
+
position: relative;
|
68
|
+
left: -($space_xs * 1.25);
|
69
|
+
}
|
70
|
+
@-moz-document url-prefix() {
|
71
|
+
.passphrase-popover {
|
72
|
+
position: relative;
|
73
|
+
top: $space_sm;
|
74
|
+
left: -($space_xs * 1.5);
|
75
|
+
}
|
76
|
+
}
|
73
77
|
}
|
78
|
+
|
@@ -3,5 +3,5 @@
|
|
3
3
|
class: object.classname,
|
4
4
|
data: object.data,
|
5
5
|
id: object.id) do %>
|
6
|
-
<%= pb_rails("title", props: { text: object.display_text, size: 4, classname: "pb_pill_text" }) %>
|
6
|
+
<%= pb_rails("title", props: { text: object.display_text, tag: "div", size: 4, classname: "pb_pill_text" }) %>
|
7
7
|
<% end %>
|
@@ -9,6 +9,7 @@ import { globalProps } from '../utilities/globalProps.js'
|
|
9
9
|
|
10
10
|
type RadioProps = {
|
11
11
|
aria?: object,
|
12
|
+
alignment?: String,
|
12
13
|
checked?: Boolean,
|
13
14
|
children?: Node,
|
14
15
|
className?: String,
|
@@ -25,6 +26,7 @@ type RadioProps = {
|
|
25
26
|
|
26
27
|
const Radio = ({
|
27
28
|
aria = {},
|
29
|
+
alignment = '',
|
28
30
|
children,
|
29
31
|
className,
|
30
32
|
dark = false,
|
@@ -40,7 +42,7 @@ const Radio = ({
|
|
40
42
|
}: RadioProps, ref) => {
|
41
43
|
const ariaProps = buildAriaProps(aria)
|
42
44
|
const dataProps = buildDataProps(data)
|
43
|
-
const classes = classnames(buildCss('pb_radio_kit'), { error }, { dark }, globalProps(props), className)
|
45
|
+
const classes = classnames(buildCss('pb_radio_kit'), { error }, { dark }, globalProps(props), alignment, className)
|
44
46
|
|
45
47
|
return (
|
46
48
|
<label
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<%= pb_rails("flex") do %>
|
2
|
+
<%= pb_rails("radio", props: {
|
3
|
+
alignment: "vertical",
|
4
|
+
text: "Power",
|
5
|
+
input_options: {
|
6
|
+
tabindex: 0
|
7
|
+
},
|
8
|
+
margin_right: "sm",
|
9
|
+
name: "group 1",
|
10
|
+
value: "Power"
|
11
|
+
}) %>
|
12
|
+
|
13
|
+
<%= pb_rails("radio", props: {
|
14
|
+
alignment: "vertical",
|
15
|
+
text: "Nitro",
|
16
|
+
margin_right: "sm",
|
17
|
+
name: "group 1",
|
18
|
+
value: "Nitro"
|
19
|
+
}) %>
|
20
|
+
|
21
|
+
<%= pb_rails("radio", props: {
|
22
|
+
alignment: "vertical",
|
23
|
+
text: "Google",
|
24
|
+
name: "group 1",
|
25
|
+
value: "Google"
|
26
|
+
}) %>
|
27
|
+
<% end %>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { Flex, Radio } from '../../'
|
3
|
+
|
4
|
+
const RadioAlignment = () => {
|
5
|
+
return (
|
6
|
+
<Flex>
|
7
|
+
<Radio
|
8
|
+
alignment="vertical"
|
9
|
+
label="Power"
|
10
|
+
marginRight="sm"
|
11
|
+
name="Group2"
|
12
|
+
tabIndex={0}
|
13
|
+
value="Power"
|
14
|
+
/>
|
15
|
+
<br />
|
16
|
+
<Radio
|
17
|
+
alignment="vertical"
|
18
|
+
defaultChecked={false}
|
19
|
+
label="Nitro"
|
20
|
+
marginRight="sm"
|
21
|
+
name="Group2"
|
22
|
+
value="Nitro"
|
23
|
+
/>
|
24
|
+
<br />
|
25
|
+
<Radio
|
26
|
+
alignment="vertical"
|
27
|
+
defaultChecked={false}
|
28
|
+
label="Google"
|
29
|
+
name="Group2"
|
30
|
+
value="Google"
|
31
|
+
/>
|
32
|
+
</Flex>
|
33
|
+
)
|
34
|
+
}
|
35
|
+
|
36
|
+
export default RadioAlignment
|
@@ -5,6 +5,8 @@ require "action_view"
|
|
5
5
|
module Playbook
|
6
6
|
module PbRadio
|
7
7
|
class Radio < Playbook::KitBase
|
8
|
+
prop :alignment, type: Playbook::Props::String,
|
9
|
+
default: ""
|
8
10
|
prop :checked, type: Playbook::Props::Boolean,
|
9
11
|
default: false
|
10
12
|
prop :error, type: Playbook::Props::Boolean,
|
@@ -19,7 +21,7 @@ module Playbook
|
|
19
21
|
default: "radio_text"
|
20
22
|
|
21
23
|
def classname
|
22
|
-
generate_classname("pb_radio_kit") + error_class
|
24
|
+
generate_classname("pb_radio_kit") + error_class + alignment_class
|
23
25
|
end
|
24
26
|
|
25
27
|
def selected
|
@@ -35,6 +37,10 @@ module Playbook
|
|
35
37
|
def error_class
|
36
38
|
error ? " error" : ""
|
37
39
|
end
|
40
|
+
|
41
|
+
def alignment_class
|
42
|
+
alignment == "vertical" ? " vertical" : ""
|
43
|
+
end
|
38
44
|
end
|
39
45
|
end
|
40
46
|
end
|
@@ -9,10 +9,12 @@ import { buildAriaProps, buildDataProps } from '../utilities/props'
|
|
9
9
|
|
10
10
|
type RichTextEditorProps = {
|
11
11
|
aria?: object,
|
12
|
+
toolbarBottom?: Boolean,
|
12
13
|
className?: string,
|
13
14
|
data?: object,
|
14
15
|
focus?: boolean,
|
15
16
|
id?: string,
|
17
|
+
inline?: boolean,
|
16
18
|
name?: string,
|
17
19
|
onChange: (string) => void,
|
18
20
|
placeholder?: string,
|
@@ -25,10 +27,12 @@ type RichTextEditorProps = {
|
|
25
27
|
const RichTextEditor = (props: RichTextEditorProps) => {
|
26
28
|
const {
|
27
29
|
aria = {},
|
30
|
+
toolbarBottom = false,
|
28
31
|
className,
|
29
32
|
data = {},
|
30
33
|
focus = false,
|
31
34
|
id,
|
35
|
+
inline = false,
|
32
36
|
name,
|
33
37
|
onChange,
|
34
38
|
placeholder,
|
@@ -77,6 +81,8 @@ const RichTextEditor = (props: RichTextEditorProps) => {
|
|
77
81
|
blockCodeButton.hidden = type == 'inline'
|
78
82
|
inlineCodeButton.hidden = type == 'block'
|
79
83
|
})
|
84
|
+
|
85
|
+
if (toolbarBottom) editor.element.after(toolbarElement)
|
80
86
|
})
|
81
87
|
|
82
88
|
trixRef.current.addEventListener('trix-change', (event) => {
|
@@ -103,6 +109,8 @@ const RichTextEditor = (props: RichTextEditorProps) => {
|
|
103
109
|
const SimpleClass = simple ? 'simple' : ''
|
104
110
|
const FocusClass = focus ? 'focus-editor-targets' : ''
|
105
111
|
const StickyClass = sticky ? 'sticky' : ''
|
112
|
+
const InlineClass = inline ? 'inline' : ''
|
113
|
+
const ToolbarBottomClass = toolbarBottom ? 'toolbar-bottom' : ''
|
106
114
|
const css = classnames(globalProps(props), className)
|
107
115
|
|
108
116
|
return (
|
@@ -114,6 +122,8 @@ const RichTextEditor = (props: RichTextEditorProps) => {
|
|
114
122
|
SimpleClass,
|
115
123
|
FocusClass,
|
116
124
|
StickyClass,
|
125
|
+
InlineClass,
|
126
|
+
ToolbarBottomClass,
|
117
127
|
css
|
118
128
|
)}
|
119
129
|
>
|
@@ -5,6 +5,7 @@
|
|
5
5
|
@import "../tokens/typography";
|
6
6
|
@import "../tokens/opacity";
|
7
7
|
@import "../tokens/spacing";
|
8
|
+
@import "../tokens/transition";
|
8
9
|
@import "../pb_icon/icon";
|
9
10
|
@import "./trix_styles";
|
10
11
|
|
@@ -228,4 +229,64 @@
|
|
228
229
|
color: $white;
|
229
230
|
}
|
230
231
|
}
|
232
|
+
&.toolbar-bottom {
|
233
|
+
trix-editor {
|
234
|
+
border-top-left-radius: 6px;
|
235
|
+
border-top-right-radius: 6px;
|
236
|
+
border-bottom: none;
|
237
|
+
border-bottom-left-radius: 0;
|
238
|
+
border-bottom-right-radius: 0;
|
239
|
+
&:empty:not(:focus)::before {
|
240
|
+
color: $neutral !important;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
trix-toolbar .trix-button-row {
|
244
|
+
border-top: none;
|
245
|
+
border-top-left-radius: 0;
|
246
|
+
border-top-right-radius: 0;
|
247
|
+
border-bottom: 1px solid $border_light;
|
248
|
+
border-bottom-left-radius: 6px;
|
249
|
+
border-bottom-right-radius: 6px;
|
250
|
+
}
|
251
|
+
trix-toolbar {
|
252
|
+
display: grid;
|
253
|
+
}
|
254
|
+
&:focus, &:focus-within {
|
255
|
+
trix-toolbar .trix-button-row {
|
256
|
+
@include transition_default;
|
257
|
+
border-color: $primary;
|
258
|
+
}
|
259
|
+
}
|
260
|
+
}
|
261
|
+
&.inline {
|
262
|
+
&:hover {
|
263
|
+
trix-editor {
|
264
|
+
@include transition_default;
|
265
|
+
border-color: $border_light;
|
266
|
+
background-color: $white;
|
267
|
+
&+ trix-toolbar .trix-button-row {
|
268
|
+
transition: all 0.3s ease-in-out 0s;
|
269
|
+
opacity: 100;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
}
|
273
|
+
trix-editor {
|
274
|
+
@include transition_default;
|
275
|
+
border-color: transparent;
|
276
|
+
background-color: transparent;
|
277
|
+
&+ trix-toolbar .trix-button-row {
|
278
|
+
transition: all 0.3s ease-in-out 0s;
|
279
|
+
opacity: 0;
|
280
|
+
}
|
281
|
+
&:focus {
|
282
|
+
@include transition_default;
|
283
|
+
border-color: $primary;
|
284
|
+
background-color: $focus_input_light;
|
285
|
+
&+ trix-toolbar .trix-button-row {
|
286
|
+
transition: all 0.3s ease-in-out 0s;
|
287
|
+
opacity: 100;
|
288
|
+
}
|
289
|
+
}
|
290
|
+
}
|
291
|
+
}
|
231
292
|
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { RichTextEditor } from '../../'
|
3
|
+
|
4
|
+
const RichTextEditorInline = (props) => (
|
5
|
+
<div>
|
6
|
+
<RichTextEditor
|
7
|
+
id="inline"
|
8
|
+
inline
|
9
|
+
toolbarBottom
|
10
|
+
value="Try hovering over this text. Then try modifying it or adding more of your own text."
|
11
|
+
{...props}
|
12
|
+
/>
|
13
|
+
</div>
|
14
|
+
)
|
15
|
+
|
16
|
+
export default RichTextEditorInline
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { RichTextEditor } from '../../'
|
3
|
+
|
4
|
+
const RichTextEditorToolbarBottom = (props) => (
|
5
|
+
<div>
|
6
|
+
<RichTextEditor
|
7
|
+
id="bottom-toolbar"
|
8
|
+
toolbarBottom
|
9
|
+
{...props}
|
10
|
+
/>
|
11
|
+
</div>
|
12
|
+
)
|
13
|
+
|
14
|
+
export default RichTextEditorToolbarBottom
|
@@ -7,6 +7,8 @@ examples:
|
|
7
7
|
- rich_text_editor_focus: Focus
|
8
8
|
- rich_text_editor_sticky: Sticky
|
9
9
|
- rich_text_editor_templates: Templates
|
10
|
+
- rich_text_editor_toolbar_bottom: Toolbar Bottom
|
11
|
+
- rich_text_editor_inline: Inline
|
10
12
|
- rich_text_editor_preview: Preview
|
11
13
|
|
12
14
|
react:
|
@@ -16,4 +18,6 @@ examples:
|
|
16
18
|
- rich_text_editor_focus: Focus
|
17
19
|
- rich_text_editor_sticky: Sticky
|
18
20
|
- rich_text_editor_templates: Templates
|
21
|
+
- rich_text_editor_toolbar_bottom: Toolbar Bottom
|
22
|
+
- rich_text_editor_inline: Inline
|
19
23
|
- rich_text_editor_preview: Preview
|
@@ -4,4 +4,6 @@ export { default as RichTextEditorAttributes } from './_rich_text_editor_attribu
|
|
4
4
|
export { default as RichTextEditorFocus } from './_rich_text_editor_focus.jsx'
|
5
5
|
export { default as RichTextEditorSticky } from './_rich_text_editor_sticky.jsx'
|
6
6
|
export { default as RichTextEditorTemplates } from './_rich_text_editor_templates.jsx'
|
7
|
+
export { default as RichTextEditorToolbarBottom } from './_rich_text_editor_toolbar_bottom.jsx'
|
8
|
+
export { default as RichTextEditorInline } from './_rich_text_editor_inline.jsx'
|
7
9
|
export { default as RichTextEditorPreview } from './_rich_text_editor_preview.jsx'
|
@@ -6,11 +6,16 @@ module Playbook
|
|
6
6
|
prop :focus, type: Playbook::Props::Boolean,
|
7
7
|
default: false
|
8
8
|
|
9
|
+
prop :inline, type: Playbook::Props::Boolean,
|
10
|
+
default: false
|
11
|
+
|
9
12
|
prop :simple, type: Playbook::Props::Boolean,
|
10
13
|
default: false
|
11
14
|
|
12
15
|
prop :sticky, type: Playbook::Props::Boolean,
|
13
16
|
default: false
|
17
|
+
prop :toolbar_bottom, type: Playbook::Props::Boolean,
|
18
|
+
default: false
|
14
19
|
|
15
20
|
prop :value
|
16
21
|
prop :template
|
@@ -35,10 +40,12 @@ module Playbook
|
|
35
40
|
def rich_text_options
|
36
41
|
{
|
37
42
|
id: id,
|
43
|
+
inline: inline,
|
38
44
|
className: classname,
|
39
45
|
focus: focus,
|
40
46
|
simple: simple,
|
41
47
|
sticky: sticky,
|
48
|
+
toolbarBottom: toolbar_bottom,
|
42
49
|
value: value,
|
43
50
|
template: template,
|
44
51
|
placeholder: placeholder,
|