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 +4 -4
- data/app/pb_kits/playbook/pb_background/_background.scss +0 -26
- data/app/pb_kits/playbook/pb_background/_background.tsx +3 -6
- data/app/pb_kits/playbook/pb_background/background.test.js +0 -5
- data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_table/styles/_headers.scss +19 -7
- data/dist/chunks/{_typeahead-1gVtCLYL.js → _typeahead-7W5Ha5Td.js} +1 -1
- data/dist/chunks/{_weekday_stacked-Cl62R0Ef.js → _weekday_stacked-DSKatW3m.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- 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 +4 -6
- data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +0 -36
- data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 969d8f953b72c120ee22a7f0ad6381c35639955a434520b7e92d8e986c29893b
|
4
|
+
data.tar.gz: a280b1355c18645d12ea03c0aae885a3793edc96bb56927b6917ca5288b3e350
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
});
|
@@ -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
|
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
|
}
|