railsui 3.3.1 → 3.3.3
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: 91c80ec9979b1733f5b8386293ea0ea811914183990c21a9cbdf32f9a2f70499
|
|
4
|
+
data.tar.gz: 82772b01f627598e260a2eb99839b4507ad416ed72ccb5d00d120de50dc92f4e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11d7b0cbb59d10e6df02d28ea05659c4dc04bd9f3b4ce4033e12f1432c970093f0ad7be3e128c1e29e006f8077e99a5edc4c80869495ec181e718d157636cbfe
|
|
7
|
+
data.tar.gz: 8a80e1564b7cf72c06e348f12956e75fd52e1ba4b5702f8b4f65c1346e08c3bcacfcdea9e0ab6af58469f79877daa573b0d60d7ec3017ec300075e1263066235
|
data/Gemfile.lock
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<%= render "rui/shared/meta" %>
|
|
2
2
|
<%= render "rui/shared/fonts" %>
|
|
3
|
-
<%= stylesheet_link_tag "https://unpkg.com/photoswipe@5.4.4/dist/photoswipe.css", "https://unpkg.com/tippy.js@6.3.7/dist/tippy.css", "data-turbo-track": "reload" %>
|
|
3
|
+
<%= stylesheet_link_tag "https://unpkg.com/photoswipe@5.4.4/dist/photoswipe.css", "https://unpkg.com/tippy.js@6.3.7/dist/tippy.css", "https://unpkg.com/flatpickr@4.6.13/dist/flatpickr.min.css", "data-turbo-track": "reload" %>
|
|
4
4
|
<%= yield :head %>
|
data/lib/railsui/form_builder.rb
CHANGED
|
@@ -252,12 +252,19 @@ module Railsui
|
|
|
252
252
|
private
|
|
253
253
|
|
|
254
254
|
def field_wrapper(method, options = {}, &block)
|
|
255
|
-
wrapper_options = options.delete(:wrapper)
|
|
255
|
+
wrapper_options = options.delete(:wrapper)
|
|
256
256
|
label_text = options.delete(:label)
|
|
257
257
|
help_text = options.delete(:help)
|
|
258
258
|
skip_label = options.delete(:skip_label) || false
|
|
259
259
|
is_required = options[:required] || false
|
|
260
260
|
|
|
261
|
+
# If wrapper is explicitly false, just return the field without wrapping
|
|
262
|
+
if wrapper_options == false
|
|
263
|
+
return capture(&block)
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
wrapper_options ||= {}
|
|
267
|
+
|
|
261
268
|
form_group(method, wrapper_options) do
|
|
262
269
|
elements = []
|
|
263
270
|
|
data/lib/railsui/theme_setup.rb
CHANGED
|
@@ -337,7 +337,6 @@ module Railsui
|
|
|
337
337
|
end
|
|
338
338
|
|
|
339
339
|
pin_importmap_dependencies(theme)
|
|
340
|
-
add_importmap_css_dependencies(theme)
|
|
341
340
|
end
|
|
342
341
|
|
|
343
342
|
# Legacy method for backward compatibility
|
|
@@ -463,37 +462,6 @@ module Railsui
|
|
|
463
462
|
}
|
|
464
463
|
end
|
|
465
464
|
|
|
466
|
-
def add_importmap_css_dependencies(theme)
|
|
467
|
-
application_css_path = Rails.root.join("app/assets/tailwind/application.css")
|
|
468
|
-
return unless File.exist?(application_css_path)
|
|
469
|
-
|
|
470
|
-
css_content = File.read(application_css_path)
|
|
471
|
-
|
|
472
|
-
# Required CSS dependencies for railsui-stimulus components
|
|
473
|
-
css_imports = []
|
|
474
|
-
css_imports << '@import "https://unpkg.com/tippy.js@6.3.7/dist/tippy.css";'
|
|
475
|
-
|
|
476
|
-
# Add flatpickr CSS for themes that use date picker
|
|
477
|
-
if ["shepherd"].include?(theme)
|
|
478
|
-
css_imports << '@import "https://unpkg.com/flatpickr@4.6.13/dist/flatpickr.min.css";'
|
|
479
|
-
end
|
|
480
|
-
|
|
481
|
-
css_imports.each do |import_statement|
|
|
482
|
-
unless css_content.include?(import_statement)
|
|
483
|
-
# Add after @import "tailwindcss" if it exists, otherwise at the top
|
|
484
|
-
if css_content.include?('@import "tailwindcss"')
|
|
485
|
-
css_content.sub!('@import "tailwindcss";', "@import \"tailwindcss\";\n#{import_statement}")
|
|
486
|
-
else
|
|
487
|
-
css_content = "#{import_statement}\n#{css_content}"
|
|
488
|
-
end
|
|
489
|
-
say "✓ Added CSS import: #{import_statement}", :green
|
|
490
|
-
end
|
|
491
|
-
end
|
|
492
|
-
|
|
493
|
-
File.write(application_css_path, css_content)
|
|
494
|
-
say "✅ CSS dependencies added for importmap mode", :green
|
|
495
|
-
end
|
|
496
|
-
|
|
497
465
|
def add_yarn_packages(packages)
|
|
498
466
|
package_manager = detect_package_manager
|
|
499
467
|
say "Using #{package_manager} to install packages...", :green
|
data/lib/railsui/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: railsui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.3.
|
|
4
|
+
version: 3.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Leverenz
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-01-17 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rails
|