playbook_ui 9.6.1 → 9.9.0.alpha.inline1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_badge/_badge.jsx +26 -1
  3. data/app/pb_kits/playbook/pb_date/_date.jsx +3 -3
  4. data/app/pb_kits/playbook/pb_date/date.html.erb +2 -3
  5. data/app/pb_kits/playbook/pb_date/docs/_date_variants.html.erb +8 -0
  6. data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +10 -0
  7. data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +6 -1
  8. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +3 -0
  9. data/app/pb_kits/playbook/pb_dialog/dialog_header.rb +23 -24
  10. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +4 -2
  11. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +7 -0
  12. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +2 -1
  13. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx +2 -1
  14. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.md +1 -1
  15. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +7 -1
  16. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
  17. data/app/pb_kits/playbook/pb_form_group/_form_group.jsx +3 -1
  18. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +8 -0
  19. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.html.erb +13 -0
  20. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.jsx +43 -0
  21. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.md +1 -0
  22. data/app/pb_kits/playbook/pb_form_group/docs/example.yml +2 -0
  23. data/app/pb_kits/playbook/pb_form_group/docs/index.js +1 -1
  24. data/app/pb_kits/playbook/pb_form_group/form_group.rb +10 -1
  25. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +12 -2
  26. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +19 -0
  27. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.html.erb +13 -0
  28. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.jsx +25 -0
  29. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.html.erb +4 -5
  30. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.jsx +2 -6
  31. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +2 -0
  32. data/app/pb_kits/playbook/pb_form_pill/docs/index.js +1 -0
  33. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +1 -1
  34. data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +5 -0
  35. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +1 -1
  36. data/app/pb_kits/playbook/pb_nav/docs/_block_nav.html.erb +41 -5
  37. data/app/pb_kits/playbook/pb_nav/docs/_block_nav.jsx +44 -6
  38. data/app/pb_kits/playbook/pb_passphrase/_passphrase.jsx +12 -9
  39. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb +1 -0
  40. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.jsx +24 -0
  41. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.md +3 -0
  42. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_default.jsx +1 -0
  43. data/app/pb_kits/playbook/pb_passphrase/docs/example.yml +2 -0
  44. data/app/pb_kits/playbook/pb_passphrase/docs/index.js +1 -0
  45. data/app/pb_kits/playbook/pb_passphrase/passphrase.rb +2 -0
  46. data/app/pb_kits/playbook/pb_passphrase/passphrase.test.jsx +12 -0
  47. data/app/pb_kits/playbook/pb_passphrase/useHaveIBeenPwned.js +52 -0
  48. data/app/pb_kits/playbook/pb_passphrase/useZxcvbn.js +58 -0
  49. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +10 -0
  50. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +61 -0
  51. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.html.erb +6 -0
  52. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx +16 -0
  53. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.html.erb +4 -0
  54. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx +14 -0
  55. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +4 -0
  56. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +2 -0
  57. data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +9 -2
  58. data/app/pb_kits/playbook/pb_select/_select.jsx +10 -1
  59. data/app/pb_kits/playbook/pb_select/_select.scss +27 -30
  60. data/app/pb_kits/playbook/pb_select/select.rb +5 -1
  61. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +3 -0
  62. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +8 -0
  63. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.html.erb +5 -0
  64. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.jsx +22 -0
  65. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +2 -0
  66. data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
  67. data/app/pb_kits/playbook/pb_text_input/text_input.rb +7 -1
  68. data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +11 -2
  69. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +23 -0
  70. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +23 -11
  71. data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.jsx +17 -4
  72. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +1 -1
  73. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.html.erb +36 -0
  74. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.jsx +43 -0
  75. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.html.erb +35 -0
  76. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.jsx +44 -0
  77. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +4 -0
  78. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +7 -5
  79. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +6 -2
  80. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +20 -12
  81. data/lib/playbook/version.rb +1 -1
  82. metadata +34 -14
@@ -5,6 +5,8 @@ examples:
5
5
  - typeahead_with_pills: With Pills
6
6
  - typeahead_with_pills_async: With Pills (Async Data)
7
7
  - typeahead_with_pills_async_users: With Pills (Async Data w/ Users)
8
+ - typeahead_inline: Inline
9
+ - typeahead_multi_kit: Multi Kit Options
8
10
 
9
11
  react:
10
12
  - typeahead_default: Default
@@ -12,3 +14,5 @@ examples:
12
14
  - typeahead_with_pills_async: With Pills (Async Data)
13
15
  - typeahead_with_pills_async_users: With Pills (Async Data w/ Users)
14
16
  - typeahead_with_pills_async_custom_options: With Pills (Async Data w/ Custom Options)
17
+ - typeahead_inline: Inline
18
+ - typeahead_multi_kit: Multi Kit Options
@@ -1,5 +1,7 @@
1
- export { default as TypeaheadDefault } from './_typeahead_default'
2
- export { default as TypeaheadWithPills } from './_typeahead_with_pills'
3
- export { default as TypeaheadWithPillsAsync } from './_typeahead_with_pills_async'
4
- export { default as TypeaheadWithPillsAsyncUsers } from './_typeahead_with_pills_async_users'
5
- export { default as TypeaheadWithPillsAsyncCustomOptions } from './_typeahead_with_pills_async_custom_options'
1
+ export { default as TypeaheadDefault } from './_typeahead_default.jsx'
2
+ export { default as TypeaheadWithPills } from './_typeahead_with_pills.jsx'
3
+ export { default as TypeaheadWithPillsAsync } from './_typeahead_with_pills_async.jsx'
4
+ export { default as TypeaheadWithPillsAsyncUsers } from './_typeahead_with_pills_async_users.jsx'
5
+ export { default as TypeaheadWithPillsAsyncCustomOptions } from './_typeahead_with_pills_async_custom_options.jsx'
6
+ export { default as TypeaheadInline } from './_typeahead_inline.jsx'
7
+ export { default as TypeaheadMultiKit } from './_typeahead_multi_kit.jsx'
@@ -4,10 +4,14 @@
4
4
  <%= content_tag(:div,
5
5
  id: object.id,
6
6
  data: object.data,
7
- class: object.classname) do %>
7
+ class: object.classname + object.inline_class) do %>
8
8
  <div class="pb_typeahead_wrapper">
9
9
  <div class="pb_typeahead_loading_indicator" data-pb-typeahead-kit-loading-indicator>
10
- <i class="far fa-spinner fa-spin"></i>
10
+ <%= pb_rails("icon", props: {
11
+ icon: "spinner",
12
+ pulse: true,
13
+ fixed_width: true,
14
+ }) %>
11
15
  </div>
12
16
  <%= pb_rails("text_input", props: {
13
17
  type: "search",
@@ -3,20 +3,26 @@
3
3
  module Playbook
4
4
  module PbTypeahead
5
5
  class Typeahead < Playbook::KitBase
6
- prop :async, type: Playbook::Props::Boolean,
7
- default: false
6
+ prop :async, type: Playbook::Props::Boolean, default: false
8
7
  prop :default_options, type: Playbook::Props::HashArray, default: []
9
8
  prop :get_option_label
10
9
  prop :get_option_value
11
10
  prop :id
11
+ prop :inline, type: Playbook::Props::Boolean,
12
+ default: false
12
13
  prop :label
13
14
  prop :load_options
15
+ prop :multi_kit, type: Playbook::Props::String,
16
+ default: ""
14
17
  prop :name
15
- prop :options, type: Playbook::Props::HashArray, default: []
18
+ prop :options, type: Playbook::Props::HashArray,
19
+ default: []
16
20
  prop :pills, type: Playbook::Props::Boolean,
17
- default: false
21
+ default: false
18
22
 
19
23
  prop :placeholder
24
+ prop :plus_icon, type: Playbook::Props::Boolean,
25
+ default: false
20
26
  prop :search_term_minimum_length, default: 3
21
27
  prop :search_debounce_timeout, default: 250
22
28
  prop :value
@@ -25,6 +31,10 @@ module Playbook
25
31
  generate_classname("pb_typeahead_kit")
26
32
  end
27
33
 
34
+ def inline_class
35
+ inline ? " inline" : ""
36
+ end
37
+
28
38
  def data
29
39
  Hash(values[:data]).merge(
30
40
  pb_typeahead_kit: true,
@@ -38,21 +48,19 @@ module Playbook
38
48
  dark: dark,
39
49
  defaultValue: default_options,
40
50
  id: id,
51
+ inline: inline,
41
52
  isMulti: true,
42
53
  label: label,
54
+ multiKit: multi_kit,
43
55
  name: name,
44
56
  options: options,
45
57
  placeholder: placeholder,
58
+ plusIcon: plus_icon,
46
59
  }
47
60
 
48
- base_options.merge!({getOptionLabel: get_option_label}) if get_option_label.present?
49
- base_options.merge!({getOptionValue: get_option_value}) if get_option_value.present?
50
-
51
- base_options.merge!({
52
- async: true,
53
- loadOptions: load_options,
54
- }) if async
55
-
61
+ base_options.merge!({ getOptionLabel: get_option_label }) if get_option_label.present?
62
+ base_options.merge!({ getOptionValue: get_option_value }) if get_option_value.present?
63
+ base_options.merge!({ async: true, loadOptions: load_options }) if async
56
64
  base_options
57
65
  end
58
66
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- VERSION = "9.6.1"
4
+ VERSION = "9.9.0.alpha.inline1"
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.6.1
4
+ version: 9.9.0.alpha.inline1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
8
8
  - Power Devs
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-04-16 00:00:00.000000000 Z
12
+ date: 2021-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -285,22 +285,22 @@ dependencies:
285
285
  name: rspec-rails
286
286
  requirement: !ruby/object:Gem::Requirement
287
287
  requirements:
288
- - - ">="
289
- - !ruby/object:Gem::Version
290
- version: 3.8.0
291
288
  - - "~>"
292
289
  - !ruby/object:Gem::Version
293
290
  version: '3.8'
291
+ - - ">="
292
+ - !ruby/object:Gem::Version
293
+ version: 3.8.0
294
294
  type: :development
295
295
  prerelease: false
296
296
  version_requirements: !ruby/object:Gem::Requirement
297
297
  requirements:
298
- - - ">="
299
- - !ruby/object:Gem::Version
300
- version: 3.8.0
301
298
  - - "~>"
302
299
  - !ruby/object:Gem::Version
303
300
  version: '3.8'
301
+ - - ">="
302
+ - !ruby/object:Gem::Version
303
+ version: 3.8.0
304
304
  - !ruby/object:Gem::Dependency
305
305
  name: rspec-html-matchers
306
306
  requirement: !ruby/object:Gem::Requirement
@@ -1004,6 +1004,9 @@ files:
1004
1004
  - app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.jsx
1005
1005
  - app/pb_kits/playbook/pb_form_group/docs/_form_group_default.html.erb
1006
1006
  - app/pb_kits/playbook/pb_form_group/docs/_form_group_default.jsx
1007
+ - app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.html.erb
1008
+ - app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.jsx
1009
+ - app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.md
1007
1010
  - app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb
1008
1011
  - app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx
1009
1012
  - app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card.html.erb
@@ -1018,6 +1021,8 @@ files:
1018
1021
  - app/pb_kits/playbook/pb_form_group/form_group.rb
1019
1022
  - app/pb_kits/playbook/pb_form_pill/_form_pill.jsx
1020
1023
  - app/pb_kits/playbook/pb_form_pill/_form_pill.scss
1024
+ - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.html.erb
1025
+ - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.jsx
1021
1026
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.html.erb
1022
1027
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.jsx
1023
1028
  - app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.html.erb
@@ -1380,6 +1385,9 @@ files:
1380
1385
  - app/pb_kits/playbook/pb_online_status/online_status.rb
1381
1386
  - app/pb_kits/playbook/pb_passphrase/_passphrase.jsx
1382
1387
  - app/pb_kits/playbook/pb_passphrase/_passphrase.scss
1388
+ - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb
1389
+ - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.jsx
1390
+ - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.md
1383
1391
  - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.jsx
1384
1392
  - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_default.html.erb
1385
1393
  - app/pb_kits/playbook/pb_passphrase/docs/_passphrase_default.jsx
@@ -1401,6 +1409,8 @@ files:
1401
1409
  - app/pb_kits/playbook/pb_passphrase/passphrase.rb
1402
1410
  - app/pb_kits/playbook/pb_passphrase/passphrase.test.jsx
1403
1411
  - app/pb_kits/playbook/pb_passphrase/passwordStrength.js
1412
+ - app/pb_kits/playbook/pb_passphrase/useHaveIBeenPwned.js
1413
+ - app/pb_kits/playbook/pb_passphrase/useZxcvbn.js
1404
1414
  - app/pb_kits/playbook/pb_person/_person.jsx
1405
1415
  - app/pb_kits/playbook/pb_person/_person.scss
1406
1416
  - app/pb_kits/playbook/pb_person/docs/_description.md
@@ -1532,6 +1542,8 @@ files:
1532
1542
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
1533
1543
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.html.erb
1534
1544
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx
1545
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.html.erb
1546
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx
1535
1547
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb
1536
1548
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.jsx
1537
1549
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.html.erb
@@ -1540,6 +1552,8 @@ files:
1540
1552
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.jsx
1541
1553
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.html.erb
1542
1554
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
1555
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.html.erb
1556
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx
1543
1557
  - app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml
1544
1558
  - app/pb_kits/playbook/pb_rich_text_editor/docs/index.js
1545
1559
  - app/pb_kits/playbook/pb_rich_text_editor/docs/templates.js
@@ -1795,6 +1809,8 @@ files:
1795
1809
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_error.html.erb
1796
1810
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
1797
1811
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md
1812
+ - app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.html.erb
1813
+ - app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.jsx
1798
1814
  - app/pb_kits/playbook/pb_text_input/docs/example.yml
1799
1815
  - app/pb_kits/playbook/pb_text_input/docs/index.js
1800
1816
  - app/pb_kits/playbook/pb_text_input/text_input.html.erb
@@ -1972,6 +1988,10 @@ files:
1972
1988
  - app/pb_kits/playbook/pb_typeahead/docs/_footer.md
1973
1989
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb
1974
1990
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx
1991
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.html.erb
1992
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.jsx
1993
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.html.erb
1994
+ - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.jsx
1975
1995
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context.html.erb
1976
1996
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb
1977
1997
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx
@@ -2115,7 +2135,7 @@ homepage: http://playbook.powerapp.cloud
2115
2135
  licenses:
2116
2136
  - MIT
2117
2137
  metadata: {}
2118
- post_install_message:
2138
+ post_install_message:
2119
2139
  rdoc_options: []
2120
2140
  require_paths:
2121
2141
  - lib
@@ -2126,12 +2146,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2126
2146
  version: '0'
2127
2147
  required_rubygems_version: !ruby/object:Gem::Requirement
2128
2148
  requirements:
2129
- - - ">="
2149
+ - - ">"
2130
2150
  - !ruby/object:Gem::Version
2131
- version: '0'
2151
+ version: 1.3.1
2132
2152
  requirements: []
2133
- rubygems_version: 3.0.3
2134
- signing_key:
2153
+ rubygems_version: 3.1.4
2154
+ signing_key:
2135
2155
  specification_version: 4
2136
2156
  summary: Playbook Design System
2137
2157
  test_files: []