rails_modal_manager 1.0.6 → 1.0.8

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: 0725e8d17ce5169b19c2f37ee399a214d79f4a8b7100b6ef21f57f43b17491bb
4
- data.tar.gz: a843fe209ad313a64ec6221b3909dbc09e6066facbd84c14c22f0e344ad0fb82
3
+ metadata.gz: 773de79a1c4ab3beccd5806ab1f2c5106bb69fbdd06ea3f79419358ca4ab1b52
4
+ data.tar.gz: 6bb788bdb359937ce663d99ac260a3932e4bda1c9ee80143be06dabc14bec7e5
5
5
  SHA512:
6
- metadata.gz: 9b30aad93209f7069f017bde3ce88a97caa690dfc9a4be49da13e4d5d72370a1fe80fd325aac2fbc347a623dd2a64f668b333c2f5ba2d321193bcf58cf22e962
7
- data.tar.gz: eaf415db4876d87a2d179183d499b0a18f7d1e106e8250392e2cacefc00431db72dccdbdb01e0e1a5b95d38a4beb64da33f1d5a83201035373ef884ec120f88c
6
+ metadata.gz: 3bdb4e693f3d29e05c786e3721fd248ed62c714734495b3429abc07da76aece7a111ea917bb701542fac0383dd7991ef2f6d8a77314a9eb0aab0023375faa0fb
7
+ data.tar.gz: f327e4c3923d4bbf5adf6347fc65ace8a5c00a71a2dc4f9e38c7f53440db1e2b6acd94954f656657c4fa323dfdbdedb8c675c40a4fbe3ca514926df74ed53c4f
@@ -430,6 +430,42 @@
430
430
  color: var(--rmm-btn-primary-hover);
431
431
  }
432
432
 
433
+ /* Text buttons in header */
434
+ .rmm-header-btn-text {
435
+ width: auto;
436
+ padding: 0 12px;
437
+ gap: 6px;
438
+ font-size: 13px;
439
+ font-weight: 500;
440
+ }
441
+
442
+ .rmm-header-btn-text.rmm-header-btn-primary {
443
+ background: var(--rmm-btn-primary-bg);
444
+ color: white;
445
+ border-radius: 6px;
446
+ margin: 0 4px;
447
+ }
448
+
449
+ .rmm-header-btn-text.rmm-header-btn-primary:hover {
450
+ background: var(--rmm-btn-primary-hover);
451
+ }
452
+
453
+ .rmm-header-btn-text.rmm-header-btn-secondary {
454
+ background: var(--rmm-btn-ghost-bg);
455
+ color: var(--rmm-text-secondary);
456
+ border-radius: 6px;
457
+ margin: 0 4px;
458
+ }
459
+
460
+ .rmm-header-btn-text.rmm-header-btn-secondary:hover {
461
+ background: var(--rmm-btn-ghost-hover);
462
+ color: var(--rmm-text-primary);
463
+ }
464
+
465
+ .rmm-header-btn-label {
466
+ white-space: nowrap;
467
+ }
468
+
433
469
  /* Size controls dropdown */
434
470
  .rmm-size-controls {
435
471
  position: relative;
@@ -149,20 +149,27 @@
149
149
  btn_id = btn[:id]
150
150
  btn_icon = btn[:icon]
151
151
  btn_icon_svg = btn[:icon_svg] || (btn_icon && header_button_icons[btn_icon])
152
+ btn_label = btn[:label]
152
153
  btn_title = btn[:title] || ""
153
154
  btn_variant = btn[:variant] || "default"
154
155
  btn_onclick = btn[:onclick]
156
+ btn_data_action = btn[:data_action]
155
157
  btn_class = "rmm-header-btn rmm-header-btn-custom"
156
158
  btn_class += " rmm-header-btn-#{btn_variant}" if btn_variant != "default"
159
+ btn_class += " rmm-header-btn-text" if btn_label.present?
157
160
  %>
158
161
  <button type="button"
159
162
  <% if btn_id.present? %>id="<%= btn_id %>"<% end %>
160
163
  class="<%= btn_class %>"
161
164
  <% if btn_onclick.present? %>onclick="<%= btn_onclick %>"<% end %>
165
+ <% if btn_data_action.present? %>data-action="<%= btn_data_action %>"<% end %>
162
166
  title="<%= btn_title %>">
163
167
  <% if btn_icon_svg.present? %>
164
168
  <%= btn_icon_svg.html_safe %>
165
169
  <% end %>
170
+ <% if btn_label.present? %>
171
+ <span class="rmm-header-btn-label"><%= btn_label %></span>
172
+ <% end %>
166
173
  </button>
167
174
  <% end %>
168
175
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsModalManager
4
- VERSION = "1.0.6"
4
+ VERSION = "1.0.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_modal_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - reshacs