bullet_train-themes-tailwind_css 1.3.21 → 1.3.22

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: ed940b0354c400ad658928a163a605df0da5e2a1a5d0f65e7e88ee188bb8220f
4
- data.tar.gz: ea8a85b41537409a80a083b453cd667a98aafadf1b128a5f5ee9bf130e1894cc
3
+ metadata.gz: 8260e46ee40b7fa979c95e621ed3a0d72122d38b31c5b9652c6dc332e81ce50a
4
+ data.tar.gz: efad264fe7c3a3cce6bcf05656cca412d6a4c47e67b3e95a7524ee2ad22713c8
5
5
  SHA512:
6
- metadata.gz: 937d4dfd38fa198a9926c1b40f09efd201fb507d2b194b68e55c2eb5f036db4291e35893190ef947a4828109ae40f19e09fb27a2fada12db66d48ab80ff2c654
7
- data.tar.gz: 6355afbfe16b23410a27bba598c0f8754abae7abca3b16a06c0982b28f79706cb8f22e8f04e5431aa22e43628decdd3c46c22eb71d3366208d68c7f840685ba5
6
+ metadata.gz: 5c6fc5a377933b2989b2363b5728a2a9cc07b05b3a39911c914e15e0959bdb10efcb53088676f007d112eba81b3cc48eae99e8c71fb0d9244ba464218637e64f
7
+ data.tar.gz: cfb38d0f9bcadeb21705db8bcff6d4ee1518f6fe8509d400207154c6dc4ad983fe6d1f091962a9f798df69c05ac1ed65464bcfdecfa166061d602eb61b5a4949
@@ -0,0 +1,89 @@
1
+ <% yield %>
2
+
3
+ <%
4
+ form ||= current_fields_form
5
+ options ||= {}
6
+ other_options ||= {}
7
+ id_of_dependent_fields_frame = form.field_id(method, :dependent_fields)
8
+ %>
9
+
10
+ <%= form.fields_for(method) do |address_form| %>
11
+ <% with_field_settings form: address_form do %>
12
+
13
+ <% # For self-updating the fields in the turbo_frame further down %>
14
+ <% accept_query_string_override_for(address_form, :country_id) %>
15
+
16
+ <%= render 'shared/fields/super_select',
17
+ method: :country_id,
18
+ choices: populate_country_options,
19
+ options: {include_blank: true},
20
+ other_options: {search: true, wrapper_class: "col-span-2"},
21
+ html_options: {data: {}},
22
+ wrapper_options: {
23
+ data: {
24
+ 'controller': "dependable",
25
+ 'action': '$change->dependable#updateDependents',
26
+ 'dependable-dependents-selector-value': "##{id_of_dependent_fields_frame}"
27
+ }
28
+ }
29
+ %>
30
+
31
+ <%= render 'shared/fields/text_field', method: :address_one %>
32
+ <%= render 'shared/fields/text_field', method: :address_two %>
33
+
34
+ <div class="grid grid-cols-1 gap-y gap-x sm:grid-cols-3">
35
+ <div class="sm:col-span-1">
36
+ <%= render 'shared/fields/text_field', method: :city,
37
+ other_options: {wrapper_class: "col-span-2 lg:col-span-1"}
38
+ %>
39
+ </div>
40
+ <div class="sm:col-span-2">
41
+ <%= turbo_frame_tag id_of_dependent_fields_frame,
42
+ class: "block space-y-5",
43
+ data: {
44
+ 'controller': "refresh-fields",
45
+ 'action': "dependable:updated->refresh-fields#updateFrameFromDependentField turbo:frame-render->refresh-fields#finishFrameUpdate",
46
+ 'refresh-fields-loading-class': 'opacity-60'
47
+ } do
48
+ %>
49
+
50
+ <div class="grid grid-cols-1 gap-y gap-x sm:grid-cols-2">
51
+ <div class="sm:col-span-1">
52
+ <%= render 'shared/fields/super_select',
53
+ method: :region_id,
54
+ choices: populate_region_options(address_form),
55
+ options: {include_blank: true },
56
+ other_options: {
57
+ search: true,
58
+ wrapper_class: "col-span-2 lg:col-span-1",
59
+ label: admin_division_label_for(address_form)
60
+ },
61
+ html_options: {
62
+ disabled: address_form.object.country_id.nil?,
63
+ data: {
64
+ "refresh-fields-target": "field"
65
+ }
66
+ }
67
+ %>
68
+ </div>
69
+
70
+ <div class="sm:col-span-1">
71
+ <%= render 'shared/fields/text_field', method: :postal_code,
72
+ options: {
73
+ data: {
74
+ "refresh-fields-target": "field"
75
+ }
76
+ },
77
+ other_options: {
78
+ wrapper_class: "col-span-2 lg:col-span-1",
79
+ label: postal_code_label_for(address_form)
80
+ }
81
+ %>
82
+ </div>
83
+ </div>
84
+
85
+ <% end %>
86
+ </div>
87
+ </div>
88
+ <% end %>
89
+ <% end %>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module TailwindCss
4
- VERSION = "1.3.21"
4
+ VERSION = "1.3.22"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes-tailwind_css
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.21
4
+ version: 1.3.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-31 00:00:00.000000000 Z
11
+ date: 2023-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -82,6 +82,7 @@ files:
82
82
  - app/views/themes/tailwind_css/attributes/_code.html.erb
83
83
  - app/views/themes/tailwind_css/attributes/_file.erb
84
84
  - app/views/themes/tailwind_css/attributes/_files.erb
85
+ - app/views/themes/tailwind_css/fields/_address_field.html.erb
85
86
  - app/views/themes/tailwind_css/fields/_buttons.html.erb
86
87
  - app/views/themes/tailwind_css/fields/_cloudinary_image.html.erb
87
88
  - app/views/themes/tailwind_css/fields/_color_picker.html.erb