playbook_ui 7.1.0 → 7.3.0.pre.alpha1
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/pb_body/body.rb +1 -1
- data/app/pb_kits/playbook/pb_caption/_caption.html.erb +7 -5
- data/app/pb_kits/playbook/pb_caption/docs/_caption_block.html.erb +11 -0
- data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +28 -0
- data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_caption/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_date/_date.html.erb +64 -8
- data/app/pb_kits/playbook/pb_date/_date.jsx +115 -66
- data/app/pb_kits/playbook/pb_date/_date.scss +30 -0
- data/app/pb_kits/playbook/pb_date/date.rb +21 -9
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment.html.erb +24 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +35 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +21 -6
- data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +43 -12
- data/app/pb_kits/playbook/pb_date/docs/_date_variants.html.erb +27 -0
- data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +43 -0
- data/app/pb_kits/playbook/pb_date/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_date/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_nav/_item.html.erb +3 -0
- data/app/pb_kits/playbook/pb_nav/_item.jsx +14 -1
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +3 -0
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +22 -3
- data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.html.erb +6 -0
- data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx +29 -0
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.html.erb +7 -0
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.jsx +42 -0
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.md +1 -0
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_nav/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_nav/item.rb +1 -0
- data/app/pb_kits/playbook/pb_nav/nav.rb +6 -1
- data/app/pb_kits/playbook/pb_pill/_pill.scss +1 -0
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +1 -3
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +26 -47
- data/app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss +32 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx +6 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +2 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.jsx +2 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.jsx +9 -3
- data/app/pb_kits/playbook/pb_section_separator/section_separator.rb +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.html.erb +4 -4
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_options.html.erb +16 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/example.yml +3 -2
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +16 -9
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.html.erb +3 -2
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_options.html.erb +16 -0
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/example.yml +4 -3
- data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.rb +3 -0
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.html.erb +3 -3
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_options.html.erb +15 -0
- data/app/pb_kits/playbook/pb_selectable_icon/docs/example.yml +3 -2
- data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +10 -0
- data/app/pb_kits/playbook/pb_time/_time.html.erb +17 -20
- data/app/pb_kits/playbook/pb_time/_time.jsx +40 -27
- data/app/pb_kits/playbook/pb_time/_time.scss +4 -24
- data/app/pb_kits/playbook/pb_time/docs/_time_align.jsx +4 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_default.html.erb +11 -11
- data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +13 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx +4 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +3 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +7 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +3 -2
- data/app/pb_kits/playbook/props.rb +1 -1
- data/app/pb_kits/playbook/props/base.rb +6 -4
- data/lib/playbook/version.rb +1 -1
- metadata +21 -19
- data/lib/generators/kit/USAGE +0 -5
- data/lib/generators/kit/kit_generator.rb +0 -95
- data/lib/generators/kit/templates/kit_example_rails.erb.tt +0 -1
- data/lib/generators/kit/templates/kit_example_react.erb.tt +0 -10
- data/lib/generators/kit/templates/kit_example_yml.erb.tt +0 -9
- data/lib/generators/kit/templates/kit_html.erb.tt +0 -7
- data/lib/generators/kit/templates/kit_js.erb.tt +0 -1
- data/lib/generators/kit/templates/kit_jsx.erb.tt +0 -68
- data/lib/generators/kit/templates/kit_ruby.erb.tt +0 -11
- data/lib/generators/kit/templates/kit_ruby_spec.erb.tt +0 -11
- data/lib/generators/kit/templates/kit_scss.erb +0 -3
- data/lib/tasks/changelog.rake +0 -14
- data/lib/tasks/pb_release.rake +0 -88
- data/lib/tasks/playbook_tasks.rake +0 -26
@@ -0,0 +1,42 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { Nav } from '../../'
|
3
|
+
import NavItem from '../_item.jsx'
|
4
|
+
|
5
|
+
const WithImageNav = () => {
|
6
|
+
return (
|
7
|
+
<Nav
|
8
|
+
link="#"
|
9
|
+
title="Browse"
|
10
|
+
>
|
11
|
+
<NavItem
|
12
|
+
imageUrl="https://upload.wikimedia.org/wikipedia/commons/0/00/Apple_News_icon_%28macOS%29.png"
|
13
|
+
text="News Feed"
|
14
|
+
/>
|
15
|
+
<NavItem
|
16
|
+
active
|
17
|
+
imageUrl="https://p7.hiclipart.com/preview/928/339/723/messages-iphone-apple-imessage-iphone-thumbnail.jpg"
|
18
|
+
link="#"
|
19
|
+
text="Messages"
|
20
|
+
/>
|
21
|
+
<NavItem
|
22
|
+
iconRight="angle-down"
|
23
|
+
imageUrl="https://www.clipartmax.com/png/middle/103-1038653_circle-icons-calendar-svg-event-icon.png"
|
24
|
+
link="#"
|
25
|
+
text="Events"
|
26
|
+
/>
|
27
|
+
<NavItem
|
28
|
+
imageUrl="https://www.pngitem.com/pimgs/m/228-2289227_find-friends-icon-png-image-iphone-find-my.png"
|
29
|
+
link="#"
|
30
|
+
text="Friends"
|
31
|
+
/>
|
32
|
+
<NavItem
|
33
|
+
iconRight="angle-down"
|
34
|
+
imageUrl="https://img.favpng.com/18/5/20/blue-human-behavior-silhouette-area-communication-png-favpng-wLT3QYknSwc68uu9GAUHGS5FY_t.jpg"
|
35
|
+
link="#"
|
36
|
+
text="Groups"
|
37
|
+
/>
|
38
|
+
</Nav>
|
39
|
+
)
|
40
|
+
}
|
41
|
+
|
42
|
+
export default WithImageNav
|
@@ -0,0 +1 @@
|
|
1
|
+
Icon used needs to be square. Icon size is 24px by 24px.
|
@@ -2,7 +2,9 @@ examples:
|
|
2
2
|
rails:
|
3
3
|
- default_nav: Default
|
4
4
|
- with_icons_nav: With Icons
|
5
|
+
- with_img_nav: With Custom Icon
|
5
6
|
- no_highlight_nav: No Highlight
|
7
|
+
- borderless_nav: No Borders
|
6
8
|
- subtle_nav: Subtle Variant
|
7
9
|
- subtle_with_icons_nav: Subtle With Icons
|
8
10
|
- subtle_no_highlight_nav: Subtle No Highlight
|
@@ -13,10 +15,13 @@ examples:
|
|
13
15
|
react:
|
14
16
|
- default_nav: Default
|
15
17
|
- with_icons_nav: With Icons
|
18
|
+
- with_img_nav: With Custom Icon
|
16
19
|
- no_highlight_nav: No Highlight
|
20
|
+
- borderless_nav: No Borders
|
17
21
|
- subtle_nav: Subtle Variant
|
18
22
|
- subtle_with_icons_nav: Subtle With Icons
|
19
23
|
- subtle_no_highlight_nav: Subtle No Highlight
|
20
24
|
- horizontal_nav: Horizontal Nav
|
21
25
|
- block_nav: Block
|
22
26
|
- block_no_title_nav: Without Title
|
27
|
+
|
@@ -3,7 +3,9 @@ export { default as HorizontalNav } from './_horizontal_nav.jsx'
|
|
3
3
|
export { default as BlockNav } from './_block_nav.jsx'
|
4
4
|
export { default as BlockNoTitleNav } from './_block_no_title_nav.jsx'
|
5
5
|
export { default as NoHighlightNav } from './_no_highlight_nav.jsx'
|
6
|
+
export { default as BorderlessNav } from './_borderless_nav.jsx'
|
6
7
|
export { default as SubtleNav } from './_subtle_nav.jsx'
|
7
8
|
export { default as SubtleNoHighlightNav } from './_subtle_no_highlight_nav.jsx'
|
8
9
|
export { default as WithIconsNav } from './_with_icons_nav.jsx'
|
9
10
|
export { default as SubtleWithIconsNav } from './_subtle_with_icons_nav.jsx'
|
11
|
+
export { default as WithImgNav } from './_with_img_nav.jsx'
|
@@ -17,14 +17,19 @@ module Playbook
|
|
17
17
|
values: %w[normal subtle],
|
18
18
|
default: "normal"
|
19
19
|
prop :highlight, type: Playbook::Props::Boolean, default: true
|
20
|
+
prop :borderless, type: Playbook::Props::Boolean, default: false
|
20
21
|
|
21
22
|
def classname
|
22
|
-
generate_classname("pb_nav_list", variant, orientation, highlight_class)
|
23
|
+
generate_classname("pb_nav_list", variant, orientation, highlight_class, borderless_class)
|
23
24
|
end
|
24
25
|
|
25
26
|
def highlight_class
|
26
27
|
highlight ? "highlight" : nil
|
27
28
|
end
|
29
|
+
|
30
|
+
def borderless_class
|
31
|
+
borderless ? "borderless" : nil
|
32
|
+
end
|
28
33
|
end
|
29
34
|
end
|
30
35
|
end
|
@@ -20,17 +20,15 @@ const SectionSeparator = (props: SectionSeparatorProps) => {
|
|
20
20
|
const {
|
21
21
|
aria = {},
|
22
22
|
className,
|
23
|
-
dark = false,
|
24
23
|
data = {},
|
25
24
|
id,
|
26
25
|
orientation = 'horizontal',
|
27
26
|
text,
|
28
27
|
variant = 'card',
|
29
28
|
} = props
|
30
|
-
const themeStyle = dark === true ? '_dark' : ''
|
31
29
|
const ariaProps = buildAriaProps(aria)
|
32
30
|
const dataProps = buildDataProps(data)
|
33
|
-
const classes = classnames(buildCss('pb_section_separator_kit', variant, orientation
|
31
|
+
const classes = classnames(buildCss('pb_section_separator_kit', variant, orientation), globalProps(props), className)
|
34
32
|
|
35
33
|
return (
|
36
34
|
|
@@ -1,10 +1,16 @@
|
|
1
1
|
@import "../tokens/colors";
|
2
2
|
@import "../tokens/spacing";
|
3
|
-
@import "../
|
3
|
+
@import "../tokens/opacity";
|
4
|
+
@import "./section_separator_mixin";
|
4
5
|
|
5
|
-
$
|
6
|
+
$section_colors_light: (
|
6
7
|
background: $bg_light,
|
7
|
-
card:
|
8
|
+
card: $card_light,
|
9
|
+
);
|
10
|
+
|
11
|
+
$section_colors_dark: (
|
12
|
+
background: $bg_dark,
|
13
|
+
card: tint($bg_dark,10),
|
8
14
|
);
|
9
15
|
|
10
16
|
[class^=pb_section_separator_kit] {
|
@@ -12,8 +18,7 @@ $section_colors: (
|
|
12
18
|
justify-content: center;
|
13
19
|
align-items: center;
|
14
20
|
position: relative;
|
15
|
-
|
16
|
-
@each $color_name, $color_value in $section_colors {
|
21
|
+
@each $color_name, $color_value in $section_colors_light {
|
17
22
|
&[class*=_#{$color_name}] {
|
18
23
|
span {
|
19
24
|
display: inline-block;
|
@@ -24,64 +29,38 @@ $section_colors: (
|
|
24
29
|
}
|
25
30
|
}
|
26
31
|
}
|
27
|
-
|
28
32
|
&::after {
|
29
|
-
|
30
|
-
height: 1px;
|
31
|
-
width: 100%;
|
32
|
-
background: $border_light;
|
33
|
-
position: absolute;
|
34
|
-
top: 50%;
|
35
|
-
left: 0;
|
36
|
-
z-index: 0;
|
33
|
+
@include section_separator_horizontal(false);
|
37
34
|
}
|
38
|
-
|
39
35
|
&[class*=_horizontal] {
|
40
36
|
justify-content: center;
|
41
37
|
}
|
42
38
|
&[class*=_vertical] {
|
43
39
|
&::after {
|
44
|
-
|
45
|
-
height: 100%;
|
46
|
-
width: 1px;
|
47
|
-
margin-left: $space_xs;
|
48
|
-
margin-right: $space_xs;
|
49
|
-
background: $border_light;
|
50
|
-
position: initial;
|
51
|
-
z-index: 0;
|
40
|
+
@include section_separator_vertical(false);
|
52
41
|
}
|
53
42
|
}
|
54
43
|
|
55
|
-
|
44
|
+
// Dark =========================
|
45
|
+
|
46
|
+
&.dark {
|
56
47
|
&::after {
|
57
|
-
|
58
|
-
height: 1px;
|
59
|
-
width: 100%;
|
60
|
-
background: $border_dark;
|
61
|
-
position: absolute;
|
62
|
-
top: 50%;
|
63
|
-
left: 0;
|
64
|
-
z-index: 0;
|
48
|
+
@include section_separator_horizontal(true);
|
65
49
|
}
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
50
|
+
@each $color_name, $color_value in $section_colors_dark {
|
51
|
+
&[class*=_#{$color_name}] {
|
52
|
+
span {
|
53
|
+
display: inline-block;
|
54
|
+
padding: 0 $space_xs;
|
55
|
+
background: #{$color_value};
|
56
|
+
position: relative;
|
57
|
+
z-index: 1;
|
58
|
+
}
|
73
59
|
}
|
74
60
|
}
|
75
61
|
&[class*=_vertical] {
|
76
62
|
&::after {
|
77
|
-
|
78
|
-
height: 100%;
|
79
|
-
width: 1px;
|
80
|
-
margin-left: $space_xs;
|
81
|
-
margin-right: $space_xs;
|
82
|
-
background: $border_dark;
|
83
|
-
position: initial;
|
84
|
-
z-index: 0;
|
63
|
+
@include section_separator_vertical(true);
|
85
64
|
}
|
86
65
|
}
|
87
66
|
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
@import "../tokens/colors";
|
2
|
+
@import "../tokens/spacing";
|
3
|
+
|
4
|
+
@mixin section_separator_vertical($dark: false) {
|
5
|
+
@if $dark == false {
|
6
|
+
background: $border_light;
|
7
|
+
} @else {
|
8
|
+
background: $border_dark;
|
9
|
+
}
|
10
|
+
content: "";
|
11
|
+
height: 100%;
|
12
|
+
width: 1px;
|
13
|
+
margin-left: $space_xs;
|
14
|
+
margin-right: $space_xs;
|
15
|
+
position: initial;
|
16
|
+
z-index: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin section_separator_horizontal($dark: false) {
|
20
|
+
@if $dark == false {
|
21
|
+
background: $border_light;
|
22
|
+
} @else {
|
23
|
+
background: $border_dark;
|
24
|
+
}
|
25
|
+
content: "";
|
26
|
+
height: 1px;
|
27
|
+
width: 100%;
|
28
|
+
position: absolute;
|
29
|
+
top: 50%;
|
30
|
+
left: 0;
|
31
|
+
z-index: 0;
|
32
|
+
}
|
@@ -1,9 +1,13 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { SectionSeparator } from '../../'
|
3
3
|
|
4
|
-
const SectionSeparatorLine = () => {
|
4
|
+
const SectionSeparatorLine = (props) => {
|
5
5
|
return (
|
6
|
-
<
|
6
|
+
<div>
|
7
|
+
<SectionSeparator
|
8
|
+
{...props}
|
9
|
+
/>
|
10
|
+
</div>
|
7
11
|
)
|
8
12
|
}
|
9
13
|
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { SectionSeparator } from '../../'
|
3
3
|
|
4
|
-
const SectionSeparatorTextBackground = () => {
|
4
|
+
const SectionSeparatorTextBackground = (props) => {
|
5
5
|
return (
|
6
6
|
<SectionSeparator
|
7
|
+
{...props}
|
7
8
|
text="Title Separator"
|
8
9
|
variant="background"
|
9
10
|
/>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Flex, FlexItem, SectionSeparator } from '../../'
|
3
3
|
|
4
|
-
const SectionSeparatorVertical = () => {
|
4
|
+
const SectionSeparatorVertical = (props) => {
|
5
5
|
return (
|
6
6
|
<Flex
|
7
7
|
inline="flex-container"
|
@@ -10,11 +10,17 @@ const SectionSeparatorVertical = () => {
|
|
10
10
|
<FlexItem>
|
11
11
|
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua'}
|
12
12
|
</FlexItem>
|
13
|
-
<SectionSeparator
|
13
|
+
<SectionSeparator
|
14
|
+
{...props}
|
15
|
+
orientation="vertical"
|
16
|
+
/>
|
14
17
|
<FlexItem>
|
15
18
|
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua'}
|
16
19
|
</FlexItem>
|
17
|
-
<SectionSeparator
|
20
|
+
<SectionSeparator
|
21
|
+
{...props}
|
22
|
+
orientation="vertical"
|
23
|
+
/>
|
18
24
|
<FlexItem>
|
19
25
|
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua'}
|
20
26
|
</FlexItem>
|
@@ -4,9 +4,9 @@
|
|
4
4
|
class: object.classname) do %>
|
5
5
|
|
6
6
|
<% if object.multi %>
|
7
|
-
<%= check_box_tag
|
7
|
+
<%= check_box_tag(object.name, object.value, object.checked, object.additional_input_options) %>
|
8
8
|
<% else %>
|
9
|
-
<%= radio_button_tag
|
9
|
+
<%= radio_button_tag(object.name, object.value, object.checked, object.additional_input_options) %>
|
10
10
|
<% end %>
|
11
11
|
|
12
12
|
<label for="<%= object.input_id_present %>">
|
@@ -17,9 +17,9 @@
|
|
17
17
|
<% end %>
|
18
18
|
<% if object.icon %>
|
19
19
|
<div class="pb_selectable_card_circle">
|
20
|
-
<%= pb_rails("icon", props: { icon: "check", fixed_width: true}) %>
|
20
|
+
<%= pb_rails("icon", props: { icon: "check", fixed_width: true }) %>
|
21
21
|
</div>
|
22
22
|
<% end %>
|
23
23
|
</label>
|
24
24
|
|
25
|
-
<% end %>
|
25
|
+
<% end %>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
|
3
|
+
<%= pb_rails("selectable_card", props: {
|
4
|
+
text: "Selected With Options",
|
5
|
+
input_id: "selected_with options",
|
6
|
+
name: "selected_with options",
|
7
|
+
value: "selected_with options",
|
8
|
+
checked: true,
|
9
|
+
input_options: {
|
10
|
+
class: "input-class",
|
11
|
+
name: "overwriting-name",
|
12
|
+
value: "overwriting-value",
|
13
|
+
}
|
14
|
+
}) %>
|
15
|
+
|
16
|
+
</div>
|
@@ -1,11 +1,12 @@
|
|
1
1
|
examples:
|
2
|
-
|
2
|
+
|
3
3
|
rails:
|
4
4
|
- selectable_card_default: Default
|
5
5
|
- selectable_card_single_select: Single Select
|
6
6
|
- selectable_card_block: Block
|
7
|
+
- selectable_card_options: With Options
|
8
|
+
|
7
9
|
|
8
|
-
|
9
10
|
react:
|
10
11
|
- selectable_card_default: Default
|
11
12
|
- selectable_card_single_select: Single Select
|
@@ -8,21 +8,21 @@ module Playbook
|
|
8
8
|
partial "pb_selectable_card/selectable_card"
|
9
9
|
|
10
10
|
prop :checked, type: Playbook::Props::Boolean,
|
11
|
-
|
11
|
+
default: false
|
12
12
|
prop :disabled, type: Playbook::Props::Boolean,
|
13
|
-
|
13
|
+
default: false
|
14
14
|
prop :icon, type: Playbook::Props::Boolean,
|
15
15
|
default: false
|
16
16
|
prop :multi, type: Playbook::Props::Boolean,
|
17
|
-
|
17
|
+
default: true
|
18
18
|
prop :input_id, type: Playbook::Props::String
|
19
|
+
|
20
|
+
prop :input_options, type: Playbook::Props::Hash,
|
21
|
+
default: {}
|
19
22
|
prop :name
|
20
23
|
prop :text
|
21
24
|
prop :value
|
22
25
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
26
|
def classname
|
27
27
|
generate_classname("pb_selectable_card_kit", checked_class, enable_disabled_class)
|
28
28
|
end
|
@@ -31,10 +31,17 @@ module Playbook
|
|
31
31
|
input_id.present? ? input_id : name
|
32
32
|
end
|
33
33
|
|
34
|
+
def additional_input_options
|
35
|
+
input_options.merge(
|
36
|
+
id: input_id_present,
|
37
|
+
disabled: disabled
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
34
41
|
private
|
35
|
-
|
42
|
+
|
36
43
|
def checked_class
|
37
|
-
checked ? "checked" : nil
|
44
|
+
checked ? "checked" : nil
|
38
45
|
end
|
39
46
|
|
40
47
|
def enable_disabled_class
|
@@ -42,4 +49,4 @@ module Playbook
|
|
42
49
|
end
|
43
50
|
end
|
44
51
|
end
|
45
|
-
end
|
52
|
+
end
|