playbook_ui 14.13.0.pre.alpha.advsncedtablefix6185 → 14.13.0.pre.alpha.pbntr799collapsiblerowswithcustomclick6117

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 (52) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +5 -6
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  6. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss +66 -0
  7. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.tsx +98 -0
  8. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb +28 -0
  9. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.rb +42 -0
  10. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.html.erb +19 -0
  11. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +26 -0
  12. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.html.erb +10 -0
  13. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +17 -0
  14. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +19 -0
  15. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_onclick.html.erb +16 -0
  16. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb +35 -0
  17. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +42 -0
  18. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb +13 -0
  19. data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +15 -0
  20. data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +4 -0
  21. data/app/pb_kits/playbook/pb_avatar_action_button/pb_avatar_action_button.test.js +31 -0
  22. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +0 -1
  23. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -1
  24. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.scss +1 -6
  25. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.tsx +5 -7
  26. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.html.erb +0 -1
  27. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.jsx +0 -7
  28. data/app/pb_kits/playbook/pb_progress_pills/docs/example.yml +0 -2
  29. data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +0 -1
  30. data/app/pb_kits/playbook/pb_progress_pills/progress_pills.html.erb +1 -1
  31. data/app/pb_kits/playbook/pb_progress_pills/progress_pills.rb +0 -6
  32. data/app/pb_kits/playbook/pb_progress_pills/progress_pills.test.js +1 -26
  33. data/dist/chunks/{_typeahead-CAIQfP7X.js → _typeahead-B9UYfqxU.js} +1 -1
  34. data/dist/chunks/_weekday_stacked-BoCeTceb.js +45 -0
  35. data/dist/chunks/vendor.js +1 -1
  36. data/dist/menu.yml +7 -0
  37. data/dist/playbook-doc.js +1 -1
  38. data/dist/playbook-rails-react-bindings.js +1 -1
  39. data/dist/playbook-rails.js +1 -1
  40. data/dist/playbook.css +1 -1
  41. data/lib/playbook/version.rb +1 -1
  42. metadata +20 -13
  43. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_custom_cell.jsx +0 -75
  44. data/app/pb_kits/playbook/pb_bar_graph/BarGraphStyles.scss +0 -58
  45. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +0 -64
  46. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +0 -1
  47. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.md +0 -1
  48. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.html.erb +0 -1
  49. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.jsx +0 -18
  50. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_rails.md +0 -1
  51. data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_react.md +0 -1
  52. data/dist/chunks/_weekday_stacked-CsxncF8U.js +0 -45
@@ -1,2 +1 @@
1
1
  <%= pb_rails("progress_pills", props: { aria: { label: "2 out of 3 steps complete" }, steps: 3, active: 2 }) %>
2
- <%= pb_rails("progress_pills", props: { aria: { label: "9 out of 18 steps complete" }, steps: 18, active: 9, margin_top: "md" }) %>
@@ -10,13 +10,6 @@ const ProgressPillsDefault = (props) => {
10
10
  steps={3}
11
11
  {...props}
12
12
  />
13
- <ProgressPills
14
- active={9}
15
- aria={{ label: '9 out of 18 steps complete' }}
16
- marginTop="md"
17
- steps={18}
18
- {...props}
19
- />
20
13
  </>
21
14
  )
22
15
  }
@@ -3,11 +3,9 @@ examples:
3
3
  rails:
4
4
  - progress_pills_default: Default
5
5
  - progress_pills_status: Status
6
- - progress_pills_full_width: Full Container Width
7
6
 
8
7
 
9
8
 
10
9
  react:
11
10
  - progress_pills_default: Default
12
11
  - progress_pills_status: Status
13
- - progress_pills_full_width: Full Container Width
@@ -1,3 +1,2 @@
1
1
  export { default as ProgressPillsDefault } from './_progress_pills_default.jsx'
2
2
  export { default as ProgressPillsStatus } from './_progress_pills_status.jsx'
3
- export { default as ProgressPillsFullWidth } from './_progress_pills_full_width.jsx'
@@ -14,7 +14,7 @@
14
14
 
15
15
  <div class="progress_pills">
16
16
  <% object.each_step do |step| %>
17
- <span class="pb_progress_pill<%= object.active_step(step) %><%= object.make_full_width %><%= object.dark_pill %>"></span>
17
+ <span class="pb_progress_pill<%= object.active_step(step) %><%= object.dark_pill %>"></span>
18
18
  <% end %>
19
19
  </div>
20
20
 
@@ -9,8 +9,6 @@ module Playbook
9
9
  prop :steps, type: Playbook::Props::Number,
10
10
  default: 3
11
11
  prop :title
12
- prop :full_width_pill, type: Playbook::Props::Boolean,
13
- default: false
14
12
 
15
13
  def classname
16
14
  generate_classname("pb_progress_pills_kit")
@@ -28,10 +26,6 @@ module Playbook
28
26
  step <= active ? "_active" : "_inactive"
29
27
  end
30
28
 
31
- def make_full_width
32
- full_width_pill ? " full_width_pill" : nil
33
- end
34
-
35
29
  def aria_attributes
36
30
  return aria if aria.present?
37
31
 
@@ -23,20 +23,6 @@ const ProgressPillsDefault = () => {
23
23
  )
24
24
  }
25
25
 
26
- const ProgressPillsFullWidth = () => {
27
- return (
28
- <ProgressPills
29
- active={2}
30
- aria={{ label: ariaLabel }}
31
- data={{ testid: testId }}
32
- fullWidthPill
33
- steps={3}
34
- title={title}
35
- value={value}
36
- />
37
- )
38
- }
39
-
40
26
  test('should pass data prop', () => {
41
27
  render(<ProgressPillsDefault />)
42
28
  const kit = screen.getByTestId(testId)
@@ -65,15 +51,4 @@ test('should render value', () => {
65
51
  render(<ProgressPillsDefault />)
66
52
  const kit = screen.getByText(value)
67
53
  expect(kit).toBeInTheDocument()
68
- })
69
-
70
- test('should apply fullWidthPill styling when fullWidthPill prop is true', () => {
71
- render(<ProgressPillsFullWidth />)
72
- const container = screen.getByTestId(testId)
73
- const pillElements = container.querySelectorAll('.full_width_pill')
74
-
75
- expect(pillElements.length).toBeGreaterThan(0)
76
- pillElements.forEach((pill) => {
77
- expect(pill).toHaveClass('full_width_pill')
78
- })
79
- })
54
+ })