railsui 3.2.0 → 3.2.2

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: ed0afed04a31c3601fa28d627139cf9beeeae1f6942145d7fc5afe13c45b5a52
4
- data.tar.gz: 398a15d566a2ab1475163dfc4c1a1556224275844851470507630a565ce378a2
3
+ metadata.gz: 5f3e094905bb291bf03f380ff57736d2db5128988144d84898d04402800e61f3
4
+ data.tar.gz: e849f49ed552a5407c90e968c3399949762c3bc7939754bf9068577b5cd78b39
5
5
  SHA512:
6
- metadata.gz: d84dc75043ce4fd499160a50e5ca49920b9f6ee89218e507f5db1c154528eb3a58adb4b5ff3ae026ab249dbedd116ff6729a66540043a2fb777865f189a51078
7
- data.tar.gz: 140bb54f5d6485de25014c7a443382cb13abe6ce86596f9262944c5a75afd410fa8d6a3c1356903b08f9dd2a6b93a19d4136945c3dfeea61da8e967d5f6140d8
6
+ metadata.gz: cdb3eb138741121b21af7aa048c9b9ecbe54e98f4aa15ebc9d740e1ed82292229804c099af880104c2550c5ef58c565cee3234209483016e8d1ed4e2e3e71b5c
7
+ data.tar.gz: b0a8afafe8266ffcb42fbb592a91cd266aa66724f400a40cb66b04c7daa066a3aa76c20a713d489434370f9143d7437d06cc24d23d78db1bf3f0d1bd49825d12
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- railsui (3.2.0)
4
+ railsui (3.2.2)
5
5
  meta-tags
6
6
  psych
7
7
  rails (>= 7.0)
@@ -29,8 +29,15 @@
29
29
  <!-- Rails UI Form Builder with builder parameter -->
30
30
  <%%= form_with model: @user, builder: Railsui::FormBuilder do |f| %>
31
31
  <%%= f.text_field :name, label: "Full Name", placeholder: "John Doe" %>
32
- <%%= f.email_field :email, label: "Email Address", placeholder: "john@example.com", help: "We'll never share your email with anyone else." %>
33
- <%%= f.text_area :bio, label: "Biography", placeholder: "Tell us about yourself...", rows: 4 %>
32
+
33
+ <%%= f.form_group do %>
34
+ <%%= f.email_field :email, label: "Email Address", placeholder: "john@example.com", help: "We'll never share your email with anyone else." %>
35
+ <%% end %>
36
+
37
+ <%%= f.form_group do %>
38
+ <%%= f.text_area :bio, label: "Biography", placeholder: "Tell us about yourself...", rows: 4 %>
39
+ <%% end %>
40
+
34
41
  <%%= f.submit "Save Profile" %>
35
42
  <%% end %>
36
43
  <% end %>
@@ -112,21 +119,52 @@
112
119
  <%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
113
120
  <!-- Text inputs -->
114
121
  <%%= f.text_field :text, label: "Text Field" %>
115
- <%%= f.email_field :email, label: "Email Field", placeholder: "john.doe@example.com" %>
116
- <%%= f.password_field :password, label: "Password Field" %>
117
- <%%= f.number_field :number, label: "Number Field", min: 0, max: 100 %>
118
- <%%= f.telephone_field :phone, label: "Phone Number" %>
119
- <%%= f.url_field :website, label: "Website URL" %>
122
+
123
+ <%%= f.form_group do %>
124
+ <%%= f.email_field :email, label: "Email Field", placeholder: "john.doe@example.com" %>
125
+ <%% end %>
126
+
127
+ <%%= f.form_group do %>
128
+ <%%= f.password_field :password, label: "Password Field" %>
129
+ <%% end %>
130
+
131
+ <%%= f.form_group do %>
132
+ <%%= f.number_field :number, label: "Number Field", min: 0, max: 100 %>
133
+ <%% end %>
134
+
135
+ <%%= f.form_group do %>
136
+ <%%= f.telephone_field :phone, label: "Phone Number" %>
137
+ <%% end %>
138
+
139
+ <%%= f.form_group do %>
140
+ <%%= f.url_field :website, label: "Website URL" %>
141
+ <%% end %>
120
142
 
121
143
  <!-- Date/Time inputs -->
122
- <%%= f.date_field :date, label: "Date" %>
123
- <%%= f.time_field :time, label: "Time" %>
144
+ <%%= f.form_group do %>
145
+ <%%= f.date_field :date, label: "Date" %>
146
+ <%% end %>
147
+
148
+ <%%= f.form_group do %>
149
+ <%%= f.time_field :time, label: "Time" %>
150
+ <%% end %>
124
151
 
125
152
  <!-- Special inputs -->
126
- <%%= f.color_field :color, label: "Color Picker" %>
127
- <%%= f.search_field :search, label: "Search", placeholder: "Search..." %>
128
- <%%= f.file_field :file, label: "File Upload" %>
129
- <%%= f.range_field :volume, label: "Volume", min: 0, max: 100, value: 25 %>
153
+ <%%= f.form_group do %>
154
+ <%%= f.color_field :color, label: "Color Picker" %>
155
+ <%% end %>
156
+
157
+ <%%= f.form_group do %>
158
+ <%%= f.search_field :search, label: "Search", placeholder: "Search..." %>
159
+ <%% end %>
160
+
161
+ <%%= f.form_group do %>
162
+ <%%= f.file_field :file, label: "File Upload" %>
163
+ <%% end %>
164
+
165
+ <%%= f.form_group do %>
166
+ <%%= f.range_field :volume, label: "Volume", min: 0, max: 100, value: 25 %>
167
+ <%% end %>
130
168
  <%% end %>
131
169
  <% end %>
132
170
  <%= render_snippet active_tab: :erb %>
@@ -167,11 +205,13 @@
167
205
  { prompt: "Choose a country" },
168
206
  { label: "Country" } %>
169
207
 
170
- <%%= f.text_area :message,
171
- label: "Message",
172
- placeholder: "Enter your message here...",
173
- rows: 5,
174
- help: "Maximum 500 characters" %>
208
+ <%%= f.form_group do %>
209
+ <%%= f.text_area :message,
210
+ label: "Message",
211
+ placeholder: "Enter your message here...",
212
+ rows: 5,
213
+ help: "Maximum 500 characters" %>
214
+ <%% end %>
175
215
  <%% end %>
176
216
  <% end %>
177
217
  <%= render_snippet active_tab: :erb %>
@@ -306,7 +346,10 @@
306
346
  <%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
307
347
  <!-- Switch toggles -->
308
348
  <%%= f.switch_field :dark_mode, label: "Enable dark mode" %>
309
- <%%= f.switch_field :auto_save, label: "Auto-save drafts" %>
349
+
350
+ <%%= f.form_group do %>
351
+ <%%= f.switch_field :auto_save, label: "Auto-save drafts" %>
352
+ <%% end %>
310
353
  <%% end %>
311
354
  <% end %>
312
355
  <%= render_snippet active_tab: :erb %>
@@ -342,7 +385,11 @@
342
385
  <!-- The form builder automatically handles error states -->
343
386
  <%%= form_with model: @user, builder: Railsui::FormBuilder do |f| %>
344
387
  <%%= f.text_field :name, label: "Full Name" %>
345
- <%%= f.email_field :email, label: "Email Address" %>
388
+
389
+ <%%= f.form_group do %>
390
+ <%%= f.email_field :email, label: "Email Address" %>
391
+ <%% end %>
392
+
346
393
  <%%= f.submit "Submit" %>
347
394
  <%% end %>
348
395
 
@@ -448,18 +495,22 @@
448
495
  wrapper: { class: "max-w-md" } %>
449
496
 
450
497
  <!-- Skip label (i.e. don't display labels) -->
451
- <%%= f.email_field :email,
452
- label: false,
453
- placeholder: "Enter your email",
454
- help: "Skip displaying label",
455
- skip_label: true %>
498
+ <%%= f.form_group do %>
499
+ <%%= f.email_field :email,
500
+ label: false,
501
+ placeholder: "Enter your email",
502
+ help: "Skip displaying label",
503
+ skip_label: true %>
504
+ <%% end %>
456
505
 
457
506
  <!-- Custom label options and input class -->
458
- <%%= f.text_field :website,
459
- label: "Website",
460
- placeholder: "https://",
461
- label_options: { class: "form-label font-medium text-sm text-blue-600" },
462
- class: "form-input text-lg" %>
507
+ <%%= f.form_group do %>
508
+ <%%= f.text_field :website,
509
+ label: "Website",
510
+ placeholder: "https://",
511
+ label_options: { class: "form-label font-medium text-sm text-blue-600" },
512
+ class: "form-input text-lg" %>
513
+ <%% end %>
463
514
  <%% end %>
464
515
  <% end %>
465
516
  <%= render_snippet active_tab: :erb %>
@@ -29,8 +29,15 @@
29
29
  <!-- Rails UI Form Builder with builder parameter -->
30
30
  <%%= form_with model: @user, builder: Railsui::FormBuilder do |f| %>
31
31
  <%%= f.text_field :name, label: "Full Name", placeholder: "John Doe" %>
32
- <%%= f.email_field :email, label: "Email Address", placeholder: "john@example.com", help: "We'll never share your email with anyone else." %>
33
- <%%= f.text_area :bio, label: "Biography", placeholder: "Tell us about yourself...", rows: 4 %>
32
+
33
+ <%%= f.form_group do %>
34
+ <%%= f.email_field :email, label: "Email Address", placeholder: "john@example.com", help: "We'll never share your email with anyone else." %>
35
+ <%% end %>
36
+
37
+ <%%= f.form_group do %>
38
+ <%%= f.text_area :bio, label: "Biography", placeholder: "Tell us about yourself...", rows: 4 %>
39
+ <%% end %>
40
+
34
41
  <%%= f.submit "Save Profile" %>
35
42
  <%% end %>
36
43
  <% end %>
@@ -112,21 +119,52 @@
112
119
  <%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
113
120
  <!-- Text inputs -->
114
121
  <%%= f.text_field :text, label: "Text Field" %>
115
- <%%= f.email_field :email, label: "Email Field", placeholder: "john.doe@example.com" %>
116
- <%%= f.password_field :password, label: "Password Field" %>
117
- <%%= f.number_field :number, label: "Number Field", min: 0, max: 100 %>
118
- <%%= f.telephone_field :phone, label: "Phone Number" %>
119
- <%%= f.url_field :website, label: "Website URL" %>
122
+
123
+ <%%= f.form_group do %>
124
+ <%%= f.email_field :email, label: "Email Field", placeholder: "john.doe@example.com" %>
125
+ <%% end %>
126
+
127
+ <%%= f.form_group do %>
128
+ <%%= f.password_field :password, label: "Password Field" %>
129
+ <%% end %>
130
+
131
+ <%%= f.form_group do %>
132
+ <%%= f.number_field :number, label: "Number Field", min: 0, max: 100 %>
133
+ <%% end %>
134
+
135
+ <%%= f.form_group do %>
136
+ <%%= f.telephone_field :phone, label: "Phone Number" %>
137
+ <%% end %>
138
+
139
+ <%%= f.form_group do %>
140
+ <%%= f.url_field :website, label: "Website URL" %>
141
+ <%% end %>
120
142
 
121
143
  <!-- Date/Time inputs -->
122
- <%%= f.date_field :date, label: "Date" %>
123
- <%%= f.time_field :time, label: "Time" %>
144
+ <%%= f.form_group do %>
145
+ <%%= f.date_field :date, label: "Date" %>
146
+ <%% end %>
147
+
148
+ <%%= f.form_group do %>
149
+ <%%= f.time_field :time, label: "Time" %>
150
+ <%% end %>
124
151
 
125
152
  <!-- Special inputs -->
126
- <%%= f.color_field :color, label: "Color Picker" %>
127
- <%%= f.search_field :search, label: "Search", placeholder: "Search..." %>
128
- <%%= f.file_field :file, label: "File Upload" %>
129
- <%%= f.range_field :volume, label: "Volume", min: 0, max: 100, value: 25 %>
153
+ <%%= f.form_group do %>
154
+ <%%= f.color_field :color, label: "Color Picker" %>
155
+ <%% end %>
156
+
157
+ <%%= f.form_group do %>
158
+ <%%= f.search_field :search, label: "Search", placeholder: "Search..." %>
159
+ <%% end %>
160
+
161
+ <%%= f.form_group do %>
162
+ <%%= f.file_field :file, label: "File Upload" %>
163
+ <%% end %>
164
+
165
+ <%%= f.form_group do %>
166
+ <%%= f.range_field :volume, label: "Volume", min: 0, max: 100, value: 25 %>
167
+ <%% end %>
130
168
  <%% end %>
131
169
  <% end %>
132
170
  <%= render_snippet active_tab: :erb %>
@@ -167,11 +205,13 @@
167
205
  { prompt: "Choose a country" },
168
206
  { label: "Country" } %>
169
207
 
170
- <%%= f.text_area :message,
171
- label: "Message",
172
- placeholder: "Enter your message here...",
173
- rows: 5,
174
- help: "Maximum 500 characters" %>
208
+ <%%= f.form_group do %>
209
+ <%%= f.text_area :message,
210
+ label: "Message",
211
+ placeholder: "Enter your message here...",
212
+ rows: 5,
213
+ help: "Maximum 500 characters" %>
214
+ <%% end %>
175
215
  <%% end %>
176
216
  <% end %>
177
217
  <%= render_snippet active_tab: :erb %>
@@ -306,7 +346,10 @@
306
346
  <%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
307
347
  <!-- Switch toggles -->
308
348
  <%%= f.switch_field :dark_mode, label: "Enable dark mode" %>
309
- <%%= f.switch_field :auto_save, label: "Auto-save drafts" %>
349
+
350
+ <%%= f.form_group do %>
351
+ <%%= f.switch_field :auto_save, label: "Auto-save drafts" %>
352
+ <%% end %>
310
353
  <%% end %>
311
354
  <% end %>
312
355
  <%= render_snippet active_tab: :erb %>
@@ -342,7 +385,11 @@
342
385
  <!-- The form builder automatically handles error states -->
343
386
  <%%= form_with model: @user, builder: Railsui::FormBuilder do |f| %>
344
387
  <%%= f.text_field :name, label: "Full Name" %>
345
- <%%= f.email_field :email, label: "Email Address" %>
388
+
389
+ <%%= f.form_group do %>
390
+ <%%= f.email_field :email, label: "Email Address" %>
391
+ <%% end %>
392
+
346
393
  <%%= f.submit "Submit" %>
347
394
  <%% end %>
348
395
 
@@ -448,18 +495,22 @@
448
495
  wrapper: { class: "max-w-md" } %>
449
496
 
450
497
  <!-- Skip label (i.e. don't display labels) -->
451
- <%%= f.email_field :email,
452
- label: false,
453
- placeholder: "Enter your email",
454
- help: "Skip displaying label",
455
- skip_label: true %>
498
+ <%%= f.form_group do %>
499
+ <%%= f.email_field :email,
500
+ label: false,
501
+ placeholder: "Enter your email",
502
+ help: "Skip displaying label",
503
+ skip_label: true %>
504
+ <%% end %>
456
505
 
457
506
  <!-- Custom label options and input class -->
458
- <%%= f.text_field :website,
459
- label: "Website",
460
- placeholder: "https://",
461
- label_options: { class: "form-label font-medium text-sm text-blue-600" },
462
- class: "form-input text-lg" %>
507
+ <%%= f.form_group do %>
508
+ <%%= f.text_field :website,
509
+ label: "Website",
510
+ placeholder: "https://",
511
+ label_options: { class: "form-label font-medium text-sm text-blue-600" },
512
+ class: "form-input text-lg" %>
513
+ <%% end %>
463
514
  <%% end %>
464
515
  <% end %>
465
516
  <%= render_snippet active_tab: :erb %>
@@ -29,8 +29,15 @@
29
29
  <!-- Rails UI Form Builder with builder parameter -->
30
30
  <%%= form_with model: @user, builder: Railsui::FormBuilder do |f| %>
31
31
  <%%= f.text_field :name, label: "Full Name", placeholder: "John Doe" %>
32
- <%%= f.email_field :email, label: "Email Address", placeholder: "john@example.com", help: "We'll never share your email with anyone else." %>
33
- <%%= f.text_area :bio, label: "Biography", placeholder: "Tell us about yourself...", rows: 4 %>
32
+
33
+ <%%= f.form_group do %>
34
+ <%%= f.email_field :email, label: "Email Address", placeholder: "john@example.com", help: "We'll never share your email with anyone else." %>
35
+ <%% end %>
36
+
37
+ <%%= f.form_group do %>
38
+ <%%= f.text_area :bio, label: "Biography", placeholder: "Tell us about yourself...", rows: 4 %>
39
+ <%% end %>
40
+
34
41
  <%%= f.submit "Save Profile" %>
35
42
  <%% end %>
36
43
  <% end %>
@@ -112,21 +119,52 @@
112
119
  <%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
113
120
  <!-- Text inputs -->
114
121
  <%%= f.text_field :text, label: "Text Field" %>
115
- <%%= f.email_field :email, label: "Email Field", placeholder: "john.doe@example.com" %>
116
- <%%= f.password_field :password, label: "Password Field" %>
117
- <%%= f.number_field :number, label: "Number Field", min: 0, max: 100 %>
118
- <%%= f.telephone_field :phone, label: "Phone Number" %>
119
- <%%= f.url_field :website, label: "Website URL" %>
122
+
123
+ <%%= f.form_group do %>
124
+ <%%= f.email_field :email, label: "Email Field", placeholder: "john.doe@example.com" %>
125
+ <%% end %>
126
+
127
+ <%%= f.form_group do %>
128
+ <%%= f.password_field :password, label: "Password Field" %>
129
+ <%% end %>
130
+
131
+ <%%= f.form_group do %>
132
+ <%%= f.number_field :number, label: "Number Field", min: 0, max: 100 %>
133
+ <%% end %>
134
+
135
+ <%%= f.form_group do %>
136
+ <%%= f.telephone_field :phone, label: "Phone Number" %>
137
+ <%% end %>
138
+
139
+ <%%= f.form_group do %>
140
+ <%%= f.url_field :website, label: "Website URL" %>
141
+ <%% end %>
120
142
 
121
143
  <!-- Date/Time inputs -->
122
- <%%= f.date_field :date, label: "Date" %>
123
- <%%= f.time_field :time, label: "Time" %>
144
+ <%%= f.form_group do %>
145
+ <%%= f.date_field :date, label: "Date" %>
146
+ <%% end %>
147
+
148
+ <%%= f.form_group do %>
149
+ <%%= f.time_field :time, label: "Time" %>
150
+ <%% end %>
124
151
 
125
152
  <!-- Special inputs -->
126
- <%%= f.color_field :color, label: "Color Picker" %>
127
- <%%= f.search_field :search, label: "Search", placeholder: "Search..." %>
128
- <%%= f.file_field :file, label: "File Upload" %>
129
- <%%= f.range_field :volume, label: "Volume", min: 0, max: 100, value: 25 %>
153
+ <%%= f.form_group do %>
154
+ <%%= f.color_field :color, label: "Color Picker" %>
155
+ <%% end %>
156
+
157
+ <%%= f.form_group do %>
158
+ <%%= f.search_field :search, label: "Search", placeholder: "Search..." %>
159
+ <%% end %>
160
+
161
+ <%%= f.form_group do %>
162
+ <%%= f.file_field :file, label: "File Upload" %>
163
+ <%% end %>
164
+
165
+ <%%= f.form_group do %>
166
+ <%%= f.range_field :volume, label: "Volume", min: 0, max: 100, value: 25 %>
167
+ <%% end %>
130
168
  <%% end %>
131
169
  <% end %>
132
170
  <%= render_snippet active_tab: :erb %>
@@ -167,11 +205,13 @@
167
205
  { prompt: "Choose a country" },
168
206
  { label: "Country" } %>
169
207
 
170
- <%%= f.text_area :message,
171
- label: "Message",
172
- placeholder: "Enter your message here...",
173
- rows: 5,
174
- help: "Maximum 500 characters" %>
208
+ <%%= f.form_group do %>
209
+ <%%= f.text_area :message,
210
+ label: "Message",
211
+ placeholder: "Enter your message here...",
212
+ rows: 5,
213
+ help: "Maximum 500 characters" %>
214
+ <%% end %>
175
215
  <%% end %>
176
216
  <% end %>
177
217
  <%= render_snippet active_tab: :erb %>
@@ -306,7 +346,10 @@
306
346
  <%%= form_with model: @model, builder: Railsui::FormBuilder do |f| %>
307
347
  <!-- Switch toggles -->
308
348
  <%%= f.switch_field :dark_mode, label: "Enable dark mode" %>
309
- <%%= f.switch_field :auto_save, label: "Auto-save drafts" %>
349
+
350
+ <%%= f.form_group do %>
351
+ <%%= f.switch_field :auto_save, label: "Auto-save drafts" %>
352
+ <%% end %>
310
353
  <%% end %>
311
354
  <% end %>
312
355
  <%= render_snippet active_tab: :erb %>
@@ -342,7 +385,11 @@
342
385
  <!-- The form builder automatically handles error states -->
343
386
  <%%= form_with model: @user, builder: Railsui::FormBuilder do |f| %>
344
387
  <%%= f.text_field :name, label: "Full Name" %>
345
- <%%= f.email_field :email, label: "Email Address" %>
388
+
389
+ <%%= f.form_group do %>
390
+ <%%= f.email_field :email, label: "Email Address" %>
391
+ <%% end %>
392
+
346
393
  <%%= f.submit "Submit" %>
347
394
  <%% end %>
348
395
 
@@ -448,18 +495,22 @@
448
495
  wrapper: { class: "max-w-md" } %>
449
496
 
450
497
  <!-- Skip label (i.e. don't display labels) -->
451
- <%%= f.email_field :email,
452
- label: false,
453
- placeholder: "Enter your email",
454
- help: "Skip displaying label",
455
- skip_label: true %>
498
+ <%%= f.form_group do %>
499
+ <%%= f.email_field :email,
500
+ label: false,
501
+ placeholder: "Enter your email",
502
+ help: "Skip displaying label",
503
+ skip_label: true %>
504
+ <%% end %>
456
505
 
457
506
  <!-- Custom label options and input class -->
458
- <%%= f.text_field :website,
459
- label: "Website",
460
- placeholder: "https://",
461
- label_options: { class: "form-label font-medium text-sm text-blue-600" },
462
- class: "form-input text-lg" %>
507
+ <%%= f.form_group do %>
508
+ <%%= f.text_field :website,
509
+ label: "Website",
510
+ placeholder: "https://",
511
+ label_options: { class: "form-label font-medium text-sm text-blue-600" },
512
+ class: "form-input text-lg" %>
513
+ <%% end %>
463
514
  <%% end %>
464
515
  <% end %>
465
516
  <%= render_snippet active_tab: :erb %>
@@ -1,3 +1,3 @@
1
1
  module Railsui
2
- VERSION = "3.2.0"
2
+ VERSION = "3.2.2"
3
3
  end
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.2.0
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Leverenz
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-08-19 00:00:00.000000000 Z
10
+ date: 2025-08-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails