formatic 0.2.0 → 0.2.2

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: b769e11f1dd433a6e012b56c44e9d53656e7695a5be8993f155f24dbac724972
4
- data.tar.gz: f754250dfe1154a554bb436e6f60bf9033fcf0fdfce32fb1688d51a206795936
3
+ metadata.gz: ad573a3e445fc6323450aaffcfc959d2ed7cf15052a1759ae6c56bfb40ba5cd2
4
+ data.tar.gz: 030d14e89f4b0bd62873db366a22a6c01307ce51c1569c35838cc5978572b1ff
5
5
  SHA512:
6
- metadata.gz: 0e390afe0bd8c0a5ca4336049a4eb9ab90ea0655e1a1e4ef161ca63598276b27db22a8e89e8df741327c6a2af352abeb00667193000b2b57a2202a0aaab2986d
7
- data.tar.gz: 10cf8c0c85ce7178117c014ab2523a933d47e2b84b97a09b63d0918e3a36d60b399755798ab659f489f0fa0197b5b1f2d27ca5a70bbc13e659017fc7d28536a7
6
+ metadata.gz: 1beda60f837b58ae0a46a533dbfd226902b98c1fe21bb7406df5424fa4214da564a5928bf1c67de1f45883f3e52b9156dadb7c20c6b9c947edc99d78fc6856c8
7
+ data.tar.gz: c7419d85916e603a9abbf4d931125ffb453bd1b3b915e66d5f75e34ba8601f20b1b01d7d2d5f9f6ee4970e99c6ae2ae1c21a2ce7b43ee827c0755b3603f71cd3
@@ -5,6 +5,8 @@
5
5
  // Having grid in the wrapper and the <label>
6
6
  // makes the caption width 100% (increases the click area)
7
7
  display: grid
8
+ height: 100%
9
+ align-content: center
8
10
  +font-size.default
9
11
 
10
12
  label
@@ -47,6 +47,18 @@
47
47
 
48
48
  +theme.dark
49
49
  .s-formatic
50
+ input[type="email"],
51
+ input[type="number"],
52
+ input[type="password"],
53
+ input[type="search"],
54
+ input[type="tel"],
55
+ input[type="text"],
56
+ input[type="url"],
57
+ textarea,
58
+ select,
50
59
  textarea
51
- background-color: colors.$granite-gray
60
+ background-color: colors.$black
52
61
  color: colors.$white
62
+
63
+ select
64
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"32\" height=\"24\" viewBox=\"0 0 32 24\"><polygon points=\"0,0 32,0 16,24\" style=\"fill: rgb(255, 255, 255)\"></polygon></svg>")
@@ -51,7 +51,7 @@ module Formatic
51
51
  end
52
52
 
53
53
  def options_for_day
54
- options_for_select collection_for_day, day_value
54
+ options_for_select collection_for_day, f.object.public_send(attribute_name)&.day
55
55
  end
56
56
 
57
57
  def options_for_month
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Formatic
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - halo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-22 00:00:00.000000000 Z
11
+ date: 2025-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview