playbook_ui 14.25.0.pre.alpha.testingcss9752 → 14.25.0.pre.alpha.testingcss9796
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/pb_copy_button/copy_button.test.jsx +19 -19
- data/app/pb_kits/playbook/pb_currency/_currency.scss +2 -2
- data/app/pb_kits/playbook/pb_flex/flex.rb +12 -52
- data/app/pb_kits/playbook/pb_flex/flex_item.rb +1 -46
- data/app/pb_kits/playbook/pb_image/_image.scss +2 -2
- data/app/pb_kits/playbook/pb_selectable_list/_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_selectable_list/selectable_list.test.js +24 -24
- data/app/pb_kits/playbook/pb_title/_title.scss +1 -0
- data/dist/chunks/{_weekday_stacked-BWNmT-C6.js → _weekday_stacked-C3QAjEFv.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bedb56f538523718e8f5b7f585a2670de123f7beb3f2fc42224751cc4ce5638
|
4
|
+
data.tar.gz: 8228f719bffa4de746fc494c2a38c5e2dbdbe676c7696f3b7566013997c2dd93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad617882ed8a3ce22a8a824a3ec1b86f8c526bbd57a903d9e116e894bce32833ffc57813fc54f23ddaf3e0a9a6e2be264f9d288d1eacd34aec365126419970b1
|
7
|
+
data.tar.gz: a69a24578b65fa9ca6a9c5255e6d9340073acfc7215b2d82fd3ed55c965cd45d7c27fcf4628d4f8bb0ad043d5c9c2752be3debe7378e843dadc5ae05d874fd8e
|
@@ -38,27 +38,27 @@ it('copies the value to clipboard and pastes it into an input', async () => {
|
|
38
38
|
})
|
39
39
|
|
40
40
|
test('passes text and tooltip props to button', () => {
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
41
|
+
render(
|
42
|
+
<CopyButton
|
43
|
+
data={{ testid: 'text-test' }}
|
44
|
+
text={"text"}
|
45
|
+
tooltipPlacement="right"
|
46
|
+
tooltipText="Text copied!"
|
47
|
+
value="copy"
|
48
|
+
/>
|
49
|
+
)
|
50
50
|
|
51
|
-
|
52
|
-
|
51
|
+
const content = screen.getByText("text")
|
52
|
+
expect(content).toHaveTextContent("text")
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
const kit = screen.getByTestId('text-test')
|
55
|
+
const button = kit.querySelector('.pb_button_kit.pb_button_primary.pb_button_inline.pb_button_enabled')
|
56
|
+
expect(button).toBeInTheDocument()
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
58
|
+
fireEvent.click(button)
|
59
|
+
const tooltipContent = screen.getByText("Text copied!")
|
60
|
+
expect(tooltipContent).toHaveTextContent("Text copied!")
|
61
61
|
|
62
|
-
|
63
|
-
|
62
|
+
const tooltip = kit.querySelector('.pb_tooltip_kit')
|
63
|
+
expect(tooltip).toBeInTheDocument()
|
64
64
|
})
|
@@ -14,7 +14,7 @@
|
|
14
14
|
&.pb_currency_kit_center_md,
|
15
15
|
&.pb_currency_kit_center_lg {
|
16
16
|
text-align: center;
|
17
|
-
& > .pb_caption_kit,
|
17
|
+
& > .pb_caption_kit,font-weight
|
18
18
|
& > .pb_title_kit,
|
19
19
|
& > .pb_body_kit {
|
20
20
|
text-align: center;
|
@@ -82,7 +82,7 @@
|
|
82
82
|
|
83
83
|
&.pb_currency_wrapper_bold {
|
84
84
|
.pb_body_kit,
|
85
|
-
.
|
85
|
+
.pb_body_kit_light {
|
86
86
|
color: $text_lt_default;
|
87
87
|
font-weight: $bolder;
|
88
88
|
}
|
@@ -50,58 +50,18 @@ module Playbook
|
|
50
50
|
default: false
|
51
51
|
|
52
52
|
def classname
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
align_self_class,
|
66
|
-
prop(:classname),
|
67
|
-
spacing_props,
|
68
|
-
dark_props,
|
69
|
-
width_props,
|
70
|
-
min_width_props,
|
71
|
-
max_width_props,
|
72
|
-
gap_props,
|
73
|
-
z_index_props,
|
74
|
-
number_spacing_props,
|
75
|
-
shadow_props,
|
76
|
-
line_height_props,
|
77
|
-
display_props,
|
78
|
-
cursor_props,
|
79
|
-
flex_direction_props,
|
80
|
-
flex_wrap_props,
|
81
|
-
justify_content_props,
|
82
|
-
justify_self_props,
|
83
|
-
align_items_props,
|
84
|
-
align_content_props,
|
85
|
-
align_self_props,
|
86
|
-
flex_props,
|
87
|
-
flex_grow_props,
|
88
|
-
flex_shrink_props,
|
89
|
-
order_props,
|
90
|
-
position_props,
|
91
|
-
hover_props,
|
92
|
-
border_radius_props,
|
93
|
-
text_align_props,
|
94
|
-
overflow_props,
|
95
|
-
truncate_props,
|
96
|
-
left_props,
|
97
|
-
top_props,
|
98
|
-
right_props,
|
99
|
-
bottom_props,
|
100
|
-
vertical_align_props,
|
101
|
-
height_props,
|
102
|
-
min_height_props,
|
103
|
-
max_height_props,
|
104
|
-
].compact.flatten.join(" ")
|
53
|
+
generate_classname("pb_flex_kit",
|
54
|
+
orientation_class,
|
55
|
+
justify_class,
|
56
|
+
align_class,
|
57
|
+
inline_class,
|
58
|
+
reverse_class,
|
59
|
+
wrap_class,
|
60
|
+
spacing_class,
|
61
|
+
gap_class,
|
62
|
+
row_gap_class,
|
63
|
+
column_gap_class,
|
64
|
+
align_self_class, separator: " ")
|
105
65
|
end
|
106
66
|
|
107
67
|
private
|
@@ -17,52 +17,7 @@ module Playbook
|
|
17
17
|
default: false
|
18
18
|
|
19
19
|
def classname
|
20
|
-
|
21
|
-
"pb_flex_item_kit",
|
22
|
-
fixed_size_class,
|
23
|
-
grow_class,
|
24
|
-
shrink_class,
|
25
|
-
display_flex_class,
|
26
|
-
align_self_class,
|
27
|
-
prop(:classname),
|
28
|
-
spacing_props,
|
29
|
-
dark_props,
|
30
|
-
width_props,
|
31
|
-
min_width_props,
|
32
|
-
max_width_props,
|
33
|
-
gap_props,
|
34
|
-
z_index_props,
|
35
|
-
number_spacing_props,
|
36
|
-
shadow_props,
|
37
|
-
line_height_props,
|
38
|
-
display_props,
|
39
|
-
cursor_props,
|
40
|
-
flex_direction_props,
|
41
|
-
flex_wrap_props,
|
42
|
-
justify_content_props,
|
43
|
-
justify_self_props,
|
44
|
-
align_items_props,
|
45
|
-
align_content_props,
|
46
|
-
align_self_props,
|
47
|
-
flex_props,
|
48
|
-
flex_grow_props,
|
49
|
-
flex_shrink_props,
|
50
|
-
order_props,
|
51
|
-
position_props,
|
52
|
-
hover_props,
|
53
|
-
border_radius_props,
|
54
|
-
text_align_props,
|
55
|
-
overflow_props,
|
56
|
-
truncate_props,
|
57
|
-
left_props,
|
58
|
-
top_props,
|
59
|
-
right_props,
|
60
|
-
bottom_props,
|
61
|
-
vertical_align_props,
|
62
|
-
height_props,
|
63
|
-
min_height_props,
|
64
|
-
max_height_props,
|
65
|
-
].compact.flatten.join(" ")
|
20
|
+
generate_classname("pb_flex_item_kit", fixed_size_class, grow_class, shrink_class, display_flex_class, align_self_class, separator: " ")
|
66
21
|
end
|
67
22
|
|
68
23
|
def inline_styles
|
@@ -99,10 +99,10 @@ const SelectableListItem = ({
|
|
99
99
|
{variant == "radio" && (
|
100
100
|
<>
|
101
101
|
<Radio
|
102
|
+
className="ml_xs"
|
102
103
|
defaultChecked={defaultChecked}
|
103
104
|
id={id}
|
104
105
|
label={label}
|
105
|
-
marginLeft="xs"
|
106
106
|
name={name}
|
107
107
|
onChange={onChange}
|
108
108
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
@@ -24,24 +24,24 @@ const SelectableListCheckbox = () => {
|
|
24
24
|
)
|
25
25
|
}
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
27
|
+
const SelectableListRadio = () => {
|
28
|
+
return (
|
29
|
+
<SelectableList
|
30
|
+
data={{ testid: testId }}
|
31
|
+
variant="radio">
|
32
|
+
<SelectableList.Item
|
33
|
+
label="Small"
|
34
|
+
name="radio"
|
35
|
+
value="1"
|
36
|
+
/>
|
37
|
+
<SelectableList.Item
|
38
|
+
label="Medium"
|
39
|
+
name="radio"
|
40
|
+
value="2"
|
41
|
+
/>
|
42
|
+
</SelectableList>
|
43
|
+
)
|
44
|
+
}
|
45
45
|
|
46
46
|
|
47
47
|
test("classname renders as expected", () => {
|
@@ -58,10 +58,10 @@ test("renders variant checkbox", () => {
|
|
58
58
|
expect(checkbox).toBeInTheDocument()
|
59
59
|
})
|
60
60
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
61
|
+
test("renders variant radio", () => {
|
62
|
+
render(<SelectableListRadio />)
|
63
|
+
const kit = screen.getByTestId("selectable-list-test")
|
64
|
+
const radio = kit.querySelector("input[type='radio']")
|
65
|
+
expect(radio).toBeInTheDocument()
|
66
66
|
|
67
|
-
|
67
|
+
})
|