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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +1 -1
  3. data/app/pb_kits/playbook/pb_avatar/avatar.rb +1 -1
  4. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +9 -9
  5. data/app/pb_kits/playbook/pb_button/button.rb +5 -5
  6. data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +10 -10
  7. data/app/pb_kits/playbook/pb_currency/currency.rb +4 -4
  8. data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +1 -2
  9. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +3 -0
  10. data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -1
  11. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +8 -7
  12. data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +1 -1
  13. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.html.erb +7 -0
  14. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.jsx +41 -0
  15. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +2 -0
  16. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -0
  17. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +1 -2
  18. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +3 -3
  19. data/app/pb_kits/playbook/pb_docs/kit_example.rb +1 -1
  20. data/app/pb_kits/playbook/pb_form/form.rb +4 -4
  21. data/app/pb_kits/playbook/pb_gauge/gauge.rb +9 -9
  22. data/app/pb_kits/playbook/pb_home_address_street/home_address_street.rb +17 -17
  23. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb +0 -2
  24. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +9 -9
  25. data/app/pb_kits/playbook/pb_list/list.rb +0 -2
  26. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +4 -4
  27. data/app/pb_kits/playbook/pb_passphrase/passphrase.rb +6 -6
  28. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +8 -8
  29. data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +8 -8
  30. data/app/pb_kits/playbook/pb_select/select.rb +6 -6
  31. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +1 -1
  32. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +1 -1
  33. data/app/pb_kits/playbook/pb_stat_value/stat_value.rb +1 -1
  34. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +0 -1
  35. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +5 -1
  36. data/app/pb_kits/playbook/pb_text_input/text_input.rb +9 -8
  37. data/app/pb_kits/playbook/pb_text_input/text_input.test.js +1 -1
  38. data/app/pb_kits/playbook/pb_treemap_chart/treemap_chart.rb +6 -6
  39. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +8 -8
  40. data/dist/playbook-rails.js +1 -1
  41. data/lib/playbook/forms/builder/action_area.rb +2 -2
  42. data/lib/playbook/forms/builder/checkbox_field.rb +2 -2
  43. data/lib/playbook/forms/builder/collection_select_field.rb +1 -1
  44. data/lib/playbook/forms/builder/date_picker_field.rb +1 -1
  45. data/lib/playbook/forms/builder/form_field_builder.rb +1 -1
  46. data/lib/playbook/forms/builder/intl_telephone_field.rb +1 -1
  47. data/lib/playbook/forms/builder/multi_level_select_field.rb +1 -1
  48. data/lib/playbook/forms/builder/select_field.rb +1 -1
  49. data/lib/playbook/forms/builder/typeahead_field.rb +1 -1
  50. data/lib/playbook/kit_base.rb +2 -2
  51. data/lib/playbook/pb_doc_helper.rb +5 -5
  52. data/lib/playbook/pb_forms_helper.rb +1 -1
  53. data/lib/playbook/props/percentage.rb +2 -2
  54. data/lib/playbook/props.rb +1 -1
  55. data/lib/playbook/version.rb +1 -1
  56. 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: 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: 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: props) do
21
+ @template.pb_rails("checkbox", props:) do
22
22
  input
23
23
  end
24
24
  else
25
- @template.pb_rails("checkbox", props: props) do
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: props) do
13
+ @template.pb_rails("select", props:) do
14
14
  input
15
15
  end
16
16
  end
@@ -28,7 +28,7 @@ module Playbook
28
28
  }
29
29
  )
30
30
 
31
- @template.pb_rails("date_picker", props: props) do
31
+ @template.pb_rails("date_picker", props:) do
32
32
  input
33
33
  end
34
34
  end
@@ -21,7 +21,7 @@ module Playbook
21
21
 
22
22
  input = super(name, **options, &block)
23
23
 
24
- @template.pb_rails(kit_name, props: props) do
24
+ @template.pb_rails(kit_name, props:) do
25
25
  input
26
26
  end
27
27
  end
@@ -5,7 +5,7 @@ module Playbook
5
5
  class Builder
6
6
  def intl_telephone(name, props: {})
7
7
  props[:name] = name
8
- @template.pb_rails("phone_number_input", props: props)
8
+ @template.pb_rails("phone_number_input", props:)
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module Playbook
5
5
  class Builder
6
6
  def multi_level_select(name, props: {})
7
7
  props[:name] = name
8
- @template.pb_rails("multi_level_select", props: props)
8
+ @template.pb_rails("multi_level_select", props:)
9
9
  end
10
10
  end
11
11
  end
@@ -10,7 +10,7 @@ module Playbook
10
10
  html_options[:required] = "required" if props[:required]
11
11
  input = super(name, choices, options, html_options, &block)
12
12
 
13
- @template.pb_rails("select", props: props) do
13
+ @template.pb_rails("select", props:) do
14
14
  input
15
15
  end
16
16
  end
@@ -5,7 +5,7 @@ module Playbook
5
5
  class Builder
6
6
  def typeahead(name, _options = {}, _html_options = {}, props: {})
7
7
  props[:name] = name
8
- @template.pb_rails("typeahead", props: props)
8
+ @template.pb_rails("typeahead", props:)
9
9
  end
10
10
  end
11
11
  end
@@ -86,8 +86,8 @@ module Playbook
86
86
 
87
87
  def data_attributes
88
88
  {
89
- data: data,
90
- aria: aria,
89
+ data:,
90
+ aria:,
91
91
  }.transform_keys { |key| key.to_s.gsub("_", "-") }
92
92
  end
93
93
  end
@@ -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: kit,
14
+ kit:,
15
15
  example_title: example.values.first,
16
16
  example_key: example.keys.first,
17
- show_code: show_code,
18
- type: 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: kit, type: type, show_code: code, limit_examples: limit_examples, dark_mode: dark_mode)}</div>")
73
+ #{pb_kit(kit:, type:, show_code: code, limit_examples:, dark_mode:)}</div>")
74
74
  title + ui
75
75
  end
76
- # rubocop:enable Style/OptionalBooleanParameter
76
+ # rubocop:enable Style/OptionalBooleanParameter
77
77
 
78
78
  private
79
79
 
@@ -27,7 +27,7 @@ module Playbook
27
27
  classname = ["pb-form", kwargs[:class]].join(" ")
28
28
  options = kwargs.merge(
29
29
  class: classname,
30
- data: data,
30
+ data:,
31
31
  builder: ::Playbook::Forms::Builder
32
32
  )
33
33
 
@@ -10,9 +10,9 @@ module Playbook
10
10
  private
11
11
 
12
12
  def numeric_in_range?(value)
13
- (value.is_a?(::Numeric) &&
13
+ value.is_a?(::Numeric) &&
14
14
  value <= 100 &&
15
- value >= 0)
15
+ value >= 0
16
16
  end
17
17
  end
18
18
  end
@@ -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: name, kit: self)))
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.21.0"
5
- VERSION = "13.21.0.pre.alpha.PLAY12582474"
5
+ VERSION = "13.21.0.pre.alpha.PLAY12582515"
6
6
  end
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.PLAY12582474
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-25 00:00:00.000000000 Z
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: 1.23.0
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: 1.23.0
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