basecoat 2.0.0 → 2.0.1

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: 30c46abb1310bf79995534b1fcd52074a67f327d42ea93a933065b46b02d8563
4
- data.tar.gz: 509ac587a90f7be78362d5d92d0506de9528dc3e773d0c20b7bdfa2050eedc30
3
+ metadata.gz: 1211adbec8da355fa5ec5c1794561f8637b1a0cc08441ad67c560fe550f12b1e
4
+ data.tar.gz: 9e7569725fcfd26c137868fa764d6302b29c1011bda90d00a39e253f857a2474
5
5
  SHA512:
6
- metadata.gz: f01fd3115a85191fb41f999662adfda41666f022d54f53e46242987ba5b61fc4459322f41d48f238b1dc2537573a161b2514baf8faee83762fff80e2e7faa11d
7
- data.tar.gz: c58e1ced83b1ad2b8083e0cbc7481476fe06ba8abe26cc95280f4047d1c0174596b129dcfcaf5f1bfa9b5d77c27689649dfb6334743251a6bf9c42607b1c5651
6
+ metadata.gz: 0037adf9df5619c1402db0216bb281f340b5008b954a2cb0c1f278165909d5306037183dd93f839a18b09126a5edec914efab7380c339e928ff0144e3d5145d7
7
+ data.tar.gz: b0ebf8d1841064e080c81a4a3ad57cacff757fa78b6e3f1d9534f200e68702d5f4376645ba12aad92509acfea0a0aa28514e54f71370b432a0405209bf924873
data/README.md CHANGED
@@ -5,12 +5,10 @@ It is especially powerful for admin applications with a lot of CRUD actions.
5
5
 
6
6
  Beautiful responsive, dark & light mode Rails scaffolds, pages for authentication and Devise, and pagy styling.
7
7
 
8
- Login:
8
+
9
9
  ![Basecoat Login](basecoat-login.png)
10
- Index:
11
- ![Basecoat Index](basecoat-index.png)
12
- Form, mobile dark mode:
13
- ![Basecoat Dark Form](basecoat-dark-form.png)
10
+
11
+ ![Basecoat Index](basecoat-new.png)
14
12
 
15
13
  ## Why?
16
14
 
data/basecoat-new.png ADDED
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Basecoat
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
@@ -1,4 +1,4 @@
1
- <button type="button" aria-label="Toggle dark mode" data-tooltip="Toggle dark mode" data-side="left" data-action="click->theme#toggle" class="btn-icon-outline size-8">
1
+ <button type="button" aria-label="Toggle dark mode" data-tooltip="Toggle dark mode" data-side="left" data-action="click->theme#toggle" class="btn-ghost size-8">
2
2
  <span class="hidden dark:block"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"></circle><path d="M12 2v2"></path><path d="M12 20v2"></path><path d="m4.93 4.93 1.41 1.41"></path><path d="m17.66 17.66 1.41 1.41"></path><path d="M2 12h2"></path><path d="M20 12h2"></path><path d="m6.34 17.66-1.41 1.41"></path><path d="m19.07 4.93-1.41 1.41"></path></svg></span>
3
3
  <span class="block dark:hidden"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"></path></svg></span>
4
4
  </button>
@@ -6,7 +6,7 @@
6
6
  <p>Sign in to your account to continue.</p>
7
7
  </header>
8
8
  <section class="space-y-4">
9
- <%= form_with url: session_url, html: { class: "grid gap-6" } do |form| %>
9
+ <%= form_with url: session_url, html: { data: { turbo: false }, class: "grid gap-6" } do |form| %>
10
10
  <div class="grid gap-3">
11
11
  <%= form.label :email_address, "Email", class: "label" %>
12
12
  <%= form.email_field :email_address, required: true, autofocus: true, autocomplete: "username", value: params[:email_address], class: "input" %>
@@ -225,8 +225,8 @@ namespace :basecoat do
225
225
 
226
226
  <% if defined?(user_signed_in?) && user_signed_in? %>
227
227
  <div id="dropdown-user" class="dropdown-menu">
228
- <button type="button" id="dropdown-user-trigger" aria-haspopup="menu" aria-controls="dropdown-user-menu" aria-expanded="false" class="btn-icon-ghost rounded-full size-8">
229
- <img alt="<%= current_user.email %>" src="https://github.com/lafeber.png" class="size-8 shrink-0 rounded-full">
228
+ <button type="button" id="dropdown-user-trigger" aria-haspopup="menu" aria-controls="dropdown-user-menu" aria-expanded="false" class="btn-ghost size-8">
229
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-user-icon lucide-circle-user"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="10" r="3"/><path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662"/></svg>
230
230
  </button>
231
231
  <div id="dropdown-user-popover" data-popover="" aria-hidden="true" data-align="end">
232
232
  <div role="menu" id="dropdown-user-menu" aria-labelledby="dropdown-user-trigger">
@@ -331,8 +331,8 @@ namespace :basecoat do
331
331
 
332
332
  <% if defined?(Current) && defined?(Current.user) && Current.user %>
333
333
  <div id="dropdown-user" class="dropdown-menu">
334
- <button type="button" id="dropdown-user-trigger" aria-haspopup="menu" aria-controls="dropdown-user-menu" aria-expanded="false" class="btn-icon-ghost rounded-full size-8">
335
- <img alt="<%= Current.user.email_address %>" src="https://github.com/lafeber.png" class="size-8 shrink-0 rounded-full">
334
+ <button type="button" id="dropdown-user-trigger" aria-haspopup="menu" aria-controls="dropdown-user-menu" aria-expanded="false" class="btn-ghost size-8">
335
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-user-icon lucide-circle-user"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="10" r="3"/><path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662"/></svg>
336
336
  </button>
337
337
  <div id="dropdown-user-popover" data-popover="" aria-hidden="true" data-align="end">
338
338
  <div role="menu" id="dropdown-user-menu" aria-labelledby="dropdown-user-trigger">
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basecoat
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martijn Lafeber
@@ -40,9 +40,8 @@ files:
40
40
  - LICENSE.txt
41
41
  - README.md
42
42
  - Rakefile
43
- - basecoat-dark-form.png
44
- - basecoat-index.png
45
43
  - basecoat-login.png
44
+ - basecoat-new.png
46
45
  - lib/basecoat.rb
47
46
  - lib/basecoat/railtie.rb
48
47
  - lib/basecoat/version.rb
Binary file
data/basecoat-index.png DELETED
Binary file