playbook_ui 13.21.0.pre.alpha.PLAY12582474 → 13.21.0.pre.alpha.PLAY12582514

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.
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 +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: 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.PLAY12582514"
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.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-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
@@ -17,42 +17,42 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 6.1.7.7
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: 6.1.7.7
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: 6.1.7.7
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: 6.1.7.7
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: 6.1.7.7
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: 6.1.7.7
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: 6.1.7.7
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: 6.1.7.7
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: 1.23.0
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: 1.23.0
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