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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a9e00352719f7011e1f4fac12ce610fb55d84fc87be0c8e39da70891f631870
4
- data.tar.gz: '08d1a6990747850f59015a3082773bc584ab3d18f6b2c013cae572d64c91db34'
3
+ metadata.gz: c29503364f2d78a7011469e035bb6b4424b3d7d9f31d0958a17fb21b035ee5e2
4
+ data.tar.gz: f8d06215ab6c04b51706504c1eb5156ae2e99d2a0543f63dee405d758b89cbae
5
5
  SHA512:
6
- metadata.gz: dad9eebed6add1a448d0659d2e7628b70eb33b5a84ded343035cda570cb61040607ee23b0a2828dbcb69fa8ab0265ac2c8e9bc2772228cde919de5dfb1aa060b
7
- data.tar.gz: cf38a223106d214c1742b0d0aa72af37b971e92cf45e442963cdc6206620c2d2cd9068f0a80ff1dd978745bf93ddf40cb7cbc03ef3ab2ddfa35961a245599281
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,3 @@
1
+ <button type="<%= @type %>" class="<%= [@classes, "velvet-button"].compact.join(" ") %>">
2
+ <%= content %>
3
+ </button>
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Velvet::ButtonComponent < ViewComponent::Base
4
+ def initialize(type:, classes:)
5
+ @type = type
6
+ @classes = classes
7
+ end
8
+ end
@@ -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,2 @@
1
+ require "velvet/version"
2
+ require "velvet/engine"
@@ -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.12
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/new_button.html.erb
87
- - app/components/velvet/new_button.rb
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/velvet_kit.rb
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>
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class Velvet::NewButton < ViewComponent::Base
4
- end
data/lib/velvet_kit.rb DELETED
@@ -1,5 +0,0 @@
1
- class VelvetKit
2
- def self.hello_world!
3
- "Hello World!"
4
- end
5
- end