playbook_ui_docs 14.18.0.pre.alpha.play2087emptystatekitbuildrails7533 → 14.18.0.pre.alpha.play2149overlaykitdynamicbug7619

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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.html.erb +22 -1
  3. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.html.erb +55 -0
  4. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line_rails.md +5 -0
  5. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_rails.md +5 -0
  6. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.jsx +59 -0
  7. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_react.md +1 -0
  8. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +2 -0
  9. data/app/pb_kits/playbook/pb_draggable/docs/index.js +2 -1
  10. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.html.erb +28 -0
  11. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +17 -64
  12. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.html.erb +58 -0
  13. data/app/pb_kits/playbook/pb_dropdown/docs/{_dropdown_with_autocomplete_and_custom_display.jsx → _dropdown_with_autocomplete_with_subcomponents.jsx} +11 -25
  14. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.md +1 -0
  15. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.md +1 -0
  16. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.jsx +61 -0
  17. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.md +2 -0
  18. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.html.erb +52 -0
  19. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.md +2 -0
  20. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +7 -4
  21. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +2 -2
  22. data/app/pb_kits/playbook/pb_empty_state/docs/example.yml +1 -5
  23. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional.jsx +1 -1
  24. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx +7 -7
  25. data/dist/playbook-doc.js +1 -1
  26. metadata +18 -11
  27. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.md +0 -1
  28. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_hook.jsx +0 -79
  29. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.html.erb +0 -30
  30. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_default.html.erb +0 -8
  31. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.html.erb +0 -13
  32. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.html.erb +0 -23
  33. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_drop_zones_line.md → _draggable_drop_zones_line_react.md} +0 -0
  34. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_event_listeners.md → _draggable_event_listeners_rails.md} +0 -0
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: 14.18.0.pre.alpha.play2087emptystatekitbuildrails7533
4
+ version: 14.18.0.pre.alpha.play2149overlaykitdynamicbug7619
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-05-06 00:00:00.000000000 Z
12
+ date: 2025-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -747,11 +747,16 @@ files:
747
747
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx
748
748
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors_rails.md
749
749
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors_react.md
750
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.html.erb
750
751
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx
751
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md
752
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line_rails.md
753
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line_react.md
754
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_rails.md
752
755
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_react.md
753
756
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.html.erb
754
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.md
757
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners.jsx
758
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_rails.md
759
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_react.md
755
760
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
756
761
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
757
762
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md
@@ -812,10 +817,12 @@ files:
812
817
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.html.erb
813
818
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.jsx
814
819
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.md
820
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.html.erb
815
821
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx
816
822
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.md
817
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.jsx
818
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.md
823
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.html.erb
824
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.jsx
825
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.md
819
826
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx
820
827
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.md
821
828
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb
@@ -832,19 +839,19 @@ files:
832
839
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb
833
840
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.md
834
841
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.jsx
835
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_hook.jsx
842
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.md
836
843
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.html.erb
837
844
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.jsx
838
845
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.md
846
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.jsx
847
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.md
848
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.html.erb
849
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.md
839
850
  - app/pb_kits/playbook/pb_dropdown/docs/example.yml
840
851
  - app/pb_kits/playbook/pb_dropdown/docs/index.js
841
- - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.html.erb
842
852
  - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.jsx
843
- - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_default.html.erb
844
853
  - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_default.jsx
845
- - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.html.erb
846
854
  - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.jsx
847
- - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.html.erb
848
855
  - app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.jsx
849
856
  - app/pb_kits/playbook/pb_empty_state/docs/default_image/computer_fly_no_branding.svg
850
857
  - app/pb_kits/playbook/pb_empty_state/docs/default_image/utils.tsx
@@ -1 +0,0 @@
1
- `autocomplete` prop can also be used in conjunction with the `customDisplay` prop.
@@ -1,79 +0,0 @@
1
- import React, { useRef } from 'react'
2
-
3
- import Dropdown from '../../pb_dropdown/_dropdown'
4
- import useDropdown from '../../pb_dropdown/hooks/useDropdown'
5
- import CircleIconButton from '../../pb_circle_icon_button/_circle_icon_button'
6
- import FlexItem from '../../pb_flex/_flex_item'
7
- import Icon from '../../pb_icon/_icon'
8
- import Body from '../../pb_body/_body'
9
- import Flex from '../../pb_flex/_flex'
10
-
11
- const DropdownWithHook = (props) => {
12
- const [isDropDownClosed, setIsDropdownClosed] = useDropdown(true);
13
- const buttonRef = useRef(null);
14
-
15
- const options = [
16
- {
17
- label: "United States",
18
- value: "United States",
19
- areaCode: "+1",
20
- icon: "🇺🇸",
21
- id: "United-states"
22
- },
23
- {
24
- label: "Canada",
25
- value: "Canada",
26
- areaCode: "+1",
27
- icon: "🇨🇦",
28
- id: "canada"
29
- },
30
- {
31
- label: "Pakistan",
32
- value: "Pakistan",
33
- areaCode: "+92",
34
- icon: "🇵🇰",
35
- id: "pakistan"
36
- }
37
- ];
38
-
39
- return (
40
- <div>
41
- <CircleIconButton
42
- htmlOptions={{ref: buttonRef}}
43
- icon={"flag"}
44
- onClick={() => setIsDropdownClosed(!isDropDownClosed)}
45
- variant="secondary"
46
- />
47
- <Dropdown
48
- isClosed={isDropDownClosed}
49
- options={options}
50
- triggerRef={buttonRef}
51
- {...props}
52
- >
53
- {options.map((option) => (
54
- <Dropdown.Option key={option.id}
55
- option={option}
56
- >
57
- <>
58
- <FlexItem>
59
- <Flex paddingRight='md'>
60
- <Icon icon={option.icon}
61
- paddingRight="xs"
62
- />
63
- <Body text={option.label} />
64
- </Flex>
65
- </FlexItem>
66
- <FlexItem>
67
- <Body color="light"
68
- text={option.areaCode}
69
- />
70
- </FlexItem>
71
- </>
72
- </Dropdown.Option>
73
- ))}
74
- </Dropdown>
75
- </div>
76
- )
77
- }
78
-
79
- export default DropdownWithHook
@@ -1,30 +0,0 @@
1
- <%= pb_rails("flex", props: {align: "center", spacing: "evenly"}) do %>
2
- <%= pb_rails("empty_state", props: {
3
- description: "Body text goes into detail with possible steps for user to take",
4
- header: "Title Explains",
5
- image: "default",
6
- id: "empty_state_default",
7
- primary_button: "Next Action",
8
- primary_button_url: "https://www.playbook.com",
9
- alignment: "left",
10
- }) %>
11
-
12
- <%= pb_rails("empty_state", props: {
13
- description: "Body text goes into detail with possible steps for user to take",
14
- header: "Title Explains",
15
- image: "default",
16
- id: "empty_state_default",
17
- primary_button: "Next Action",
18
- primary_button_url: "https://www.playbook.com",
19
- }) %>
20
-
21
- <%= pb_rails("empty_state", props: {
22
- description: "Body text goes into detail with possible steps for user to take",
23
- header: "Title Explains",
24
- image: "default",
25
- id: "empty_state_default",
26
- primary_button: "Next Action",
27
- primary_button_url: "https://www.playbook.com",
28
- alignment: "right",
29
- }) %>
30
- <% end %>
@@ -1,8 +0,0 @@
1
- <%= pb_rails("flex", props: {align: "center", justify: "center"}) do %>
2
- <%= pb_rails("empty_state", props: {
3
- description: "Body text goes into detail with possible steps for user to take",
4
- header: "Title Explains",
5
- image: "default",
6
- id: "empty_state_default",
7
- }) %>
8
- <% end %>
@@ -1,13 +0,0 @@
1
- <%= pb_rails("flex", props: {align: "center", justify: "center"}) do %>
2
- <%= pb_rails("empty_state", props: {
3
- description: "Body text goes into detail with possible steps for user to take",
4
- header: "Title Explains",
5
- image: "default",
6
- id: "empty_state_default",
7
- orientation:"horizontal",
8
- alignment: "left",
9
- size: "lg",
10
- primary_button: "Next Action",
11
- primary_button_url: "https://www.playbook.com",
12
- }) %>
13
- <% end %>
@@ -1,23 +0,0 @@
1
- <%= pb_rails("flex", props: {align: "center", spacing: "evenly"}) do %>
2
- <%= pb_rails("empty_state", props: {
3
- description: "Body text goes into detail with possible steps for user to take",
4
- header: "Title Explains",
5
- image: "default",
6
- id: "empty_state_default",
7
- primary_button: "Next Action",
8
- primary_button_url: "https://www.playbook.com",
9
- link_button: "Alt Action",
10
- size: "sm",
11
- }) %>
12
-
13
- <%= pb_rails("empty_state", props: {
14
- description: "Body text goes into detail with possible steps for user to take",
15
- header: "Title Explains",
16
- image: "default",
17
- id: "empty_state_default",
18
- primary_button: "Next Action",
19
- primary_button_url: "https://www.playbook.com",
20
- link_button: "Alt Action",
21
- size: "lg",
22
- }) %>
23
- <% end %>