playbook_ui 6.2.0 → 6.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82aa5cb0ff13fff767bf84b62c95679678adb923ab8498213d70f238d4686e4b
|
4
|
+
data.tar.gz: 749e9c758148f36c0db475664273a5bcedb99c45dd6d6929de155bfaeaa77ac1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 506b370ea2fe837dfab73e153c44e1c5c7c5d1ee43c9af8093b85b9539427ef3f8667034bf6297ddfb3f1c49f02c87a960c976a3c51ed75b21696a7bacafb43e
|
7
|
+
data.tar.gz: a6491803f9cf6f725a63f3c0d71dfc77b5f22e7739db30fa90c90eacfadc116f89a9e81d17ad853d8bcca4bcd09c13c7f96a2e1688d8e108bc48cd77d563c5be
|
@@ -40,7 +40,7 @@ const Header = (props: CardHeaderProps) => {
|
|
40
40
|
const headerSpacing = globalProps(props, { padding })
|
41
41
|
|
42
42
|
return (
|
43
|
-
<div className={classnames(headerCSS,
|
43
|
+
<div className={classnames(headerCSS, headerSpacing, className)}>
|
44
44
|
{children}
|
45
45
|
</div>
|
46
46
|
)
|
@@ -48,12 +48,12 @@ const Header = (props: CardHeaderProps) => {
|
|
48
48
|
|
49
49
|
// Body component
|
50
50
|
const Body = (props: CardBodyProps) => {
|
51
|
-
const { children,
|
51
|
+
const { children, padding = 'md', className } = props
|
52
52
|
const bodyCSS = buildCss('pb_card_body_kit')
|
53
53
|
const bodySpacing = globalProps(props, { padding })
|
54
54
|
|
55
55
|
return (
|
56
|
-
<div className={classnames(bodyCSS,
|
56
|
+
<div className={classnames(bodyCSS, bodySpacing, className)}>
|
57
57
|
{children}
|
58
58
|
</div>
|
59
59
|
)
|
@@ -69,7 +69,6 @@ const Card = (props: CardPropTypes) => {
|
|
69
69
|
shadow = 'none',
|
70
70
|
padding = 'md',
|
71
71
|
} = props
|
72
|
-
const bodyCSS = buildCss('pb_card_body_kit')
|
73
72
|
const borderCSS = borderNone == true ? 'border_none' : ''
|
74
73
|
const cardCss = buildCss('pb_card_kit', `shadow_${shadow}`, `${borderCSS}`, {
|
75
74
|
selected,
|
@@ -93,11 +92,9 @@ const Card = (props: CardPropTypes) => {
|
|
93
92
|
const nonHeaderChildren = cardChildren.filter((child) => (get(child, 'type.displayName') !== 'Header'))
|
94
93
|
|
95
94
|
return (
|
96
|
-
<div className={classnames(cardCss, globalProps(
|
95
|
+
<div className={classnames(cardCss, globalProps({ padding }), className)}>
|
97
96
|
{subComponentTags('Header')}
|
98
|
-
|
99
|
-
{nonHeaderChildren}
|
100
|
-
</div>
|
97
|
+
{nonHeaderChildren}
|
101
98
|
</div>
|
102
99
|
)
|
103
100
|
}
|
@@ -54,8 +54,8 @@ const SelectableCard = ({
|
|
54
54
|
const classes = classnames(buildCss('pb_selectable_card_kit',
|
55
55
|
{ 'checked': checked,
|
56
56
|
'disabled': disabled,
|
57
|
-
'enabled': !disabled },
|
58
|
-
|
57
|
+
'enabled': !disabled }),
|
58
|
+
globalProps(props), className)
|
59
59
|
|
60
60
|
const displayIcon = () => {
|
61
61
|
if (icon === true) {
|
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: 6.2.
|
4
|
+
version: 6.2.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: 2020-08-
|
12
|
+
date: 2020-08-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|