playbook_ui 13.28.0.pre.alpha.PBNTR296dropdownwithform2941 → 13.28.0.pre.alpha.PLAY1209fixformgroupdatepickerborderradiusreact2953
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +0 -10
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -2
- data/lib/playbook/forms/builder.rb +0 -1
- data/lib/playbook/version.rb +1 -1
- metadata +2 -3
- data/lib/playbook/forms/builder/dropdown_field.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf1ef5aa4f13d490c2feff561c4b8c1af473211075188cfe1e49fa4615f03d25
|
4
|
+
data.tar.gz: 16aaf7c3503105d1cb8bdb65ab004d17152e7b23e84dc41ab53749544657316c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be40f2d6569f259456c1ef342e1b42afd680f62b9575d4e19d20e44624354abc48f238f4925ac8b4f21780362efdd4612840fc4a238f010802d094b1a53abbe4
|
7
|
+
data.tar.gz: 72d60c35ef30ddb6f3872c0ec52d7eeff032b1ea9fbd0bce34f76b93a7800af56e0a2a14f5470b8ecd69c9bb3fe443946a06e7f306361a53ee72c7b4f52be9dd
|
@@ -13,15 +13,6 @@
|
|
13
13
|
]
|
14
14
|
%>
|
15
15
|
|
16
|
-
<%
|
17
|
-
example_dropdown_options = [
|
18
|
-
{ label: 'United States', value: 'United States', id: 'us' },
|
19
|
-
{ label: 'Canada', value: 'Canada', id: 'ca' },
|
20
|
-
{ label: 'Pakistan', value: 'Pakistan', id: 'pk' },
|
21
|
-
]
|
22
|
-
|
23
|
-
%>
|
24
|
-
|
25
16
|
<%= pb_form_with(scope: :example, url: "", method: :get) do |form| %>
|
26
17
|
<%= form.typeahead :example_user, props: { data: { typeahead_example1: true, user: {} }, placeholder: "Search for a user" } %>
|
27
18
|
<%= form.text_field :example_text_field, props: { label: true } %>
|
@@ -32,7 +23,6 @@
|
|
32
23
|
<%= form.password_field :example_password_field, props: { label: true } %>
|
33
24
|
<%= form.url_field :example_url_field, props: { label: true } %>
|
34
25
|
<%= form.text_area :example_text_area, props: { label: true } %>
|
35
|
-
<%= form.dropdown_field :example_dropdown, props: { label: true, options: example_dropdown_options } %>
|
36
26
|
<%= form.select :example_select, [ ["Yes", 1], ["No", 2] ], props: { label: true } %>
|
37
27
|
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
38
28
|
<%= form.check_box :example_checkbox,
|
@@ -107,7 +107,7 @@
|
|
107
107
|
}
|
108
108
|
|
109
109
|
& > [class^=pb_date_picker_kit]:not(:last-child) {
|
110
|
-
.
|
110
|
+
.input_wrapper input, [class^=pb_text_input_kit] .date_picker_input_wrapper .flatpickr-wrapper {
|
111
111
|
border-bottom-right-radius: 0;
|
112
112
|
border-top-right-radius: 0;
|
113
113
|
border-right-width: 0;
|
@@ -115,7 +115,7 @@
|
|
115
115
|
}
|
116
116
|
|
117
117
|
& > [class^=pb_date_picker_kit]:not(:first-child) {
|
118
|
-
.
|
118
|
+
.input_wrapper input, [class^=pb_text_input_kit] .date_picker_input_wrapper .flatpickr-wrapper {
|
119
119
|
border-bottom-left-radius: 0;
|
120
120
|
border-top-left-radius: 0;
|
121
121
|
}
|
@@ -13,7 +13,6 @@ module Playbook
|
|
13
13
|
require_relative "builder/intl_telephone_field"
|
14
14
|
require_relative "builder/multi_level_select_field"
|
15
15
|
require_relative "builder/phone_number_field"
|
16
|
-
require_relative "builder/dropdown_field"
|
17
16
|
|
18
17
|
prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
|
19
18
|
prepend(FormFieldBuilder.new(:number_field, kit_name: "text_input"))
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.28.0.pre.alpha.
|
4
|
+
version: 13.28.0.pre.alpha.PLAY1209fixformgroupdatepickerborderradiusreact2953
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-05-
|
12
|
+
date: 2024-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -2930,7 +2930,6 @@ files:
|
|
2930
2930
|
- lib/playbook/forms/builder/checkbox_field.rb
|
2931
2931
|
- lib/playbook/forms/builder/collection_select_field.rb
|
2932
2932
|
- lib/playbook/forms/builder/date_picker_field.rb
|
2933
|
-
- lib/playbook/forms/builder/dropdown_field.rb
|
2934
2933
|
- lib/playbook/forms/builder/form_field_builder.rb
|
2935
2934
|
- lib/playbook/forms/builder/intl_telephone_field.rb
|
2936
2935
|
- lib/playbook/forms/builder/multi_level_select_field.rb
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Playbook
|
4
|
-
module Forms
|
5
|
-
class Builder
|
6
|
-
def dropdown_field(name, props: {})
|
7
|
-
props[:name] = name
|
8
|
-
props[:margin_bottom] = "sm"
|
9
|
-
props[:label] = @template.label(@object_name, name) if props[:label] == true
|
10
|
-
@template.pb_rails("dropdown", props: props)
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|