tybo 0.2.2 → 0.2.4

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: 99b6c52df41ad55c9a50c8f5e76dbcdf18972f4a417360ac5902f3cb203842ad
4
- data.tar.gz: f4f9ef0ee8f3029e925b5158714b44776ac4d7ff6234fcf9328652640c137e04
3
+ metadata.gz: e86b0bc5bfff3202fc50525f670383e28546495d881c6dc2f5b0bfc3f2d212f5
4
+ data.tar.gz: cf87bafb74c95d982eaa0e05d39b1e5e7f44228ffa7431d5b141fc43c111404f
5
5
  SHA512:
6
- metadata.gz: 42012ad58801a47d31b21905d1036b55dee575ca37f4540cb34dfb8080b004499b5da05d096ab72e5b685c3db847f3dc068991a26a23dd06bd098a045badbdcc
7
- data.tar.gz: c163a4ddb426ffcc1f886289222a78990f08adb3b2db512b35385a2c58c9b8cb73faf3a69fc478e8e14b730a5b469182c143073f06a4083622626ae81e2b9fe4
6
+ metadata.gz: 1c765911181b4d1a6421ca442bc3d19a30e025879b8587c727478d5af1c577f5909ba4eb9acdab641ab032d5834a69514a1791d482885c57ba6e8a74c090f95e
7
+ data.tar.gz: d769192ddbca72af02a3ddd315cf40e39c6a9b8c56bc3334022149028bf2dbd28498e098de118f922f35954fcb020ce529d38464415c59a9de8a666a778bffaf
@@ -1,6 +1,6 @@
1
1
  <div class="my-5">
2
- <label class="block text-sm font-medium text-gray-700 string required text-sm font-medium text-gray-600">
2
+ <label class="block text-sm text-gray-700 font-mediu string required">
3
3
  <%= @label %>
4
4
  </label>
5
- <%= @form.datetime_field @field, class: "mt-1 block border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-tybo-500 focus:border-tybo-500 sm:text-sm string required" %>
5
+ <%= @form.datetime_field @field, class: "mt-1 block border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-tybo-500 focus:border-tybo-500 sm:text-sm string required", disabled: @disabled %>
6
6
  </div>
@@ -2,11 +2,12 @@
2
2
 
3
3
  module Input
4
4
  class DatetimeComponent < ViewComponent::Base
5
- def initialize(item:, field:, form:)
5
+ def initialize(item:, field:, form:, disabled: false)
6
6
  @item = item
7
7
  @field = field
8
8
  @form = form
9
9
  @label = label
10
+ @disabled = disabled
10
11
  end
11
12
 
12
13
  def label
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tybo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Delpierre
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-06-07 00:00:00.000000000 Z
12
+ date: 2023-09-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails