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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17b5223ce5053256ecdeca31b0cba4aa944be3e036c5a7f87e618ac210743c70
4
- data.tar.gz: 249659c9162fc5866c95f4e7ca93526242cac418d643805106a30024a8f68387
3
+ metadata.gz: ba99152ecbeab24cac6ea0be5c389d35fac8c6e35698aa5c6b5aa0b6499a631a
4
+ data.tar.gz: 6c03e5095d32c664dcd83c68532acbb3affd7ddf8be63bc654d67c08fc6838de
5
5
  SHA512:
6
- metadata.gz: 5795693f1395e8770cac42d3883e784a21249937f31da3608e04c9109e6e07e765a6650f958108fb826a2bc76d99ed4bd8d14395dcf485c3beebd1cb6c0b5239
7
- data.tar.gz: b784cac79800c6c20578e8d5b411f665bcbc75ece551eaa577b9026c2ed8de31abf0f785007861b23d27f249579435378cae0ed9f5b4ae9e4df141ac237fae3c
6
+ metadata.gz: b65dde7cdc094167c4e7efdd172ec520e76dcf4cf7cebd2bb6539ffe782028044d97869b99241297e7b36c7d19f85b99209122a5fc54856f0619e60e952d2053
7
+ data.tar.gz: bc779ff7b9013fd2ec1d15ba51c676b131f6b474f962e0959d435a0cc7a166597d72c86dd6011e1d2e4cda7a43ad1bb5c985569d6b37c043be86e3bc14f81939
@@ -11,7 +11,7 @@ module Playbook
11
11
  prop :validate, type: Playbook::Props::Boolean, default: false
12
12
 
13
13
  def render_in(view_context, &block)
14
- view_context.pb_form_with(form_options, &block)
14
+ view_context.pb_form_with(**form_options, &block)
15
15
  end
16
16
 
17
17
  private
@@ -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
- &.ls-blur-up-img,
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
- &.ls-blur-up-img,
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
- &.ls-blur-up-img,
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
- <img
49
- {...ariaProps}
50
- {...dataProps}
51
- alt={alt}
52
- className={classes}
53
- data-src={url}
54
- id={id}
55
- onError={onError}
56
- src={url}
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.merge!({ getOptionLabel: get_option_label }) if get_option_label.present?
64
- base_options.merge!({ getOptionValue: get_option_value }) if get_option_value.present?
65
- base_options.merge!({ async: true, loadOptions: load_options }) if async
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
@@ -11,7 +11,6 @@ window.datePickerHelper = datePickerHelper
11
11
 
12
12
  // Lazy image loading
13
13
  import 'lazysizes'
14
- import 'lazysizes/plugins/blur-up/ls.blur-up'
15
14
 
16
15
  import PbCollapsible from './pb_collapsible'
17
16
  PbCollapsible.start()
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "10.26.0"
5
- VERSION = "10.27.0.pre.lazysizes1"
5
+ VERSION = "11.0.0.pre.alpha.1"
6
6
  end
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.27.0.pre.lazysizes1
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-25 00:00:00.000000000 Z
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.20.0
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.20.0
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.1.6
2215
+ rubygems_version: 3.3.7
2216
2216
  signing_key:
2217
2217
  specification_version: 4
2218
2218
  summary: Playbook Design System