express_ui 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/express_ui/application.js +36 -38
  3. data/app/assets/stylesheets/express_ui/application.sass +6 -0
  4. data/app/assets/stylesheets/express_ui/atoms/_animations.sass +4 -0
  5. data/app/assets/stylesheets/express_ui/atoms/_buttons.sass +63 -9
  6. data/app/assets/stylesheets/express_ui/atoms/_icons.sass +20 -1
  7. data/app/assets/stylesheets/express_ui/atoms/_reset.sass +5 -2
  8. data/app/assets/stylesheets/express_ui/atoms/_typography.sass +11 -6
  9. data/app/assets/stylesheets/express_ui/atoms/_utilities.sass +5 -0
  10. data/app/assets/stylesheets/express_ui/mixins/_express_ui.sass +75 -13
  11. data/app/assets/stylesheets/express_ui/molecules/_button_group.sass +17 -0
  12. data/app/assets/stylesheets/express_ui/molecules/_container.sass +57 -6
  13. data/app/assets/stylesheets/express_ui/molecules/_flash_messages.sass +42 -12
  14. data/app/assets/stylesheets/express_ui/molecules/_form_groups.sass +75 -6
  15. data/app/assets/stylesheets/express_ui/molecules/_forms.sass +38 -4
  16. data/app/assets/stylesheets/express_ui/molecules/_lists.sass +44 -8
  17. data/app/assets/stylesheets/express_ui/molecules/_nav.sass +7 -2
  18. data/app/assets/stylesheets/express_ui/molecules/_progress_bar.sass +33 -0
  19. data/app/assets/stylesheets/express_ui/molecules/_progress_indicator.sass +5 -1
  20. data/app/assets/stylesheets/express_ui/molecules/_tables.sass +5 -0
  21. data/app/assets/stylesheets/express_ui/organisms/_detail.sass +28 -0
  22. data/app/assets/stylesheets/express_ui/organisms/_dropdown.sass +14 -0
  23. data/app/assets/stylesheets/express_ui/organisms/_header.sass +1 -1
  24. data/app/assets/stylesheets/express_ui/organisms/_panels.sass +41 -0
  25. data/app/assets/stylesheets/express_ui/organisms/_popovers.sass +9 -0
  26. data/app/assets/stylesheets/express_ui/organisms/_sidebar.sass +35 -27
  27. data/app/assets/stylesheets/express_ui/scripts/_accordion.sass +12 -8
  28. data/app/assets/stylesheets/express_ui/scripts/_popup.sass +39 -3
  29. data/app/assets/stylesheets/express_ui/templates/_content_sidebar.sass +0 -1
  30. data/app/assets/stylesheets/express_ui/templates/_full_width.sass +9 -0
  31. data/app/assets/stylesheets/express_ui/templates/_master_detail.sass +53 -1
  32. data/app/controllers/express_ui/uicomponents_controller.rb +3 -0
  33. data/app/helpers/express_ui/application_helper.rb +1 -0
  34. data/app/helpers/express_ui/checks_for_testing.rb +13 -0
  35. data/app/views/express_ui/molecules/_lists.html.erb +0 -0
  36. data/app/views/express_ui/shared/_header.html.erb +0 -1
  37. data/app/views/express_ui/styleguide/index.html.erb +0 -6
  38. data/app/views/express_ui/templates/master_detail_fixed.html.erb +24 -24
  39. data/app/views/layouts/express_ui/_doctype_html.html.erb +9 -0
  40. data/app/views/layouts/express_ui/_head.html.erb +1 -7
  41. data/app/views/layouts/express_ui/content_and_sidebar.html.erb +24 -10
  42. data/app/views/layouts/express_ui/content_and_sidebar_fixed.html.erb +25 -10
  43. data/app/views/layouts/express_ui/full_width.html.erb +10 -6
  44. data/app/views/layouts/express_ui/half_width.html.erb +2 -2
  45. data/app/views/layouts/express_ui/master_detail.html.html.erb +9 -5
  46. data/app/views/layouts/express_ui/master_detail_fixed.html.erb +17 -11
  47. data/app/views/layouts/express_ui/master_detail_sidebar.html.erb +30 -0
  48. data/app/views/layouts/express_ui/styleguide.html.erb +2 -6
  49. data/lib/express_ui/engine.rb +0 -2
  50. data/lib/express_ui/version.rb +1 -1
  51. metadata +15 -56
  52. data/app/components/code_demo.rb +0 -29
  53. data/app/components/component_docitem.rb +0 -140
  54. data/app/components/component_example.rb +0 -100
  55. data/app/components/express_ui/panel.rb +0 -37
  56. data/app/components/express_ui/unordered_list.rb +0 -29
  57. data/app/views/express_ui/molecules/_lists.html.et +0 -65
  58. data/app/views/express_ui/molecules/_nav_mega_menu.html.et +0 -94
  59. data/app/views/express_ui/molecules/_nav_menu.html.et +0 -17
  60. data/app/views/express_ui/molecules/_progress_indicator.html.et +0 -56
  61. data/app/views/express_ui/scripts/_accordion.html.et +0 -69
  62. data/app/views/express_ui/scripts/_calendar.html.et +0 -35
  63. data/app/views/express_ui/scripts/_carousel.html.et +0 -21
  64. data/app/views/express_ui/scripts/_datepicker.html.et +0 -37
  65. data/app/views/express_ui/scripts/_popup.html.et +0 -58
  66. data/app/views/express_ui/scripts/_select.html.et +0 -27
  67. data/app/views/express_ui/scripts/_slider.html.et +0 -58
  68. data/app/views/express_ui/scripts/_tabs.html.et +0 -17
  69. data/app/views/express_ui/scripts/index.html.erb +0 -46
  70. data/app/views/express_ui/uicomponents/_buttons.html.et +0 -10
  71. data/app/views/express_ui/uicomponents/_flash_message.html.et +0 -19
  72. data/app/views/express_ui/uicomponents/_forms.html.et +0 -118
  73. data/app/views/express_ui/uicomponents/_heading.html.et +0 -24
  74. data/app/views/express_ui/uicomponents/_icons.html.et +0 -35
  75. data/app/views/express_ui/uicomponents/_layout.html.et +0 -47
  76. data/app/views/express_ui/uicomponents/_lists.html.et +0 -49
  77. data/app/views/express_ui/uicomponents/_nav.html.et +0 -18
  78. data/app/views/express_ui/uicomponents/_pages.html.erb +0 -30
  79. data/app/views/express_ui/uicomponents/_panels.html.et +0 -14
  80. data/app/views/express_ui/uicomponents/_popup.html.et +0 -19
  81. data/app/views/express_ui/uicomponents/_register.html.erb +0 -14
  82. data/app/views/express_ui/uicomponents/_sidebar.html.et +0 -8
  83. data/app/views/express_ui/uicomponents/_table.html.et +0 -11
  84. data/app/views/express_ui/uicomponents/_widget_box.html.et +0 -14
  85. data/app/views/express_ui/uicomponents/examples/_panel.html.et +0 -9
  86. data/app/views/express_ui/uicomponents/examples/_unordered_list.html.et +0 -5
  87. data/app/views/express_ui/uicomponents/examples/_unordered_list_with_ids.html.et +0 -5
  88. data/app/views/express_ui/uicomponents/index.html.et +0 -52
@@ -1,58 +0,0 @@
1
- para {
2
- text_node 'ExpressUI uses Magnific Pop-up.'
3
- a(href: 'http://dimsemenov.com/plugins/magnific-popup/documentation.html', title: 'Magnific Pop-up documentation') { 'See documentation' }
4
- text_node 'and usage guidelines.'
5
- }
6
-
7
- para {
8
- text_node 'To add a header and footer/pop-up actions to the pop-up, you may use the '
9
- link_to '<code>popup()</code> component'.html_safe, uicomponents_path(anchor: "pop-up")
10
- }
11
-
12
- table {
13
- thead {
14
- th { "Class" }
15
- th { "Notes" }
16
- }
17
- tbody {
18
- tr {
19
- td {
20
- code { ".ae-popup-link" }
21
- text_node '+ href'
22
- code { "#sample-popup" }
23
- }
24
- td { "Required. This link triggers the pop-up" }
25
- }
26
- tr {
27
- td {
28
- code { ".ae-popup" }
29
- text_node '+ ID'
30
- code { "sample-popup" }
31
- }
32
- td { "Required. Pop-up contents" }
33
- }
34
- tr {
35
- td {
36
- code { ".ae-popup" }
37
- text_node '+'
38
- code { ".ae-popup-sm" }
39
- code { ".ae-popup-md" }
40
- code { ".ae-popup-lg" }
41
- }
42
- td { "Optional. Specify pop-up size" }
43
- }
44
- }
45
- }
46
-
47
-
48
- code_demo {
49
- %Q{
50
- a(href: "#sample-popup", class: "ae-popup-link ae-btn ae-btn-primary ae-btn-md") { 'Open Popup' }
51
-
52
- div(id: "sample-popup", class: "mfp-hide ae-popup ae-popup-sm") {
53
- para { 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean laoreet vestibulum enim, eu malesuada dolor mollis a. Quisque mollis pulvinar enim id malesuada. Sed sit amet libero libero. Nullam velit erat, fringilla sit amet porttitor et, facilisis vitae lectus. Fusce eget nisl sagittis metus faucibus placerat et eget ligula. Duis eget augue maximus, fermentum velit at, bibendum nulla. Cras a libero mi. Sed ac feugiat justo. Maecenas euismod ex enim, eget auctor velit sollicitudin scelerisque. Suspendisse placerat pellentesque mauris nec accumsan. Quisque volutpat, sapien eget interdum fringilla, ex lectus aliquam elit, eget faucibus libero lectus a sem.'
54
- }
55
- }
56
- }
57
- }
58
-
@@ -1,27 +0,0 @@
1
- para {
2
- text_node 'AppExpress uses select2 dropdown to style select inputs.'
3
- a(href: 'https://select2.github.io/examples.html', title: 'select2 documentation') { 'See documentation' }
4
- text_node 'and usage guidelines.'
5
- }
6
-
7
- table {
8
- thead {
9
- th { "Class" }
10
- th { "Notes" }
11
- }
12
- tbody {
13
- tr {
14
- td {
15
- code { ".ae-select" }
16
- }
17
- td { "Required. This div class inserts the select2 dropdown." }
18
- }
19
- tr {
20
- td {
21
- code { "<select><option></option>
22
- </select>" }
23
- }
24
- td { "Required. Select2 transforms this select into a dropdown list." }
25
- }
26
- }
27
- }
@@ -1,58 +0,0 @@
1
- para {
2
- text_node 'ExpressUI uses ionRangeSlider to render single and double-range sliders. A single slider uses one knob that users can move to select a value within a range, while a double slider lets users move two knobs to select minimum and maximum values within a range.'
3
- a(href: 'https://github.com/IonDen/ion.rangeSlider', title: 'ionRangeSlider documentation') { 'See documentation' }
4
- text_node 'and usage guidelines.'
5
- }
6
-
7
- table {
8
- thead {
9
- th { "Code" }
10
- th { "Notes" }
11
- }
12
- tbody {
13
- tr {
14
- td {
15
- code { "$('#ae-single-slider').ionRangeSlider();" }
16
- }
17
- td { "Required Javascript. This script initializes the default, single range slider." }
18
- }
19
-
20
- tr {
21
- td {
22
- code {
23
- "$('#ae-double-slider').ionRangeSlider({
24
- type: 'double',
25
- min: 0,
26
- max: 5000,
27
- from: 1000,
28
- to: 4000,
29
- });"
30
- }
31
- }
32
- td { "Required Javascript. This script initializes the double range slider, sets the minimum and maximum values and other customization values." }
33
- }
34
-
35
-
36
- tr {
37
- td {
38
- code { '<input id="ae-single-slider" type="text"></input>' }
39
- }
40
- td { "Required mark-up. The Javascript inserts the single slider through this ID." }
41
- }
42
-
43
- tr {
44
- td {
45
- code { '<input id="ae-double-slider" type="text"></input>' }
46
- }
47
- td { "Required mark-up. The Javascript inserts the double slider through this ID." }
48
- }
49
- }
50
- }
51
-
52
- code_demo {
53
- %Q{
54
- input(id: 'ae-double-slider', type: 'text')
55
- input(id: 'ae-single-slider', type: 'text')
56
- }
57
- }
58
-
@@ -1,17 +0,0 @@
1
- code_demo {
2
- %Q{
3
- ul(class: 'ae-tabs') {
4
- li(class: 'ae-tab active-tab', 'data-tab' => 'ae-tab-content1') {
5
- 'Tab content 1'
6
- }
7
- li(class: 'ae-tab', 'data-tab' => 'ae-tab-content1') {
8
- 'Tab content 2'
9
- }
10
- }
11
-
12
- div(id: 'ae-tab-content1', class: 'ae-tab-content active-tab') { 'Tab content 2' }
13
-
14
- div(id: 'ae-tab-content2', class: 'ae-tab-content') { 'Tab content 2' }
15
- }
16
- }
17
-
@@ -1,46 +0,0 @@
1
- <%= render "express_ui/shared/header" %>
2
- <div class="ae-template-content-sidebar-fixed">
3
- <%= render "express_ui/shared/sidebar_left" %>
4
-
5
- <div class="ae-content content">
6
- <%= render "express_ui/shared/search_box" %>
7
- <h1>Scripts</h1>
8
- <div class="js-anchorific-content">
9
- <h2>Accordion</h2>
10
- <section>
11
- <%= render "express_ui/scripts/accordion" %>
12
- </section>
13
- <h2>Calendar</h2>
14
- <section>
15
- <%= render "express_ui/scripts/calendar" %>
16
- </section>
17
- <h2>Carousel</h2>
18
- <section>
19
- <%= render "express_ui/scripts/carousel" %>
20
- </section>
21
- <h2>Datepicker</h2>
22
- <section>
23
- <%= render "express_ui/scripts/datepicker" %>
24
- </section>
25
- <h2>Pop-up</h2>
26
- <section>
27
- <%= render "express_ui/scripts/popup" %>
28
- </section>
29
-
30
- <h2>Select</h2>
31
- <section>
32
- <%#= render "express_ui/scripts/select" %>
33
- </section>
34
-
35
- <h2>Slider</h2>
36
- <section>
37
- <%= render "express_ui/scripts/slider" %>
38
- </section>
39
-
40
- <h2>Tabs</h2>
41
- <section>
42
- <%= render "express_ui/scripts/tabs" %>
43
- </section>
44
- </div>
45
- </div>
46
- </div>
@@ -1,10 +0,0 @@
1
-
2
- h3 { 'command_button()'}
3
- section {
4
- code_demo {
5
- %Q{
6
- command_button() {
7
- }
8
- }
9
- }
10
- }
@@ -1,19 +0,0 @@
1
- h3 { 'flash_message' }
2
- section {
3
- code_demo {
4
- %Q{
5
- flash_message()
6
- }
7
- }
8
- }
9
-
10
-
11
- h3 { 'error_message()' }
12
- section {
13
- code_demo {
14
- %Q{
15
- error_message()
16
- }
17
- }
18
- }
19
-
@@ -1,118 +0,0 @@
1
- h3 { "input()" }
2
- section {
3
- code_demo {
4
- %Q{
5
- input(
6
- class: 'ae-text-field ae-input-sm',
7
- type: "text",
8
- name: "text",
9
- value: "Enter a word",
10
- placeholder: "Enter some text"
11
- )
12
- }
13
- }
14
- }
15
-
16
- h3 { "smart_form()" }
17
- section {
18
- code_demo {
19
- %Q{
20
- smart_form(){
21
- }
22
- }
23
- }
24
- }
25
-
26
- h3 { 'express_form()'}
27
- section {
28
- code_demo {
29
- %Q{
30
- express_form() {
31
- }
32
- }
33
- }
34
- }
35
-
36
-
37
- h3 { "Search" }
38
- section {
39
-
40
- para {
41
- "A search form always contains a search field and reset search field button. Search button is optional. Search on \"enter\" key is always enabled."
42
- }
43
-
44
- table {
45
- thead {
46
- th { "Properties" }
47
- th { "Notes" }
48
- }
49
- tbody {
50
- tr {
51
- td { code { "maxLength" } }
52
- td { "auto or string" }
53
- }
54
-
55
- tr {
56
- td { code { "grouping" } }
57
- td { "inline, horizontal, or single_line" }
58
- }
59
-
60
- tr {
61
- td { code { "button"} }
62
- td { "true or false" }
63
- }
64
- }
65
- }
66
-
67
- code_demo {
68
- %Q{
69
- search_form(
70
- name: "",
71
- maxlength: "",
72
- class: "",
73
- placeholder: "Enter a keyword and hit enter",
74
- value: "",
75
- grouping: "single_line",
76
- button: true,
77
- button_text: "Search"){
78
- }
79
- }
80
- }
81
- }
82
-
83
- h3 { "Express Billing" }
84
- section {
85
- para { "Credit card form, coupon code" }
86
- }
87
-
88
- h3 { 'code_editor()'}
89
- section {
90
- code_demo {
91
- %Q{
92
- express_form() {
93
- code_editor()
94
- }
95
- }
96
- }
97
- }
98
-
99
-
100
- h3 { 'country_select()'}
101
- section {
102
- code_demo {
103
- %Q{
104
- express_form() {
105
- country_select :country_code, label: "Country", class: form_field_class(:country)
106
- }
107
- }
108
- }
109
- }
110
-
111
- h3 { "media_form()" }
112
- section {
113
- code_demo {
114
- %Q{
115
- media_form()
116
- }
117
- }
118
- }
@@ -1,24 +0,0 @@
1
- section {
2
- para {
3
- text_node "Heading blocks ("
4
- code { "<h1>" }
5
- text_node "to"
6
- code { "<h6>" }
7
- text_node ") can have optional icon and extra text."
8
- }
9
-
10
- para {
11
- text_node "To use icons inside headers, see the"
12
- code { "fa_icon" }
13
- text_node "component guide."
14
- }
15
-
16
- code_demo {
17
- %Q{
18
- heading(){
19
- text_node "Heading"
20
- fa_icon "class"
21
- }
22
- }
23
- }
24
- }
@@ -1,35 +0,0 @@
1
- h3 { 'icon()' }
2
-
3
- section {
4
- para {
5
- text_node "Font Awesome (FA) has over 600 icons for commercial use. To use FA icons in ExpressUI, use the"
6
- code { "icon" }
7
- text_node "component. Simply look for the FA class and append it as a value. No need to prepend the"
8
- code { ".fa-" }
9
- text_node "icon class as instructed in the FA document because ExpressUI already automatically prepends it. To know which classes to use, see the"
10
- a(href: 'http://fontawesome.io/icons/') { "Font Awesome documentation" }
11
- text_node "."
12
- }
13
-
14
- code_demo {
15
- %Q{
16
- icon 'close'
17
- icon 'check'
18
- }
19
- }
20
- }
21
-
22
- h3 { 'icon_link()' }
23
- section {
24
- code_demo {
25
- %Q{
26
- icon_link(
27
- 'cancel',
28
- text: 'View Site',
29
- href: '/',
30
- target: '_blank'
31
- )
32
- }
33
- }
34
-
35
- }
@@ -1,47 +0,0 @@
1
- h3 { "header()" }
2
- section {
3
- para { "The header consists of a logo and main nav on the left. A secondary nav on the right is optional." }
4
-
5
- code_demo {
6
- "header() {
7
- 'Header contents here'
8
- }"
9
- }
10
- }
11
-
12
- h3 { "sidebar_region()" }
13
- section {
14
- div(class: 'demo-container') {
15
- render 'express_ui/uicomponents/sidebar'
16
- }
17
- }
18
-
19
- h3 { "main_region()" }
20
- section {
21
- code_demo {
22
- "main_region() {
23
- p 'This block of text goes right into the contents.'
24
- }"
25
- }
26
- }
27
-
28
- h3 { "page_header()" }
29
- section {
30
- code_demo {
31
- "content_for(:page_header) {
32
- h1 'Welcome to Express UI'
33
- p 'This block of text goes right into the page header.'
34
- }"
35
- }
36
- }
37
-
38
- h3 { "footer()" }
39
- section {
40
- para { "(Nav, logo, social media inks)" }
41
-
42
- code_demo {
43
- "footer() {
44
- 'Footer contents here'
45
- }"
46
- }
47
- }