vitrail 0.2.0 → 0.3.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: d19a656a36c93b3bda4cb6e96f759715b4a934c7aea3c738aa7022921c97fa4d
4
- data.tar.gz: 53201fdf84823b65504497931dbfd086046091b9cfa06f1650c92e3acd44850d
3
+ metadata.gz: 0a21fd7a542ed8c1e4d3607925dbf30522b1dbcab267e62c332ea579eec8494f
4
+ data.tar.gz: 5672e0d10c8dc43b25e305baa3378b2ac5af88ad82a8a0cc90e4754a56560a12
5
5
  SHA512:
6
- metadata.gz: 8bb7aca2bd3318dc01936d19a79dd692bed7963544a621a9d0ed1bb0de59f2316362c18bd05172323cdcbe4f95c3e9bcb85e4c0bd877d55ddbccba420c5b681c
7
- data.tar.gz: d81b1b723d0a12902b72f0c215177a01f493d6a1f15e5dd69f61c24f782892837449be7f9673076a1143bf4c8aac5dbca33c34aeff7a07522ea6d1be19ec78a5
6
+ metadata.gz: ef007d0e9d8dea67411131415a44eaf79e9504bbcada06d08ba46dbcbddcc484a0b3046065402d9ece2fc96ba7cb3009e463dfcd71eed0461b7c186eebf041f8
7
+ data.tar.gz: c50f4bdbdefd11a2ab94b3a3c4a928690912f8331a93bd0deb096e04ed18c740e94dbac1307ab6598367004149b682bd4cb8e4f52999ce70478d06a33d88657a
@@ -788,13 +788,34 @@ select {
788
788
  white-space: nowrap;
789
789
  }
790
790
 
791
+ .border-red-400 {
792
+ --tw-border-opacity: 1;
793
+ border-color: rgb(248 113 113 / var(--tw-border-opacity));
794
+ }
795
+
796
+ .border-red-200 {
797
+ --tw-border-opacity: 1;
798
+ border-color: rgb(254 202 202 / var(--tw-border-opacity));
799
+ }
800
+
791
801
  .bg-white {
792
802
  --tw-bg-opacity: 1;
793
803
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
794
804
  }
795
805
 
796
- .p-20 {
797
- padding: 5rem;
806
+ .bg-red-500 {
807
+ --tw-bg-opacity: 1;
808
+ background-color: rgb(239 68 68 / var(--tw-bg-opacity));
809
+ }
810
+
811
+ .bg-red-200 {
812
+ --tw-bg-opacity: 1;
813
+ background-color: rgb(254 202 202 / var(--tw-bg-opacity));
814
+ }
815
+
816
+ .bg-red-100 {
817
+ --tw-bg-opacity: 1;
818
+ background-color: rgb(254 226 226 / var(--tw-bg-opacity));
798
819
  }
799
820
 
800
821
  .px-3 {
@@ -843,6 +864,11 @@ select {
843
864
  color: rgb(71 85 105 / var(--tw-text-opacity));
844
865
  }
845
866
 
867
+ .text-red-800 {
868
+ --tw-text-opacity: 1;
869
+ color: rgb(153 27 27 / var(--tw-text-opacity));
870
+ }
871
+
846
872
  /*
847
873
 
848
874
  @layer components {
@@ -14,10 +14,7 @@ module Vitrail
14
14
  private
15
15
 
16
16
  def local_classes = ""
17
-
18
- def html_attributes
19
- tag.attributes(html_options)
20
- end
17
+ def html_attributes = tag.attributes(html_options)
21
18
 
22
19
  def html_classes
23
20
  [local_classes, custom_classes].reject(&:blank?).join(" ")
@@ -1,5 +1,5 @@
1
1
  <div class="flow-root" <%= html_attributes %>>
2
- <div class="overflow-x-auto">
2
+ <div class="<%= html_classes %>">
3
3
  <div class="inline-block min-w-full align-middle">
4
4
  <table class="table-auto min-w-full divide-y divide-gray-300">
5
5
  <thead class="sticky top-0 bg-white">
@@ -4,5 +4,7 @@ module Vitrail
4
4
  class Table < BaseComponent
5
5
  renders_many :headers, Table::Header
6
6
  renders_many :rows, Table::Row
7
+
8
+ def local_classes = "overflow-x-auto"
7
9
  end
8
10
  end
@@ -8,6 +8,7 @@
8
8
 
9
9
  <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
10
10
  <%= stylesheet_link_tag "vitrail/application" %>
11
+ <script src="https://kit.fontawesome.com/910f22a437.js" crossorigin="anonymous"></script>
11
12
  </head>
12
13
  <body class="px-8 py-4 margin-x-auto">
13
14
  <%= yield %>
@@ -5,17 +5,5 @@ module Vitrail
5
5
  initializer "vitrail.precompile" do |app|
6
6
  app.config.assets.precompile += %w[vitrail_manifest]
7
7
  end
8
-
9
- initializer "vitrail.lookbook" do |app|
10
- app.config.lookbook.preview_paths << Vitrail::Engine.root.join("test/components/previews")
11
- app.config.view_component.preview_paths << Vitrail::Engine.root.join("test/components/previews")
12
- app.config.lookbook.preview_layout = "vitrail/component_preview"
13
- app.config.lookbook.project_name = "Vitrail"
14
- app.config.lookbook.project_logo = false
15
- app.config.lookbook.ui_favicon = false
16
- app.config.lookbook.preview_collection_label = "Components"
17
- app.config.lookbook.ui_theme = "zinc"
18
- app.config.lookbook.preview_inspector.drawer_panels = [:source, :notes]
19
- end
20
8
  end
21
9
  end
@@ -1,3 +1,3 @@
1
1
  module Vitrail
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vitrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume CABANEL
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2023-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2'
55
- - !ruby/object:Gem::Dependency
56
- name: lookbook
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '2'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '2'
69
55
  description: Kuartz design system view components
70
56
  email:
71
57
  - guillaume@kuartz.fr
@@ -90,14 +76,8 @@ files:
90
76
  - app/components/vitrail/table/header.rb
91
77
  - app/components/vitrail/table/row.rb
92
78
  - app/components/vitrail/title.rb
93
- - app/controllers/vitrail/application_controller.rb
94
79
  - app/helpers/vitrail/application_helper.rb
95
- - app/jobs/vitrail/application_job.rb
96
- - app/mailers/vitrail/application_mailer.rb
97
- - app/models/vitrail/application_record.rb
98
- - app/views/layouts/vitrail/application.html.erb
99
80
  - app/views/layouts/vitrail/component_preview.html.erb
100
- - config/routes.rb
101
81
  - config/tailwind.config.js
102
82
  - lib/tasks/vitrail_tasks.rake
103
83
  - lib/vitrail.rb
@@ -1,4 +0,0 @@
1
- module Vitrail
2
- class ApplicationController < ActionController::Base
3
- end
4
- end
@@ -1,4 +0,0 @@
1
- module Vitrail
2
- class ApplicationJob < ActiveJob::Base
3
- end
4
- end
@@ -1,6 +0,0 @@
1
- module Vitrail
2
- class ApplicationMailer < ActionMailer::Base
3
- default from: "from@example.com"
4
- layout "mailer"
5
- end
6
- end
@@ -1,5 +0,0 @@
1
- module Vitrail
2
- class ApplicationRecord < ActiveRecord::Base
3
- self.abstract_class = true
4
- end
5
- end
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Vitrail</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
-
8
- <%= stylesheet_link_tag "vitrail", "data-turbo-track": "reload" %>
9
- </head>
10
- <body>
11
- <main class="p-20">
12
- <%= yield %>
13
- </main>
14
- </body>
15
- </html>
data/config/routes.rb DELETED
@@ -1,3 +0,0 @@
1
- Vitrail::Engine.routes.draw do
2
- mount Lookbook::Engine, at: "/"
3
- end