playbook_ui 13.21.0.pre.alpha.PLAY12582474 → 13.21.0.pre.alpha.PLAY12582514
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 +16 -42
@@ -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.PLAY12582514
|
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
|
@@ -17,42 +17,42 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 7.0.8
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 7.0.8
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: actionview
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 7.0.8
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 7.0.8
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: activesupport
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: 7.0.8
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
55
|
+
version: 7.0.8
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: react-rails
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,14 +129,14 @@ dependencies:
|
|
129
129
|
requirements:
|
130
130
|
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
132
|
+
version: 7.0.8
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
139
|
+
version: 7.0.8
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: rspec-html-matchers
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,16 +175,16 @@ dependencies:
|
|
175
175
|
name: rubocop
|
176
176
|
requirement: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: '0'
|
181
181
|
type: :development
|
182
182
|
prerelease: false
|
183
183
|
version_requirements: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - ">="
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: '0'
|
188
188
|
- !ruby/object:Gem::Dependency
|
189
189
|
name: rubocop-performance
|
190
190
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,34 +199,6 @@ dependencies:
|
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
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
202
|
- !ruby/object:Gem::Dependency
|
231
203
|
name: tzinfo-data
|
232
204
|
requirement: !ruby/object:Gem::Requirement
|
@@ -832,6 +804,8 @@ files:
|
|
832
804
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.html.erb
|
833
805
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.jsx
|
834
806
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.md
|
807
|
+
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.html.erb
|
808
|
+
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.jsx
|
835
809
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.html.erb
|
836
810
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.jsx
|
837
811
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_month_and_year.html.erb
|