tailwindcss-rails 3.0.0 → 3.1.0

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: a5c715119cb263746cfdab2913891b82d7a63f04195c4245d2d20bc49b3391f3
4
- data.tar.gz: f4af87ff266042199d3636538ebc31d24107908b9d49450d51d2d23fef231d19
3
+ metadata.gz: 04dddb26b35c53025770f5914dacd0dea7c3dd7d527eef224d01a72ab7b449e4
4
+ data.tar.gz: e53ffa06e0f833a00f1e20c0233741c0cde0b235803eaf94c02fbc4941b9b912
5
5
  SHA512:
6
- metadata.gz: e3dd3c2781869d7b8d7eba4a0bc7f71f431a890bc5686eec2580f17698c25de4e76c009b97f601775b82feb56621dc14ec454784275f2d80e5fbd8edb901d87c
7
- data.tar.gz: b6777aaa6a4211e289d2d55f439bd1b3dec33ed6f87b2617c970fdc1da15d20edeb4bd66e8454c221bb9ae73869ac9f98e527230183f94fd2608a38777e034d3
6
+ metadata.gz: 53542141b4d15c74a3cb8a50f3a55cc85ee443ec850554c9888cf6df84ed68d212c3cded00410b04d6796da7b2dcbc71291426ece5911ef4f823d4a36f9337c9
7
+ data.tar.gz: fe22c1a7b49c6541262420afd6fca0d1947bbe6c97dff732ae4e69960e464194b5a561bf6ab8052a05a8d408caca60750fb3854e841091ba20517d3546db082b
@@ -7,11 +7,11 @@
7
7
 
8
8
  <%%= form_with url: password_path(params[:token]), method: :put, class: "contents" do |form| %>
9
9
  <div class="my-5">
10
- <%%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
10
+ <%%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
11
11
  </div>
12
12
 
13
13
  <div class="my-5">
14
- <%%= form.password_field :password_confirmation, required: true, autocomplete: "new-password", placeholder: "Repeat new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
14
+ <%%= form.password_field :password_confirmation, required: true, autocomplete: "new-password", placeholder: "Repeat new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
15
15
  </div>
16
16
 
17
17
  <div class="inline">
@@ -7,7 +7,7 @@
7
7
 
8
8
  <%%= form_with url: passwords_path, class: "contents" do |form| %>
9
9
  <div class="my-5">
10
- <%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
10
+ <%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
11
11
  </div>
12
12
 
13
13
  <div class="inline">
@@ -11,11 +11,11 @@
11
11
 
12
12
  <%%= form_with url: session_url, class: "contents" do |form| %>
13
13
  <div class="my-5">
14
- <%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
14
+ <%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
15
15
  </div>
16
16
 
17
17
  <div class="my-5">
18
- <%%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
18
+ <%%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
19
19
  </div>
20
20
 
21
21
  <div class="col-span-6 sm:flex sm:items-center sm:gap-4">
@@ -15,23 +15,23 @@
15
15
  <div class="my-5">
16
16
  <% if attribute.password_digest? -%>
17
17
  <%%= form.label :password %>
18
- <%%= form.password_field :password, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
18
+ <%%= form.password_field :password, class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
19
19
  </div>
20
20
 
21
21
  <div class="my-5">
22
22
  <%%= form.label :password_confirmation %>
23
- <%%= form.password_field :password_confirmation, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
23
+ <%%= form.password_field :password_confirmation, class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
24
24
  <% elsif attribute.attachments? -%>
25
25
  <%%= form.label :<%= attribute.column_name %> %>
26
- <%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, multiple: true, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
26
+ <%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, multiple: true, class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
27
27
  <% else -%>
28
28
  <%%= form.label :<%= attribute.column_name %> %>
29
29
  <% if attribute.field_type == :textarea || attribute.field_type == :text_area -%>
30
- <%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, rows: 4, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
30
+ <%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, rows: 4, class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
31
31
  <% elsif attribute.field_type == :checkbox || attribute.field_type == :check_box -%>
32
- <%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, class: "block mt-2 h-5 w-5" %>
32
+ <%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 mt-2 h-5 w-5" %>
33
33
  <% else -%>
34
- <%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
34
+ <%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, class: "block shadow rounded-md border border-gray-400 outline-none focus:outline-blue-600 px-3 py-2 mt-2 w-full" %>
35
35
  <% end -%>
36
36
  <% end -%>
37
37
  </div>
@@ -15,8 +15,8 @@ module.exports = {
15
15
  },
16
16
  },
17
17
  plugins: [
18
- require('@tailwindcss/forms'),
19
- require('@tailwindcss/typography'),
20
- require('@tailwindcss/container-queries'),
18
+ // require('@tailwindcss/forms'),
19
+ // require('@tailwindcss/typography'),
20
+ // require('@tailwindcss/container-queries'),
21
21
  ]
22
22
  }
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "3.0.0"
2
+ VERSION = "3.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailwindcss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-15 00:00:00.000000000 Z
10
+ date: 2024-12-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: railties
@@ -38,7 +37,6 @@ dependencies:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: '0'
41
- description:
42
40
  email: david@loudthinking.com
43
41
  executables: []
44
42
  extensions: []
@@ -68,9 +66,6 @@ files:
68
66
  - lib/generators/tailwindcss/authentication/templates/app/views/passwords/edit.html.erb
69
67
  - lib/generators/tailwindcss/authentication/templates/app/views/passwords/new.html.erb
70
68
  - lib/generators/tailwindcss/authentication/templates/app/views/sessions/new.html.erb
71
- - lib/generators/tailwindcss/authentication/templates/views/passwords/edit.html.erb
72
- - lib/generators/tailwindcss/authentication/templates/views/passwords/new.html.erb
73
- - lib/generators/tailwindcss/authentication/templates/views/sessions/new.html.erb
74
69
  - lib/generators/tailwindcss/controller/controller_generator.rb
75
70
  - lib/generators/tailwindcss/controller/templates/view.html.erb.tt
76
71
  - lib/generators/tailwindcss/mailer/mailer_generator.rb
@@ -105,7 +100,6 @@ licenses:
105
100
  metadata:
106
101
  homepage_uri: https://github.com/rails/tailwindcss-rails
107
102
  rubygems_mfa_required: 'true'
108
- post_install_message:
109
103
  rdoc_options: []
110
104
  require_paths:
111
105
  - lib
@@ -120,8 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
114
  - !ruby/object:Gem::Version
121
115
  version: 3.2.0
122
116
  requirements: []
123
- rubygems_version: 3.5.16
124
- signing_key:
117
+ rubygems_version: 3.6.2
125
118
  specification_version: 4
126
119
  summary: Integrate Tailwind CSS with the asset pipeline in Rails.
127
120
  test_files: []
@@ -1,21 +0,0 @@
1
- <div class="mx-auto md:w-2/3 w-full">
2
- <%% if alert = flash[:alert] %>
3
- <p class="py-2 px-3 bg-red-50 mb-5 text-red-500 font-medium rounded-lg inline-block" id="alert"><%%= alert %></p>
4
- <%% end %>
5
-
6
- <h1 class="font-bold text-4xl">Update your password</h1>
7
-
8
- <%%= form_with url: password_path(params[:token]), method: :put, class: "contents" do |form| %>
9
- <div class="my-5">
10
- <%%= form.password_field :password, required: true, autocomplete: "new-password", placeholder: "Enter new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
11
- </div>
12
-
13
- <div class="my-5">
14
- <%%= form.password_field :password_confirmation, required: true, autocomplete: "new-password", placeholder: "Repeat new password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
15
- </div>
16
-
17
- <div class="inline">
18
- <%%= form.submit "Save", class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
19
- </div>
20
- <%% end %>
21
- </div>
@@ -1,17 +0,0 @@
1
- <div class="mx-auto md:w-2/3 w-full">
2
- <%% if alert = flash[:alert] %>
3
- <p class="py-2 px-3 bg-red-50 mb-5 text-red-500 font-medium rounded-lg inline-block" id="alert"><%%= alert %></p>
4
- <%% end %>
5
-
6
- <h1 class="font-bold text-4xl">Forgot your password?</h1>
7
-
8
- <%%= form_with url: passwords_path, class: "contents" do |form| %>
9
- <div class="my-5">
10
- <%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
11
- </div>
12
-
13
- <div class="inline">
14
- <%%= form.submit "Email reset instructions", class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
15
- </div>
16
- <%% end %>
17
- </div>
@@ -1,31 +0,0 @@
1
- <div class="mx-auto md:w-2/3 w-full">
2
- <%% if alert = flash[:alert] %>
3
- <p class="py-2 px-3 bg-red-50 mb-5 text-red-500 font-medium rounded-lg inline-block" id="alert"><%%= alert %></p>
4
- <%% end %>
5
-
6
- <%% if notice = flash[:notice] %>
7
- <p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%%= notice %></p>
8
- <%% end %>
9
-
10
- <h1 class="font-bold text-4xl">Sign in</h1>
11
-
12
- <%%= form_with url: session_url, class: "contents" do |form| %>
13
- <div class="my-5">
14
- <%%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", placeholder: "Enter your email address", value: params[:email_address], class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
15
- </div>
16
-
17
- <div class="my-5">
18
- <%%= form.password_field :password, required: true, autocomplete: "current-password", placeholder: "Enter your password", maxlength: 72, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
19
- </div>
20
-
21
- <div class="col-span-6 sm:flex sm:items-center sm:gap-4">
22
- <div class="inline">
23
- <%%= form.submit "Sign in", class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %>
24
- </div>
25
-
26
- <div class="mt-4 text-sm text-gray-500 sm:mt-0">
27
- <%%= link_to "Forgot password?", new_password_path, class: "text-gray-700 underline" %>
28
- </div>
29
- </div>
30
- <%% end %>
31
- </div>