tybo 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44038010e0e9d54bf36dd444aa448f4d8896971d3063007fd6ae9f7f07e3d13c
4
- data.tar.gz: 2a4b09953926cf89540b0f5c73bce9e7c9d9abc461deb42e2a41785e0dc07666
3
+ metadata.gz: e86b0bc5bfff3202fc50525f670383e28546495d881c6dc2f5b0bfc3f2d212f5
4
+ data.tar.gz: cf87bafb74c95d982eaa0e05d39b1e5e7f44228ffa7431d5b141fc43c111404f
5
5
  SHA512:
6
- metadata.gz: ad7c27eafab3934de5b3dba9869eb9b47627cc66754dc3cf57cd78ced19e641d4fb805e66599141796d5e379c18d6480c8cf5f4a8461a83a38dff2ea1dadbe52
7
- data.tar.gz: 44cf9f73f175fd796c8809b9dd6c640f5d6e4394251ee2b889a93912d6a0ff25e6b6d95e9a428f78ba6bef9b8f0c68900a679aa3f4b37caf4d80de4012c7a022
6
+ metadata.gz: 1c765911181b4d1a6421ca442bc3d19a30e025879b8587c727478d5af1c577f5909ba4eb9acdab641ab032d5834a69514a1791d482885c57ba6e8a74c090f95e
7
+ data.tar.gz: d769192ddbca72af02a3ddd315cf40e39c6a9b8c56bc3334022149028bf2dbd28498e098de118f922f35954fcb020ce529d38464415c59a9de8a666a778bffaf
@@ -29,7 +29,7 @@
29
29
  </div>
30
30
  <% end %>
31
31
 
32
- <div class="px-4 bg-white sm:p-6 shadow sm:rounded-md">
32
+ <div class="px-4 py-5 bg-white space-y-6 sm:p-6 shadow sm:rounded-md">
33
33
  <%= content %>
34
34
  </div>
35
35
  </div>
@@ -1,9 +1,9 @@
1
- <div class="py-3 space-y-1 sm:space-y-2">
1
+ <div class="space-y-6 sm:space-y-5">
2
2
  <div>
3
3
  <h3 class="text-lg font-medium leading-6 text-gray-900"><%= @title %></h3>
4
4
  </div>
5
- <div>
6
- <div class="sm:items-start sm:gap-4 sm:border-t sm:border-gray-200">
5
+ <div class="space-y-6 sm:space-y-5">
6
+ <div class="sm:items-start sm:gap-4 sm:border-t sm:border-gray-200 sm:pt-5">
7
7
  <%= content %>
8
8
  </div>
9
9
  </div>
@@ -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
@@ -10,6 +10,7 @@
10
10
  { label: I18n.t('bo.<%= class_name.underscore %>.others').capitalize, path: <%= "#{options[:namespace]}_#{class_name.pluralize.underscore}_path"%> },
11
11
  current_page
12
12
  ]) %>
13
+ <br>
13
14
  <%%= render "form", <%= class_name.underscore %>: @<%= class_name.underscore %> %>
14
15
  <%% end %>
15
16
  <%% end %>
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.2.3'
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.3
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-08-18 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
@@ -302,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
302
  - !ruby/object:Gem::Version
303
303
  version: '0'
304
304
  requirements: []
305
- rubygems_version: 3.4.10
305
+ rubygems_version: 3.0.3.1
306
306
  signing_key:
307
307
  specification_version: 4
308
308
  summary: A tailwind custom admin engine for Ruby on Rails