playbook_ui_docs 15.6.0.pre.alpha.play266913088 → 15.6.0.pre.rc.0

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 (94) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb +5 -11
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md +1 -7
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +163 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +190 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -4
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -3
  8. data/app/pb_kits/playbook/pb_background/docs/_background_light.html.erb +1 -1
  9. data/app/pb_kits/playbook/pb_background/docs/_background_light.jsx +1 -0
  10. data/app/pb_kits/playbook/pb_background/docs/example.yml +2 -2
  11. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  12. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
  13. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +1 -0
  14. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +3 -0
  15. data/app/pb_kits/playbook/pb_contact/docs/example.yml +0 -2
  16. data/app/pb_kits/playbook/pb_contact/docs/index.js +0 -1
  17. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.html.erb +14 -23
  18. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.md +1 -1
  19. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.html.erb +0 -31
  20. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -4
  21. data/app/pb_kits/playbook/pb_dialog/docs/index.js +1 -3
  22. data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
  23. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +2 -3
  24. data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -2
  25. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_rails.html.erb +5 -7
  26. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +1 -3
  27. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -5
  28. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.html.erb +1 -1
  29. data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +0 -1
  30. data/app/pb_kits/playbook/pb_multiple_users/docs/index.js +0 -1
  31. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb +4 -34
  32. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +7 -16
  33. data/app/pb_kits/playbook/pb_radio/docs/_radio_error.md +1 -1
  34. data/app/pb_kits/playbook/pb_select/docs/_select_error.md +1 -1
  35. data/app/pb_kits/playbook/pb_select/docs/example.yml +0 -2
  36. data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
  37. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -4
  38. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -2
  39. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md +1 -1
  40. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.md +1 -1
  41. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md +1 -1
  42. data/app/pb_kits/playbook/pb_timeline/docs/example.yml +0 -2
  43. data/app/pb_kits/playbook/pb_timeline/docs/index.js +0 -1
  44. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  45. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -2
  46. metadata +2 -50
  47. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_colors_rails.html.erb +0 -43
  48. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_colors_rails.md +0 -1
  49. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.jsx +0 -54
  50. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.md +0 -9
  51. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.jsx +0 -80
  52. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.md +0 -3
  53. data/app/pb_kits/playbook/pb_background/docs/_background_light.md +0 -1
  54. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.html.erb +0 -33
  55. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.jsx +0 -46
  56. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_rails.md +0 -2
  57. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_react.md +0 -2
  58. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.html.erb +0 -24
  59. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.jsx +0 -60
  60. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.md +0 -3
  61. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible.html.erb +0 -71
  62. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible.jsx +0 -57
  63. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible_rails.md +0 -1
  64. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible_react.md +0 -1
  65. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.jsx +0 -180
  66. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.md +0 -22
  67. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.html.erb +0 -19
  68. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_rails.html.erb +0 -12
  69. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_rails.md +0 -26
  70. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end_rails.html.erb +0 -19
  71. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end_rails.md +0 -1
  72. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_default_rails.html.erb +0 -30
  73. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_default_rails.md +0 -3
  74. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_rails.html.erb +0 -29
  75. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_rails.md +0 -13
  76. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.jsx +0 -42
  77. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.md +0 -1
  78. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.html.erb +0 -16
  79. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.jsx +0 -30
  80. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.md +0 -1
  81. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.jsx +0 -134
  82. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.md +0 -34
  83. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.html.erb +0 -101
  84. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.md +0 -33
  85. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.jsx +0 -180
  86. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.md +0 -3
  87. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.html.erb +0 -122
  88. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.md +0 -3
  89. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.html.erb +0 -60
  90. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.jsx +0 -118
  91. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.md +0 -1
  92. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.html.erb +0 -30
  93. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.jsx +0 -37
  94. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.md +0 -3
@@ -8,6 +8,4 @@ export { default as DialogStatus } from './_dialog_status.jsx'
8
8
  export { default as DialogStackedAlert } from './_dialog_stacked_alert.jsx'
9
9
  export { default as DialogFullHeight } from './_dialog_full_height.jsx'
10
10
  export { default as DialogFullHeightPlacement } from './_dialog_full_height_placement.jsx'
11
- export { default as DialogLoading } from './_dialog_loading.jsx'
12
- export { default as DialogOverflowVisible } from './_dialog_overflow_visible.jsx'
13
- export { default as DialogCloseable } from './_dialog_closeable.jsx'
11
+ export { default as DialogLoading } from './_dialog_loading.jsx'
@@ -1 +1 @@
1
- You can customize the order of the colors you would like to use by using the `colors` prop. Only the data and status colors will work for Playbook charts. See the [design page](https://playbook.powerapp.cloud/tokens/colors) for reference.
1
+ You can customize the order of the colors you would like to use by using the `colors` prop. Only the data and status colors will work for Playbook charts. See the [design page](https://playbook.powerapp.cloud/token/colors) for reference.
@@ -5,12 +5,11 @@ examples:
5
5
  - draggable_with_selectable_list: Draggable with SelectableList Kit
6
6
  - draggable_with_cards: Draggable with Cards
7
7
  - draggable_with_table: Draggable with Table
8
+ - draggable_multiple_containers: Dragging Across Multiple Containers
8
9
  - draggable_drop_zones: Draggable Drop Zones
9
10
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
10
11
  - draggable_drop_zones_line: Draggable Drop Zones Line
11
12
  - draggable_event_listeners: Draggable Event Listeners
12
- - draggable_multiple_containers: Dragging Across Multiple Containers
13
- - draggable_multiple_containers_dropzone: Dragging Across Multiple Containers with Dropzones
14
13
 
15
14
  rails:
16
15
  - draggable_default: Default
@@ -18,8 +17,8 @@ examples:
18
17
  - draggable_with_selectable_list: Draggable with SelectableList Kit
19
18
  - draggable_with_cards: Draggable with Cards
20
19
  - draggable_with_table: Draggable with Table
20
+ - draggable_multiple_containers: Dragging Across Multiple Containers
21
21
  - draggable_drop_zones: Draggable Drop Zones
22
22
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
23
23
  - draggable_drop_zones_line: Draggable Drop Zones Line
24
24
  - draggable_event_listeners: Draggable Event Listeners
25
- - draggable_multiple_containers: Dragging Across Multiple Containers
@@ -7,5 +7,4 @@ export { default as DraggableWithTable } from './_draggable_with_table.jsx'
7
7
  export { default as DraggableDropZones } from './_draggable_drop_zones.jsx'
8
8
  export { default as DraggableDropZonesColors } from './_draggable_drop_zones_colors.jsx'
9
9
  export { default as DraggableDropZonesLine } from './_draggable_drop_zones_line.jsx'
10
- export { default as DraggableEventListeners } from './_draggable_event_listeners.jsx'
11
- export { default as DraggableMultipleContainersDropzone } from './_draggable_multiple_containers_dropzone.jsx'
10
+ export { default as DraggableEventListeners } from './_draggable_event_listeners.jsx'
@@ -20,14 +20,12 @@
20
20
 
21
21
  %>
22
22
 
23
- <%= pb_rails("dropdown", props: {id: "country-dropdown", options: options}) %>
23
+ <%= pb_rails("dropdown", props: {options: options}) %>
24
24
 
25
25
  <script>
26
26
  document.addEventListener("pb:dropdown:selected", (e) => {
27
- if (e.target.id === "country-dropdown") {
28
- const option = e.detail;
29
- const dropdown = e.target;
30
- console.log("Selected option:", option);
31
- }
32
- });
27
+ const option = e.detail;
28
+ const dropdown = e.target;
29
+ console.log("Selected option:", option);
30
+ })
33
31
  </script>
@@ -47,7 +47,7 @@
47
47
  %>
48
48
 
49
49
 
50
- <%= pb_rails("dropdown", props: {id: "user-dropdown", options: options}) do %>
50
+ <%= pb_rails("dropdown", props: {options: options}) do %>
51
51
  <%= pb_rails("dropdown/dropdown_trigger", props: {placeholder: "Select a User", custom_display: custom_display}) %>
52
52
  <%= pb_rails("dropdown/dropdown_container") do %>
53
53
  <% options.each do |option| %>
@@ -71,8 +71,6 @@
71
71
 
72
72
  <script>
73
73
  document.addEventListener("pb:dropdown:selected", (e) => {
74
- if (e.target.id !== "user-dropdown") return;
75
-
76
74
  const option = e.detail;
77
75
  const dropdown = e.target;
78
76
 
@@ -22,11 +22,6 @@ examples:
22
22
  - dropdown_multi_select_with_default: Multi Select Default Value
23
23
  - dropdown_blank_selection: Blank Selection
24
24
  - dropdown_separators_hidden: Separators Hidden
25
- - dropdown_quickpick_rails: Quick Pick Variant
26
- - dropdown_quickpick_range_end_rails: Quick Pick Variant (Range Ends Today)
27
- - dropdown_quickpick_default_dates: Quick Pick Variant (Default Dates)
28
- - dropdown_quickpick_with_date_pickers_rails: Quick Pick with Date Pickers
29
- - dropdown_quickpick_with_date_pickers_default_rails: Quick Pick with Date Pickers (Default Value)
30
25
 
31
26
  react:
32
27
  - dropdown_default: Default
@@ -8,4 +8,4 @@
8
8
  state: "PA",
9
9
  zipcode: "19382",
10
10
  territory: "PHL",
11
- }) %>
11
+ }) %>
@@ -10,7 +10,6 @@ examples:
10
10
  - multiple_users_default: Default
11
11
  - multiple_users_reverse: Reverse
12
12
  - multiple_users_size: Size
13
- - multiple_users_with_tooltip: With Tooltip
14
13
 
15
14
  swift:
16
15
  - multiple_users_default_swift: Default
@@ -1,4 +1,3 @@
1
1
  export { default as MultipleUsersDefault } from './_multiple_users_default.jsx'
2
2
  export { default as MultipleUsersReverse } from './_multiple_users_reverse.jsx'
3
3
  export { default as MultipleUsersSize } from './_multiple_users_size.jsx'
4
- export { default as MultipleUsersWithTooltip } from './_multiple_users_with_tooltip.jsx'
@@ -1,42 +1,12 @@
1
1
  <form id="example-form-validation" action="" method="get">
2
- <%= pb_rails("phone_number_input", props: {
3
- id: "validation",
4
- initial_country: "af",
5
- value: "",
6
- required: true
7
- }) %>
2
+ <%= pb_rails("phone_number_input", props: { error: "Missing phone number", id: "validation", initial_country: "af", value: "", required: true }) %>
8
3
  <%= pb_rails("button", props: {html_type: "submit", text: "Save Phone Number"}) %>
9
4
  </form>
10
5
 
11
6
  <%= javascript_tag do %>
12
7
  document.addEventListener('DOMContentLoaded', function () {
13
- const form = document.querySelector('#example-form-validation');
14
-
15
- // Wait for React component to mount
16
- function waitForComponent() {
17
- const phoneInput = form.querySelector('#validation');
18
-
19
- if (!phoneInput) {
20
- setTimeout(waitForComponent, 100);
21
- return;
22
- }
23
-
24
- // Wait for intl-tel-input to initialize, then focus and blur to trigger validation
25
- setTimeout(function() {
26
- phoneInput.focus({ preventScroll: true });
27
- setTimeout(function() {
28
- phoneInput.blur();
29
- }, 100);
30
- }, 500);
31
- }
32
-
33
- waitForComponent();
34
-
35
- // Prevent form submission if there are validation errors
36
- form.addEventListener('submit', function (e) {
37
- if (e.target.querySelectorAll('[error]:not([error=""])').length > 0) {
38
- e.preventDefault();
39
- }
40
- });
8
+ document.querySelector('#example-form-validation').addEventListener('submit', function (e) {
9
+ if (e.target.querySelectorAll('[error]:not([error=""])').length > 0) e.preventDefault();
10
+ })
41
11
  })
42
12
  <% end %>
@@ -10,19 +10,8 @@ const PhoneNumberInputValidation = (props) => {
10
10
  const [showFormErrors, setShowFormErrors] = useState(false);
11
11
  const [phoneNumber, setPhoneNumber] = useState("");
12
12
  const [countryCode, setCountryCode] = useState("af");
13
- const [isValid, setIsValid] = useState(false);
14
- const [hasInteracted, setHasInteracted] = useState(false);
15
-
16
- // Start with initial error - will be cleared on blur if valid
17
- const initialError = (
18
- <>
19
- <Icon icon="warning" /> Missing phone number.
20
- </>
21
- );
22
13
 
23
14
  const handleOnValidate = (valid) => {
24
- setIsValid(valid);
25
- setHasInteracted(true);
26
15
  setFormErrors(
27
16
  valid ? "" : "Please correct the fields below and try again."
28
17
  );
@@ -34,16 +23,18 @@ const PhoneNumberInputValidation = (props) => {
34
23
  };
35
24
 
36
25
  const handleOnSubmit = (e) => {
37
- if (!isValid) e.preventDefault()
26
+ if (showFormErrors) e.preventDefault()
38
27
  }
39
28
 
40
29
  useEffect(() => {
41
30
  setShowFormErrors(formErrors.length > 0);
42
31
  }, [formErrors]);
43
32
 
44
- // Only show error prop initially, or if invalid after interaction
45
- // Clear error prop once valid (component handles validation on blur)
46
- const shouldShowError = !hasInteracted || (hasInteracted && !isValid);
33
+ const error = (
34
+ <>
35
+ <Icon icon="warning" /> Missing phone number.
36
+ </>
37
+ )
47
38
 
48
39
  return (
49
40
  <form
@@ -59,7 +50,7 @@ const PhoneNumberInputValidation = (props) => {
59
50
  />
60
51
  )}
61
52
  <PhoneNumberInput
62
- error={shouldShowError ? initialError : undefined}
53
+ error={error}
63
54
  id="validation"
64
55
  initialCountry={countryCode}
65
56
  onChange={handleOnChange}
@@ -1 +1 @@
1
- Error shows that the radio option must be selected or is invalid (i.e. when used in a form it signals a user to fix an error).
1
+ Error shows that the radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
@@ -1 +1 @@
1
- Select w/ Error shows that an option must be selected or is invalid (i.e. when used in a form it signals a user to fix an error).
1
+ Select w/ Error shows that the radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
@@ -15,7 +15,6 @@ examples:
15
15
  - select_inline_compact: Select Inline Compact
16
16
  - select_attributes: Select W/ Attributes
17
17
  - select_multiple: Select Multiple
18
- - select_input_options: Input Options
19
18
 
20
19
 
21
20
 
@@ -34,7 +33,6 @@ examples:
34
33
  - select_inline_compact: Select Inline Compact
35
34
  - select_multiple: Select Multiple
36
35
  - select_react_hook: React Hook
37
- - select_input_options: Input Options
38
36
 
39
37
  swift:
40
38
  - select_default_swift: Default
@@ -12,4 +12,3 @@ export { default as SelectInlineCompact } from './_select_inline_compact.jsx'
12
12
  export { default as SelectMultiple } from './_select_multiple.jsx'
13
13
  export { default as SelectReactHook } from './_select_react_hook.jsx'
14
14
  export { default as SelectCustomSelectSubheaders } from './_select_custom_select_subheaders.jsx'
15
- export { default as SelectInputOptions } from './_select_input_options.jsx'
@@ -40,8 +40,6 @@ examples:
40
40
  - table_with_selectable_rows: Table with Selectable Rows
41
41
  - table_with_header_style_borderless: Header Style Borderless
42
42
  - table_with_header_style_floating: Header Style Floating
43
- - table_with_filter_variant_rails: Variant with Filter
44
- - table_with_filter_variant_with_pagination_rails: Variant with Filter and Pagination
45
43
 
46
44
  react:
47
45
  - table_sm: Small
@@ -83,5 +81,3 @@ examples:
83
81
  - table_with_selectable_rows: Table with Selectable Rows
84
82
  - table_with_header_style_borderless: Header Style Borderless
85
83
  - table_with_header_style_floating: Header Style Floating
86
- - table_with_filter_variant: Variant with Filter
87
- - table_with_filter_variant_with_pagination: Variant with Filter and Pagination
@@ -38,5 +38,3 @@ export { default as TableWithSelectableRows } from './_table_with_selectable_row
38
38
  export { default as TableWithClickableRows } from './_table_with_clickable_rows.jsx'
39
39
  export { default as TableWithHeaderStyleBorderless } from './_table_with_header_style_borderless.jsx'
40
40
  export { default as TableWithHeaderStyleFloating } from './_table_with_header_style_floating.jsx'
41
- export { default as TableWithFilterVariant } from './_table_with_filter_variant.jsx'
42
- export { default as TableWithFilterVariantWithPagination } from './_table_with_filter_variant_with_pagination.jsx'
@@ -1 +1 @@
1
- Text Input w/ Error shows that the input must be filled out (i.e. when used in a form it signals a user to fix an error).
1
+ Text Input w/ Error shows that the radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
@@ -1 +1 @@
1
- Textarea w/ Error shows that the input must be filled out (i.e. when used in a form it signals a user to fix an error).
1
+ Textarea w/ Error shows that the radio option must be selected or is invalid (ie when used in a form it signals a user to fix an error).
@@ -1 +1 @@
1
- Use the optional `showDate` prop to render the timeline kit with a visible date. By default, if the date is from the current year, the year will not be displayed; however, if the date is NOT from the current year, the kit will display the year as well.
1
+ Use the optional `showDate` prop to render the timeline kit with a visible date. If the date is from the current year, the year will not be displayed, however if date is NOT from the current year, the kit will display the year as well.
@@ -5,7 +5,6 @@ examples:
5
5
  - timeline_vertical: Vertical
6
6
  - timeline_with_date: With Date
7
7
  - timeline_with_children: With Children
8
- - timeline_show_current_year: Show Current Year
9
8
  - timeline_with_gap: With Gap
10
9
 
11
10
 
@@ -14,5 +13,4 @@ examples:
14
13
  - timeline_vertical: Vertical
15
14
  - timeline_with_date: With Date
16
15
  - timeline_with_children: With Children
17
- - timeline_show_current_year: Show Current Year
18
16
  - timeline_with_gap: With Gap
@@ -3,5 +3,4 @@ export { default as TimelineVertical } from './_timeline_vertical.jsx'
3
3
  export { default as TimelineWithDate } from './_timeline_with_date.jsx'
4
4
  export { default as TimelineWithChildren } from './_timeline_with_children.jsx'
5
5
  export { default as TimelineWithGap } from './_timeline_with_gap.jsx'
6
- export { default as TimelineShowCurrentYear } from './_timeline_show_current_year.jsx'
7
6
 
@@ -5,7 +5,6 @@ examples:
5
5
  - typeahead_default_options: With Default Options
6
6
  - typeahead_with_context: With Context
7
7
  - typeahead_with_pills: With Pills
8
- - typeahead_input_display: Input Display
9
8
  - typeahead_without_pills: Without Pills (Single Select)
10
9
  - typeahead_with_pills_async: With Pills (Async Data)
11
10
  - typeahead_with_pills_async_users: With Pills (Async Data w/ Users)
@@ -27,7 +26,6 @@ examples:
27
26
  - typeahead_react_hook: React Hook
28
27
  - typeahead_with_highlight: With Highlight
29
28
  - typeahead_with_pills: With Pills
30
- - typeahead_input_display: Input Display
31
29
  - typeahead_with_pills_async: With Pills (Async Data)
32
30
  - typeahead_with_pills_async_users: With Pills (Async Data w/ Users)
33
31
  - typeahead_with_pills_async_custom_options: With Pills (Async Data w/ Custom Options)
@@ -17,5 +17,4 @@ export { default as TypeaheadReactHook } from './_typeahead_react_hook.jsx'
17
17
  export { default as TypeaheadDisabled } from './_typeahead_disabled.jsx'
18
18
  export { default as TypeaheadPreserveInput } from './_typeahead_preserve_input.jsx'
19
19
  export { default as TypeaheadDefaultValue } from './_typeahead_default_value.jsx'
20
- export { default as TypeaheadCustomOptions } from './_typeahead_custom_options.jsx'
21
- export { default as TypeaheadInputDisplay } from './_typeahead_input_display.jsx'
20
+ export { default as TypeaheadCustomOptions } from './_typeahead_custom_options.jsx'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.6.0.pre.alpha.play266913088
4
+ version: 15.6.0.pre.rc.0
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: 2025-12-16 00:00:00.000000000 Z
12
+ date: 2025-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -33,8 +33,6 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_colors_rails.html.erb
37
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_colors_rails.md
38
36
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb
39
37
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md
40
38
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.html.erb
@@ -62,10 +60,6 @@ files:
62
60
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.jsx
63
61
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx
64
62
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md
65
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.jsx
66
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.md
67
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.jsx
68
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.md
69
63
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx
70
64
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.md
71
65
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.html.erb
@@ -226,7 +220,6 @@ files:
226
220
  - app/pb_kits/playbook/pb_background/docs/_background_image.md
227
221
  - app/pb_kits/playbook/pb_background/docs/_background_light.html.erb
228
222
  - app/pb_kits/playbook/pb_background/docs/_background_light.jsx
229
- - app/pb_kits/playbook/pb_background/docs/_background_light.md
230
223
  - app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx
231
224
  - app/pb_kits/playbook/pb_background/docs/_background_overlay.md
232
225
  - app/pb_kits/playbook/pb_background/docs/_background_size.html.erb
@@ -534,10 +527,6 @@ files:
534
527
  - app/pb_kits/playbook/pb_contact/docs/_contact_default.md
535
528
  - app/pb_kits/playbook/pb_contact/docs/_contact_default_swift.md
536
529
  - app/pb_kits/playbook/pb_contact/docs/_contact_props_swift.md
537
- - app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.html.erb
538
- - app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.jsx
539
- - app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_rails.md
540
- - app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_react.md
541
530
  - app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.html.erb
542
531
  - app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx
543
532
  - app/pb_kits/playbook/pb_contact/docs/_contact_with_detail_swift.md
@@ -797,9 +786,6 @@ files:
797
786
  - app/pb_kits/playbook/pb_detail/docs/_detail_styled.jsx
798
787
  - app/pb_kits/playbook/pb_detail/docs/example.yml
799
788
  - app/pb_kits/playbook/pb_detail/docs/index.js
800
- - app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.html.erb
801
- - app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.jsx
802
- - app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.md
803
789
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.html.erb
804
790
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.jsx
805
791
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.md
@@ -816,10 +802,6 @@ files:
816
802
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb
817
803
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.jsx
818
804
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.md
819
- - app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible.html.erb
820
- - app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible.jsx
821
- - app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible_rails.md
822
- - app/pb_kits/playbook/pb_dialog/docs/_dialog_overflow_visible_react.md
823
805
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_props_swift.md
824
806
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_scrollable.html.erb
825
807
  - app/pb_kits/playbook/pb_dialog/docs/_dialog_scrollable.jsx
@@ -873,8 +855,6 @@ files:
873
855
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_react.md
874
856
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
875
857
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
876
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.jsx
877
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.md
878
858
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md
879
859
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_react.md
880
860
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.html.erb
@@ -924,21 +904,12 @@ files:
924
904
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.jsx
925
905
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.jsx
926
906
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.md
927
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.html.erb
928
907
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.jsx
929
908
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.md
930
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_rails.html.erb
931
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_rails.md
932
909
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end.jsx
933
910
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end.md
934
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end_rails.html.erb
935
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end_rails.md
936
911
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers.jsx
937
912
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers.md
938
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_default_rails.html.erb
939
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_default_rails.md
940
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_rails.html.erb
941
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_rails.md
942
913
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.html.erb
943
914
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.jsx
944
915
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx
@@ -1553,8 +1524,6 @@ files:
1553
1524
  - app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size.jsx
1554
1525
  - app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size.md
1555
1526
  - app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_size_swift.md
1556
- - app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.jsx
1557
- - app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.md
1558
1527
  - app/pb_kits/playbook/pb_multiple_users/docs/example.yml
1559
1528
  - app/pb_kits/playbook/pb_multiple_users/docs/index.js
1560
1529
  - app/pb_kits/playbook/pb_multiple_users_stacked/docs/_description.md
@@ -2087,9 +2056,6 @@ files:
2087
2056
  - app/pb_kits/playbook/pb_select/docs/_select_inline_compact.jsx
2088
2057
  - app/pb_kits/playbook/pb_select/docs/_select_inline_show_arrow.html.erb
2089
2058
  - app/pb_kits/playbook/pb_select/docs/_select_inline_show_arrow.jsx
2090
- - app/pb_kits/playbook/pb_select/docs/_select_input_options.html.erb
2091
- - app/pb_kits/playbook/pb_select/docs/_select_input_options.jsx
2092
- - app/pb_kits/playbook/pb_select/docs/_select_input_options.md
2093
2059
  - app/pb_kits/playbook/pb_select/docs/_select_multiple.html.erb
2094
2060
  - app/pb_kits/playbook/pb_select/docs/_select_multiple.jsx
2095
2061
  - app/pb_kits/playbook/pb_select/docs/_select_multiple.md
@@ -2333,14 +2299,6 @@ files:
2333
2299
  - app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.jsx
2334
2300
  - app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_rails.md
2335
2301
  - app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_react.md
2336
- - app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.jsx
2337
- - app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.md
2338
- - app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.html.erb
2339
- - app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.md
2340
- - app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.jsx
2341
- - app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.md
2342
- - app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.html.erb
2343
- - app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.md
2344
2302
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
2345
2303
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
2346
2304
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
@@ -2445,9 +2403,6 @@ files:
2445
2403
  - app/pb_kits/playbook/pb_timeline/docs/_description.md
2446
2404
  - app/pb_kits/playbook/pb_timeline/docs/_timeline_default.html.erb
2447
2405
  - app/pb_kits/playbook/pb_timeline/docs/_timeline_default.jsx
2448
- - app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.html.erb
2449
- - app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.jsx
2450
- - app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.md
2451
2406
  - app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.html.erb
2452
2407
  - app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.jsx
2453
2408
  - app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.html.erb
@@ -2619,9 +2574,6 @@ files:
2619
2574
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.md
2620
2575
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.html.erb
2621
2576
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_inline.jsx
2622
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.html.erb
2623
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.jsx
2624
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.md
2625
2577
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb
2626
2578
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx
2627
2579
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_multi_kit.html.erb
@@ -1,43 +0,0 @@
1
- <% column_definitions = [
2
- {
3
- accessor: "year",
4
- label: "Year",
5
- cellAccessors: ["quarter", "month", "day"],
6
- },
7
- {
8
- accessor: "newEnrollments",
9
- label: "New Enrollments",
10
- column_styling: {
11
- cell_background_color: ->(row) { row[:newEnrollments].to_i > 20 ? "success_secondary" : "warning_secondary" }
12
- }
13
- },
14
- {
15
- accessor: "scheduledMeetings",
16
- label: "Scheduled Meetings",
17
- },
18
- {
19
- accessor: "attendanceRate",
20
- label: "Attendance Rate",
21
- },
22
- {
23
- accessor: "completedClasses",
24
- label: "Completed Classes",
25
- },
26
- {
27
- accessor: "classCompletionRate",
28
- label: "Class Completion Rate",
29
- column_styling: {
30
- cell_background_color: "category_1",
31
- font_color: "white"
32
- }
33
- },
34
- {
35
- accessor: "graduatedStudents",
36
- label: "Graduated Students",
37
- }
38
- ] %>
39
-
40
- <%= pb_rails("advanced_table", props: { id: "background-control", table_data: @table_data, column_definitions: column_definitions }) do %>
41
- <%= pb_rails("advanced_table/table_header", props: { table_id: "background-control", column_definitions: column_definitions }) %>
42
- <%= pb_rails("advanced_table/table_body", props: { table_id: "background-control", table_data: @table_data, column_definitions: column_definitions }) %>
43
- <% end %>
@@ -1 +0,0 @@
1
- `column_styling` can also be used to control the background color on individual cells in a given column as shown here.
@@ -1,54 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../_advanced_table'
3
- import colors from '../../tokens/exports/_colors.module.scss'
4
- import MOCK_DATA from "./advanced_table_mock_data.json"
5
-
6
-
7
- const AdvancedTableColumnStylingBackground = (props) => {
8
- const columnDefinitions = [
9
- {
10
- accessor: "year",
11
- label: "Year",
12
- cellAccessors: ["quarter", "month", "day"],
13
- },
14
- {
15
- accessor: "newEnrollments",
16
- label: "New Enrollments",
17
- columnStyling:{cellBackgroundColor: colors.error_subtle, headerBackgroundColor: colors.error_subtle},
18
- },
19
- {
20
- accessor: "scheduledMeetings",
21
- label: "Scheduled Meetings",
22
- columnStyling:{cellBackgroundColor: colors.info_subtle},
23
- },
24
- {
25
- accessor: "attendanceRate",
26
- label: "Attendance Rate",
27
- columnStyling:{cellBackgroundColor: colors.info, headerBackgroundColor: colors.info, fontColor: colors.white, headerFontColor: colors.white},
28
- },
29
- {
30
- accessor: "completedClasses",
31
- label: "Completed Classes",
32
- },
33
- {
34
- accessor: "classCompletionRate",
35
- label: "Class Completion Rate",
36
- },
37
- {
38
- accessor: "graduatedStudents",
39
- label: "Graduated Students",
40
- },
41
- ]
42
-
43
- return (
44
- <div>
45
- <AdvancedTable
46
- columnDefinitions={columnDefinitions}
47
- tableData={MOCK_DATA}
48
- {...props}
49
- />
50
- </div>
51
- )
52
- }
53
-
54
- export default AdvancedTableColumnStylingBackground
@@ -1,9 +0,0 @@
1
- The `columnStyling` prop can also be used to set background color for entire columns.As stated above, `columnStyling` is an object that has several optional key/value pairs, here are the options highlighted in this doc:
2
-
3
- 1) `cellBackgroundColor`: use this to control the background color of all cells in the given column
4
- 2) `headerBackgroundColor`: use this to control the background color of the column header
5
- 3) `fontColor`: use this to control font color for all cells in the given column if needed, for example if using a darker background color.
6
- 4) `headerFontColor`: use this to control font color for the header in the given column if needed, for example if using a darker background color.
7
-
8
-
9
-