playbook_ui 14.25.0.pre.alpha.testingcss9752 → 14.25.0.pre.alpha.testingcss9798

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed4f1f3a70cc4486f199424e2ae5e69500be2c1a780404209f74a2097e731c10
4
- data.tar.gz: a3bf85967f71684e48fbe4af27a02dbdfd14bf2abcd58542e18386c70ef44bf3
3
+ metadata.gz: 5be7aa941d1c03b6131a2df30b8d11f4dfddf7c8f5dc4372b2369df7d58fe6ed
4
+ data.tar.gz: f8879e9b0dfd2a424a1e17931b0a06710b58a6a352604f7c3bc637903be79252
5
5
  SHA512:
6
- metadata.gz: 2135a3bf51467e881b09d6cad8b060b4b706387aa9f0b6902813bc8ceb4f2b61b121341a0a8b2614886629f57117bda38d494ebf5328a904d2ea817a872bc17a
7
- data.tar.gz: 3e664ad9bca844566163a9e2558241765db4aa66f3589e3f02de654677189972e81d4cfd9a981c54d5a75103edd2f7b18aa0f9dad69c42133f581bad46875ca7
6
+ metadata.gz: d2c3c2321c62420d0296f925a3a5b8468ecb25e08eba3b5b1e2d1e80c6141462bf536cef0c2b3610117d7f499e9cd2dca14b99ad9922b5b24f8f0a77e69823c8
7
+ data.tar.gz: 588a432377d4322d6371f8d41e157467240a63ee95975d84aea02da07e74d8db24100ad78534b8202466892e53333333ebc32f5d11b9da7503d7055189271915
@@ -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
- // render(
42
- // <CopyButton
43
- // data={{ testid: 'text-test' }}
44
- // text={"text"}
45
- // tooltipPlacement="right"
46
- // tooltipText="Text copied!"
47
- // value="copy"
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
- // const content = screen.getByText("text")
52
- // expect(content).toHaveTextContent("text")
51
+ const content = screen.getByText("text")
52
+ expect(content).toHaveTextContent("text")
53
53
 
54
- // const kit = screen.getByTestId('text-test')
55
- // const button = kit.querySelector('.pb_button_kit_primary_inline_enabled')
56
- // expect(button).toBeInTheDocument()
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
- // fireEvent.click(button)
59
- // const tooltipContent = screen.getByText("Text copied!")
60
- // expect(tooltipContent).toHaveTextContent("Text copied!")
58
+ fireEvent.click(button)
59
+ const tooltipContent = screen.getByText("Text copied!")
60
+ expect(tooltipContent).toHaveTextContent("Text copied!")
61
61
 
62
- // const tooltip = kit.querySelector('.pb_tooltip_kit')
63
- // expect(tooltip).toBeInTheDocument()
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
- .pb_body_light {
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
- "pb_flex_kit",
55
- orientation_class,
56
- justify_class,
57
- align_class,
58
- inline_class,
59
- reverse_class,
60
- wrap_class,
61
- spacing_class,
62
- gap_class,
63
- row_gap_class,
64
- column_gap_class,
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
@@ -52,8 +52,8 @@ $image-sizes: (
52
52
 
53
53
  @each $name, $size in $image-sizes {
54
54
  .pb_image_kit_size_#{$name} {
55
- width: $size;
56
- height: $size;
55
+ width: $size !important;
56
+ height: $size !important;
57
57
  object-fit: cover;
58
58
  position: relative;
59
59
  flex-shrink: 0;
@@ -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
- // 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
- // }
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
- // 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()
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
+ })
@@ -7,6 +7,7 @@
7
7
  .pb_title_kit {
8
8
  // Base title styles - default to title 3 styling
9
9
  @include pb_title_3;
10
+ @include pb_title_bold;
10
11
 
11
12
  // Size-based styles (these will override the base)
12
13
  &.pb_title_1 {