tailwindcss-rails 2.6.5-arm-linux → 2.7.0-arm-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c377181d8d4e27d4716fe6542b81baa78fd5f18f4862da7b1ecd90fd56f44284
4
- data.tar.gz: ddcbeb2c00c5d30da9db8a84fd00426854621e0f92edad316e565e5bfe84224b
3
+ metadata.gz: 6928a2d3f20bef8c6847daea11c9649777e090253e5ec7053f7d9255f3708e1e
4
+ data.tar.gz: c305e95bcdc8cf26bff0e96e73bc9ed7600cfa1da8b0d0add36b24ca19910f8e
5
5
  SHA512:
6
- metadata.gz: b494de57df186578d9807a5e2636fac06f94b6514eb24f293ef6d59ea2a1e61e7f058a448764a2cf586a808eed4e9576cfc792bbb244e75a48d6ef80cced689f
7
- data.tar.gz: b3f44a272c6ecf9a3841a5ed803dd6bef3d771d8928497e41bfb0151fc1fcbc6df499a6d075cd10d14ee7e92f5b8d55f06804d3e5979390ff63ff6c3fbe2eacd
6
+ metadata.gz: e51a0579e8944724f55bfaeb6720f4059bcf31a6201456220ff27917dd5b209f1f38203267dacf0b8f844a8ce38476a1b4df9e69c83880d952a85ee7a97723e1
7
+ data.tar.gz: 675e43a1188a818f36cdc3072b6875e6a5ce7dc81ecec994ff7d902ad2ef10f7bd56ca266e59356e139ab361566babcb1efaafc6bafeaa0249ca23a9af00582d
@@ -0,0 +1,9 @@
1
+ require "rails/generators/erb/authentication/authentication_generator"
2
+
3
+ module Tailwindcss
4
+ module Generators
5
+ class AuthenticationGenerator < Erb::Generators::AuthenticationGenerator
6
+ source_root File.expand_path("templates", __dir__)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,21 @@
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>
@@ -0,0 +1,17 @@
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>
@@ -0,0 +1,31 @@
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>
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.6.5"
2
+ VERSION = "2.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailwindcss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.5
4
+ version: 2.7.0
5
5
  platform: arm-linux
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-30 00:00:00.000000000 Z
11
+ date: 2024-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -55,6 +55,10 @@ files:
55
55
  - app/assets/stylesheets/inter-font.css
56
56
  - exe/arm-linux/tailwindcss
57
57
  - exe/tailwindcss
58
+ - lib/generators/tailwindcss/authentication/authentication_generator.rb
59
+ - lib/generators/tailwindcss/authentication/templates/views/passwords/edit.html.erb
60
+ - lib/generators/tailwindcss/authentication/templates/views/passwords/new.html.erb
61
+ - lib/generators/tailwindcss/authentication/templates/views/sessions/new.html.erb
58
62
  - lib/generators/tailwindcss/controller/controller_generator.rb
59
63
  - lib/generators/tailwindcss/controller/templates/view.html.erb.tt
60
64
  - lib/generators/tailwindcss/mailer/mailer_generator.rb