playbook_ui_docs 14.5.0.pre.alpha.20241007playbookwebsiteaddrdbms4036 → 14.5.0.pre.rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +1 -1
  3. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +2 -10
  4. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.html.erb +1 -5
  5. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.html.erb +1 -5
  6. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb +1 -5
  7. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb +1 -5
  8. data/app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb +1 -5
  9. data/app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb +1 -5
  10. data/app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb +1 -5
  11. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +0 -2
  12. data/app/pb_kits/playbook/pb_form_pill/docs/index.js +0 -1
  13. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.jsx +1 -1
  14. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -3
  15. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -2
  16. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +1 -12
  17. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +1 -3
  18. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +13 -14
  19. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +4 -4
  20. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb +0 -2
  21. data/app/pb_kits/playbook/pb_radio/docs/example.yml +0 -1
  22. data/app/pb_kits/playbook/pb_radio/docs/index.js +0 -1
  23. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  24. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
  25. data/dist/playbook-doc.js +1 -1
  26. metadata +2 -20
  27. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +0 -117
  28. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -43
  29. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +0 -1
  30. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +0 -63
  31. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +0 -55
  32. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +0 -113
  33. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -12
  34. data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -5
  35. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb +0 -19
  36. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx +0 -27
  37. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md +0 -1
  38. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.jsx +0 -105
  39. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children.md +0 -1
  40. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.jsx +0 -106
  41. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_with_children_with_radios.md +0 -1
  42. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +0 -62
  43. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb +0 -88
  44. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx +0 -60
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa4a62439f4d82fd3624a733d9578510502a3ff3b4df231fdedfb51d6715fc21
4
- data.tar.gz: 35051248410bb30beee210710cf2a5743044913a9ba8baf9ca540e3f50fa6731
3
+ metadata.gz: c494762e5d57a9f11ecdd1a576efbdddf44a07023e39ad62ceac4c8ae2776887
4
+ data.tar.gz: efe1b7d30896b84c2eab5a0cb083bb45b071c047fd726c134e53013255ae4e60
5
5
  SHA512:
6
- metadata.gz: '0812ab032f2a970bba1629c83b268d97bc27da18b17856827dd391a7831350202508d206e5b23f0f8e90dcd07b07b7db971ea2979bcec86ab068046e186402f5'
7
- data.tar.gz: 8301398e63645deb459ad51ecd6608a2f949cae4516c4bf4cc51d6859982fd5cffc4e18628bac03ceeebdfed9885baca5c4dea331f961d654caa14041928ec2e
6
+ metadata.gz: 032603b8d269598492097c6807de436a3aef3e26bc0a05329ee03841c82f8e4873c4586f93f3b50ede868677d15434180848e65c938cd85d3089235790920dfa
7
+ data.tar.gz: 682d4e10e077bc77eaf3ea21c3373bebabd28d71f62ee3965d8e1b6aae77a9895c7ef6e1bf2f0cfd76520945e5877bf6dd307384fccf03edafd0738c5fdbb8d5
@@ -14,4 +14,4 @@
14
14
  }
15
15
  fpInline.config.onChange.push(showAngleDownHandler)
16
16
  })
17
- <% end %>
17
+ <% end %>
@@ -30,11 +30,7 @@
30
30
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
31
31
 
32
32
  <%= form.actions do |action| %>
33
- <%= action.submit props: {
34
- text: "Apply",
35
- data: {
36
- disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
37
- },}%>
33
+ <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
38
34
  <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
39
35
  <% end %>
40
36
  <% end %>
@@ -68,11 +64,7 @@
68
64
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
69
65
 
70
66
  <%= form.actions do |action| %>
71
- <%= action.submit props: {
72
- text: "Apply",
73
- data: {
74
- disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
75
- },}%>
67
+ <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
76
68
  <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
77
69
  <% end %>
78
70
  <% end %>
@@ -35,11 +35,7 @@
35
35
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: {max_width: "sm", label: true } %>
36
36
 
37
37
  <%= form.actions do |action| %>
38
- <%= action.submit props: {
39
- text: "Apply",
40
- data: {
41
- disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
42
- },}%>
38
+ <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
43
39
  <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
44
40
  <% end %>
45
41
  <% end %>
@@ -30,11 +30,7 @@
30
30
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: {max_width: "sm", label: true } %>
31
31
 
32
32
  <%= form.actions do |action| %>
33
- <%= action.submit props: {
34
- text: "Apply",
35
- data: {
36
- disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
37
- },}%>
33
+ <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
38
34
  <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
39
35
  <% end %>
40
36
  <% end %>
@@ -69,11 +69,7 @@
69
69
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
70
70
 
71
71
  <%= form.actions do |action| %>
72
- <%= action.submit props: {
73
- text: "Apply",
74
- data: {
75
- disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
76
- },}%>
72
+ <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
77
73
  <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
78
74
  <% end %>
79
75
  <% end %>
@@ -24,11 +24,7 @@
24
24
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
25
25
 
26
26
  <%= form.actions do |action| %>
27
- <%= action.submit props: {
28
- text: "Apply",
29
- data: {
30
- disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
31
- },}%>
27
+ <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
32
28
  <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
33
29
  <% end %>
34
30
  <% end %>
@@ -22,11 +22,7 @@
22
22
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
23
23
 
24
24
  <%= form.actions do |action| %>
25
- <%= action.submit props: {
26
- text: "Apply",
27
- data: {
28
- disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
29
- },}%>
25
+ <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
30
26
  <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
31
27
  <% end %>
32
28
  <% end %>
@@ -23,11 +23,7 @@
23
23
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
24
24
 
25
25
  <%= form.actions do |action| %>
26
- <%= action.submit props: {
27
- text: "Apply",
28
- data: {
29
- disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
30
- },}%>
26
+ <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
31
27
  <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
32
28
  <% end %>
33
29
  <% end %>
@@ -29,11 +29,7 @@
29
29
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
30
30
 
31
31
  <%= form.actions do |action| %>
32
- <%= action.submit props: {
33
- text: "Apply",
34
- data: {
35
- disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
36
- },}%>
32
+ <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
37
33
  <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
38
34
  <% end %>
39
35
  <% end %>
@@ -3,7 +3,6 @@ examples:
3
3
  rails:
4
4
  - form_pill_user: Form Pill User
5
5
  - form_pill_size: Form Pill Size
6
- - form_pill_truncated_text: Truncated Text
7
6
  - form_pill_tag: Form Pill Tag
8
7
  - form_pill_example: Example
9
8
  - form_pill_icon: Form Pill Icon
@@ -12,7 +11,6 @@ examples:
12
11
  react:
13
12
  - form_pill_user: Form Pill User
14
13
  - form_pill_size: Form Pill Size
15
- - form_pill_truncated_text: Truncated Text
16
14
  - form_pill_tag: Form Pill Tag
17
15
  - form_pill_example: Example
18
16
  - form_pill_icon: Form Pill Icon
@@ -4,4 +4,3 @@ export { default as FormPillTag } from './_form_pill_tag.jsx'
4
4
  export { default as FormPillExample } from './_form_pill_example.jsx'
5
5
  export { default as FormPillIcon } from './_form_pill_icon.jsx'
6
6
  export { default as FormPillColors } from './_form_pill_colors.jsx'
7
- export { default as FormPillTruncatedText } from './_form_pill_truncated_text.jsx'
@@ -87,4 +87,4 @@ const MultiLevelSelectDefault = (props) => {
87
87
  )
88
88
  };
89
89
 
90
- export default MultiLevelSelectDefault;
90
+ export default MultiLevelSelectDefault;
@@ -15,6 +15,3 @@ examples:
15
15
  - multi_level_select_return_all_selected: Return All Selected
16
16
  - multi_level_select_selected_ids_react: Selected Ids
17
17
  - multi_level_select_color: With Pills (Custom Color)
18
- - multi_level_select_with_children: Checkboxes With Children
19
- - multi_level_select_with_children_with_radios: Single Select With Children
20
-
@@ -4,5 +4,3 @@ export { default as MultiLevelSelectSingleChildrenOnly } from './_multi_level_se
4
4
  export { default as MultiLevelSelectReturnAllSelected } from './_multi_level_select_return_all_selected.jsx'
5
5
  export { default as MultiLevelSelectSelectedIdsReact } from "./_multi_level_select_selected_ids_react.jsx"
6
6
  export { default as MultiLevelSelectColor } from './_multi_level_select_color.jsx'
7
- export { default as MultiLevelSelectWithChildren } from './_multi_level_select_with_children.jsx'
8
- export { default as MultiLevelSelectWithChildrenWithRadios } from './_multi_level_select_with_children_with_radios.jsx'
@@ -22,16 +22,6 @@ const PaginationPageChange = (props) => {
22
22
 
23
23
  return (
24
24
  <div className="App">
25
- <Pagination
26
- current={activePage}
27
- key={`pagination-top-${activePage}`}
28
- marginBottom="xs"
29
- onChange={onPageChange}
30
- range={5}
31
- total={totalPages}
32
- {...props}
33
- />
34
-
35
25
  <Table
36
26
  marginBottom="xs"
37
27
  responsive="none"
@@ -59,8 +49,7 @@ const PaginationPageChange = (props) => {
59
49
  </Table>
60
50
 
61
51
  <Pagination
62
- current={activePage}
63
- key={`pagination-bottom-${activePage}`}
52
+ current={1}
64
53
  onChange={onPageChange}
65
54
  range={5}
66
55
  total={totalPages}
@@ -1,3 +1 @@
1
- You can use the `onChange` prop to control the data of your table. This prop is callback function that will allow you control the state.
2
-
3
- To ensure synchronization between multiple pagination components on a single page, use unique, dynamic keys for each pagination instance. Each Pagination component should have its own dynamic key that reflects the current active page: this example uses `pagination-top-${activePage}` and `pagination-bottom-${activePage}`.
1
+ You can use the `onChange` prop to control the data of your table. This prop is callback function that will allow you control the state.
@@ -1,10 +1,8 @@
1
1
  <%= pb_rails("button", props: { variant: "secondary", id: 'list' }) do %>
2
2
  <%= pb_rails("flex", props: {align: "center"}) do %>
3
- Filter By
3
+ Filter By
4
4
  <%= pb_rails("flex/flex_item", props: {margin_left: "xxs"}) do %>
5
- <div id="arrow-icon" style="display: flex">
6
- <%= pb_rails("icon", props: { icon: "chevron-down", fixed_width: true }) %>
7
- </div>
5
+ <div id="arrow-icon" style="display: flex"></div>
8
6
  <% end %>
9
7
  <% end %>
10
8
  <% end %>
@@ -20,17 +18,18 @@
20
18
 
21
19
 
22
20
  <script type="text/javascript">
23
- const popoverButton = document.querySelector("#list")
24
- let buttonClicked = false
21
+ const button = document.querySelector("#list")
22
+ let buttonClicked = false
25
23
 
26
- const arrowDiv = document.querySelector("#arrow-icon")
24
+ const arrowDiv = document.querySelector("#arrow-icon")
25
+ arrowDiv.innerHTML = '<i class="far fa-angle-down"></i>'
27
26
 
28
- popoverButton.onclick = () => {
29
- buttonClicked = !buttonClicked
30
- if (buttonClicked) {
31
- arrowDiv.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="auto" height="auto" viewBox="0 0 31 25" fill="none" class="pb_custom_icon svg-inline--fa pb_icon_kit svg_fw" id="" data="{}" aria="{}" tabindex=""><path d="M14.2031 5.70312C14.625 5.28125 15.3281 5.28125 15.75 5.70312L24.7969 14.7031C25.2188 15.1719 25.2188 15.875 24.7969 16.2969C24.3281 16.7656 23.625 16.7656 23.2031 16.2969L15 8.09375L6.79688 16.2969C6.32812 16.7656 5.625 16.7656 5.20312 16.2969C4.73438 15.875 4.73438 15.1719 5.20312 14.75L14.2031 5.70312Z" fill="currentColor"/></svg>'
32
- } else {
33
- arrowDiv.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="auto" height="auto" viewBox="0 0 31 25" fill="none" class="pb_custom_icon svg-inline--fa pb_icon_kit svg_fw" id="" data="{}" aria="{}" tabindex=""><path d="M14.2031 19.2969L5.20312 10.2969C4.73438 9.875 4.73438 9.17188 5.20312 8.70312C5.625 8.28125 6.32812 8.28125 6.79688 8.70312L15 16.9531L23.2031 8.75C23.625 8.28125 24.3281 8.28125 24.7969 8.75C25.2188 9.17188 25.2188 9.875 24.7969 10.2969L15.75 19.2969C15.3281 19.7656 14.625 19.7656 14.2031 19.2969Z" fill="currentColor"/></svg>'
34
- }
27
+ button.onclick = () => {
28
+ buttonClicked = !buttonClicked
29
+ if (buttonClicked) {
30
+ arrowDiv.innerHTML = '<i class="far fa-angle-up"></i>'
31
+ } else {
32
+ arrowDiv.innerHTML = '<i class="far fa-angle-down"></i>'
35
33
  }
34
+ }
36
35
  </script>
@@ -26,10 +26,10 @@ const PopoverWithButton = (props) => {
26
26
  className={showPopover ? "fa-flip-vertical" : ""}
27
27
  display="inline_flex"
28
28
  >
29
- <Icon
30
- fixedWidth
31
- icon="angle-down"
32
- margin-left="xxs"
29
+ <Icon
30
+ fixedWidth
31
+ icon="angle-down"
32
+ margin-left="xxs"
33
33
  />
34
34
  </Flex>
35
35
  </Flex>
@@ -10,7 +10,6 @@
10
10
  <%= pb_rails("radio", props: {
11
11
  custom_children: true,
12
12
  label: "Select",
13
- margin_bottom: "sm",
14
13
  name: "Group1",
15
14
  value: "Select",
16
15
  }) do %>
@@ -23,7 +22,6 @@
23
22
  <%= pb_rails("radio", props: {
24
23
  custom_children: true,
25
24
  label: "Typeahead",
26
- margin_bottom: "sm",
27
25
  name: "Group1",
28
26
  value: "Typeahead",
29
27
  }) do %>
@@ -15,7 +15,6 @@ examples:
15
15
  - radio_error: With Error
16
16
  - radio_alignment: Alignment
17
17
  - radio_disabled: Disabled
18
- - radio_custom_children: Custom Children
19
18
 
20
19
  swift:
21
20
  - radio_default_swift: Default
@@ -3,4 +3,3 @@ export { default as RadioCustom } from './_radio_custom.jsx'
3
3
  export { default as RadioError } from './_radio_error.jsx'
4
4
  export { default as RadioAlignment } from './_radio_alignment.jsx'
5
5
  export { default as RadioDisabled } from './_radio_disabled.jsx'
6
- export { default as RadioCustomChildren } from './_radio_custom_children.jsx'
@@ -9,7 +9,6 @@ examples:
9
9
  - typeahead_inline: Inline
10
10
  - typeahead_multi_kit: Multi Kit Options
11
11
  - typeahead_error_state: Error State
12
- - typeahead_margin_bottom: Margin Bottom
13
12
  - typeahead_with_pills_color: With Pills (Custom Color)
14
13
 
15
14
  react:
@@ -25,5 +24,4 @@ examples:
25
24
  - typeahead_async_createable: Createable (+ Async Data)
26
25
  - typeahead_error_state: Error State
27
26
  - typeahead_custom_menu_list: Custom MenuList
28
- - typeahead_margin_bottom: Margin Bottom
29
27
  - typeahead_with_pills_color: With Pills (Custom Color)
@@ -10,5 +10,4 @@ export { default as TypeaheadCreateable } from './_typeahead_createable.jsx'
10
10
  export { default as TypeaheadAsyncCreateable } from './_typeahead_async_createable.jsx'
11
11
  export { default as TypeaheadErrorState } from './_typeahead_error_state.jsx'
12
12
  export { default as TypeaheadCustomMenuList } from './_typeahead_custom_menu_list.jsx'
13
- export { default as TypeaheadMarginBottom } from './_typeahead_margin_bottom.jsx'
14
13
  export { default as TypeaheadWithPillsColor } from './_typeahead_with_pills_color.jsx'