playbook_ui 14.7.0.pre.rc.1 → 14.7.0.pre.rc.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97e022188be89f5e7f7a02da3841f70683e9b00d2dabd88d14bdf97f9093850e
4
- data.tar.gz: 4def876cd0bc80cdf8a57abd022dceeb68984b3777f767a5520065b3672462f4
3
+ metadata.gz: c76c190d5734c121f79581fe3fbb9b190ea5f8c89d0406dd5cb6b911017f1112
4
+ data.tar.gz: 3f46a0cb2e6dd1742c69c689578033a42be57b15cb0f9b462e9596b0f1b68e1a
5
5
  SHA512:
6
- metadata.gz: 34a06d4039f155fef99b06b9636b78c4901a689c550485566020f0a3aa345972dc7b9476a2d16b886a5ff2cffec9bc5cb7b2b0eb74f01395de1e1383191726d4
7
- data.tar.gz: 3320d846f2b1d958e9b9fd46aca5bd2218e1d49bb25d92366b07d358a6baf296c97e90a1039e65acce9bd0eccc18769e097e8a23e146004fee014acaa071df5d
6
+ metadata.gz: 2c2a089c8b96e2b2379fb02ca717d109271c4e9c541a41b13412cb0a075d6cb71a5e953243d461f7f161b7b36466135b931164455cd57ab3360c9a6eacf5491b
7
+ data.tar.gz: '09333d2a878f0f1bf08a331b2e19512550e893175fc949c0f8aceee8fe5e7f85b43cc2f31f70a6515f2214f3d8ea99fdaa48f89a3986da2c5ae34fc1d942a21c'
@@ -9,7 +9,7 @@
9
9
 
10
10
  @import "./scss_partials/dropdown_animation";
11
11
 
12
- .pb_dropdown {
12
+ [class*="pb_dropdown"] {
13
13
  .dropdown_wrapper {
14
14
  [class*="dropdown_trigger_wrapper"] {
15
15
  @include pb_body;
@@ -131,7 +131,7 @@
131
131
  }
132
132
  }
133
133
 
134
- &.separators_hidden {
134
+ &[class*="separators_hidden"] {
135
135
  .dropdown_wrapper {
136
136
  .pb_dropdown_container {
137
137
 
@@ -142,7 +142,7 @@
142
142
  }
143
143
  }
144
144
 
145
- &.subtle {
145
+ &[class*="subtle"] {
146
146
  .dropdown_wrapper {
147
147
  .pb_dropdown_container {
148
148
 
@@ -178,7 +178,7 @@
178
178
  }
179
179
  }
180
180
 
181
- &.separators_hidden {
181
+ &[class*="separators_hidden"] {
182
182
  .dropdown_wrapper {
183
183
  .pb_dropdown_container {
184
184
  [class*="pb_dropdown_option"]:first-child {
@@ -74,10 +74,8 @@ const Dropdown = forwardRef((props: DropdownProps, ref: any) => {
74
74
  const htmlProps = buildHtmlProps(htmlOptions);
75
75
  const separatorsClass = separators ? '' : 'separators_hidden'
76
76
  const classes = classnames(
77
- buildCss("pb_dropdown"),
77
+ buildCss("pb_dropdown", variant, separatorsClass),
78
78
  globalProps(props),
79
- variant,
80
- separatorsClass,
81
79
  className
82
80
  );
83
81
 
@@ -24,7 +24,7 @@ module Playbook
24
24
  end
25
25
 
26
26
  def classname
27
- generate_classname("pb_dropdown", variant, separators_class, separator: " ")
27
+ generate_classname("pb_dropdown", variant, separators_class)
28
28
  end
29
29
 
30
30
  private
@@ -38,7 +38,7 @@ module Playbook
38
38
  end
39
39
 
40
40
  def separators_class
41
- separators ? "" : "separators_hidden"
41
+ separators ? nil : "separators_hidden"
42
42
  end
43
43
 
44
44
  def options_with_blank
@@ -50,7 +50,7 @@ test('generated default kit and classname', () => {
50
50
 
51
51
  const kit = screen.getByTestId(testId)
52
52
  expect(kit).toBeInTheDocument()
53
- expect(kit).toHaveClass('pb_dropdown')
53
+ expect(kit).toHaveClass('pb_dropdown_default')
54
54
  })
55
55
 
56
56
  test('generated default Trigger and Container when none passed in', () => {