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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d04863af3f16f0ff07920912ee6bee3917aa3102aa4a139ac6db374d33ecff3d
|
4
|
+
data.tar.gz: 2f7285e07abdadd6d0ef5aa5b72190503509682c2ed627c8a38fee10cc556de7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.26.
|
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-
|
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.
|
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.
|
111
|
+
version: 2.55.0
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: webpacker-react
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|