playbook_ui_docs 14.15.0.pre.alpha.PBNTR617addgriddisplayglobalprop6700 → 14.15.0.pre.alpha.PBNTR900phonenumberinputhidden6593

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 (31) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  4. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_hooks.md +1 -3
  5. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -2
  6. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
  7. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  8. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -1
  9. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
  10. data/app/pb_kits/playbook/pb_phone_number_input/docs/{_phone_number_input_default.html.erb → _phone_number_input_default_rails.html.erb} +1 -1
  11. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default_rails.md +2 -0
  12. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +2 -4
  13. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon.erb +10 -0
  14. data/app/pb_kits/playbook/pb_tooltip/docs/example.yml +0 -1
  15. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +1 -1
  16. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +1 -1
  17. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -1
  18. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
  19. data/dist/playbook-doc.js +1 -1
  20. metadata +5 -14
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx +0 -102
  22. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.md +0 -4
  23. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.html.erb +0 -39
  24. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_close.html.erb +0 -39
  25. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx +0 -91
  26. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.md +0 -1
  27. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_hidden_inputs.html.erb +0 -5
  28. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_hidden_inputs.md +0 -1
  29. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_icon_rails.html.erb +0 -22
  30. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx +0 -66
  31. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.md +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca279d18fb88e1a00cd2d271ce245d04a1b4a8d1312f13092268bd914b903bcc
4
- data.tar.gz: 5cc7fbddef3c6327e6892c307b3e70037eadfc7786940ceb7e0a9419ecd1b5eb
3
+ metadata.gz: 396281ff58736dc67a9171f283d01d1f2fc82f563bc2a3e48189ccbed64d91f0
4
+ data.tar.gz: 3cc5eaf320269a4b85cc9d305231785d5581f73ddf869d748d62443202ccf1f8
5
5
  SHA512:
6
- metadata.gz: ffd8a0d797991af0f4a84c372320decc82f3ced99812fd0bb318b40ac70a3b5c9df2ea086739430b38589299a02fe3d7810bf86c8ae5c5802dbcbf68696207ca
7
- data.tar.gz: f1cae30250cd0a5f525663d78a8f0e368fc0b6c3a6901d72b9f05efc96f5431f215658ff59519a28525947d35bb57769024ff159d2162809d4bba836bfada68a
6
+ metadata.gz: 53faab8278d68a8942375e114d4b9a88696df37f52de94cf8d6bd91a6f242c36e9baf6a0656ea46cd4ca87854ec1b73066162a0302bff3627baa84cf4b4001d0
7
+ data.tar.gz: 24f92b27398d8e59c806cac17b62fd3a9bf14e841e85525d7956561ca9975cd69982b090154dfb3ec78491d916f80e11d945f61f0db3cd18fb741bb579205eb1
@@ -36,5 +36,4 @@ examples:
36
36
  - advanced_table_selectable_rows: Selectable Rows
37
37
  - advanced_table_selectable_rows_no_subrows: Selectable Rows (No Subrows)
38
38
  - advanced_table_selectable_rows_actions: Selectable Rows (With Actions)
39
- - advanced_table_selectable_rows_header: Selectable Rows (No Actions Bar)
40
- - advanced_table_inline_editing: Inline Cell Editing
39
+ - advanced_table_selectable_rows_header: Selectable Rows (No Actions Bar)
@@ -20,5 +20,4 @@ export { default as AdvancedTableNoSubrows } from './_advanced_table_no_subrows.
20
20
  export { default as AdvancedTableSelectableRowsHeader } from './_advanced_table_selectable_rows_header.jsx'
21
21
  export { default as AdvancedTableSelectableRowsActions } from './_advanced_table_selectable_rows_actions.jsx'
22
22
  export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_table_table_props_sticky_header.jsx'
23
- export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
24
- export { default as AdvancedTableInlineEditing } from './_advanced_table_inline_editing.jsx'
23
+ export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
@@ -1,3 +1 @@
1
- You can find a full list of flatpickr events and hooks in their [documentation](https://flatpickr.js.org/events/).
2
-
3
- Use `window.addEventListener("DOMContentLoaded", () => {})`, not `document.addEventListener("DOMContentLoaded", () => {})`.
1
+ You can find a full list of flatpickr events and hooks in their [documentation](https://flatpickr.js.org/events/).
@@ -7,8 +7,6 @@ examples:
7
7
  - date_picker_allow_input: Allow Input
8
8
  - date_picker_input: Input Field
9
9
  - date_picker_label: Label
10
- - date_picker_on_change: onChange
11
- - date_picker_on_close: onClose
12
10
  # - date_picker_range: Range
13
11
  - date_picker_quick_pick_rails: Range (Quick Pick)
14
12
  - date_picker_quick_pick_range_limit: Range (Quick Pick w/ “This” Range limit)
@@ -25,7 +25,7 @@
25
25
  <%= pb_form_with(scope: :example, url: "", method: :get) do |form| %>
26
26
  <%= form.typeahead :example_typeahead, props: { data: { typeahead_example1: true, user: {} }, label: true, placeholder: "Search for a user" } %>
27
27
  <%= form.text_field :example_text_field, props: { label: true } %>
28
- <%= form.phone_number_field :example_phone_number_field, props: { label: "Example phone field", hidden_inputs: true } %>
28
+ <%= form.phone_number_field :example_phone_number_field, props: { label: "Example phone field" } %>
29
29
  <%= form.email_field :example_email_field, props: { label: true } %>
30
30
  <%= form.number_field :example_number_field, props: { label: true } %>
31
31
  <%= form.search_field :example_search_field, props: { label: true } %>
@@ -24,7 +24,7 @@
24
24
  <%= pb_form_with(scope: :example, method: :get, url: "", validate: true) do |form| %>
25
25
  <%= form.typeahead :example_typeahead_validation, props: { data: { typeahead_example2: true, user: {} }, label: true, placeholder: "Search for a user", required: true, validation: { message: "Please select a user." } } %>
26
26
  <%= form.text_field :example_text_field_validation, props: { label: true, required: true } %>
27
- <%= form.phone_number_field :example_phone_number_field_validation, props: { label: "Example phone field", hidden_inputs: true } %>
27
+ <%= form.phone_number_field :example_phone_number_field_validation, props: { label: "Example phone field" } %>
28
28
  <%= form.email_field :example_email_field_validation, props: { label: true, required: true } %>
29
29
  <%= form.number_field :example_number_field_validation, props: { label: true, required: true } %>
30
30
  <%= form.search_field :example_project_number_validation, props: { label: true, required: true, validation: { pattern: "[0-9]{2}-[0-9]{5}", message: "Please enter a valid project number (example: 33-12345)." } } %>
@@ -12,7 +12,6 @@ examples:
12
12
 
13
13
  react:
14
14
  - multi_level_select_default: Default
15
- - multi_level_select_react_hook: React Hook
16
15
  - multi_level_select_single: Single Select
17
16
  - multi_level_select_single_children_only: Single Select w/ Hidden Radios
18
17
  - multi_level_select_return_all_selected: Return All Selected
@@ -7,4 +7,3 @@ export { default as MultiLevelSelectColor } from './_multi_level_select_color.js
7
7
  export { default as MultiLevelSelectWithChildren } from './_multi_level_select_with_children.jsx'
8
8
  export { default as MultiLevelSelectWithChildrenWithRadios } from './_multi_level_select_with_children_with_radios.jsx'
9
9
  export { default as MultiLevelSelectDisabled } from './_multi_level_select_disabled.jsx'
10
- export { default as MultiLevelSelectReactHook } from './_multi_level_select_react_hook.jsx'
@@ -1,3 +1,3 @@
1
1
  <%= pb_rails("phone_number_input", props: {
2
- id: "hello",
2
+ id: "hello"
3
3
  }) %>
@@ -0,0 +1,2 @@
1
+ NOTE: Error state is handled by default, validating length (too long or too short) relative to the selected country’s phone format and enforcing numeric-only values for all countries.
2
+ The Phone Number Input kit has two hidden input fields, `{field_name}_full` and `{field_name}_country_code`. The value passed when the form is submitted contains the full phone number including the country code. Read the [intl-tel-input](https://intl-tel-input.com/examples/hidden-input.html) docs for more information.
@@ -11,11 +11,9 @@ examples:
11
11
  - phone_number_input_format: Format as You Type
12
12
 
13
13
  rails:
14
- - phone_number_input_default: Default
14
+ - phone_number_input_default_rails: Default
15
15
  - phone_number_input_preferred_countries: Preferred Countries
16
16
  - phone_number_input_initial_country: Initial Country
17
17
  - phone_number_input_only_countries: Limited Countries
18
18
  - phone_number_input_validation: Form Validation
19
- - phone_number_input_format: Format as You Type
20
- - phone_number_input_hidden_inputs: Hidden Inputs
21
-
19
+ - phone_number_input_format: Format as You Type
@@ -0,0 +1,10 @@
1
+ <%= pb_rails("icon_circle", props: { icon: "paper-plane", id: "result-1-sample-email-link" }) %>
2
+
3
+ <%= pb_rails("tooltip", props: {
4
+ trigger_element_id: "result-1-sample-email-link",
5
+ tooltip_id: "sample-email-tooltip-result-1",
6
+ position: "top",
7
+ dark: true
8
+ }) do %>
9
+ Send Email
10
+ <% end %>
@@ -4,7 +4,6 @@ examples:
4
4
  - tooltip_default: Default
5
5
  - tooltip_interaction: Content Interaction
6
6
  - tooltip_selectors: Using Common Selectors
7
- - tooltip_icon_rails: Tooltip with Icon
8
7
  - tooltip_with_icon_circle: Icon Circle Tooltip
9
8
  - tooltip_delay_rails: Delay
10
9
  - tooltip_show_tooltip: Show Tooltip
@@ -49,7 +49,7 @@ const TypeaheadWithPillsAsyncCustomOptions = (props) => {
49
49
  * @summary - for doc example purposes only
50
50
  */
51
51
  const handleOnMultiValueClick = (value) => {
52
- alert(`You added the user: "${value.label}"`)
52
+ alert(`You removed the user: "${value.label}"`)
53
53
  }
54
54
 
55
55
  return (
@@ -56,7 +56,7 @@ const TypeaheadWithPillsAsyncUsers = (props) => {
56
56
  * @summary - for doc example purposes only
57
57
  */
58
58
  const handleOnMultiValueClick = (value) => {
59
- alert(`You added the user: "${value.label}"`)
59
+ alert(`You removed the user: "${value.label}"`)
60
60
  }
61
61
 
62
62
  return (
@@ -17,7 +17,6 @@ examples:
17
17
 
18
18
  react:
19
19
  - typeahead_default: Default
20
- - typeahead_react_hook: React Hook
21
20
  - typeahead_with_highlight: With Highlight
22
21
  - typeahead_with_pills: With Pills
23
22
  - typeahead_with_pills_async: With Pills (Async Data)
@@ -13,4 +13,3 @@ export { default as TypeaheadCustomMenuList } from './_typeahead_custom_menu_lis
13
13
  export { default as TypeaheadMarginBottom } from './_typeahead_margin_bottom.jsx'
14
14
  export { default as TypeaheadWithPillsColor } from './_typeahead_with_pills_color.jsx'
15
15
  export { default as TypeaheadTruncatedText } from './_typeahead_truncated_text.jsx'
16
- export { default as TypeaheadReactHook } from './_typeahead_react_hook.jsx'