tybo 0.2.3 → 0.2.5

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: d27bf8e81f35657e65b90453e9d094ccefe11c4c4576b8ce2f92ecba0ba984eb
4
+ data.tar.gz: 8355a21ba75c2c454b8906ccbfe0a442bd056a1990966ec20f979dc9d7e87b0e
5
5
  SHA512:
6
- metadata.gz: ad7c27eafab3934de5b3dba9869eb9b47627cc66754dc3cf57cd78ced19e641d4fb805e66599141796d5e379c18d6480c8cf5f4a8461a83a38dff2ea1dadbe52
7
- data.tar.gz: 44cf9f73f175fd796c8809b9dd6c640f5d6e4394251ee2b889a93912d6a0ff25e6b6d95e9a428f78ba6bef9b8f0c68900a679aa3f4b37caf4d80de4012c7a022
6
+ metadata.gz: 710803f23d84c52b36aca72ca47103aadeac1dd02ee4f6e8e776fa6d38f4b2aeb78041ebb9ef2a332eba8c1e4b8d8203085bd09cb393d5dd1fc6b5b51722a737
7
+ data.tar.gz: 449845d7dea7a1787053d550eba80eb6eae2a8fb78a619890ffacca702e0e969199e3c0acf7633901542f3dc138c988ee3ab96cbe6f6525780b55db8b2dee2c9
@@ -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-medium 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.5'
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.5
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