velvet-components 0.0.12 → 0.0.14
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 +4 -4
- data/app/assets/stylesheets/velvet/_button.scss +3 -0
- data/app/components/velvet/button_component.html.erb +3 -0
- data/app/components/velvet/button_component.rb +8 -0
- data/lib/velvet/engine.rb +16 -0
- data/lib/velvet/velvet.rb +2 -0
- data/lib/velvet/version.rb +15 -0
- metadata +7 -4
- data/app/components/velvet/new_button.html.erb +0 -1
- data/app/components/velvet/new_button.rb +0 -4
- data/lib/velvet_kit.rb +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c29503364f2d78a7011469e035bb6b4424b3d7d9f31d0958a17fb21b035ee5e2
|
|
4
|
+
data.tar.gz: f8d06215ab6c04b51706504c1eb5156ae2e99d2a0543f63dee405d758b89cbae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf686113d88b1b28583a620bf3e2c1dad239ee0cc71f4e111874d8665de3939e0943a5f912c1b9c0a9c3776120eb2fa1834685f7ea70cdf9f76e842c5a7297f0
|
|
7
|
+
data.tar.gz: bfec93b093ccd8f3cc7082a53f551c6f6e58a8c78539047d0a8e9cbc40e881cb4b5df31e8a1a971e575f34018ba94d71c030e34ce85eb414aaa4e22931bbbc15
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
.velvet-button {
|
|
2
|
+
@apply inline-flex items-center justify-center gap-2 px-4 py-2 text-sm font-medium text-white bg-blue-600 border border-transparent rounded-md shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none;
|
|
3
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
class Velvet
|
|
2
|
+
class Engine < ::Rails::Engine
|
|
3
|
+
isolate_namespace Velvet if defined?(Rails)
|
|
4
|
+
|
|
5
|
+
config.autoload_paths = %W[
|
|
6
|
+
#{root}/lib
|
|
7
|
+
]
|
|
8
|
+
|
|
9
|
+
config.eager_load_paths = %W[
|
|
10
|
+
#{root}/app/components
|
|
11
|
+
#{root}/app/forms
|
|
12
|
+
#{root}/app/helpers
|
|
13
|
+
#{root}/app/lib
|
|
14
|
+
]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# :nocov:
|
|
4
|
+
module Velvet
|
|
5
|
+
module VERSION
|
|
6
|
+
MAJOR = 0
|
|
7
|
+
MINOR = 46
|
|
8
|
+
PATCH = 0
|
|
9
|
+
|
|
10
|
+
STRING = [ MAJOR, MINOR, PATCH ].join(".")
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
puts Velvet::VERSION::STRING if __FILE__ == $PROGRAM_NAME
|
|
15
|
+
# rubocop:enable Rails/Output
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: velvet-components
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Github Open Source
|
|
@@ -82,9 +82,10 @@ files:
|
|
|
82
82
|
- app/assets/builds/application.js.map
|
|
83
83
|
- app/assets/builds/tailwind.css
|
|
84
84
|
- app/assets/stylesheets/application.css
|
|
85
|
+
- app/assets/stylesheets/velvet/_button.scss
|
|
85
86
|
- app/assets/tailwind/application.css
|
|
86
|
-
- app/components/velvet/
|
|
87
|
-
- app/components/velvet/
|
|
87
|
+
- app/components/velvet/button_component.html.erb
|
|
88
|
+
- app/components/velvet/button_component.rb
|
|
88
89
|
- app/controllers/application_controller.rb
|
|
89
90
|
- app/helpers/application_helper.rb
|
|
90
91
|
- app/javascript/application.js
|
|
@@ -124,7 +125,9 @@ files:
|
|
|
124
125
|
- config/recurring.yml
|
|
125
126
|
- config/routes.rb
|
|
126
127
|
- config/storage.yml
|
|
127
|
-
- lib/
|
|
128
|
+
- lib/velvet/engine.rb
|
|
129
|
+
- lib/velvet/velvet.rb
|
|
130
|
+
- lib/velvet/version.rb
|
|
128
131
|
homepage: https://github.com/velvetkit/velvet_components
|
|
129
132
|
licenses:
|
|
130
133
|
- MIT
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<div>Add Velvet::NewButton template here</div>
|