playbook_ui 10.24.0.pre.alpha1 → 10.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_background/_background.jsx +1 -1
- data/app/pb_kits/playbook/pb_background/background.rb +3 -4
- data/app/pb_kits/playbook/pb_background/background.test.js +7 -7
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_should_close_on_overlay.md +2 -2
- data/dist/reset.css +1 -60
- data/lib/playbook/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 813bd55479e3f61b872582fd3555ef0810a2e1b2e8c37a3b214664721cccb715
|
4
|
+
data.tar.gz: 4a5f12fddfeeefb71326570f2c93e86eb484c114acd0e81f831bfc80b5566d13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bc3c1d358cc2c4c9e71ae6926827cf25a9895fd62de2db3841f7b1ef58a8c6c1e896991f0c0420cd44828f3812c4e3675539ca4ed318d39b70fefef22d089ab
|
7
|
+
data.tar.gz: b9680edc3f28085f3eae5edcbdb2c3fbc3a8a22b8ad8ec1bb5d9744fcc16b39133abbcfaeafd582f00d4b9505bee699b6941a5514c6b11147c1ede51a4bfa021
|
@@ -48,7 +48,7 @@ const Background = (props: BackgroundProps) => {
|
|
48
48
|
backgroundSize: `${backgroundSize}`,
|
49
49
|
}
|
50
50
|
const getBackgroundColor = customColor ? 'pb_background_custom_color' : `pb_background_color_${backgroundColor}`
|
51
|
-
const classes = classnames(buildCss('pb_background_kit'), 'lazyload', transition, globalProps(props), getBackgroundColor, className)
|
51
|
+
const classes = classnames(buildCss('pb_background_kit'), 'lazyload', backgroundStyle, transition, globalProps(props), getBackgroundColor, className)
|
52
52
|
const Tag = `${tag}`
|
53
53
|
|
54
54
|
return (
|
@@ -48,10 +48,9 @@ module Playbook
|
|
48
48
|
private
|
49
49
|
|
50
50
|
def image_classname
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
class_buffer << " lazyload #{transition}" if image_url.present?
|
51
|
+
background_class = custom_color.present? ? "pb_background_custom_color" : "pb_background_color_#{background_color}"
|
52
|
+
background_class_lazy = image_url.present? ? " lazyload #{transition}" : ""
|
53
|
+
"#{background_class}#{background_class_lazy}"
|
55
54
|
end
|
56
55
|
end
|
57
56
|
end
|
@@ -21,6 +21,13 @@ test('backgroundColor = category_1', () => {
|
|
21
21
|
expect(kit).toHaveClass('pb_background_kit pb_background_color_category_1')
|
22
22
|
})
|
23
23
|
|
24
|
+
test('customColor prop styles background color with a hex value', () => {
|
25
|
+
const kit = renderKit(Background, props, { customColor: '#1d99a8' })
|
26
|
+
|
27
|
+
expect(kit).toHaveClass('pb_background_kit pb_background_custom_color')
|
28
|
+
expect(kit).toHaveStyle(`background-color: #1d99a8;`)
|
29
|
+
})
|
30
|
+
|
24
31
|
test('backgroundRepeat = repeat', () => {
|
25
32
|
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", backgroundRepeat: 'repeat' })
|
26
33
|
expect(kit).toHaveStyle('background-repeat: repeat')
|
@@ -30,10 +37,3 @@ test('backgroundSize = auto', () => {
|
|
30
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' })
|
31
38
|
expect(kit).toHaveStyle('background-size: auto')
|
32
39
|
})
|
33
|
-
|
34
|
-
test('customColor prop styles background color with a hex value', () => {
|
35
|
-
const kit = renderKit(Background, props, { customColor: '#1d99a8' })
|
36
|
-
|
37
|
-
expect(kit).toHaveClass('pb_background_kit pb_background_custom_color')
|
38
|
-
expect(kit).toHaveStyle(`background-color: #1d99a8;`)
|
39
|
-
})
|
@@ -1,2 +1,2 @@
|
|
1
|
-
When shouldCloseOnOverlayClick is explicitly set to `false`, click events on the overlay will not close the modal.
|
2
|
-
By default, shouldCloseOnOverlayClick is set to true.
|
1
|
+
When `shouldCloseOnOverlayClick` is explicitly set to `false`, click events on the overlay will not close the modal.
|
2
|
+
By default, `shouldCloseOnOverlayClick` is set to true.
|
data/dist/reset.css
CHANGED
@@ -1,61 +1,2 @@
|
|
1
|
-
|
2
|
-
/* Headings */
|
3
|
-
/* Standard Font Weights */
|
4
|
-
/* Non_Standard Font Weights */
|
5
|
-
/*=====================================
|
6
|
-
Base colors should not be documented.
|
7
|
-
Only document color use.
|
8
|
-
|
9
|
-
Colors -----------------------------*/
|
10
|
-
/* Specialty Gradient -----------------*/
|
11
|
-
/* Interface colors -------------------*/
|
12
|
-
/* Main colors ------------------------*/
|
13
|
-
/*=====================================
|
14
|
-
|
15
|
-
Background colors ------------------*/
|
16
|
-
/* Card colors ------------------*/
|
17
|
-
/* Active colors ----------------------*/
|
18
|
-
/* Hover colors -----------------------*/
|
19
|
-
/* Focus colors -----------------------*/
|
20
|
-
/* Border colors ----------------------*/
|
21
|
-
/* Shadow colors ----------------------*/
|
22
|
-
/* Text colors ------------------------*/
|
23
|
-
/* Data colors ------------------------*/
|
24
|
-
/* Status colors ----------------------*/
|
25
|
-
/* Link colors ------------------------*/
|
26
|
-
/* Product colors ---------------------*/
|
27
|
-
/* Category colors ---------------------*/
|
28
|
-
* {
|
29
|
-
box-sizing: border-box;
|
30
|
-
margin: 0;
|
31
|
-
padding: 0; }
|
32
|
-
*:before, *:after {
|
33
|
-
box-sizing: border-box; }
|
34
|
-
|
35
|
-
html {
|
36
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
37
|
-
height: 100vh;
|
38
|
-
overflow-x: hidden; }
|
39
|
-
|
40
|
-
body {
|
41
|
-
font-family: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans_serif;
|
42
|
-
font-size: 16px;
|
43
|
-
line-height: 1.5;
|
44
|
-
background-color: #F3F7FB;
|
45
|
-
height: 100%;
|
46
|
-
letter-spacing: 0;
|
47
|
-
font-weight: 400;
|
48
|
-
font-style: normal;
|
49
|
-
text-rendering: optimizeLegibility;
|
50
|
-
-moz-font-feature-settings: "liga" on;
|
51
|
-
color: #242B42;
|
52
|
-
margin: 0 !important;
|
53
|
-
padding: 0 !important;
|
54
|
-
box-sizing: border-box;
|
55
|
-
min-height: 100vh;
|
56
|
-
padding: 50px; }
|
57
|
-
|
58
|
-
a {
|
59
|
-
text-decoration: none;
|
60
|
-
color: #0056CF; }
|
1
|
+
*{box-sizing:border-box;margin:0;padding:0}*:before,*:after{box-sizing:border-box}html{-webkit-tap-highlight-color:rgba(0,0,0,0);height:100vh;overflow-x:hidden}body{font-family:"Proxima Nova","Helvetica Neue",Helvetica,Arial,sans_serif;font-size:16px;line-height:1.5;background-color:#F3F7FB;height:100%;letter-spacing:0;font-weight:400;font-style:normal;text-rendering:optimizeLegibility;-moz-font-feature-settings:"liga" on;color:#242B42;margin:0 !important;padding:0 !important;box-sizing:border-box;min-height:100vh;padding:50px}a{text-decoration:none;color:#0056CF}
|
61
2
|
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.24.0
|
4
|
+
version: 10.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-03-
|
12
|
+
date: 2022-03-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -2166,9 +2166,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2166
2166
|
version: '0'
|
2167
2167
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2168
2168
|
requirements:
|
2169
|
-
- - "
|
2169
|
+
- - ">="
|
2170
2170
|
- !ruby/object:Gem::Version
|
2171
|
-
version:
|
2171
|
+
version: '0'
|
2172
2172
|
requirements: []
|
2173
2173
|
rubygems_version: 3.1.6
|
2174
2174
|
signing_key:
|