turbo_material 0.2.15 → 0.2.17

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12e357755a746bce7c573a86ee1157e89530593e23de2d99a0a316faa60fe029
4
- data.tar.gz: eb47d431c70574d7e9867bc14a69134eb86c267f464a7d046fd979d0a56ae993
3
+ metadata.gz: 1623b6bf21bbdba8af1e54604ded65c4ea4b9181fbc39fa5b0e9ebb0c45c3b2b
4
+ data.tar.gz: f29b6252a029be2dfdd728f88646392f5b34edd6fee7539d9251218aa2b2f8d1
5
5
  SHA512:
6
- metadata.gz: 73a70273d93fc18fa0b444e83bc26f465b5b75e375860cb6d5e94838c8ad6d5f0c469adf3d0a9c0f56bef0f86987af955c3b20424e0bcc8b780c7ddfaae1a5aa
7
- data.tar.gz: d518fe5e3a8db071e04451779ecd6cddcef749e4ca0023a812059bbc1024d73ef2d518d205c6cac6b728a7388ad2269217c2f0caf719cb6593305ad40ee73ce6
6
+ metadata.gz: 2c195f9fd7d326e357336992f04fd88751a74546e79675b3aac0a7bf0b7216bae0ec17084051b04de9ea35efed00337c9d274704a1b3ae9d97401f7ba29e70a6
7
+ data.tar.gz: 77682dd076906ff49f90fd7fef92e7bb81b55467a54e8549248bf841bc213d67a089e8f7ea845176f008b8b2f340d97dda34e3aa6a84b8dc2479eccaf96a7af4
data/README.md CHANGED
@@ -15,6 +15,8 @@ That list is based on the project from which this library is being extracted. If
15
15
 
16
16
  ## Usage
17
17
 
18
+ Run `rails turbo_material:install` to install the gem and add necessary files to your project. Alternatively, you can follow the steps below.
19
+
18
20
  Add following to your `app/javascript/controllers/index.js` after `eagerLoadControllersFrom("controllers", application)` line:
19
21
 
20
22
  ```javascript
@@ -26,7 +28,6 @@ Add following to your `app/view/layouts/application.html.erb` in `<head>` sectio
26
28
  <link href="//cdn.jsdelivr.net/npm/material-components-web@latest/dist/material-components-web.min.css" rel="stylesheet">
27
29
  <script src="//cdn.jsdelivr.net/npm/material-components-web@latest/dist/material-components-web.min.js"></script>
28
30
  <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
29
- <%= stylesheet_link_tag "turbo_material/tailwind.css" %>
30
31
  ```
31
32
 
32
33
  ### Material Components for Web customizations
@@ -534,6 +535,12 @@ Implements [Material Design Menu Button](https://github.com/material-components/
534
535
  ```erb
535
536
  <%= material_menu_button button_text: 'Menu', menu_contents_partial: 'common/menu_contents' %>
536
537
  ```
538
+ or with block
539
+ ```erb
540
+ <%= material_menu_button button_text: 'Menu' do %>
541
+ Contents
542
+ <% end %>
543
+ ```
537
544
 
538
545
  #### Options
539
546
 
@@ -541,6 +548,9 @@ Implements [Material Design Menu Button](https://github.com/material-components/
541
548
  | --- | --- | --- |
542
549
  | `button_text` | String | Text of the menu button |
543
550
  | `menu_contents_partial` | String | Partial for menu contents |
551
+ | `logout_path` | String | Path for logout |
552
+ | `custom_css` | String | Custom CSS class |
553
+ | `custom_surface_css` | String | Custom CSS class for the menu surface |
544
554
 
545
555
  ### Modal
546
556