simple_form-theme 0.1.3 → 0.1.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: 4e9ef112e8336bcefad7f46954411a7aa154bca3b05886aed6420e322818ead4
4
- data.tar.gz: 0e7bf9b15e1ec7674bdd266bc1b0bde0d10f10338111cf48344981d8423ffccc
3
+ metadata.gz: e618469f92118637344e4871ff50df80758d5a247539340e717ea5b1d30b8e81
4
+ data.tar.gz: 755fe9c11a533e154b42a6fbbb400bb36fe17a3000531043c7d01a9cb9e16d78
5
5
  SHA512:
6
- metadata.gz: 0a5b0bf8a3e6db84204c357e383a19375251b001055797aaf2196a20e14d43a557e016cf2161f69355a65b59efdf3785ac2a7a2e0aff011b9d9d24f50bebdec9
7
- data.tar.gz: 1e0cfb0ce5820477683b9aa4915949e8c0ca992e610a1339b10dbbaa6162c3add99c68c65e71ed9ecefad1a7c6472e33bf049af4a3efeed1568141eaf0a2816f
6
+ metadata.gz: 7bd168b55e09f8b9fab8397c6a058098bca5f401eee8ad98d97016202e7c834d9df8fd4cb6894df4d5adb01f7ded2fe3d470f96ffb4b4fcf923cfccf0be65234
7
+ data.tar.gz: b7828d89e6aac779b28a3dd8a33f0b08b0ba4ba12c7b4a82252beab4a0232f88435532dd04cb583122f49a95e76eae94e20f60bfb7525b5aaf7818354110176f
@@ -108,6 +108,17 @@ SimpleForm.setup do |config|
108
108
  b.use :hint, wrap_with: { tag: 'small', class: 'help' }
109
109
  end
110
110
 
111
+ # bulma vertical textarea field
112
+ config.wrappers :vertical_text_form, tag: 'div', class: 'field' do |b|
113
+ b.use :html5
114
+ b.use :placeholder
115
+ b.optional :readonly
116
+ b.use :label, class: 'label'
117
+ b.use :input, class: 'textarea', wrap_with: { tag: 'div', class: 'control' }, error_class: 'is-danger', valid_class: 'is-success'
118
+ b.use :full_error, wrap_with: { tag: 'div', class: 'help is-danger' }
119
+ b.use :hint, wrap_with: { tag: 'small', class: 'form-text text-muted' }
120
+ end
121
+
111
122
  # The default wrapper to be used by the FormBuilder.
112
123
  config.default_wrapper = :vertical_form
113
124
 
@@ -121,6 +132,7 @@ SimpleForm.setup do |config|
121
132
  file: :vertical_file,
122
133
  radio_buttons: :vertical_collection,
123
134
  range: :vertical_range,
124
- time: :vertical_multi_select
135
+ time: :vertical_multi_select,
136
+ text: :vertical_text_form
125
137
  }
126
138
  end
@@ -1,5 +1,5 @@
1
1
  module SimpleForm
2
2
  module Theme
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Vasquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-07 00:00:00.000000000 Z
11
+ date: 2024-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails