playbook_ui_docs 14.4.0.pre.alpha.javascriptassets3924 → 14.4.0.pre.alpha.pbntr523enablekitsforradiofix3825

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) 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_pagination/docs/_pagination_page_change.jsx +1 -12
  12. data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +1 -3
  13. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +13 -14
  14. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +4 -4
  15. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb +0 -2
  16. data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +2 -5
  17. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  18. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
  19. data/dist/playbook-doc.js +1 -1
  20. metadata +2 -12
  21. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +0 -117
  22. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -43
  23. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +0 -1
  24. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +0 -63
  25. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +0 -55
  26. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +0 -113
  27. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -12
  28. data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -5
  29. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb +0 -88
  30. 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: 7836968bc8ad25868f995d57cac3629b0b8fee1cc4fd816141cb5287c43a0bf3
4
- data.tar.gz: 55dd3e7f02e43d3365465486c39f62beee268af4dfa5dbd5e7b5c1b45acaa3c1
3
+ metadata.gz: 826f7fa7f998ca0cc29a4ed9cd7cb12e9431bbaa6dab9e2f6c48a5f2afda7f9f
4
+ data.tar.gz: 1778138501c9138162d0fb78e25acdaec0b93ac48e7050a5d8cc4ded305bcb31
5
5
  SHA512:
6
- metadata.gz: e8ef2be46f49d88600a5d2fcb8f8110ba162f0b22c46aa1b80ab9076fda6d6d34d72761885096c80f40a2c1ca4c051e0d32e35479e60dd84d2673ab4c5538206
7
- data.tar.gz: 9a5c64282bf556a67610c8de04d88d33e0ceaa3f71924a884fd586da55c38748a26f6df3002585b4a494bf254d377525d726749f9d57eb6d369f7ab2f7f3a7fa
6
+ metadata.gz: 0b4044647361d4530b85435351cca20581e51dae5e8ebb2338dde53509cb484804873cc972994f54113fcca63f7226ae512178c4a2cecd71667573b531cbe21b
7
+ data.tar.gz: 52415ffd9c63a9484c436346ee3812ba88d3f7bb7ee1be5b6bde7ae55b31633a983a32bf794ec7816712f86c33a0a6e2cc92dd1818a3dadd1a38bcfe50850dc3
@@ -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 %>
@@ -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 %>
@@ -19,14 +19,12 @@ const RadioChildren = (props) => {
19
19
  <Radio
20
20
  customChildren
21
21
  label="Select"
22
- marginBottom="sm"
23
22
  name="Group1"
24
23
  tabIndex={0}
25
24
  value="Select"
26
25
  {...props}
27
26
  >
28
- <Select
29
- marginBottom="none"
27
+ <Select
30
28
  minWidth="xs"
31
29
  options={options}
32
30
  />
@@ -34,18 +32,17 @@ const RadioChildren = (props) => {
34
32
  <Radio
35
33
  customChildren
36
34
  label="Typeahead"
37
- marginBottom="sm"
38
35
  name="Group1"
39
36
  tabIndex={0}
40
37
  value="Typeahead"
41
38
  {...props}
42
39
  >
43
40
  <Typeahead
44
- marginBottom="none"
45
41
  minWidth="xs"
46
42
  options={options}
47
43
  />
48
44
  </Radio>
45
+ <br />
49
46
  <Radio
50
47
  customChildren
51
48
  defaultChecked={false}
@@ -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'