playbook_ui 13.21.0.pre.alpha.PLAY12582474 → 13.21.0.pre.alpha.PLAY12582515
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_advanced_table/table_body.rb +1 -1
- data/app/pb_kits/playbook/pb_avatar/avatar.rb +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +9 -9
- data/app/pb_kits/playbook/pb_button/button.rb +5 -5
- data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +10 -10
- data/app/pb_kits/playbook/pb_currency/currency.rb +4 -4
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +1 -2
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +3 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +8 -7
- data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +1 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.html.erb +7 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.jsx +41 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +1 -2
- data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +3 -3
- data/app/pb_kits/playbook/pb_docs/kit_example.rb +1 -1
- data/app/pb_kits/playbook/pb_form/form.rb +4 -4
- data/app/pb_kits/playbook/pb_gauge/gauge.rb +9 -9
- data/app/pb_kits/playbook/pb_home_address_street/home_address_street.rb +17 -17
- data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb +0 -2
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +9 -9
- data/app/pb_kits/playbook/pb_list/list.rb +0 -2
- data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +4 -4
- data/app/pb_kits/playbook/pb_passphrase/passphrase.rb +6 -6
- data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +8 -8
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +8 -8
- data/app/pb_kits/playbook/pb_select/select.rb +6 -6
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +1 -1
- data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +1 -1
- data/app/pb_kits/playbook/pb_stat_value/stat_value.rb +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +0 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +5 -1
- data/app/pb_kits/playbook/pb_text_input/text_input.rb +9 -8
- data/app/pb_kits/playbook/pb_text_input/text_input.test.js +1 -1
- data/app/pb_kits/playbook/pb_treemap_chart/treemap_chart.rb +6 -6
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +8 -8
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/forms/builder/action_area.rb +2 -2
- data/lib/playbook/forms/builder/checkbox_field.rb +2 -2
- data/lib/playbook/forms/builder/collection_select_field.rb +1 -1
- data/lib/playbook/forms/builder/date_picker_field.rb +1 -1
- data/lib/playbook/forms/builder/form_field_builder.rb +1 -1
- data/lib/playbook/forms/builder/intl_telephone_field.rb +1 -1
- data/lib/playbook/forms/builder/multi_level_select_field.rb +1 -1
- data/lib/playbook/forms/builder/select_field.rb +1 -1
- data/lib/playbook/forms/builder/typeahead_field.rb +1 -1
- data/lib/playbook/kit_base.rb +2 -2
- data/lib/playbook/pb_doc_helper.rb +5 -5
- data/lib/playbook/pb_forms_helper.rb +1 -1
- data/lib/playbook/props/percentage.rb +2 -2
- data/lib/playbook/props.rb +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +32 -34
@@ -13,12 +13,12 @@ module Playbook
|
|
13
13
|
props[:type] ||= "submit"
|
14
14
|
props[:text] ||= value || submit_default_value
|
15
15
|
|
16
|
-
button(value, props:
|
16
|
+
button(value, props:)
|
17
17
|
end
|
18
18
|
|
19
19
|
def button(_value = nil, props:)
|
20
20
|
view_context.content_tag(:li) do
|
21
|
-
view_context.pb_rails("button", props:
|
21
|
+
view_context.pb_rails("button", props:)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
@@ -18,11 +18,11 @@ module Playbook
|
|
18
18
|
|
19
19
|
if props[:label]
|
20
20
|
@template.pb_rails("caption", props: { text: label_text, margin_bottom: "xs" }) +
|
21
|
-
@template.pb_rails("checkbox", props:
|
21
|
+
@template.pb_rails("checkbox", props:) do
|
22
22
|
input
|
23
23
|
end
|
24
24
|
else
|
25
|
-
@template.pb_rails("checkbox", props:
|
25
|
+
@template.pb_rails("checkbox", props:) do
|
26
26
|
input
|
27
27
|
end
|
28
28
|
end
|
@@ -10,7 +10,7 @@ module Playbook
|
|
10
10
|
html_options[:required] = "required" if props[:required]
|
11
11
|
input = super(name, collection, value_method, text_method, options, html_options)
|
12
12
|
|
13
|
-
@template.pb_rails("select", props:
|
13
|
+
@template.pb_rails("select", props:) do
|
14
14
|
input
|
15
15
|
end
|
16
16
|
end
|
data/lib/playbook/kit_base.rb
CHANGED
@@ -11,11 +11,11 @@ module Playbook
|
|
11
11
|
examples = examples.first(1) if limit_examples
|
12
12
|
examples.map do |example|
|
13
13
|
pb_rails "docs/kit_example", props: {
|
14
|
-
kit
|
14
|
+
kit:,
|
15
15
|
example_title: example.values.first,
|
16
16
|
example_key: example.keys.first,
|
17
|
-
show_code
|
18
|
-
type
|
17
|
+
show_code:,
|
18
|
+
type:,
|
19
19
|
dark: dark_mode,
|
20
20
|
}
|
21
21
|
end.join.yield_self(&method(:raw))
|
@@ -70,10 +70,10 @@ module Playbook
|
|
70
70
|
def render_pb_doc_kit(kit, type, limit_examples, code = true, dark_mode = false)
|
71
71
|
title = pb_doc_render_clickable_title(kit, type)
|
72
72
|
ui = raw("<div class='pb--docItem-ui'>
|
73
|
-
#{pb_kit(kit
|
73
|
+
#{pb_kit(kit:, type:, show_code: code, limit_examples:, dark_mode:)}</div>")
|
74
74
|
title + ui
|
75
75
|
end
|
76
|
-
|
76
|
+
# rubocop:enable Style/OptionalBooleanParameter
|
77
77
|
|
78
78
|
private
|
79
79
|
|
data/lib/playbook/props.rb
CHANGED
@@ -48,7 +48,7 @@ module Playbook
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def prop(name, type: Playbook::Props::String, **options)
|
51
|
-
self.props = props.merge(name => type.new(**options.merge(name
|
51
|
+
self.props = props.merge(name => type.new(**options.merge(name:, kit: self)))
|
52
52
|
|
53
53
|
define_method(name) { prop(name) }
|
54
54
|
end
|
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.21.0.pre.alpha.
|
4
|
+
version: 13.21.0.pre.alpha.PLAY12582515
|
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-03-
|
12
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -18,6 +18,9 @@ dependencies:
|
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 6.1.7.7
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 7.0.8
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -25,6 +28,9 @@ dependencies:
|
|
25
28
|
- - ">="
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: 6.1.7.7
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 7.0.8
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: actionview
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -32,6 +38,9 @@ dependencies:
|
|
32
38
|
- - ">="
|
33
39
|
- !ruby/object:Gem::Version
|
34
40
|
version: 6.1.7.7
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 7.0.8
|
35
44
|
type: :runtime
|
36
45
|
prerelease: false
|
37
46
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -39,6 +48,9 @@ dependencies:
|
|
39
48
|
- - ">="
|
40
49
|
- !ruby/object:Gem::Version
|
41
50
|
version: 6.1.7.7
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 7.0.8
|
42
54
|
- !ruby/object:Gem::Dependency
|
43
55
|
name: activesupport
|
44
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -46,6 +58,9 @@ dependencies:
|
|
46
58
|
- - ">="
|
47
59
|
- !ruby/object:Gem::Version
|
48
60
|
version: 6.1.7.7
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: 7.0.8
|
49
64
|
type: :runtime
|
50
65
|
prerelease: false
|
51
66
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -53,6 +68,9 @@ dependencies:
|
|
53
68
|
- - ">="
|
54
69
|
- !ruby/object:Gem::Version
|
55
70
|
version: 6.1.7.7
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: 7.0.8
|
56
74
|
- !ruby/object:Gem::Dependency
|
57
75
|
name: react-rails
|
58
76
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,6 +148,9 @@ dependencies:
|
|
130
148
|
- - ">="
|
131
149
|
- !ruby/object:Gem::Version
|
132
150
|
version: 6.1.7.7
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 7.0.8
|
133
154
|
type: :development
|
134
155
|
prerelease: false
|
135
156
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -137,6 +158,9 @@ dependencies:
|
|
137
158
|
- - ">="
|
138
159
|
- !ruby/object:Gem::Version
|
139
160
|
version: 6.1.7.7
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: 7.0.8
|
140
164
|
- !ruby/object:Gem::Dependency
|
141
165
|
name: rspec-html-matchers
|
142
166
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,16 +199,16 @@ dependencies:
|
|
175
199
|
name: rubocop
|
176
200
|
requirement: !ruby/object:Gem::Requirement
|
177
201
|
requirements:
|
178
|
-
- -
|
202
|
+
- - ">="
|
179
203
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
204
|
+
version: '0'
|
181
205
|
type: :development
|
182
206
|
prerelease: false
|
183
207
|
version_requirements: !ruby/object:Gem::Requirement
|
184
208
|
requirements:
|
185
|
-
- -
|
209
|
+
- - ">="
|
186
210
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
211
|
+
version: '0'
|
188
212
|
- !ruby/object:Gem::Dependency
|
189
213
|
name: rubocop-performance
|
190
214
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,34 +223,6 @@ dependencies:
|
|
199
223
|
- - "~>"
|
200
224
|
- !ruby/object:Gem::Version
|
201
225
|
version: 1.11.5
|
202
|
-
- !ruby/object:Gem::Dependency
|
203
|
-
name: spring
|
204
|
-
requirement: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - '='
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: 2.0.2
|
209
|
-
type: :development
|
210
|
-
prerelease: false
|
211
|
-
version_requirements: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - '='
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: 2.0.2
|
216
|
-
- !ruby/object:Gem::Dependency
|
217
|
-
name: spring-watcher-listen
|
218
|
-
requirement: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - '='
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 2.0.1
|
223
|
-
type: :development
|
224
|
-
prerelease: false
|
225
|
-
version_requirements: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - '='
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: 2.0.1
|
230
226
|
- !ruby/object:Gem::Dependency
|
231
227
|
name: tzinfo-data
|
232
228
|
requirement: !ruby/object:Gem::Requirement
|
@@ -832,6 +828,8 @@ files:
|
|
832
828
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.html.erb
|
833
829
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.jsx
|
834
830
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.md
|
831
|
+
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.html.erb
|
832
|
+
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.jsx
|
835
833
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.html.erb
|
836
834
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.jsx
|
837
835
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_month_and_year.html.erb
|