playbook_ui 14.17.0.pre.alpha.play1499backgroundkitoverlay7110 → 14.17.0.pre.alpha.play1964tablekitheadertextstylefix7164

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: 0aa6639822cd2ea1f1956a8e184d0194086ae25e2307d7c6233469ff6889722c
4
- data.tar.gz: ccc5ed747a8511d0fe4f51c6bfe152b5cffc40aab95acc09867ed30874f0acb8
3
+ metadata.gz: 969d8f953b72c120ee22a7f0ad6381c35639955a434520b7e92d8e986c29893b
4
+ data.tar.gz: a280b1355c18645d12ea03c0aae885a3793edc96bb56927b6917ca5288b3e350
5
5
  SHA512:
6
- metadata.gz: d4e5a6fa4924c2cb68814350e0bd7ed4e5f5952c77b0f695ec72d006d3e370c94ed013d7cdfe7998e59e36601e249b3474aa1c1f93e6407958bfc37e1e3f84d9
7
- data.tar.gz: d88379f2a0912b9058238866fd54ed60f15b54c584f828219918343e07963292dfcaef332f535f53049338ff0a9a09f24b31e27691b8fdf4f0a3fddad0ee5fd9
6
+ metadata.gz: d920023d5258eb6043354f1829129b633214edc22d9b8047ded1ca2d14425de5aa5aaa132fc9344263b59ec139db501d7c23e8a41688ed6bfdf7f8cacaa108c1
7
+ data.tar.gz: 555b457fcac333ef6b93fb46530bc10e5b766db7004605eb9f5a61a7719e448683dff9274cd2ae7da00aa237ab7a224f50906b3144802e3af6505475abbbfa34
@@ -55,30 +55,4 @@ $background_colors: map-merge($additional_colors, $merge_kits7);
55
55
  transition: 700ms ease-in;
56
56
  }
57
57
  }
58
-
59
- &[class*=imageoverlay] {
60
- position: relative;
61
-
62
- &:before {
63
- content: "";
64
- position: absolute;
65
- top: 0;
66
- left: 0;
67
- right: 0;
68
- bottom: 0;
69
- z-index: 1;
70
- background-color: inherit;
71
- }
72
-
73
- * {
74
- position: relative;
75
- z-index: 2;
76
- }
77
- }
78
-
79
- @each $key, $value in $opacity {
80
- &.imageoverlay_#{$key}::before {
81
- opacity: $value;
82
- }
83
- }
84
58
  }
@@ -25,7 +25,6 @@ type BackgroundProps = {
25
25
  backgroundPosition?: ResponsiveProp<string> | string,
26
26
  backgroundRepeat?: ResponsiveProp<BackgroundRepeat> | BackgroundRepeat,
27
27
  imageUrl?: ResponsiveProp<string> | string,
28
- imageOverlay?: 'opacity_1' | 'opacity_2' | 'opacity_3' | 'opacity_4' | 'opacity_5' | 'opacity_6' | 'opacity_7' | 'opacity_8' | 'opacity_9' | 'opacity_10',
29
28
  children?: React.ReactChild[] | React.ReactNode,
30
29
  className?: string,
31
30
  customColor?: string,
@@ -84,12 +83,11 @@ const Background = (props: BackgroundProps): React.ReactElement => {
84
83
  data = {},
85
84
  htmlOptions = {},
86
85
  id,
87
- imageOverlay,
88
86
  imageUrl = '',
89
87
  tag = 'div',
90
88
  transition = '',
91
89
  } = props
92
-
90
+
93
91
  const [responsiveProps, setResponsiveProps] = useState({
94
92
  backgroundSize: getResponsiveValue(backgroundSize),
95
93
  backgroundPosition: getResponsiveValue(backgroundPosition),
@@ -134,7 +132,6 @@ const Background = (props: BackgroundProps): React.ReactElement => {
134
132
  [`pb_background_color_${resBackgroundColor}`]: resBackgroundColor && !customColor,
135
133
  [`pb_background_custom_color`]: !!customColor,
136
134
  },
137
- imageOverlay ? `imageoverlay_${imageOverlay}` : "",
138
135
  className
139
136
  );
140
137
 
@@ -158,7 +155,7 @@ const Background = (props: BackgroundProps): React.ReactElement => {
158
155
  const ariaProps = buildAriaProps(aria);
159
156
  const dataProps = buildDataProps(data);
160
157
  const htmlProps = buildHtmlProps(htmlOptions);
161
-
158
+
162
159
  return (
163
160
  <Tag
164
161
  {...ariaProps}
@@ -171,7 +168,7 @@ const Background = (props: BackgroundProps): React.ReactElement => {
171
168
  >
172
169
  {children}
173
170
  </Tag>
174
-
171
+
175
172
  )
176
173
  }
177
174
 
@@ -37,8 +37,3 @@ test('backgroundSize = auto', () => {
37
37
  const kit = renderKit(Background, props, { classname: "background-image", imageUrl: "https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1000&q=80", backgroundSize: 'auto' })
38
38
  expect(kit).toHaveStyle('background-size: auto')
39
39
  })
40
-
41
- test('applies correct overlay class when imageOverlay prop is provided', () => {
42
- const kit = renderKit(Background, props, { imageOverlay: 'opacity_6' });
43
- expect(kit).toHaveClass('imageoverlay_opacity_6');
44
- });
@@ -11,7 +11,6 @@ examples:
11
11
  - background_size: Size
12
12
 
13
13
  react:
14
- - background_overlay: Overlay
15
14
  - background_light: Light
16
15
  - background_white: White
17
16
  - background_gradient: Gradient
@@ -6,4 +6,3 @@ export { default as BackgroundStatus } from './_background_status.jsx'
6
6
  export { default as BackgroundStatusSubtle } from './_background_status_subtle.jsx'
7
7
  export { default as BackgroundCategory } from './_background_category.jsx'
8
8
  export { default as BackgroundSize } from './_background_size.jsx'
9
- export { default as BackgroundOverlay } from './_background_overlay.jsx'
@@ -6,8 +6,20 @@
6
6
  &.table-lg {
7
7
  thead, .pb_table_thead {
8
8
  tr, .pb_table_tr {
9
- th, .pb_table_th {
9
+ th:not(:has(
10
+ [class*="pb_body_kit"],
11
+ [class*="pb_detail_kit"],
12
+ [class*="pb_title_kit"]
13
+ )),
14
+ .pb_table_th:not(:has(
15
+ [class*="pb_body_kit"],
16
+ [class*="pb_detail_kit"],
17
+ [class*="pb_title_kit"]
18
+ )) {
10
19
  @include caption;
20
+ }
21
+
22
+ th, .pb_table_th {
11
23
  border-bottom: 1px solid $border_light;
12
24
  }
13
25
  }
@@ -83,10 +95,10 @@
83
95
 
84
96
  // flatten out corners for floating headerstyle variant to avoid small triangle of white/empty space
85
97
  .header-floating > thead > tr:first-child > th:first-child,
86
- .header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:first-child {
87
- border-top-left-radius: 0 !important;
88
- }
89
- .header-floating > thead > tr:first-child > th:last-child,
90
- .header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:last-child {
91
- border-top-right-radius: 0 !important;
98
+ .header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:first-child {
99
+ border-top-left-radius: 0 !important;
100
+ }
101
+ .header-floating > thead > tr:first-child > th:last-child,
102
+ .header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:last-child {
103
+ border-top-right-radius: 0 !important;
92
104
  }