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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 773de79a1c4ab3beccd5806ab1f2c5106bb69fbdd06ea3f79419358ca4ab1b52
|
|
4
|
+
data.tar.gz: 6bb788bdb359937ce663d99ac260a3932e4bda1c9ee80143be06dabc14bec7e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|