playbook_ui 10.26.0 → 10.26.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: 8ed156e9b15608fb8116a723d8dca86eb5b4295d88698532dc4bf8242bcd3ef6
4
- data.tar.gz: d5a5f5e68f1aeeafdd80dc066ee4be2271e7c4f8c666ef1ccf6ff205a98645ef
3
+ metadata.gz: d04863af3f16f0ff07920912ee6bee3917aa3102aa4a139ac6db374d33ecff3d
4
+ data.tar.gz: 2f7285e07abdadd6d0ef5aa5b72190503509682c2ed627c8a38fee10cc556de7
5
5
  SHA512:
6
- metadata.gz: 2e8aef1428a28b4c32bde81b9d61f76a4cdf02c6f5a08bb226ec4af88b86a83060f1322ed8e5033ba9a212c11fcef9e364d633505c42139beb7a9a167d0084ac
7
- data.tar.gz: f58619e5f506e3d5c8dfbcab0605e65566c0a8e22dfdf73ac561a5391da2b02893aa95d2ec252ebc018b9ff8bcfcc9097086d2374c5c33fb53b01cb0d6578de2
6
+ metadata.gz: e122b9e9f7e17fdc19da23b248423b58953dc38d3af3069f1e4903f4d05fd1f34f098d93a7453d9a9530a1f6f0b044f30e51dd247d8004cceb72c043dc8436b4
7
+ data.tar.gz: 3ec5a1f20a7814eca7781e4504543de8879f84fda9e67376ed300d82ab11380ceca3125324e7c19849e925873f4dd47a2c4ae999cd1ff4f90edfa6f59fd2068c
@@ -83,10 +83,10 @@ const Card = (props: CardPropTypes) => {
83
83
  const borderCSS = borderNone == true ? 'border_none' : ''
84
84
  const selectedCSS = selected == true ? 'selected' : 'deselected'
85
85
  const backgroundCSS = background == 'none' ? '' : `background_${background}`
86
- const cardCss = buildCss('pb_card_kit', selectedCSS, borderCSS, `border_radius_${borderRadius}`, backgroundCSS,
87
- `highlight_${highlight.position}`,
88
- `highlight_${highlight.color}`,
89
- )
86
+ const cardCss = buildCss('pb_card_kit', selectedCSS, borderCSS, `border_radius_${borderRadius}`, backgroundCSS, {
87
+ [`highlight_${highlight.position}`]: highlight.position,
88
+ [`highlight_${highlight.color}`]: highlight.color,
89
+ })
90
90
  const ariaProps: {[key: string]: string} = buildAriaProps(aria)
91
91
  const dataProps: {[key: string]: string} = buildDataProps(data)
92
92
 
@@ -22,7 +22,7 @@ const buildPrefixedProps = (prefix: string, data: {[key: string]: any}) =>
22
22
  *
23
23
  * @returns {() => {}} the noop function.
24
24
  */
25
- export const noop = () => {}
25
+ export const noop = (): void => { void 0 }
26
26
 
27
27
  /**
28
28
  * Maps a given aria object into HTML valid aria attribtues and their values.
@@ -47,5 +47,5 @@ export const buildDataProps = (data: {[key: string]: any}) => buildPrefixedProps
47
47
  * @param {Object} rules a 'classnames' compliant rules object, used to derive the root className.
48
48
  * @returns {String} the derived root className value.
49
49
  */
50
- export const buildCss = (...rules: string[]) => classnames(rules).replace(/\s/g, '_')
50
+ export const buildCss = (...rules: (string | { [x: string]: string; })[]): string => classnames(rules).replace(/\s/g, '_')
51
51
 
@@ -6,7 +6,12 @@ module Playbook
6
6
 
7
7
  def pb_rails(kit_name, props: {}, &block)
8
8
  kit = Playbook::KitResolver.resolve(kit_name.to_s)
9
- render_component kit.new(props, &block), &block
9
+
10
+ if respond_to? :render_component
11
+ render_component kit.new(props, &block), &block
12
+ else
13
+ render kit.new(props, &block), &block
14
+ end
10
15
  end
11
16
  end
12
17
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "10.25.1"
5
- VERSION = "10.26.0"
4
+ PREVIOUS_VERSION = "10.26.0"
5
+ VERSION = "10.26.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.26.0
4
+ version: 10.26.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-13 00:00:00.000000000 Z
12
+ date: 2022-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -101,14 +101,14 @@ dependencies:
101
101
  requirements:
102
102
  - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: 2.48.0
104
+ version: 2.55.0
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - '='
110
110
  - !ruby/object:Gem::Version
111
- version: 2.48.0
111
+ version: 2.55.0
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: webpacker-react
114
114
  requirement: !ruby/object:Gem::Requirement