playbook_ui 10.27.0.pre.lazysizes1 → 11.0.0.pre.alpha.1
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_form/form.rb +1 -1
- data/app/pb_kits/playbook/pb_image/_image.scss +4 -9
- data/app/pb_kits/playbook/pb_image/_image.tsx +10 -14
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +6 -3
- data/app/pb_kits/playbook/playbook-rails.js +0 -1
- data/lib/playbook/props.rb +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba99152ecbeab24cac6ea0be5c389d35fac8c6e35698aa5c6b5aa0b6499a631a
|
|
4
|
+
data.tar.gz: 6c03e5095d32c664dcd83c68532acbb3affd7ddf8be63bc654d67c08fc6838de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b65dde7cdc094167c4e7efdd172ec520e76dcf4cf7cebd2bb6539ffe782028044d97869b99241297e7b36c7d19f85b99209122a5fc54856f0619e60e952d2053
|
|
7
|
+
data.tar.gz: bc779ff7b9013fd2ec1d15ba51c676b131f6b474f962e0959d435a0cc7a166597d72c86dd6011e1d2e4cda7a43ad1bb5c985569d6b37c043be86e3bc14f81939
|
|
@@ -11,9 +11,9 @@ $image-sizes: (
|
|
|
11
11
|
|
|
12
12
|
[class^=pb_image_kit] {
|
|
13
13
|
position: relative;
|
|
14
|
+
object-fit: cover;
|
|
14
15
|
|
|
15
16
|
@each $name, $size in $image-sizes {
|
|
16
|
-
&.ls-blur-up-img,
|
|
17
17
|
&[class*=size_#{$name}] {
|
|
18
18
|
width: $size;
|
|
19
19
|
height: $size;
|
|
@@ -22,16 +22,13 @@ $image-sizes: (
|
|
|
22
22
|
flex-shrink: 0;
|
|
23
23
|
flex-grow: 0;
|
|
24
24
|
flex-basis: $size;
|
|
25
|
-
font-family: "blur-up: auto", "object-fit: cover";
|
|
26
|
-
object-fit: cover;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
&[class*= rounded] {
|
|
30
28
|
border-radius: $border-rad-heaviest;
|
|
31
29
|
}
|
|
32
30
|
|
|
33
|
-
&.
|
|
34
|
-
&.fade:not(.ls-is-cached) {
|
|
31
|
+
&.fade {
|
|
35
32
|
opacity: 0;
|
|
36
33
|
&.lazyloaded {
|
|
37
34
|
opacity: 1;
|
|
@@ -39,8 +36,7 @@ $image-sizes: (
|
|
|
39
36
|
}
|
|
40
37
|
}
|
|
41
38
|
|
|
42
|
-
&.
|
|
43
|
-
&.blur:not(.ls-is-cached) {
|
|
39
|
+
&.blur {
|
|
44
40
|
filter: blur(5px);
|
|
45
41
|
&.lazyloaded {
|
|
46
42
|
-webkit-filter: blur(0);
|
|
@@ -49,8 +45,7 @@ $image-sizes: (
|
|
|
49
45
|
}
|
|
50
46
|
}
|
|
51
47
|
|
|
52
|
-
&.
|
|
53
|
-
&.scale:not(.ls-is-cached) {
|
|
48
|
+
&.scale {
|
|
54
49
|
opacity: 0;
|
|
55
50
|
transform: scale(0.9);
|
|
56
51
|
&.lazyloaded {
|
|
@@ -2,8 +2,6 @@ import React from 'react'
|
|
|
2
2
|
import classnames from 'classnames'
|
|
3
3
|
import { GlobalProps, globalProps } from '../utilities/globalProps'
|
|
4
4
|
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
|
5
|
-
import 'lazysizes';
|
|
6
|
-
import 'lazysizes/plugins/blur-up/ls.blur-up';
|
|
7
5
|
|
|
8
6
|
type ImageType = {
|
|
9
7
|
alt?: string,
|
|
@@ -44,18 +42,16 @@ const Image = (props: ImageType): React.ReactElement => {
|
|
|
44
42
|
const dataProps = buildDataProps(data)
|
|
45
43
|
|
|
46
44
|
return (
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
/>
|
|
58
|
-
</>
|
|
45
|
+
<img
|
|
46
|
+
{...ariaProps}
|
|
47
|
+
{...dataProps}
|
|
48
|
+
alt={alt}
|
|
49
|
+
className={classes}
|
|
50
|
+
data-src={url}
|
|
51
|
+
id={id}
|
|
52
|
+
onError={onError}
|
|
53
|
+
src={url}
|
|
54
|
+
/>
|
|
59
55
|
)
|
|
60
56
|
}
|
|
61
57
|
|
|
@@ -60,9 +60,12 @@ module Playbook
|
|
|
60
60
|
plusIcon: plus_icon,
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
base_options
|
|
64
|
-
base_options
|
|
65
|
-
|
|
63
|
+
base_options[:getOptionLabel] = get_option_label if get_option_label.present?
|
|
64
|
+
base_options[:getOptionValue] = get_option_value if get_option_value.present?
|
|
65
|
+
if async
|
|
66
|
+
base_options[:async] = true
|
|
67
|
+
base_options[:loadOptions] = load_options
|
|
68
|
+
end
|
|
66
69
|
base_options
|
|
67
70
|
end
|
|
68
71
|
end
|
data/lib/playbook/props.rb
CHANGED
|
@@ -48,7 +48,7 @@ module Playbook
|
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
def prop(name, type: Playbook::Props::String, **options)
|
|
51
|
-
self.props = props.merge(name => type.new(options.merge(name: name, kit: self)))
|
|
51
|
+
self.props = props.merge(name => type.new(**options.merge(name: name, kit: self)))
|
|
52
52
|
|
|
53
53
|
define_method(name) { prop(name) }
|
|
54
54
|
end
|
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:
|
|
4
|
+
version: 11.0.0.pre.alpha.1
|
|
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-05-
|
|
12
|
+
date: 2022-05-31 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: actionpack
|
|
@@ -205,14 +205,14 @@ dependencies:
|
|
|
205
205
|
requirements:
|
|
206
206
|
- - '='
|
|
207
207
|
- !ruby/object:Gem::Version
|
|
208
|
-
version: 1.
|
|
208
|
+
version: 1.23.0
|
|
209
209
|
type: :development
|
|
210
210
|
prerelease: false
|
|
211
211
|
version_requirements: !ruby/object:Gem::Requirement
|
|
212
212
|
requirements:
|
|
213
213
|
- - '='
|
|
214
214
|
- !ruby/object:Gem::Version
|
|
215
|
-
version: 1.
|
|
215
|
+
version: 1.23.0
|
|
216
216
|
- !ruby/object:Gem::Dependency
|
|
217
217
|
name: rubocop-performance
|
|
218
218
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -2212,7 +2212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
2212
2212
|
- !ruby/object:Gem::Version
|
|
2213
2213
|
version: 1.3.1
|
|
2214
2214
|
requirements: []
|
|
2215
|
-
rubygems_version: 3.
|
|
2215
|
+
rubygems_version: 3.3.7
|
|
2216
2216
|
signing_key:
|
|
2217
2217
|
specification_version: 4
|
|
2218
2218
|
summary: Playbook Design System
|