velvet-components 0.0.12 → 0.0.13

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: b0cfd84118d126071bfb0128305623d10dbb5beba4a50d21b43cf62a5997ebe6
4
+ data.tar.gz: 7c4e3734b69ac9aba7417544efbaa475af1aa9039bf1ef77c87bde438eb721b2
5
5
  SHA512:
6
- metadata.gz: dad9eebed6add1a448d0659d2e7628b70eb33b5a84ded343035cda570cb61040607ee23b0a2828dbcb69fa8ab0265ac2c8e9bc2772228cde919de5dfb1aa060b
7
- data.tar.gz: cf38a223106d214c1742b0d0aa72af37b971e92cf45e442963cdc6206620c2d2cd9068f0a80ff1dd978745bf93ddf40cb7cbc03ef3ab2ddfa35961a245599281
6
+ metadata.gz: 21faace757ec5d4a8ec41cdd5b913f6056b59043ceffaf0b73db1795ad193b7d3f47ad838da287b3950786b390be7a864149cbebf016a03d255c3756d7ef3bf2
7
+ data.tar.gz: fd451cf3e84b1b514942d88200a950c9b0fdea0074532d679bc274d747477b8a9a4cc315e190b861fc37eb6807fb423846e298e0b3c236c33f688280f01a9231
@@ -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,5 @@
1
+ class Velvet
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Velvet if defined?(Rails)
4
+ end
5
+ end
@@ -0,0 +1,2 @@
1
+ require "velvet/version"
2
+ require "velvet/engine"
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.13
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,6 +125,8 @@ files:
124
125
  - config/recurring.yml
125
126
  - config/routes.rb
126
127
  - config/storage.yml
128
+ - lib/velvet/engine.rb
129
+ - lib/velvet/velvet.rb
127
130
  - lib/velvet_kit.rb
128
131
  homepage: https://github.com/velvetkit/velvet_components
129
132
  licenses:
@@ -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