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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +5 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.scss +66 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.tsx +98 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb +28 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.rb +42 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.html.erb +19 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +26 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.html.erb +10 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +17 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +19 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_onclick.html.erb +16 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb +35 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +42 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb +13 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +15 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +4 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/pb_avatar_action_button.test.js +31 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.scss +1 -6
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.tsx +5 -7
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.jsx +0 -7
- data/app/pb_kits/playbook/pb_progress_pills/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/progress_pills.html.erb +1 -1
- data/app/pb_kits/playbook/pb_progress_pills/progress_pills.rb +0 -6
- data/app/pb_kits/playbook/pb_progress_pills/progress_pills.test.js +1 -26
- data/dist/chunks/{_typeahead-CAIQfP7X.js → _typeahead-B9UYfqxU.js} +1 -1
- data/dist/chunks/_weekday_stacked-BoCeTceb.js +45 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +7 -0
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +20 -13
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_custom_cell.jsx +0 -75
- data/app/pb_kits/playbook/pb_bar_graph/BarGraphStyles.scss +0 -58
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +0 -64
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_default.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.html.erb +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.jsx +0 -18
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_rails.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_react.md +0 -1
- data/dist/chunks/_weekday_stacked-CsxncF8U.js +0 -45
@@ -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
|
@@ -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.
|
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
|
+
})
|