coveragebook_components 0.19.12 → 0.19.13
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/assets/build/coco/coco.js +2 -2
- data/lib/coco.rb +1 -1
- data/lookbook/app/helpers/application_helper.rb +28 -0
- data/lookbook/app/previews/buttons/button_group_preview.rb +148 -0
- data/lookbook/app/previews/buttons/button_preview.rb +729 -0
- data/lookbook/app/previews/buttons/button_to_preview.rb +18 -0
- data/lookbook/app/previews/buttons/color_picker_button_preview.rb +42 -0
- data/lookbook/app/previews/buttons/image_picker_button_preview.rb +46 -0
- data/lookbook/app/previews/buttons/layout_picker_button_preview/default.html.erb +12 -0
- data/lookbook/app/previews/buttons/layout_picker_button_preview.rb +6 -0
- data/lookbook/app/previews/buttons/option_bar_preview.rb +29 -0
- data/lookbook/app/previews/buttons/toolbar_preview.rb +115 -0
- data/lookbook/app/previews/embeds/youtube_embed_preview.rb +7 -0
- data/lookbook/app/previews/forms/fields_preview/button.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/check_box.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/color_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/date_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/date_select.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/datetime_local_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/datetime_select.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/email_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/error_message.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/file_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/hint.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/label.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/month_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/number_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/password_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/radio_button.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/range_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/search_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/select.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/submit.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/telephone_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/text_area.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/text_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/time_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/time_select.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/time_zone_select.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/url_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/week_field.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview/weekday_select.html.erb +3 -0
- data/lookbook/app/previews/forms/fields_preview.rb +111 -0
- data/lookbook/app/previews/images/avatar_preview.rb +24 -0
- data/lookbook/app/previews/images/icon_preview.rb +141 -0
- data/lookbook/app/previews/images/image_preview.rb +15 -0
- data/lookbook/app/previews/images/svg_preview.rb +8 -0
- data/lookbook/app/previews/indicators/badge_preview.rb +68 -0
- data/lookbook/app/previews/indicators/stamp_preview.rb +108 -0
- data/lookbook/app/previews/layout/page_layout_preview/block_content.html.erb +13 -0
- data/lookbook/app/previews/layout/page_layout_preview/default.html.erb +19 -0
- data/lookbook/app/previews/layout/page_layout_preview/full_width.html.erb +12 -0
- data/lookbook/app/previews/layout/page_layout_preview/hidden_content.html.erb +18 -0
- data/lookbook/app/previews/layout/page_layout_preview/mixed.html.erb +15 -0
- data/lookbook/app/previews/layout/page_layout_preview/pagination.html.erb +12 -0
- data/lookbook/app/previews/layout/page_layout_preview/polling.html.erb +12 -0
- data/lookbook/app/previews/layout/page_layout_preview/sections.html.erb +13 -0
- data/lookbook/app/previews/layout/page_layout_preview/spacing.html.erb +33 -0
- data/lookbook/app/previews/layout/page_layout_preview.rb +38 -0
- data/lookbook/app/previews/layout/panel_preview/basic.html.erb +5 -0
- data/lookbook/app/previews/layout/panel_preview.rb +6 -0
- data/lookbook/app/previews/layout/spacer_preview/default.html.erb +5 -0
- data/lookbook/app/previews/layout/spacer_preview/responsive.html.erb +12 -0
- data/lookbook/app/previews/layout/spacer_preview/sizes.html.erb +7 -0
- data/lookbook/app/previews/layout/spacer_preview.rb +19 -0
- data/lookbook/app/previews/layout/stack_preview/default.html.erb +13 -0
- data/lookbook/app/previews/layout/stack_preview/item_properties.html.erb +13 -0
- data/lookbook/app/previews/layout/stack_preview/item_spacing.html.erb +23 -0
- data/lookbook/app/previews/layout/stack_preview/nested.html.erb +19 -0
- data/lookbook/app/previews/layout/stack_preview/stack_spacing.html.erb +13 -0
- data/lookbook/app/previews/layout/stack_preview.rb +21 -0
- data/lookbook/app/previews/messaging/notice_preview.rb +196 -0
- data/lookbook/app/previews/messaging/popover_preview/placement.html.erb +7 -0
- data/lookbook/app/previews/messaging/popover_preview/targets.html.erb +17 -0
- data/lookbook/app/previews/messaging/popover_preview/themes.html.erb +19 -0
- data/lookbook/app/previews/messaging/popover_preview/triggers.html.erb +19 -0
- data/lookbook/app/previews/messaging/popover_preview.rb +15 -0
- data/lookbook/app/previews/messaging/snackbar_preview/manual_show.html.erb +5 -0
- data/lookbook/app/previews/messaging/snackbar_preview/queue.html.erb +20 -0
- data/lookbook/app/previews/messaging/snackbar_preview/system_test_manual_show.html.erb +5 -0
- data/lookbook/app/previews/messaging/snackbar_preview.rb +128 -0
- data/lookbook/app/previews/messaging/system_banner_preview.rb +85 -0
- data/lookbook/app/previews/messaging/toast_preview.rb +132 -0
- data/lookbook/app/previews/messaging/tooltip_preview.rb +11 -0
- data/lookbook/app/previews/modals/modal_canvas_preview/basic.html.erb +6 -0
- data/lookbook/app/previews/modals/modal_canvas_preview.rb +7 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/basic.html.erb +4 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/in_page.html.erb +3 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/large.html.erb +4 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/medium.html.erb +4 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/named.html.erb +5 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/navigate.html.erb +3 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/not_dismissable.html.erb +3 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/not_shown.html.erb +5 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/notice.html.erb +8 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/small.html.erb +4 -0
- data/lookbook/app/previews/modals/modal_dialog_preview/triggers.html.erb +9 -0
- data/lookbook/app/previews/modals/modal_dialog_preview.rb +45 -0
- data/lookbook/app/previews/modals/modal_lightbox_preview/basic.html.erb +5 -0
- data/lookbook/app/previews/modals/modal_lightbox_preview/named.html.erb +6 -0
- data/lookbook/app/previews/modals/modal_lightbox_preview/scroll.html.erb +6 -0
- data/lookbook/app/previews/modals/modal_lightbox_preview/triggers.html.erb +8 -0
- data/lookbook/app/previews/modals/modal_lightbox_preview.rb +20 -0
- data/lookbook/app/previews/modals/modal_preview/basic.html.erb +6 -0
- data/lookbook/app/previews/modals/modal_preview.rb +8 -0
- data/lookbook/app/previews/navigation/link_preview.rb +74 -0
- data/lookbook/app/previews/navigation/link_to_preview.rb +88 -0
- data/lookbook/app/previews/navigation/pager_button_preview.rb +12 -0
- data/lookbook/app/previews/navigation/tabs_preview/basic.html.erb +5 -0
- data/lookbook/app/previews/navigation/tabs_preview/full.html.erb +5 -0
- data/lookbook/app/previews/navigation/tabs_preview/icons.html.erb +5 -0
- data/lookbook/app/previews/navigation/tabs_preview.rb +15 -0
- data/lookbook/app/previews/pickers/color_picker_preview.rb +27 -0
- data/lookbook/app/previews/pickers/image_picker_preview.rb +24 -0
- data/lookbook/app/previews/typography/utils_preview/branded_headings.html.erb +24 -0
- data/lookbook/app/previews/typography/utils_preview/fixed_size_headings.html.erb +7 -0
- data/lookbook/app/previews/typography/utils_preview/headings.html.erb +35 -0
- data/lookbook/app/previews/typography/utils_preview.rb +16 -0
- data/lookbook/app/previews/utilities/dropdown_preview.rb +19 -0
- data/lookbook/app/previews/utilities/seamless_textarea_preview/focus.html.erb +9 -0
- data/lookbook/app/previews/utilities/seamless_textarea_preview/multi_line.html.erb +9 -0
- data/lookbook/app/previews/utilities/seamless_textarea_preview/single_line.html.erb +8 -0
- data/lookbook/app/previews/utilities/seamless_textarea_preview.rb +29 -0
- data/lookbook/app/views/layouts/application.html.erb +24 -0
- data/lookbook/app/views/layouts/blank.html.erb +12 -0
- data/lookbook/app/views/lookbook/previews/group.html.erb +37 -0
- data/lookbook/app/views/pages/plans.html.erb +21 -0
- data/lookbook/app/views/panels/_design.html.erb +85 -0
- data/lookbook/app/views/request/success.html.erb +1 -0
- data/lookbook/app/views/turbo_request/done.html.erb +3 -0
- data/lookbook/app/views/turbo_request/success.html.erb +1 -0
- metadata +130 -1
@@ -0,0 +1,18 @@
|
|
1
|
+
module Buttons
|
2
|
+
# @label Form Button
|
3
|
+
class ButtonToPreview < Coco::Preview
|
4
|
+
# @!group Basic
|
5
|
+
|
6
|
+
# @label Basic
|
7
|
+
def basic
|
8
|
+
coco_button_to("click here", "http://example.com")
|
9
|
+
end
|
10
|
+
|
11
|
+
# @label Basic (block content)
|
12
|
+
def basic_block_content
|
13
|
+
coco_button_to("http://example.com") do
|
14
|
+
"click here"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Buttons
|
2
|
+
# @figma https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Ffile%2FxjMavn8xyhnqVvqNJB4hBk%2FCoco-(Design-System)%3Ftype%3Ddesign%26node-id%3D348%253A24362%26t%3DYyUtDf6PBtxXLRdL-1
|
3
|
+
class ColorPickerButtonPreview < Coco::Preview
|
4
|
+
# @!group
|
5
|
+
|
6
|
+
def default
|
7
|
+
coco_color_picker_button(theme: :secondary) do
|
8
|
+
"Pick a color"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def color_selected
|
13
|
+
coco_color_picker_button(theme: :secondary, selected: "C1DAA9") do |button|
|
14
|
+
"Pick a color"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def custom_swatches
|
19
|
+
coco_color_picker_button(theme: :secondary, selected: "EA672F") do |button|
|
20
|
+
button.with_picker do |picker|
|
21
|
+
picker.with_swatch "#EA672F"
|
22
|
+
picker.with_swatch "#F6CA84"
|
23
|
+
picker.with_swatch "#C6D9AE"
|
24
|
+
picker.with_swatch "#3B8672"
|
25
|
+
picker.with_swatch "#2863F6"
|
26
|
+
picker.with_swatch "#1A45AC"
|
27
|
+
end
|
28
|
+
|
29
|
+
"Pick a color"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# @!endgroup
|
34
|
+
|
35
|
+
# @hidden
|
36
|
+
def system_test
|
37
|
+
coco_color_picker_button(theme: :secondary) do
|
38
|
+
"Pick a color"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module Buttons
|
2
|
+
# @figma https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Ffile%2FxjMavn8xyhnqVvqNJB4hBk%2FCoco-(Design-System)%3Ftype%3Ddesign%26node-id%3D348%253A24362%26t%3DYyUtDf6PBtxXLRdL-1
|
3
|
+
class ImagePickerButtonPreview < Coco::Preview
|
4
|
+
# @!group
|
5
|
+
|
6
|
+
def default
|
7
|
+
coco_image_picker_button(
|
8
|
+
theme: :secondary,
|
9
|
+
input_name: :bg_image
|
10
|
+
) do |button|
|
11
|
+
"Pick an image"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def with_blank_slate_text
|
16
|
+
coco_image_picker_button(
|
17
|
+
theme: :secondary,
|
18
|
+
input_name: :bg_image
|
19
|
+
) do |button|
|
20
|
+
button.with_picker do |picker|
|
21
|
+
picker.with_blank_state_text do
|
22
|
+
"why not pick an image?"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
"Pick an image"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def image_selected
|
31
|
+
coco_image_picker_button(
|
32
|
+
theme: :secondary,
|
33
|
+
input_name: :bg_image,
|
34
|
+
src: ActionController::Base.helpers.asset_path("coco/img/test/slides/slide-bg.jpg")
|
35
|
+
) do |button|
|
36
|
+
button.with_picker do |picker|
|
37
|
+
picker.with_blank_state_text do
|
38
|
+
"why not pick an image?"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
"Pick an image"
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
<%= coco_layout_picker_button(theme: :secondary) do |button| %>
|
3
|
+
<% button.with_layout(name: "one-col-title", thumbnail: "slides/one-col-title-layout") %>
|
4
|
+
<% button.with_layout(name: "two-col-mixed", thumbnail: "slides/two-col-mixed-layout") %>
|
5
|
+
<% button.with_layout(name: "one-col-media", thumbnail: "slides/one-col-media-layout") %>
|
6
|
+
<% button.with_layout(name: "two-col-media", thumbnail: "slides/two-col-media-layout") %>
|
7
|
+
<% button.with_layout(name: "one-col-text", thumbnail: "slides/one-col-text-layout") %>
|
8
|
+
<% button.with_layout(name: "two-col-text", thumbnail: "slides/two-col-text-layout") %>
|
9
|
+
|
10
|
+
Choose a layout
|
11
|
+
<% end %>
|
12
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Buttons
|
2
|
+
class OptionBarPreview < Coco::Preview
|
3
|
+
# @!group Sizes
|
4
|
+
|
5
|
+
# @label Extra small
|
6
|
+
def xsmall
|
7
|
+
coco_option_bar(size: :xs) do |bar|
|
8
|
+
bar.with_option("Option one", selected: true)
|
9
|
+
bar.with_option("Option two")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
# @label Small (default)
|
14
|
+
def small
|
15
|
+
coco_option_bar do |bar|
|
16
|
+
bar.with_option("Option one", selected: true)
|
17
|
+
bar.with_option("Option two")
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
# @label Medium
|
22
|
+
def medium
|
23
|
+
coco_option_bar(size: :md) do |bar|
|
24
|
+
bar.with_option("Option one", selected: true)
|
25
|
+
bar.with_option("Option two")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,115 @@
|
|
1
|
+
module Buttons
|
2
|
+
class ToolbarPreview < Coco::Preview
|
3
|
+
# @display centered true
|
4
|
+
def actions
|
5
|
+
coco_toolbar(html: {style: "flex: none; width: 100%;"}) do |toolbar|
|
6
|
+
toolbar.with_section do |section|
|
7
|
+
section.with_button { "Basic button" }
|
8
|
+
|
9
|
+
section.with_button do |button|
|
10
|
+
button.with_confirmation do |confirm|
|
11
|
+
confirm.with_text { "Are you sure you want to do that?" }
|
12
|
+
confirm.with_button { "Yes, continue" }
|
13
|
+
end
|
14
|
+
|
15
|
+
"With confirmation"
|
16
|
+
end
|
17
|
+
|
18
|
+
section.with_menu_button do |button|
|
19
|
+
button.with_menu do |menu|
|
20
|
+
menu.with_button(icon: :globe) { "Menu item one" }
|
21
|
+
menu.with_button(icon: :carrot) { "Menu item 2" }
|
22
|
+
end
|
23
|
+
|
24
|
+
"Menu"
|
25
|
+
end
|
26
|
+
|
27
|
+
section.with_color_picker_button do
|
28
|
+
"With color picker"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# @!group Sections
|
35
|
+
|
36
|
+
# @label Single section
|
37
|
+
def single_section
|
38
|
+
coco_toolbar do |toolbar|
|
39
|
+
toolbar.with_section do |section|
|
40
|
+
section.with_button { "Button one" }
|
41
|
+
section.with_button { "Button two" }
|
42
|
+
section.with_button { "Button three" }
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# @label Multiple sections
|
48
|
+
def multiple_sections
|
49
|
+
coco_toolbar do |toolbar|
|
50
|
+
toolbar.with_section do |section|
|
51
|
+
section.with_button { "Button one" }
|
52
|
+
section.with_button { "Button two" }
|
53
|
+
end
|
54
|
+
|
55
|
+
toolbar.with_section do |section|
|
56
|
+
section.with_button { "Button three" }
|
57
|
+
section.with_button { "Button four" }
|
58
|
+
section.with_menu_button do |button|
|
59
|
+
button.with_menu do |menu|
|
60
|
+
menu.with_button(icon: :globe) { "Menu item one" }
|
61
|
+
menu.with_menu_button(icon: :bell) do |subbutton|
|
62
|
+
subbutton.with_menu do |submenu|
|
63
|
+
submenu.with_button(icon: :smile) { "Sub menu item one" }
|
64
|
+
submenu.with_button(icon: :frown) { "Sub menu item two" }
|
65
|
+
end
|
66
|
+
|
67
|
+
"Nested menu"
|
68
|
+
end
|
69
|
+
end
|
70
|
+
"Submenu"
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# @!group Collapsing
|
77
|
+
|
78
|
+
# @label Left aligned
|
79
|
+
def collapse_left
|
80
|
+
coco_toolbar do |toolbar|
|
81
|
+
toolbar.with_section do |section|
|
82
|
+
section.with_button(icon: :beef) { "Button one" }
|
83
|
+
section.with_button(icon: :banana) { "Button two" }
|
84
|
+
section.with_button(icon: :citrus) { "Button three" }
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# @label Right aligned
|
90
|
+
def collapse_right
|
91
|
+
coco_toolbar do |toolbar|
|
92
|
+
toolbar.with_section(align: :end) do |section|
|
93
|
+
section.with_button(icon: :beef) { "Button one" }
|
94
|
+
section.with_button(icon: :banana) { "Button two" }
|
95
|
+
section.with_button(icon: :citrus) { "Button three" }
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# @label Split
|
101
|
+
def collapse_split
|
102
|
+
coco_toolbar do |toolbar|
|
103
|
+
toolbar.with_section do |section|
|
104
|
+
section.with_button(icon: :beef) { "Button one" }
|
105
|
+
section.with_button(icon: :banana) { "Button two" }
|
106
|
+
end
|
107
|
+
|
108
|
+
toolbar.with_section do |section|
|
109
|
+
section.with_button(icon: :beef) { "Button one" }
|
110
|
+
section.with_button(icon: :banana) { "Button two" }
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
module Forms
|
2
|
+
# @hidden
|
3
|
+
class FieldsPreview < Coco::Preview
|
4
|
+
# @!group Inputs
|
5
|
+
|
6
|
+
def check_box
|
7
|
+
end
|
8
|
+
|
9
|
+
def color_field
|
10
|
+
end
|
11
|
+
|
12
|
+
def date_field
|
13
|
+
end
|
14
|
+
|
15
|
+
def date_select
|
16
|
+
end
|
17
|
+
|
18
|
+
# def datetime_local_field
|
19
|
+
# end
|
20
|
+
|
21
|
+
# def datetime_select
|
22
|
+
# end
|
23
|
+
|
24
|
+
def email_field
|
25
|
+
end
|
26
|
+
|
27
|
+
def file_field
|
28
|
+
end
|
29
|
+
|
30
|
+
def month_field
|
31
|
+
end
|
32
|
+
|
33
|
+
def number_field
|
34
|
+
end
|
35
|
+
|
36
|
+
def password_field
|
37
|
+
end
|
38
|
+
|
39
|
+
def radio_button
|
40
|
+
end
|
41
|
+
|
42
|
+
def range_field
|
43
|
+
end
|
44
|
+
|
45
|
+
def search_field
|
46
|
+
end
|
47
|
+
|
48
|
+
def select
|
49
|
+
end
|
50
|
+
|
51
|
+
def telephone_field
|
52
|
+
end
|
53
|
+
|
54
|
+
def text_area
|
55
|
+
end
|
56
|
+
|
57
|
+
def text_field
|
58
|
+
end
|
59
|
+
|
60
|
+
def time_field
|
61
|
+
end
|
62
|
+
|
63
|
+
def time_select
|
64
|
+
end
|
65
|
+
|
66
|
+
def time_zone_select
|
67
|
+
end
|
68
|
+
|
69
|
+
def url_field
|
70
|
+
end
|
71
|
+
|
72
|
+
def week_field
|
73
|
+
end
|
74
|
+
|
75
|
+
# def weekday_select
|
76
|
+
# end
|
77
|
+
|
78
|
+
# #@!group Collections
|
79
|
+
|
80
|
+
# def collection_check_boxes
|
81
|
+
# end
|
82
|
+
|
83
|
+
# def collection_radio_buttons
|
84
|
+
# end
|
85
|
+
|
86
|
+
# def collection_select
|
87
|
+
# end
|
88
|
+
|
89
|
+
# def grouped_collection_select
|
90
|
+
# end
|
91
|
+
|
92
|
+
# @!group Actions
|
93
|
+
|
94
|
+
def submit
|
95
|
+
end
|
96
|
+
|
97
|
+
def button
|
98
|
+
end
|
99
|
+
|
100
|
+
# @!group Other
|
101
|
+
|
102
|
+
def label
|
103
|
+
end
|
104
|
+
|
105
|
+
def hint
|
106
|
+
end
|
107
|
+
|
108
|
+
# def error_message
|
109
|
+
# end
|
110
|
+
end
|
111
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Images
|
2
|
+
class AvatarPreview < Coco::Preview
|
3
|
+
include ApplicationHelper
|
4
|
+
|
5
|
+
# @!group
|
6
|
+
|
7
|
+
def small
|
8
|
+
coco_avatar(avatar, "Mark Perkins", size: :sm)
|
9
|
+
end
|
10
|
+
|
11
|
+
# @label Medium (default)
|
12
|
+
def medium
|
13
|
+
coco_avatar(avatar, "Mark Perkins", size: :md)
|
14
|
+
end
|
15
|
+
|
16
|
+
def large
|
17
|
+
coco_avatar(avatar, "Mark Perkins", size: :lg)
|
18
|
+
end
|
19
|
+
|
20
|
+
def xlarge
|
21
|
+
coco_avatar(avatar, "Mark Perkins", size: :xl)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|